/* ==========================================================================
   DocBox 书证管家 — 官网样式
   配色与 App 保持一致：品牌蓝 #0A59F7 / 页面浅灰 #F1F3F5 / 白卡片
   ========================================================================== */

:root {
  --brand: #0a59f7;
  --brand-deep: #0847cb;
  --brand-soft: #e8f0ff;
  --ink: #0f1218;
  --ink-2: #3d434d;
  --muted: #737d8c;
  --muted-2: #98a1ae;
  --line: #e6e9ee;
  --bg: #f5f6f8;
  --white: #ffffff;
  --danger: #f5482a;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 24, 0.04), 0 6px 20px -12px rgba(15, 18, 24, 0.18);
  --shadow-md: 0 18px 50px -24px rgba(9, 30, 66, 0.28);
  --font: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

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

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

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;
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(10, 89, 247, 0.16);
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 246, 248, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(9, 30, 66, 0.5);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 70px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 4px 12px -4px rgba(10, 89, 247, 0.5);
}

.nav__brand b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__brand span {
  font-size: 12px;
  color: var(--muted);
  padding-left: 9px;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(10, 89, 247, 0.85);
}

.btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgba(10, 89, 247, 0.9);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: #fff;
  border-color: #d5dae2;
  transform: translateY(-1px);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--light {
  background: #fff;
  color: var(--brand-deep);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6);
}

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -260px -10% auto auto;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle at 50% 50%, rgba(10, 89, 247, 0.16), rgba(10, 89, 247, 0) 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 18, 24, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 18, 24, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 62% at 30% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 30% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) auto;
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 89, 247, 0.12);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0a59f7 10%, #2f8bff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 22px;
  max-width: 33em;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-2);
}

.hero__lead strong {
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 -0.5em 0 rgba(10, 89, 247, 0.13);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex-shrink: 0;
}

/* ---------- 手机演示 ---------- */

.stage {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone {
  position: relative;
  width: clamp(300px, 25vw, 348px);
  filter: drop-shadow(0 40px 60px rgba(9, 30, 66, 0.2));
}

.phone__shell {
  position: relative;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(155deg, #262b34 0%, #0b0e14 46%, #1d222b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.phone__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 40px;
  overflow: hidden;
  background: #f1f3f5;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.phone__punch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #05070b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 30;
  pointer-events: none;
}

.statusbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f1218;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 20;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f1218;
}

.statusbar__icons svg {
  height: 11px;
  width: auto;
}

.stage__hint {
  font-size: 11.5px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.6;
}

.stage__hint button {
  color: var(--brand);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 2px;
}

/* ---------- 数据带 ---------- */

.band {
  margin-top: 8px;
}

.band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.band__cell {
  padding: 26px 28px;
  border-left: 1px solid var(--line);
}

.band__cell:first-child {
  border-left: 0;
}

.band__cell b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.band__cell b small {
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
  color: var(--muted);
}

.band__cell span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 76px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.section__label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.section__desc {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.76;
}

/* ---------- 功能卡片 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 89, 247, 0.09), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8e3fb;
}

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  font-size: 14.2px;
  line-height: 1.75;
  color: var(--muted);
}

.feature__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f6f9;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- 故障码专题 ---------- */

.spotlight {
  position: relative;
  background: #081226;
  color: #fff;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 640px;
  background: radial-gradient(circle at 50% 40%, rgba(10, 89, 247, 0.5), transparent 64%);
  pointer-events: none;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}

.spotlight .container {
  position: relative;
  z-index: 1;
}

.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.spotlight h2 {
  color: #fff;
}

.spotlight .section__label {
  color: #7fa9ff;
}

.spotlight .section__label::before {
  background: #7fa9ff;
}

.spotlight__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(233, 240, 255, 0.72);
}

.code-demo {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.code-demo__label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 240, 255, 0.5);
  width: 100%;
}

.code-demo__code {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(10, 89, 247, 0.22);
  border: 1px solid rgba(127, 169, 255, 0.45);
  color: #cfe0ff;
}

.code-demo__arrow {
  color: rgba(255, 255, 255, 0.34);
  font-size: 15px;
}

.code-demo__result {
  font-size: 13.5px;
  color: rgba(233, 240, 255, 0.82);
}

.spotlight__cta {
  margin-top: 26px;
}

