/* =========================================================
   未觅 Whimi v0.9.0 — 产品级主题
   黑色 + 金色奢华主题,玻璃拟态,粒子背景,深/浅切换
   ========================================================= */

/* ===== 重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter','Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif; line-height: 1.6; overflow-x: hidden; min-height: 100vh; }

/* ===== 暗色主题(默认) ===== */
:root {
  --bg-primary: #03030a;
  --bg-secondary: rgba(10,10,22,0.86);
  --glass-bg: rgba(255,255,255,0.03);
  --glass-bg-hover: rgba(255,255,255,0.06);
  --glass-bg-strong: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-strong: rgba(255,255,255,0.18);

  --accent-gold: #c9a45c;
  --accent-gold-light: #e0c078;
  --accent-gold-deep: #a06e1a;
  --gradient-gold: linear-gradient(135deg,#c9a45c 0%,#e0c078 50%,#c9a45c 100%);
  --gradient-gold-strong: linear-gradient(135deg,#D6B36A 0%,#E8C985 50%,#D6B36A 100%);

  --text-primary: #fafafa;
  --text-secondary: rgba(255,255,255,0.58);
  --text-tertiary: rgba(255,255,255,0.36);
  --text-muted: rgba(255,255,255,0.22);

  --success: #6ee7b7;
  --warning: #fbbf24;
  --error: #ef4444;

  --shadow-sm: 0 4px 18px rgba(0,0,0,0.32);
  --shadow-md: 0 10px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 28px 80px rgba(0,0,0,0.55);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --nav-h: 64px;
  --container-max: 1280px;
}

/* ===== 浅色主题 ===== */
body.light {
  --bg-primary: #f2f1ec;
  --bg-secondary: rgba(255,255,255,0.97);
  --glass-bg: rgba(0,0,0,0.04);
  --glass-bg-hover: rgba(0,0,0,0.07);
  --glass-bg-strong: rgba(255,255,255,0.78);
  --glass-border: rgba(0,0,0,0.10);
  --glass-border-strong: rgba(0,0,0,0.16);

  --accent-gold-deep: #a06e1a;
  --text-primary: #1a1826;
  --text-secondary: rgba(26,24,38,0.62);
  --text-tertiary: rgba(26,24,38,0.40);
  --text-muted: rgba(26,24,38,0.26);
}

body { background: var(--bg-primary); color: var(--text-primary); }

/* ===== 背景光晕 ===== */
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 120% 65% at 50% -2%, rgba(105,65,210,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 92% 30%, rgba(65,105,230,0.16) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 8% 82%, rgba(195,65,140,0.11) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
  animation: bgPulse 14s ease-in-out infinite alternate;
}
body.light::before {
  background:
    radial-gradient(ellipse 120% 65% at 50% -2%, rgba(140,100,240,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 92% 30%, rgba(90,130,240,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 8% 82%, rgba(220,100,170,0.06) 0%, transparent 50%);
}
@keyframes bgPulse { 0% { opacity: 0.82; } 100% { opacity: 1; } }

/* ===== 粒子背景 ===== */
#particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45; }
body.light #particles-canvas { opacity: 0.14; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 52px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(3,3,10,0.52);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  height: var(--nav-h);
}
body.light .navbar { background: rgba(242,241,236,0.85); }
.navbar.scrolled { background: rgba(3,3,10,0.92); box-shadow: 0 4px 32px rgba(0,0,0,0.38); }
body.light .navbar.scrolled { background: rgba(242,241,236,0.97); box-shadow: 0 4px 24px rgba(0,0,0,0.09); }

.logo { display: flex; align-items: center; cursor: pointer; user-select: none; gap: 12px; }
.logo-icon { width: 36px; height: 36px; background: var(--gradient-gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 0 22px rgba(201,164,92,0.32); transition: box-shadow 0.3s ease; }
.logo:hover .logo-icon { box-shadow: 0 0 36px rgba(201,164,92,0.55); }
.logo-name { display: flex; flex-direction: column; line-height: 1; }
.logo-cn { font-size: 20px; font-weight: 800; color: var(--accent-gold); letter-spacing: 0.02em; }
.logo-en { font-size: 10.5px; font-weight: 500; letter-spacing: 4px; color: rgba(201,164,92,0.78); margin-top: 4px; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; position: relative; padding: 4px 0; transition: color 0.3s ease; background: none; border: none; font-family: inherit; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--gradient-gold); transition: width 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent-gold); }

.user-section { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50%; cursor: pointer; transition: all 0.3s; font-size: 16px; flex-shrink: 0; position: relative; color: var(--text-primary); font-family: inherit; }
.icon-btn:hover { border-color: rgba(201,164,92,0.5); box-shadow: 0 0 18px rgba(201,164,92,0.2); transform: rotate(20deg); }
.icon-btn[data-bell]:hover { transform: none; }
.icon-btn[data-bell]:hover { animation: bellShake 0.7s ease; }
@keyframes bellShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; background: linear-gradient(135deg,#e05050,#ff3333); color: #fff; font-size: 10px; font-weight: 700; border-radius: 9px; padding: 0 5px; display: none; align-items: center; justify-content: center; border: 1.5px solid var(--bg-primary); }
.bell-badge.show { display: flex; }

.credits-badge { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.3s ease; color: var(--text-primary); font-family: inherit; }
.credits-badge:hover { border-color: var(--accent-gold); box-shadow: 0 0 14px rgba(201,164,92,0.14); }

/* ===== 用户菜单下拉 ===== */
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-family: inherit;
}
.user-menu-trigger:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(201,164,92,0.14);
}
.user-menu-arrow {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.user-menu.open .user-menu-arrow {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 1000;
}
.user-menu.open .user-menu-dropdown {
  display: block;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}
.user-menu-item:hover {
  background: var(--hover-bg);
}
.user-menu-item:last-child {
  color: var(--error);
  border-top: 1px solid var(--border-color);
}
.credits-icon { color: var(--accent-gold); }
.credits-num { font-weight: 600; }

.btn-login { padding: 8px 18px; background: var(--gradient-gold); color: var(--bg-primary); border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(201,164,92,0.35); }

/* ===== 主容器 ===== */
.main-content { position: relative; z-index: 1; padding-top: var(--nav-h); min-height: 100vh; }
.page { display: none; }
.page.active { display: block; }

/* ===== HOME — HERO ===== */
.hero { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px 24px; gap: 26px; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 17px; background: rgba(201,164,92,0.08); border: 1px solid rgba(201,164,92,0.22); border-radius: 30px; font-size: 12.5px; color: var(--accent-gold); letter-spacing: 0.3px; animation: fadeInDown 0.9s ease both; z-index: 1; }
.badge-dot { width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%; animation: pulseDot 2.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.65); } }

