/* ============================================================
   重启人生 365 · 设计系统 v2
   ------------------------------------------------------------
   L1 色彩：三色制（纸 60% / 墨 30% / 朱印 10%），每个色值绑定落点
   L2 排印：5 档字号 + display，正文 17px 基准，行长 ≤36em
   L3 版式：12 栏栅格，每屏一个焦点，卡片一律发丝边无阴影

   母题：朱印落在纸上 —— 朱印只表示「已达成 / 当前 / 盖章」，
        绝不用作装饰。它是印章，不是口红。
   ============================================================ */

:root {
  /* ---- L1 色彩 ---- */
  /* 结构色 60% */
  --paper:        #FBF8F3;   /* 画布 */
  --paper-2:      #FFFFFF;   /* 卡面 */
  --paper-3:      #F5F0E8;   /* 次级面 / 空位 */
  --line:         #E8E0D0;   /* 发丝线 */
  --line-strong:  #D3C7AF;   /* 强调线 */
  /* 信息色 30% */
  --ink:          #1F1B16;   /* 正文 15.2:1 */
  --ink-2:        #4A443C;   /* 次级 8.4:1 */
  --ink-3:        #6E6659;   /* 图注 / 三级 4.9:1 */
  /* 点缀色 10% —— 朱印 */
  --seal:         #A83C2C;   /* 填充 / 强调 5.3:1 */
  --seal-deep:    #8E2F1A;   /* 印上的深字 / 深一档文字 7.3:1 */
  --seal-tint:    #FDF3EF;   /* 印的浅底 */
  --slate:        #46606B;   /* 第二数据序列（只绑「英语」一条） 5.8:1 */
  /* 收尾屏 · 墨底 */
  --dark:         #1F1B16;
  --dark-ink:     #FBF8F3;   /* 14.9:1 */
  --dark-2:       #B3A996;   /* 7.4:1 */
  --dark-line:    rgba(251,248,243,.16);
  --dark-seal:    #E8A98F;   /* 8.6:1 */
  --dark-seal-hot:#D9603F;   /* 4.6:1，仅大字 / 图形 */

  /* ---- L2 排印 ---- */
  --fs-caption: 13px;
  --fs-small:   15px;
  --fs-body:    17px;
  --fs-h3:      22px;
  --fs-h2:      30px;
  --fs-display: clamp(46px, 7.2vw, 84px);

  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans:  'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono:  'SF Mono', 'Menlo', ui-monospace, monospace;

  /* ---- L3 节奏 ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r: 4px;            /* 全站唯一圆角值：编辑风 */
  --container: 1200px;
  --ease: cubic-bezier(.2,.6,.2,1);
  --ease-page: cubic-bezier(.77, 0, .18, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.35; }
p { text-wrap: pretty; }
a { color: var(--seal-deep); text-decoration: none; }
a:hover { color: var(--seal); }
img, svg { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--seal-tint); color: var(--seal-deep); }

/* 微小英文标记：正体 + 大字距，不斜体（中文无斜体，斜体是合成） */
.en {
  font-family: var(--serif);
  font-style: normal;
  font-size: var(--fs-caption);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif { font-family: var(--serif); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   顶部导航 —— 档案式：编号 + 悬停名，不做底色胶囊
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244,239,228,.86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 48px;
  height: 62px;
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav-logo {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink); white-space: nowrap; flex: 0 0 auto;
}
.nav-logo em { font-style: normal; color: var(--seal); }
.nav-links { display: flex; gap: 2px; flex: 1; justify-content: flex-end; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .06em;
  color: var(--ink-3);
  padding: 6px 7px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  position: relative;
}
.nav-links a::after {
  content: attr(data-name);
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
  font-family: var(--sans); font-size: 12px; letter-spacing: .04em;
  color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line);
  padding: 3px 9px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav-links a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-links a.on { color: var(--seal); border-bottom-color: var(--seal); }
.nav-lock {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3); padding-left: var(--sp-4);
  border-left: 1px solid var(--line);
}
.nav-lock:hover { color: var(--seal-deep); }
.nav-lock svg { width: 13px; height: 13px; }

