/* ═══════════════════════════════════════════════════════════
   翠影华章 · 设计底座（奶粉色 · 浅色系 · 液态玻璃）
   ── 2026-09-22 先生钉死的简报：**所有 UI 的色调为奶粉色、浅色系**。
      暗色主题与切换按钮一并撤除（theme.js 现在恒定 light）。
   ── 调色板经 WCAG 实算定稿（D:\Backup\sakiko\critique\palette-contrast.js）：
      正文 11.27:1 / 次文 6.21 / 弱文 5.09 / 最弱 4.51 / 强调 4.89 / 暖色 4.84 / 危险 5.34，
      全部 ≥4.5:1。--a2 与 glow 只作装饰，绝不当文字色。
   所有页面共用本文件；改这一处，全站跟着变。
   ═══════════════════════════════════════════════════════════ */

:root {
  /* 底色与氛围光：奶白偏粉的画布 */
  --bg-0: #fbf3f0;
  --bg-1: #fffbf9;
  --glow-1: 233, 180, 180;     /* 奶粉玫瑰 */
  --glow-2: 226, 159, 175;     /* 浅玫粉 */
  --glow-3: 240, 205, 190;     /* 奶杏 */

  /* 玻璃：白里透粉 */
  --glass-hi: rgba(255, 252, 251, .78);
  --glass-mid: rgba(255, 252, 251, .62);
  --glass-lo: rgba(255, 252, 251, .52);
  --stroke: rgba(122, 90, 86, .12);
  --stroke-hi: rgba(122, 90, 86, .22);

  /* 字：深奶咖，不是纯黑（纯黑压粉底会发脏） */
  --text: #43302f;
  --text-2: #6e5553;
  --muted: #7c625f;
  --faint: #856a67;   /* 实算 4.51:1，小字也过 AA */

  /* 主色：玫粉（替掉原来的青 #22d3ee 与靛 #6366f1 —— 那也是检测器判的"AI 味"） */
  --a1: #a64f63;
  --a2: #e39ba8;      /* 仅装饰：渐变端、光晕、下划线，绝不当文字 */
  --ok: #4f7a5e;      /* 奶绿：只用于"成功"语义（上传成功等），低饱和、偏灰暖 */
  --warn: #9c5a46;    /* 与暖色同族 */
  --danger: #b23a48;
  --warm: #9c5a46;    /* 暖色语义保留（时间·日期·记忆），只换色相：琥珀 → 奶咖橘粉 */
  /* 语义字色（S6 配色克制：把散落的硬编码色收进来） */
  --on-accent: #fff9f8;   /* 主色按钮上的字：白（压 #a64f63 实算 5.14:1） */
  --on-warm: #fff9f8;     /* 暖色标签上的字：白（压 #9c5a46 实算 5.08:1） */

  /* 形与影 */
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  /* 三级卡片（A3）：圆角与影分级，眼睛才有落点 */
  --r-card: 24px;       /* 主卡 */
  --r-sub: 16px;        /* 次级卡 */
  --r-inset: 12px;      /* 内嵌块 */
  --r-tile: 14px;       /* 照片格 */
  --shadow-1: 0 24px 70px rgba(0, 0, 0, .55);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .45);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, .26);
  --inset-lo: inset 0 -1px 0 rgba(0, 0, 0, .35);

  /* Inter 管拉丁字母与数字；中文走系统字体——小米上直接吃到 MiSans，观感比雅黑高一个档次，
     且不下载任何中文字体文件（CJK 字体动辄几 MB，是性能红线） */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "MiSans", "Xiaomi Sans", "HarmonyOS Sans SC",
          "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;

  /* 字号阶（A1）：标题紧字距、正文放行高 */
  --fs-hero: 30px;
  --fs-h1: 22px;
  --fs-h2: 17px;
  --fs-body: 16px;
  --fs-sm: 13.5px;
  --fs-xs: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .2px;
}

