/* ==========================================================================
   扶摇官网 —— 样式
   --------------------------------------------------------------------------
   设计原则（克制、精确、有呼吸）：
     1. 双主题：默认跟随系统（prefers-color-scheme），可手动切换并记住。
        桌面 App 本来就是浅色+深色双套，官网跟着走才不割裂。
     2. 排版用「光学尺度」而非等比例缩放：标题行高收紧、正文行高放宽、
        字号阶梯用 clamp 三档（手机 / 平板 / 桌面）平滑过渡。
     3. 间距用 8 的倍数节奏：区块 96/72、卡片内 28/24、元素间 8/12/16。
     4. 深度靠「1px 描边 + 极浅阴影」堆，不靠大块灰底；颜色只用在
        强调、状态、和品牌渐变上。
     5. 所有动效带 prefers-reduced-motion 兜底；所有交互元素有 :focus-visible。
   无构建步骤：改完直接部署。
   ========================================================================== */

/* ============================ 设计令牌 ============================ */
:root {
  /* 底色层次：page → soft → sunken，越往后越"深" */
  --bg:          #ffffff;
  --bg-soft:     #fafafb;
  --bg-sunken:   #f4f4f7;
  --card:        #ffffff;
  --card-hover:  #ffffff;

  /* 描边：hairline / 常规 / 强调 */
  --line:        rgba(17, 17, 26, .07);
  --line-2:      rgba(17, 17, 26, .12);
  --line-3:      rgba(17, 17, 26, .18);

  /* 文字：主 / 次 / 弱 / 极弱 */
  --ink:         #101014;
  --ink-2:       #4a4a55;
  --ink-3:       #75757f;
  --ink-4:       #a0a0aa;

  /* 品牌 */
  --brand:       #7c3aed;
  --brand-2:     #6d28d9;
  --brand-3:     #6366f1;
  --brand-ink:   #5b21b6;
  --brand-wash:  rgba(124, 58, 237, .055);
  --brand-line:  rgba(124, 58, 237, .22);
  --grad:        linear-gradient(135deg, #7c3aed, #6366f1);
  --grad-soft:   linear-gradient(135deg, rgba(124,58,237,.07), rgba(99,102,241,.07));

  /* 语义色 */
  --ok:          #047857;
  --ok-wash:     rgba(5, 150, 105, .085);
  --ok-line:     rgba(5, 150, 105, .22);
  --warn:        #b45309;
  --warn-wash:   rgba(217, 119, 6, .10);
  --warn-line:   rgba(217, 119, 6, .24);

  /* 圆角阶梯 */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* 阴影：一律「极浅 + 大扩散」，像自然光而不是真阴影 */
  --sh-1: 0 1px 2px rgba(16,16,20,.04), 0 1px 3px rgba(16,16,20,.03);
  --sh-2: 0 1px 2px rgba(16,16,20,.04), 0 6px 18px rgba(16,16,20,.055);
  --sh-3: 0 2px 4px rgba(16,16,20,.04), 0 18px 44px rgba(16,16,20,.10);
  --sh-brand: 0 4px 14px rgba(124,58,237,.26);

  --maxw: 1140px;
  --nav-h: 64px;

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

  /* 缓动：统一用一条，界面才不会"各动各的" */
  --ease: cubic-bezier(.32, .72, 0, 1);
}

/* ---- 深色主题（跟随系统，或被手动切换覆盖） ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0a0a0c;
    --bg-soft:    #0e0e11;
    --bg-sunken:  #131317;
    --card:       #121216;
    --card-hover: #17171c;

    --line:       rgba(255,255,255,.07);
    --line-2:     rgba(255,255,255,.12);
    --line-3:     rgba(255,255,255,.19);

    --ink:        #f4f4f6;
    --ink-2:      #a8a8b3;
    --ink-3:      #7e7e8a;
    --ink-4:      #5c5c66;

    --brand:      #a78bfa;
    --brand-2:    #c4b5fd;
    --brand-3:    #818cf8;
    --brand-ink:  #c4b5fd;
    --brand-wash: rgba(124,58,237,.14);
    --brand-line: rgba(167,139,250,.28);
    --grad:       linear-gradient(135deg, #8b5cf6, #6366f1);
    --grad-soft:  linear-gradient(135deg, rgba(139,92,246,.12), rgba(99,102,241,.12));

    --ok:         #34d399;
    --ok-wash:    rgba(52,211,153,.12);
    --ok-line:    rgba(52,211,153,.25);
    --warn:       #fbbf24;
    --warn-wash:  rgba(251,191,36,.12);
    --warn-line:  rgba(251,191,36,.25);

    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 1px 3px rgba(0,0,0,.45), 0 8px 22px rgba(0,0,0,.42);
    --sh-3: 0 2px 6px rgba(0,0,0,.5), 0 22px 52px rgba(0,0,0,.55);
    --sh-brand: 0 4px 18px rgba(124,58,237,.42);
  }
}

/* 手动切到深色（覆盖系统浅色） */
:root[data-theme="dark"] {
  --bg:         #0a0a0c;
  --bg-soft:    #0e0e11;
  --bg-sunken:  #131317;
  --card:       #121216;
  --card-hover: #17171c;
  --line:       rgba(255,255,255,.07);
  --line-2:     rgba(255,255,255,.12);
  --line-3:     rgba(255,255,255,.19);
  --ink:        #f4f4f6;
  --ink-2:      #a8a8b3;
  --ink-3:      #7e7e8a;
  --ink-4:      #5c5c66;
  --brand:      #a78bfa;
  --brand-2:    #c4b5fd;
  --brand-3:    #818cf8;
  --brand-ink:  #c4b5fd;
  --brand-wash: rgba(124,58,237,.14);
  --brand-line: rgba(167,139,250,.28);
  --grad:       linear-gradient(135deg, #8b5cf6, #6366f1);
  --grad-soft:  linear-gradient(135deg, rgba(139,92,246,.12), rgba(99,102,241,.12));
  --ok:         #34d399;
  --ok-wash:    rgba(52,211,153,.12);
  --ok-line:    rgba(52,211,153,.25);
  --warn:       #fbbf24;
  --warn-wash:  rgba(251,191,36,.12);
  --warn-line:  rgba(251,191,36,.25);
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 1px 3px rgba(0,0,0,.45), 0 8px 22px rgba(0,0,0,.42);
  --sh-3: 0 2px 6px rgba(0,0,0,.5), 0 22px 52px rgba(0,0,0,.55);
  --sh-brand: 0 4px 18px rgba(124,58,237,.42);
}

/* ============================ 基础 ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px); /* 锚点跳转不被顶栏盖住 */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  transition: background-color .2s ease, color .2s ease;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 750;
  text-wrap: balance;            /* 标题断行更自然，避免孤字 */
}

p { text-wrap: pretty; }

code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  padding: .08em .4em;
  border-radius: var(--r-xs);
  white-space: nowrap;
}

