/* ==========================================================================
   米米星球 · 官方网站  —  设计系统
   --------------------------------------------------------------------------
   原则
     1. 移动优先：先写窄屏，再用 min-width 媒体查询向上加布局。
     2. 光底为主、深色只用在少数强调区块（不靠渐变堆氛围）。
     3. 间距/圆角/阴影全部走 token，禁止页面里写魔法值。
     4. 动效必须有 `prefers-reduced-motion` 降级。
     5. 表格在窄屏**变成卡片列表**（靠 data-label），不做横向滚动条。
     6. 不依赖任何外部字体/CDN —— 系统字体栈，首屏零额外请求。
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* 品牌色：紫为主，粉为辅，青作点缀 */
  --brand-50: #f4f1ff;
  --brand-100: #eae4ff;
  --brand-200: #d6c9ff;
  --brand-400: #9d7bff;
  --brand-500: #7c4dff;
  --brand-600: #6435e8;
  --brand-700: #4f27bd;
  --accent-500: #ff4d87;
  --accent-100: #ffe4ee;
  --mint-500: #12b8a6;
  --mint-100: #d8f6f1;
  --amber-500: #e0910c;
  --amber-100: #fdf1d8;

  /* 中性 */
  --ink-900: #0d0b1a;
  --ink-700: #2b2740;
  --ink-500: #5b566f;
  --ink-400: #726d89;                       /* 原 #797490 在白底只有 4.45:1，压深一点过 AA */
  --ink-300: #a29db5;
  --line: #e8e5f2;
  --line-strong: #d5d0e6;
  --surface: #ffffff;
  --surface-2: #faf9fe;
  --surface-3: #f3f1fa;

  /* 深色区块 */
  --night-900: #0b0818;
  --night-800: #14102a;
  --night-700: #1d1739;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: rgba(255, 255, 255, 0.76);

  /* 形状 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* 阴影：两层叠加，避免"脏灰" */
  --sh-xs: 0 1px 2px rgba(13, 11, 26, 0.04);
  --sh-sm: 0 1px 2px rgba(13, 11, 26, 0.04), 0 2px 8px rgba(13, 11, 26, 0.04);
  --sh-md: 0 2px 4px rgba(13, 11, 26, 0.03), 0 8px 24px rgba(13, 11, 26, 0.06);
  --sh-lg: 0 4px 8px rgba(13, 11, 26, 0.04), 0 20px 44px rgba(13, 11, 26, 0.1);
  --sh-brand: 0 6px 20px rgba(124, 77, 255, 0.28);

  /* 节奏 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 30px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 76px;
  --gutter: clamp(18px, 4.4vw, 32px);
  --maxw: 1180px;
  --maxw-narrow: 780px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* hidden 属性靠 UA 的 `[hidden]{display:none}` 生效，优先级最低 ——
   页面上任何 display 规则都会盖掉它（实测踩过）。所以这里显式兜底。 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;         /* 锚点跳转时躲开吸顶导航 */
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* 防止装饰元素把页面撑宽 */
}

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 6.2vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 4.2vw, 2.1rem); }
h3 { font-size: clamp(1.02rem, 2.6vw, 1.15rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
b, strong { color: var(--ink-900); font-weight: 650; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--maxw-narrow); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--brand-600); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 600;
}
.skip-link:focus { transform: none; color: #fff; }

/* ---------------------------------------------------------------- 图标 */
.icon {
  width: 22px; height: 22px; flex: 0 0 auto;
  stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
.icon-lg { width: 26px; height: 26px; }
.icon-sm { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.94); }
.topbar-inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 11px; overflow: hidden; flex: 0 0 auto;
  box-shadow: var(--sh-sm);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-title strong { font-size: .98rem; color: var(--ink-900); letter-spacing: -0.01em; }
.brand-title span {
  font-size: .72rem; color: var(--ink-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 移动端菜单按钮（≥1000px 隐藏 —— 隐藏规则必须放在基础规则**之后**，
   否则同优先级下会被后面的 display 覆盖；这一条实测踩过） */
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-700);
  border-radius: var(--r-full); padding: 8px 14px 8px 12px;
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.nav-toggle .icon { width: 18px; height: 18px; }
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle[aria-expanded="true"] { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }

/* 导航：窄屏收进抽屉，≥1000px 显示横向导航 */
.nav { display: none; }
@media (min-width: 1000px) {
  .nav {
    display: flex; align-items: center; gap: 2px;
    margin-left: auto; flex-wrap: nowrap;
  }
  .nav a {
    display: inline-flex; align-items: center;
    padding: 8px 12px; border-radius: var(--r-full);
    font-size: .89rem; font-weight: 550; color: var(--ink-500); white-space: nowrap;
    transition: background .16s var(--ease), color .16s var(--ease);
  }
  .nav a:hover { background: var(--surface-3); color: var(--ink-900); }
  .nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 650; }
  .nav-toggle { display: none; }
}

/* 抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 150; display: grid;
  grid-template-rows: 1fr auto; pointer-events: none;
}
.drawer[hidden] { display: none; }
.drawer-scrim {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(11, 8, 24, 0.42);
  opacity: 0; transition: opacity .24s var(--ease);
}
.drawer-panel {
  position: relative; align-self: end;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(13, 11, 26, 0.22);
  transform: translateY(100%); transition: transform .3s var(--ease);
  max-height: 88svh; overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.drawer-head strong { font-size: 1rem; }
.drawer-close {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-full);
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-500);
  font: inherit;
}
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 13px 14px; border-radius: var(--r-md); color: var(--ink-700);
  font-size: 1rem; font-weight: 550;
}
.drawer-nav a:hover { background: var(--surface-3); }
.drawer-nav a[aria-current="page"] {
  background: var(--brand-50); color: var(--brand-700); font-weight: 650;
}
.drawer-nav a .icon { width: 17px; height: 17px; color: var(--ink-300); }
.drawer-nav a[aria-current="page"] .icon { color: var(--brand-500); }
.drawer-sep { height: 1px; background: var(--line); margin: var(--sp-4) 0; }
.drawer-meta { display: grid; gap: 6px; font-size: .85rem; color: var(--ink-400); }
.drawer-meta a { color: var(--ink-500); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-900);
  font-family: inherit; font-size: .94rem; font-weight: 620; line-height: 1.3;
  text-align: center; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              border-color .16s var(--ease), background .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); border-color: var(--line-strong); color: var(--ink-900); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn small { display: block; font-size: .76rem; font-weight: 500; color: var(--ink-400); margin-top: 1px; }
.btn.primary {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
  box-shadow: var(--sh-brand);
}
.btn.primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; box-shadow: 0 10px 26px rgba(124, 77, 255, 0.34); }
.btn.primary small { color: rgba(255, 255, 255, 0.8); }
.btn.soft { background: var(--brand-50); border-color: transparent; color: var(--brand-700); }
.btn.soft:hover { background: var(--brand-100); border-color: transparent; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn.ghost small { color: rgba(255, 255, 255, 0.68); }
.btn.sm { padding: 9px 15px; font-size: .87rem; }
/* 竖排按钮（两行：主文案 + 副文案） */
.btn.stack { flex-direction: column; gap: 1px; padding: 12px 22px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.center { justify-content: center; }
.btn-row > .btn { flex: 0 1 auto; }
@media (max-width: 480px) {
  .btn-row > .btn { flex: 1 1 100%; }     /* 窄屏按钮占满一行，方便点按 */
}

/* 内联文字链接（带箭头） */
.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem; font-weight: 600; color: var(--brand-600);
}
.textlink .icon { width: 16px; height: 16px; transition: transform .16s var(--ease); }
.textlink:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- 区块 */
.section { padding: clamp(46px, 8vw, var(--sp-9)) 0; }
.section.tight { padding: clamp(30px, 5vw, 48px) 0; }
.section.surface { background: var(--surface-2); }
.section.dark {
  background: var(--night-900); color: var(--night-text);
  position: relative; isolation: isolate; overflow: hidden;
}
.section.dark::before {                    /* 柔光，而不是"星空" */
  content: ""; position: absolute; inset: -30% -20% auto; height: 70%;
  background:
    radial-gradient(closest-side, rgba(124, 77, 255, 0.4), transparent 70%) 20% 40%/55% 100% no-repeat,
    radial-gradient(closest-side, rgba(255, 77, 135, 0.28), transparent 70%) 78% 20%/45% 90% no-repeat;
  filter: blur(20px); z-index: -1;
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark p, .section.dark li { color: var(--night-text); }
.section.dark a { color: #c9b4ff; }
.section.dark a:hover { color: #fff; }

/* ⚠️ 深色面上的 `<b>/<strong>`：**所有**深色面都要列进来，不能只写 `.section.dark`。
   踩过的坑（用户截图报障「这里怎么一团黑」）：全局 `b, strong { color: var(--ink-900) }`
   是给**浅色面**用的，而首页 hero 与底部 CTA 是**独立命名**的深色面（不叫 `.section.dark`）⇒
   `米米星球是一款<strong>语音社交 App</strong>` 在深紫 hero 上渲染成**近黑色**（#0d0b1a），
   在手机上就是糊在紫底上的一团黑。**新增深色面时必须同步加到这里。** */
.hero b, .hero strong,
.cta-band b, .cta-band strong,
.appcard b, .appcard strong,
.section.dark b, .section.dark strong { color: #fff; }

.section-head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--ink-500); font-size: clamp(.97rem, 2.4vw, 1.05rem); margin-bottom: 0; }
.section.dark .section-head p { color: var(--night-text); }

/* 小节标题：
   eyebrow 小标签（可选） + 标题 + 右侧「查看全部」链接 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
/* 深色面上的 eyebrow 要用更亮的紫：--brand-600 在夜底上对比度只有 3.0（12px 小字太糊） */
.hero .eyebrow,
.cta-band .eyebrow,
.section.dark .eyebrow { color: var(--brand-400); }

/* ---------------------------------------------------------------- 网格 */
/* ⚠️ 每个修饰类都必须自己声明 `display: grid` —— 只写 `.grid{display:grid}` 不够：
   页面里用的是 `.grid-4` 这种**单独**的类名（不是 `.grid.grid-4`），
   漏了这行 `grid-template-columns` 会静默失效、卡片全变单列（实测踩过）。 */
.grid,
.grid-2,
.grid-3,
.grid-4 { display: grid; gap: clamp(14px, 2.6vw, 22px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 让某张卡跨列（首页用来做"重点卡"） */
@media (min-width: 640px) { .span-2 { grid-column: span 2; } }
@media (min-width: 980px) { .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } }

/* ---------------------------------------------------------------- 卡片 */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(18px, 3.3vw, 26px);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-500); }
.card ul, .card ol { color: var(--ink-500); }
/* 可点击整卡（a.card）：整块可点，内部链接不吃事件 */
/* 深色区块里的卡片：必须显式给深色底 —— 否则 `.card{background:var(--surface)}`
   会把卡片做成白底，而 `.section.dark` 又把标题设成白色 ⇒ 白字白底、整块看不见
   （实测踩过：首页「安全与社区秩序」三张卡渲染成空白色块）。 */
.section.dark .card {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--night-line);
}
.section.dark .card p,
.section.dark .card li,
.section.dark .card ul,
.section.dark .card ol { color: var(--night-text); }
/* 可点击整卡（a.card）：整块可点，内部链接不吃事件 */
a.card { display: block; color: inherit; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--brand-200); color: inherit; }
a.card .textlink { margin-top: 14px; }