.hero-title { font-size: clamp(48px, 9vw, 84px); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; z-index: 1; }
.hero-title .line1 { display: block; font-size: clamp(16px, 2.4vw, 26px); font-weight: 500; font-style: italic; letter-spacing: 0.08em; background: var(--gradient-gold-strong); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeInUp 1s ease 0.12s both; margin-bottom: 10px; }
.hero-title .highlight { display: block; background: linear-gradient(130deg,#D6B36A 0%,#FFF3C4 52%,#D6B36A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 44px rgba(214,179,106,0.26)); animation: fadeInUp 1s ease 0.22s both; }

.hero-subtitle { font-size: 16.5px; color: var(--text-secondary); line-height: 1.78; max-width: 540px; animation: fadeInUp 1s ease 0.32s both; z-index: 1; }

.hero-cta { display: flex; align-items: center; gap: 14px; animation: fadeInUp 1s ease 0.44s both; z-index: 1; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary { padding: 17px 40px; background: var(--gradient-gold-strong); color: #03030a; border: none; border-radius: 14px; font-size: 15.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 6px 28px rgba(214,179,106,0.40); letter-spacing: 0.1px; font-family: inherit; }
.btn-hero-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.36),transparent); transition: left 0.55s ease; }
.btn-hero-primary:hover { transform: translateY(-3px) scale(1.025); box-shadow: 0 14px 44px rgba(214,179,106,0.54), 0 0 72px rgba(214,179,106,0.2); }
.btn-hero-primary:hover::before { left: 100%; }
.btn-hero-primary .arrow { transition: transform 0.3s ease; }
.btn-hero-primary:hover .arrow { transform: translateX(5px); }
.btn-hero-secondary { padding: 17px 36px; background: transparent; color: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
body.light .btn-hero-secondary { color: rgba(26,24,38,0.78); border-color: rgba(26,24,38,0.22); background: rgba(255,255,255,0.60); backdrop-filter: blur(8px); }
.btn-hero-secondary:hover { background: var(--glass-bg); border-color: rgba(201,164,92,0.38); color: var(--accent-gold); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 30px; animation: fadeInUp 1s ease 0.56s both; z-index: 1; flex-wrap: wrap; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 22px; font-weight: 700; background: var(--gradient-gold-strong); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 11.5px; color: var(--text-tertiary); letter-spacing: 0.2px; }
.stat-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.1); }

/* ===== SECTION ===== */
.section { padding: 80px 52px; max-width: var(--container-max); margin: 0 auto; }
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg,transparent,var(--glass-border),transparent); margin: 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { font-size: 11.5px; font-weight: 700; letter-spacing: 3.5px; text-transform: uppercase; color: var(--accent-gold); opacity: 0.72; margin-bottom: 14px; }
.section-title { font-size: clamp(28px,4.5vw,40px); font-weight: 700; letter-spacing: -0.025em; background: linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,0.82) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; }
body.light .section-title { background: linear-gradient(180deg,#1a1826 0%,rgba(26,24,38,0.78) 100%); -webkit-background-clip: text; background-clip: text; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 540px; margin: 0 auto; line-height: 1.68; }

/* ===== TOOLS — 工具矩阵 ===== */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 32px 28px; transition: all 0.3s ease; position: relative; overflow: hidden; cursor: pointer; }
.tool-card.active-tool:hover { border-color: rgba(201,164,92,0.4); background: var(--glass-bg-hover); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(201,164,92,0.13); }
.tool-card.coming-soon { opacity: 0.48; cursor: default; }
.tool-card-icon { font-size: 38px; margin-bottom: 16px; display: block; }
.tool-card-name { font-size: 19px; font-weight: 600; margin-bottom: 9px; color: var(--text-primary); }
.tool-card-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
.tool-card-badge { display: inline-block; margin-top: 16px; padding: 3px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-active { background: rgba(201,164,92,0.14); color: var(--accent-gold); border: 1px solid rgba(201,164,92,0.32); }
.badge-soon { background: rgba(255,255,255,0.05); color: var(--text-tertiary); border: 1px solid var(--glass-border); }
.beta-badge { display:inline-block; background:#c0392b; color:#fff; font-size:10px; font-weight:700; padding:2px 7px; border-radius:7px; vertical-align:middle; letter-spacing:.3px; }
.tab-badge-hot { display:inline-flex; align-items:center; gap:2px; padding:2px 8px; font-size:10px; font-weight:700; color:#fff; background:linear-gradient(135deg,#ff3b6e 0%,#ff7e2e 100%); border-radius:10px; box-shadow:0 2px 6px rgba(255,59,110,.35); animation: tabBadgePulse 1.8s ease-in-out infinite; }
@keyframes tabBadgePulse { 0%,100% { box-shadow:0 2px 6px rgba(255,59,110,.35); transform:scale(1); } 50% { box-shadow:0 2px 14px rgba(255,59,110,.55); transform:scale(1.05); } }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 54px; left: calc(16.67% + 32px); right: calc(16.67% + 32px); height: 1px; background: linear-gradient(90deg,rgba(201,164,92,0.7) 0%,rgba(201,164,92,0.25) 50%,rgba(201,164,92,0.7) 100%); z-index: 0; }
.step-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 22px; padding: 38px 28px 36px; text-align: center; transition: all 0.42s ease; position: relative; z-index: 1; }
.step-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(201,164,92,0.24); transform: translateY(-7px); box-shadow: 0 22px 54px rgba(0,0,0,0.32), 0 0 28px rgba(201,164,92,0.06); }
.step-num { font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; color: var(--accent-gold); opacity: 0.65; margin-bottom: 18px; }
.step-icon { width: 60px; height: 60px; background: rgba(201,164,92,0.09); border: 1px solid rgba(201,164,92,0.18); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 22px; transition: all 0.4s ease; }
.step-card:hover .step-icon { background: rgba(201,164,92,0.16); transform: scale(1.09); box-shadow: 0 0 28px rgba(201,164,92,0.14); }
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.68; }

/* ===== WORKSPACE — 创作区 ===== */
.workspace { padding: 40px 40px 80px; max-width: var(--container-max); margin: 0 auto; }
.workspace-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