/* ============================================================
   章节标题块 —— 不居中，不三行小字：一行编号 + 一句主标 + 一句副文
   ============================================================ */
.sec-head { margin-bottom: var(--sp-7); }
.kicker {
  display: flex; align-items: baseline; gap: var(--sp-3);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  color: var(--ink-3); text-transform: uppercase;
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
}
.kicker .no { color: var(--seal); font-weight: 600; }
.kicker .en { letter-spacing: .16em; }
h2.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: var(--fs-h2); line-height: 1.3; letter-spacing: .01em;
  max-width: 22em;
}
h2.sec-title em { font-style: normal; color: var(--seal); }
.sec-sub {
  color: var(--ink-2); font-size: var(--fs-small); line-height: 1.75;
  margin-top: var(--sp-3); max-width: 36em;
}

/* ============================================================
   指标 —— 数字带，无卡片底
   ============================================================ */
.kpi-row { display: flex; flex-wrap: wrap; }
.kpi {
  padding: 0 var(--sp-6) 0 0; margin-right: var(--sp-6);
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.kpi .n {
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.kpi .n small { font-size: 18px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.kpi .l { font-size: var(--fs-caption); color: var(--ink-3); letter-spacing: .04em; margin-top: 2px; }
.kpi.hot .n { color: var(--seal); }

/* ============================================================
   卡片 —— 发丝边，无阴影，圆角 4px，hover 不位移
   ============================================================ */
.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--sp-5);
}
.card h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--sp-3); }

/* ============================================================
   365 点阵 —— 全站母题
   ============================================================ */
.dot-wall { display: flex; flex-direction: column; gap: var(--sp-5); }
.habit-row { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.habit-head { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.habit-head .name { font-family: var(--serif); font-weight: 700; font-size: var(--fs-h3); }
.habit-head .cnt { font-size: var(--fs-caption); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.habit-head .pct { margin-left: auto; font-size: var(--fs-small); color: var(--seal-deep); font-variant-numeric: tabular-nums; font-weight: 600; }
/* 365 天点阵：53 周 × 7 天（列=周、行=星期），一年在一屏里读得出来 */
.dots-wrap { display: flex; flex-direction: column; gap: 8px; }
.dots {
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: repeat(7, 11px);
  grid-template-columns: repeat(53, 1fr);
  justify-items: center;
  gap: 4px 2px;
  width: 100%;
}
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  transition: background .25s, border-color .25s;
}

.dot.done { background: var(--seal); border-color: var(--seal); }
/* 漏打卡 = 静态红圈（沿用原「今天」的红圈语义：未落定的空位） */
.dot.missed { background: transparent; border: 2px solid var(--seal-deep); }
/* 今天 = 从初始空位到赭红的呼吸灯：仍在等待打卡 */
.dot.today { position: relative; background: transparent; border: 2px solid var(--seal); }
.dot.today::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  background: var(--seal);
  animation: todayBreath 1.8s ease-in-out infinite;
}
@keyframes todayBreath {
  0%, 100% { opacity: 0; transform: scale(.35); }
  50%      { opacity: 1; transform: scale(1); }
}
.dot.future { border-color: var(--line); }
.dot:hover { background: var(--ink-3); border-color: var(--ink-3); }
.dot.done:hover { background: var(--seal-deep); border-color: var(--seal-deep); }

/* 进入本页时逐灯点亮：间隔由 0.05s 递减到 0.01s（从慢到快），延迟写在 --dl */
.dot-wall.sweeping .dot:not(.future) {
  animation: dotOn .26s var(--ease) var(--dl, 0s) backwards;
}
@keyframes dotOn {
  from { opacity: 0; transform: scale(.25); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dot-wall.sweeping .dot:not(.future) { animation: none; }
  .dot.today::after { animation: none; opacity: 1; transform: none; }
}
.legend {
  display: flex; gap: var(--sp-5); font-size: var(--fs-caption);
  color: var(--ink-3); align-items: center; flex-wrap: wrap;
}
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .it { display: inline-flex; align-items: center; }
.legend .lg-missed { border: 2px solid var(--seal-deep); background: transparent; }
.legend .lg-today { position: relative; border: 2px solid var(--seal); background: transparent; overflow: hidden; }
.legend .lg-today::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--seal); animation: todayBreath 1.8s ease-in-out infinite;
}

