/* 当地人说 · 公共前台样式
   设计方向：纸张底色 + 水墨蓝 + 灯火琥珀。所有颜色走 token，深色模式自动切换。
   字体只用系统字体（不依赖 Google Fonts，国内也能正常加载）。 */

:root {
  --paper: #f5f2ec;
  --paper-2: #efeae1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #16202b;
  --ink-2: #364352;
  --muted: #6a7583;
  --faint: #9aa3ad;
  --line: #e4ded3;
  --line-strong: #d3cbbd;
  --brand: #1e4a66;
  --brand-strong: #133349;
  --brand-soft: #e5edf2;
  --brand-ink: #ffffff;
  --amber: #c98326;
  --amber-strong: #a86a17;
  --amber-soft: #fbefdc;
  --jade: #2d7a5f;
  --jade-soft: #e2f1ea;
  --seal: #b4452f;
  --seal-soft: #f8e6e1;
  --focus: #2f7fb0;
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, .05), 0 1px 1px rgba(22, 32, 43, .03);
  --shadow: 0 2px 6px rgba(22, 32, 43, .05), 0 10px 28px -12px rgba(22, 32, 43, .16);
  --shadow-lg: 0 24px 60px -20px rgba(16, 28, 42, .35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1180px;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151d;
    --paper-2: #131b25;
    --surface: #17212c;
    --surface-2: #1b2632;
    --ink: #ece8e1;
    --ink-2: #c9c4bb;
    --muted: #97a1ad;
    --faint: #6d7884;
    --line: #26323f;
    --line-strong: #344354;
    --brand: #8cb9d8;
    --brand-strong: #b3d3ea;
    --brand-soft: #1c2d3b;
    --brand-ink: #0d1822;
    --amber: #e5ad5c;
    --amber-strong: #f0c37f;
    --amber-soft: #2f2617;
    --jade: #6cc4a0;
    --jade-soft: #15302a;
    --seal: #ec8b74;
    --seal-soft: #3a211b;
    --focus: #8cc4ea;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 12px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--amber-soft); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.brand-mark img { width: 34px; height: 34px; }
:root[data-theme="dark"] .brand-mark img { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark img { filter: invert(1) hue-rotate(180deg) brightness(1.2); } }
.brand-text strong { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.brand-text small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.profile-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; white-space: nowrap;
  transition: border-color .2s, transform .15s;
}
.profile-chip:hover { border-color: var(--line-strong); }
.profile-chip .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
@media (max-width: 1020px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 640px) { .profile-chip .label { display: none; } .profile-chip { padding: 0 6px; } .brand-text small { display: none; } .nav-share-text { display: none; } }

/* 手机底部标签栏 */
.tabbar { display: none; }
@media (max-width: 1020px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--muted); border-radius: 12px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- 按钮 / 表单 ---------- */
.btn {
  --bg: var(--brand); --fg: var(--brand-ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--fg); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--bg) 70%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-amber { --bg: var(--amber); --fg: #fff; }
:root[data-theme="dark"] .btn-amber { --fg: #1a1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-amber { --fg: #1a1206; } }
.btn-ghost { --bg: var(--surface); --fg: var(--ink); --bd: var(--line); }
.btn-ghost:hover { --bd: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-quiet { --bg: transparent; --fg: var(--brand); padding: 0 12px; }
.btn-quiet:hover { background: var(--brand-soft); box-shadow: none; transform: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small, .hint { font-size: 13px; color: var(--muted); line-height: 1.6; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* 选择片（单选 / 多选） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.chip:not([aria-pressed="true"]):not([aria-checked="true"]):hover { border-color: var(--line-strong); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { font-size: 12px; opacity: .7; }

/* ---------- 通用标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-amber { background: var(--amber-soft); color: var(--amber-strong); }
.tag-jade { background: var(--jade-soft); color: var(--jade); }
.tag-seal { background: var(--seal-soft); color: var(--seal); }
.seal {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  font: 700 11px/1 var(--sans); letter-spacing: .06em; color: var(--seal); border: 1.5px solid currentColor;
  background: color-mix(in srgb, var(--seal) 6%, transparent); transform: rotate(-3deg);
}
.seal-lg { width: 46px; height: 46px; font-size: 14px; border-radius: 12px; border-width: 2px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--amber-strong); text-transform: uppercase; }
.muted { color: var(--muted); }
.self-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.self-label b { color: var(--ink-2); font-weight: 600; }
.self-label i { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--paper-2); }

/* ---------- 布局片段 ---------- */
main { display: block; min-height: 60vh; }
main:focus { outline: none; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 34px); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
@media (max-width: 640px) { .section { padding: 48px 0; } .section-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

.page-head { padding: 48px 0 28px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); }
.page-head p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .panel { padding: 22px 18px; border-radius: 20px; } }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; margin: 12px 16px 0; border-radius: 30px; overflow: hidden; color: #fff; isolation: isolate; min-height: min(84vh, 700px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 1.8s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(9, 18, 30, .86) 0%, rgba(9, 18, 30, .62) 38%, rgba(9, 18, 30, .12) 72%),
  linear-gradient(0deg, rgba(9, 18, 30, .7) 0%, rgba(9, 18, 30, 0) 45%); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 72px 40px 52px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 68px); line-height: 1.12; letter-spacing: .02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #f6c56f, #f0a54a 60%, #f7d79d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); font-size: 13px; letter-spacing: .06em; margin-bottom: 22px; }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f6c56f; box-shadow: 0 0 0 4px rgba(246, 197, 111, .25); }
.hero-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: rgba(255, 255, 255, .86); max-width: 560px; margin-top: 18px; line-height: 1.8; }
.share-bar { margin-top: 30px; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .6); max-width: 620px; transition: box-shadow .25s, transform .25s var(--ease); }
.share-bar:focus-within { box-shadow: 0 0 0 4px rgba(246, 197, 111, .45), 0 18px 50px -18px rgba(0, 0, 0, .6); }
.share-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; color: #16202b; }
.share-bar input::placeholder { color: #8a94a0; }
.share-bar input:focus { outline: none; }
.share-bar .btn { min-height: 48px; }
.hero-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.hero-platforms span { display: inline-flex; align-items: center; gap: 6px; }
.hero-platforms span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .4); margin-right: 8px; }
.hero-error { margin-top: 10px; color: #ffd5c8; font-size: 14px; min-height: 1em; }
.hero-card { background: rgba(14, 24, 36, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-radius: 22px; padding: 22px 22px 18px; }
.hero-card h3 { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: flow; }
.flow li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; counter-increment: flow; font-size: 14px; color: rgba(255, 255, 255, .86); line-height: 1.55; }
.flow li::before { content: counter(flow); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(246, 197, 111, .18); color: #f6c56f; border: 1px solid rgba(246, 197, 111, .35); }
.flow li b { display: block; color: #fff; font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .66); }
@media (max-width: 1020px) { .hero-inner { grid-template-columns: 1fr; padding: 64px 28px 36px; } .hero-card { max-width: 520px; } }
@media (max-width: 640px) {
  .hero { margin: 0; border-radius: 0 0 26px 26px; min-height: auto; }
  .hero-inner { padding: 48px 18px 26px; gap: 26px; }
  .hero::before { background: linear-gradient(180deg, rgba(9, 18, 30, .55) 0%, rgba(9, 18, 30, .82) 60%, rgba(9, 18, 30, .92) 100%); }
  .share-bar { flex-direction: column; border-radius: 20px; padding: 8px; }
  .share-bar input { min-height: 48px; padding: 0 12px; }
  .share-bar .btn { width: 100%; }
}
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* ---------- 经验卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } .grid { gap: 14px; } }

.story {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.story-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.story-top .place { color: var(--ink-2); font-weight: 600; }
.story-top .tag { margin-left: auto; }
.story h3 { font-family: var(--serif); font-size: 19.5px; line-height: 1.45; }
.story-summary { color: var(--ink-2); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-context { display: flex; flex-wrap: wrap; gap: 6px; }
.facts-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts-mini div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.facts-mini span { display: block; font-size: 12px; color: var(--muted); }
.facts-mini b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.story-foot .react { display: inline-flex; align-items: center; gap: 5px; }
.story-foot .react svg { width: 15px; height: 15px; }
.story-foot .src { margin-left: auto; }

/* ---------- 问答 ---------- */
.qlist { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qrow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; color: var(--ink); border-top: 1px solid var(--line); transition: background .2s; }
.qrow:first-child { border-top: 0; }
.qrow:hover { background: var(--surface-2); color: var(--ink); }
.qrow h3 { font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.qrow .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.qcount { display: grid; place-items: center; min-width: 58px; padding: 8px 10px; border-radius: 14px; background: var(--paper-2); text-align: center; }
.qcount strong { font-family: var(--serif); font-size: 20px; line-height: 1; }
.qcount span { font-size: 11.5px; color: var(--muted); }
.qcount.has { background: var(--jade-soft); color: var(--jade); }
.qcount.has span { color: var(--jade); }
.ask-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--brand) 0%, var(--brand-strong) 100%); color: var(--brand-ink); position: relative; overflow: hidden; }
.ask-cta::after { content: "问"; position: absolute; right: -18px; bottom: -58px; font: 700 210px/1 var(--serif); opacity: .08; pointer-events: none; }
.ask-cta h3 { font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.ask-cta p { opacity: .82; margin-top: 10px; }
.ask-cta .btn { --bg: var(--brand-ink); --fg: var(--brand); align-self: flex-start; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 1020px) { .split { grid-template-columns: 1fr; } }

/* ---------- 国家卡片 ---------- */
.country {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px; min-height: 196px; color: var(--ink); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.country::after { content: attr(data-code); position: absolute; right: -4px; bottom: -22px; font: 800 96px/1 var(--sans); letter-spacing: -.04em; color: var(--ink); opacity: .04; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.country:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.country:hover::after { opacity: .07; transform: translateX(-6px); }
.country h3 { font-family: var(--serif); font-size: 24px; }
.country .en { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.country .topics { font-size: 13.5px; color: var(--muted); }
.country-stats { margin-top: auto; display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.country-stats b { color: var(--ink); font-size: 15px; font-weight: 700; margin-right: 3px; }
.country .status { position: absolute; top: 20px; right: 20px; }
@media (max-width: 640px) {
  .grid-countries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .country { min-height: 0; padding: 16px; gap: 10px; }
  .country h3 { font-size: 20px; }
  .country .topics { display: none; }
  .country .status { position: static; justify-self: start; order: 3; }
  .country-stats { gap: 10px; flex-wrap: wrap; }
  .country::after { font-size: 64px; }
}

/* ---------- 缘起 ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.why blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.5; color: var(--ink); position: relative; padding-left: 28px; border-left: 3px solid var(--amber); }
.why blockquote small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 18px; letter-spacing: .04em; }
.why-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.95; margin-bottom: 16px; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.principle { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-strong); margin-bottom: 14px; }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-size: 16px; margin-bottom: 6px; }
.principle p { font-size: 14px; color: var(--muted); line-height: 1.65; }
@media (max-width: 1020px) { .why { grid-template-columns: 1fr; gap: 28px; } .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* ---------- 参与方式 ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.way:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.way .num { font: 700 13px/1 var(--sans); letter-spacing: .14em; color: var(--amber-strong); }
.way h3 { font-family: var(--serif); font-size: 22px; }
.way p { color: var(--muted); font-size: 15px; flex: 1; }
.way .who { font-size: 13px; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 1020px) { .ways { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* ---------- 列表筛选 ---------- */
.filters { position: sticky; top: var(--nav-h); z-index: 20; padding: 14px 0; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-bottom: 18px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters-row + .filters-row { margin-top: 10px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 42px; min-height: 42px; border-radius: 999px; }
.filters .select { min-height: 42px; border-radius: 999px; width: auto; }
.result-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ---------- 经验详情 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.35; margin: 14px 0 16px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: 14.5px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.meta-grid div { background: var(--surface); padding: 14px 16px; }
.meta-grid span { display: block; font-size: 12.5px; color: var(--muted); }
.meta-grid b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
@media (max-width: 640px) { .meta-grid { grid-template-columns: 1fr 1fr; } }
.lead { font-size: 18.5px; line-height: 1.9; color: var(--ink); }
.prose { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); }
.prose p { margin: 0 0 16px; white-space: pre-wrap; }
.points { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.points li::before { content: counter(pt, decimal-leading-zero); font: 700 14px/34px var(--sans); color: var(--amber-strong); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.facts div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.facts span { display: block; font-size: 12.5px; color: var(--muted); }
.facts b { display: block; font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.5; }
.callout { display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--line); background: var(--surface); }
.callout h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.callout h3 svg { width: 18px; height: 18px; }
.callout p { color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; }
.callout-amber { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.callout-amber h3 { color: var(--amber-strong); }
.callout-brand { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
.callout-brand h3 { color: var(--brand); }
.quote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--ink); }
.quote figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.source-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-strong); margin: 28px 0; font-size: 14px; color: var(--muted); }

/* 回应 */
.reactions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0 16px; }
.react-btn {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); text-align: left;
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s;
}
.react-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.react-btn:active { transform: scale(.985); }
.react-btn .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); flex-shrink: 0; transition: background .2s, color .2s; }
.react-btn .ico svg { width: 22px; height: 22px; }
.react-btn b { display: block; font-size: 15.5px; }
.react-btn small { display: block; font-size: 13px; color: var(--muted); }
.react-btn .n { margin-left: auto; font: 700 22px/1 var(--serif); color: var(--ink); }
.react-btn[aria-pressed="true"] { border-color: var(--jade); background: var(--jade-soft); }
.react-btn[aria-pressed="true"] .ico { background: var(--jade); color: #fff; }
.react-btn.diff[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); }
.react-btn.diff[aria-pressed="true"] .ico { background: var(--amber); color: #fff; }
.pop { animation: pop .38s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
@media (max-width: 640px) { .reactions { grid-template-columns: 1fr; } }
.notes { display: grid; gap: 12px; margin-top: 20px; }
.note { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); }
.note p { white-space: pre-wrap; color: var(--ink-2); line-height: 1.8; margin-top: 6px; }

/* 问题详情 */
.question-head { padding: 28px 30px; }
.question-head h1 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.45; margin: 12px 0; }
.answer { padding: 22px 24px; border-top: 1px solid var(--line); }
.answer:first-child { border-top: 0; }
.answer-body { white-space: pre-wrap; line-height: 1.9; color: var(--ink-2); margin: 10px 0 12px; font-size: 16px; }
.helpful { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.helpful svg { width: 16px; height: 16px; }
.helpful:hover { border-color: var(--line-strong); }
.helpful[aria-pressed="true"] { background: var(--jade-soft); border-color: var(--jade); color: var(--jade); }
.member-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--jade); background: var(--jade-soft); padding: 2px 8px; border-radius: 999px; }

/* 国家页 */
.country-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.country-hero::before { content: attr(data-code); position: absolute; right: 2%; top: -10px; font: 800 clamp(120px, 22vw, 260px)/1 var(--sans); letter-spacing: -.05em; color: var(--ink); opacity: .045; pointer-events: none; }
.country-hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 60px); display: flex; align-items: center; gap: 18px; }
.country-hero .en { letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-size: 13px; margin-top: 6px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stat-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stat-pill b { font: 700 20px/1 var(--serif); color: var(--ink); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 12px 16px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs a[aria-current="true"] { color: var(--ink); }
.tabs a[aria-current="true"]::after { transform: scaleX(1); }
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sections { grid-template-columns: 1fr; } }
.gsec { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.gsec h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.gsec h3 .n { font: 700 12px/1 var(--sans); letter-spacing: .1em; color: var(--faint); }
.gsec .body { color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; font-size: 15px; }
.gsec.is-empty { background: var(--surface-2); border-style: dashed; box-shadow: none; }
.gsec.is-empty .body { color: var(--muted); }
.evidence { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 10px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; }
.evidence a svg { width: 14px; height: 14px; flex-shrink: 0; }
.evidence a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence a:hover { background: var(--brand-soft); color: var(--brand); }
.variance { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); font-size: 14px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.variance b { color: var(--amber-strong); }
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.score { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.score span { font-size: 13px; color: var(--muted); }
.score .stars { display: flex; gap: 3px; margin: 8px 0 4px; }
.score .stars i { width: 100%; height: 6px; border-radius: 3px; background: var(--paper-2); }
.score .stars i.on { background: var(--amber); }
.score b { font-size: 15px; }
@media (max-width: 760px) { .scores { grid-template-columns: 1fr 1fr; } }

/* 分享流程 */
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.stepper i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.stepper i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.stepper i.on::after { transform: scaleX(1); }
.share-wrap { max-width: 720px; margin: 0 auto; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s;
}
.choice:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.choice:active { transform: scale(.985); }
.choice b { font-size: 16.5px; }
.choice small { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.choice .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.choice .ico svg { width: 22px; height: 22px; }
.choice[aria-checked="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.platform-detect { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--jade); min-height: 22px; }
.platform-detect.bad { color: var(--seal); }
.privacy { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.privacy svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); margin-top: 2px; }
.warn { padding: 12px 14px; border-radius: 12px; background: var(--seal-soft); color: var(--seal); font-size: 14px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 26px; }
.done { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.done svg.check { width: 84px; height: 84px; margin: 0 auto 18px; }
.done svg.check circle { stroke: var(--jade); stroke-width: 3; fill: var(--jade-soft); stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .7s var(--ease) forwards; }
.done svg.check path { stroke: var(--jade); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-family: var(--serif); font-size: 28px; }
.timeline { list-style: none; padding: 0; margin: 28px auto 0; max-width: 460px; text-align: left; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--ink-2); font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.on::before { background: var(--jade); border-color: var(--jade); }
.timeline small { display: block; color: var(--muted); font-size: 13px; }

/* 空状态 / 骨架 / 提示 */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; border-radius: var(--radius-lg); border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
.empty .ink { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--brand-soft), transparent 70%), var(--paper-2); color: var(--brand); }
.empty .ink svg { width: 34px; height: 34px; }
.empty h3 { font-family: var(--serif); font-size: 22px; }
.empty p { color: var(--muted); max-width: 440px; }
.empty .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--paper-2) 0%, var(--surface-2) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--seal-soft); color: var(--seal); font-size: 14.5px; margin-bottom: 18px; }
.banner .btn { margin-left: auto; }
.status-ok { padding: 14px 16px; border-radius: 14px; background: var(--jade-soft); color: var(--jade); font-size: 14.5px; }
.toast-zone { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; pointer-events: none; width: min(92vw, 440px); }
@media (max-width: 1020px) { .toast-zone { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-lg); font-size: 14.5px; animation: toastIn .35s var(--ease); }
.toast.err { background: var(--seal); color: #fff; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 弹窗 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 24, .48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal {
  position: relative; width: min(100%, 620px); max-height: calc(100dvh - 40px); overflow: auto; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg);
  padding: 34px; animation: modalIn .32s var(--ease);
}
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.modal h2 { font-family: var(--serif); font-size: 26px; }
.modal .sub { color: var(--muted); margin: 10px 0 24px; line-height: 1.75; }
.modal.closing { animation: modalOut .2s ease forwards; }
.modal-root.closing .modal-backdrop { animation: fadeOut .2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 640px) {
  .modal-root { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: 26px 26px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92dvh; animation: sheetIn .36s var(--ease); }
  .modal.closing { animation: sheetOut .22s ease forwards; }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -14px auto 18px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
.identity-grid { display: grid; gap: 10px; }
.identity { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, background .2s, transform .15s var(--ease); }
.identity:hover { border-color: var(--line-strong); }
.identity:active { transform: scale(.99); }
.identity .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); font: 700 16px/1 var(--serif); color: var(--ink-2); transition: background .2s, color .2s; }
.identity b { display: block; font-size: 15.5px; }
.identity small { display: block; color: var(--muted); font-size: 13px; }
.identity[aria-checked="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.identity[aria-checked="true"] .ico { background: var(--brand); color: var(--brand-ink); }
.reveal-row { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), opacity .3s; opacity: 0; }
.reveal-row > div { overflow: hidden; }
.reveal-row.open { grid-template-rows: 1fr; opacity: 1; }