::selection { background: rgba(124,58,237,.18); }

/* 统一的键盘焦点环 —— 鼠标点击不出现，Tab 才出现 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* 跳转到主内容（键盘用户第一下 Tab 就能跳过导航） */
.skip {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 100; padding: 10px 18px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--brand); color: #fff; font-weight: 600; font-size: .875rem;
  transition: top .18s var(--ease);
}
.skip:focus { top: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 744px; }

/* 只给读屏软件看（如表格 caption） */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* 渐变文字：深浅两套都要有足够对比度 */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 650; font-family: inherit;
  letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(124,58,237,.34); }

.btn--line {
  background: var(--card); border-color: var(--line-2); color: var(--ink);
}
.btn--line:hover { border-color: var(--brand-line); color: var(--brand-ink);
  background: var(--brand-wash); }

.btn--ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn--ghost:hover { color: var(--brand-ink); background: var(--brand-wash); }

.btn--lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* 下载按钮：上下两行的紧凑排版 */
.dl { align-items: center; }
.dl__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.dl__label { font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.dl__meta  { font-size: .6875rem; font-weight: 500; line-height: 1.2; opacity: .74; }
.btn--line .dl__meta { color: var(--ink-3); opacity: 1; }

/* ============================ 顶栏 ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
/* 不支持 color-mix 的老浏览器兜底 */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav { background: var(--bg); }
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 16px rgba(16,16,20,.05);
}
.nav__in { display: flex; align-items: center; gap: 30px; height: var(--nav-h); }