/* ── 背景壁纸：静态多层径向渐变（原来那五团"模糊+动画"的光团太吃显卡，已换掉） ── */
.ambient {
  position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48vw 48vw at 4% 2%, rgba(var(--glow-1), .42), transparent 60%),
    radial-gradient(54vw 54vw at 98% 6%, rgba(var(--glow-2), .40), transparent 60%),
    radial-gradient(42vw 42vw at 46% 106%, rgba(var(--glow-3), .28), transparent 60%),
    radial-gradient(34vw 34vw at 104% 94%, rgba(255, 159, 10, .22), transparent 60%);
}
.ambient i { display: none; }        /* 原有的动态光团不再渲染 */
.ambient .grain { display: none; }   /* 全屏颗粒层（混合模式）关掉——最不划算的一项 */
/* 细线圆环保留（纯渐变，几乎不耗性能），玻璃边缘跨过时仍能看出折射 */
.ambient .rings { opacity: .9; }

/* ═════════ 玻璃本体 ═════════ */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .10), transparent 62%),
    linear-gradient(160deg, var(--glass-hi), var(--glass-mid) 42%, var(--glass-lo));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1), var(--inset-hi), var(--inset-lo);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s, border-color .28s;
}
/* 顶部那道"光" */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 55% at 22% -12%, rgba(255, 255, 255, .26), transparent 62%);
  opacity: .75;
}
/* 边缘折射环（用遮罩做出 1px 的渐变描边） */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .06) 34%,
    rgba(120, 210, 255, .30) 62%, rgba(255, 255, 255, .40) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.glass:hover { border-color: var(--stroke-hi); }
.glass > * { position: relative; z-index: 1; }

.glass-flat { box-shadow: var(--shadow-2), var(--inset-hi); }
.glass-tight { border-radius: var(--r-md); }

/* ═════════ 排版 ═════════ */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .3px; }
.title-xl { font-size: 30px; line-height: 1.25; }
.title-lg { font-size: 21px; }
.title-md { font-size: 16px; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.9; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--faint); text-transform: uppercase; }
/* 2026-10-02（2.0）：「墙上那张地图」的世界里没有渐变彩字——招牌字是墨。
   类名保留（各页的 class 不动），规则改成空壳：只继承当前颜色。 */
.grad-text { background: none; color: inherit; -webkit-text-fill-color: currentColor; }

/* ═════════ 按钮 ═════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; font-size: 15px; font-weight: 700; font-family: inherit;
  border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .22s, background .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-primary {
  color: #000;                                  /* 纯黑字：在渐变两端都 ≥4.5:1 */
  background: linear-gradient(135deg, var(--a1), #6f74f7);
  box-shadow: 0 14px 34px rgba(var(--glow-1), .30), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(var(--glow-1), .40), inset 0 1px 0 rgba(255, 255, 255, .55); }