/* ============================================================
   图录墙（书 / 影 / 人 / 唱片）
   ============================================================ */
.wall { display: grid; gap: var(--sp-3); }
.wall svg { display: block; width: 100%; height: auto; }
.cell { cursor: pointer; transition: opacity .25s, transform .3s var(--ease); }
.cell:hover { opacity: .82; transform: translateY(-3px); }
.cell.empty { cursor: default; }
.cell.empty:hover { opacity: 1; transform: none; }
.wall-note { font-size: var(--fs-caption); color: var(--ink-3); margin-top: var(--sp-3); }
.wallbox { display: flex; justify-content: flex-start; }
.wallbox svg { max-width: 100%; height: auto; }

/* 悬浮提示卡 */
.tip {
  position: fixed; z-index: 200; pointer-events: none;
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4); max-width: 260px;
  font-size: var(--fs-caption); line-height: 1.65; color: var(--ink-2);
  opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s;
}
.tip.show { opacity: 1; transform: translateY(0); }
.tip .t { font-family: var(--serif); font-weight: 700; font-size: var(--fs-small); color: var(--ink); margin-bottom: 2px; }
.tip .d { color: var(--ink-3); }
.tip .thumbs { display: flex; gap: 5px; margin-top: var(--sp-2); }
.tip .thumbs img, .tip .thumbs svg { width: 56px; height: 40px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }

/* ============================================================
   万分钟 —— 两条进度，纯色，无渐变
   ============================================================ */
