/* ==========================================================================
   AIOPC.work — Design System（深色高级风 · 深蓝 + 金线 · 纯排版）
   原则：图说话、字极简、去图标花哨。层级靠留白、细线与金线，不靠特效。
   ========================================================================== */

/* ---------- Tokens：深色（默认） ---------- */
:root {
  --bg:            #0a1226;   /* 深蓝：可见蓝调，非纯黑 */
  --bg-2:          #0c1730;   /* 略亮 band 分隔带 */
  --surface:       #111d38;   /* 面板 / 卡片表面，带蓝调 */
  --surface-2:     #18243f;   /* 嵌套表面 */
  --border:        #243352;   /* 低对比细线 */
  --border-strong: #34466c;

  --text:          #f4f7fc;
  --text-2:        #aab6cc;   /* 提亮，保证正文 ≥ 4.5:1 */
  --text-3:        #7d8aa6;   /* 仅用于装饰性弱文，约 4.0:1 */
  --text-inverse:  #0a1226;

  --gold:          #d8b074;   /* 金线 / 点缀，克制使用 */
  --gold-soft:     rgba(216, 176, 116, .08);
  --gold-line:     rgba(216, 176, 116, .32);
  --blue:          #4a7bf0;   /* 深蓝强调，用于链接与数据点 */
  --blue-soft:     rgba(74, 123, 240, .12);
  --blue-border:   rgba(74, 123, 240, .35);

  --success:       #4cc38a;
  --success-soft:  rgba(76, 195, 138, .10);
  --warn:          #e0a64a;
  --warn-soft:     rgba(224, 166, 74, .10);
  --danger:        #e8736b;
  --danger-soft:   rgba(232, 115, 107, .10);

  --ring:          rgba(216, 176, 116, .40);
  --shadow:        0 24px 70px rgba(0, 0, 0, .50);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .35);

  /* 间距刻度 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* ---------- Tokens：亮色（备选） ---------- */
:root[data-theme="light"] {
  --bg:            #ffffff;
  --bg-2:          #f6f8fb;
  --surface:       #ffffff;
  --surface-2:     #f3f6fb;
  --border:        #e6e9f1;
  --border-strong: #d3d9e6;

  --text:          #0c1220;
  --text-2:        #56607a;
  --text-3:        #8b94a8;
  --text-inverse:  #ffffff;

  --gold:          #a87c34;
  --gold-soft:     rgba(168, 124, 52, .08);
  --gold-line:     rgba(168, 124, 52, .30);
  --blue:          #2f6bff;
  --blue-soft:     rgba(47, 107, 255, .10);
  --blue-border:   rgba(47, 107, 255, .30);

  --success:       #1f9d6b;
  --success-soft:  #ecfdf5;
  --warn:          #b5781f;
  --warn-soft:     #fffbeb;
  --danger:        #c0392b;
  --danger-soft:   #fef2f2;

  --ring:          rgba(168, 124, 52, .40);
  --shadow:        0 12px 44px rgba(12, 18, 32, .10);
  --shadow-sm:     0 1px 2px rgba(12, 18, 32, .06);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(74, 123, 240, .14), transparent 62%),
    radial-gradient(900px 500px at 100% 0%, rgba(216, 176, 116, .06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.muted { color: var(--text-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 200;
  background: var(--surface); color: var(--text);
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  transition: top .15s;
}
.skip-link:focus { top: var(--s4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 var(--s4); font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .i { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand .logo { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links > a:not(.btn) { color: var(--text-2); font-size: 15px; transition: color .15s; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-md);
  color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* 主题图标：默认(dark)显示太阳，light 显示月亮 */
.icon-sun { display: block; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  opacity: .6;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s8); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  letter-spacing: .02em; margin-bottom: var(--s5);
}
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px var(--gold-soft); }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px); line-height: 1.12;
  margin-bottom: var(--s5); letter-spacing: -0.035em; font-weight: 600;
}
.hero .lead { font-size: 18.5px; color: var(--text-2); max-width: 520px; margin-bottom: var(--s6); line-height: 1.7; }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero-note { margin-top: var(--s4); font-size: 13.5px; color: var(--text-3); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4);
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.stats > div { text-align: center; }
.stats dd, .stats dt { margin: 0; }
.stats .num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats .lbl { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.hero-art { position: relative; }
.hero-art::after {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  opacity: .7; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.hero-art .panel-art {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(74, 123, 240, .12), transparent 60%),
    linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s6) var(--s5) var(--s5); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-art .panel-art .al { fill: var(--text-2); }
.hero-art .panel-art .al-g { fill: var(--gold); }
.hero-art .art-cap {
  margin-top: var(--s4); font-size: 12.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.hero-art .art-cap::before { content: ""; width: 14px; height: 1px; background: var(--gold-line); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 9vw, 128px) 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 660px; margin: 0 auto var(--s8); text-align: center; }
.section-head .kicker {
  font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); display: inline-block; margin-bottom: var(--s3);
}
.section-head h2 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: var(--s3); letter-spacing: -0.025em; }
.section-head p { color: var(--text-2); font-size: 16.5px; }

/* ---------- Cards（纯排版，无图标） ---------- */
.grid { display: grid; gap: var(--s4); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6) var(--s5); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .idx {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold);
  font-variant-numeric: tabular-nums; display: inline-block; margin-bottom: var(--s3);
  padding: 2px 9px; border-radius: 6px;
}
.card h3 { font-size: 17px; margin-bottom: var(--s2); letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.8px; line-height: 1.7; }

/* 首页：核心卡片高亮 + 免费标签 */
.card.is-primary { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line); }
.card.is-primary .idx { color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.tag-free { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-border); }

