/* ==========================================================================
   WaimaoBuilder — Design System
   单一事实来源：所有颜色/间距/圆角/阴影/动效都从这里出发。
   迁移到 Tailwind 时，把 :root 抄进 theme.extend 即可。
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* 品牌主色：信任蓝。B 端老板对蓝色的"正规感"认知最强 */
  --brand-50:  #EEF4FF;
  --brand-100: #DCE7FF;
  --brand-200: #B9CEFF;
  --brand-300: #8FADFF;
  --brand-400: #5B8CFF;
  --brand-500: #2F6BFF;
  --brand-600: #1D4FE0;
  --brand-700: #163CAC;

  /* 科技辅色：青。只用于 AI / 数据 / 实时感的点缀 */
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;

  /* 价值辅色：金。只用于"结果 / 收益 / 询盘"这类钱相关的强调 */
  --gold-300: #FCD34D;
  --gold-400: #F5B301;
  --gold-500: #D98E00;

  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #F43F5E;

  /* 深色轨（产品界面） */
  --ink-950: #04070F;
  --ink-900: #060B18;
  --ink-850: #0A1122;
  --ink-800: #0E1729;
  --ink-700: #16203A;
  --ink-600: #1F2C4C;
  --ink-500: #2C3A5E;

  /* 浅色轨（营销页面） */
  --paper:   #F5F7FC;
  --paper-2: #EDF1F9;
  --paper-50:  #FAFBFE;   /* 输入框/拖拽区底色 */
  --paper-100: #F0F3FA;   /* 次级面、hover 底 */
  --paper-500: rgba(255,255,255,.62);  /* 深色页脚正文 */
  --white:   #FFFFFF;

  --text-1: #0B1220;   /* 主文本 */
  --text-2: #3E4A63;   /* 次文本 */
  --text-3: #6B7794;   /* 弱文本 */
  --text-inv-1: #F2F6FF;
  --text-inv-2: #A7B4D0;
  --text-inv-3: #6E7C9C;

  --line:     #E2E8F4;
  --line-2:   #D3DBEB;
  --line-dark:rgba(255,255,255,.09);

  /* 圆角：只有 3 档，克制才有秩序 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* 阴影：营销页用柔和大阴影撑"高级感"，产品页几乎不用阴影靠描边 */
  --sh-xs: 0 1px 2px rgba(11,18,32,.06);
  --sh-sm: 0 2px 8px rgba(11,18,32,.06), 0 1px 2px rgba(11,18,32,.04);
  --sh-md: 0 8px 24px rgba(11,18,32,.08), 0 2px 6px rgba(11,18,32,.04);
  --sh-lg: 0 24px 60px rgba(11,18,32,.12), 0 6px 16px rgba(11,18,32,.06);
  --sh-brand: 0 12px 32px rgba(47,107,255,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --maxw: 1200px;
  --maxw-narrow: 860px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand-200); color: var(--brand-700); }

/* 滚动条：深色面板里默认滚动条会破坏质感 */
.scroll-slim::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-slim::-webkit-scrollbar-track { background: transparent; }
.scroll-slim::-webkit-scrollbar-thumb { background: rgba(140,160,200,.28); border-radius: 99px; }
.scroll-slim::-webkit-scrollbar-thumb:hover { background: rgba(140,160,200,.45); }

/* 图标占位符：JS 注入 SVG 之后由这条规则负责居中。
   这里是基础层，放在所有组件之前 —— .icon-tile / .step-dot / .sc-check 等
   容器可以用自己的 display 覆盖它（同权重、后出现者胜），覆盖后依然是居中的。
   切记不要在 JS 里写行内 display：行内样式会顶掉容器自己的布局与显隐控制。 */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
[data-icon] > svg { display: block; flex: none; }

/* 执行动作的控件必须是 <button>，不能是 <a href="#">：
   否则键盘 Enter/Space 行为、右键「在新标签打开」、屏幕阅读器读出的角色全是错的。
   但这些 button 要沿用链接或药丸的外观，所以先抹掉浏览器的默认按钮样式。
   :where() 的特异性为 0，因此 .irow.on / .chip.on 这类状态类照旧胜出，
   不会被这条兜底反向覆盖——这正是这里必须用 :where() 而不是普通选择器的原因。 */