.bars { display: flex; flex-direction: column; gap: var(--sp-8); width: 100%; }
.bigbar .head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.bigbar .name { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 700; }
.bigbar .nums { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: var(--fs-small); }
.bigbar .nums b { font-family: var(--serif); font-size: 44px; color: var(--ink); font-weight: 700; margin-right: 4px; }
.bigbar .track {
  margin-top: var(--sp-3); height: 10px; border-radius: 2px;
  background: var(--paper-3); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.bigbar .fill { height: 100%; background: var(--seal); transition: width 1.2s var(--ease-page); }
.bigbar.teal .fill { background: var(--slate); }
.bigbar.teal .nums b { color: var(--slate); }
.bigbar .ticks {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 11px; color: var(--ink-3); margin-top: var(--sp-2); font-variant-numeric: tabular-nums;
}
.bigbar .sub { font-size: var(--fs-caption); color: var(--ink-3); margin-top: var(--sp-3); }
.bigbar .sub b { color: var(--seal-deep); }
.bigbar.teal .sub b { color: var(--slate); }

/* ============================================================
   工具清单 —— 档案式列表，不是卡片网格
   ============================================================ */
.tools { border-top: 1px solid var(--line); }
.tool {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 0 var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.tool:hover { background: rgba(255,255,255,.5); }
.tool .no { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tool .t { font-family: var(--serif); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.tool .ic { width: 15px; height: 15px; color: var(--ink-3); flex: 0 0 auto; }
.tool .d { font-family: var(--sans); font-weight: 400; font-size: var(--fs-caption); color: var(--ink-3); line-height: 1.6; margin-left: var(--sp-4); }
.tool .btn {
  grid-column: 3; grid-row: 1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 5px 14px; border-radius: var(--r);
  border: 1px solid var(--seal); color: var(--seal-deep);
  background: transparent; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.tool .btn:hover { background: var(--seal); color: var(--paper-2); }
.tool .btn.off { border-color: var(--line); color: var(--ink-3); cursor: default; }
.tool .btn.off:hover { background: transparent; color: var(--ink-3); }

/* ============================================================
   计划 —— 编号清单
   ============================================================ */
.plans { border-top: 1px solid var(--line); }
.plan-btn {
  display: flex; align-items: center; gap: var(--sp-5); width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: var(--fs-h3); color: var(--ink);
  transition: background .2s;
}
.plan-btn:hover { background: rgba(255,255,255,.55); }
.plan-btn .no { font-family: var(--mono); font-size: 13px; color: var(--seal); letter-spacing: .08em; }
.plan-btn .t { font-family: var(--serif); font-weight: 700; }
.plan-btn .arrow { margin-left: auto; color: var(--ink-3); font-family: var(--mono); transition: color .2s, transform .2s; }
.plan-btn:hover .arrow { color: var(--seal); transform: translateX(3px); }
.chip {
  font-size: var(--fs-caption); padding: 3px 12px; border-radius: var(--r);
  letter-spacing: .06em; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink-3); background: var(--paper-3);
}
.chip.doing { color: var(--slate); border-color: var(--slate); background: transparent; }
.chip.done { color: var(--paper-2); border-color: var(--seal); background: var(--seal); }

/* ============================================================
   博物馆票根 —— 票形带撕口与打孔
   ============================================================ */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-4); width: 100%; }
.ticket {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6);
  min-height: 84px; cursor: pointer; overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.ticket::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  border-left: 1px dashed var(--line-strong);
}
.ticket::after {
  content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px;
  margin-top: -6px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.ticket:hover { border-color: var(--seal); transform: rotate(-.4deg); }
.ticket .tn { font-family: var(--serif); font-weight: 700; font-size: var(--fs-small); line-height: 1.45; }
.ticket .tc { font-size: var(--fs-caption); color: var(--ink-3); margin-top: 3px; letter-spacing: .05em; }
.ticket.empty { opacity: .55; cursor: default; }
.ticket.empty:hover { transform: none; border-color: var(--line); }
.ticket .stamp {
  position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--seal); color: var(--seal);
  font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transform: rotate(-14deg); opacity: .9;
}
.ticket.empty .stamp { display: none; }

/* ============================================================
   地图
   ============================================================ */
.map-wrap { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: var(--sp-8); align-items: start; }
.map-frame { position: relative; overflow: hidden; touch-action: none; }
.map-frame svg.cnmap { width: 100%; height: auto; display: block; }
.map-frame svg.cninset {
  position: absolute; right: 4px; bottom: 4px; width: 118px; height: auto;
  background: var(--paper); border: 1px solid var(--line-strong); padding: 5px;
}
.map-frame .inset-cap {
  position: absolute; right: 4px; bottom: -20px; width: 118px;
  text-align: center; font-size: 10px; color: var(--ink-3);
  font-family: var(--mono); letter-spacing: .1em;
}
.map-side { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.map-side .lead { font-family: var(--serif); font-size: var(--fs-h3); color: var(--ink); line-height: 1.75; margin-bottom: var(--sp-3); }
.map-side .lead b { color: var(--seal); font-weight: 700; }
.city-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: var(--sp-4); }
.city-count b { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.city-count span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.city-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--sp-4); margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.city-ledger span.blank { grid-column: 1 / -1; border-bottom: 0; padding-top: var(--sp-3); font-family: var(--sans); letter-spacing: 0; }
.city-ledger span {
  font-size: var(--fs-caption); border: 0; border-bottom: 1px solid var(--line);
  padding: 5px 0; color: var(--ink-3); background: transparent; border-radius: 0;
  display: flex; justify-content: space-between; gap: 6px;
}
.city-ledger span.lit { color: var(--seal-deep); cursor: pointer; border-bottom-color: var(--seal); font-weight: 500; }
.city-ledger span.lit i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.city-ledger span.lit:hover { background: var(--seal-tint); }
.city-ledger span.blank { color: var(--line-strong); font-family: var(--mono); letter-spacing: .2em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); margin: var(--sp-5) 0; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
audio { width: 100%; margin: var(--sp-5) 0; }
.qa { margin: var(--sp-4) 0; }
.qa .q { font-weight: 700; color: var(--seal-deep); font-family: var(--serif); }
.qa .a { margin: 6px 0 var(--sp-5); }
.empty-note {
  border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--sp-6);
  color: var(--ink-3); font-size: var(--fs-small); text-align: center; margin: var(--sp-6) 0;
  background: var(--paper-2);
}
.stars { color: var(--seal); letter-spacing: 3px; font-size: 15px; }