.spotlight__steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sstep {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sstep:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sstep__no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #7fa9ff;
  padding-top: 4px;
  letter-spacing: 0.06em;
}

.sstep h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}

.sstep p {
  margin-top: 5px;
  font-size: 13.8px;
  line-height: 1.72;
  color: rgba(233, 240, 255, 0.62);
}

/* ---------- 三步上手 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line);
}

.step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
}

.step h3 {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 650;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 场景 ---------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.scene {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.scene:hover {
  border-color: #d8e3fb;
  transform: translateY(-2px);
}

.scene__emoji {
  font-size: 26px;
  line-height: 1;
}

.scene h3 {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 650;
}

.scene p {
  margin-top: 6px;
  font-size: 13.4px;
  line-height: 1.7;
  color: var(--muted);
}

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

.privacy {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.privacy__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy__list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.privacy__list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.flow {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  background: #f6f8fb;
  border: 1px solid var(--line);
}

.flow__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.flow__row--3 {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.flow__row--3 .flow__node {
  padding: 14px 8px;
}

.flow__row--3 .flow__node b {
  font-size: 12.5px;
}

.flow__row--3 .flow__node span {
  font-size: 11px;
}

.flow__label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.flow__label:not(:first-child) {
  margin-top: 22px;
}

.flow__node {
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 18, 24, 0.03);
}

.flow__node b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.flow__node span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.flow__link {
  width: 44px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #c3ccda 0 5px, transparent 5px 9px);
  position: relative;
}

.flow__link::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #c3ccda;
  border-top: 1.5px solid #c3ccda;
  transform: rotate(45deg);
}

.flow__blocked {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed #d9e0ea;
  background: repeating-linear-gradient(135deg, #fbfcfe 0 8px, #f4f6fa 8px 16px);
  color: var(--muted);
  font-size: 12.5px;
}

.flow__blocked svg {
  width: 20px;
  height: 20px;
  color: #b3bcc9;
  flex-shrink: 0;
}

.flow__blocked b {
  color: var(--ink-2);
  font-weight: 650;
}

.flow__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 下载 ---------- */

.download__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.download__icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 18px 34px -18px rgba(10, 89, 247, 0.7);
}

.download__body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.download__body p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 36em;
}

.download__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.download__specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download__specs i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9d2e0;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 190px;
}

.download__actions small {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
}

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

.faq {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand);
}

.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 2px solid #b6bfcc;
  border-bottom: 2px solid #b6bfcc;
  transform: rotate(45deg);
  transition: transform 0.22s ease, border-color 0.22s ease;
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--brand);
}

.faq details[open] summary {
  color: var(--brand);
}

.faq p {
  padding: 0 4px 24px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 64em;
}

.faq code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #eef1f6;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink-2);
}

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