/* ---------- 动效 ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.hero [data-rise] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.view-enter { animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(root) { animation: vtOut .18s ease both; }
::view-transition-new(root) { animation: vtIn .3s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 社区自述（首页第一屏，与 GitHub README 同源） ---------- */
.manifesto { padding: 28px 0 24px; }
.manifesto-card { margin: 0 16px; padding: 56px 24px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.manifesto-inner { position: relative; max-width: calc(var(--max) - 80px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
.manifesto-head { position: relative; animation: rise .7s var(--ease) both; }
.manifesto-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.25; margin-top: 12px; }
.manifesto-lead { margin-top: 20px; padding-left: 18px; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.6; color: var(--brand); }
.manifesto-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.manifesto-body { animation: rise .7s .08s var(--ease) both; }
.manifesto-body p { font-size: 16.5px; line-height: 2; color: var(--ink-2); margin-bottom: 16px; }
.manifesto-body .collapse p:last-child { margin-bottom: 20px; }
.manifesto-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 1020px) { .manifesto-card { padding: 40px 32px; } .manifesto-inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) {
  .manifesto { padding: 16px 0 18px; }
  .manifesto-card { margin: 0 12px; padding: 28px 20px; border-radius: 22px; }
  .manifesto-body p { font-size: 16px; line-height: 1.9; }
  .manifesto-actions .btn { flex: 1 1 auto; }
}
.principles { margin-top: 0; }
@media (min-width: 1021px) { .manifesto-head { align-self: start; position: sticky; top: calc(var(--nav-h) + 28px); } }

/* ---------- 登录 ---------- */
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-list { display: grid; gap: 10px; }
.btn.oauth { justify-content: center; }
.btn.oauth svg { width: 20px; height: 20px; }
.code-input { text-align: center; font-size: 26px; letter-spacing: .5em; font-weight: 700; padding-left: calc(16px + .5em); }
.linklike { border: 0; background: none; padding: 0; color: var(--ink-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--ink); }
.code-input::placeholder { letter-spacing: normal; font-size: 16px; font-weight: 400; }
/* 320–380px 窄屏：顶栏不溢出 */
@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark img { width: 28px; height: 28px; }
  .brand-text strong { font-size: 15px; white-space: nowrap; }
  .nav-actions { gap: 6px; }
  .profile-chip { height: 36px; }
  .profile-chip .dot { width: 24px; height: 24px; }
  #nav-share { padding: 0 10px; min-height: 36px; }
}