.btn-ghost {
  color: var(--text-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border-color: var(--stroke); backdrop-filter: blur(14px);
  box-shadow: var(--inset-hi);
}
.btn-ghost:hover { color: var(--text); border-color: var(--stroke-hi); transform: translateY(-1px); }

.btn-danger { color: #fff0f2; background: linear-gradient(135deg, rgba(251,113,133,.9), rgba(190,24,60,.9)); box-shadow: 0 12px 30px rgba(251,113,133,.28); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ═════════ 输入 ═════════ */
.field { position: relative; margin-bottom: 14px; }
.field > label {
  display: block; margin-bottom: 7px; font-size: 12.5px; letter-spacing: .6px; color: var(--muted);
}
.input {
  width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit; color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--stroke); border-radius: var(--r-md); outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: #8fa1b5; }   /* 输入框底色更深，占位符要再亮一档（≈5.6:1） */
.input:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus {
  border-color: rgba(var(--glow-1), .55);
  box-shadow: 0 0 0 4px rgba(var(--glow-1), .14), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0;
  border: 1px solid var(--stroke-hi); border-radius: 6px; background: rgba(255,255,255,.06); cursor: pointer; position: relative; transition: .2s; }
.check input:checked { background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; }
.check input:checked::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #04121a; font-weight: 800; }

/* 分段控件（页签） */
.segment {
  position: relative; display: flex; gap: 4px; padding: 5px; border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* 页签内容：一次只显示一个（app.js 靠加 .active 切换） */
.tab-content { display: none; }
.tab-content.active { display: block; }
.segment .seg {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 600; font-family: inherit;
  color: var(--muted); background: none; border: none; border-radius: 11px; cursor: pointer;
  transition: color .2s, background .25s, box-shadow .25s; position: relative; z-index: 1;
}
.segment .seg.active {
  color: #04121a;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(214,240,255,.86));
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 #fff;
}

/* ═════════ 标签 / 徽章 ═════════ */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
  border: 1px solid transparent;
}
.tag-ok   { color: #7a4a2e; background: linear-gradient(135deg, #fbe6d6, #f7dcc9); }
.tag-wait { color: #8a3b4e; background: linear-gradient(135deg, #fbe0e6, #f9d6de); }
.tag-dim  { color: var(--text-2); background: rgba(255,255,255,.10); border-color: var(--stroke); }
.tag-info { color: #7a3f5c; background: linear-gradient(135deg, #f7e2ea, #f3dbe4); }

/* ═════════ 提示条 ═════════ */
.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 15px; border-radius: var(--r-md); font-size: 13px; line-height: 1.85;
  background: rgba(255,255,255,.055); border: 1px solid var(--stroke); color: var(--text-2);
}
.note-ok   { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10); color: #b6f3d6; }
.note-warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.10); color: #f6dfa8; }
.note-err  { border-color: rgba(251,113,133,.38); background: rgba(251,113,133,.12); color: #ffd0d8; }

/* ═════════ 照片格子 ═════════ */
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s, border-color .26s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ⚠️ 2026-09-24：抬升（transform）改由「悬停三样」的 .hot 说了算
   （hover-grid.js 写 --px/--py/--csc，flip-detail.css 里过渡）——
   同一个属性两处管会打架（一个 translateY(-3px)、一个 scale(1.045)，谁后加载听谁的）。
   所以这一行只留光影与描边的变化。 */
.tile:hover { box-shadow: 0 18px 40px rgba(0,0,0,.55); border-color: var(--stroke-hi); }
.tile .tag { position: absolute; left: 7px; bottom: 7px; }
.tile .x {
  position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,18,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  color: #dbe6f2; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s;
}
.tile:hover .x { opacity: 1; }
.tile .x:hover { transform: scale(1.08); color: var(--text); border-color: rgba(22,24,26,.34); }
.tile .pin {
  position: absolute; left: 7px; top: 7px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(8,12,18,.5); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); color: #cfe6ff;
  cursor: pointer; opacity: 0; transition: opacity .2s;
}
.tile:hover .pin { opacity: 1; }

/* 拖放区 */
.drop {
  position: relative; padding: 40px 22px; text-align: center; border-radius: var(--r-lg); cursor: pointer;
  border: 1.5px dashed rgba(255,255,255,.22); color: var(--text-2); font-size: 14.5px; line-height: 2;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.07), rgba(255,255,255,.02));
  transition: border-color .25s, background .25s, transform .25s;
}
.drop:hover, .drop.over {
  border-color: rgba(var(--glow-1), .7); color: #fff; transform: translateY(-1px);
  background: radial-gradient(120% 90% at 20% 0%, rgba(var(--glow-1), .16), rgba(255,255,255,.03));
}
.drop b { color: var(--a1); }

/* 进度条 */
.bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 0 18px rgba(var(--glow-1), .55);
  transition: width .25s ease; }

/* 顶部条 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(180deg, rgba(12,16,22,.82), rgba(12,16,22,.55));
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--stroke);
}
.topbar .brand { font-weight: 800; letter-spacing: .5px; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 13px; }
.topbar a, .topbar button.link {
  color: var(--text-2); text-decoration: none; font-size: 13.5px; font-family: inherit;
  padding: 8px 13px; border-radius: 11px; border: 1px solid transparent; background: none; cursor: pointer;
  transition: .2s;
}
.topbar a:hover, .topbar button.link:hover { color: var(--text); background: rgba(22,24,26,.06); border-color: transparent; }

/* 空状态 */
.empty { color: var(--faint); font-size: 13.5px; padding: 14px 2px; }

/* 滚动条与选中 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }
::selection { background: rgba(217, 154, 37, .26); color: var(--text); }

/* 入场动画：只做"位移+淡入"，且**不用** fill-mode 定格——
   否则动画若被中途冻住（无头浏览器、省电模式、后台标签页），
   整块卡片会停在半透明状态，看起来像蒙了一层灰。
   不用 fill-mode 的话，动画一旦结束（或压根没跑）元素就回到正常状态。 */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.rise { animation: rise .5s cubic-bezier(.2,.7,.3,1); }