.footer {
  background: #0b1220;
  color: rgba(233, 240, 255, 0.66);
  padding: 64px 0 34px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 40px;
  padding-bottom: 44px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.footer__brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.footer__brand b {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.footer__brand span {
  display: block;
  font-size: 12px;
  color: rgba(233, 240, 255, 0.45);
  font-weight: 400;
  margin-top: 1px;
}

.footer__slogan {
  margin-top: 16px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.8;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 240, 255, 0.42);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(233, 240, 255, 0.4);
}

.footer__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.06s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.12s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.18s;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .nav__links {
    gap: 22px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenes {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    justify-self: center;
    margin-top: 12px;
  }

  .phone {
    width: min(348px, 86vw);
  }

  .band__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .band__cell:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .band__cell:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .spotlight__grid,
  .privacy__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .download__card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .download__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .download__actions small {
    text-align: left;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .nav__inner {
    height: 62px;
    gap: 12px;
  }

  .nav__links {
    display: none;
  }

  .nav__brand span {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__actions .btn--ghost {
    display: none;
  }

  .hero h1 {
    font-size: clamp(32px, 8.4vw, 42px);
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .section {
    padding: 68px 0;
  }

  .section--tight {
    padding: 54px 0;
  }

  .section__head {
    margin-bottom: 30px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 24px;
  }

  .scenes {
    grid-template-columns: 1fr;
  }

  .band__inner {
    border-radius: 20px;
  }

  .band__cell {
    padding: 20px;
  }

  .band__cell b {
    font-size: 25px;
  }

  .flow {
    padding: 18px;
  }

  .flow__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow__row--3 {
    grid-template-columns: 1fr;
  }

  .flow__link {
    width: 1px;
    height: 24px;
    margin: 0 auto;
    background: repeating-linear-gradient(180deg, #c3ccda 0 5px, transparent 5px 9px);
  }

  .flow__link::after {
    right: -3px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .download__card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .download__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .faq summary {
    font-size: 15px;
    padding: 19px 2px;
  }

  .footer {
    padding: 48px 0 28px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   站内 App 演示（作用域 .app，尺寸按 390 逻辑宽度等比呈现）
   ========================================================================== */

.app {
  --a-brand: #0a59f7;
  --a-bg: #f1f3f5;
  --a-ink: #111318;
  --a-sub: #8e959f;
  --a-line: #e6e9ee;
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: var(--a-bg);
  font-size: 14px;
  color: var(--a-ink);
  -webkit-tap-highlight-color: transparent;
}

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

.app button {
  font: inherit;
  color: inherit;
}

.app .view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--a-bg);
  animation: app-in 0.28s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.app .view.is-back {
  animation-name: app-back;
}

@keyframes app-in {
  from {
    transform: translateX(24%);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes app-back {
  from {
    transform: translateX(-14%);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* 大标题头部 */
.app-title {
  padding: 10px 20px 12px;
  flex: 0 0 auto;
}

.app-title b {
  display: block;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.app-title span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #6f7783;
}

/* 内页导航栏 */
.app-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 54px;
  padding: 0 12px;
  background: rgba(241, 243, 245, 0.92);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 5;
}

.app-nav__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111318;
  transition: background 0.15s ease;
}

.app-nav__back:active {
  background: rgba(0, 0, 0, 0.06);
}

.app-nav__back svg {
  width: 20px;
  height: 20px;
}

.app-nav b {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* 搜索 */
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 16px 10px;
  padding: 0 6px 0 12px;
  background: #fff;
  border-radius: 999px;
  flex: 0 0 auto;
}

.app-search svg {
  width: 16px;
  height: 16px;
  color: #9aa2ae;
  flex-shrink: 0;
}

.app-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: #111318;
  padding: 0;
}

.app-search input::placeholder {
  color: #b3bac4;
}

.app-search__btn {
  flex-shrink: 0;
  padding: 0 10px;
  height: 28px;
  border-left: 1px solid #eceff3;
  color: var(--a-brand);
  font-size: 13px;
  font-weight: 600;
}

/* 故障码入口条 */
.app-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  margin: 0 16px 12px;
  border-radius: 19px;
  background: #e8f0ff;
  color: var(--a-brand);
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}

.app-banner:active {
  background: #dbe8ff;
}

/* 列表 */
.app-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
}

.app-list::-webkit-scrollbar {
  display: none;
}

.app-group-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 4px 2px;
  font-size: 13px;
  font-weight: 650;
  color: #666d78;
}

.app-group-head span {
  font-size: 11px;
  font-weight: 500;
  color: #a6adb8;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  width: 100%;
  transition: transform 0.12s ease;
}

.app-card:active {
  transform: scale(0.985);
}

.app-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.app-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__body {
  flex: 1;
  min-width: 0;
}

.app-card__body b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card__meta {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  font-size: 11.5px;
  color: #98a0ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.app-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 60px;
  text-align: center;
}

.app-empty__art {
  font-size: 46px;
  line-height: 1;
  filter: saturate(0.9);
}

.app-empty b {
  font-size: 14.5px;
  font-weight: 500;
  color: #9099a4;
}

.app-empty span {
  font-size: 11.5px;
  color: #b3bac4;
}

/* FAB */
.app-fab {
  position: absolute;
  right: 20px;
  bottom: 78px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--a-brand);
  color: #fff;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px -8px rgba(10, 89, 247, 0.7);
  z-index: 6;
  transition: transform 0.15s ease;
}

.app-fab:active {
  transform: scale(0.94);
}

/* 底部 Tab */
.app-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #eaedf1;
  display: flex;
  z-index: 7;
}

.app-tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12.5px;
  color: #8b929d;
  padding-top: 2px;
}

.app-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--a-brand);
  transition: transform 0.2s ease;
}

