/* ==========================================================================
   折纸旅图 (ZheZhiLvTu) · 官网样式表
   域名: serendipity.beauty

   设计原则（改动前先读这段）:
     1. **克制的颜色。** 一个强调色（远山绿）+ 一套中性色，不再有六套主题色切换。
        颜色越多，"重点"就越不成立。
     2. **安静的动效。** 只保留"悬停有反馈"这一种。没有无限循环的呼吸灯、没有
        扫光、没有漂浮徽章 —— 那些会让页面一直在动，读起来累。
     3. **靠留白和字重建立层次**，不靠阴影和渐变。阴影只用于真正浮起的层（弹窗）。
     4. **正文宽度有上限。** 一行超过 ~40 个汉字眼睛就要来回扫，长文一律限宽。

   ⚠️ 与色板相关的两个约束:
     · 深绿 #2D6A4F 对白字的对比度是 6.1:1，达到 WCAG AA。**不要**为了"更好看"
       把它调亮 —— 浅绿配白字会掉到 3:1 以下，在户外阳光下看不清。
     · 不要引入第三方字体链接。中文 Web 字体动辄 3~8 MB，而官网的全部价值是
       "点一下就下载 APK"，为首屏字体付这个代价不划算。
   ========================================================================== */

:root {
  /* 中性色：从纸色到墨色 */
  --paper: #FBFAF8;
  --paper-2: #F4F2ED;
  --surface: #FFFFFF;
  --line: #E7E4DC;
  --line-strong: #D5D1C6;
  --ink: #1C1B1A;
  --ink-2: #55524C;
  --ink-3: #8A867D;

  /* 强调色：远山绿。对应应用内的 Material 3 primary。 */
  --green: #2D6A4F;
  --green-dark: #1F4D39;
  --green-soft: #EDF4F0;
  --green-line: #C3DACD;

  /* 语义色 */
  --red: #A8322B;
  --red-soft: #FBEFEE;
  --amber: #8A6A1F;
  --amber-soft: #FBF4E4;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-full: 999px;

  --shadow-pop: 0 12px 40px rgba(28, 27, 26, 0.14);
  --shadow-card: 0 1px 2px rgba(28, 27, 26, 0.05);

  --wrap: 1080px;
  --wrap-narrow: 720px;

  --t: 0.16s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--green); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover:not(:disabled) { background: var(--paper-2); }

.btn-quiet { background: var(--paper-2); color: var(--ink-2); }
.btn-quiet:hover:not(:disabled) { background: var(--line); color: var(--ink); }

.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Shared page furniture
   ========================================================================== */
.page-head {
  /* ⚠️ 只写上下内边距，**不能**写成 `padding: 52px 0 8px` 这种简写：
     这个类总是和 .wrap 一起用（`<div class="wrap wrap-narrow page-head">`），
     两者选择器权重相同，简写里那两个 0 会按源码顺序把 .wrap 的左右内边距
     （桌面 24px / 手机 18px）**整条覆盖掉** —— 于是标题和导语贴着屏幕左边缘，
     而下面几段正文正常缩进。2026-09 手机端截图里 h1 顶在最左边就是这个原因。 */
  padding-top: 52px;
  padding-bottom: 8px;
}
.page-head h1 { font-size: 2rem; }
.page-head .lede {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 62ch;
}

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 1.4rem; }
.section h2 + .section-note { margin-top: 8px; }
.section-note { color: var(--ink-2); font-size: 0.96rem; max-width: 66ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
}
.hero h1 .accent { color: var(--green); }