/* 图标底座：柔和色块 + 描边图标 */
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.card-icon.tone-accent { background: var(--accent-100); color: var(--accent-500); }
.card-icon.tone-mint { background: var(--mint-100); color: var(--mint-500); }
.card-icon.tone-amber { background: var(--amber-100); color: var(--amber-500); }
.section.dark .card-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* 数字徽标（麦位数 / 人数）—— 比中文单字清楚得多 */
.badge-num {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; gap: 0;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 750; font-size: 1.1rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.badge-num small { font-size: .58rem; font-weight: 600; letter-spacing: .02em; opacity: .75; margin-top: 3px; }
.section.dark .badge-num { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* 卡片里的小字（补充说明） */
.card .note { margin-top: 10px; font-size: .84rem; color: var(--ink-400); line-height: 1.6; }
.section.dark .card .note { color: rgba(255, 255, 255, 0.56); }

/* 卡片网格里「去重」的集合式列表：整块白卡 + 分隔行 */
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px clamp(16px, 3vw, 22px);
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: none; }
.list-row .icon { color: var(--brand-600); margin-top: 2px; }
.list-row strong { display: block; color: var(--ink-900); font-size: .97rem; margin-bottom: 2px; }
.list-row span { color: var(--ink-500); font-size: .9rem; }

/* ---------------------------------------------------------------- 首页 Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night-900); color: #fff;
  padding: clamp(44px, 9vw, 92px) 0 clamp(40px, 8vw, 84px);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% -10%;
  background:
    radial-gradient(closest-side, rgba(124, 77, 255, 0.55), transparent 72%) 8% 18%/60% 78% no-repeat,
    radial-gradient(closest-side, rgba(255, 77, 135, 0.34), transparent 72%) 88% 8%/52% 66% no-repeat,
    radial-gradient(closest-side, rgba(18, 184, 166, 0.22), transparent 72%) 62% 96%/48% 60% no-repeat;
  filter: blur(18px); z-index: -1;
}
.hero-grid { display: grid; gap: clamp(30px, 5vw, 48px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #b79bff, #ff8fb6 55%, #ffd08a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: rgba(255, 255, 255, 0.82); font-size: clamp(1rem, 2.5vw, 1.1rem); max-width: 34em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-5); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-full); font-size: .82rem; font-weight: 550;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #fff;
}
.pill .icon { width: 15px; height: 15px; color: #b79bff; }

/* Hero 右侧：应用信息卡 */
.appcard {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3.4vw, 26px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.appcard-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.appcard-head img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.32); }
.appcard-head strong { display: block; font-size: 1.08rem; color: #fff; }
.appcard-head span { font-size: .8rem; color: rgba(255, 255, 255, 0.62); }
/* 规格表：窄屏两列，宽屏保持两列但标签更窄 */
.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; font-size: .86rem; margin: 0; }
.spec dt { color: rgba(255, 255, 255, 0.56); white-space: nowrap; }
.spec dd { margin: 0; color: #fff; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 页头（内页） */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(30px, 6vw, 56px) 0 clamp(26px, 5vw, 44px);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.crumbs { font-size: .82rem; color: var(--ink-400); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-400); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .sep { color: var(--ink-400); }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--ink-500); font-size: clamp(.97rem, 2.4vw, 1.06rem); max-width: 56rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- 数据表格 */
.table-wrap { width: 100%; }
.table {
  width: 100%; border-collapse: collapse; font-size: .94rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--surface-2); color: var(--ink-500); font-weight: 620; font-size: .85rem; letter-spacing: .01em; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }
