/*
 * BOMUL Camera 官网样式。
 *
 * 视觉令牌直接沿用 App 的 Tokens v3（Sources/BomulCamera/App/AppTheme.swift）：
 * 나전칠기（螺钿漆器）的深漆底、唯一强调色黄铜圈口、螺钿虹彩只做次级标记。
 * 网页整体固定深色，理由和 App 里的「照片台面」一条相同——浅底会给每张截图
 * 染色，用户就判断不了滤镜到底调成什么样。
 */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --lacquer: #17120f;
  --stage: #100c0a;
  --panel: #221b16;
  --panel-2: #2b221b;
  --brass: #d2a05c;
  --brass-deep: #b4863f;
  --nacre: #9fc0ce;
  --nacre-light: #cfe0e4;
  --nacre-warm: #d4a9b8;
  --ink: #f3eae3;
  --ink-soft: #a2968a;
  --ink-dim: #7d7268;
  --hairline: rgba(210, 160, 92, 0.18);
  --hairline-soft: rgba(243, 234, 227, 0.09);

  --cjk: "Helvetica Neue", sans-serif;
  --sans: "Archivo", var(--cjk), system-ui, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --shell: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* 中日韩正文交给系统字体：自托管一套 CJK 字重要几 MiB，
   而 PingFang / ヒラギノ / Apple SD Gothic 在目标机型上本来就是最佳解。 */
html[lang="zh-Hans"] { --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant"] { --cjk: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html[lang="ja"] { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
html[lang="ko"] { --cjk: "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif; }
html[lang="en"] { --cjk: system-ui, sans-serif; }

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

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

body {
  margin: 0;
  background: var(--lacquer);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 漆面颗粒。纯平色的深底在大屏上会显得塑料，一层噪点就压住了。 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 48px, 720px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brass);
  color: #17120f;
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- 通用排版 ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--tight { margin-bottom: 32px; }

.section__title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section__lede { margin: 0; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); }
.section__note { margin: 36px 0 0; color: var(--ink-dim); font-size: 14px; max-width: 640px; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: 15px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--brass);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 14px; border-color: var(--brass); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn__glyph { width: 18px; height: 18px; flex: none; }
.btn--store { background: var(--brass); color: #171009; }
.btn--store:hover { transform: translateY(-2px); background: #e0b273; }
.btn--pending {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink-soft);
  cursor: default;
}
.btn--pending:hover { transform: none; background: transparent; }
.btn--ghost { border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brass); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- 页眉 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(23, 18, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--hairline); background: rgba(23, 18, 15, 0.9); }
.site-head__inner {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.site-head__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.wordmark { display: flex; align-items: center; gap: 10px; flex: none; }
.wordmark__text { display: flex; align-items: baseline; gap: 7px; }
.wordmark__text b {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2em;
  font-family: "Archivo", sans-serif;
}
.wordmark__text i {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--brass);
}
.wordmark__local { font-size: 13px; color: var(--ink-dim); border-left: 1px solid var(--hairline); padding-left: 10px; }

.site-nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-soft); }
.site-nav a { position: relative; padding: 4px 0; transition: color 0.25s var(--ease); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

/* 语言切换：用原生 details，无 JS 也能开合。 */
.lang { position: relative; }
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle svg { width: 10px; height: 7px; transition: transform 0.25s var(--ease); }
.lang[open] .lang__toggle { color: var(--ink); border-color: var(--brass); }
.lang[open] .lang__toggle svg { transform: rotate(180deg); }
.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 168px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8);
  z-index: 90;
}
.lang__list a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}
.lang__list a:hover { background: rgba(210, 160, 92, 0.12); color: var(--ink); }
.lang__list a[aria-current] { color: var(--brass); }

/* ---------- 光圈 ---------- */

.aperture { display: block; }
.aperture--mark { width: 26px; height: 26px; flex: none; }
.aperture--hero {
  position: absolute;
  width: min(78vw, 780px);
  height: min(78vw, 780px);
  top: -14%;
  right: -16%;
  opacity: 0.14;
  z-index: 0;
  animation: spin 220s linear infinite;
}
.aperture--closing {
  width: 78px;
  height: 78px;
  margin: 0 auto 34px;
  opacity: 0.9;
  animation: spin 160s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 首屏 ---------- */

.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__aura {
  position: absolute;
  inset: -30% -10% auto;
  height: 900px;
  z-index: 0;
  background:
    radial-gradient(46% 40% at 22% 62%, rgba(212, 169, 184, 0.22), transparent 70%),
    radial-gradient(42% 38% at 78% 24%, rgba(159, 192, 206, 0.20), transparent 72%);
  filter: blur(12px);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  margin: 0 0 26px;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--brass); }
.hero__lede { margin: 0 0 16px; max-width: 30em; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); }
.hero__terms {
  margin: 0 0 32px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--nacre);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__platform { margin: 22px 0 0; font-size: 13px; color: var(--ink-dim); }

/* ---------- 设备框 ---------- */