button.btn, button.chip, button.filter, button.lang-pill, button.irow,
button.link, button.term-hint, button.link-arrow, button.tag-mini {
  font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
}
:where(button.link, button.term-hint, button.link-arrow, button.irow) {
  background: none; border: 0; padding: 0; color: inherit; text-align: inherit;
}
:where(button.irow) { width: 100%; display: block; }

/* 中文段落里夹着长英文词组、型号或网址时，浏览器默认不会在词内断行，
   于是那一行会把容器顶破——在手机上表现为整页横向滚动 2–30px。
   break-word 只在实在没有其它断行机会时才拆词，不影响正常中英混排。 */
p, .small, .body, .lead, .micro, .quote, td, th { overflow-wrap: break-word; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { width: 100%; max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.col { display: flex; flex-direction: column; }
.wrapcol { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 4. Typography ---------- */
.display  { font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -.025em; }
.h3 { font-size: 22px; font-weight: 700; }
.h4 { font-size: 17px; font-weight: 700; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.75; }
.body { font-size: 15px; color: var(--text-2); }
.small { font-size: 13.5px; color: var(--text-3); }
.micro { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--text-3); }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.balance { text-wrap: balance; }

.grad-text {
  background: linear-gradient(96deg, var(--brand-500) 0%, var(--cyan-400) 55%, var(--brand-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-warm {
  background: linear-gradient(96deg, var(--gold-400), #FF8A3D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mark {
  background: linear-gradient(transparent 62%, rgba(245,179,1,.38) 62%);
  padding-inline: 2px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 22px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 650; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-lg { height: 54px; padding-inline: 30px; font-size: 16.5px; }
.btn-sm { height: 40px; padding-inline: 17px; font-size: 14px; border-radius: var(--r-full); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500) 60%, var(--brand-600));
  color: #fff; box-shadow: var(--sh-brand);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(47,107,255,.38); transform: translateY(-1px); }

.btn-dark { background: var(--ink-900); color: #fff; box-shadow: var(--sh-md); }
.btn-dark:hover { background: var(--ink-800); transform: translateY(-1px); }

.btn-ghost { background: var(--white); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-xs); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand-300), var(--sh-sm); color: var(--brand-600); }

.btn-glass {
  background: rgba(255,255,255,.08); color: var(--text-inv-1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255,255,255,.14); }

.btn-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-400)); color: #3D2A00; box-shadow: 0 12px 30px rgba(245,179,1,.32); }
.btn-gold:hover { transform: translateY(-1px); }

.btn-wechat { background: #07C160; color: #fff; box-shadow: 0 12px 30px rgba(7,193,96,.3); }
.btn-wechat:hover { transform: translateY(-1px); }

/* ---------- 6. Badges / Chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  /* 定高的药丸遇到长文案会在窄屏换行并溢出圆角背景（overflow 是 visible，
     所以文字直接跑到药丸外面）。改成最小高度 + 上下内边距：
     一行时视觉与定高完全一致，两行时药丸自己长高。 */
  min-height: 30px; padding-block: 4px; padding-inline: 13px; border-radius: var(--r-full);
  text-align: center;
  font-size: 13px; font-weight: 650; letter-spacing: .01em;
  background: var(--brand-50); color: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--brand-100);
}
.badge-dark {
  background: rgba(255,255,255,.06); color: var(--text-inv-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.badge-gold { background: #FFF7E3; color: #8A5F00; box-shadow: inset 0 0 0 1px #FBE3A8; }
.badge-success { background: #E7F8F1; color: #05714F; box-shadow: inset 0 0 0 1px #B9EBD8; }
.badge-danger { background: #FFEFF2; color: #A81236; box-shadow: inset 0 0 0 1px #FBCFD8; }
.badge-neutral { background: var(--paper-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }

/* .badge 的 inline-flex 会顶掉 hidden 属性（display 声明优先于 hidden 的 UA 规则），
   结果是「该消失的角标挂着 0 不消失」。这条放回语义：藏就藏干净。 */
.badge[hidden] { display: none; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-live { background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- 7. Cards ---------- */
.card {
  background: var(--white); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--brand-200); }
.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 26px;
  color: var(--text-inv-1); backdrop-filter: blur(10px);
}
.card-flush { padding: 0; overflow: hidden; }

.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-50), #fff);
  box-shadow: inset 0 0 0 1px var(--brand-100);
  color: var(--brand-600);
}
.icon-tile-dark {
  background: linear-gradient(160deg, rgba(47,107,255,.22), rgba(34,211,238,.1));
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.24);
  color: var(--cyan-300);
}
.icon-tile-gold { background: linear-gradient(160deg, #FFF4D6, #fff); box-shadow: inset 0 0 0 1px #FBE3A8; color: var(--gold-500); }

/* ---------- 8. Surfaces / Backgrounds ---------- */
.surface-dark { background: var(--ink-900); color: var(--text-inv-1); position: relative; overflow: hidden; }
.surface-dark .lead, .surface-dark .body { color: var(--text-inv-2); }
.surface-dark .small, .surface-dark .micro { color: var(--text-inv-3); }

/* 网格底纹：给深色面营造"工程蓝图"的感觉 */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,160,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
/* 光晕：单点强光比全屏渐变更有"聚焦"力 */
.bg-glow::after {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 620px; left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47,107,255,.42), rgba(34,211,238,.14) 55%, transparent 78%);
  filter: blur(12px);
}
.bg-paper-mesh {
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(47,107,255,.10), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(34,211,238,.10), transparent 60%),
    var(--paper);
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }
.hairline-dark { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); border: 0; margin: 0; }

/* ---------- 9. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(245,247,252,.78);
  border-bottom: 1px solid var(--line);
}
.nav-dark { background: rgba(6,11,24,.72); border-bottom: 1px solid var(--line-dark); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 550; color: var(--text-2); }
.nav-links a { transition: color .18s; }
.nav-links a:hover { color: var(--brand-600); }
.nav-dark .nav-links { color: var(--text-inv-2); }
.nav-dark .nav-links a:hover { color: #fff; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17.5px; letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--brand-400), var(--brand-600) 55%, #0B2A80);
  box-shadow: 0 6px 16px rgba(47,107,255,.36), inset 0 1px 0 rgba(255,255,255,.35);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 900;
}

/* ---------- 10. Browser frame（展示网站成品时的"可信外壳"） ---------- */
.browser {
  border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--sh-lg); border: 1px solid var(--line-2);
}
.browser-dark { border-color: rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.browser-bar {
  height: 42px; display: flex; align-items: center; gap: 10px; padding-inline: 14px;
  background: linear-gradient(180deg, #FBFCFE, #F2F5FA); border-bottom: 1px solid var(--line);
}
.browser-dark .browser-bar { background: linear-gradient(180deg, #141C31, #0E1729); border-bottom-color: rgba(255,255,255,.08); }

/* 浏览器条里的原文 / 中文切换。
   放在这条里而不是另起一行，是因为它属于"这个网页说什么语言"的语境；
   老板看不懂德语和英语的时候，这个按钮必须在他眼睛已经在看的地方。 */
.lang-sw { display: inline-flex; flex: none; margin-left: auto; padding: 2px;
  border-radius: 99px; background: rgba(11,18,32,.06); }
.lang-sw button {
  border: 0; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  padding: 4px 10px; min-height: 26px; border-radius: 99px;
  background: transparent; color: var(--text-3); white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.lang-sw button.on { background: #fff; color: var(--text-1); box-shadow: var(--sh-xs); }
.browser-dark .lang-sw { background: rgba(255,255,255,.08); }
.browser-dark .lang-sw button { color: var(--text-inv-3); }
.browser-dark .lang-sw button.on { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
/* 手机上按钮要够大 */
@media (max-width: 900px) { .lang-sw button { min-height: 32px; padding-inline: 12px; } }
.tl { display: flex; gap: 6px; }
.tl i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tl i:nth-child(1){ background:#FF5F57 } .tl i:nth-child(2){ background:#FEBC2E } .tl i:nth-child(3){ background:#28C840 }
.urlbar {
  flex: 1; height: 26px; border-radius: 8px; background: var(--white);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 7px;
  padding-inline: 10px; font-size: 12px; color: var(--text-3);
}
.browser-dark .urlbar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: var(--text-inv-3); }

/* ---------- 11. Score ring（GEO 评分） ---------- */
.ring { --p: 0; --size: 128px; --sw: 11px; --c: var(--brand-500);
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(120,140,180,.16) 0);
}
.ring::before {
  content: ""; position: absolute; inset: var(--sw); border-radius: 50%;
  background: var(--white); box-shadow: inset 0 1px 3px rgba(11,18,32,.06);
}
.surface-dark .ring::before, .ring-dark::before { background: var(--ink-850); box-shadow: none; }
.ring > * { position: relative; }

/* ---------- 12. Meter bar ---------- */
.meter { height: 8px; border-radius: 99px; background: rgba(120,140,180,.18); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-500), var(--cyan-400)); }
.meter-danger > i { background: linear-gradient(90deg, #FB7185, #F43F5E); }
.meter-gold > i { background: linear-gradient(90deg, var(--gold-300), var(--gold-400)); }
.meter-success > i { background: linear-gradient(90deg, #34D399, #10B981); }

/* ---------- 13. Terminal / code ---------- */
.term {
  background: var(--ink-950); border-radius: var(--r-md); padding: 18px 20px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85;
  color: #A7B4D0; border: 1px solid rgba(255,255,255,.08); overflow: auto;
}
.term .c-key { color: #7DD3FC } .term .c-str { color: #86EFAC }
.term .c-dim { color: #55628A } .term .c-warn { color: #FBBF24 }
.term .c-ok  { color: #34D399 } .term .c-brand { color: #8FADFF }

/* ---------- 14. Chat（Studio 核心交互） ---------- */
.chat-msg { display: flex; gap: 12px; align-items: flex-start; }
.chat-av {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.chat-av-ai { background: linear-gradient(150deg, var(--brand-500), var(--cyan-500)); color: #fff; }
.chat-av-me { background: rgba(255,255,255,.09); color: var(--text-inv-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bubble {
  border-radius: 14px; padding: 12px 15px; font-size: 14px; line-height: 1.72; max-width: 100%;
}
.bubble-ai { background: rgba(255,255,255,.045); border: 1px solid var(--line-dark); color: var(--text-inv-1); }
.bubble-me { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); color: #fff; border: 0; }

.opt-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--text-inv-1);
  background: rgba(47,107,255,.13); border: 1px solid rgba(120,160,255,.3);
  transition: all .18s var(--ease);
}
.opt-pill:hover { background: rgba(47,107,255,.26); border-color: var(--brand-400); transform: translateY(-1px); }

/* ---------- 15. Timeline / steps ---------- */
.steps { position: relative; }
.step { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px;
  background: linear-gradient(180deg, var(--brand-300), transparent);
}
.step:last-child::before { display: none; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; z-index: 1;
  background: var(--brand-500); color: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.14);
}
.step-dot-done { background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.16); }
.step-dot-idle { background: rgba(120,140,180,.25); color: var(--text-inv-3); box-shadow: none; }

/* ---------- 16. Table ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-dark th { color: var(--text-inv-3); border-bottom-color: var(--line-dark); }
.tbl-dark td { color: var(--text-inv-2); border-bottom-color: var(--line-dark); }
.tbl-hover tbody tr { transition: background .16s; }
.tbl-hover tbody tr:hover { background: var(--brand-50); }
.tbl-dark.tbl-hover tbody tr:hover { background: rgba(255,255,255,.035); }

/* ---------- 17. Marquee（语种滚动带） ---------- */
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.lang-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 15px;
  border-radius: var(--r-full); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--white); border: 1px solid var(--line); color: var(--text-2); box-shadow: var(--sh-xs);
}
.surface-dark .lang-pill { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--text-inv-2); box-shadow: none; }
.lang-pill .flag { font-size: 16px; line-height: 1; }

/* ---------- 18. Sidebar（控制台） ---------- */
/* grid 子项默认 min-width:auto，宽内容会把 1fr 轨道撑到超出视口——
   这就是应用页在手机上整体横向溢出的根因。必须显式 minmax(0,1fr)。 */
.app { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100vh; }
.app > * { min-width: 0; }
.side {
  background: var(--ink-950); border-right: 1px solid var(--line-dark);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-item {
  display: flex; align-items: center; gap: 11px; height: 40px; padding-inline: 12px;
  border-radius: 11px; font-size: 14px; font-weight: 570; color: var(--text-inv-2);
  transition: all .16s var(--ease);
}
.side-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-item.active {
  background: linear-gradient(90deg, rgba(47,107,255,.24), rgba(47,107,255,.06));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(120,160,255,.24);
}
.side-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-3); font-weight: 700; padding: 16px 12px 6px; }

/* 思考中的三个点（AI 正在回应） */
.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); animation: bounce 1.2s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- 19. Misc ---------- */
.kpi-num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }
.surface-dark .divider-v { background: var(--line-dark); }
.tag-mini {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: var(--paper-2); color: var(--text-3);
}
.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--brand-600); font-size: 14.5px; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .app { grid-template-columns: minmax(0,1fr); }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .hide-md { display: none !important; }
}
@media (max-width: 680px) {
  .g2, .g4 { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .hide-sm { display: none !important; }
}

/* 手机上导航栏放不下「logo 全称 + 主行动按钮 + 菜单」三样。
   砍掉的必须是字号最不重要的那个：品牌全称。行动按钮和菜单一个都不能少——
   前者是这一页存在的目的，后者是唯一的导航出口。 */
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-inline: 16px; }
  .nav-inner { gap: 10px; height: 60px; }
  .nav-inner .logo > span:not(.logo-mark) { display: none; }
  .nav-inner .btn-sm { padding-inline: 13px; font-size: 13.5px; }
  .flowbar { top: 60px; }
}

/* ---------- 21. 公共页脚 & 移动导航 ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid rgba(255,255,255,.07); padding: 56px 0 30px; color: var(--paper-500); }
.site-footer .small, .site-footer .micro { color: rgba(255,255,255,.45); }
.site-footer .micro { text-transform: none; letter-spacing: .04em; font-weight: 700; color: rgba(255,255,255,.85); }
.site-footer a.small { text-decoration: none; transition: color .18s var(--ease); }
.site-footer a.small:hover { color: var(--cyan-400); }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }

.nav-burger { display: none; background: transparent; border: 1px solid rgba(128,128,128,.28); color: inherit; padding: 0 9px; align-items: center; }
.nav-dark .nav-burger { border-color: rgba(255,255,255,.16); color: #fff; }

.menu-item { display: block; padding: 13px 14px; border-radius: var(--r-md); font-size: 15px; font-weight: 600;
  color: var(--text-1); text-decoration: none; border: 1px solid transparent; }
.menu-item:hover { background: var(--paper-100); border-color: var(--line); }

/* ---------- 22. 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4,7,15,.62); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s var(--ease); }
.modal-mask.in { opacity: 1; }
/* color 必须显式给：弹窗挂在 body 下，深色页（generate/settings）把 body 文字
   设成浅色，继承过来就是白底白字——标题隐形，且只在深色页开弹窗时才发作。 */
.modal { width: min(480px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: var(--r-xl);
  color: var(--text-1);
  box-shadow: 0 30px 90px rgba(4,7,15,.4); transform: translateY(14px) scale(.985); transition: transform .22s var(--ease-out); }
.modal-mask.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head b { font-size: 15.5px; }
.modal-x { background: transparent; border: 0; cursor: pointer; color: var(--text-3); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--r-sm); }
.modal-x:hover { background: var(--paper-100); color: var(--text-1); }
.modal-body { padding: 20px; }

.qr { width: 150px; height: 150px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background-image: repeating-linear-gradient(0deg, var(--ink-950) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, var(--ink-950) 0 6px, transparent 6px 12px);
  opacity: .82; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; min-height: 46px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--paper-50); color: var(--text-1); resize: vertical; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(47,107,255,.12); }

.drop { border: 1.5px dashed rgba(128,128,128,.35); border-radius: var(--r-lg); padding: 30px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text-2); background: var(--paper-50); }
.videobox { aspect-ratio: 16/9; border-radius: var(--r-lg); background: var(--ink-950); color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---------- 23. Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 34px; z-index: 300; transform: translate(-50%, 16px);
  display: inline-flex; align-items: center; gap: 9px; max-width: min(460px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: var(--r-full); background: var(--ink-950); color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.5; box-shadow: 0 16px 44px rgba(4,7,15,.34);
  opacity: 0; transition: opacity .2s var(--ease), transform .24s var(--ease-out); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--success); flex: 0 0 auto; }

/* ---------- 24. 选中态（筛选 / 语种 / 设备） ---------- */
[data-choice] { cursor: pointer; }
.chip[data-choice].on, .filter[data-choice].on { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.lang-pill[data-choice].on { background: rgba(47,107,255,.14); border-color: var(--brand-500); color: var(--brand-600); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 25. 应用页移动端：侧栏折叠成横向条 ---------- */
@media (max-width: 900px) {
  .side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 6px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line-dark);
  }
  .side .side-label, .side .side-foot { display: none; }
  .side .logo { width: 100%; margin-bottom: 10px !important; }
  .side-item { height: 34px; font-size: 13px; padding-inline: 10px; }
  .app > main { height: auto !important; overflow: visible !important; padding: 22px 18px 50px !important; }
  .inq-wrap { height: auto !important; }
}

/* ---------- 26. 图标侧栏（三栏工作台用） ---------- */
.side-rail {
  width: 64px; padding: 16px 0; align-items: center; gap: 4px;
  background: var(--ink-950); border-right: 1px solid var(--line-dark);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.side-rail .logo-only { margin-bottom: 14px; }
.rail-item {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--text-inv-3); transition: all .16s var(--ease);
}
.rail-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail-item.active { background: rgba(47,107,255,.18); color: var(--brand-300);
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.3); }
.rail-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold-400); }
/* 悬浮标签：图标条的可用性全靠它，没有它老板认不出图标 */
.rail-tip {
  position: absolute; left: 52px; top: 50%; transform: translateY(-50%) translateX(-4px);
  padding: 6px 11px; border-radius: 9px; white-space: nowrap;
  background: var(--ink-700); color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(0,0,0,.4); pointer-events: none;
  opacity: 0; transition: all .16s var(--ease); z-index: 70;
}
.rail-item:hover .rail-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- 27. 三栏角色条：说清楚"这一栏是干什么的" ---------- */
.pane-role {
  position: relative; flex: none; display: flex; align-items: center; gap: 11px;
  padding: 11px 18px; border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.022);
}
.role-n {
  width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; font-family: var(--font-mono);
  background: rgba(120,160,255,.16); color: var(--brand-300);
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.28);
}
.pane-role b { font-size: 13px; color: #fff; font-weight: 700; }
.pane-role span.role-sub { font-size: 12.5px; color: var(--text-inv-3); }
/* 箭头压在栏与栏的分隔线上，把三栏读成一条流水线而不是三张并排的表 */
.role-arrow {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-800); color: var(--brand-300); z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.3);
}
.role-back {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  font-size: 12px; font-weight: 650; color: var(--cyan-400);
}
[data-toast], [data-modal] { cursor: pointer; }