.nav__brand { display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.015em; }
.nav__brand img { border-radius: 8px; width: 28px; height: 28px; }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  position: relative; font-size: .9375rem; color: var(--ink-2);
  font-weight: 520; transition: color .16s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 主题切换 */
.nav__theme {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-2); cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.nav__theme:hover { border-color: var(--brand-line); color: var(--brand-ink);
  background: var(--brand-wash); }
.nav__theme svg { width: 16px; height: 16px; }
/* 图标显隐：浅色显示月亮（可切到深色），深色显示太阳 */
.nav__theme .ico-sun { display: none; }
:root[data-theme="dark"] .nav__theme .ico-sun { display: block; }
:root[data-theme="dark"] .nav__theme .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__theme .ico-sun { display: block; }
  :root:not([data-theme="light"]) .nav__theme .ico-moon { display: none; }
}

/* 汉堡（移动端） */
.nav__burger {
  display: none; margin-left: auto; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
  flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
  cursor: pointer;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px; background: var(--ink-2); border-radius: 2px;
  transition: transform .24s var(--ease), opacity .18s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ Hero ============================ */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }

/* 背景：一层柔和品牌光晕 + 一层极淡网格，给"工程感"又不吵 */
.hero__glow {
  position: absolute; inset: -260px 0 auto 0; height: 700px; pointer-events: none;
  background:
    radial-gradient(46% 58% at 50% 42%, rgba(124,58,237,.15), transparent 70%),
    radial-gradient(36% 48% at 78% 24%, rgba(99,102,241,.13), transparent 72%),
    radial-gradient(30% 42% at 20% 30%, rgba(168,85,247,.09), transparent 72%);
  filter: blur(14px);
}
.hero__grid {
  position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  opacity: .7;
}
.hero__in { position: relative; text-align: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: .8125rem; color: var(--ink-2); font-weight: 550;
  box-shadow: var(--sh-1);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-wash);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--ok-wash); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  margin: 24px 0 0;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.08;
}
.hero__sub {
  max-width: 600px; margin: 22px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.72;
  color: var(--ink-2);
}
.hero__dl {
  /* ★ 锚点落点补偿：顶栏是 sticky 的，不加这个「下载」跳转会顶到栏底下 */
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.hero__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px;
}
.hero__dl > .hero__note {
  margin: 18px 0 0; font-size: .8125rem; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.hero__note svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ok); }

/* ---- 应用窗口示意（纯 CSS，不用截图，避免与真界面不一致） ---- */
.shot {
  position: relative;
  margin: 60px auto 0; max-width: 960px; text-align: left;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--card);
  border: 1px solid var(--line-2); border-bottom: none;
  box-shadow: var(--sh-3); overflow: hidden;
}
/* 窗口底部那圈光的来源：品牌色渐变，让截图像"发光"而不是死贴上去 */
.shot::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line), transparent);
}
.shot__bar {
  display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-3); }
