/* ==========================================================================
   FaceNest 官网样式
   --------------------------------------------------------------------------
   设计取向（详见 README「为什么是浅色」）：
     * 浅色为主 → 深色的 App 截图在浅底上自然"跳"出来，像产品照；
       同时隐私政策 / 条款 / FAQ 这类长文在浅底上更好读、更像正经文档。
     * 深色只做"节奏带"（隐私区块 + 末尾 CTA），呼应 App 的深色界面。
     * 主色 #8B5CF6 是从 App 界面上直接采样的品牌紫（按钮 rgb(139,92,246)）。
     * 字体只用系统字体栈 —— 零下载、零商用授权风险（见 README）。
   ========================================================================== */

:root {
  --brand: #8b5cf6;
  --brand-ink: #6d28d9;
  --brand-soft: #f4efff;
  --brand-line: #ddccff;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-elev: #ffffff;

  --ink: #0c1020;
  --ink-2: #4e5668;
  --ink-3: #7c8698;

  --line: #e4e7f0;
  --line-strong: #d3d8e6;

  --dark: #14161d;
  --dark-2: #1f2025;

  --ok: #16a34a;
  --warn: #b45309;
  --warn-soft: #fff8ed;
  --warn-line: #f5d9a8;

  --shadow-sm: 0 1px 2px rgba(12, 16, 32, .06);
  --shadow-md: 0 10px 30px -12px rgba(12, 16, 32, .16);
  --shadow-lg: 0 34px 70px -30px rgba(12, 16, 32, .38);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

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

html[data-theme="dark"] {
  --brand: #a78bfa;
  --brand-ink: #c4b5fd;
  --brand-soft: #1d1730;
  --brand-line: #3a2f60;

  --bg: #0b0d13;
  --bg-soft: #101319;
  --bg-elev: #151821;

  --ink: #f3f5fa;
  --ink-2: #a8b0c2;
  --ink-3: #7d8798;

  --line: #242835;
  --line-strong: #333949;

  --dark: #07090d;
  --dark-2: #151821;

  --warn-soft: #2a1f10;
  --warn-line: #5b431d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, .85);
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -.018em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
h3 { font-size: 1.075rem; }
/* 中文标题按字数折行很容易断在词中间（"交给你自 / 己的"），balance 让浏览器自己配平 */
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .38em;
  white-space: nowrap;
}

/* ⚠️ 2026-10-01（r45）：上面那条 `nowrap` 是为了不让 `FaceNest.exe` 这种短标识在句中折断，
   但**长路径 / 长命令行 / 64 字符哈希**根本没有可断处 ⇒ min-content 能到 400px+，
   会把卡片、表格乃至整页撑宽（390px 视口实测：卡片 517px、整页 543px）。
   下面这些位置放开断行：`overflow-wrap:anywhere` 只在"实在放不下"时才断，短标识不受影响。 */
.card code, .data-table code, .prose code, .notice code, .faq code,
.release-meta code { white-space: normal; overflow-wrap: anywhere; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }

/* --- skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-name { font-size: 1.12rem; }

.site-nav { margin-left: 12px; flex: 1; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink-2); font-size: .945rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  font-size: .87rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; line-height: 1.2;
}
.lang-switch:hover { border-color: var(--line-strong); color: var(--ink); text-decoration: none; }

.theme-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.theme-toggle .tt-moon { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: block; }

.nav-toggle {
  display: none; width: 38px; height: 34px; padding: 8px 9px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: .965rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--bg-elev); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-sm { padding: 8px 15px; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- hero --------------------------------------------------------------- */
.hero { padding: 66px 0 26px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -180px 0 auto; height: 460px;
  background: radial-gradient(58% 100% at 50% 0%, color-mix(in srgb, var(--brand) 17%, transparent), transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.hero h1 { max-width: 17ch; margin-inline: auto; margin-bottom: .45em; }
/* 中文标题字宽是英文的两倍，17ch 会让它断在词中间（"交给你自 / 己的"）→ 放宽 */
html[lang^="zh"] .hero h1 { max-width: 34ch; }
.hero-lead { max-width: 62ch; margin: 0 auto 30px; font-size: 1.14rem; color: var(--ink-2); }
.hero .cta-row { justify-content: center; }
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  list-style: none; margin: 30px 0 0; padding: 0;
  font-size: .9rem; color: var(--ink-3);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: "✓"; color: var(--brand); font-weight: 700; }

/* --- screenshots -------------------------------------------------------- */
.shot { margin: 0; }
.shot-link {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: var(--dark);
  cursor: zoom-in;
}
.shot-link img { width: 100%; }
.shot-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.shot figcaption {
  margin-top: 14px; font-size: .885rem; color: var(--ink-3); text-align: center;
}

.shot-hero { margin-top: 46px; }
.shot-wide { margin: 46px 0; }
.feature-media .shot-link { box-shadow: var(--shadow-md); }

.band-dark .shot-link { border-color: #2c2f3a; box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .9); }
.band-dark .shot figcaption { color: #98a0b2; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; list-style: none; margin: 0; padding: 0; }
.gallery li { margin: 0; }

/* --- sections ----------------------------------------------------------- */
.section-head { max-width: 66ch; margin: 0 0 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h1 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.section-head .lead, .lead { font-size: 1.055rem; color: var(--ink-2); margin-bottom: 0; }
.kicker {
  margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-ink);
}

main > section, main > div.wrap { margin-block: 0; }
/* ⚠️ 这个清单里的选择器是 `main > .X`，优先级 (0,1,1) —— **高于** @media 里的 `.X` (0,1,0)。
   所以窄屏想覆盖 `max-width` / `padding-inline` 时，媒体查询里也必须写成 `main > .X`，
   否则那条规则是死的（`.pricing` 就栽在这里）。
   `.pricing-foot` 是 `.pricing` 的兄弟节点，必须单独列进来，否则它会横跨整个视口。 */
main > .section-head, main > .cards, main > .pricing, main > .pricing-foot,
main > .table-wrap, main > .stats, main > .gallery, main > .faq, main > .prose,
main > .notice, main > .steps-layout, main > .changelog, main > .contact-list,
main > .release, main > .hero {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 26px;
}

main > .section-head { padding-top: 58px; }
main > .cards, main > .pricing, main > .table-wrap, main > .stats,
main > .gallery, main > .faq, main > .prose, main > .steps-layout,
main > .changelog, main > .contact-list, main > .release { padding-bottom: 8px; }
main > .notice { margin-block: 24px; }
main > section.feature { padding: 40px 0; }
main > .band { padding: 62px 0; margin-block: 26px; }
main > .final-cta { margin-top: 40px; }

/* --- cards -------------------------------------------------------------- */
.cards { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 11px; background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 1.2rem; line-height: 1;
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-2); font-size: .965rem; }
.card-tag {
  display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .775rem; color: var(--ink-3); font-weight: 600;
}

/* --- feature rows ------------------------------------------------------- */
.feature-inner {
  display: grid; grid-template-columns: 1fr 1.12fr; gap: 54px; align-items: center;
}
.feature.flip .feature-text { order: 2; }
.feature.flip .feature-media { order: 1; }
.feature-text h2 { margin-bottom: .4em; }
.feature-text p { color: var(--ink-2); }
.feature-points { list-style: none; margin: 20px 0 0; padding: 0; }
.feature-points li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-size: .955rem; color: var(--ink-2);
}
.feature-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

/* --- stats -------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.stat {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center;
}
.stat-value { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand-ink); }
.stat-label { display: block; margin-top: 4px; font-size: .92rem; font-weight: 600; }
.stat-note { display: block; margin-top: 3px; font-size: .82rem; color: var(--ink-3); }

/* --- pricing ------------------------------------------------------------ */
/* 列数由生成器写进 class（`.pricing--2` / `.pricing--3`），**不要用 `:has()` 去猜**：
   `.pricing:has(...)` 的优先级是 (0,4,0)，会压过 @media(max-width:1000px) 里的
   `.pricing` (0,1,0) → 窄屏"改成一列"永远不生效。真踩过（390px 横向溢出）。
   `minmax(0, 1fr)` 是防"内容最小宽度撑破轨道"的（`.pf-value` 那行文字）。 */
/* ⚠️ 2026-10-01（r46）：这里原来是 `align-items: start` —— 卡片高度**各自按内容算**，
   于是同一行里三张卡的底边与按钮高低不一。英文最明显：
   "GPU acceleration" 折成两行、"Activatable devices" 只有一行 ⇒ 四行特性表高度不同。
   中文标签不折行，所以中文页看着是齐的 —— 这就是"只有英文不齐"的原因。
   ＊改成 `stretch`（grid 的默认值）让同一行的卡片等高，再由 `.plan-cta { margin-top: auto }`
   把按钮钉到底部 ⇒ 按钮与卡片底边同时对齐。 */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pricing--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing--1 { grid-template-columns: minmax(0, 1fr); }
.plan {
  position: relative; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan-featured {
  border-color: var(--brand); box-shadow: 0 20px 50px -24px color-mix(in srgb, var(--brand) 60%, transparent);
}
.plan-badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--brand); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.plan-price .amount { font-size: 2.35rem; font-weight: 700; letter-spacing: -.035em; }
.plan-price .period { color: var(--ink-3); font-size: .95rem; }
.plan-note { color: var(--ink-3); font-size: .885rem; min-height: 2.6em; }
.plan-features { list-style: none; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.plan-features li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; font-size: .93rem;
}
.pf-label { color: var(--ink-2); }
.pf-value { font-weight: 600; text-align: right; }
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; }
.pricing-foot {
  /* ⚠️ 这个 <p> 是 `.pricing` 的**兄弟节点**，不在网格里 ——
     所以 `grid-column: 1/-1` 是死代码，而且它也拿不到 `main > .pricing` 的
     1140px 包裹宽度 → 会横跨整个视口，文字起点比卡片左 176px（WC 报的"偏左"）。
     现在把它加进了下面 `main > ...` 的宽度清单，这里只管外观。 */
  margin: 6px 0 0; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--ink-2);
}