.table th[scope="row"] { width: 32%; color: var(--ink-500); font-weight: 620; background: var(--surface-2); }
.table td { color: var(--ink-700); }
.table td .note { display: block; margin-top: 4px; font-size: .83rem; color: var(--ink-400); }

/* 小屏：表格 → 卡片列表（靠每个 <td> 的 data-label） */
@media (max-width: 719px) {
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: auto; }
  .table { border: 0; background: transparent; border-radius: 0; }
  .table thead { display: none; }
  .table tr {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 6px 4px; margin-bottom: 12px;
  }
  .table tr:last-child { margin-bottom: 0; }
  .table th, .table td { border: 0; padding: 9px 14px; }
  .table th[scope="row"] { background: transparent; padding-bottom: 2px; color: var(--ink-400); font-size: .8rem; letter-spacing: .02em; }
  .table tbody tr > td { padding-top: 2px; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: .78rem; font-weight: 650; letter-spacing: .02em;
    color: var(--ink-400); margin-bottom: 3px;
  }
  .table td[data-label] { padding-top: 12px; }
}

/* ---------------------------------------------------------------- 文档正文（协议/政策） */
.doc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px);
}
.doc h2 {
  font-size: clamp(1.08rem, 3vw, 1.22rem);
  margin: 2em 0 .55em; padding-top: 1.2em; border-top: 1px solid var(--line);
}
.doc > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 1.02rem; margin: 1.4em 0 .4em; }
.doc .meta { font-size: .85rem; color: var(--ink-400); margin-bottom: 1.8em; }
.doc p, .doc li { color: var(--ink-500); }
.doc b, .doc strong { color: var(--ink-900); }
.doc ol, .doc ul { padding-left: 1.25em; }
/* 目录（长文档顶部） */
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.6em; }
.doc-toc a {
  font-size: .85rem; padding: 6px 12px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--ink-500);
}
.doc-toc a:hover { background: var(--brand-50); color: var(--brand-700); }