.shot__bar i:nth-child(1) { background: #ff5f57; }
.shot__bar i:nth-child(2) { background: #febc2e; }
.shot__bar i:nth-child(3) { background: #28c840; }
.shot__title {
  margin-left: 8px; font-size: .75rem; color: var(--ink-3);
  font-weight: 650; letter-spacing: .01em;
}

.shot__body { display: flex; min-height: 356px; }
.shot__side {
  width: 186px; flex-shrink: 0; padding: 18px 16px;
  background: var(--bg-soft); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 11px;
}
.sk { background: var(--line-2); border-radius: 6px; height: 9px; }
.sk--ava {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); opacity: .9; margin-bottom: 4px;
}
.sk--line { width: 100%; }
.sk--short { width: 60%; }
.sk__gap { height: 14px; }
/* 侧栏里"当前选中项"的示意 */
.sk--active {
  width: 100%; height: 30px; border-radius: var(--r-xs);
  background: var(--brand-wash); border: 1px solid var(--brand-line);
}

.shot__main { flex: 1; padding: 24px 28px 0; display: flex; flex-direction: column; gap: 15px; }
.bub {
  font-size: .875rem; line-height: 1.62; border-radius: 13px;
  padding: 11px 15px; max-width: 78%;
}
.bub--user {
  align-self: flex-end; background: var(--grad); color: #fff;
  border-bottom-right-radius: 5px; box-shadow: var(--sh-brand);
}
.bub--ai {
  align-self: flex-start; background: var(--bg-sunken); color: var(--ink-2);
  border: 1px solid var(--line); border-bottom-left-radius: 5px;
}
.bub__who {
  display: flex; align-items: center; gap: 6px;
  font-size: .6875rem; font-weight: 750; color: var(--brand-ink); margin-bottom: 4px;
}
.bub__who i {
  width: 14px; height: 14px; border-radius: 5px; background: var(--grad);
  display: inline-block;
}
.bub__tools { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag {
  font-size: .6875rem; padding: 2.5px 9px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--ink-3); font-weight: 600;
}
.bub code { background: var(--card); }

.shot__composer {
  margin-top: auto; border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 13px 16px; color: var(--ink-3); font-size: .875rem;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.shot__send {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; color: #fff;
}
.shot__send svg { width: 13px; height: 13px; }
.shot__pills { display: flex; gap: 8px; padding: 14px 0 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 11px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  font-size: .75rem; color: var(--ink-2); font-weight: 600;
}
.pill svg { width: 11px; height: 11px; opacity: .8; }
.pill--pts { color: var(--brand-ink); border-color: var(--brand-line);
  background: var(--brand-wash); }

/* ============================ 信任条 ============================ */
.strip {
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.strip__in {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 26px 28px;
}
.strip__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; padding: 0 14px;
  border-left: 1px solid var(--line);
}
.strip__item:first-child { border-left: none; }
.strip__item b {
  font-size: .9375rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.strip__item b svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }
.strip__item span { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }

/* ============================ 通用 section ============================ */
.sec { padding: 96px 0; }
.sec--alt { background: var(--bg-soft); }
.sec--tight { padding-top: 72px; }
.sec__head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .6875rem; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-ink);
  background: var(--brand-wash); border: 1px solid var(--brand-line);
  padding: 4px 11px; border-radius: 999px;
}
.sec__head h2 {
  margin: 18px 0 0;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 800; letter-spacing: -.03em;
}
.sec__lead {
  margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.72; color: var(--ink-2);
}

/* ============================ 卡片网格 ============================ */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--sh-1);
  transition: transform .22s var(--ease), box-shadow .26s var(--ease),
              border-color .22s var(--ease), background-color .22s var(--ease);
  overflow: hidden;
}
/* hover 时顶部浮出一条品牌渐变线 —— 比整块变色克制 */
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad); opacity: 0;
  transition: opacity .26s var(--ease);
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-2);
  border-color: var(--brand-line); background: var(--card-hover);
}
.card:hover::before { opacity: 1; }

.card__ico {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-wash); border: 1px solid var(--brand-line);
  color: var(--brand-ink);
}
.card__ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -.015em; }
.card p { margin: 0; font-size: .9375rem; line-height: 1.68; color: var(--ink-2); }

/* ============================ 本地优先 ============================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__col {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  box-shadow: var(--sh-1);
}
.split__col--good { border-color: var(--ok-line); }
.split__col--net  { border-color: var(--warn-line); }
/* 两栏顶部一条彩色细线，快速区分性质 */
.split__col--good::before,
.split__col--net::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px;
  border-radius: 0 0 2px 2px;
}
.split__col--good::before { background: linear-gradient(90deg, transparent, var(--ok), transparent); }
.split__col--net::before  { background: linear-gradient(90deg, transparent, var(--warn), transparent); }