.app-tab.is-on {
  color: var(--a-brand);
  font-weight: 600;
}

.app-tab.is-on::before {
  transform: translateX(-50%) scaleX(1);
}

/* 表单 */
.app-form {
  flex: 1;
  overflow-y: auto;
  padding: 6px 16px 28px;
  scrollbar-width: none;
}

.app-form::-webkit-scrollbar {
  display: none;
}

.app-field {
  margin-bottom: 13px;
}

.app-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444c57;
}

.app-input,
.app-textarea,
.app-select {
  width: 100%;
  border: 0;
  outline: 0;
  background: #f5f6f8;
  border-radius: 10px;
  padding: 0 12px;
  height: 46px;
  font: inherit;
  font-size: 14px;
  color: #111318;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.app-textarea {
  height: 84px;
  padding: 11px 12px;
  resize: none;
  line-height: 1.6;
}

.app-input::placeholder,
.app-textarea::placeholder {
  color: #b3bac4;
}

.app-input:focus,
.app-textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(10, 89, 247, 0.55);
}

.app-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
}

.app-select svg {
  width: 12px;
  height: 12px;
  color: #6f7783;
}

.app-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  background: #f5f6f8;
  border-radius: 10px;
  font-size: 14px;
  color: #111318;
  position: relative;
  overflow: hidden;
}

.app-date.is-empty {
  color: #b3bac4;
}

.app-date input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.app-date__clear {
  color: var(--a-brand);
  font-size: 12.5px;
  padding: 4px 2px;
  position: relative;
  z-index: 2;
}

.app-photo-btns {
  display: flex;
  gap: 12px;
}

.app-photo-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 0;
  border-radius: 10px;
  background: #f5f6f8;
  font-size: 12px;
  color: #333b45;
  transition: background 0.15s ease;
}

.app-photo-btn span {
  font-size: 21px;
  line-height: 1;
}

.app-photo-btn:active {
  background: #ebedf1;
}

.app-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.app-photos:empty {
  display: none;
}

.app-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #eceef2;
}

.app-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-photo__del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.62);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.app-save {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 23px;
  background: var(--a-brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 10px 20px -10px rgba(10, 89, 247, 0.8);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-save:active {
  transform: scale(0.985);
}

.app-save[disabled] {
  opacity: 0.6;
}

/* 详情 */
.app-detail {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 26px;
  scrollbar-width: none;
}

.app-detail::-webkit-scrollbar {
  display: none;
}

.app-gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e7eaee;
}

.app-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3.4;
}

.app-gallery__track::-webkit-scrollbar {
  display: none;
}

.app-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecf0;
}

.app-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.app-gallery__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: width 0.2s ease, background 0.2s ease;
}

.app-gallery__dots i.is-on {
  width: 14px;
  border-radius: 3px;
  background: #fff;
}

.app-info {
  margin-top: 12px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 14px;
}

.app-info__row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 13px;
  line-height: 1.6;
}

.app-info__row:last-child {
  border-bottom: 0;
}

.app-info__row dt {
  width: 68px;
  flex-shrink: 0;
  color: #98a0ab;
}

.app-info__row dd {
  flex: 1;
  min-width: 0;
  color: #222831;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.app-actions button {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}

.app-actions .is-edit {
  background: var(--a-brand);
}

.app-actions .is-del {
  background: #f5482a;
}

/* 故障码 */
.app-fault {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 26px;
  scrollbar-width: none;
}

.app-fault::-webkit-scrollbar {
  display: none;
}

.app-fault__pick {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.app-fault__pick button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
  border-radius: 10px;
  background: #f5f6f8;
  font-size: 12.5px;
  color: #333b45;
}

.app-fault__pick button span {
  font-size: 23px;
  line-height: 1;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #7d8590;
  padding: 2px 0 10px;
  line-height: 1.6;
}

.app-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d5deee;
  border-top-color: var(--a-brand);
  animation: app-spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.app-ocr {
  padding: 11px 12px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}

.app-ocr small {
  display: block;
  font-size: 11.5px;
  color: #98a0ab;
  margin-bottom: 4px;
}

.app-ocr p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #333b45;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.app-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #e8f0ff;
  color: var(--a-brand);
  transition: background 0.15s ease, color 0.15s ease;
}