.hero-lede {
  margin-top: 18px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- 域名题注 ---
   serendipity.beauty 本身就是一句注解（serendipity = 不期而遇，beauty = 那一瞬的
   东方之美），所以它出现在首屏按钮下面，作为一行小字 —— 像书页边上的题注。

   ⚠️ **"小字"不等于"看不见"**：字号 0.82rem / 域名 0.94rem 与 `--ink-2`、`--green-dark`
   都是按可读性定的**下限**。为了"低调"再往下压字号或把颜色调浅，就等于把这条信息
   取消了 —— 域名是要被读到的，不是纹理。 */
.hero-domain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.hero-domain-mark {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  letter-spacing: 0.08em;   /* 疏排：域名排得像一方小印 */
  color: var(--green-dark);
}
/* 分隔点用伪元素画：装饰性字符不该出现在 DOM 里（复制/读屏都会带上它） */
.hero-domain-gloss { color: var(--ink-3); letter-spacing: 0.04em; }
.hero-domain-gloss::before {
  content: "·";
  margin: 0 10px;
  color: var(--line-strong);
}

/* --- 手机预览：用 CSS 画，不用截图 ---
   为什么不留一张真机截图：截图会随应用改版过期，而没人会记得同步它。
   这里的简化示意图只表达"信息层级"，改版时不需要维护。 */
.phone {
  width: 258px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 9px;
  box-shadow: var(--shadow-card);
}
.phone-screen {
  background: var(--paper-2);
  border-radius: 18px;
  overflow: hidden;
  height: 430px;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  padding: 12px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.phone-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--paper-2);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.phone-search svg { width: 13px; height: 13px; flex-shrink: 0; }
.phone-chips { display: flex; gap: 5px; margin-top: 8px; }
.phone-chip {
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.phone-chip.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }

.phone-map {
  position: relative;
  flex: 1;
  background:
    linear-gradient(var(--green-soft) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--green-soft) 1px, transparent 1px) 0 0 / 34px 100%,
    #F2F5F1;
}
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
  transform: translate(-50%, -50%);
}
.pin.muted { background: var(--ink-3); box-shadow: 0 0 0 3px rgba(138, 134, 125, 0.16); }

.phone-card {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 11px 12px 13px;
}
.phone-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.phone-card-title strong { font-size: 0.86rem; }
.phone-card-title em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.phone-card-meta { font-size: 0.68rem; color: var(--ink-3); margin-top: 3px; }
.phone-card-text {
  font-size: 0.7rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 6px;
}

/* ==========================================================================
   Info grid（首页三段简介）
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.info-item { background: var(--surface); padding: 26px 24px; }
.info-item .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.info-item h3 { margin-top: 10px; font-size: 1.02rem; }
.info-item p { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; }

/* 数字条 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.stat { border-left: 2px solid var(--green-line); padding-left: 16px; }
.stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.86rem; color: var(--ink-2); }

/* ==========================================================================
   功能清单
   ========================================================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.feature {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.feature svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.feature h3 { font-size: 0.96rem; }
.feature p { margin-top: 4px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }

/* ==========================================================================
   分享
   ========================================================================== */
.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.share-actions { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }

/* --- /share 页 -----------------------------------------------------------
   三段竖排：手机 / 电脑 / 为什么值得转。首页那段分享用的是上面的 .share-grid
   （左右两栏），不要和这里混用。 */
.share-page { padding-bottom: 64px; }

.share-block { padding-top: 32px; }
.share-block + .share-block {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.share-block h2 { font-size: 1.06rem; }
.share-block .section-note { font-size: 0.92rem; }

/* 主按钮：手机上占满整行（与下面的链接框同宽，不再一个 320px 一个满宽），
   宽屏封顶 420px —— 与「电脑」那栏的复制控件宽度接近，又不至于拉成一条长杠。 */
.share-primary { width: 100%; max-width: 420px; margin-top: 14px; }

/* 「电脑」：二维码 + 复制控件是一件事的两个分支。
   手机上按源码顺序竖排（二维码紧跟在"扫下面的二维码"之后，而不是被挤到
   复制按钮下面），641px 起并排，二维码只占自己的宽度。 */
.share-desktop-body { display: grid; gap: 18px; margin-top: 16px; }
.share-desktop-actions { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 641px) {
  .share-desktop-body {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}

.qr-box {
  /* figure 默认带 40px 左右外边距，会把卡片挤歪 */
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: center;
}
.qr-box svg { width: 168px; height: 168px; margin: 0 auto; }
.qr-box figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--ink-3); }

.share-url {
  display: flex;
  gap: 8px;
}
.share-url input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-family: var(--font-mono);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

/* ==========================================================================
   表单
   ========================================================================== */
.form { margin-top: 28px; }

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.form-section + .form-section { margin-top: 16px; }

