/*!
 * 开造官网样式表（kaizaolab.com）
 *
 * 设计口径跟随 App（apps/mobile/DESIGN.md）：墨青 #0F766E 单一强调色、
 * 浅色为底、克制的动效、中文优先的字体栈（不引外部字体，避免大陆网络下
 * 「字体抖动 / 首屏空白」）。
 *
 * 目录：
 *  01 令牌与重置        06 功能网格        11 关于我们
 *  02 基础排版          07 料谱专章        12 页脚
 *  03 通用组件          08 下载区          13 法律长文页
 *  04 顶栏与导航        09 安装步骤/FAQ    14 动效与无障碍
 *  05 首屏与手机模型    10 品牌板块        15 响应式
 */

/* ============================================================ 01 令牌与重置 */

:root {
  /* 主体色（与 App tokens 对齐） */
  --ink: #0a1210;
  --ink-2: #16211e;
  --bg: #fafbfa;
  --surface: #ffffff;
  --surface-2: #f3f6f5;
  --muted: #5c6b66;
  --muted-2: #8a9793;
  --line: #e6ebe9;
  --line-strong: #d3dedb;

  --teal: #0f766e;
  --teal-700: #0b5c56;
  --teal-900: #073b37;
  --teal-bright: #14b8a6;
  --teal-mint: #2dd4bf;
  --teal-soft: rgba(15, 118, 110, 0.09);
  --teal-soft-2: rgba(15, 118, 110, 0.16);

  /* 深色区块 */
  --dark-1: #06110f;
  --dark-2: #0a201c;
  --dark-3: #0a1a22;
  --on-dark: #eaf3f0;
  --on-dark-muted: rgba(234, 243, 240, 0.66);
  --on-dark-line: rgba(234, 243, 240, 0.14);

  --ok: #0f766e;
  --warn: #b54708;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(10, 18, 16, 0.04), 0 6px 16px -10px rgba(10, 18, 16, 0.12);
  --shadow-md: 0 2px 6px rgba(10, 18, 16, 0.04), 0 20px 44px -22px rgba(10, 18, 16, 0.24);
  --shadow-lg: 0 44px 90px -40px rgba(6, 20, 17, 0.5);
  --shadow-glow: 0 16px 40px -16px rgba(15, 118, 110, 0.55);

  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
  --radius-pill: 999px;

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

  --nav-h: 68px;

  /* 深色区域（首屏顶栏 / 页脚）里那圈白底 logo 卡片的高度：34px 图形 + 上下各 4px 内边距。
     页脚的 App logo 与「极昂工厂」logo 都用它，保证并排时高度分毫不差。 */
  --logo-card-h: 42px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

[hidden] { display: none !important; }

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

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--teal-soft-2); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================ 02 基础排版 */

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.14rem; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--muted);
  line-height: 1.75;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================ 03 通用组件 */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--surface {
  background-color: var(--surface);
  /* 上下边缘各带一点墨青色过渡，白色区块之间因此有了呼吸感 */
  background-image: linear-gradient(180deg, #f2f8f7 0%, #ffffff 16%, #ffffff 84%, #f4f9f8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--soft { background: linear-gradient(180deg, #f6f9f8 0%, #fafbfa 100%); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 13px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}
.section-head p { margin-top: 14px; }

/* 按钮 */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  font-size: 0.97rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary {
  background: linear-gradient(180deg, #12897f 0%, var(--teal) 100%);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 20px 46px -16px rgba(15, 118, 110, 0.62); color: #fff; }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--teal-soft-2); color: var(--teal-700); }

.btn--on-dark {
  background: rgba(234, 243, 240, 0.08);
  border-color: var(--on-dark-line);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(234, 243, 240, 0.14); color: #fff; }

.btn--sm { padding: 9px 15px; font-size: 0.88rem; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"],
.btn.is-disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* 徽标 / 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--soon { background: rgba(181, 71, 8, 0.1); color: var(--warn); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.badge--on-dark { background: rgba(45, 212, 191, 0.14); color: var(--teal-mint); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--accent { border-color: var(--teal-soft-2); background: var(--teal-soft); color: var(--teal-700); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.tiny { font-size: 0.8rem; }
.mono { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }

.hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 71, 8, 0.22);
  border-radius: var(--radius);
  background: rgba(181, 71, 8, 0.06);
  color: #7a3c07;
  font-size: 0.88rem;
  line-height: 1.55;
}
.hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--teal-soft-2);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-900);
  font-size: 0.88rem;
  line-height: 1.55;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ======================================================= 04 顶栏与导航 */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 251, 250, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 251, 250, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(10, 18, 16, 0.5);
}
/* 首屏为深色时，顶栏在顶部用浅色文字 */
.site-header--over-dark:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; }
.site-header--over-dark:not(.is-scrolled) .brand__name { color: #fff; }
.site-header--over-dark:not(.is-scrolled) .nav a { color: var(--on-dark-muted); }
.site-header--over-dark:not(.is-scrolled) .nav a:hover { color: #fff; }
.site-header--over-dark:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; }
.site-header--over-dark:not(.is-scrolled) .btn--ghost {
  background: rgba(234, 243, 240, 0.08);
  border-color: var(--on-dark-line);
  color: #fff;
  box-shadow: none;
}
.site-header--over-dark:not(.is-scrolled) .nav-toggle span { background: #fff; }

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  height: 34px;
  width: auto;
  max-width: 96px;
  flex: none;
  object-fit: contain;
}
/* Logo 是「深墨青不透明图形 + 透明底」的 PNG，不是白色描边图标。
   深色区域（首屏顶栏、页脚）里**不能反白** —— brightness(0) invert(1) 会把整个
   不透明区域压成一个纯白剪影（之前就是这个毛病）。正确做法是垫一块浅色底，
   让 Logo 保持原色与原细节。
   高度只写一个来源 --logo-card-h：页脚里开造 App logo 与「极昂工厂」logo 并排，
   两者必须一模一样；改高度只改那一个变量。 */
.site-header--over-dark:not(.is-scrolled) .brand__mark,
.site-footer .brand__mark,
.site-footer .footer-partner__mark {
  height: var(--logo-card-h);   /* 34px 图形 + 上下各 4px 内边距 */
  padding: 4px 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.6);
}
.brand__name {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__sub {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(10, 18, 16, 0.045); }
.nav a[aria-current="page"] { color: var(--teal-700); background: var(--teal-soft); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================== 05 首屏与手机模型 */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(20, 184, 166, 0.26), transparent 62%),
    radial-gradient(880px 520px at 92% 4%, rgba(45, 212, 191, 0.16), transparent 58%),
    linear-gradient(170deg, var(--dark-1) 0%, var(--dark-2) 52%, #08161a 100%);
  color: var(--on-dark);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 243, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 243, 240, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(96deg, var(--teal-mint) 0%, #7ce7d6 46%, #b8f4e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: var(--on-dark-muted); max-width: 34em; }
.hero .eyebrow { background: rgba(45, 212, 191, 0.13); color: var(--teal-mint); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.hero-meta {
  /* 四个卖点现在是「标题 + 说明」两行，用自适应网格排，窄屏自动落成一列。
     minmax(min(220px,100%),1fr) 保证在极窄视口下也不会因为 220px 下限而横向溢出。 */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font-size: 0.87rem;
}
/* 卖点条目：`<b>标题</b>&#32;<span>描述</span>`。
   注意 <b> 与描述之间必须有一个**真实空格字符**（HTML 里写作 &#32;）：
   textContent 不做任何分隔拼接，会让「标题」和「描述」粘成一个词
   （复制、读屏、SEO 摘要、纯 CSS 失效的阅读模式都按 textContent 取文本）。
   这里的 flex 纵向排布会把纯空白文本节点丢掉不渲染（规范如此），所以视觉间距由
   gap 负责、文本间距由 &#32; 负责，两者各管一段，互不顶替。 */
.hero-meta li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.hero-meta li > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* 万一退化成行内排布（阅读模式 / 打印 / 样式未加载），标题右侧仍需留出可见间距 */
.hero-meta b { color: var(--on-dark); font-weight: 700; margin-right: 0.35em; }
.hero-meta li > span > span { font-size: 0.79rem; line-height: 1.55; opacity: 0.86; }
.hero-meta svg { width: 15px; height: 15px; margin-top: 3px; color: var(--teal-mint); flex: none; }

/* —— 手机模型 —— */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 62%);
  filter: blur(18px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 288px;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1b2b28 0%, #0a1210 46%, #050d0c 100%);
  border: 1px solid rgba(234, 243, 240, 0.16);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.2;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
}
.ph-status__icons { display: flex; align-items: center; gap: 4px; }
.ph-status__icons i {
  display: block;
  width: 12px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.75;
}
.ph-status__icons i:first-child { width: 8px; height: 8px; border-radius: 50%; }

.ph-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.ph-appbar__logo { height: 19px; width: auto; max-width: 30px; flex: none; object-fit: contain; }
.ph-appbar__title { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.ph-appbar__spacer { margin-left: auto; color: var(--muted-2); display: flex; }
.ph-appbar__spacer svg { width: 16px; height: 16px; }

.ph-feed { flex: 1; min-height: 0; padding: 4px 0 0; overflow: hidden; }

.ph-post { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.ph-post__head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ph-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--teal-bright), #0b5c56);
}
.ph-avatar--b { background: linear-gradient(140deg, #f59e0b, #b45309); }
.ph-post__name { font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
.ph-post__meta { font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
.ph-post__text { margin: 0 0 9px; font-size: 0.78rem; line-height: 1.5; color: var(--ink-2); }
.ph-media {
  position: relative;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(120% 110% at 26% 8%, #23514a 0%, #10302c 46%, #08201d 100%);
}
.ph-media::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 58px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--teal-mint), #0e6b62);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
}
.ph-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 17, 15, 0.62);
  color: #d8f6ef;
  font-size: 0.6rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.ph-actions {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.64rem;
}
.ph-actions span { display: inline-flex; align-items: center; gap: 5px; }
.ph-actions svg { width: 13px; height: 13px; }
.ph-actions .is-liked { color: #e11d48; }

.ph-post--ghost { opacity: 0.5; }
.ph-post--ghost .ph-media { height: 56px; }

.ph-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 9px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted-2);
  font-size: 0.56rem;
}
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 600; }
.ph-tab svg { width: 17px; height: 17px; }
.ph-tab.is-active { color: var(--teal); }
.ph-tab--fab {
  width: 34px;
  height: 34px;
  margin-top: -6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #12897f, var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -10px rgba(15, 118, 110, 0.9);
}
.ph-tab--fab svg { width: 18px; height: 18px; }

/* 浮动信息卡 */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  background: rgba(10, 26, 23, 0.72);
  color: var(--on-dark);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  line-height: 1.35;
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--teal-mint);
}
.float-card__icon svg { width: 17px; height: 17px; }
.float-card b { display: block; font-size: 0.84rem; font-weight: 700; color: #fff; }
.float-card span { color: var(--on-dark-muted); font-size: 0.74rem; }

.float-card--spec { left: -12px; top: 16%; animation: chip-in 6.5s ease-in-out infinite; }
.float-card--deal { right: -14px; bottom: 20%; animation: chip-in 6.5s ease-in-out infinite reverse; }
@keyframes chip-in {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ======================================================= 06 品牌板块条 */

.boards {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f7fbfa 0%, #ffffff 42%, #f5faf9 100%);
  overflow: hidden;
}
.boards__inner { display: flex; align-items: center; gap: 28px; }
.boards__label {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================================= 07 功能网格 */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--teal-soft-2);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-700);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature:hover .feature__icon { background: var(--teal-soft-2); transform: scale(1.04); }
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ========================================================= 08 料谱专章 */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 11px; font-size: 0.94rem; line-height: 1.65; color: var(--ink-2); }
.check-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--teal); }
.check-list b { font-weight: 700; }

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.panel__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
}
.panel__search svg { width: 16px; height: 16px; flex: none; }
.panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.brand-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.brand-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.brand-card__swatch { height: 34px; border-radius: 8px; margin-bottom: 9px; }
.brand-card b { display: block; font-size: 0.82rem; }
.brand-card span { color: var(--muted); font-size: 0.72rem; }

.row-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.row-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.86rem;
}
.row-list .swatch { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.row-list .grow { flex: 1; min-width: 0; }
.row-list .grow b { display: block; font-size: 0.87rem; font-weight: 700; }
.row-list .grow span { color: var(--muted); font-size: 0.76rem; }

/* =========================================================== 09 下载区 */

.dl-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); gap: 20px; align-items: start; }