.device { position: relative; margin: 0; max-width: 372px; margin-inline: auto; }
.device__glow {
  position: absolute;
  inset: 6% -12% -6%;
  background: radial-gradient(50% 45% at 50% 55%, rgba(159, 192, 206, 0.22), transparent 72%);
  filter: blur(30px);
  z-index: 0;
}
.device__frame {
  position: relative;
  z-index: 1;
  padding: 7px;
  border-radius: 13.6%/6.3%;
  background: linear-gradient(160deg, #4a3d31, #1a1512 42%, #0d0a08);
  box-shadow:
    0 2px 0 rgba(243, 234, 227, 0.08) inset,
    0 42px 90px -32px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
.device__frame img { border-radius: 12.4%/5.7%; display: block; }

/* ---------- 滤镜名跑马灯 ---------- */

.marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(90deg, rgba(34, 27, 22, 0.4), rgba(34, 27, 22, 0));
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__run {
  display: flex;
  flex: none;
  gap: 34px;
  margin: 0;
  padding: 0 17px;
  list-style: none;
  animation: slide 90s linear infinite;
}
.marquee__run li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--r4, var(--brass)); }
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- 数字 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: clamp(48px, 7vw, 84px);
}
.stat { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 1px solid var(--hairline); }
.stat__value {
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1;
  color: var(--brass);
}
.stat__label { font-size: 15px; }
.stat__note { font-size: 13px; color: var(--ink-dim); }

/* ---------- 滤镜墙 ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chips:not(.is-ready) { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--brass); }
.chip.is-on { background: var(--brass); border-color: var(--brass); color: #171009; }
.chip__count { font-size: 12px; opacity: 0.7; }

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, var(--panel), rgba(34, 27, 22, 0.35));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.filter:hover {
  transform: translateY(-4px);
  border-color: var(--hairline);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.9);
}
.filter.is-out { display: none; }
/* 上半条中性灰阶、下半条肤色阶，两条都由 filters.css 注入的变量画成，
   数据来自每款滤镜真正的 LUT。只放灰阶的话六个族群在网页上几乎长得一样。 */
.filter__ramp {
  display: block;
  height: 76px;
  border-radius: 10px;
  background-image:
    linear-gradient(103deg, var(--r0), var(--r1) 19%, var(--r2) 39%, var(--r3) 59%, var(--r4) 79%, var(--r5)),
    linear-gradient(103deg, var(--s0), var(--s1) 19%, var(--s2) 39%, var(--s3) 59%, var(--s4) 79%, var(--s5));
  background-size: 100% 50%, 100% 50%;
  background-position: top, bottom;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45) inset;
}
.filter__body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.filter__name { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.filter__id {
  margin: 0;
  font-family: "Archivo", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.filter__probes { display: flex; gap: 16px; margin: 0; }
.filter__probes div { display: flex; flex-direction: column; gap: 3px; }
.filter__probes dt { font-size: 11px; color: var(--ink-dim); }
.filter__probes dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.filter__probes code { font-size: 10px; letter-spacing: 0.05em; color: var(--ink-dim); font-family: "Archivo", monospace; }
.probe { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.probe--skin { background: var(--skin); }
.probe--sky { background: var(--sky); }
.filter__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.filter__tags li {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(159, 192, 206, 0.12);
  color: var(--nacre);
}

/* ---------- 功能 ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 76px) 0;
  border-top: 1px solid var(--hairline-soft);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature--flip .feature__text { order: 2; }
.feature__index {
  display: block;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 86px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-deep);
  margin-bottom: 14px;
  opacity: 0.85;
}
.feature__title {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.feature__body { margin: 0; color: var(--ink-soft); max-width: 34em; }

/* ---------- 隐私 ---------- */

.section--privacy {
  background: var(--stage);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.section--privacy::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(159, 192, 206, 0.14), transparent 70%);
  pointer-events: none;
}
.privacy { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.privacy__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 15em;
}
.privacy__lede { margin: 0 0 34px; color: var(--ink-soft); max-width: 40em; }
/* 门禁输出：这一段是可验证的主张，所以按终端的样子印，而不是做成图。 */
.gate { margin: 0 0 34px; }
.gate pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  background: rgba(12, 9, 8, 0.7);
}
.gate code {
  font-family: "Archivo", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  white-space: pre;
}
.gate__prompt { color: var(--ink-dim); margin-right: 6px; }
.gate__ok { color: var(--nacre); margin-right: 6px; }
.gate figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-dim); max-width: 44em; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fact { padding: 20px; border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: rgba(34, 27, 22, 0.45); }
.fact h3 { margin: 0 0 8px; font-size: 15px; color: var(--brass); font-weight: 600; }
.fact p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- 规格 ---------- */

.specs { margin: 0; border-top: 1px solid var(--hairline-soft); }
.specs__row {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--hairline-soft);
}
.specs__row dt { color: var(--ink-dim); font-size: 14px; }
.specs__row dd { margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hairline-soft); }
.qa { border-bottom: 1px solid var(--hairline-soft); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brass); }
.qa__mark { position: relative; width: 14px; height: 14px; flex: none; }
.qa__mark::before, .qa__mark::after {
  content: "";
  position: absolute;
  background: var(--brass);
  transition: transform 0.3s var(--ease);
}
.qa__mark::before { inset: 6px 0 auto; height: 1px; }
.qa__mark::after { inset: 0 6px auto; width: 1px; height: 14px; }
.qa[open] .qa__mark::after { transform: scaleY(0); }
.qa__body { padding: 0 4px 22px; max-width: 60em; }
.qa__body p { margin: 0; color: var(--ink-soft); }