/* ---------- 28. 真实照片位 ----------
   工厂老板的审美标准是"看着像真的厂"，不是"看着像系统截图"。
   线框/网格占位一律换成实拍照 + 可读性蒙版。 */
.ph { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.ph > * { position: relative; z-index: 2; }
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(6,11,24,.86) 0%, rgba(6,11,24,.62) 55%, rgba(6,11,24,.72) 100%);
}
.ph-soft::before { background: linear-gradient(180deg, rgba(6,11,24,.05), rgba(6,11,24,.34)); }
.ph-none::before { content: none; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-box { overflow: hidden; background: var(--paper-2); position: relative; }

/* ==========================================================================
   29. 生产化加固：键盘可达、动效降级、无 JS 兜底、触控下限
   这一节不产生任何"设计感"，但决定这套设计能不能真的上线给人用。
   ========================================================================== */

/* 焦点环：老板不用键盘，但客服、代运营、无障碍用户会用。
   只在键盘态出现，不干扰鼠标点击的观感。 */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 6px;
}
.surface-dark :where(a, button, [tabindex]):focus-visible,
.side :where(a, button):focus-visible,
.side-rail :where(a, button):focus-visible { outline-color: var(--cyan-400); }

/* 跳到主内容：屏幕阅读器与键盘用户的第一个可达点 */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  padding: 12px 18px; border-radius: var(--r-full);
  background: var(--ink-950); color: #fff; font-size: 14px; font-weight: 650;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 前庭障碍/晕动症用户，以及低端安卓机：关掉所有位移动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 无 JS 兜底：.reveal 默认 opacity:0，脚本一旦加载失败整页就是空白。
   加 .js 类由脚本自己打上，没打上就永远可见。 */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* 触控下限：手机上任何可点区域不小于 44×44 */