.split__title { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.split__title .cnt {
  font-size: .75rem; font-weight: 700; color: var(--ink-3);
  background: var(--bg-sunken); border: 1px solid var(--line);
  padding: 1px 8px; border-radius: 999px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge svg { width: 13px; height: 13px; }
.badge--good { background: var(--ok-wash); color: var(--ok); border-color: var(--ok-line); }
.badge--net  { background: var(--warn-wash); color: var(--warn); border-color: var(--warn-line); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex;
             flex-direction: column; gap: 12px; }
.checklist li {
  position: relative; padding-left: 27px;
  font-size: .9375rem; line-height: 1.6; color: var(--ink-2);
}
/* 用 SVG 打勾（mask），比伪元素拼小三角更锐利 */
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok-wash); border: 1px solid var(--ok-line);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: .63em;
  width: 6px; height: 3px;
  border-left: 1.7px solid var(--ok); border-bottom: 1.7px solid var(--ok);
  transform: rotate(-45deg); border-radius: 1px;
}
.checklist--net li::before { background: var(--warn-wash); border-color: var(--warn-line); }
.checklist--net li::after {
  display: block; left: 6.2px; top: .58em;
  width: 3.6px; height: 3.6px; background: var(--warn);
  border: none; border-radius: 50%; transform: none;
}
.checklist--sm { gap: 10px; }
.checklist--sm li { font-size: .875rem; }

.split__foot {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .875rem; line-height: 1.65; color: var(--ink-3);
}
.split__foot b { color: var(--ink-2); font-weight: 650; }

/* ============================ 技能 ============================ */
.chips {
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; padding: 7px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--ink-2); font-weight: 500;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              transform .18s var(--ease), background-color .18s var(--ease);
  /* 逐个淡入（延迟在 JS 里按索引给，见 app.js） */
  opacity: 0; transform: translateY(6px);
}
.chip.is-in { opacity: 1; transform: none; }
.chip:hover {
  border-color: var(--brand-line); color: var(--brand-ink);
  background: var(--brand-wash); transform: translateY(-1.5px);
}
.chip__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  opacity: .55; flex-shrink: 0;
}
.chips__note {
  text-align: center; margin: 28px 0 0; font-size: .875rem; color: var(--ink-3);
}
.chips__note b { color: var(--ink-2); font-weight: 650; }

/* ============================ 定价 ============================ */
.price {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: start;
}
.price__card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .26s var(--ease),
              border-color .22s var(--ease);
}
.price__card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.price__card--main {
  border-color: var(--brand-line);
  box-shadow: 0 1px 2px rgba(124,58,237,.06), var(--sh-3);
}
.price__card--main:hover { box-shadow: 0 2px 4px rgba(124,58,237,.08), var(--sh-3); }
.price__card--main::after {
  content: "最常用"; position: absolute; top: -11px; left: 26px;
  font-size: .6875rem; font-weight: 750; color: #fff; letter-spacing: .02em;
  background: var(--grad); padding: 4px 11px; border-radius: 999px;
  box-shadow: var(--sh-brand);
}
.price__name {
  font-size: .8125rem; font-weight: 700; color: var(--ink-3);
  letter-spacing: .05em; text-transform: uppercase;
}
.price__amt {
  margin: 12px 0 8px; font-size: 2.375rem; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price__amt--free { font-size: 1.875rem; color: var(--ok); }
.price__cur { font-size: 1.25rem; font-weight: 700; vertical-align: top;
  margin-right: 1px; position: relative; top: .1em; }
.price__per { font-size: .9375rem; font-weight: 600; color: var(--ink-3);
  margin-left: 3px; letter-spacing: 0; }
.price__desc {
  margin: 0 0 22px; font-size: .875rem; line-height: 1.6; color: var(--ink-3);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.price__card .checklist { margin-bottom: 26px; }
.price__card .btn { margin-top: auto; }

/* ---- 价格表 ---- */
.tablewrap { max-width: 880px; margin: 44px auto 0; }
.tablewrap > summary {
  cursor: pointer; list-style: none;
  font-size: .9375rem; font-weight: 650; color: var(--brand-ink);
  text-align: center; padding: 13px; border-radius: var(--r-md);
  background: var(--brand-wash); border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background-color .18s ease;
}
.tablewrap > summary:hover { background: rgba(124,58,237,.10); }
.tablewrap > summary::-webkit-details-marker { display: none; }
.tablewrap > summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.tablewrap[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }

.ptable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 22px; font-size: .875rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.ptable th, .ptable td {
  padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line);
}
.ptable th {
  background: var(--bg-sunken); font-weight: 700; font-size: .75rem;
  color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase;
}
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr { transition: background-color .14s ease; }
.ptable tbody tr:hover { background: var(--bg-soft); }
.ptable td:first-child { font-family: var(--mono); font-size: .8125rem; color: var(--ink); }
.ptable td:nth-child(3), .ptable td:nth-child(4) { font-variant-numeric: tabular-nums; }
.ptable__note {
  margin: 16px 0 0; font-size: .8125rem; line-height: 1.6;
  color: var(--ink-3); text-align: center;
}

/* ============================ FAQ ============================ */
.faq {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); margin-bottom: 10px; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq > summary {
  cursor: pointer; padding: 19px 52px 19px 22px;
  font-weight: 620; font-size: 1rem; list-style: none; position: relative;
  transition: background-color .16s ease;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:hover { background: var(--bg-soft); }
.faq > summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .22s var(--ease), border-color .18s ease;
}
.faq[open] > summary::after {
  transform: rotate(-135deg); margin-top: -1px; border-color: var(--brand);
}
.faq p {
  margin: 0; padding: 0 22px 22px; font-size: .9375rem; line-height: 1.72;
  color: var(--ink-2);
}

/* ============================ 结尾 CTA ============================ */
.cta { position: relative; padding: 96px 0; background: var(--bg-soft); overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: auto 0 -50% 0; height: 100%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(124,58,237,.13), transparent 70%);
  pointer-events: none;
}
.cta__in { position: relative; text-align: center; }
.cta h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -.03em;
}
.cta p { margin: 16px 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.cta__btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px;
}