/* ============================================================
   详情页
   ============================================================ */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 128px 48px 96px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); color: var(--ink-3); margin-bottom: var(--sp-6); }
.back:hover { color: var(--seal-deep); }
.detail-head { display: flex; gap: var(--sp-7); align-items: flex-start; flex-wrap: wrap; }
.detail-cover { flex: 0 0 168px; }
.detail-cover svg, .detail-cover img { width: 168px; border-radius: var(--r); display: block; }
.detail-title { flex: 1 1 320px; }
.detail-title h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.3; }
.detail-meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--ink-3); }
.detail-body { margin-top: var(--sp-7); font-size: var(--fs-body); line-height: 1.95; color: var(--ink-2); max-width: 36em; }
.detail-body p + p { margin-top: 1em; }
.detail-body h3 { font-family: var(--serif); font-size: var(--fs-h3); margin: 1.6em 0 .5em; color: var(--ink); }
.detail-body blockquote { border-left: 2px solid var(--seal); background: var(--seal-tint); padding: var(--sp-4) var(--sp-5); margin: 1.3em 0; font-family: var(--serif); color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); margin: var(--sp-5) 0; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
audio { width: 100%; margin: var(--sp-5) 0; }
.qa { margin: var(--sp-4) 0; }
.qa .q { font-weight: 700; color: var(--seal-deep); font-family: var(--serif); }
.qa .a { margin: 6px 0 var(--sp-5); }
.empty-note { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--sp-6); color: var(--ink-3); font-size: var(--fs-small); text-align: center; margin: var(--sp-6) 0; background: var(--paper-2); }
.stars { color: var(--seal); letter-spacing: 3px; font-size: 15px; }

/* ============================================================
   自动排版 · 读书笔记 / 访谈（固定版式，内容输入即成稿）
   ============================================================ */
.note-doc { font-family: var(--serif); color: var(--ink); }
.note-doc .note-p {
  font-size: var(--fs-body); line-height: 2.05; margin: 0 0 var(--sp-5);
  text-align: justify; text-justify: inter-ideograph;
}
.note-doc .note-h {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--serif); font-size: var(--fs-h3); font-weight: 700;
  margin: var(--sp-7) 0 var(--sp-4); color: var(--ink);
}
.note-doc .note-h::before { content: ''; width: 20px; height: 2px; background: var(--seal); flex: none; }
.note-doc .note-h span { border-bottom: 1px solid var(--line-strong); padding-bottom: 5px; }
.note-doc .note-quote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--seal); background: var(--seal-tint);
  font-size: var(--fs-h3); line-height: 1.75; color: var(--seal-deep);
}
.note-doc .note-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.note-doc .note-list li {
  position: relative; padding-left: var(--sp-5); margin-bottom: var(--sp-2);
  font-size: var(--fs-small); line-height: 1.9;
}
.note-doc .note-list li::before {
  content: ''; position: absolute; left: 3px; top: .85em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--seal);
}
.note-doc .note-qa {
  display: grid; grid-template-columns: 34px 1fr; gap: var(--sp-4);
  margin: 0 0 var(--sp-5); align-items: start;
}
.note-doc .note-label {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  border: 1px solid var(--seal); color: var(--seal-deep); background: var(--paper-2);
}
.note-doc .note-label.a { background: var(--seal); color: var(--paper-2); }
.note-doc .note-qa p { margin: 5px 0 0; line-height: 1.95; font-size: var(--fs-body); }
/* 访谈：问答更紧、标签更醒目 */
.note-doc.note-interview .note-qa { margin-bottom: var(--sp-6); }
.note-doc.note-interview .note-qa p { font-size: var(--fs-body); }
/* 读书笔记：段落首行缩进，像一页稿纸 */
.note-doc.note-book .note-p { text-indent: 2em; }
/* 播客 shownotes：要点列表更密 */
.note-doc.note-podcast .note-list li { margin-bottom: 4px; }