.rise-2 { animation: rise .5s cubic-bezier(.2,.7,.3,1) .06s; }
.rise-3 { animation: rise .5s cubic-bezier(.2,.7,.3,1) .12s; }

/* 页面容器 */
.page { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 26px 18px 70px; }
.stack > * + * { margin-top: 18px; }

/* 小屏 */
@media (max-width: 640px) {
  .title-xl { font-size: 24px; }
  .page { padding: 16px 12px 60px; }
  .topbar { padding: 11px 13px; gap: 8px; }
  .topbar .who { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grid-photos { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; }
}

/* 尊重"减少动态效果"的系统设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ═════════ 真折射模式（浏览器支持 backdrop-filter: url() 时才生效） ═════════ */
/* 支持真折射时：把玻璃底色压薄，让背后的画面能从玻璃里"透"出来并被折射 */
html[data-liquid="ok"] .glass {
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035) 46%, rgba(255, 255, 255, .07));
  border-color: rgba(255, 255, 255, .20);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(0, 0, 0, .30);
}
/* 文字在更透的玻璃上要多一点底子，免得看不清 */
html[data-liquid="ok"] .glass, html[data-liquid="ok"] .float { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* 地图页的悬浮面板：比卡片沉一些（底下是浅色地图），但也留出折射的余地 */
html[data-liquid="ok"] .float,
html[data-liquid="ok"] .topbar {
  background:
    radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(160deg, rgba(12, 16, 22, .62), rgba(8, 11, 16, .50)) !important;
}
/* 不支持时保持原样（现在的普通毛玻璃），不额外改动 */
html[data-liquid="unsupported"] .glass::after { display: none; }


/* ── 可访问性与交互基线（按 UI/UX Pro Max §1 §2 §7） ── */
:root {
  --dur-micro: 200ms;    /* 微交互 150-300ms */
  --dur-fluid: 480ms;    /* 流体/玻璃类 400-600ms */
  --ease-apple: cubic-bezier(.32, .72, 0, 1);
}

/* ① 键盘焦点必须看得见（§1 focus-states）——鼠标点击不显示，键盘 Tab 才显示 */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid rgba(var(--glow-1), .85);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ② 触摸目标：可点元素至少 44×44（§2 touch-target-size） */
.btn { min-height: 46px; }
.seg { min-height: 42px; }
.tile { cursor: pointer; }
.tile .x { width: 32px; height: 32px; }        /* 视觉稍小，但下面把可点范围撑到 44 */
.tile .x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.tile .pin { min-height: 30px; }
#lightbox .info button { min-height: 40px; padding: 9px 16px; }
#lightbox .close { width: 44px; height: 44px; }
.range2 input[type=range]::-webkit-slider-thumb { width: 20px; height: 20px; }   /* 手柄更好抓 */

/* ③ 触屏反馈与手势（§2 tap-delay / press-feedback） */
button, a, .tile, .seg, label.check { touch-action: manipulation; }
button, a, .tile, .seg, label.check, #lightbox .info button { cursor: pointer; }

/* ④ 按钮里的 SVG 图标（§4 no-emoji-icons） */
.btn svg, #lightbox .info button svg, .tile .pin svg, .tag svg {
  width: 15px; height: 15px; flex: 0 0 15px;
  vertical-align: -2px; margin-right: 5px;
}
.tile .pin svg { width: 13px; height: 13px; margin-right: 3px; }
#lightbox .info button { display: inline-flex; align-items: center; }

/* ⑤ 动效统一（§7 motion-consistency） */
.glass, .tile, .float, .btn, .seg, .drop {
  transition-duration: var(--dur-micro);
  transition-timing-function: var(--ease-apple);
}