/* 首页：9.9 引流品条 */
.starter-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-lg); padding: var(--s5) var(--s6); margin-bottom: var(--s6); }
.st-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .04em; margin-bottom: 6px; }
.st-title { font-size: 18px; font-weight: 600; color: var(--text); }
.st-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; max-width: 640px; line-height: 1.6; }
.starter-bar .btn { flex: none; }

/* 首页：收入角色说明 */
.roles-note { margin-top: var(--s5); font-size: 13.5px; color: var(--text-3); text-align: center; line-height: 1.7; }

/* 工作台：匿名产品资产 */
.asset-line { font-size: 12.5px; color: var(--text-3); margin: 0; padding: 9px var(--s5); border-bottom: 1px solid var(--border); background: var(--bg-2); }

.tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 1px var(--s2); border-radius: 5px; vertical-align: 2px; margin-left: 6px; }
.tag-new { color: var(--gold); border: 1px solid var(--gold-line); }

/* ---------- Pricing（金线区分推荐项） ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6) var(--s5); display: flex; flex-direction: column; position: relative;
  transition: border-color .2s, transform .2s;
}
.price-card:hover { transform: translateY(-2px); }
.price-card.pop { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line), var(--shadow); }
.price-card .badge {
  position: absolute; top: -11px; left: var(--s5);
  background: var(--gold); color: var(--text-inverse);
  font-size: 11.5px; font-weight: 600; padding: 3px var(--s3); border-radius: 999px;
}
.price-card h3 { font-size: 16px; color: var(--text-2); font-weight: 500; }
.price-card .price { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin: var(--s2) 0 var(--s1); line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.price-card .price small { font-size: 15px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.price-card .sub { color: var(--text-3); font-size: 14px; }
.price-card ul { list-style: none; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); }
.price-card li { font-size: 14.5px; color: var(--text-2); display: flex; gap: var(--s2); align-items: flex-start; }
.price-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex: none; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: var(--s5) var(--s1); font-size: 16.5px; font-weight: 500; color: var(--text);
}
.faq-q .chev { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: transform .2s; }
.faq-item[data-open="true"] .chev { transform: rotate(180deg); color: var(--gold); }
.faq-a { display: none; padding: 0 var(--s1) var(--s5); color: var(--text-2); font-size: 15.2px; max-width: 640px; line-height: 1.75; }
.faq-item[data-open="true"] .faq-a { display: block; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(48px, 7vw, 80px) var(--s5);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--s3); letter-spacing: -0.02em; }
.cta p { color: var(--text-2); margin-bottom: var(--s6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--s7) 0; background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.footer-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-note { color: var(--text-3); font-size: 13.5px; max-width: 420px; line-height: 1.7; }

/* ==========================================================================
   Warroom
   ========================================================================== */