/* 管理页排版预览窗 */
.note-preview {
  margin-top: var(--sp-3); padding: var(--sp-5);
  border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--paper); max-height: 420px; overflow-y: auto;
}
.note-preview .pv-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: var(--sp-4);
  font-family: var(--sans); font-size: var(--fs-caption); color: var(--ink-3);
  border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2);
}
.note-preview .pv-head b { color: var(--seal-deep); font-weight: 600; }
.note-preview .pv-empty { font-family: var(--sans); font-size: var(--fs-caption); color: var(--ink-3); }

/* ============================================================
   页脚
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: var(--sp-6) 48px; text-align: center; font-size: var(--fs-caption); color: var(--ink-3); }
.footer .en { color: var(--ink-3); }

/* ============================================================
   管理页
   ============================================================ */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 116px 28px 80px; }
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-5) 0; }
.tabs button {
  font-size: var(--fs-small); padding: 7px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
  cursor: pointer; transition: all .2s;
}
.tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.check-big { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.check-big button {
  flex: 1; min-width: 200px; padding: var(--sp-6) var(--sp-5); border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper-2);
  font-family: var(--serif); font-size: var(--fs-h3); font-weight: 700; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.check-big button.done { background: var(--seal); border-color: var(--seal); color: var(--paper-2); }
.check-big button small { display: block; font-family: var(--sans); font-size: var(--fs-caption); font-weight: 400; margin-top: 6px; opacity: .85; }
label.f { display: block; font-size: var(--fs-caption); color: var(--ink-3); margin: var(--sp-3) 0 4px; }
input[type=text], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-small); background: var(--paper-2); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--seal); outline-offset: 1px; border-color: transparent; }
.btn-primary {
  font-size: var(--fs-small); padding: 9px 22px; border-radius: var(--r);
  border: 1px solid var(--seal); background: var(--seal); color: var(--paper-2);
  cursor: pointer; transition: all .2s; letter-spacing: .04em;
}
.btn-primary:hover { background: var(--seal-deep); border-color: var(--seal-deep); }
.btn-ghost {
  font-size: var(--fs-caption); padding: 8px 18px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--ink-2); transition: all .2s;
}
.btn-ghost:hover { border-color: var(--seal); color: var(--seal-deep); }
.slot-list { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0; max-height: 180px; overflow-y: auto; }
.slot-list button {
  font-size: var(--fs-caption); padding: 4px 10px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-3); max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slot-list button.filled { border-color: var(--seal); color: var(--seal-deep); background: var(--seal-tint); }
.slot-list button.on { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.mini-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 4px; margin-top: var(--sp-3); }
.mini-dots .dot { width: 14px; height: 14px; cursor: pointer; }
.gate { max-width: 380px; margin: 20vh auto 0; text-align: center; }
.gate h1 { font-family: var(--serif); font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.gate p { font-size: var(--fs-small); color: var(--ink-3); margin-bottom: var(--sp-5); }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper); font-size: var(--fs-caption); padding: 10px 22px;
  border-radius: var(--r); z-index: 300; transition: transform .3s var(--ease-page); pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; gap: var(--sp-6); }
  .container { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .detail-wrap { padding: 108px 28px 72px; }
}
@media (max-width: 720px) {
  .nav-links a { padding: 5px 5px; }
  .nav-links a::after { display: none; }
  .kpi { padding-right: var(--sp-5); margin-right: var(--sp-5); }
  .tool { grid-template-columns: 1fr auto; }
  .tool .d { grid-column: 1 / -1; }
  .detail-cover { flex-basis: 120px; }
  .detail-cover svg, .detail-cover img { width: 120px; }
}
