/* 汉语学习官网 · 共享样式
   纯静态，无外部字体与 CDN。字体回落到系统宋体/衬线。 */

:root {
  --paper: #f8f4ec;
  --paper-2: #fffdfa;
  --card: #ffffff;
  --ink: #1e1c18;
  --muted: #5c574e;
  --soft: #8a8378;
  --line: #e6e1d6;
  --line-strong: #d6d0c2;
  --cinnabar: #c4442f;
  --cinnabar-soft: #fae7e0;
  --jade: #2e6b5e;
  --jade-soft: #e4efea;
  --dark: #17120e;
  --dark-2: #241c18;
  --dark-line: #3d332f;
  --on-dark: #f1dfd9;
  --on-dark-muted: #c9b6ae;
  --serif: "Songti SC", "Noto Serif SC", "Songti TC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(30, 28, 24, 0.04), 0 8px 24px rgba(30, 28, 24, 0.05);
  --shadow-lg: 0 18px 50px rgba(30, 28, 24, 0.12);
  --radius: 20px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

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

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

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

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

a:hover {
  color: var(--cinnabar);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--paper);
}

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

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 244, 236, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(196, 68, 47, 0.22);
}

.brand span {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  line-height: 1;
  background: var(--paper-2);
}

.lang a,
.lang span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.lang .is-active {
  background: var(--ink);
  color: var(--paper);
}

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

/* ---------- 主视觉 ---------- */

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

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 780px;
  background:
    radial-gradient(46% 52% at 74% 36%, rgba(46, 107, 94, 0.14), transparent 70%),
    radial-gradient(38% 46% at 22% 22%, rgba(196, 68, 47, 0.1), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 28, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 28, 24, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 62% 32%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 60% at 62% 32%, #000 0%, transparent 76%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--jade);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--jade);
}

h1.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1.display em {
  font-style: normal;
  color: var(--cinnabar);
}

.lede {
  margin: 24px 0 0;
  max-width: 33em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cinnabar);
  color: #fff8f3;
  box-shadow: 0 8px 20px rgba(196, 68, 47, 0.24);
}

.btn-primary:hover {
  color: #fff8f3;
  background: #b23b27;
  box-shadow: 0 12px 26px rgba(196, 68, 47, 0.3);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 253, 250, 0.6);
}

.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

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

.hero-note span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
}

/* ---------- 手机示意 ---------- */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(46, 107, 94, 0.18);
  box-shadow: 0 0 0 46px rgba(46, 107, 94, 0.04), 0 0 0 92px rgba(196, 68, 47, 0.03);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 306px;
  background: #1b1714;
  border-radius: 46px;
  padding: 9px;
  box-shadow: var(--shadow-lg), 0 2px 0 rgba(255, 255, 255, 0.18) inset;
  transform: rotate(-1.4deg);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 578px;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #1b1714;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--soft);
  padding: 0 4px 14px;
  font-variant-numeric: tabular-nums;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.chip-hot {
  background: var(--cinnabar-soft);
  border-color: transparent;
  color: var(--cinnabar);
}

.phone-top .spacer {
  margin-left: auto;
  font-size: 10px;
  color: var(--soft);
}

.card-media {
  position: relative;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(104deg, transparent 0 15px, rgba(255, 255, 255, 0.38) 15px 16px, transparent 16px 31px),
    radial-gradient(90% 80% at 20% 20%, rgba(255, 255, 255, 0.55), transparent 62%),
    linear-gradient(160deg, #dfeae4 0%, #c8dbd2 52%, #aec8bd 100%);
  margin-bottom: 18px;
}

.card-media::before,
.card-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(6px);
}

.card-media::before {
  width: 120px;
  height: 44px;
  left: 18px;
  top: 18px;
}

.card-media::after {
  width: 80px;
  height: 32px;
  right: 24px;
  top: 30px;
}

.pinyin {
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.tianzi {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 0 auto 14px;
  border: 1px solid rgba(30, 28, 24, 0.18);
  background-image:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(30, 28, 24, 0.12) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(30, 28, 24, 0.12) 50%, transparent calc(50% + 0.5px));
}

.tianzi span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 122px;
  line-height: 1;
  color: var(--ink);
}