.tool-selector-wrap { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-xl); padding: 10px; margin-bottom: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.light .tool-selector-wrap { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.10); backdrop-filter: none; }
.tool-selector { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.tscard { background: var(--glass-bg); border: 1.5px solid var(--glass-border); border-radius: 16px; padding: 18px 16px 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; gap: 4px; user-select: none; }
.tscard:hover { border-color: rgba(201,164,92,0.45); background: rgba(201,164,92,0.07); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.28); }
.tscard.active { border-color: rgba(201,164,92,0.70); background: rgba(201,164,92,0.12); box-shadow: 0 0 0 1px rgba(201,164,92,0.28), 0 8px 32px rgba(201,164,92,0.20); }
body.light .tscard { background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.09); }
body.light .tscard:hover { background: #ffffff; border-color: rgba(201,164,92,0.45); }
body.light .tscard.active { background: #ffffff; border-color: rgba(201,164,92,0.70); box-shadow: 0 0 0 3px rgba(201,164,92,0.15); }
.tscard-icon { font-size: 28px; line-height: 1; }
.tscard-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-top: 8px; }
.tscard-desc { font-size: 11.5px; color: var(--text-secondary); line-height: 1.5; }
.tscard-cost { font-size: 11px; color: var(--accent-gold); margin-top: 5px; opacity: 0.88; }

.workspace-card { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-xl); padding: 36px 52px 44px; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.10); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
body.light .workspace-card { background: #ffffff; border-color: rgba(0,0,0,0.09); box-shadow: 0 16px 56px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06); backdrop-filter: none; }

.ws-tool-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.ws-tool-icon { font-size: 26px; flex-shrink: 0; }
.ws-tool-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.ws-tool-sub { font-size: 12.5px; color: var(--text-tertiary); }

.field-group { margin-bottom: 22px; }
.field-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.field-optional { font-size: 10px; font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: 0; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 5px; padding: 1px 7px; margin-left: 5px; vertical-align: middle; }
.field-required { font-size: 10px; font-weight: 600; color: rgba(201,164,92,0.95); text-transform: none; letter-spacing: 0; background: rgba(201,164,92,0.10); border: 1px solid rgba(201,164,92,0.28); border-radius: 5px; padding: 1px 7px; margin-left: 5px; vertical-align: middle; }

/* 修复 select/option 下拉列表颜色 — 浏览器原生 option 使用具体颜色值而非 CSS 变量 */
select, option, .form-input, .form-select, .form-textarea {
  color: var(--text-primary) !important;
  background: var(--glass-bg) !important;
}
/* 浏览器原生 <select> 弹出下拉层使用具体色值 */
select {
  color: #fafafa !important;
  background: #1a1a2e !important;
}
select option {
  background: #1a1a2e !important;
  color: #fafafa !important;
}
body.light select {
  color: #1a1826 !important;
  background: #ffffff !important;
}
body.light select option {
  background: #ffffff !important;
  color: #1a1826 !important;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 14px; transition: all 0.3s ease; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: rgba(201,164,92,0.46); box-shadow: 0 0 18px rgba(201,164,92,0.09); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 80px; resize: vertical; }

.upload-slim { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--glass-bg); border: 1.5px dashed rgba(255,255,255,0.14); border-radius: 14px; cursor: pointer; transition: all 0.3s ease; }
.upload-slim:hover { border-color: rgba(201,164,92,0.48); background: rgba(201,164,92,0.04); }
.upload-slim.has-file { border-style: solid; border-color: rgba(201,164,92,0.55); background: rgba(201,164,92,0.05); }
body.light .upload-slim { border-color: rgba(0,0,0,0.13); background: rgba(0,0,0,0.028); }
body.light .upload-slim.has-file { border-color: rgba(201,164,92,0.70); }
.upload-slim-icon { font-size: 24px; flex-shrink: 0; }
.upload-slim-body { flex: 1; min-width: 0; }
.upload-slim-title { font-size: 13.5px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-slim-fmt { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }
.upload-slim-add { font-size: 20px; color: var(--text-tertiary); flex-shrink: 0; line-height: 1; transition: color 0.2s; }
.upload-slim:hover .upload-slim-add { color: var(--accent-gold); }

.btn-generate { padding: 16px 44px; background: var(--gradient-gold); color: var(--bg-primary); border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden; width: 100%; justify-content: center; font-family: inherit; }
.btn-generate::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent); transition: left 0.55s ease; }
.btn-generate:hover::before { left: 100%; }
.btn-generate:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 12px 36px rgba(201,164,92,0.44); }
.btn-generate:disabled { opacity: 0.32; cursor: not-allowed; transform: none; box-shadow: none; }
.cost-hint { margin-top: 12px; font-size: 12.5px; color: var(--text-tertiary); text-align: center; }
.cost-hint span { color: var(--accent-gold); font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.model-tab-row { display: flex; flex-wrap: wrap; gap: 10px; }
.model-tab { flex: 1 1 165px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--glass-border); border-radius: 12px; padding: 11px 14px; cursor: pointer; transition: all 0.2s; user-select: none; background: var(--glass-bg); }
.model-tab:hover { border-color: rgba(201,164,92,0.45); }
.model-tab.active { border-color: rgba(201,164,92,0.7); background: rgba(201,164,92,0.07); }
.model-tab-icon { font-size: 22px; flex-shrink: 0; }
.model-tab-body { min-width: 0; flex: 1; }
.model-tab-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 4px; }
.model-tab-tag { font-size: 10.5px; color: var(--accent-gold); margin-top: 2px; opacity: 0.85; }
.model-tab-meta { font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }

.pills-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 7px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; transition: all 0.3s ease; user-select: none; }
.pill:hover, .pill.active { border-color: rgba(201,164,92,0.42); color: var(--accent-gold); background: rgba(201,164,92,0.08); }