@media (max-width: 900px) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 44px; }
  .side-item, .rail-item, .menu-item { min-height: 44px; }
  .tbl th, .tbl td { padding: 14px 12px; }
  /* 药丸类控件桌面端做得很小巧，手指点不准。只放大「是按钮的那些」，
     .tag-mini 同时也当纯标签用，所以限定 button.tag-mini。 */
  .chip, .filter, .lang-pill, button.tag-mini { min-height: 38px; padding-inline: 14px; }
  /* 页脚链接竖排时行距太密，两条挨着容易点错 */
  .site-footer a.small { display: inline-block; padding-block: 6px; }
}

/* 宽表格在窄屏必须能横滑，而不是把列藏掉——藏掉的那一列老板永远看不到 */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll > .tbl { min-width: 640px; }

/* ---------- 30. 空状态 / 危险区 / 术语解释 ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 54px 24px; gap: 12px;
}
.empty .icon-tile { margin-bottom: 4px; }
.empty b { font-size: 17px; }
.empty p { font-size: 14.5px; color: var(--text-3); line-height: 1.75; max-width: 380px; }
.surface-dark .empty p, .side ~ * .empty p { color: var(--text-inv-3); }

.danger-zone {
  border: 1px solid rgba(244,63,94,.32); border-radius: var(--r-lg);
  background: rgba(244,63,94,.05); padding: 20px 22px;
}
.danger-zone b { color: var(--danger); }

/* 术语解释：GEO / CDN / 静态站这类词，第一次出现必须能点开看人话。
   虚线下划线是"这里有解释"的通用暗示，老板不需要学习就懂。 */