.gloss {
  text-align: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.pos {
  text-align: center;
  font-size: 11.5px;
  color: var(--soft);
  margin: 3px 0 16px;
}

.audio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.audio-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cinnabar);
  display: grid;
  place-items: center;
  flex: none;
}

.audio-dot svg {
  width: 13px;
  height: 13px;
  fill: #fff8f3;
}

.wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.wave i {
  display: block;
  width: 2px;
  background: var(--jade);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}

.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 9px; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.wave i:nth-child(5) { height: 7px; animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.swipe-hint {
  text-align: center;
  font-size: 10px;
  color: var(--soft);
  letter-spacing: 0.08em;
  margin-top: 12px;
}

/* ---------- 指标条 ---------- */

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.42);
}

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

.metric {
  padding: 26px 22px 24px;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  border-left: 0;
  padding-left: 0;
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 通用分区 ---------- */

.section {
  padding: 86px 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 14px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cinnabar);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.section-sub {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.section-sub strong {
  color: var(--ink);
  font-weight: 600;
}

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

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

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(30, 28, 24, 0.1);
  border-color: var(--line-strong);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  margin-bottom: 18px;
}

.feature:nth-child(3n + 2) .feature-icon {
  background: var(--jade-soft);
  color: var(--jade);
}

.feature:nth-child(3n) .feature-icon {
  background: #f1ece3;
  color: var(--ink);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
}

.feature .meta {
  display: inline-flex;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--soft);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  width: 100%;
}

/* ---------- 等级 ---------- */

.levels {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.levels-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 56px;
  align-items: start;
}

.chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-row {
  display: grid;
  grid-template-columns: 58px 1fr 76px;
  align-items: center;
  gap: 14px;
}

.bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.bar-track {
  position: relative;
  height: 26px;
  border-radius: 7px;
  background: #efe9de;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #d05a43, var(--cinnabar));
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bar-row:last-child .bar-fill {
  background: linear-gradient(90deg, #3d7d70, var(--jade));
}

.reveal.in .bar-fill {
  width: var(--w);
}

.bar-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.level-note {
  font-size: 12.5px;
  color: var(--soft);
  margin: 22px 0 0;
  line-height: 1.8;
}

.quality-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.quality-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.quality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.quality-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.quality-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quality-list b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quality-foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--soft);
}

.quality-foot a {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 深色方法区 ---------- */

.method {
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 18% 20%, rgba(196, 68, 47, 0.16), transparent 70%),
    radial-gradient(46% 52% at 84% 80%, rgba(46, 107, 94, 0.18), transparent 70%);
  pointer-events: none;
}

.method .container {
  position: relative;
}

.method .kicker {
  color: #e07962;
}

.method .kicker::before {
  background: #e07962;
}

.method h2 {
  color: var(--on-dark);
}

.method .section-sub {
  color: var(--on-dark-muted);
}

.method .section-sub strong {
  color: var(--on-dark);
}

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

.step {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.3s ease, transform 0.3s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 12px;
  color: #e07962;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--on-dark);
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.chips span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-muted);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 7px 13px;
  letter-spacing: 0.01em;
}

.chips b {
  color: var(--on-dark);
  font-weight: 600;
}

/* ---------- 离线 ---------- */

.offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.offline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}

.offline-card h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}

.offline-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--jade);
  flex: none;
}

.offline-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.hash-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.hash {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--jade);
  background: var(--jade-soft);
  border-radius: 5px;
  padding: 4px 7px;
  letter-spacing: -0.01em;
}

/* ---------- 隐私提示 ---------- */

.privacy-band {
  padding: 0 0 84px;
}

.privacy-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 44px 44px 46px;
  border-radius: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.privacy-panel::after {
  content: "隐";
  position: absolute;
  right: 34%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 210px;
  line-height: 1;
  color: rgba(46, 107, 94, 0.055);
  pointer-events: none;
}

.privacy-panel h2 {
  font-size: clamp(24px, 2.8vw, 32px);
}

.privacy-panel p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 36em;
}