/* ═════════ 滚动条槽：试过、撤了 ═════════
   先生 2026-10-09 报的"每次切换页面导航栏会移动"确实是滚动条占位造成的：
   长页（广场/相册）有 15px 滚动条、满屏页（地图/年轮）没有，而底栏 dock 是 `left:50%` 居中的 ——
   视口有效宽度一变，它就横移半个滚动条宽（实测 632.5 ↔ 640）。
   **第一版**给根元素加 `scrollbar-gutter: stable` 预留槽位：dock 确实不跳了（四页都是 632.5），
   但**满屏页右缘露出 15px 白条** —— 实测地图页 `#map` 宽只剩 1265；更关键的是，
   **预留槽是不可绘制区**：把 `#map` 用负外边距铺到 1280 也没用，那 15px 照旧画不进去（实测仍是白）。
   所以**撤掉**这条，改用「dock 以 `50vw` 居中」（见 wall.css 那条 dock 规则）——
   `vw` 含滚动条，所有页面的中心恒为 640；满屏页也不再被收窄。 */
/* html { scrollbar-gutter: stable; }  ← 已撤，别再往这儿加 */

/* ═════════ 点按高亮：全站关掉浏览器那块蓝 ═════════
   安卓（尤其三星/旧 WebView）点任何可点元素都会盖一层半透明蓝，纸本世界里很扎眼。
   站里原本只在 .btn 与 .wl-pin 上关过；底栏那几格没罩住，先生 2026-10-09 截图指出来的就是它。
   这里在根元素上关一次（该属性可继承），再给可点元素补一遍 —— 反馈交给我们自己的 :active 与动效。 */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], summary, label, .tabbar .item { -webkit-tap-highlight-color: transparent; }

/* ═════════ 底栏文字不许被选中（先生 2026-10-09 夜截图里那两块赭石底）═════════
   量法：把先生那张截图逐点取样、按标签文字列分簇求底色众数 —— 两个色块分别叠在**不同**底子上
   （一个在纸板上 222,224,221、一个在白胶囊上 241,242,238），各自反算出的叠色 α 却是同一个
   （0.167 / 0.170 / 0.174），且色相正是本站的 --wl-ochre #d99a25 → 就是 ::selection（见本文件 :317
   与 wall.css:1734）。结论：**手机长按把底栏文字选中了**。
   桌面复现不出来：底栏格是 <a>，拖拽在浏览器里是"拖链接"、双击也不出选区（无头 Edge 四种手势实测全空）；
   手机长按选词属 UA 级手势，JS 拦不住 —— 所以只能从 CSS 这层封。
   只封底栏这一处：正文、帖子、评论、页脚备案号照旧可选、可复制。 */
.tabbar, .tabbar * {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-touch-callout: none;          /* iOS 长按也不弹那个菜单 */
}