/* ---------- 收尾 ---------- */

.section--closing { text-align: center; }
.closing { display: flex; flex-direction: column; align-items: center; }
.closing__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 18em;
}
.closing__body { margin: 0 0 34px; color: var(--ink-soft); max-width: 40em; }
.closing__terms { margin: 18px 0 0; font-size: 13px; color: var(--ink-dim); }

/* ---------- 文档页 ---------- */

.doc { padding: clamp(56px, 8vw, 108px) 0 clamp(72px, 10vw, 128px); }
.doc__head { margin-bottom: 44px; }
.doc__title { margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 600; }
.doc__meta { margin: 0; color: var(--ink-soft); font-size: 15px; }
.doc__intro { margin: 0 0 40px; color: var(--ink-soft); font-size: 17px; }
.doc__block { margin-bottom: 34px; }
.doc__h2 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.doc__block p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.doc__contact { margin: 44px 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 52px; }
.card { padding: 24px; border: 1px solid var(--hairline-soft); border-radius: var(--radius); background: rgba(34, 27, 22, 0.5); }
.card h2 { margin: 0 0 12px; font-size: 15px; color: var(--brass); font-weight: 600; letter-spacing: 0.04em; }
.card p { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.card--contact { border-color: var(--hairline); }
.mail {
  font-family: "Archivo", monospace;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  word-break: break-all;
}
.mail:hover { color: var(--brass); }

.qa-list { margin: 0; }
.qa-list__row { padding: 16px 0; border-top: 1px solid var(--hairline-soft); }
.qa-list__row dt { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.qa-list__row dd { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 页脚 ---------- */

.site-foot { border-top: 1px solid var(--hairline); padding: 56px 0 40px; background: var(--stage); }
.site-foot__top {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline-soft);
}
.site-foot__brand p { margin: 12px 0 0; font-size: 13px; color: var(--ink-dim); }
.site-foot__links, .site-foot__langs { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.site-foot__links a:hover, .site-foot__langs a:hover { color: var(--brass); }
.site-foot__label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.site-foot__bottom {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-dim);
}
.site-foot__bottom p { margin: 0; }
.site-foot__note { max-width: 46em; }

/* ---------- 语言提示条 ---------- */

.langhint {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-soft);
}
.langhint a { color: var(--brass); font-weight: 600; }
.langhint button {
  background: none;
  border: 0;
  color: var(--ink-dim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}
.langhint button:hover { color: var(--ink); }

/* ---------- 动效 ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* 首屏不等 JS：入场用纯 CSS 阶梯延迟，脚本被拦掉也照样出现。
   延迟写在 nth-child 上而不是行内 style，好让 CSP 收到 style-src 'self'。 */
.hero__text > * { animation: rise 0.85s var(--ease) both; }
.hero__text > :nth-child(1) { animation-delay: 40ms; }
.hero__text > .hero__title { animation: none; }
.hero__title span { animation: rise 0.85s var(--ease) both; }
.hero__title span:nth-child(1) { animation-delay: 110ms; }
.hero__title span:nth-child(2) { animation-delay: 190ms; }
.hero__text > :nth-child(3) { animation-delay: 300ms; }
.hero__text > :nth-child(4) { animation-delay: 360ms; }
.hero__text > :nth-child(5) { animation-delay: 420ms; }
.hero__text > :nth-child(6) { animation-delay: 480ms; }
.hero__device { animation: rise 1s var(--ease) both; animation-delay: 240ms; }

/* 滚动进场只在 JS 就绪后生效，脚本失败时内容照常可见。 */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__text > *, .hero__title span, .hero__device,
  .js .reveal, .js .reveal.is-in { animation: none; opacity: 1; transform: none; transition: none; }
  .aperture--hero, .aperture--closing, .marquee__run { animation: none; }
}

/* 404：唯一一个不走布局模板的页面，样式也就这几条。 */
.page-404 .doc { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.page-404 .site-foot__langs { flex-direction: row; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__device { order: -1; }
  .device { max-width: 320px; }
  .feature, .privacy { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
  .feature__shot { order: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* 窄屏页眉只留字标和语言：CTA 在首屏正文里已经有一个，挤在这里会折成两行。 */
  .site-head__inner { height: 60px; gap: 14px; }
  .site-head .btn--store { display: none; }
  .lang__toggle { white-space: nowrap; }
  .shell, .shell--narrow, .site-head__inner, .site-foot__top, .site-foot__bottom { width: calc(100% - 36px); }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { padding-left: 16px; }
  .facts { grid-template-columns: 1fr; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; }
  .site-foot__top { grid-template-columns: 1fr; }
  .wordmark__local { display: none; }
  .filter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .filter__ramp { height: 56px; }
}