.dl-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dl-card--soon { background: linear-gradient(180deg, var(--surface) 0%, #f5f8f7 100%); }

.dl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dl-head img { width: 66px; height: 66px; border-radius: 17px; flex: none; box-shadow: var(--shadow-sm); }
.dl-head__name { font-size: 1.16rem; font-weight: 800; }
.dl-head__sub { color: var(--muted); font-size: 0.86rem; }

.dl-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; }

.dl-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0 0 20px;
  padding: 0;
}
.dl-specs div { min-width: 0; }
.dl-specs dt { color: var(--muted); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; }
.dl-specs dd { margin: 3px 0 0; font-size: 0.9rem; font-weight: 650; }

.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 二维码列（重构版）：结构只有三层 ——
     .dl-card（父卡片，负责整块内边距）
       └ .qr      <figure>：一列「白框 + 说明」，水平居中、上下居中，左右内边距对称
           └ .qr__box  定宽自适应的**正方形**容器（width:min(--qr-size,100%) + aspect-ratio:1/1）
               └ <svg>  二维码本体，width/height:100% 填满白框
   硬性约定（这版重构就是为了守住它们）：
     1) 不写死 px 尺寸、不用 position:absolute、不用 transform、不用负 margin
        —— 之前「二维码偏左」正是定位/尺寸写法互相打架的结果；
     2) 白框宽度只由 --qr-size 与父容器宽度决定，任何视口都只能变窄、不能溢出；
     3) <figure> 的默认 `margin: 1em 40px` 必须清零（否则整块右移并戳出卡片 40px）。 */