/* ---------- local 标志 ---------- */
.brand-mark { width: auto; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; display: block; }
.brand-mark svg { display: block; }
.lg-ink { stroke: var(--brand); }
.lg-pin { fill: var(--amber); }
.lg-dot { fill: var(--paper); }
.brand-text { padding-left: 12px; border-left: 1px solid var(--line); }
@media (max-width: 380px) { .brand-mark svg { width: 58px; height: 24px; } .brand-text { padding-left: 8px; } }

/* 顶栏：当地人说 — 口号 / 定位句 */
.brand-text strong { white-space: nowrap; }
.brand-text .slogan { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-2); letter-spacing: .02em; }
.brand-text .dash { color: var(--amber); font-weight: 700; }
/* 1021–1240px：导航占位多，口号换到第二行，定位句暂不显示 */
@media (min-width: 1021px) and (max-width: 1240px) {
  .brand-text strong { white-space: normal; }
  .brand-text .slogan { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .brand-text .dash, .brand-text .pos { display: none; }
}
/* 手机：名称＋口号两行，定位句在首页背景区徽章里 */
@media (max-width: 640px) {
  .nav-inner { gap: 8px; }
  .brand-text strong { white-space: normal; }
  .brand-text .slogan { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .brand-text .dash, .brand-text .pos { display: none; }
}
@media (max-width: 380px) { .brand-text .slogan { display: none; } }