/* 提示块 */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--brand-50); border-radius: var(--r-md);
  padding: 15px 17px; margin: 1.3em 0; font-size: .93rem; color: var(--ink-500);
}
.notice > .icon { color: var(--brand-600); margin-top: 2px; }
.notice b, .notice strong { color: var(--ink-900); }
.notice.warn { background: var(--amber-100); }
.notice.warn > .icon { color: var(--amber-500); }
.notice.danger { background: var(--accent-100); }
.notice.danger > .icon { color: var(--accent-500); }
.notice div { min-width: 0; }
.section.dark .notice { background: rgba(255, 255, 255, 0.08); color: var(--night-text); }

/* ---------------------------------------------------------------- 下载页 */
.dl-panel {
  display: grid; gap: clamp(22px, 4vw, 34px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(20px, 4vw, 34px);
}
@media (min-width: 760px) { .dl-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.qr {
  margin: 0; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; text-align: center;
}
.qr [data-qr] { display: grid; place-items: center; }
.qr img, .qr canvas, .qr svg { border-radius: 0; }
.qr figcaption { font-size: .78rem; color: var(--ink-400); margin-top: 10px; }
.dl-spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; font-size: .87rem; margin: 0; }
.dl-spec dt { color: var(--ink-400); white-space: nowrap; }
.dl-spec dd { margin: 0; color: var(--ink-700); overflow-wrap: anywhere; }
.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field input {
  flex: 1 1 auto; min-width: 0; padding: 11px 14px; font-family: var(--mono); font-size: .82rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink-500);
}