.qr {
  margin: 0;                 /* ❗ <figure> 默认 margin:1em 40px，必须显式清零 */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* 一列：白框在上、说明在下；水平居中由 align-items 负责，左右内边距天然对称。
     任何视口都不再切换成横向排布（旧版 ≤640 的 flex-direction:row 会让
     说明文字 flex:1 吃掉全部剩余宽度，把白框顶到最左边 —— 这就是「偏」。） */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  text-align: center;
}
.qr__box {
  /* 只调 --qr-size 就能改大小；宽度永远 min(--qr-size, 100%)，绝不会撑破父框。
     正方形由 aspect-ratio 锁定，不依赖 JS 计算、不依赖内部元素尺寸。 */
  --qr-size: 200px;
  width: min(var(--qr-size), 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;            /* 双保险：即使父级改成别的对齐方式也水平居中 */
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);   /* 单行 1fr = 容器内容高度，height:100% 才有解 */
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* 二维码本体：撑满白框；SVG 自带 viewBox，等比缩放永远不变形、不模糊。 */
.qr__box > svg,
.qr__box > canvas,
.qr__box > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}
.qr__box > .qr__placeholder { color: var(--muted-2); font-size: 0.7rem; line-height: 1.4; }
.qr figcaption {
  min-width: 0;
  max-width: 100%;
  /* 说明被挤窄时按字符断行，而不是撑破父框 */
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.dl-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.dl-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.dl-notes li { display: flex; gap: 8px; font-size: 0.87rem; color: var(--muted); line-height: 1.6; }
.dl-notes strong { flex: none; color: var(--teal-700); font-weight: 700; }
.dl-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-soft-2);
}