.wr-head { padding: clamp(56px, 7vw, 88px) 0 var(--s5); }
.wr-head h1 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.03em; margin-bottom: var(--s2); }
.wr-head p { color: var(--text-2); font-size: 16px; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-bottom: var(--s4); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.panel-head h2 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: var(--s2); }
.panel-head .hint { font-size: 13px; color: var(--text-3); }
.panel-body { padding: var(--s5); }
.panel-body > p.intro { color: var(--text-2); font-size: 14.5px; margin-bottom: var(--s5); line-height: 1.7; }

.wr-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s4); align-items: start; }

/* feed */
.feed-list { display: grid; gap: var(--s2); max-height: 520px; overflow-y: auto; }
.feed-item {
  display: block; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s3) var(--s4); transition: border-color .15s, background-color .15s;
}
.feed-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feed-item .tt { font-weight: 500; font-size: 15px; line-height: 1.5; }
.feed-item .meta { font-size: 12.5px; color: var(--text-2); margin-top: var(--s1); display: flex; gap: var(--s3); flex-wrap: wrap; }
.feed-item .src { color: var(--gold); }
.feed-item .desc { color: var(--text-2); font-size: 13.5px; margin-top: var(--s1); }
.status-line { font-size: 13px; color: var(--text-3); margin-top: var(--s3); display: flex; align-items: center; gap: 6px; }
.status-line.warn { color: var(--warn); }

.skel { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.skel-line { height: 11px; border-radius: 4px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.skel-line + .skel-line { margin-top: var(--s2); }
.skel-line.w60 { width: 60%; } .skel-line.w85 { width: 85%; } .skel-line.w40 { width: 40%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 政策 / 税务 / 城市 */
.policy-item { padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.policy-item:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-item .lv { font-size: 11.5px; font-weight: 500; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 1px 7px; border-radius: 5px; display: inline-block; }
.policy-item .tt { font-weight: 500; font-size: 14.8px; margin-top: 5px; }
.policy-item .dd { color: var(--text-2); font-size: 13.8px; }

.redline { border-left: 2px solid var(--danger); background: var(--danger-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--s3) var(--s4); margin-bottom: var(--s2); }
.redline .t { color: var(--danger); font-weight: 500; font-size: 14.2px; }
.redline .d { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.notebox { border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: 13.5px; color: var(--text-2); margin-top: var(--s3); }
.notebox .t { font-weight: 500; color: var(--text); margin-bottom: var(--s1); }

.city-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.city {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s3); cursor: pointer; min-height: 44px;
  transition: border-color .15s, background-color .15s;
}
.city:hover { border-color: var(--border-strong); background: var(--surface-2); }
.city[aria-pressed="true"] { border-color: var(--gold-line); background: var(--gold-soft); }
.city .nm { font-weight: 500; font-size: 14.5px; }
.city .dd { color: var(--text-2); font-size: 12.8px; line-height: 1.5; }
.city-detail { margin-top: var(--s3); font-size: 13.8px; color: var(--text-2); min-height: 20px; }

/* 自检 */
.check-item { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: 14.5px; cursor: pointer; }
.check-item:last-of-type { border-bottom: 0; }
.check-item input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); cursor: pointer; }
.result-box { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md); font-size: 14.5px; border: 1px solid var(--border); background: var(--bg-2); }
.result-box.good { border-color: var(--success); background: var(--success-soft); }
.result-box.mid  { border-color: var(--warn); background: var(--warn-soft); }

/* 生成器表单 */
.field { margin-bottom: var(--s5); }
.field-label { display: flex; align-items: baseline; gap: var(--s2); font-size: 14.5px; font-weight: 500; margin-bottom: var(--s3); }
.field-label .idx { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.field-label .opt { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-height: 42px; padding: 0 var(--s4); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 14.5px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.field.invalid .chips { outline: 2px solid var(--danger); outline-offset: 6px; border-radius: var(--r-md); }
.field-error { display: none; color: var(--danger); font-size: 13.2px; margin-top: var(--s2); }
.field.invalid .field-error { display: block; }

.gen-actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

.plan-out { margin-top: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); background: var(--bg-2); }
.plan-out h3 { font-size: 17px; margin-bottom: var(--s2); }
.plan-out .plan-desc { color: var(--text-2); font-size: 14.5px; margin-bottom: var(--s5); }
.phase { margin-bottom: var(--s5); }
.phase:last-child { margin-bottom: 0; }
.phase .ph { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s2); }
.phase ul { list-style: none; display: grid; gap: var(--s2); }
.phase li { font-size: 14.5px; color: var(--text-2); padding-left: var(--s4); position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.phase .plain { font-size: 14.5px; color: var(--text-2); }
.warnbox { border-left: 2px solid var(--warn); background: var(--warn-soft); padding: var(--s3) var(--s4); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13.8px; color: var(--text-2); }
.plan-out .m-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s3); background: var(--surface); }
.plan-out .m-card h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.plan-out .kv { font-size: 13.5px; margin-top: 7px; line-height: 1.55; }
.plan-out .kv b { color: var(--text); font-weight: 600; margin-right: 2px; }
.plan-out .kv.risk b { color: var(--danger); }
.plan-out .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.plan-out .tools span { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.plan-out .fit-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-border); padding: 3px 11px; border-radius: 999px; margin-bottom: var(--s3); }