.form-section > h2 {
  font-size: 1.06rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.form-section > h2 .step {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  margin-right: 8px;
}

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 省 / 市 / 区县：三个下拉框**始终并排一行**。
   它们本来就是三项一行，但下面 640px 断点里的 `.field-row` 规则会把这一行
   一起压成一列 —— 三行下拉加三个标签要吃掉近 240px 纵向空间，是这一块最占地方
   的东西。所以那条规则必须被这里豁免（两条同优先级，靠源码顺序取胜：
   本块在桌面段，媒体查询里的同名规则在文件更后面）。

   代价是窄屏上每格只有约 90px（360px 的机器：内容宽 288px，减掉两个 8px 间距
   再除以 3），所以这里把内边距与字号收紧、把宽度尽量留给文字；contribute.html 里
   三个框的标签与占位文案也都压到 3 个字以内。
   ⚠️ 动这里之前先在 360px 宽的机器上量一眼。 */
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row-3 .select {
  padding-left: 10px;
  padding-right: 22px;
  font-size: 0.84rem;
}
/* 区县是**手填的文本框**（不是下拉，见 contribute.html 的说明）：
   它不需要给下拉箭头留位置，左右等宽就够。 */
.field-row-3 .input {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 0.84rem;
}
.field-row-3 .select-wrap::after { right: 8px; }

label.lbl {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.lbl .opt { font-weight: 400; color: var(--ink-3); font-size: 0.84rem; }
.lbl .req { color: var(--red); }

.hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 表单里三个**状态位**：平时是空的，只在有内容时出现（CSS 无法自愈"空元素吃掉
   6px 上边距"这件事，所以统一在这里关掉）：
     · #image-hint  照片压缩中的「正在处理 xxx…」/ 区划同类的临时状态
     · #coord-hint  定位中 / 已填入位置（含精度）/ 定位失败 / 手动改过坐标
     · #region-hint 「这一级名录里没有数据」（国保的区县几乎都是）
   它们原先各自带一句说明文案，2026-09-21 按要求全部删除 —— 现在只在**当下状态**
   下才写字。⚠️ 别把元素本身删掉：#coord-hint 的文案会被 collect() 抠出「约 N 米」
   当 accuracy_m，#image-hint 是照片处理的状态位。 */
#image-hint:empty,
#coord-hint:empty,
#region-hint:empty { display: none; }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: none; padding-right: 34px; }
.select-wrap { position: relative; }
/* 「自定义…」选中后才出现的文本框：跟在 select 下面，间距对齐 .hint 的节奏 */
.custom-input { margin-top: 8px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px; height: 7px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea { border-color: var(--red); }
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--red);
}
.field.invalid .field-error { display: block; }

/* 单选项组 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t);
  background: var(--surface);
}
.choice span:hover { border-color: var(--ink-3); }
.choice input:checked + span {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 600;
}
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* 坐标 */
.coord-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

/* 图片上传 */
.drop {
  /* ⚠️ 这一行不是可有可无的。`.drop` 是个 <label>，默认 display:inline，
     而它里面有**块级**子元素（下面 .drop strong / .drop span 都是 block）。
     行内盒子里塞块级子元素会触发 block-in-inline 拆分：这个标签被劈成几个
     匿名块，每个碎片各画一次自己的虚线边框与内边距 —— 表现就是"虚线框碎成
     几块、文字浮在中间"，在手机上尤其明显（用户反馈过：截图里虚线只剩两段）。
     任何把 .drop 改回 inline 的改动都会让这个 bug 原样回来。 */
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
  background: var(--paper);
  transition: border-color var(--t), background var(--t);
  cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-soft); }
.drop svg { width: 24px; height: 24px; color: var(--green); margin: 0 auto 8px; }
.drop strong { display: block; font-size: 0.92rem; }
.drop span { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--ink-3); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute;
  top: 5px; right: 5px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 27, 26, 0.72);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.thumb button:hover { background: var(--red); }
.thumb .size {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3px 6px;
  font-size: 0.68rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  text-align: right;
}

/* 表单底部 */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.form-actions .spacer { flex: 1; }