/* ============================ 页脚 ============================ */
.foot { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.foot__in {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.foot__brand { display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: -.015em; }
.foot__brand img { border-radius: 7px; width: 24px; height: 24px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a { font-size: .875rem; color: var(--ink-3); transition: color .16s ease; }
.foot__links a:hover { color: var(--brand-ink); }
.foot__copy {
  margin: 0 0 0 auto; font-size: .8125rem; color: var(--ink-4);
}

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .shot__side { display: none; }
  .wrap { padding: 0 24px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }

  /* 导航：默认收起，点击汉堡展开成整块面板 */
  .nav__links, .nav__cta { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 6px 24px 16px; box-shadow: 0 14px 28px rgba(16,16,20,.08);
  }
  .nav__links.is-open a {
    padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem;
  }
  .nav__links.is-open a:last-child { border-bottom: none; }
  .nav__links.is-open a::after { display: none; }
  .nav__cta.is-open {
    display: flex; flex-direction: column; gap: 8px; align-items: stretch;
    position: absolute; top: calc(var(--nav-h) + 250px); left: 0; right: 0;
    padding: 0 24px 20px; background: var(--bg);
  }
  .nav__burger { display: flex; }
  .nav__theme { order: -1; margin-left: auto; }
  .nav__burger { margin-left: 8px; }

  .hero { padding-top: 56px; }
  .hero__title { letter-spacing: -.03em; }
  .sec { padding: 68px 0; }
  .sec__head { margin-bottom: 40px; }
  .cta { padding: 68px 0; }

  .grid--3 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px 22px 26px; }

  .strip__in { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 22px 24px; }
  .strip__item { border-left: none; }
  .strip__item:nth-child(odd) { border-left: none; }
  .strip__item:nth-child(even) { border-left: 1px solid var(--line); }

  .shot { margin-top: 44px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .shot__body { min-height: 300px; }
  .shot__main { padding: 20px 20px 0; }
  .bub { max-width: 92%; }

  .foot__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot__copy { margin-left: 0; }
  .foot__links { gap: 18px; }

  .ptable th, .ptable td { padding: 11px 13px; font-size: .8125rem; }
  .ptable th:nth-child(2), .ptable td:nth-child(2) { display: none; } /* 手机上省掉厂商列 */
}

/* ============================ 动效兜底 ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .chip { opacity: 1 !important; transform: none !important; }
}