/* ═════════ 浮动玻璃导航条（iOS 26 那个质感） ═════════ */
.tabbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 900;
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .46));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 12px 36px rgba(16, 24, 40, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.tabbar .item {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 96px; padding: 12px 10px 10px; border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px; line-height: 1;
  transition: color var(--dur-micro) var(--ease-apple);
}
.tabbar .item .ico { display: flex; align-items: center; justify-content: center; height: 26px; }
.tabbar .item .ico svg { width: 24px; height: 24px; }
.tabbar .item.on { color: var(--text); }
/* 选中：图标轻放大一点表示"选中"，不再做扭曲（宁可清楚，不要糊） */
.tabbar .item .ico { transition: transform 300ms var(--ease-apple); }
.tabbar .item.on .ico { transform: scale(1.08); }
.tabbar .item.on .lab { font-weight: 700; }
/* 选中项后面那团"会滑过去"的软玻璃圆斑 */
.tabbar .blob {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0;
  border-radius: 999px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 30% 18%, rgba(255, 255, 255, .99), rgba(255, 255, 255, .78) 58%, rgba(214, 255, 241, .6)),
    linear-gradient(160deg, rgba(206, 255, 244, .68), rgba(222, 238, 255, .66));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 20px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: transform 420ms var(--ease-apple), width 420ms var(--ease-apple);
}
.tabbar .blob.moving { animation: blobStretch 420ms var(--ease-apple); }
@keyframes blobStretch {
  0% { filter: blur(0); }
  35% { filter: blur(1.5px); }
  100% { filter: blur(0); }
}
/* 圆斑四周那圈"发虚"的晕——苹果那个黏糊糊的边缘 */
.tabbar .blob::before {
  content: ""; position: absolute; inset: -13px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(196, 255, 240, .62), rgba(196, 255, 240, 0) 74%);
  filter: blur(10px);
}
/* 暗色主题下换成深玻璃+青色微光 */
html[data-theme="dark"] .tabbar {
  background: linear-gradient(160deg, rgba(22, 27, 36, .78), rgba(14, 18, 25, .62));
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
html[data-theme="dark"] .tabbar .blob {
  background:
    radial-gradient(70% 90% at 30% 18%, rgba(255, 255, 255, .30), rgba(255, 255, 255, .10) 58%, rgba(34, 211, 238, .18)),
    linear-gradient(160deg, rgba(34, 211, 238, .18), rgba(99, 102, 241, .22));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .28);
}
html[data-theme="dark"] .tabbar .blob::before {
  background: radial-gradient(closest-side, rgba(34, 211, 238, .35), rgba(34, 211, 238, 0) 72%);
}
html[data-theme="dark"] .tabbar .item { color: var(--muted); }
html[data-theme="dark"] .tabbar .item.on { color: #fff; }
html[data-theme="dark"] .tabbar .item.on .lab { font-weight: 700; }

/* 有导航条的页面，内容要给它让位（技能 §5：内容不能被固定条挡住） */
body.has-tabbar .page { padding-bottom: 122px; }
body.has-tabbar .stack { padding-bottom: 8px; }

@media (max-width: 520px) {
  .tabbar .item { width: 74px; font-size: 11px; }
  .tabbar { bottom: 14px; }
  body.has-tabbar .page { padding-bottom: 112px; }
}


/* ═════════ 省电档（画质档位 = smooth） ═════════ */
html[data-quality="smooth"] .glass,
html[data-quality="smooth"] .float,
html[data-quality="smooth"] .topbar,
html[data-quality="smooth"] .tabbar {
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
}
html[data-quality="smooth"] .tabbar .blob::before { display: none; }   /* 去掉那圈发虚的晕 */
html[data-quality="smooth"] .ambient .rings { opacity: .55; }
html[data-quality="smooth"] .glass::after { display: none; }           /* 去掉折射环 */


/* ═══════════════════════════════════════════════════════════
   A 批美化 + B 批组件底座
   A1 排版尺度 · A2 照片当主角 · A3 卡片分三级 · A5 暖色点缀 · A6 空状态
   B1 骨架屏 · B3 轻提示 Toast（都用 transform/opacity，零毛玻璃）
   ═══════════════════════════════════════════════════════════ */

/* ── A1 排版尺度：字距收紧、行高放开、数字用等宽 ── */
h1, .h1, .title-xl {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.18;
  margin: 0 0 8px;
}
h2, .h2, .title-lg {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.25;
  margin: 0 0 8px;
}
h3, .h3, .title-md {
  font-size: var(--fs-h2);
  font-weight: 650;
  letter-spacing: -.012em;
  line-height: 1.35;
  margin: 0 0 6px;
}
body, .body {
  font-size: var(--fs-body);
  line-height: 1.72;
  letter-spacing: .004em;
}
.sub, .meta, .note, p { line-height: 1.72; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 600;
  text-transform: uppercase;
}
/* 数字（张数、年份、日期）等宽，避免跳动、也更精神 */
.count, .num, .timeline .year, .tag, .ruler {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ── A3 卡片分三级：主卡 / 次级卡 / 内嵌块（圆角与影分级 → 眼睛有落点） ── */
.glass {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1), var(--inset-hi);
}
.glass-2 {                       /* 次级卡：更轻，用于并列的次要信息 */
  border-radius: var(--r-sub);
  box-shadow: var(--shadow-2), var(--inset-hi);
}
.glass-2::before { opacity: .5; }   /* 顶部高光收一点 */
.glass-3 {                       /* 内嵌块：最轻，用在主卡"里面" */
  border-radius: var(--r-inset);
  box-shadow: none;
  background:
    radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .06), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .022));
  border: 1px solid var(--stroke);
}
.glass-3::before, .glass-3::after { display: none; }