/* 提示条 */
.alert {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid;
}
.alert.show { display: block; }
.alert-error { background: var(--red-soft); border-color: #EBC9C6; color: #7A2620; }
.alert-warn { background: var(--amber-soft); border-color: #E8D9AE; color: var(--amber); }
.alert-ok { background: var(--green-soft); border-color: var(--green-line); color: var(--green-dark); }
.alert strong { display: block; margin-bottom: 3px; }
.alert ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.alert li { font-size: 0.88rem; }

/* 成功面板 */
.done {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.done.show { display: block; }
.done .tick {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done .tick svg { width: 26px; height: 26px; }
.done h2 { font-size: 1.32rem; }
.done p { margin-top: 10px; color: var(--ink-2); }
.done .code {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  word-break: break-all;
}

/* ==========================================================================
   文章页（长文排版：关于页等）
   ========================================================================== */
.article { padding: 52px 0 72px; }
.article h1 { font-size: 1.9rem; }
.article .article-meta { margin-top: 10px; color: var(--ink-3); font-size: 0.88rem; }
.article-body { margin-top: 32px; }
.article-body h2 {
  font-size: 1.22rem;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { font-size: 1rem; margin: 22px 0 8px; }
.article-body p { margin: 12px 0; color: var(--ink-2); }
.article-body ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.article-body li { margin: 7px 0; color: var(--ink-2); }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.article-body th { background: var(--paper-2); font-weight: 600; }
.article-body td { color: var(--ink-2); }

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--green-dark);
  line-height: 1.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 64px;
  padding: 44px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.footer-brand strong { display: block; font-size: 1rem; margin-bottom: 8px; }
.footer-brand p { color: var(--ink-2); max-width: 42ch; line-height: 1.8; }
.footer-col h3 { font-size: 0.9rem; margin-bottom: 12px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.footer-legal a { display: inline-flex; align-items: center; gap: 4px; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   管理后台
   ========================================================================== */
.gate {
  max-width: 400px;
  margin: 72px auto;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.gate h1 { font-size: 1.2rem; }
.gate p { margin-top: 8px; font-size: 0.88rem; color: var(--ink-2); }
.gate form { margin-top: 20px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px;
  font-size: 0.86rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t);
}
.tab:hover { border-color: var(--ink-3); }
.tab[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}
.tab .n {
  display: inline-block;
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   校核台：顶栏 / 左栏队列 / 右栏当前条目

   布局的核心是"位置固定"：判断依据永远在同一个地方，通过/驳回永远是同一个键。
   上一版把每条提交铺成一列卡片，眼睛要在卡片之间找位置 —— 校核的成本不在判断，
   在找位置，而找位置的成本随队列变长而增长。
   -------------------------------------------------------------------------- */
.wb { padding-bottom: 40px; }

.wb-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.wb-title { font-weight: 600; }
.wb-stat { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.wb-bar .spacer { flex: 1; }

.wb-filters { padding: 14px 20px 0; }
.wb-note { margin: 12px 20px 0; font-size: 0.84rem; color: var(--ink-2); }
.wb-note code { font-family: var(--font-mono); font-size: 0.8rem; }

.wb-body {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 20px 0;
}

/* --- 左栏：队列 --- */
.wb-rail {
  position: sticky;
  top: 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.wb-rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.wb-rail-head .spacer { flex: 1; }
.wb-rail-count { font-family: var(--font-mono); }
.wb-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wb-rail-list { max-height: calc(100vh - 210px); overflow-y: auto; }

.rail-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.rail-item:last-child { border-bottom: none; }
.rail-item.is-active { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.rail-check { display: flex; align-items: center; padding: 0 2px 0 10px; }
.rail-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 9px 6px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rail-name { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item.is-active .rail-name { font-weight: 600; }
.rail-sub { font-size: 0.74rem; color: var(--ink-3); }

/* --- 右栏：当前这一条 --- */
.wb-focus { min-width: 0; }
.fx {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.fx-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fx-head h2 { font-size: 1.1rem; }
.fx-head .spacer { flex: 1; }
.fx-meta { margin-top: 6px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); }

.fx-hints { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fx-hint {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  line-height: 1.7;
}
.fx-hint-error { background: var(--red-soft); border-color: #EBC9C6; color: #7A2620; }
.fx-hint-warn { background: var(--amber-soft); border-color: #E8D9AE; color: var(--amber); }
.fx-hint-info { background: var(--paper); color: var(--ink-2); }

.fx-coord {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.fx-coord .spacer { flex: 1; }
.fx-coord-text { font-family: var(--font-mono); font-size: 0.86rem; user-select: all; }
.fx-coord-source { font-size: 0.74rem; color: var(--ink-3); }
.fx-coord-none { font-size: 0.86rem; color: var(--amber); }
.fx-coord .hint { flex: 1 0 100%; margin: 0; }

.fx-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.fx-photo {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.fx-photo img { display: block; width: 110px; height: 110px; object-fit: cover; }
.fx-photo-key {
  position: absolute;
  left: 4px;
  bottom: 4px;
  min-width: 18px;
  padding: 1px 5px;
  background: rgba(28, 27, 26, 0.62);
  color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
}

.fx-editor { margin: 14px 0; }
.fx-editor-actions { display: flex; gap: 8px; margin-top: 10px; }
/* 字段错误一律显示在字段下方（全局 .field-error 默认 display:none，
   靠 .field.invalid 才出现 —— 审核页的编辑器不是那套结构，所以这里自己给一条） */
.fx-editor-field .field-error { display: none; }
.fx-editor-field.invalid .field-error { display: block; }
.fx-editor-field.invalid input { border-color: var(--red); }

/* 操作条吸在底部：审核时手不必为了点"通过"先滚回某个位置 */
.fx-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px -18px -18px;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.fx-actions .note {
  flex: 1 1 240px;
  min-width: 160px;
  padding: 8px 11px;
  font-size: 0.86rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.fx-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

kbd {
  margin-left: 4px;
  padding: 1px 5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

.fx-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.fx-panel {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.fx-panel h3 { font-size: 0.9rem; margin-bottom: 8px; }
.fx-panel summary { font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.fx-none { font-size: 0.84rem; color: var(--ink-3); }

.fx-log { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.fx-log-item { padding-left: 12px; border-left: 2px solid var(--line-strong); font-size: 0.84rem; }
.fx-log-item.is-undone { opacity: 0.55; }
.fx-log-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fx-log-action { font-weight: 600; }
.fx-log-time, .fx-log-undone { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); }
.fx-log-note { margin-top: 3px; color: var(--ink-2); }
.fx-log-changes { margin: 5px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.fx-log-changes li { font-size: 0.8rem; }
.fx-old { color: var(--ink-3); text-decoration: line-through; }
.fx-new { color: var(--green-dark); }

.fx-rel-group { margin-top: 10px; }
.fx-rel-group h4 { margin-bottom: 4px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.fx-rel-list { margin: 0; padding: 0; list-style: none; }
.fx-rel-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 5px 6px;
  background: none;
  border: none;
  border-radius: 6px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-rel-item:hover { background: var(--surface); }
.fx-rel-name { font-size: 0.84rem; }
.fx-rel-meta { font-size: 0.74rem; color: var(--ink-3); }

.wb-bulk {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--green-soft);
  border-top: 1px solid var(--green-line);
}
.wb-bulk .spacer { flex: 1; }
.wb-bulk-count { font-size: 0.86rem; font-weight: 600; color: var(--green-dark); }

.wb-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 22px 20px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.wb-key { display: inline-flex; align-items: center; gap: 5px; }
.wb-key kbd { margin: 0; }
.entry-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}

.badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.badge-new { background: var(--green-soft); color: var(--green-dark); }
.badge-fix { background: var(--amber-soft); color: var(--amber); }
.badge-other { background: var(--paper-2); color: var(--ink-2); }
.badge-status { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 14px 0;
  font-size: 0.88rem;
}
.kv dt { color: var(--ink-3); white-space: nowrap; }
.kv dd { margin: 0; word-break: break-word; }

.entry-text {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 佐证 / 上次备注：块内的小标题，与正文分开一行才扫得快 */
.entry-text strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
}

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.editor-grid label { display: block; font-size: 0.78rem; color: var(--ink-3); margin-bottom: 4px; }
.editor-grid input {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.86rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-preview { order: -1; }
  .phone { width: 236px; }
  .phone-screen { height: 380px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .share-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* 只管首页那段分享里的二维码卡片：/share 页的卡片在手机上要占满整行，
     否则"扫码"卡片缩成一小块飘在左边。 */
  .share-grid .qr-box { max-width: 260px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  /* 校核台：窄屏把左栏队列折到上面，右栏独占一行。
     队列列表限高，否则待审多的时候要划很久才看得到当前那条。 */
  .wb-body { grid-template-columns: minmax(0, 1fr); }
  .wb-rail { position: static; }
  .wb-rail-list { max-height: 210px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { height: 56px; gap: 10px; }
  .nav-links {
    display: none;
    position: absolute;
    left: 12px; right: 12px; top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 0.96rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav .btn { display: none; }

  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  /* 同 .page-head 的桌面规则：这里也必须写长写，不能简写 —— 手机端这条
     比上面的 `.wrap { padding: 0 18px }` 更靠后，简写会把那个 18px 一起吃掉。 */
  .page-head { padding-top: 36px; padding-bottom: 4px; }
  .page-head h1 { font-size: 1.6rem; }

  .stat-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  /* ⚠️ 省 / 市 / 区县那一行**必须豁免**上面这条：三行下拉太占纵向空间。
     它与 .field-row 同优先级，所以只能靠写在后面取胜 —— 别把这条挪到上面去。 */
  .field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .coord-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .coord-row .btn { grid-column: 1 / -1; }
  .form-section { padding: 20px 18px; }
  .article h1 { font-size: 1.5rem; }
  .hero-actions .btn { flex: 1; }

  .wb-bar { padding: 11px 18px; }
  .wb-filters { padding: 12px 18px 0; }
  .wb-note { margin: 10px 18px 0; }
  .wb-body { padding: 12px 18px 0; }
  /* 触屏没有键盘：快捷键说明只会占掉一屏手机上的纵向空间 */
  .wb-keys { display: none; }
  .fx { padding: 14px; }
  .fx-actions { margin: 14px -14px -14px; padding: 12px 14px; }
  .fx-photo img { width: 92px; height: 92px; }
}