.sha { margin-top: 12px; }
.sha summary { color: var(--muted); font-size: 0.82rem; cursor: pointer; }
.sha p { margin: 8px 0 0; }

/* iOS 卡片 */
.soon-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.soon-hero__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.soon-hero__icon svg { width: 26px; height: 26px; }
.soon-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.soon-steps li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.soon-steps svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--teal); }

/* 安装步骤 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 800;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ============================================================== 10 FAQ */

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--teal-soft-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.97rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--teal); }
.faq .faq__body { padding: 0 18px 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.faq .faq__body p + p { margin-top: 10px; }
.faq .faq__body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.84em;
}

/* ========================================================= 11 关于我们 */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.about-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.about-rows { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.about-rows li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.about-rows li:first-child { border-top: 0; }
.about-rows dt, .about-rows .k { flex: none; width: 84px; color: var(--muted); font-size: 0.87rem; }
.about-rows .v { color: var(--ink); font-weight: 600; min-width: 0; }
.about-rows .v a { font-weight: 600; }

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 60px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(680px 340px at 12% -20%, rgba(20, 184, 166, 0.28), transparent 62%),
    linear-gradient(140deg, var(--dark-2) 0%, #071512 100%);
  color: var(--on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; max-width: 22em; }
.cta-band p { color: var(--on-dark-muted); margin-top: 10px; max-width: 34em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================== 12 页脚 */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: var(--dark-1);
  color: var(--on-dark-muted);
  font-size: 0.89rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--on-dark-line);
}
.site-footer .brand { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { border-left-color: var(--on-dark-line); color: var(--on-dark-muted); }

/* 页脚品牌行：开造 App logo 与「极昂工厂」logo 并排。间距 10px 与站内其它
   「图标 + 字」组合（.brand 的 gap）一致；窄屏放不下就换行，不挤压不重叠。
   ⚠️ 「极昂工厂」素材是 JPG（无透明通道），本该在深色底上露出一个白方块；
   这里让它与 App logo 共用同一块白底圆角卡片（见上面那段），白方块正好融进卡片，
   看起来就是一张 logo 卡。真想要透明，请换 PNG。 */
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
/* 与 .brand__mark 同样的裁切策略：宽度按原比例自适应，别拉变形、别顶破栅格列 */
.footer-partner__mark { width: auto; max-width: 132px; flex: none; object-fit: contain; }

/* 页脚最后一行：一句话说明"这个网站是什么"。刻意比版权行更淡、行距更松，
   收尾用，不与备案号那行抢注意力。 */
.footer-note {
  margin: 14px 0 0;
  color: rgba(234, 243, 240, 0.4);
  font-size: 0.78rem;
  line-height: 1.7;
}
.footer-about { margin-top: 18px; max-width: 30em; line-height: 1.7; }
.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-muted); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 22px;
  color: rgba(234, 243, 240, 0.52);
  font-size: 0.82rem;
}
.footer-bottom .sep { opacity: 0.4; }
.footer-bottom a { color: rgba(234, 243, 240, 0.68); font-size: 0.82rem; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom a[data-filed] { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__spacer { margin-left: auto; }

/* ====================================================== 13 法律长文页 */

.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 40px;
  background: linear-gradient(180deg, #f4f8f7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-hero .lead { margin-top: 12px; max-width: 44em; }

.doc {
  padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.86rem;
}
.doc__toc h2 { font-size: 0.82rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px; }
.doc__toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.doc__toc a { color: var(--muted); }
.doc__toc a:hover { color: var(--teal-700); }

.prose { max-width: 46em; }
.prose h2 {
  margin: 40px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.24rem;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 24px 0 10px; font-size: 1.02rem; }
.prose p, .prose li { color: #2f3d39; font-size: 0.95rem; line-height: 1.85; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 0.9rem; }
.prose th, .prose td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; font-size: 0.87rem; }
.prose td { color: #2f3d39; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
}
.draft-notice {
  margin: 0 0 26px;
  padding: 13px 16px;
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(181, 71, 8, 0.06);
  color: #7a3c07;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ================================================== 14 动效与无障碍 */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 90;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: rgba(10, 18, 16, 0.92);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  backdrop-filter: blur(8px);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ============================================================ 15 响应式 */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
  .float-card--spec { left: -6px; }
  .float-card--deal { right: -6px; }
}

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-body { grid-template-columns: minmax(0, 1fr) 150px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { position: static; }
  .doc__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --nav-h: 62px; }

  .nav-toggle { display: flex; }
  .header-cta .btn--ghost { display: none; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 22px;
    background: rgba(250, 251, 250, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    /* visibility 不放进过渡：它按离散值插值，各引擎在过渡期间的取值不一致。
       让它瞬时切换，面板的「可见/不可见」只由 is-open 与 opacity 决定，最可靠。 */
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .site-header--over-dark .nav a,
  .site-header--over-dark:not(.is-scrolled) .nav a { color: var(--muted); }
  .site-header--over-dark .nav a[aria-current="page"],
  .site-header--over-dark:not(.is-scrolled) .nav a[aria-current="page"] { color: var(--teal-700); }

  .hero { padding-top: calc(var(--nav-h) + 44px); text-align: left; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-wrap { min-height: 0; margin-top: 12px; }
  .float-card--spec { left: -4px; top: 6%; }
  .float-card--deal { right: -4px; bottom: 6%; }
  .phone { width: 262px; }

  .boards__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .split, .about { grid-template-columns: minmax(0, 1fr); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; gap: 12px; }
  .brand__sub { display: none; }

  .grid--3, .steps { grid-template-columns: minmax(0, 1fr); }
  .brand-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-body { grid-template-columns: minmax(0, 1fr); }
  /* 二维码（窄屏）：**不再**翻成横向排布。旧版这里写 `.qr{flex-direction:row}` +
     `.qr__box{flex:0 1 var(--qr-box)}` + `.qr figcaption{flex:1 1 0}`，说明文字会吃掉
     全部剩余宽度，把白框死死顶在左边（360px 视口实测左右内边距 1px vs 121px，
     偏心 120px；414px 视口偏心 174px）—— 这正是用户看到的「二维码偏了」。
     现在全视口保持一列居中，只是把白框尺寸调小一点。 */
  .qr__box { --qr-size: 180px; }
  .dl-specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom__spacer { display: none; }
  .doc__toc ol { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .float-card { font-size: 0.76rem; padding: 9px 11px; }
  .float-card__icon { width: 28px; height: 28px; }
}

/* 打印（用户/审核方打印协议时干净些） */
@media print {
  .site-header, .site-footer, .toast, .doc__toc, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .doc { display: block; padding: 0; }
  .prose { max-width: none; }
  .page-hero { padding: 0 0 16px; background: none; border: 0; }
  a { color: var(--ink); text-decoration: none; }
}

/* ============================================ 后台维护的法律文本（site-legal.js） */

.prose .legal-from-admin {
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--teal-soft-2);
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-900);
  font-size: 0.84rem;
}
.prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--muted);
}
.prose blockquote p { margin: 0; }
.prose .md-table { overflow-x: auto; margin: 16px 0 20px; }
.prose pre.md-code {
  margin: 16px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
}
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 0.86em; }

/* 安装包未就绪时的提示（后台还没发布 / 直链 404） */
[data-rel-unavailable] {
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

/* ============================================ 板块背景点缀（首屏以下）
   目标：不再是「一块块纯白」，但也不抢内容 —— 全部用极低透明度的墨青晕染 +
   局部点阵/层纹，并用 mask 收边，正文对比度不受影响。 */

#features,
#matspec,
#download,
#faq,
#about,
.section--soft { position: relative; isolation: isolate; }

#features::before,
#matspec::before,
#download::before,
#faq::before,
#about::before,
#features::after,
#download::after,
#matspec::after,
#faq::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

/* —— 产品能力：右上角墨青晕染 + 点阵 —— */
#features::before {
  inset: 0;
  background:
    radial-gradient(680px 380px at 92% -8%, rgba(20, 184, 166, 0.17), transparent 68%),
    radial-gradient(440px 300px at 2% 16%, rgba(15, 118, 110, 0.11), transparent 72%);
}
#features::after {
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(460px 300px at 98% 2%, #000 0%, transparent 74%);
  mask-image: radial-gradient(460px 300px at 98% 2%, #000 0%, transparent 74%);
}

/* —— 料谱：左下角晕染 + 右侧「层纹」竖条（呼应 3D 打印的层积感）—— */
#matspec::before {
  inset: 0;
  background:
    radial-gradient(620px 380px at 4% 106%, rgba(20, 184, 166, 0.17), transparent 70%),
    radial-gradient(520px 320px at 99% -12%, rgba(15, 118, 110, 0.10), transparent 72%);
}
#matspec::after {
  inset: 0 0 0 auto;
  width: 36%;
  background-image: repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.12) 0 1px, transparent 1px 15px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72%);
  mask-image: linear-gradient(90deg, transparent, #000 72%);
}