/* 步骤列表 */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; color: var(--ink-500); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-600); color: #fff; font-size: .82rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.section.dark .steps li::before { background: rgba(255, 255, 255, 0.16); }

/* ---------------------------------------------------------------- 底部 CTA */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night-900); color: #fff;
  padding: clamp(38px, 7vw, 68px) 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: -50% -10%;
  background: radial-gradient(closest-side, rgba(124, 77, 255, 0.5), transparent 70%) 30% 50%/60% 110% no-repeat,
              radial-gradient(closest-side, rgba(255, 77, 135, 0.3), transparent 70%) 82% 30%/48% 90% no-repeat;
  filter: blur(22px); z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 40rem; }

/* ---------------------------------------------------------------- 移动端吸底 CTA */
.dock {
  position: fixed; inset: auto 0 0; z-index: 90;
  display: flex; gap: 10px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .26s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------------------------------------------------------------- 页脚 */
.footer { background: var(--night-900); color: rgba(255, 255, 255, 0.6); padding: clamp(38px, 6vw, 58px) 0 28px; font-size: .89rem; }
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: #fff; }
.footer strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); } }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-brand b { color: #fff; font-size: .98rem; }
.footer-links { display: grid; gap: 9px; }
.footer-contact { display: grid; gap: 8px; margin-top: 14px; }
.footer-contact .row { display: flex; align-items: center; gap: 9px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--brand-400); }
.footer-bottom {
  margin-top: clamp(28px, 5vw, 44px); padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: .8rem; color: rgba(255, 255, 255, 0.52);   /* 0.45 在夜底只有 4.49:1，差一点点过 AA */
}
.footer-bottom .sep { color: rgba(255, 255, 255, 0.38); }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------------- 入场动画 */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .topbar, .footer, .dock, .drawer, .btn-row, .skip-link, .nav-toggle, .cta-band { display: none !important; }
  body { font-size: 11.5pt; color: #000; }
  .section, .page-head { padding: 0; background: none; border: 0; }
  .doc { border: 0; padding: 0; }
  a { color: inherit; }
  .table { border: 1px solid #999; }
}