/* ===== 右侧任务队列 ===== */
.workspace-right { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-h) - 32px); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
body.light .workspace-right { background: #ffffff; border-color: rgba(0,0,0,0.08); box-shadow: 0 4px 24px rgba(0,0,0,0.08); backdrop-filter: none; }
.wq-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--text-primary); flex-shrink: 0; }
.wq-badge { background: linear-gradient(135deg,#e05050,#ff3333); color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 7px; }
.wq-body { flex: 1; overflow-y: auto; }
.wq-body::-webkit-scrollbar { width: 3px; }
.wq-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.wq-empty { padding: 36px 18px; text-align: center; color: var(--text-tertiary); font-size: 12.5px; line-height: 2; }
.wq-empty-icon { font-size: 32px; opacity: 0.22; display: block; margin-bottom: 10px; }

.qitem { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; gap: 12px; align-items: flex-start; transition: background 0.2s; position: relative; }
.qitem:hover { background: rgba(255,255,255,0.018); }
.qitem-icon { font-size: 24px; flex-shrink: 0; }
.qitem-body { flex: 1; min-width: 0; }
.qitem-name { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem-time { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; }
.qstatus { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 8px; font-weight: 500; }
.qstatus.pending { background: rgba(255,165,0,0.1); color: #ffa040; }
.qstatus.processing { background: rgba(105,65,210,0.15); color: #b18cff; }
.qstatus.completed { background: rgba(30,200,100,0.1); color: #3dd080; }
.qstatus.failed { background: rgba(255,60,60,0.1); color: #ff5555; }
.qprogress { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.qprogress-bar { height: 100%; background: var(--gradient-gold); transition: width 0.4s ease; }

/* ===== DRAWER (任务队列抽屉) ===== */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 199; display: none; }
.drawer-bg.show { display: block; }
.task-drawer { position: fixed; top: 0; right: -440px; width: 420px; max-width: 100vw; height: 100vh; background: rgba(6,6,16,0.97); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border-left: 1px solid rgba(255,255,255,0.07); z-index: 200; transition: right 0.4s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.task-drawer.open { right: 0; }
.drawer-head { padding: 20px 22px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.drawer-head-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.drawer-close { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50%; cursor: pointer; font-size: 16px; transition: all 0.2s; color: var(--text-secondary); line-height: 1; }
.drawer-close:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }
.drawer-clear-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.78); padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; white-space: nowrap; }
.drawer-clear-btn:hover { background: rgba(255,80,80,0.16); border-color: rgba(255,80,80,0.30); color: #ff8888; }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 2px; }
.drawer-empty { padding: 60px 24px; text-align: center; color: var(--text-tertiary); line-height: 2.2; }
.drawer-empty-icon { font-size: 44px; opacity: 0.28; display: block; margin-bottom: 12px; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,3,10,0.76); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); z-index: 300; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal { background: var(--bg-secondary); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-2xl); padding: 48px; width: 100%; max-width: 420px; position: relative; transform: scale(0.95) translateY(16px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); backdrop-filter: blur(32px); box-shadow: var(--shadow-lg); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
body.light .modal { background: rgba(240,239,234,0.97); box-shadow: 0 32px 64px rgba(0,0,0,0.14); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-secondary); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.modal-close:hover { border-color: var(--accent-gold); color: var(--text-primary); }
.modal-header { text-align: center; margin-bottom: 32px; }
.modal-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,0.88) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.light .modal-title { background: linear-gradient(180deg,#1a1826 0%,rgba(26,24,38,0.88) 100%); -webkit-background-clip: text; background-clip: text; }
.modal-subtitle { font-size: 14px; color: var(--text-secondary); }

.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; }
.verify-group { display: flex; gap: 10px; }
.verify-group .form-input { flex: 1; }
.btn-verify { padding: 12px 14px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--accent-gold); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; font-family: inherit; }
.btn-verify:hover:not(:disabled) { border-color: rgba(201,164,92,0.5); background: rgba(201,164,92,0.1); }
.btn-verify:disabled { color: var(--text-muted); cursor: not-allowed; }
.form-submit { width: 100%; padding: 15px; background: var(--gradient-gold); color: var(--bg-primary); border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.4s ease; margin-top: 6px; position: relative; overflow: hidden; font-family: inherit; }
.form-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.28),transparent); transition: left 0.55s ease; }
.form-submit:hover::before { left: 100%; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,164,92,0.28); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== CREDITS — 积分页 ===== */
.credits-page { padding: 40px 52px 80px; max-width: 1000px; margin: 0 auto; }
.credits-balance-card { background: linear-gradient(135deg,rgba(201,164,92,0.88) 0%,rgba(224,192,120,0.74) 100%); border-radius: 26px; padding: 48px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(201,164,92,0.17); }
.credits-balance-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle,rgba(255,255,255,0.22) 0%,transparent 70%); pointer-events: none; }
.balance-info h2 { font-size: 13.5px; font-weight: 500; opacity: 0.85; margin-bottom: 6px; color: #03030a; }
.balance-amount { font-size: 50px; font-weight: 700; color: #03030a; line-height: 1; }
.btn-recharge { padding: 13px 26px; background: #03030a; color: var(--accent-gold); border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; z-index: 1; transition: all 0.4s ease; font-family: inherit; }
.btn-recharge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }

.credits-history { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-xl); overflow: hidden; }
body.light .credits-history { background: #ffffff; border-color: rgba(0,0,0,0.08); }
.history-header { padding: 20px 28px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.history-title { font-size: 16px; font-weight: 600; }
.history-filters { display: flex; gap: 8px; }
.filter-btn { padding: 6px 15px; background: transparent; border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-secondary); font-size: 12.5px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(201,164,92,0.08); }
.history-list { padding: 0 28px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--glass-border); }
.history-item:last-child { border-bottom: none; }
.history-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.history-info p { font-size: 12px; color: var(--text-tertiary); }
.history-amount { font-size: 14.5px; font-weight: 600; }
.history-amount.consume { color: var(--text-secondary); }
.history-amount.recharge { color: var(--success); }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: calc(var(--nav-h) + 16px); right: 16px; z-index: 400; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 12px 18px; background: var(--bg-secondary); border: 1px solid var(--glass-border-strong); border-radius: 12px; box-shadow: var(--shadow-md); backdrop-filter: blur(20px); min-width: 240px; max-width: 360px; display: flex; align-items: center; gap: 10px; pointer-events: auto; animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1); font-size: 13.5px; }
.toast.success { border-color: rgba(110,231,183,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast.warning { border-color: rgba(251,191,36,0.4); }
.toast-icon { font-size: 18px; }
.toast-text { color: var(--text-primary); flex: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 1; padding: 60px 52px 32px; border-top: 1px solid var(--glass-border); background: linear-gradient(180deg,transparent 0%,rgba(3,3,10,0.65) 100%); }
.footer-inner { max-width: 1100px; margin: 0 auto 48px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; }
.footer-brand p { font-size: 13.5px; color: var(--text-tertiary); line-height: 1.72; max-width: 270px; margin-top: 14px; }
.footer-col h4 { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13.5px; color: var(--text-tertiary); text-decoration: none; cursor: pointer; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--accent-gold); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 26px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent-gold); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-right { position: static; max-height: 380px; }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .tool-selector { grid-template-columns: repeat(2,1fr); }
  .navbar { padding: 14px 20px; }
  .nav-links { gap: 18px; }
}
@media (max-width: 768px) {
  .workspace { padding: 30px 16px 60px; }
  .workspace-card { padding: 24px 20px 32px; }
  .section { padding: 60px 16px; }
  .footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .credits-page { padding: 30px 20px 60px; }
  .credits-balance-card { flex-direction: column; gap: 20px; padding: 32px; text-align: center; }
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-selector { grid-template-columns: 1fr; }
}

/* ===== 工具提示 ===== */
[title] { position: relative; }
.tooltip { position: fixed; background: var(--bg-primary); color: var(--text-primary); padding: 6px 10px; border-radius: 6px; font-size: 12px; pointer-events: none; z-index: 999; box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border); }