.app-chip.is-on {
  background: var(--a-brand);
  color: #fff;
}

.app-fault__search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.app-fault__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
}

.app-fault__search input::placeholder {
  color: #b3bac4;
}

.app-fault__search button {
  width: 72px;
  height: 44px;
  border-radius: 10px;
  background: var(--a-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.app-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: #98a0ab;
  padding: 2px 2px 12px;
}

.app-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 8px;
  text-align: left;
}

.app-result__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f2f3f5;
}

.app-result__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-result b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-result small {
  display: block;
  font-size: 11.5px;
  color: #98a0ab;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-result em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--a-brand);
  margin-top: 2px;
}

.app-result__arrow {
  color: #c9cfd8;
  font-size: 19px;
  margin-left: auto;
}

/* 弹层 */
.app-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.4);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  animation: app-fade 0.2s ease both;
}

.app-sheet {
  width: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 8px 10px 14px;
  animation: app-up 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-sheet__title {
  padding: 10px 10px 8px;
  font-size: 12.5px;
  color: #98a0ab;
}

.app-sheet button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  text-align: left;
}

.app-sheet button.is-on {
  color: var(--a-brand);
  font-weight: 600;
  background: #f4f8ff;
}

.app-sheet button svg {
  width: 16px;
  height: 16px;
}

@keyframes app-fade {
  from {
    opacity: 0;
  }
}

@keyframes app-up {
  from {
    transform: translateY(100%);
  }
}

.app-dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.42);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  animation: app-fade 0.18s ease both;
}

.app-dialog {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  animation: app-pop 0.22s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes app-pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

.app-dialog__body {
  padding: 22px 20px 18px;
  text-align: center;
}

.app-dialog__body b {
  display: block;
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}

.app-dialog__body p {
  font-size: 13px;
  line-height: 1.7;
  color: #6f7783;
}

.app-dialog__actions {
  display: flex;
  border-top: 1px solid #f0f2f5;
}

.app-dialog__actions button {
  flex: 1;
  height: 46px;
  font-size: 14.5px;
  color: #5c6470;
}

.app-dialog__actions button + button {
  border-left: 1px solid #f0f2f5;
  color: #f5482a;
  font-weight: 600;
}

.app-toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  max-width: 84%;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.88);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  z-index: 60;
  text-align: center;
  animation: app-toast 0.24s ease both;
  pointer-events: none;
}

@keyframes app-toast {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}

.app-preview {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: app-fade 0.18s ease both;
}

.app-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* 小屏手机上的演示框，略放大字号补偿 */
@media (max-width: 420px) {
  .phone {
    width: min(340px, 92vw);
  }

  .stage__hint {
    max-width: 320px;
  }
}

/* ==========================================================================
   法律页面（隐私政策）
   ========================================================================== */

.legal {
  padding: 56px 0 88px;
}

.legal__wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
}

.legal h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}

.legal__meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal__lang {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f5f9;
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.legal__lang a,
.legal__lang span {
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.legal__lang a:hover {
  color: var(--brand);
}

.legal__lang span {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 18, 24, 0.08);
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  line-height: 1.4;
}

.legal h3 {
  margin: 20px 0 6px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}

.legal p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.legal p + p {
  margin-top: 10px;
}

.legal ul,
.legal ol {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal li {
  position: relative;
  padding-left: 17px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.legal ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c3cddb;
}

.legal ol {
  counter-reset: legal-ol;
}

.legal ol > li {
  padding-left: 22px;
  counter-increment: legal-ol;
}

.legal ol > li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted-2);
}

.legal code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f3f5f9;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.legal strong {
  color: var(--ink);
  font-weight: 650;
}

.legal a:not(.legal__back) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__callout {
  margin: 22px 0 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 14.5px;
  line-height: 1.8;
  font-weight: 600;
}

.legal__table {
  margin-top: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.legal__table th,
.legal__table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 1.7;
}

.legal__table th {
  background: #f7f9fc;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.legal__table tr:last-child th,
.legal__table tr:last-child td {
  border-bottom: 0;
}

.legal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
}

.legal__back:hover {
  color: var(--brand);
}

@media (max-width: 640px) {
  .legal__table th,
  .legal__table td {
    padding: 9px 11px;
  }

  .legal h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
  }

  .legal h2 {
    margin-top: 28px;
  }
}