.privacy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.privacy-points li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-points li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--jade-soft);
  box-shadow: inset 0 0 0 1px rgba(46, 107, 94, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.privacy-panel .btn {
  justify-self: end;
  position: relative;
  z-index: 1;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #f3eee3;
  padding: 44px 0 32px;
  font-size: 12px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}

.footer-brand span {
  font-size: 11px;
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 12px;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  text-decoration-color: var(--cinnabar);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 11.5px;
  color: var(--soft);
  line-height: 1.8;
}

.footer-company {
  letter-spacing: 0.01em;
}

/* ---------- 隐私政策文档页 ---------- */

.doc-hero {
  position: relative;
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto;
  height: 520px;
  background: radial-gradient(50% 60% at 30% 40%, rgba(196, 68, 47, 0.09), transparent 70%);
  pointer-events: none;
}

.doc-hero .container {
  position: relative;
}

.doc-hero h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--soft);
}

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

.doc-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.doc-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 60px;
  padding: 52px 0 90px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 12.5px;
}

.toc p {
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 6px 0 6px 22px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--soft);
  margin-right: 8px;
}

.toc a:hover,
.toc a.active {
  color: var(--cinnabar);
  border-left-color: var(--cinnabar);
}

.doc {
  max-width: 760px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #322f29;
}

.doc section {
  scroll-margin-top: 96px;
}

.doc section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.doc h2 {
  font-size: 22px;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.doc h2 .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cinnabar);
  letter-spacing: 0.04em;
}

.doc h3 {
  font-size: 15px;
  margin: 22px 0 8px;
  font-weight: 600;
  color: var(--ink);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 7px;
}

.doc a {
  color: var(--jade);
  text-decoration: underline;
  text-decoration-color: rgba(46, 107, 94, 0.35);
  text-underline-offset: 3px;
}

.doc a:hover {
  color: var(--cinnabar);
}

.doc .table-wrap {
  margin: 18px 0 20px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
  min-width: 540px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.doc th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  background: rgba(241, 236, 227, 0.5);
  white-space: nowrap;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}

.note {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--jade);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.note strong {
  color: var(--ink);
}

.contact-block {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.contact-block strong {
  display: block;
  color: var(--on-dark);
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-block a {
  color: #e79a86;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.doc-back:hover {
  color: var(--cinnabar);
}

/* ---------- 滚动进场 ---------- */

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

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

.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }
.js .reveal.delay-3 { transition-delay: 0.24s; }

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-art {
    order: 2;
  }

  .hero-art::before {
    width: 320px;
    height: 320px;
  }

  .levels-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px;
  }

  .privacy-panel .btn {
    justify-self: start;
  }

  .doc-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .feature-grid,
  .offline-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

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

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
}

@media (max-width: 660px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .lede {
    font-size: 15.5px;
  }

  h1.display {
    font-size: clamp(32px, 8.6vw, 44px);
  }

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

  .metric {
    padding: 20px 16px;
  }

  .metric:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .section {
    padding: 60px 0;
  }

  .phone {
    width: 280px;
    transform: none;
  }

  .phone-screen {
    min-height: 540px;
  }

  .tianzi {
    width: 158px;
    height: 158px;
  }

  .tianzi span {
    font-size: 108px;
  }

  .bar-row {
    grid-template-columns: 48px 1fr 62px;
    gap: 10px;
  }

  .privacy-panel {
    padding: 28px 24px 30px;
  }

  .privacy-panel::after {
    display: none;
  }

  .doc-hero {
    padding: 44px 0 28px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .doc {
    font-size: 14.5px;
  }

  /* 窄屏把三列表格改为逐条堆叠，避免横向滚动 */
  .doc .table-wrap {
    overflow: visible;
  }

  .doc table {
    min-width: 0;
    display: block;
  }

  .doc thead {
    display: none;
  }

  .doc tbody {
    display: block;
  }

  .doc tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .doc tr:last-child {
    border-bottom: 0;
  }

  .doc td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }

  .doc td + td {
    margin-top: 9px;
  }

  .doc td::before {
    content: attr(data-label);
    display: block;
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 1px;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand span {
    font-size: 14px;
  }

  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 12px;
  }

  .nav-links a:nth-child(4) {
    display: none;
  }

  .lang a,
  .lang span {
    padding: 6px 8px;
  }

  .btn {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .bar-fill {
    transition: none;
  }

  .wave i {
    animation: none;
  }

  .feature:hover,
  .step:hover,
  .btn:hover {
    transform: none;
  }
}