/* —— 下载区：顶部大面积晕染 + 底部横向层纹 —— */
#download::before {
  inset: 0;
  background:
    radial-gradient(780px 430px at 52% -14%, rgba(20, 184, 166, 0.15), transparent 70%),
    radial-gradient(480px 320px at 6% 98%, rgba(15, 118, 110, 0.11), transparent 72%);
}
#download::after {
  inset: auto 0 0 0;
  height: 40%;
  background-image: repeating-linear-gradient(0deg, rgba(15, 118, 110, 0.11) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent);
  mask-image: linear-gradient(0deg, #000, transparent);
}

/* —— 常见问题：左侧淡淡的晕染 + 点阵 —— */
#faq::before {
  inset: 0;
  background: radial-gradient(600px 340px at 6% 4%, rgba(20, 184, 166, 0.18), transparent 70%);
}
#faq::after {
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.20) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(420px 280px at 2% 98%, #000 0%, transparent 72%);
  mask-image: radial-gradient(420px 280px at 2% 98%, #000 0%, transparent 72%);
}

/* —— 关于我们：右下角晕染（这块是白底，点缀要更明显一点）—— */
#about::before {
  inset: 0;
  background:
    radial-gradient(640px 380px at 98% 106%, rgba(20, 184, 166, 0.18), transparent 70%),
    radial-gradient(420px 260px at 0% 0%, rgba(15, 118, 110, 0.09), transparent 72%);
}

/* —— 安装步骤（浅色带）：让渐变带点颜色，不再是一整条灰白 —— */
.section--soft {
  background:
    radial-gradient(620px 320px at 90% 104%, rgba(20, 184, 166, 0.18), transparent 70%),
    linear-gradient(180deg, #f1f7f6 0%, #fafbfa 100%);
}

/* —— 卡片本身也别是一块死白：极轻的竖向渐变 —— */
.feature,
.step,
.faq details { background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%); }

@media (prefers-reduced-motion: reduce) {
  /* 点缀都是静态的，这里不需要额外处理（占位以说明动效为零） */
}