/* 提问 */
.ask-form { display: grid; gap: var(--s3); }
.ask-form textarea {
  width: 100%; min-height: 92px; resize: vertical; padding: var(--s3) var(--s4);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; line-height: 1.6;
}
.ask-form textarea::placeholder { color: var(--text-3); }
.ask-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.ask-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.answer { margin-top: var(--s4); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-2); font-size: 14.8px; white-space: pre-wrap; line-height: 1.7; }
.answer .who { display: block; font-size: 12px; color: var(--text-3); margin-bottom: var(--s2); white-space: normal; }

.disclaimer { border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--r-md); padding: var(--s4); font-size: 13.2px; color: var(--text-3); margin-bottom: var(--s7); line-height: 1.7; }

/* ---------- Toast / Back to top ---------- */
.toast {
  position: fixed; bottom: var(--s5); left: 50%; z-index: 100;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  padding: var(--s3) var(--s5); border-radius: var(--r-md);
  font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.to-top {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 60;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 50%;
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s, color .15s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Legal ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) 0; }
.legal h1 { font-size: 32px; margin-bottom: var(--s2); letter-spacing: -0.025em; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: var(--s7); }
.legal h2 { font-size: 19px; margin: var(--s7) 0 var(--s3); letter-spacing: -0.01em; color: var(--text); }
.legal p { color: var(--text-2); margin-bottom: var(--s3); font-size: 15.2px; line-height: 1.8; }
.legal ul { list-style: none; display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.legal li { color: var(--text-2); font-size: 15.2px; padding-left: var(--s4); position: relative; line-height: 1.8; }
.legal li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.legal .notice { border: 1px solid var(--gold); background: var(--bg-2); border-radius: var(--r-md); padding: var(--s4); font-size: 13.6px; color: var(--text-2); margin-bottom: var(--s7); line-height: 1.7; }
.legal .notice p { margin-bottom: var(--s2); }
.legal .notice p:last-child { margin-bottom: 0; }
.legal .notice strong { color: var(--text); }
.legal-list { list-style: decimal; padding-left: var(--s5); display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.legal-list li { padding-left: 0; }
.legal-list li::before { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: clamp(56px, 12vw, 80px) 0 var(--s6); }
  .hero-grid, .wr-cols { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-art { order: -1; max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s2) var(--s5) var(--s5);
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: var(--s3); }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding: 0 var(--s4); }
  .grid-4, .grid-2, .city-map { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: var(--s4); text-align: left; }
  .stats > div { text-align: left; }
  .panel-body, .panel-head { padding-left: var(--s4); padding-right: var(--s4); }
  .hero .lead { font-size: 16.5px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { flex-direction: column; gap: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .to-top, .toast, .gen-actions, .ask-form { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- 首页加微信私域转化 ---------- */
.wechat-lead { padding: var(--s7) 0; text-align: center; }
.wechat-lead .section-head { margin-bottom: var(--s5); }
.wechat-lead .section-head p b { color: var(--gold); }
.wl-qr {
  width: 200px; margin: 0 auto var(--s2); border-radius: 8px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm);
}
.wl-qr img { width: 100%; height: auto; display: block; }
.wl-id { font-size: 13px; color: var(--text-3); margin: 0; }
.wl-id b { color: var(--text-1); font-weight: 600; }
