/* style.css - 无限画布样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; overflow: auto; background: #050814; }
.view { width: 100vw; height: 100vh; position: relative; }

/* 画布页面禁止滚动 */
#view-canvas { overflow: hidden; background: #f8fafc; }
.hidden { display: none !important; }

/* 首页 */
#view-home {
  background: #050814;
  position: relative;
  min-height: 100vh;
  transition: background 0.3s;
}
/* 白天模式 */
#view-home.light-mode {
  background: #f8fafc;
}
/* 浅色模式下的body背景 */
body.light-mode {
  background: #f8fafc;
}
/* 静态背景 - 多层渐变 */
#view-home::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(236, 72, 153, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(34, 211, 238, 0.2) 0%, transparent 40%);
  z-index: 0;
  transition: opacity 0.3s;
}
#view-home.light-mode::before {
  opacity: 0.5;
}
/* 静态网格背景 */
#view-home::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  transition: opacity 0.3s;
}
#view-home.light-mode::after {
  opacity: 0.3;
}

/* 顶部导航栏 */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
#view-home.light-mode .home-nav {
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo { font-size: 20px; font-weight: 700; color: #fff; }
#view-home.light-mode .nav-logo { color: #111827; }
.nav-menu { display: flex; gap: 24px; }
.nav-item { font-size: 14px; color: #cbd5e1; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { color: #60a5fa; background: rgba(59, 130, 246, 0.1); }
#view-home.light-mode .nav-item { color: #6b7280; }
#view-home.light-mode .nav-item:hover { background: rgba(0,0,0,0.05); color: #111827; }
#view-home.light-mode .nav-item.active { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.nav-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.nav-btn:hover { background: rgba(255,255,255,0.1); }
#view-home.light-mode .nav-btn { border-color: rgba(0,0,0,0.1); color: #374151; }
#view-home.light-mode .nav-btn:hover { background: rgba(0,0,0,0.05); }
.nav-btn-primary { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; border: none; }
.nav-btn-primary:hover { opacity: 0.9; }
.home-header { text-align: center; padding: 60px 20px 40px; position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

/* Hero区域 - 左右布局 */
.hero-section { display: flex; align-items: center; gap: 60px; text-align: left; }
.hero-left { flex: 1; }
.hero-right { flex: 1; }

/* 左侧视觉效果图 */
.hero-visual {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.visual-tag {
  position: absolute;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  color: #374151;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: floatTag 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag-1 { top: 5%; left: 8%; }
.tag-2 { top: 5%; right: 8%; animation-delay: 0.5s; }
.tag-3 { top: 45%; left: 3%; animation-delay: 1s; }
.tag-4 { top: 45%; right: 3%; animation-delay: 1.5s; }

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 右侧文字 */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
}
.hero-title { font-size: 42px; font-weight: 800; color: #ffffff; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: #94a3b8; line-height: 1.6; margin-bottom: 24px; font-size: 15px; }
.hero-tags { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.hero-tags span { background: rgba(255,255,255,0.08); padding: 10px 16px; border-radius: 10px; font-size: 14px; color: #cbd5e1; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-size: 14px; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }
.btn-big { padding: 14px 36px; font-size: 16px; border-radius: 10px; }
.home-recent { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }
.home-recent h2 { font-size: 20px; margin-bottom: 16px; color: #ffffff; }
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.project-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); position: relative; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); border-color: rgba(59, 130, 246, 0.3); }
.project-card.new { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; color: #64748b; border: 2px dashed rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.project-card .plus { font-size: 32px; margin-bottom: 8px; }
.thumb { height: 100px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #64748b; }
.thumb svg { width: 100%; height: 100%; }
.home-footer { text-align: center; padding: 40px; color: #64748b; font-size: 13px; position: relative; z-index: 1; }
.home-footer .dot { margin: 0 8px; }
.fab-right-top { position: fixed; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: pointer; font-size: 20px; z-index: 9999; color: #fff; backdrop-filter: blur(10px); }
.home-blob { display: none; }

/* 画布 */
#view-canvas { display: flex; flex-direction: column; }
#canvas-toolbar { height: 48px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 16px; gap: 8px; z-index: 100; }
.tb-btn { padding: 6px 12px; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; color: #374151; }
.tb-btn:hover { background: #f9fafb; }
.tb-accent { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.tb-input { padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; width: 160px; }
.tb-spacer { flex: 1; }
.tb-label { font-size: 13px; color: #6b7280; min-width: 40px; text-align: center; }
.tb-status { color: #10b981; }

#canvas-stage { flex: 1; position: relative; overflow: hidden; background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px); background-size: 20px 20px; cursor: grab; user-select: none; -webkit-user-select: none; }
#canvas-stage:active { cursor: grabbing; }
#canvas-stage img, #canvas-stage video { -webkit-user-drag: none; user-drag: none; }
#edge-layer { position: absolute; top: 0; left: 0; width: 10000px; height: 10000px; overflow: visible; pointer-events: none; transform-origin: 0 0; }
#node-layer { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* 节点 */
.node { position: absolute; width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); border: 1px solid #e5e7eb; z-index: 1; }
.node-header { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.node-body { padding: 12px 16px; }
/* 节点端口（+号） */
.node-port { 
  position: absolute; 
  width: 20px; 
  height: 20px; 
  border-radius: 50%; 
  background: #fff; 
  border: 2px solid #3b82f6; 
  cursor: crosshair; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 14px; 
  color: #3b82f6; 
  font-weight: bold; 
  line-height: 1; 
  z-index: 10;
  opacity: 0.3;
  transition: all 0.2s ease;
}
.node-port::before { content: '+'; }
.node-port.in { left: -10px; top: 50%; transform: translateY(-50%); }
.node-port.out { right: -10px; top: 50%; transform: translateY(-50%); }

/* 鼠标靠近节点时，端口显示出来 */
.node:hover .node-port { opacity: 1; }

/* 鼠标靠近端口时，端口放大 */
.node-port:hover { 
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* 正在连线时，端口显示出来 */
.node.port-active .node-port { opacity: 1; }
.node img { width: 100%; border-radius: 8px; margin-top: 8px; }
textarea { width: 100%; padding: 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; resize: vertical; min-height: 60px; }
select, input[type="text"] { width: 100%; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; }
.btn-generate { width: 100%; padding: 10px; background: #3b82f6; color: #fff; border: none; border-radius: 8px; cursor: pointer; margin-top: 8px; font-size: 14px; }
.btn-place { width: 100%; padding: 8px; background: #10b981; color: #fff; border: none; border-radius: 8px; cursor: pointer; margin-top: 8px; font-size: 13px; }

/* 模态框 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; width: 400px; }
.modal-box h3 { margin-bottom: 16px; }
.modal-box label { display: block; margin-bottom: 12px; font-size: 13px; color: #374151; }
.modal-box input { margin-top: 4px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.btn-ghost { padding: 8px 16px; background: #f3f4f6; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; }
.modal-tip { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 2000; box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4); transition: all 0.3s ease; }

/* 节点头部按钮 */
.node-header { display: flex; align-items: center; justify-content: space-between; }
.node-actions { display: flex; gap: 4px; }
.node-btn { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 4px; }
.node-btn:hover { background: #f3f4f6; }

/* 蚂蚁线动画 */
@keyframes march {
  to { stroke-dashoffset: -20; }
}
.edge-line {
  stroke: #3b82f6;
  stroke-width: 10; /* 更粗的点击区域 */
  fill: none;
  stroke-dasharray: 8, 4;
  animation: march 0.8s linear infinite;
  pointer-events: stroke;
}

.edge-line-visible {
  stroke: #3b82f6;
  stroke-width: 2; /* 更细的可见线 */
  fill: none;
  stroke-dasharray: 8, 4;
  animation: march 0.8s linear infinite;
  pointer-events: none; /* 不拦截点击，让下面的透明线接收点击 */
}

/* 黑夜模式 - 全黑主题 */
body.dark { background: #0f0f0f; color: #eee; }
body.dark #view-home { background: #0f0f0f; }
body.dark .home-title { color: #fff; }
body.dark .home-title span { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.dark .home-sub { color: #aaa; }
body.dark .home-tags span { background: #1a1a1a; color: #aaa; border: 1px solid #333; }
body.dark .btn-primary { background: #3b82f6; }
body.dark .project-card { background: #1a1a1a; color: #eee; border: 1px solid #333; }
body.dark .project-card.new { background: #1a1a1a; border-color: #333; color: #999; }
body.dark .thumb { background: #222; }
body.dark .home-recent h2 { color: #fff; }
body.dark .home-footer { color: #666; }
body.dark .fab-right-top { background: #1a1a1a; color: #eee; border: 1px solid #333; }

body.dark #view-canvas { background: #000000; }
body.dark #canvas-toolbar { background: #1a1a1a; border-color: #333; }
body.dark .tb-btn { background: #222; color: #eee; border-color: #333; }
body.dark .tb-btn:hover { background: #333; }
body.dark .tb-input { background: #222; color: #eee; border-color: #333; }
body.dark .tb-label { color: #aaa; }
body.dark .tb-accent { background: #3b82f6; color: #fff; border-color: #3b82f6; }
body.dark #canvas-stage { background-image: linear-gradient(#1a1a1a 1px, transparent 1px), linear-gradient(90deg, #1a1a1a 1px, transparent 1px); }

body.dark .node { background: #1a1a1a; border-color: #333; color: #eee; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
body.dark .node-header { border-color: #333; }
body.dark .node-actions .node-btn { color: #aaa; }
body.dark .node-actions .node-btn:hover { background: #333; }
body.dark .node-body label { color: #aaa; }
body.dark .node-body textarea, body.dark .node-body select { background: #222; color: #eee; border-color: #333; }
body.dark .node-body select option { background: #222; color: #eee; }
body.dark .btn-generate { background: #3b82f6; color: #fff; }
body.dark .btn-place { background: #10b981; color: #fff; }
body.dark .upload-area { border-color: #444; color: #666; }
body.dark .node-port { background: #222; border-color: #3b82f6; color: #3b82f6; }

body.dark .modal { background: rgba(0,0,0,.8); }
body.dark .modal-box { background: #1a1a1a; color: #eee; border: 1px solid #333; }
body.dark .modal-box h3 { color: #fff; }
body.dark .modal-box label { color: #ccc; }
body.dark .modal-box input, body.dark .modal-box select, body.dark .modal-box textarea { background: #222; color: #eee; border-color: #333; }
body.dark .modal-box select option { background: #222; color: #eee; }
body.dark .btn-ghost { background: #333; color: #eee; }
body.dark .modal-tip { color: #888; }

body.dark .toast { background: #222; color: #eee; border: 1px solid #333; }

/* 深色模式下的缩放控制 */
body.dark #zoom-controls { background: #1a1a1a; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
body.dark #zoom-controls button { background: #222; color: #eee; }
body.dark #zoom-controls #zoom-percent { color: #eee; }

/* ============ 会员系统样式 ============ */

/* 登录/注册弹窗 */
#modal-auth { background: rgba(0,0,0,.7); backdrop-filter: blur(8px); }
.auth-box {
  width: 420px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.auth-close:hover { background: rgba(239, 68, 68, 0.3); }
.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}
.auth-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.auth-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.auth-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9ca3af;
}
.auth-input {
  width: 100%;
  padding: 14px 50px 14px 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}
.auth-input::placeholder { color: #6b7280; }
.auth-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #9ca3af;
}
.auth-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.auth-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}
.auth-link {
  color: #8b5cf6;
  cursor: pointer;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

/* 个人中心弹窗 */
#modal-profile { background: rgba(0,0,0,.7); backdrop-filter: blur(8px); }
.profile-box {
  width: 480px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.profile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.profile-close:hover { background: rgba(255,255,255,0.2); }
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.profile-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.profile-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}
.profile-info {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.profile-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-info-icon { font-size: 20px; }
.profile-info-label {
  flex: 1;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
.profile-info-value {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-menu-recharge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.profile-menu-recharge:hover { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.2)); }
.profile-menu-password {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  border-color: rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}
.profile-menu-password:hover { background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2)); }
.profile-menu-logout {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.profile-menu-logout:hover { background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.2)); }

/* ============ 浅色模式补充样式 ============ */

/* 大标题 */
#view-home.light-mode .hero-title { color: #111827; }
#view-home.light-mode .hero-title span { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* 描述文字 */
#view-home.light-mode .hero-desc { color: #4b5563; }

/* 功能列表标签 */
#view-home.light-mode .hero-tags span { 
  background: rgba(255,255,255,0.8); 
  color: #374151; 
  border: 1px solid rgba(0,0,0,0.1);
}

/* 最近项目标题 */
#view-home.light-mode .home-recent h2 { color: #111827; }

/* 项目卡片 - 深色模式（默认） */
#view-home .project-card { 
  background: rgba(255,255,255,0.08); 
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
#view-home .project-card:hover { 
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); 
  border-color: rgba(59, 130, 246, 0.3); 
}

/* 项目卡片文字 - 深色模式 */
#view-home .project-card .name { color: #ffffff; }
#view-home .project-card div[style*="font-size:11px"][style*="color:#9ca3af"] { color: #94a3b8 !important; }

/* 新建项目卡片 - 深色模式（默认） */
#view-home .project-card.new { 
  color: #94a3b8; 
  border: 2px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

/* 项目卡片 - 浅色模式 */
#view-home.light-mode .project-card { 
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
#view-home.light-mode .project-card:hover { 
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2); 
  border-color: rgba(59, 130, 246, 0.3); 
}

/* 项目卡片文字 - 浅色模式 */
#view-home.light-mode .project-card .name { color: #111827; }
#view-home.light-mode .project-card div[style*="font-size:11px"][style*="color:#9ca3af"] { color: #6b7280 !important; }

/* 新建项目卡片 - 浅色模式 */
#view-home.light-mode .project-card.new { 
  color: #6b7280; 
  border: 2px dashed rgba(0,0,0,0.2); 
  background: rgba(255,255,255,0.5); 
}

/* 缩略图 */
#view-home.light-mode .thumb { 
  background: #f3f4f6; 
  color: #6b7280; 
}

/* 项目名称和时间 */
#view-home.light-mode .project-card .name { color: #111827; }
#view-home.light-mode .project-card div[style*="font-size:11px"][style*="color:#9ca3af"] { color: #6b7280 !important; }
#view-home.light-mode .project-card div[style*="font-size:11px"][style*="color:#ef4444"] { color: #ef4444 !important; }

/* 浮动按钮 */
#view-home.light-mode .fab-right-top {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.1);
  color: #374151;
}