.term-hint {
  border-bottom: 1.5px dotted var(--brand-400); cursor: help;
  text-decoration: none; font-weight: 650; color: inherit;
}
.term-hint:hover { border-bottom-style: solid; color: var(--brand-600); }
.surface-dark .term-hint:hover { color: var(--cyan-300); }

/* ── 31. 建站流程条：老板的"我在第几步"锚点 ─────────────────── */
.flowbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  position: sticky; top: 68px; z-index: 40;   /* 顶部导航高 68px，两条一起吸顶 */
}
.flowbar-dark {
  top: 0;
  background: rgba(8,13,27,.78);
  border-bottom-color: rgba(255,255,255,.09);
}
.flowbar-inner {
  display: flex; align-items: center; gap: 4px;
  padding: 13px 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.flowbar-inner::-webkit-scrollbar { display: none; }
.flowstep {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 8px 14px; border-radius: var(--r-full);
  text-decoration: none; color: var(--text-3);
  font-size: 14px; font-weight: 620; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.flowbar-dark .flowstep { color: var(--text-inv-3); }
a.flowstep:hover { background: var(--paper-100); color: var(--text-1); }
.flowbar-dark a.flowstep:hover { background: rgba(255,255,255,.07); color: #fff; }
.flowdot {
  width: 25px; height: 25px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; font-style: normal;
  background: var(--paper-2); color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.flowbar-dark .flowdot { background: rgba(255,255,255,.08); color: var(--text-inv-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.flowstep.done { color: var(--text-2); }
.flowstep.done .flowdot { background: rgba(16,185,129,.14); color: var(--success); box-shadow: inset 0 0 0 1px rgba(16,185,129,.3); }
.flowstep.on { color: var(--brand-600); background: #EAF0FF; }
.flowbar-dark .flowstep.on { color: var(--cyan-300); background: rgba(47,107,255,.18); }
.flowstep.on .flowdot { background: var(--brand-500); color: #fff; box-shadow: none; }
.flowline { flex: none; width: 16px; height: 1.5px; background: var(--line); border-radius: 2px; }
.flowbar-dark .flowline { background: rgba(255,255,255,.14); }
@media (max-width: 720px) {
  .flowstep { padding: 8px 11px; font-size: 13px; }
  .flowline { width: 8px; }
}