/* --- tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table caption { text-align: left; padding: 14px 18px 0; color: var(--ink-3); font-size: .88rem; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--bg-soft); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink-2); white-space: nowrap; }

/* --- steps -------------------------------------------------------------- */
.steps-layout { display: grid; grid-template-columns: 1fr; gap: 34px; }
.steps-layout:has(.shot) { grid-template-columns: 1fr 1fr; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-ink); font-weight: 700; font-size: .92rem;
}
.step h3 { margin-bottom: .3em; font-size: 1.015rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-group { margin-bottom: 34px; }
.faq-group h2 { font-size: 1.22rem; margin-bottom: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-elev); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 46px 16px 20px; position: relative;
  font-weight: 600; font-size: 1rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-body { padding: 2px 20px 18px; color: var(--ink-2); font-size: .965rem; border-top: 1px solid var(--line); }
.faq-body p:first-child { margin-top: 14px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0 0 1em; padding-left: 22px; }

/* --- prose (legal pages) ------------------------------------------------ */
.prose { max-width: 78ch; }
.prose-section { padding-top: 34px; }
.prose-section h2 { font-size: 1.28rem; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.prose-section h3 { margin-top: 1.4em; font-size: 1.03rem; }
.prose-section ul, .prose-section ol { padding-left: 24px; color: var(--ink-2); }
.prose-section li { margin-bottom: .5em; }
.prose-note {
  background: var(--bg-soft); border-left: 3px solid var(--brand-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; font-size: .93rem; color: var(--ink-2);
}
.prose blockquote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-size: .97rem;
}
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 1.1em 0; font-size: .95rem; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; color: var(--ink-2); }

/* --- notices ------------------------------------------------------------ */
.notice {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; background: var(--bg-soft);
  font-size: .955rem; color: var(--ink-2);
}
.notice p { margin: 0; }
.notice-title { color: var(--ink); }
.notice-info { border-color: var(--brand-line); background: var(--brand-soft); }
.notice-warn { border-color: var(--warn-line); background: var(--warn-soft); }
.notice-cta { margin-top: 12px !important; }

/* --- bands -------------------------------------------------------------- */
.band-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.band-dark { background: var(--dark); color: #eef0f6; }
.band-dark .kicker { color: #b9a6ff; }
.band-dark .lead { color: #a6adbe; }
.band-dark .card { background: var(--dark-2); border-color: #2c2f3a; color: #eef0f6; }
.band-dark .card p { color: #a6adbe; }
.band-dark .card-icon { background: #241d3d; border-color: #3a2f60; }
.band-dark .notice { background: #191c24; border-color: #2c2f3a; color: #a6adbe; }
.band-dark .notice-title { color: #eef0f6; }
.band-dark a { color: #c4b5fd; }
.band-soft .section-head { padding-top: 0; }

/* --- final CTA ---------------------------------------------------------- */
.final-cta {
  background: linear-gradient(140deg, #1a1430 0%, var(--dark) 58%);
  color: #eef0f6; text-align: center;
}
.final-cta .wrap { padding-block: 74px; }
.final-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.final-cta p { color: #a6adbe; max-width: 58ch; margin-inline: auto; margin-bottom: 28px; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-ghost { background: transparent; border-color: #3a3f4e; color: #eef0f6; }
.final-cta .btn-ghost:hover { border-color: #8b5cf6; color: #fff; }

/* --- release card ------------------------------------------------------- */
.release {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-elev); padding: 30px; box-shadow: var(--shadow-sm);
}
.release h2 { font-size: 1.4rem; margin-bottom: .3em; }
.release p { color: var(--ink-2); margin-bottom: 18px; }
.release .pill {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-ink); font-size: .78rem; font-weight: 700;
}
.release-meta { list-style: none; margin: 0; padding: 0; }
.release-meta li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.release-meta li:last-child { border-bottom: 0; }
.release-meta span { color: var(--ink-3); }
.release-meta code { background: transparent; border: 0; padding: 0; font-size: .85rem; }
/* ⚠️ 2026-09-30（r44）：下载开关一打开，release-meta 里就出现了 **64 字符的 sha256** ——
   它没有空格、不能断行，min-content 宽度约 500px，会把这个 grid 轨道整体撑到 559px，
   于是 390px 视口下**整页横向溢出**（布局闸门 audit_layout 当场抓到，2/52 页）。
   需要三条一起，少一条都不行：
     ① grid / flex 子项默认 min-width:auto ⇒ 显式给 0，轨道才收缩得动；
     ② 全局 `code { white-space: nowrap }` 会让 `overflow-wrap` 完全失效 ⇒ 这里要 reset；
     ③ 用 `overflow-wrap:anywhere`（不是 break-word）才会影响 min-content 尺寸。 */
.release > * { min-width: 0; }
.release-meta li { min-width: 0; }
.release-meta code { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
/* 标签列（"SHA-256" / "After unpacking"）不许在词中间断行 —— 上面把 min-width 放开之后，
   "SHA-256" 曾在这儿被折成 "SHA-" + "256"。标签都很短，nowrap 安全。 */
.release-meta span { white-space: nowrap; }
.release-hint { margin: 14px 0 0; font-size: .86rem; color: var(--ink-3); }

/* --- contact ------------------------------------------------------------ */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-item {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.contact-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.contact-value { display: block; margin: 6px 0 8px; font-size: 1.08rem; font-weight: 600; }
.contact-note { display: block; color: var(--ink-2); font-size: .93rem; }

/* --- changelog ---------------------------------------------------------- */
.changelog { display: grid; gap: 22px; }
.cl-entry {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
}
.cl-entry h2 { font-size: 1.2rem; margin-bottom: .25em; }
.cl-meta { margin: 0 0 14px; color: var(--ink-3); font-size: .88rem; }
.cl-tag {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-ink); font-size: .75rem; font-weight: 700;
}
.cl-entry ul { margin: 0; padding-left: 22px; color: var(--ink-2); }
.cl-entry li { margin-bottom: .45em; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 76px; background: var(--dark); color: #a6adbe; font-size: .93rem;
  border-top: 1px solid #23262f;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px;
  padding-block: 54px;
}
.footer-brand img { margin-bottom: 12px; }
.footer-wordmark { margin: 0; font-size: 1.1rem; font-weight: 700; color: #eef0f6; letter-spacing: -.02em; }
.footer-tag { margin: 4px 0 10px; color: #8b93a5; font-size: .9rem; }
.footer-ver { margin: 0; color: #6f7789; font-size: .84rem; font-family: var(--font-mono); }
.footer-col h2 {
  margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #6f7789;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #c3cad8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px; border-top: 1px solid #23262f; color: #6f7789; font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.footer-legal-links a { color: #8b93a5; }

/* --- lightbox ----------------------------------------------------------- */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8, 10, 16, .92); padding: 28px;
  overflow: auto; cursor: zoom-out;
}
.lb.is-open { display: block; }
.lb img { margin: 0 auto; border-radius: 10px; box-shadow: 0 40px 90px -30px #000; }
.lb-close {
  position: fixed; top: 18px; right: 22px; z-index: 201;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(20, 22, 29, .8);
  color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .feature-inner { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .feature-text { order: 1; }
  .feature.flip .feature-media { order: 2; }
  .cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* ⚠️ 这里必须带 `main > .pricing`（(0,1,1)）才盖得住上面那条同选择器的 max-width；
     只写 `.pricing`（(0,1,0)）的话整条规则是死的 —— 这就是当初 390px 横向溢出的原因。 */
  main > .pricing, .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  main > .pricing-foot, .pricing-foot { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps-layout:has(.shot) { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; inset: 66px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 26px 20px; display: none; box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 11px 12px; font-size: 1rem; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 44px; }
  .hero-lead { font-size: 1.04rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding-block: 40px; }
  main > .band { padding: 44px 0; }
  .final-cta .wrap { padding-block: 52px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .data-table td:first-child { white-space: normal; }
  /* 窄屏上 `btn-lg` 的长文案可能比屏幕还宽（`.btn` 全局 nowrap）⇒ 放开折行，别撑宽页面 */
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   file:// 预览提示条（只在本地双击 dist/index.html 时出现，见 theme/site.js）
   线上站点是 https，永远看不到这条。
   -------------------------------------------------------------------------- */
.file-warn {
  position: relative; z-index: 999;
  background: var(--warn-soft); color: var(--warn);
  border-bottom: 1px solid var(--warn-line);
  padding: 12px 46px 12px 20px;
  font-size: .9rem; line-height: 1.6;
}
.file-warn b { color: var(--ink); }
.file-warn code {
  font-family: var(--font-mono); font-size: .85em;
  background: rgba(12, 16, 32, .06); border-radius: 5px; padding: 1px 5px;
}
.file-warn button {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--warn);
  padding: 4px 6px; border-radius: 6px;
}
.file-warn button:hover { background: rgba(12, 16, 32, .06); }

@media print {
  .site-header, .site-footer, .final-cta, .lb, .theme-toggle, .nav-toggle,
  .file-warn { display: none; }
  body { font-size: 11pt; }
}
