/* ==========================================================================
   火种AI起号助手 — 设计系统
   ========================================================================== */

:root {
  --primary: #ff2d55;
  --primary-dark: #e0244a;
  --primary-light: #ff6b85;
  --accent: #00d9c0;
  --bg: #0a0a0f;
  --surface: #15151f;
  --surface-2: #1e1e2d;
  --border: #2a2a3d;
  --text: #f5f5f7;
  --muted: #9999aa;
  --warn: #f59e0b;
  --ok: #22c55e;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --nav-h: 68px;
  --shadow-primary: 0 10px 34px rgba(255, 45, 85, 0.34);
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: rgba(255, 45, 85, 0.35);
  color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #2c2c40;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a52; }

/* ============================ 通用原子类 ============================ */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass {
  background: linear-gradient(160deg, rgba(30, 30, 45, 0.82), rgba(21, 21, 31, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-strong {
  background: linear-gradient(160deg, rgba(34, 34, 52, 0.95), rgba(18, 18, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.gradient-text {
  background: linear-gradient(96deg, #ff2d55 0%, #ff6b85 42%, #00d9c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 45, 85, 0.44);
  filter: brightness(1.05);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 45, 85, 0.5);
  background: rgba(255, 45, 85, 0.08);
}

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.card-hover {
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

/* ============================ 动画 ============================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.animate-fade-in-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.75, 0.28, 1) both;
}

.animate-fade-in { animation: fadeIn 0.5s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.75, 0.28, 1),
    transform 0.7s cubic-bezier(0.22, 0.75, 0.28, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================ 品牌标识 ============================ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--primary);
}

/* ============================ 落地页导航 ============================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(10, 10, 15, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) - 4px);
  left: 16px;
  right: 16px;
  z-index: 59;
  border-radius: var(--radius-lg);
  padding: 20px;
  flex-direction: column;
  gap: 6px;
  animation: fadeUp 0.3s ease both;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 11px 8px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 15px;
}

.nav-mobile a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 78px) 0 64px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 30px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.16);
  animation: pulseDot 2.2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(38px, 7.2vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18.5px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 38px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-cta .btn-primary {
  padding: 16px 34px;
  font-size: 16px;
  border-radius: 16px;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: #6f6f85;
}

/* ============================ 指标条 ============================ */

.stats {
  position: relative;
  z-index: 2;
  padding: 12px 0 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
}

.stat-card .stat-ico {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--primary);
  opacity: 0.92;
}

.stat-value {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label { font-size: 13.5px; color: var(--muted); }

/* ============================ 区块通用 ============================ */

.section { position: relative; padding: 88px 0; z-index: 2; }

.section-head {
  max-width: 680px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ============================ 功能卡 ============================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
      rgba(255, 45, 85, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card:hover::after { opacity: 1; }

.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-ico { transform: scale(1.08) rotate(-3deg); }

.feature-ico svg { width: 23px; height: 23px; }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card h3 .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5b5b73;
  font-weight: 500;
}

.feature-card p {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.78;
}

/* ============================ 步骤 ============================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #ff2d55, #00d9c0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card h3 { font-size: 16px; margin-bottom: 8px; }

.step-card p { font-size: 13.4px; color: var(--muted); line-height: 1.75; }

.step-arrow {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.42;
  z-index: 3;
}

.flow-panel {
  margin-top: 26px;
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
}

.flow-panel h3 { font-size: 22px; margin-bottom: 12px; }

.flow-panel > div > p { color: var(--muted); font-size: 14.2px; line-height: 1.85; }

.flow-list { display: flex; flex-direction: column; gap: 14px; }

.flow-item { display: flex; align-items: center; gap: 12px; }

.flow-item .badge {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.flow-item span { font-size: 13.6px; color: var(--muted); }

/* ============================ 末尾 CTA ============================ */

.cta-card {
  position: relative;
  border-radius: 30px;
  padding: 62px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--muted);
  max-width: 470px;
  margin: 0 auto 32px;
  font-size: 15.5px;
}

.cta-card .btn-primary {
  padding: 16px 38px;
  font-size: 16px;
}

/* ============================ 页脚 ============================ */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 0 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 45, 85, 0.03));
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 320px;
}

.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 12.5px;
  color: #7d7d95;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.18s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6b6b80;
}

/* ============================ 表单 ============================ */

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #c3c3d4;
  margin-bottom: 8px;
}

.field .hint {
  display: block;
  font-size: 12px;
  color: #6f6f85;
  margin-top: 6px;
  line-height: 1.6;
}

.input,
.textarea,
.select {
  width: 100%;
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder,
.textarea::placeholder { color: #5d5d72; }

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(255, 45, 85, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.12);
  background: rgba(10, 10, 15, 0.9);
}

.textarea { resize: vertical; min-height: 104px; line-height: 1.7; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239999aa' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

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

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.chip:hover { border-color: rgba(255, 45, 85, 0.4); color: var(--text); }

.chip.active {
  border-color: rgba(255, 45, 85, 0.7);
  background: rgba(255, 45, 85, 0.14);
  color: #fff;
}

/* ============================ 登录页 ============================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-side {
  position: relative;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.auth-side-inner { position: relative; z-index: 2; }

.auth-side h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.22;
  margin: 42px 0 18px;
}

.auth-side p.lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 400px;
}

.auth-points {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.auth-point { display: flex; gap: 13px; align-items: flex-start; }

.auth-point .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(0, 217, 192, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.auth-point b { display: block; font-size: 14px; font-weight: 650; }
.auth-point span { font-size: 13px; color: var(--muted); }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-box { width: 100%; max-width: 396px; }

.auth-box h1 { font-size: 27px; margin-bottom: 8px; }

.auth-box .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 26px;
}

.auth-tab {
  border: 0;
  background: transparent;
  padding: 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 45, 85, 0.3);
}

.auth-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-alt a { color: var(--primary-light); font-weight: 600; }

.auth-foot {
  margin-top: 30px;
  font-size: 12px;
  color: #63637a;
  text-align: center;
  line-height: 1.7;
}

.form-error {
  display: none;
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.34);
  color: #ff8ba0;
  font-size: 13px;
  padding: 10px 13px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.form-error.show { display: block; animation: fadeIn 0.2s ease; }

/* ============================ 工作台布局 ============================ */

.app-shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #101018, #0c0c13);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 40;
}

.sidebar .brand { padding: 4px 8px 22px; }

.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }

.side-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c72;
  padding: 16px 10px 8px;
  font-weight: 600;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  color: #a3a3b8;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  text-align: left;
  background: transparent;
  width: 100%;
}

.side-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: 0.85; }

.side-item:hover { background: rgba(255, 255, 255, 0.045); color: #fff; }

.side-item.active {
  background: rgba(255, 45, 85, 0.13);
  border-color: rgba(255, 45, 85, 0.32);
  color: #fff;
}

.side-item.active svg { color: var(--primary); opacity: 1; }

.side-item .tag {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 217, 192, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.side-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-top: 10px;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 11px;
  cursor: pointer;
}

.user-mini:hover { background: rgba(255, 255, 255, 0.045); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7a1c33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
}

.user-mini .um-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.user-mini .um-sub { font-size: 11.5px; color: #6f6f85; }

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 62px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar h1 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.topbar .crumb { font-size: 12.5px; color: #6f6f85; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.page { padding: 30px 28px 60px; max-width: 1180px; width: 100%; }

.page-head { margin-bottom: 26px; }

.page-head h2 { font-size: 25px; margin-bottom: 7px; }

.page-head p { color: var(--muted); font-size: 14px; }

/* ============================ 工作台组件 ============================ */

.panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }

.panel-head h3 .bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.split {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

.split-wide { grid-template-columns: 1fr 1fr; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(30, 30, 45, 0.75), rgba(18, 18, 27, 0.6));
}

.kpi .k-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.kpi .k-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.kpi .k-sub { font-size: 11.5px; color: #6f6f85; margin-top: 5px; }

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 46px 24px;
  text-align: center;
  color: var(--muted);
}

.empty .ico { font-size: 30px; margin-bottom: 10px; opacity: 0.5; }

.empty p { font-size: 13.5px; line-height: 1.75; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 217, 192, 0.09);
  border: 1px solid rgba(0, 217, 192, 0.22);
  color: #7ff0e2;
}

.tag.pink {
  background: rgba(255, 45, 85, 0.1);
  border-color: rgba(255, 45, 85, 0.26);
  color: #ff9dae;
}

.tag.gray {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #b6b6c8;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #cdcddd;
  letter-spacing: 0.02em;
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.prose-block { font-size: 14px; line-height: 1.9; color: #c8c8d8; white-space: pre-wrap; }

.list-clean { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.list-clean li {
  font-size: 13.8px;
  line-height: 1.8;
  color: #c0c0d2;
  padding-left: 18px;
  position: relative;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.6);
}

.list-num { counter-reset: n; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.list-num li {
  counter-increment: n;
  position: relative;
  padding-left: 34px;
  font-size: 13.8px;
  line-height: 1.8;
  color: #c0c0d2;
}

.list-num li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 45, 85, 0.14);
  border: 1px solid rgba(255, 45, 85, 0.3);
  color: #ff8fa3;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.script-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.script-card:hover { border-color: rgba(255, 45, 85, 0.32); transform: translateY(-2px); }

.script-card .sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.script-card .sc-title { font-size: 15px; font-weight: 700; line-height: 1.5; }

.script-card .sc-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7b7b92;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  flex: 0 0 auto;
}

.script-meta {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 7px 14px;
  font-size: 13px;
  line-height: 1.75;
}

.script-meta dt { color: #7d7d95; }
.script-meta dd { margin: 0; color: #cccce0; }

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.2px;
}

table.table th {
  text-align: left;
  font-weight: 600;
  color: #8a8aa0;
  font-size: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #c6c6d8;
  vertical-align: top;
}

table.table tr:last-child td { border-bottom: 0; }

table.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.bar-chart { display: flex; flex-direction: column; gap: 12px; }

.bar-row { display: grid; grid-template-columns: 96px 1fr 62px; align-items: center; gap: 12px; }

.bar-row .bl { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar-track { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.055); overflow: hidden; }

.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 0.75, 0.28, 1);
}

.bar-fill.teal { background: linear-gradient(90deg, #00b8a3, var(--accent)); }

.bar-row .bv { font-size: 12.5px; font-family: var(--font-mono); color: #d0d0e0; text-align: right; }

.diagnosis {
  border-left: 3px solid var(--primary);
  background: rgba(255, 45, 85, 0.055);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  font-size: 13.8px;
  line-height: 1.85;
  color: #d6d6e6;
}

.diagnosis.ok { border-left-color: var(--accent); background: rgba(0, 217, 192, 0.055); }
.diagnosis.warn { border-left-color: var(--warn); background: rgba(245, 158, 11, 0.06); }

.score-ring {
  --p: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #12121c;
}

.score-ring b {
  position: relative;
  z-index: 2;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.img-preview {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: #15151f;
}

.img-preview .ip-tag {
  position: relative;
  z-index: 2;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #e8e8f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.prompt-box {
  position: relative;
  background: #0b0b12;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
  font-family: var(--font-mono);
  font-size: 12.4px;
  line-height: 1.8;
  color: #b8d8d2;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

.copy-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(30, 30, 45, 0.9);
  color: var(--muted);
  cursor: pointer;
}

.copy-btn:hover { color: #fff; border-color: rgba(255, 45, 85, 0.5); }

.toast-wrap {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 11px 20px;
  border-radius: 11px;
  background: rgba(26, 26, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: #f0f0f5;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.25s ease both;
  max-width: 88vw;
}

.toast.ok { border-color: rgba(34, 197, 94, 0.4); }
.toast.err { border-color: rgba(255, 45, 85, 0.5); }

.loading-line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 22px 4px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 20px 0;
  border: 0;
}

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mini-note { font-size: 12px; color: #6f6f85; line-height: 1.7; }

.usage-list { display: flex; flex-direction: column; gap: 8px; }

.usage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: all 0.16s ease;
}

.usage-item:hover { border-color: rgba(255, 45, 85, 0.34); background: rgba(255, 45, 85, 0.05); }

.usage-item .u-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 45, 85, 0.12);
  color: var(--primary-light);
  flex: 0 0 auto;
}

.usage-item .u-name { font-size: 13.6px; font-weight: 600; }
.usage-item .u-desc { font-size: 11.8px; color: #7d7d95; }
.usage-item .u-go { margin-left: auto; color: #5b5b73; font-size: 16px; }

.progress-track { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }

.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  transition: width 0.8s ease;
}

/* 侧栏收起（移动端） */
.mobile-top {
  display: none;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 45;
}

/* ============================ 抖音账号关联 ============================ */

.btn-primary svg,
.btn-ghost svg { width: 16px; height: 16px; flex: 0 0 auto; }

.acct-wrap { margin-bottom: 20px; }

.acct-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.acct-empty-ico {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ff9dae;
  background: linear-gradient(140deg, rgba(255, 45, 85, 0.18), rgba(0, 217, 192, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.acct-empty-ico svg { width: 22px; height: 22px; }

.acct-empty-txt { flex: 1 1 300px; min-width: 0; }

.acct-empty-txt h3 { margin: 0 0 4px; font-size: 15.5px; }

.acct-empty-txt p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.acct-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.acct-perk {
  font-size: 12px;
  color: #a9a9bd;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.acct-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.acct-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(140deg, var(--primary), #7a2a6b 58%, var(--accent));
  box-shadow: 0 8px 26px rgba(255, 45, 85, 0.26);
}

.acct-id { flex: 1 1 210px; min-width: 0; }

.acct-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.acct-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.acct-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.acct-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.acct-metric { min-width: 0; }

.acct-metric .m-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.acct-metric .m-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.acct-metric .m-value small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}

.acct-metric .m-sub { font-size: 11.5px; color: #6f6f85; margin-top: 4px; }

.acct-insight {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 12.8px;
  line-height: 1.8;
  color: #c7f5ee;
  background: rgba(0, 217, 192, 0.05);
  border: 1px solid rgba(0, 217, 192, 0.16);
}

.acct-insight b { color: #8ff5e7; font-weight: 700; }

.acct-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.8px;
  color: #6f6f85;
}

/* ---------------------------- 弹窗 ---------------------------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 10, 0.74);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.16s ease;
}

.modal-mask[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #191926, #101018);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-head h3 { margin: 0 0 4px; font-size: 17px; }

.modal-head p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.modal-x {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.modal-x:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }

.modal-body .fm-row { margin-bottom: 14px; }

.modal-body .fm-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #cdcddd;
  margin-bottom: 7px;
}

.modal-body .fm-hint {
  font-size: 11.5px;
  color: #6f6f85;
  margin-top: 6px;
  line-height: 1.7;
}

.fm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fm-note {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.2px;
  line-height: 1.8;
  color: #b9b9cc;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.fm-note b { color: #e6e6f0; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ============================ 响应式 ============================ */

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .acct-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 258px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
    height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
  .sidebar.open { transform: none; }
  .mobile-top { display: flex; }
  .topbar { height: 56px; padding: 0 16px; }
  .page { padding: 20px 16px 60px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .flow-panel { grid-template-columns: 1fr; padding: 26px; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .section { padding: 62px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 18px; }
  .cta-card { padding: 44px 22px; border-radius: 22px; }
  .footer-cols { gap: 34px; }
  .script-meta { grid-template-columns: 68px 1fr; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 21px; }
  .nav-actions .btn-primary { padding: 9px 15px; font-size: 13.5px; }
  .hero-cta .btn-primary { width: 100%; }
  .split-wide { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .bar-row { grid-template-columns: 74px 1fr 52px; gap: 8px; }
  .page-head h2 { font-size: 21px; }
  .acct-empty { gap: 12px; }
  .acct-empty .btn-primary { width: 100%; justify-content: center; }
  .acct-avatar { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }
  .acct-name { font-size: 15px; }
  .acct-actions { width: 100%; }
  .acct-actions .btn-ghost { flex: 1; justify-content: center; }
  .acct-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .acct-metric .m-value { font-size: 19px; }
  .fm-grid { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .modal-foot .btn-ghost, .modal-foot .btn-primary { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