/* ===== 错误面板(保留) ===== */
.error-card { background: linear-gradient(135deg,rgba(239,68,68,0.08) 0%,rgba(220,38,38,0.04) 100%); border: 1px solid #ef4444; border-radius: 16px; padding: 20px; color: var(--text-primary); margin-top: 16px; }
.error-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(239,68,68,0.3); }
.error-title { font-size: 16px; font-weight: 700; color: #fca5a5; }
.error-close { background: transparent; border: none; color: #aaa; font-size: 24px; cursor: pointer; padding: 0 8px; line-height: 1; }
.error-summary { font-size: 13px; color: #fecaca; margin-bottom: 14px; line-height: 1.6; }
.error-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.error-actions button { padding: 8px 14px; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.btn-retry { background: #3b82f6; color: #fff; }
.btn-retry:hover { background: #2563eb; }
.btn-mock { background: #6b7280; color: #fff; }
.btn-contact { background: #f59e0b; color: #000; }

/* ===== 生成结果区 ===== */
.result-panel { margin-top: 24px; padding: 24px; background: rgba(102,126,234,0.05); border: 1px solid rgba(201,164,92,0.3); border-radius: 16px; display: none; }
.result-panel.active { display: block; }
.result-video { width: 100%; max-width: 600px; border-radius: 12px; margin: 12px auto 0; display: block; }
.result-image { max-width: 100%; border-radius: 12px; margin: 12px auto 0; display: block; }
.status { text-align: center; padding: 16px; font-size: 14px; color: var(--text-secondary); }
.status.success { color: var(--success); }
.status.error { color: var(--error); }

/* ===== 历史记录 ===== */
.history-section { margin-top: 24px; }
.history-thumb { width: 100%; aspect-ratio: 1; background: rgba(0,0,0,0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.history-grid-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 8px; cursor: pointer; transition: all 0.2s; }
.history-grid-item:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.history-grid-name { font-size: 12px; color: var(--text-secondary); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Beta 提示 ===== */
.beta-tip { background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.42); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: #ff9b8f; }

/* ===== 演示提示(场景示例) ===== */
.demo-section { padding: 80px 52px; max-width: var(--container-max); margin: 0 auto; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.demo-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px; overflow: hidden; cursor: pointer; transition: all 0.4s; }
.demo-card:hover { border-color: rgba(201,164,92,0.4); transform: translateY(-5px); }
.demo-card-img { aspect-ratio: 9/16; background: linear-gradient(135deg, rgba(201,164,92,0.2), rgba(105,65,210,0.2)); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; }
.demo-card-body { padding: 16px; }
.demo-card-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.demo-card-meta { font-size: 12px; color: var(--text-tertiary); }
@media (max-width: 768px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } .demo-section { padding: 60px 16px; } }
/* ===== PROFILE ===== */
.profile-page { padding: 40px 52px 80px; max-width: 1100px; margin: 0 auto; }
.profile-user-card {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 32px;
  padding: 40px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
body.light .profile-user-card { background: #ffffff; border-color: rgba(0,0,0,0.08); backdrop-filter: none; }
.profile-avatar-section { text-align: center; position: relative; }
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  margin: 0 auto;
  box-shadow: 0 0 32px rgba(201,164,92,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-avatar:hover { transform: scale(1.05); box-shadow: 0 0 48px rgba(201,164,92,0.55); }
.avatar-picker {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  gap: 6px;
  padding: 10px 14px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.avatar-picker::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--glass-bg-strong);
}
.avatar-emoji-pick {
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  display: inline-block;
  line-height: 1;
}
.avatar-emoji-pick:hover { background: rgba(201,164,92,0.18); transform: scale(1.2); }
.profile-balance-card {
  background: var(--gradient-gold);
  color: #03030a;
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.profile-balance-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%);
}
.profile-balance-num { font-size: 56px; font-weight: 700; line-height: 1; margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(20px);
}
body.light .stat-card { background: #ffffff; border-color: rgba(0,0,0,0.08); backdrop-filter: none; }
.stat-card-num { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.stat-card-label { font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.5px; }
@media (max-width: 768px) {
  .profile-page { padding: 24px 16px 60px; }
  .profile-user-card { grid-template-columns: 1fr; padding: 24px; }
  .profile-balance-card { padding: 20px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Admin 后台 (C.10) ===== */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.admin-empty { padding: 80px 20px; text-align: center; color: var(--text-tertiary); font-size: 16px; }
.admin-loading { padding: 60px 20px; text-align: center; color: var(--text-tertiary); }
.admin-error { padding: 40px 20px; text-align: center; color: #f87171; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.admin-tab { padding: 10px 18px; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; transition: all 0.2s; }
.admin-tab:hover { color: var(--text-primary); background: rgba(201, 164, 92, 0.06); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-body { min-height: 400px; }

.admin-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search, .admin-select, select, option { padding: 8px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 13px; min-width: 180px; }
select option { background: #1a1a2e; color: #ffffff; }
body.light select option { background: #ffffff; color: #1a1a2e; }
body.light .admin-search, body.light .admin-select { background: #fff; }
.admin-btn { padding: 8px 16px; background: var(--accent); color: #03030a; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.admin-btn:hover { opacity: 0.85; }
.admin-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-btn-sm { padding: 4px 10px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; font-size: 12px; cursor: pointer; }
.admin-btn-sm:hover { background: var(--accent); color: #03030a; }
.admin-total { margin-left: auto; color: var(--text-tertiary); font-size: 13px; }
.admin-refresh { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.admin-tip { color: var(--text-tertiary); font-size: 12px; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: rgba(255,255,255,0.03); color: var(--text-tertiary); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
body.light .admin-table th { background: #f7f7f7; }
.admin-table tr:hover td { background: rgba(201, 164, 92, 0.04); }
.cell-id { font-family: 'SF Mono', Consolas, monospace; font-size: 12px; color: var(--text-tertiary); }
.cell-avatar { font-size: 20px; }
.cell-credits { font-weight: 600; color: var(--accent); }

.role-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.role-user { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }
.role-admin { background: rgba(201, 164, 92, 0.15); color: var(--accent); }

.status-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-pending, .status-processing { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-succeeded, .status-online { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-cancelled, .status-refunded { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }

.type-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.type-video { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.type-image { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.admin-pagination { display: flex; gap: 12px; align-items: center; margin-top: 16px; justify-content: center; color: var(--text-tertiary); font-size: 13px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 20px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); backdrop-filter: blur(20px); }
body.light .stat-card { background: #ffffff; border-color: rgba(0,0,0,0.08); backdrop-filter: none; }
.stat-card.stat-blue { border-left: 4px solid #3b82f6; }
.stat-card.stat-green { border-left: 4px solid #22c55e; }
.stat-card.stat-purple { border-left: 4px solid #a855f7; }
.stat-card.stat-gold { border-left: 4px solid #c9a45c; }
.stat-label { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: var(--text-tertiary); }

.stats-section h3 { font-size: 16px; margin: 0 0 12px; color: var(--text-primary); }
.task-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.status-item { padding: 14px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
body.light .status-item { background: #fff; }
.status-item strong { font-size: 20px; font-weight: 700; }
.status-pending strong { color: #f59e0b; }
.status-processing strong { color: #f59e0b; }
.status-success strong { color: #22c55e; }
.status-fail strong { color: #ef4444; }

.admin-section { margin-bottom: 32px; }
.admin-section h3 { font-size: 16px; margin: 0 0 16px; color: var(--text-primary); }
.vendors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.vendor-card { padding: 16px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
body.light .vendor-card { background: #fff; }

/* Light 主题 Footer */
body.light .footer { background: rgba(255,255,255,0.85); border-top-color: rgba(0,0,0,0.08); }
body.light .footer-inner h4 { color: rgba(26,24,38,0.80); }
body.light .footer-inner a { color: rgba(26,24,38,0.55); }
body.light .footer-inner a:hover { color: rgba(26,24,38,0.80); }
body.light .footer-bottom { border-top-color: rgba(0,0,0,0.08); color: rgba(26,24,38,0.35); }

/* Light 主题 Toast */
body.light .toast { background: rgba(255,255,255,0.96); border-color: rgba(0,0,0,0.10); color: var(--text-primary); }

/* Light 主题任务抽屉 */
body.light .task-drawer { background: rgba(240,239,234,0.98); border-left-color: rgba(0,0,0,0.10); }
body.light .drawer-head { border-bottom-color: rgba(0,0,0,0.08); }
body.light .drawer-clear-btn { border-color: rgba(0,0,0,0.12); color: rgba(26,24,38,0.60); }
body.light .drawer-clear-btn:hover { background: rgba(0,0,0,0.05); }

/* Light 主题文档/客服/反馈卡片 */
body.light .docs-card { background: #ffffff; border-color: rgba(0,0,0,0.09); }
body.light .support-card { background: #ffffff; border-color: rgba(0,0,0,0.09); }
body.light .feedback-form { background: #ffffff; border-color: rgba(0,0,0,0.09); }
body.light .feedback-form .form-input { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.10); }
body.light .feedback-form .form-input:focus { border-color: var(--accent-gold-deep); }

/* Light 主题汉堡菜单 */
body.light .hamburger { border-color: rgba(0,0,0,0.12); }
body.light .hamburger span { background: var(--text-primary); }
body.light .hamburger:hover { background: rgba(0,0,0,0.04); }

/* Light 主题 FAQ */
body.light .faq-item { border-bottom-color: rgba(0,0,0,0.08); }
body.light .support-qr-placeholder { background: rgba(0,0,0,0.03); }

/* Light 主题管理后台 */
body.light .admin-table-wrap { border-color: rgba(0,0,0,0.08); }
body.light .admin-tab:hover { background: rgba(0,0,0,0.04); }
body.light .admin-search, body.light .admin-select { border-color: rgba(0,0,0,0.12); }
body.light .admin-tip { color: rgba(26,24,38,0.35); }
body.light .admin-table tr:hover td { background: rgba(0,0,0,0.02); }

/* Light 主题积分页 */
body.light .credits-page { background: transparent; }
body.light .credits-balance-card { background: #ffffff; border-color: rgba(0,0,0,0.08); }
body.light .credits-section { background: #ffffff; border-color: rgba(0,0,0,0.08); }
body.light .credits-item { border-bottom-color: rgba(0,0,0,0.06); }

/* Light 主题个人页 */
body.light .profile-avatar { box-shadow: 0 0 32px rgba(160,110,26,0.30); }
body.light .profile-avatar:hover { box-shadow: 0 0 48px rgba(160,110,26,0.45); }

/* Light 主题 Modal */
body.light .modal { background: rgba(242,241,236,0.97); box-shadow: 0 32px 64px rgba(0,0,0,0.14); }
body.light .modal-title { background: linear-gradient(180deg,#1a1826 0%,rgba(26,24,38,0.88) 100%); -webkit-background-clip: text; background-clip: text; }
body.light .form-input { background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.12); color: var(--text-primary); }
body.light .form-input:focus { border-color: var(--accent-gold-deep); }
body.light .form-submit { box-shadow: 0 4px 16px rgba(160,110,26,0.30); }
.vendor-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.vendor-base { font-size: 12px; color: var(--text-tertiary); font-family: 'SF Mono', Consolas, monospace; margin-bottom: 8px; }
.vendor-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); }
.vendor-status { font-weight: 600; }
.vendor-online { color: #22c55e; }

/* ===== 文档/客服/反馈页面通用 ===== */
.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.page-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 文档卡片网格 */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}
.docs-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.docs-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.docs-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.docs-card ol, .docs-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.docs-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.docs-card ul { list-style: disc; }

/* 客服页面 */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}
.support-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  text-align: center;
}
.support-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.support-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.support-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.support-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 36px;
}
.faq-item {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 反馈表单 */
.feedback-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
}
.feedback-form .form-group {
  margin-bottom: 18px;
}
.feedback-form .form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
}
.feedback-form .form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.feedback-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .page-container { padding: 24px 16px 60px; }
  .page-title { font-size: 26px; }
  .docs-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .feedback-form { padding: 20px; }
}

/* ===== 移动端导航栏 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  transition: all 0.3s;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3,3,10,0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    border-bottom: 1px solid var(--glass-border);
    pointer-events: none;
  }
  body.light .nav-links { background: rgba(242,241,236,0.98); }
  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    text-align: left;
    border-radius: 8px;
  }
  .nav-links .nav-link:hover {
    background: var(--glass-bg-hover);
  }
  .navbar { padding: 10px 16px; }
  .user-section { gap: 6px; }
  .user-section .credits-badge { padding: 6px 10px; font-size: 12px; }
  .icon-btn { width: 34px; height: 34px; font-size: 14px; }
  .btn-login { padding: 6px 14px; font-size: 12px; }
  .mode-badge { font-size: 10px; padding: 2px 8px !important; }
  /* 960以下隐藏桌面导航链接，显示汉堡菜单 */
  .nav-links:not(.mobile-open) { display: flex; } /* 保持flex以便动画 */
}

/* 小屏进一步优化 */
@media (max-width: 480px) {
  .navbar { padding: 8px 12px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .logo-cn { font-size: 16px; }
  .logo-en { display: none; }
  .user-section .credits-badge { display: none; }
  .user-section .icon-btn[data-bell] { display: none; }
  .user-section #userMenu { display: flex !important; gap: 4px; }
  .user-section #userMenu .credits-badge { display: flex; padding: 4px 8px; font-size: 11px; }
}

/* Hero 移动端优化 */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 40px !important; }
  .hero-title { font-size: 28px !important; }
  .hero-title .highlight { font-size: 32px !important; }
  .hero-subtitle { font-size: 14px !important; }
  .hero-stats { flex-wrap: wrap; gap: 12px !important; }
  .hero-stats .stat-item { min-width: 80px; }
  .hero-stats .stat-divider { display: none; }
}

/* 工作区移动端优化 */
@media (max-width: 768px) {
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-right { position: static; max-height: 300px; margin-top: 16px; }
  .tool-selector { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .workspace-card { padding: 20px 16px; }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 更小屏(480以下)精细调整 */
@media (max-width: 480px) {
  .hero-title { font-size: 24px !important; }
  .hero-title .highlight { font-size: 26px !important; }
  .hero-stats { gap: 8px !important; }
  .hero-stats .stat-item { min-width: 60px; }
  .hero-stats .stat-item .stat-num { font-size: 20px !important; }
  .hero-stats .stat-item .stat-label { font-size: 10px !important; }
  .btn-hero-primary { padding: 14px 28px; font-size: 14px; }
  .btn-hero-secondary { padding: 14px 28px; font-size: 14px; }
  .hero-cta { flex-direction: column; gap: 10px; width: 100%; }
  .hero-cta a, .hero-cta button { width: 100%; max-width: 280px; justify-content: center; }
  .section-title { font-size: 22px; }
  .section-desc { font-size: 14px; }
  .section { padding: 40px 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-selector { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .footer { padding: 30px 16px 20px; }
  .footer-inner { gap: 20px; }
  .footer-brand p { font-size: 12px; }
  .page-title { font-size: 22px; }
  .page-container { padding: 20px 12px 40px; }
  .docs-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .feedback-form { padding: 16px; }
  .credits-page { padding: 20px 12px 40px; }
  .credits-balance-card { padding: 24px; }
  .profile-page { padding: 16px 12px 40px; }
  .profile-user-card { padding: 16px; }
  .profile-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px; }
  .stat-card-num { font-size: 24px; }
  .admin-container { padding: 12px; }
  .admin-tabs { gap: 4px; }
  .admin-tab { padding: 8px 10px; font-size: 12px; }
  .admin-table th, .admin-table td { padding: 6px 8px; font-size: 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* 主题切换过渡动画 */
body { transition: background 0.4s ease, color 0.4s ease; }
body::before { transition: background 0.4s ease, opacity 0.4s ease; }
.navbar { transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.page, .footer, .modal, .toast, .drawer-bg { transition: background 0.3s ease, color 0.3s ease; }

/* ===== 移动端任务队列抽屉 ===== */
@media (max-width: 768px) {
  .task-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .drawer-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .drawer-head-title { font-size: 14px; }
}

/* ===== 移动端登录模态框 ===== */
@media (max-width: 480px) {
  .modal {
    width: 92% !important;
    max-width: 92% !important;
    padding: 24px 20px !important;
    margin: 0 auto;
  }
  .modal-header h3 { font-size: 18px; }
  .modal-header p { font-size: 13px; }
}

/* ===== 移动端 Toast 容器 ===== */
@media (max-width: 480px) {
  .toast-container {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .toast {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* ===== 移动端图片上传区域 ===== */
@media (max-width: 480px) {
  .upload-slim { flex-wrap: wrap; }
  .image-preview { max-width: 100%; }
  .image-preview img { width: 100%; height: auto; }
  .image-upload-area { min-height: 120px; }
  .image-upload-area .upload-label { font-size: 13px; }
}

/* ===== 移动端参数区 ===== */
@media (max-width: 480px) {
  .ws-params-grid { grid-template-columns: 1fr; }
  .param-item label { font-size: 12px; }
  .param-item select, .param-item input { font-size: 13px; }
  .ws-tool-header { flex-wrap: wrap; }
  .generate-btn { width: 100%; justify-content: center; }
}

/* ===== 电商主图模块 ===== */
.ecom-mode-tabs { display: flex; gap: 0; margin-bottom: 20px; background: var(--glass-bg); border-radius: 12px; padding: 4px; border: 1px solid var(--glass-border); }
.ecom-mode-btn { flex: 1; padding: 10px 16px; border: none; background: transparent; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 10px; transition: all 0.2s; }
.ecom-mode-btn.active { background: var(--accent-gold); color: #000; }

.ecom-batch-product { margin-bottom: 10px; padding: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; }
.ecom-batch-product-row { display: flex; align-items: center; gap: 8px; }
.ecom-batch-upload { width: 80px; height: 60px; border: 2px dashed var(--glass-border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.ecom-batch-upload:hover { border-color: var(--accent-gold); }
.ecom-batch-upload-icon { font-size: 20px; }
.ecom-batch-upload-text { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.ecom-batch-remove { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,80,80,0.3); background: transparent; color: #ff6b6b; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ecom-batch-remove:hover { background: rgba(255,80,80,0.15); }

/* 结果网格 */
.ecom-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ecom-result-title { font-size: 16px; font-weight: 600; }
.ecom-result-badge { font-size: 12px; padding: 4px 12px; background: var(--accent-gold); color: #000; border-radius: 20px; font-weight: 500; }

.ecom-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ecom-result-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; }
.ecom-result-card-label { font-size: 13px; font-weight: 500; padding: 10px 12px 6px; color: var(--text-secondary); }
.ecom-result-card-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 12px; min-height: 140px; color: var(--text-tertiary); font-size: 13px; }
.ecom-result-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ecom-result-fail { font-size: 12px; color: #ff6b6b; }
.ecom-result-card-size { font-size: 11px; color: var(--text-tertiary); padding: 6px 12px 10px; }
.ecom-result-actions { display: flex; gap: 8px; }

/* 批量结果分组 */
.ecom-batch-group { margin-bottom: 20px; padding: 16px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; }
.ecom-batch-group-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--accent-gold); }
/* ===== 青虎风格首页 ===== */

/* Hero */
.qh-hero {
  position: relative;
  padding: 60px 52px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}
.qh-hero-bg {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(201,164,92,0.15) 0%, rgba(105,65,210,0.08) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.qh-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.qh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(201,164,92,0.15);
  border: 1px solid rgba(201,164,92,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 24px;
}
.qh-hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.qh-hero-title span:first-child {
  background: linear-gradient(135deg, #c9a45c, #e8c97a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qh-hero-highlight {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 56px;
}
.qh-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.qh-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.qh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #c9a45c, #dbb66c);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.qh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,164,92,0.35); }
.qh-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.qh-btn-secondary:hover { border-color: var(--accent-gold); background: rgba(201,164,92,0.1); }
.qh-btn-lg { padding: 16px 48px; font-size: 18px; }

.qh-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 24px 0;
}
.qh-stat { text-align: center; padding: 0 28px; }
.qh-stat-num { font-size: 32px; font-weight: 700; background: linear-gradient(135deg, #c9a45c, #e8c97a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.qh-stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.qh-stat-v { width: 1px; height: 40px; background: var(--glass-border); }

.qh-hero-matrix {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.qh-matrix-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.qh-matrix-tag span { font-size: 14px; }

/* 通用section */
.qh-section {
  padding: 60px 52px;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}
.qh-section-dark {
  background: var(--glass-bg);
  border-radius: 20px;
  margin: 20px auto;
  padding: 60px 52px;
}
.qh-section-cta {
  padding: 80px 52px;
  text-align: center;
}
.qh-section-cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #c9a45c, #e8c97a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qh-section-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.qh-section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201,164,92,0.12);
  border: 1px solid rgba(201,164,92,0.25);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.qh-section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.qh-section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* 产品卡片 */
.qh-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.qh-product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.qh-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,164,92,0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.qh-product-highlight {
  border-color: rgba(201,164,92,0.4);
  background: linear-gradient(135deg, var(--glass-bg), rgba(201,164,92,0.08));
}
.qh-product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.qh-product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qh-product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.qh-product-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}
.qh-badge-new {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

/* 三步 */
.qh-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}
.qh-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}
.qh-step:last-child { border-bottom: none; }
.qh-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c9a45c, #dbb66c);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.qh-step-content { flex: 1; }
.qh-step-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.qh-step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.qh-step-arrow {
  font-size: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* 用户评价 */
.qh-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.qh-testimonial {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.qh-testimonial-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.qh-testimonial-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.qh-testimonial-role {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.qh-testimonial-stats {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 2;
}
.qh-testimonial-stats span {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 15px;
}

/* 对比区 */
.qh-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.qh-compare-old, .qh-compare-new {
  padding: 24px;
  border-radius: 16px;
}
.qh-compare-old {
  background: rgba(255,80,80,0.06);
  border: 1px solid rgba(255,80,80,0.15);
}
.qh-compare-new {
  background: rgba(201,164,92,0.08);
  border: 1px solid rgba(201,164,92,0.25);
}
.qh-compare h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}
.qh-compare ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.qh-compare li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}
.qh-compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.qh-compare-old li::before { background: #ff6b6b; }
.qh-compare-new li::before { background: var(--accent-gold); }

/* 响应式 */
@media (max-width: 768px) {
  .qh-hero { padding: 40px 20px 30px; }
  .qh-hero-title { font-size: 32px; }
  .qh-hero-highlight { font-size: 36px; }
  .qh-hero-desc { font-size: 14px; }
  .qh-hero-stats { flex-wrap: wrap; gap: 8px; }
  .qh-stat { padding: 0 16px; }
  .qh-stat-num { font-size: 24px; }
  .qh-section { padding: 40px 20px; }
  .qh-section-title { font-size: 28px; }
  .qh-products { grid-template-columns: 1fr 1fr; }
  .qh-compare { grid-template-columns: 1fr; }
  .qh-testimonials { grid-template-columns: 1fr; }
  .qh-section-cta h2 { font-size: 28px; }
  .qh-step { flex-wrap: wrap; gap: 12px; }
  .qh-step-arrow { display: none; }
}
@media (max-width: 480px) {
  .qh-products { grid-template-columns: 1fr; }
  .qh-hero-cta { flex-direction: column; align-items: center; }
  .qh-hero-title { font-size: 26px; }
  .qh-hero-highlight { font-size: 28px; }
}

/* ===== ASE 智能复盘面板 ===== */
.review-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card, #13131a);
  border-left: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.review-panel.open { right: 0; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  flex-shrink: 0;
}
.review-title { font-size: 16px; font-weight: 600; }
.review-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg, rgba(255,255,255,0.06));
  color: var(--text, #f0f0f5);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-close:hover { background: rgba(255,80,80,0.2); }
.review-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.review-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  flex-shrink: 0;
}
.review-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  background: var(--glass-bg, rgba(255,255,255,0.06));
  color: var(--text, #f0f0f5);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.review-btn:hover { background: rgba(201,164,92,0.15); border-color: rgba(201,164,92,0.3); }
.review-loading, .review-empty, .review-error {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary, #8888a0);
  font-size: 14px;
}
.review-error { color: #ff6b6b; }
.review-section { margin-bottom: 20px; }
.review-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-gold, #c9a45c);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
}
.review-insight-card {
  background: rgba(201,164,92,0.08);
  border: 1px solid rgba(201,164,92,0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.review-insight-id { font-size: 10px; color: var(--accent-gold, #c9a45c); font-family: monospace; margin-bottom: 4px; }
.review-insight-text { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.review-insight-clarity { font-size: 11px; color: var(--text-tertiary, #555570); }
.review-crystal-card {
  background: var(--glass-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.review-crystal-card:hover {
  border-color: rgba(201,164,92,0.3);
  background: rgba(201,164,92,0.06);
}
.review-crystal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.review-crystal-id { font-size: 10px; color: var(--accent-gold, #c9a45c); font-family: monospace; }
.review-crystal-outcome { font-size: 14px; }
.review-crystal-event { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.review-crystal-facets { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.review-facet {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(201,164,92,0.1);
  border-radius: 8px;
  font-size: 10px;
  color: var(--accent-gold, #c9a45c);
}
.review-crystal-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-tertiary, #555570);
}
.review-back {
  padding: 6px 14px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  background: transparent;
  color: var(--text, #f0f0f5);
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.review-back:hover { background: rgba(201,164,92,0.1); }
.review-detail-card {
  background: var(--glass-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 12px;
}
.review-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.review-detail-row:last-child { border-bottom: none; }
.review-detail-row span:first-child { color: var(--text-secondary, #8888a0); }
.review-detail-row span:last-child { text-align: right; max-width: 60%; }

/* 复盘面板移动端适配 */
@media (max-width: 480px) {
  .review-panel {
    width: 100vw;
    right: -100vw;
  }
}

/* ===== ASE 性格按钮 ===== */
.persona-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 80px;
  padding: 14px 8px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  background: var(--glass-bg, rgba(255,255,255,0.04));
  color: var(--text, #f0f0f5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.persona-btn:hover {
  border-color: rgba(201,164,92,0.3);
  background: rgba(201,164,92,0.08);
}
.persona-btn.active {
  border-color: var(--accent-gold, #c9a45c);
  background: rgba(201,164,92,0.12);
  color: var(--accent-gold, #c9a45c);
}

/* ===== ASE 智能推荐 ===== */
.review-recommend {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(201,164,92,0.08), rgba(61,208,128,0.06));
  border: 1px solid rgba(201,164,92,0.25);
  border-radius: 14px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.rec-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent-gold, #c9a45c);
}
.rec-stat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.rec-stat-label { color: var(--text-secondary, #8888a0); }
.rec-stat-value { color: var(--text, #f0f0f5); font-weight: 500; }
.rec-rate-bar {
  position: relative;
  height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.rec-rate-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.8s ease;
}
.rec-rate-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.rec-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rec-template-item {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 11px;
}
.rec-tpl-name { display: block; font-weight: 500; margin-bottom: 2px; }
.rec-tpl-stat { display: block; color: var(--text-tertiary, #555570); }

/* ===== AI 对话模式 ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--glass-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: fadeIn 0.3s ease;
}
.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
}
.chat-msg-content {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 85%;
  word-break: break-word;
}
.chat-msg-user .chat-msg-content {
  background: rgba(201, 164, 92, 0.15);
  border-color: rgba(201, 164, 92, 0.3);
}
.chat-msg-ai .chat-msg-content {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
}
.chat-msg-error {
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, 0.3) !important;
}
.chat-input-row {
  display: flex;
  gap: 8px;
}
.chat-input-row input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus {
  border-color: var(--accent-gold);
}
.chat-input-row button {
  white-space: nowrap;
  padding: 0 20px;
  height: 46px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