/* ── A5 暖色点缀：时间、日期一类"有记忆感"的地方用暖琥珀 ── */
.warm, .timeline .year, .date-chip {
  color: var(--warm);
}
.date-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ── A2 照片格：更大、更聚焦，悬停轻抬（只动 transform / box-shadow） ── */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.tile {
  border-radius: var(--r-tile);
  transition: transform 300ms cubic-bezier(.22, .7, .25, 1),
              box-shadow var(--dur-micro) var(--ease-apple),
              border-color var(--dur-micro) var(--ease-apple);
}
/* ⚠️ 2026-09-24 夜：这里原本是 `.tile:hover { transform: translateY(-3px) scale(1.01); }`，
   与「悬停三样」打架，且**它优先级更高**（伪类比单类多一层，`.tile:hover` 0-2-0 压过
   flip-detail.css 里那条只写变量的 `.tile` 0-1-0）——变量算得再对也白算，抬升永远停在
   3px/1.01。祥第一版只删了上面第 252 行那条，漏了这条，是逐帧量 transform 才把它揪出来。
   抬升一律交给 .hot（hover-grid.js + flip-detail.css）；"按下那一下"的反馈也搬去那边、
   用同一套变量写，免得两条规则继续抢同一个属性。 */
.tile img { border-radius: calc(var(--r-tile) - 3px); }
/* 照片下面的日期标签：压在图上，用暖色，比原来的灰标签更有"相册味" */
.tile .shot-at {
  position: absolute; left: 8px; right: 8px; bottom: 30px;
  font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  pointer-events: none;
}

/* ── A6 空状态：一句温和的话 + 一个引导，而不是干巴巴一行字 ── */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 20px 30px; text-align: center;
  color: var(--faint); font-size: var(--fs-sm); line-height: 1.8;
}
.empty .empty-ico {
  width: 52px; height: 52px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.empty .empty-ico svg { width: 24px; height: 24px; }
.empty .empty-tip { color: var(--muted); font-size: var(--fs-sm); }
.empty .btn { margin-top: 4px; }

/* ── B1 骨架屏：等图时先给灰块 ──
   2026-10-02（2.0）：原来那道光是从左扫到右的**无限循环**（守则点名过跑马灯式循环），
   纸的世界里换成纸灰底 + 极慢的呼吸。只用 opacity，仍然不烧显卡。 */
.skel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border-radius: var(--r-tile);
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 24, 26, .06);
  opacity: 0;
  animation: skelBreath 2.4s ease-in-out infinite alternate;
}
@keyframes skelBreath { from { opacity: 0; } to { opacity: 1; } }
.skel-tile { aspect-ratio: 4 / 3; }
.skel-line { height: 12px; border-radius: 999px; margin: 8px 0; }
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
}

/* ── B3 轻提示 Toast：右下浮出，不打断操作（纯 transform/opacity） ── */
.toast-wrap {
  position: fixed; z-index: 1400; right: 18px; bottom: 96px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 9px;
  max-width: 340px; padding: 12px 16px;
  border-radius: 14px;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.5;
  background: linear-gradient(160deg, rgba(20, 25, 34, .94), rgba(13, 17, 24, .92));
  border: 1px solid var(--stroke-hi);
  box-shadow: var(--shadow-2);
  color: var(--text);
  transform: translateY(10px); opacity: 0;
  transition: transform 240ms var(--ease-apple), opacity 240ms var(--ease-apple);
}
.toast.in { transform: translateY(0); opacity: 1; }
.toast svg { width: 16px; height: 16px; flex: 0 0 16px; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--danger); }
@media (max-width: 520px) {
  .toast-wrap { right: 12px; left: 12px; bottom: 92px; align-items: stretch; }
  .toast { max-width: none; }
}


/* ═════════ B2 页面切换过渡（View Transitions） ═════════
   同源页面之间跳转时自动淡入淡出；不支持的浏览器直接忽略，不会有副作用。
   只动不透明度，零性能代价。 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 160ms var(--ease-apple) both; }
::view-transition-new(root) { animation: vtIn 240ms var(--ease-apple) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
/* 底部导航条与主题切换按钮"留在原地"不参与淡出（像原生 App 那样稳） */
.tabbar { view-transition-name: app-tabbar; }
.ambient { view-transition-name: app-ambient; }
::view-transition-group(app-ambient) { animation-duration: 0ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}


/* ═════════ B6 逐张上传进度 ═════════
   说明：照片是"一批一个请求"发出去的，同一批里的几张是并行上传、进度同步前进——
   所以这里每张一条细进度线，反映的是它所在那一批的真实进度（不编造单张的假进度）。 */
.upq { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 14px; }
.upq .row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px; font-size: var(--fs-sm); color: var(--text-2);
  border-bottom: 1px solid var(--stroke);
}
.upq .row:last-child { border-bottom: none; }
.upq .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upq .st { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-xs); }
.upq .ln { flex: 0 0 96px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .10); overflow: hidden; }
.upq .ln i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--a1), var(--a2));
             transition: width 180ms var(--ease-apple); }
.upq .row.done .st { color: var(--ok); }
.upq .row.done .ln i { background: var(--ok); }
.upq .row.fail .st { color: var(--danger); }
.upq .row.fail .ln i { background: var(--danger); }
html[data-theme="light"] .upq .ln { background: rgba(9, 9, 11, .10); }
html[data-theme="light"] .upq .row { border-bottom-color: rgba(9, 9, 11, .08); }


/* 四个入口时收窄，手机上不挤（借 chronoframe 的分区入口后新增） */
.tabbar.n4 .item { width: 84px; }
@media (max-width: 520px) {
  .tabbar.n4 .item { width: 66px; font-size: 10.5px; }
  .tabbar.n4 .item .ico svg { width: 21px; height: 21px; }
}

/* 五个入口（地图/相册/年轮/上传/我的）再收窄一档：宽屏 70px、窄屏 56px */
.tabbar.n5 .item { width: 70px; padding: 11px 8px 9px; }
@media (max-width: 560px) {
  .tabbar.n5 .item { width: 56px; padding: 10px 4px 8px; font-size: 10px; letter-spacing: .1px; }
  .tabbar.n5 .item .ico { height: 23px; }
  .tabbar.n5 .item .ico svg { width: 19px; height: 19px; }
}

/* ── 屏幕阅读器专用（只在无障碍树里，画面上看不见）──
   ⚠️ 2026-09-24 夜：`.sr-only` 这个名字在年轮页的 `#announcer` 上**早就用过，却从来没有定义**
      （rings.html 那个 p 一直被顶栏盖着，所以谁也没发现）。这回翻层也开始播报，
      相册页没有固定层遮挡，它当场以"已回到相册"一行裸字出现在页面左下角。
      定义补在这里（ui.css 是所有页面共用的底座），并顺手给 JS 那边也加了内联兜底。 */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* ── `hidden` 属性必须真的能藏住东西（全局铁律，2026-09-24 夜补）──
   ⚠️ 浏览器默认的 `[hidden] { display: none }` 只有一条属性选择器那么重（0,1,0），
      **任何一条带类名的 display 规则都能盖过它**。这个坑在一次会话里咬了祥两次：
        · 账户页 `.row { display: flex }` → 「翠的足迹」那一行对**非站长也是显示的**（先生报的）
        · 选择器里的 `.fp-chosen { display: inline-flex }` → 没选中时挂着一个空胶囊
      所以在这里一次说清：带 hidden 的元素一律不显示；要"忽略 hidden"的地方，
      得自己写一条**更重**的规则（例如地图页 `.browse.docked`，0,2,0，仍然赢）并在那儿注明原因。 */
[hidden] { display: none !important; }

/* ── 焦点环统一成主色（2026-09-24 夜）──
   ⚠️ 浏览器默认的焦点环是**蓝色**（Edge/Chrome 的 -webkit-focus-ring-color），
      跟本作的玫粉配色很打架 —— 先生说的"蓝框"就是它。这里统一换成主色柔和描边。
      **是替换不是删除**：键盘用户仍然要看得见焦点落在哪儿（无障碍的底线）。 */
:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
/* 输入类控件用"描边变色 + 一圈柔光"代替硬描边（它们自己有边框，再套一层环很糙） */
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(166, 79, 99, .14);
}

/* ── 待审核的灰格（D 阶段 2026-10-17）：未过审的自己人看这里，不给图片、不给地址 ── */
.tile-pending{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  min-height:72px;background:linear-gradient(135deg,#262b34,#1d2129);color:#9aa3b2;
  font-size:12px;letter-spacing:.08em;border-radius:inherit}

/* 待审照片的缩略图（站长中心 · 内容审核）：看得见才裁决得了 */
.mod-thumb{height:56px;width:auto;max-width:96px;object-fit:contain;border-radius:8px;flex:0 0 auto;cursor:zoom-in;
  border:1px solid rgba(0,0,0,.12)}

