/* =========================================================
   穿越求生指南 — 样式表
   纸墨风格 / 浅色主题 / 无外部依赖
   ---------------------------------------------------------
   目录：1 变量 2 基础 3 顶栏 4 目录页 5 详情页
        6 内容块 7 工具 8 响应式 9 打印
   ========================================================= */

/* ---------------- 1. 变量 ---------------- */

:root{
  --paper:      #f5f1e8;
  --paper-2:    #fffdf7;
  --paper-3:    #faf6ec;
  --ink:        #201d19;
  --ink-2:      #56504a;
  --ink-3:      #8a8278;
  --line:       #e2d8c6;
  --line-2:     #efe8db;
  --accent:     #a8342a;   /* 朱砂 */
  --accent-2:   #c0503f;
  --accent-bg:  #f7e6e1;
  --indigo:     #2f4858;   /* 靛 */
  --bamboo:     #4a6b52;   /* 竹青 */
  --gold:       #9a7430;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(70,55,35,.05), 0 10px 28px rgba(70,55,35,.06);
  --shadow-lg:  0 2px 4px rgba(70,55,35,.06), 0 18px 46px rgba(70,55,35,.10);
  --shadow-sm:  0 1px 2px rgba(70,55,35,.06);
  --serif:      "Songti SC","Noto Serif SC","Source Han Serif SC","STSong","SimSun",Georgia,serif;
  --sans:       -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans SC","Hiragino Sans GB",system-ui,sans-serif;
  --mono:       "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --topbar-h:   64px;
  --maxw:       1240px;
}

/* ---------------- 2. 基础 ---------------- */

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:16px;
  line-height:1.8;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(168,52,42,.045), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(47,72,88,.05), transparent 38%),
    repeating-linear-gradient(0deg, rgba(120,100,70,.028) 0 1px, transparent 1px 3px);
  background-attachment:fixed;
}

[hidden]{ display:none !important; }

a{ color:var(--indigo); text-decoration:none; }
a:hover{ color:var(--accent); }

code{
  font-family:var(--mono);
  font-size:.86em;
  padding:.1em .38em;
  border-radius:5px;
  background:rgba(120,100,70,.11);
  color:#4a3c2a;
}

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

/* ---------------- 3. 顶栏 ---------------- */

.topbar{
  position:sticky; top:0; z-index:60;
  background:rgba(245,241,232,.88);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);
  backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:var(--maxw); margin:0 auto;
  height:var(--topbar-h);
  padding:0 26px;
  display:flex; align-items:center; gap:16px;
}
.brand{ display:flex; align-items:center; gap:11px; min-width:0; color:var(--ink); }
.brand:hover{ color:var(--ink); }
.brand-mark{
  width:34px; height:34px; flex:none;
  display:grid; place-items:center;
  font-family:var(--serif); font-size:19px; font-weight:700;
  color:#fff; background:var(--accent);
  border-radius:9px;
  box-shadow:0 2px 6px rgba(168,52,42,.28);
}
.brand-text{ display:flex; flex-direction:column; min-width:0; }
.brand-name{
  font-family:var(--serif); font-size:17px; font-weight:700;
  letter-spacing:.06em; line-height:1.25;
}
.brand-sub{
  font-size:11.5px; color:var(--ink-3); letter-spacing:.14em;
}
.topbar-stats{
  margin-left:auto; display:flex; align-items:center; gap:6px;
  font-size:12px; color:var(--ink-3); flex-wrap:wrap; justify-content:flex-end;
}
.stat{
  display:inline-flex; align-items:baseline; gap:4px;
  padding:4px 10px; border:1px solid var(--line);
  border-radius:99px; background:rgba(255,253,247,.7);
  white-space:nowrap;
}
.stat b{ font-family:var(--serif); font-size:14px; color:var(--accent); }

.progress{ height:2px; background:transparent; }
.progress i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,var(--accent),var(--gold));
  transition:width .12s linear;
}

/* 详情页顶栏 */
.back-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--ink-2); white-space:nowrap;
  padding:6px 12px 6px 9px; border:1px solid var(--line);
  border-radius:99px; background:rgba(255,253,247,.72);
  transition:.16s;
}
.back-link:hover{ border-color:var(--accent-2); color:var(--accent); background:#fff; }
.back-ico{ font-size:13px; }
.crumb{ display:flex; align-items:baseline; gap:9px; min-width:0; }
.crumb-no{
  font-family:var(--mono); font-size:11.5px; color:var(--ink-3);
  letter-spacing:.08em; padding:2px 7px; border:1px solid var(--line);
  border-radius:5px; background:rgba(255,253,247,.6); white-space:nowrap;
}
.crumb-name{
  font-family:var(--serif); font-size:16px; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.switches{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.sw{
  font-size:12.5px; color:var(--ink-2); white-space:nowrap;
  padding:4px 9px; border-radius:7px; transition:.14s;
  max-width:220px; overflow:hidden; text-overflow:ellipsis;
}
.sw:hover{ background:rgba(168,52,42,.08); color:var(--accent); }
.sw.is-empty{ display:none; }

/* ---------------- 4. 目录页 ---------------- */

.hub{
  max-width:var(--maxw); margin:0 auto;
  padding:0 26px 70px;
}

.hub-hero{ padding:66px 0 30px; max-width:840px; }
.hub-kicker{
  font-family:var(--mono); font-size:11px; letter-spacing:.3em;
  color:var(--accent); text-transform:uppercase; margin-bottom:18px;
}
.hub-title{
  font-family:var(--serif); font-weight:700;
  font-size:52px; line-height:1.22; letter-spacing:.01em;
  margin:0 0 18px; color:var(--ink);
}
.hub-lead{
  font-size:15.5px; color:var(--ink-2); line-height:2;
  margin:0 0 24px; max-width:70ch;
}
.hub-lead b{ color:var(--ink); font-weight:600; }

.pill-row{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:30px; }
.pill{
  display:inline-flex; align-items:baseline; gap:5px;
  font-size:12px; color:var(--ink-2);
  padding:4px 11px; border-radius:99px;
  border:1px solid var(--line); background:rgba(255,253,247,.72);
}
.pill b{ color:var(--accent); font-family:var(--serif); font-size:13.5px; }

.searchbox{
  position:relative; display:flex; align-items:center;
  max-width:560px; margin-bottom:16px;
}
.searchbox input{
  width:100%; height:46px;
  font-family:var(--sans); font-size:14.5px; color:var(--ink);
  padding:0 40px 0 40px;
  border:1px solid var(--line); border-radius:12px;
  background:var(--paper-2);
  box-shadow:var(--shadow-sm);
  outline:none; transition:.16s;
}
.searchbox input::placeholder{ color:#a9a096; }
.searchbox input:focus{
  border-color:var(--accent-2); background:#fff;
  box-shadow:0 0 0 3px rgba(168,52,42,.09);
}
.searchbox input::-webkit-search-cancel-button{ display:none; }
.search-ico{
  position:absolute; left:13px; font-size:12px; color:var(--ink-3);
  pointer-events:none; letter-spacing:.05em;
}
.search-clear{
  position:absolute; right:9px; width:26px; height:26px;
  border:none; border-radius:50%; cursor:pointer;
  background:rgba(120,100,70,.1); color:var(--ink-3);
  font-size:15px; line-height:1;
}
.search-clear:hover{ background:rgba(168,52,42,.16); color:var(--accent); }

.chips{ display:flex; flex-wrap:wrap; gap:7px; }
.chip-btn{
  font-family:var(--sans); font-size:12.5px; color:var(--ink-2);
  padding:5px 13px; border-radius:99px; cursor:pointer;
  border:1px solid var(--line); background:rgba(255,253,247,.6);
  transition:.14s;
}
.chip-btn:hover{ border-color:var(--accent-2); color:var(--accent); }
.chip-btn.on{
  background:var(--accent); border-color:var(--accent);
  color:#fff; box-shadow:0 2px 8px rgba(168,52,42,.22);
}
.hint{
  margin-top:12px; font-size:12.5px; color:var(--ink-3);
}

/* 分组 */
.hub-group{ margin-top:46px; }
.group-head{
  display:flex; align-items:center; gap:14px;
  margin-bottom:18px;
}
.group-title{
  font-family:var(--serif); font-size:19px; font-weight:700;
  margin:0; letter-spacing:.04em; white-space:nowrap;
  position:relative; padding-left:14px;
}
.group-title::before{
  content:""; position:absolute; left:0; top:.32em;
  width:3px; height:1.05em; border-radius:2px; background:var(--accent);
}
.group-count{
  font-family:var(--mono); font-size:11px; color:var(--ink-3); white-space:nowrap;
}
.group-rule{ flex:1; height:1px; background:var(--line); }

.card-grid{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(276px,1fr));
}

.card{
  position:relative; display:flex; flex-direction:column;
  padding:20px 20px 16px;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::after{
  content:""; position:absolute; left:0; top:0; bottom:0; width:2.5px;
  background:var(--accent); transform:scaleY(0); transform-origin:top;
  transition:transform .22s ease;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
  border-color:#dccdb2;
  color:var(--ink);
}
.card:hover::after{ transform:scaleY(1); }
.card-modern::after{ background:var(--indigo); }

.card-no{
  position:absolute; right:14px; top:8px;
  font-family:var(--serif); font-size:44px; font-weight:700;
  color:rgba(120,100,70,.10); line-height:1;
  pointer-events:none;
}
.card-tag{
  align-self:flex-start;
  font-size:10.5px; letter-spacing:.1em;
  color:var(--accent); background:var(--accent-bg);
  border:1px solid rgba(168,52,42,.16);
  padding:2px 8px; border-radius:4px; margin-bottom:10px;
}
.card-modern .card-tag{ color:var(--indigo); background:#e9eef1; border-color:rgba(47,72,88,.16); }

.card-name{
  font-family:var(--serif); font-size:25px; font-weight:700;
  margin:0 0 2px; line-height:1.3; letter-spacing:.02em;
  padding-right:40px;
}
.card-years{
  font-family:var(--mono); font-size:11.5px; color:var(--ink-3);
  margin:0 0 9px;
}
.card-intro{
  font-size:13px; color:var(--ink-2); line-height:1.85;
  margin:0 0 14px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-foot{
  margin-top:auto; padding-top:11px; border-top:1px solid var(--line-2);
  display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap;
  font-size:11.5px; color:var(--ink-3);
}
.card-diff{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; order:1; }
.card-count{ font-family:var(--mono); font-size:11px; white-space:nowrap; flex:1 1 100%; order:0; }
.card-go{
  margin-left:auto; color:var(--accent); font-size:12px;
  transition:transform .16s; order:2;
}
.card:hover .card-go{ transform:translateX(3px); }

.dots{ display:inline-flex; gap:2px; margin-left:auto; align-self:center; }
.dots i{
  width:5px; height:5px; border-radius:50%;
  background:var(--line); display:block;
}
.dots i.on{ background:var(--accent-2); opacity:.8; }
.card-diff .dots, .pill .dots{ margin-left:0; }

/* ---------------- 5. 详情页 ---------------- */

.era-layout{
  max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:232px minmax(0,1fr);
  gap:44px; padding:0 26px 80px;
  align-items:start;
}

/* 本页目录 */
.toc{
  position:sticky; top:calc(var(--topbar-h) + 26px);
  max-height:calc(100vh - var(--topbar-h) - 46px);
  overflow-y:auto; padding:22px 6px 20px 0;
  font-size:12.5px;
}
.toc::-webkit-scrollbar{ width:6px; }
.toc::-webkit-scrollbar-thumb{ background:var(--line); border-radius:6px; }
.toc-head{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.24em;
  color:var(--ink-3); text-transform:uppercase;
  padding-bottom:9px; margin-bottom:9px;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; background:var(--paper);
}
.toc-sec{
  display:flex; align-items:baseline; gap:8px;
  padding:6px 8px 6px 8px; border-radius:6px;
  font-family:var(--serif); font-size:14px; font-weight:600;
  color:var(--ink); line-height:1.5;
  border-left:2px solid transparent;
  transition:.14s;
}
.toc-sec:hover{ background:rgba(255,253,247,.9); }
.toc-sec.active{ color:var(--accent); border-left-color:var(--accent); background:rgba(168,52,42,.05); }
.toc-no{
  font-family:var(--mono); font-size:10.5px; color:var(--ink-3);
  flex:none; width:12px;
}
.toc-sec.active .toc-no{ color:var(--accent); }
.toc-sub{
  display:flex; flex-direction:column; gap:1px;
  margin:0 0 8px 20px; padding-left:9px;
  border-left:1px dashed var(--line);
}
.toc-item{
  font-size:12px; color:var(--ink-3); line-height:1.65;
  padding:2px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  transition:.12s;
}
.toc-item:hover{ color:var(--accent); }
.toc-item.active{ color:var(--accent); font-weight:600; }

/* 正文 */
.era-main{ min-width:0; padding-top:34px; }

/* 入境卡 */
.arrive{
  position:relative;
  padding:34px 38px 30px;
  background:
    radial-gradient(circle at 96% 6%, rgba(168,52,42,.05), transparent 46%),
    var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.arrive::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--gold) 55%,transparent);
}
.arrive-modern::before{ background:linear-gradient(90deg,var(--indigo),#6b8f9c 55%,transparent); }

.arrive-kicker{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em;
  color:var(--ink-3); margin-bottom:16px;
}
.arrive-no{ color:var(--accent); }
.arrive-modern .arrive-no{ color:var(--indigo); }
.arrive-of{ color:var(--ink-3); }
.arrive-group::before{ content:"·"; margin-right:9px; color:var(--line); }

.arrive-title{
  font-family:var(--serif); font-weight:700;
  font-size:44px; line-height:1.32; letter-spacing:.02em;
  margin:0 0 10px; color:var(--ink);
}
.arrive-title b{
  color:var(--accent); font-weight:700;
  position:relative; padding:0 .06em;
}
.arrive-modern .arrive-title b{ color:var(--indigo); }
.arrive-missing .arrive-title{ color:var(--ink-2); }

.arrive-years{
  font-family:var(--mono); font-size:12.5px; color:var(--ink-3);
  letter-spacing:.04em; margin:0 0 16px;
}
.arrive-greet{
  position:relative;
  font-family:var(--serif); font-size:16px; color:var(--ink-2);
  line-height:2; margin:0 0 18px; padding-left:16px;
  border-left:2px solid rgba(168,52,42,.22);
  max-width:62ch;
}
.arrive-modern .arrive-greet{ border-left-color:rgba(47,72,88,.22); }
.arrive-intro{
  padding-top:16px; border-top:1px dashed var(--line);
  max-width:66ch;
}
.arrive-intro p{
  margin:0 0 10px; font-size:14.5px; color:var(--ink-2); line-height:2;
}
.arrive-intro p:last-child{ margin-bottom:0; }
.arrive-stats{ display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }

.seal{
  position:absolute; right:26px; top:60px;
  width:62px; height:62px; border-radius:50%;
  border:2px solid rgba(168,52,42,.32);
  box-shadow:inset 0 0 0 3px rgba(168,52,42,.07);
  display:grid; grid-template-columns:1fr 1fr; place-items:center;
  transform:rotate(-11deg); opacity:.85; pointer-events:none;
}
.seal i{
  font-family:var(--serif); font-style:normal; font-size:15px; font-weight:700;
  color:rgba(168,52,42,.55); line-height:1;
}
.arrive-modern .seal{ border-color:rgba(47,72,88,.3); }
.arrive-modern .seal i{ color:rgba(47,72,88,.5); }

/* 分章 */
.sec{ margin-top:52px; }
.sec-head{
  display:flex; align-items:center; gap:14px;
  padding-bottom:12px; margin-bottom:18px;
  border-bottom:1px solid var(--line);
  position:relative;
}
.sec-head::after{
  content:""; position:absolute; left:0; bottom:-1px; width:52px; height:2px;
  background:var(--accent);
}
.sec-no{
  flex:none; width:34px; height:34px; border-radius:8px;
  display:grid; place-items:center;
  font-family:var(--serif); font-size:16px; font-weight:700;
  color:var(--accent); background:var(--accent-bg);
  border:1px solid rgba(168,52,42,.14);
}
.sec-headtext{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; min-width:0; }
.sec-title{
  font-family:var(--serif); font-size:23px; font-weight:700;
  margin:0; letter-spacing:.03em; line-height:1.4;
}
.sec-en{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.2em;
  color:var(--ink-3); text-transform:uppercase;
}
.sec-desc{
  margin:-6px 0 20px; font-size:13px; color:var(--ink-3);
  line-height:1.9; max-width:66ch;
}

/* 上一站 / 下一站 */
.era-foot{
  margin-top:64px; padding-top:26px;
  border-top:1px solid var(--line);
  display:grid; grid-template-columns:1fr auto 1fr; gap:12px;
  align-items:stretch;
}
.next-card{
  display:flex; flex-direction:column; gap:3px;
  padding:14px 18px; border-radius:11px;
  background:var(--paper-2); border:1px solid var(--line);
  color:var(--ink); box-shadow:var(--shadow-sm);
  transition:.16s;
}
.next-card:hover{
  border-color:var(--accent-2); color:var(--ink);
  transform:translateY(-2px); box-shadow:var(--shadow);
}
.next-card:nth-child(3){ text-align:right; align-items:flex-end; }
.next-card.is-empty{ visibility:hidden; }
.next-dir{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; color:var(--ink-3);
}
.next-name{
  font-family:var(--serif); font-size:17px; font-weight:700;
}
.next-years{ font-size:11.5px; color:var(--ink-3); }
.next-home{
  align-self:center; font-size:12.5px; color:var(--ink-3);
  padding:8px 16px; border-radius:99px; border:1px solid var(--line);
  background:rgba(255,253,247,.7); white-space:nowrap;
}
.next-home:hover{ color:var(--accent); border-color:var(--accent-2); }

/* 兜底列表 */
.miss-list{ display:grid; gap:1px; }
.miss-item{
  display:flex; align-items:baseline; gap:14px;
  padding:11px 14px; border-radius:8px;
  border:1px solid transparent; color:var(--ink);
  transition:.14s;
}
.miss-item:hover{ background:var(--paper-2); border-color:var(--line); color:var(--accent); }
.miss-no{ font-family:var(--mono); font-size:11px; color:var(--ink-3); }
.miss-name{ font-family:var(--serif); font-size:15.5px; font-weight:600; }
.miss-years{ margin-left:auto; font-size:11.5px; color:var(--ink-3); }

/* ---------------- 6. 内容块 ---------------- */

.blocks{ display:flex; flex-direction:column; gap:18px; }

.blk{
  position:relative;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:22px 24px;
  box-shadow:var(--shadow-sm);
  scroll-margin-top:calc(var(--topbar-h) + 20px);
}
.blk-recipe{ background:linear-gradient(180deg,#fffdf8,#fdf9ef); border-color:#e6d9c1; }
.blk-callout{ padding:18px 22px; box-shadow:none; }

.blk-head{
  display:flex; align-items:flex-start; gap:12px;
  margin-bottom:12px;
}
.blk-title{
  font-family:var(--serif); font-size:18px; font-weight:700;
  margin:0; line-height:1.55; color:var(--ink); flex:1;
  position:relative; padding-left:14px;
}
.blk-title::before{
  content:""; position:absolute; left:0; top:.44em;
  width:5px; height:5px; border-radius:50%; background:var(--accent-2);
}
.blk-callout .blk-title{ padding-left:0; }
.blk-callout .blk-title::before{ display:none; }

.copy{
  flex:none; font-family:var(--sans); font-size:11px; color:var(--ink-3);
  padding:3px 10px; border-radius:99px; cursor:pointer;
  border:1px solid var(--line); background:var(--paper-3);
  transition:.14s; white-space:nowrap; margin-top:3px;
}
.copy:hover{ border-color:var(--accent-2); color:var(--accent); background:#fff; }
.copy.done{ background:var(--bamboo); border-color:var(--bamboo); color:#fff; }

.blk p{ margin:0 0 11px; color:var(--ink-2); line-height:1.95; }
.blk p:last-child{ margin-bottom:0; }
.blk strong{ color:var(--ink); font-weight:600; }

.blk-list, .notes ul, .recipe ul{ margin:0; padding:0; list-style:none; }
.blk-list li, .notes li, .recipe ul li{
  position:relative; padding-left:15px; margin-bottom:8px;
  color:var(--ink-2); line-height:1.9; font-size:14.5px;
}
.blk-list li::before, .notes li::before, .recipe ul li::before{
  content:""; position:absolute; left:2px; top:.78em;
  width:5px; height:5px; border-radius:50%; background:var(--accent-2); opacity:.55;
}
.blk-list li:last-child{ margin-bottom:0; }
.blk-list li b{ color:var(--ink); font-weight:600; }

.blk-steps{ counter-reset:st; margin:0; padding:0; list-style:none; }
.blk-steps li{
  counter-increment:st; position:relative;
  padding-left:30px; margin-bottom:10px;
  color:var(--ink-2); line-height:1.9; font-size:14.5px;
}
.blk-steps li::before{
  content:counter(st);
  position:absolute; left:0; top:.3em;
  width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center;
  font-family:var(--mono); font-size:10.5px;
  color:var(--accent); background:var(--accent-bg);
  border:1px solid rgba(168,52,42,.14);
}
.blk-steps li:last-child{ margin-bottom:0; }

.recipe-meta{ display:flex; flex-wrap:wrap; gap:7px; margin:0 0 16px; }
.recipe-meta span{
  font-size:11.5px; color:var(--ink-2);
  background:rgba(154,116,48,.08);
  border:1px solid rgba(154,116,48,.2);
  border-radius:6px; padding:3px 9px;
}
.recipe-meta span b{ color:var(--gold); font-weight:600; }

.recipe-cols{
  display:grid; grid-template-columns:minmax(160px,.8fr) minmax(0,1.6fr);
  gap:22px;
}
.recipe h4, .notes h4{
  font-size:11px; letter-spacing:.22em; color:var(--ink-3);
  font-weight:600; margin:0 0 9px;
  padding-bottom:6px; border-bottom:1px solid var(--line-2);
}
.recipe ol{ margin:0; padding-left:0; list-style:none; counter-reset:rs; }
.recipe ol li{
  counter-increment:rs; position:relative;
  padding-left:24px; margin-bottom:9px; color:var(--ink-2); line-height:1.85; font-size:14.5px;
}
.recipe ol li::before{
  content:counter(rs); position:absolute; left:0; top:0;
  font-family:var(--mono); font-size:11px; color:var(--gold); line-height:1.9;
}
.notes{ margin-top:16px; padding-top:14px; border-top:1px dashed var(--line); }
.notes li::before{ background:var(--gold); }

/* 表格 */
.tbl-wrap{ overflow-x:auto; margin:0 -4px; }
.blk table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:420px; }
.blk th{
  text-align:left; font-weight:600; color:var(--ink);
  font-size:12px; letter-spacing:.06em;
  padding:8px 12px; border-bottom:1px solid var(--line);
  background:rgba(226,216,198,.22); white-space:nowrap;
}
.blk td{
  padding:9px 12px; border-bottom:1px solid var(--line-2);
  color:var(--ink-2); vertical-align:top; line-height:1.75;
}
.blk tr:last-child td{ border-bottom:none; }
.blk tbody tr:hover td{ background:rgba(154,116,48,.045); }

/* 提示框 */
.callout{
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  border-left:3px solid var(--ink-3);
  background:var(--paper-3);
  padding:16px 20px;
}
.callout-title{
  font-family:var(--serif); font-size:15.5px; font-weight:700;
  margin:0 0 7px; color:var(--ink);
  display:flex; align-items:center; gap:8px;
}
.callout-title .mark{
  font-size:10px; letter-spacing:.1em; font-weight:600;
  padding:1px 6px; border-radius:4px;
  background:currentColor; color:#fff;
}
.callout p{ margin:0; font-size:14px; line-height:1.9; }
.callout p + p{ margin-top:8px; }

.callout.tone-danger{ border-left-color:var(--accent); background:#fcf0ed; }
.callout.tone-danger .mark{ background:var(--accent); color:#fff; }
.callout.tone-warn{ border-left-color:var(--gold); background:#fbf5e8; }
.callout.tone-warn .mark{ background:var(--gold); color:#fff; }
.callout.tone-info{ border-left-color:var(--indigo); background:#eef2f4; }
.callout.tone-info .mark{ background:var(--indigo); color:#fff; }
.callout.tone-good{ border-left-color:var(--bamboo); background:#eff4ef; }
.callout.tone-good .mark{ background:var(--bamboo); color:#fff; }

/* 清单 */
.checklist{ display:flex; flex-direction:column; gap:2px; }
.check-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:7px 8px; border-radius:7px; cursor:pointer;
  transition:background .14s;
}
.check-item:hover{ background:rgba(154,116,48,.05); }
.check-item input{
  appearance:none; -webkit-appearance:none;
  width:15px; height:15px; flex:none; margin-top:.42em;
  border:1.5px solid #c9bda7; border-radius:4px;
  background:#fff; cursor:pointer; position:relative;
}
.check-item input:checked{ background:var(--bamboo); border-color:var(--bamboo); }
.check-item input:checked::after{
  content:""; position:absolute; left:4.5px; top:1px;
  width:4px; height:8px;
  border:solid #fff; border-width:0 1.6px 1.6px 0;
  transform:rotate(42deg);
}
.check-item span{ font-size:14px; color:var(--ink-2); line-height:1.8; }
.check-item input:checked + span{ color:var(--ink-3); text-decoration:line-through; text-decoration-color:rgba(138,130,120,.5); }

/* 时间线 */
.timeline{ position:relative; margin:0; padding:0 0 0 20px; list-style:none; }
.timeline::before{
  content:""; position:absolute; left:4px; top:6px; bottom:6px;
  width:1px; background:var(--line);
}
.timeline li{ position:relative; padding:0 0 16px 0; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{
  content:""; position:absolute; left:-19px; top:.62em;
  width:7px; height:7px; border-radius:50%;
  background:var(--paper-2); border:1.5px solid var(--accent-2);
}
.timeline time{
  display:block; font-family:var(--mono); font-size:11.5px;
  color:var(--accent); letter-spacing:.02em; margin-bottom:2px;
}
.timeline span{ font-size:14px; color:var(--ink-2); line-height:1.8; }

/* ---------------- 7. 工具 ---------------- */

.empty{
  text-align:center; padding:70px 20px; color:var(--ink-3);
  border:1px dashed var(--line); border-radius:var(--radius);
  margin-top:30px;
}
.empty-mark{
  font-family:var(--serif); font-size:40px; color:var(--line);
  line-height:1; margin-bottom:10px;
}
.btn-ghost{
  margin-top:14px; padding:7px 16px; font-size:13px;
  background:var(--paper-2); border:1px solid var(--line);
  border-radius:8px; color:var(--ink-2); cursor:pointer;
}
.btn-ghost:hover{ border-color:var(--accent-2); color:var(--accent); }

.foot{
  margin-top:56px; padding-top:24px;
  border-top:1px solid var(--line);
  font-size:12px; color:var(--ink-3); line-height:1.9; max-width:70ch;
}
.foot p{ margin:0 0 6px; }
.foot b{ color:var(--ink-2); }

.to-top{
  position:fixed; right:24px; bottom:26px; z-index:55;
  width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line); background:var(--paper-2);
  color:var(--ink-2); font-size:16px; cursor:pointer;
  box-shadow:var(--shadow); transition:.16s;
}
.to-top:hover{ color:var(--accent); border-color:var(--accent-2); transform:translateY(-2px); }

.toast{
  position:fixed; left:50%; bottom:30px; transform:translate(-50%,20px);
  background:rgba(32,29,25,.93); color:#fff;
  font-size:13px; padding:9px 18px; border-radius:99px;
  opacity:0; pointer-events:none; transition:.22s; z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.toast.show{ opacity:1; transform:translate(-50%,0); }

/* ---------------- 8. 响应式 ---------------- */

@media (max-width:1180px){
  .hub-title{ font-size:44px; }
  .arrive-title{ font-size:38px; }
  .recipe-cols{ grid-template-columns:1fr; gap:16px; }
  .era-layout{ gap:30px; grid-template-columns:206px minmax(0,1fr); }
}

@media (max-width:960px){
  .era-layout{
    grid-template-columns:1fr; gap:0; padding:0 18px 70px;
  }
  /* 侧栏目录在窄屏变成一条吸顶的横向章节条 */
  .toc{
    position:sticky; top:var(--topbar-h); z-index:30;
    max-height:none; overflow:visible;
    margin:0 -18px; padding:0;
    background:rgba(245,241,232,.94);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .toc-head{ display:none; }
  .toc-body{
    display:flex; gap:6px; align-items:center;
    overflow-x:auto; padding:9px 18px;
    scrollbar-width:none;
  }
  .toc-body::-webkit-scrollbar{ display:none; }
  .toc-sec{
    flex:none; padding:4px 11px; border-radius:99px;
    border:1px solid var(--line); background:var(--paper-2);
    font-size:12.5px; font-weight:500; font-family:var(--sans);
    white-space:nowrap;
  }
  .toc-sec.active{ background:var(--accent); color:#fff; border-color:var(--accent); }
  .toc-sec.active .toc-no{ color:rgba(255,255,255,.75); }
  .toc-sub{ display:none; }

  .era-main{ padding-top:26px; }
  .hub-hero{ padding:44px 0 24px; }
  .hub-title{ font-size:38px; }
  .br-desk{ display:none; }
  .card-grid{ grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
  .sec{ margin-top:42px; }
  .era-foot{ grid-template-columns:1fr 1fr; }
  .next-home{ grid-column:1 / -1; order:3; justify-self:center; margin-top:6px; }
}

@media (max-width:700px){
  .topbar-inner{ padding:0 15px; gap:10px; }
  .brand-sub{ display:none; }
  .topbar-stats{ display:none; }
  .crumb-no{ display:none; }
  .switches{ display:none; }
  .hub{ padding:0 16px 60px; }
  .hub-title{ font-size:31px; }
  .hub-lead{ font-size:14.5px; }
  .arrive{ padding:26px 20px 24px; }
  .arrive-title{ font-size:29px; }
  .arrive-greet{ font-size:15px; }
  .seal{ display:none; }
  .sec-title{ font-size:19.5px; }
  .sec-no{ width:29px; height:29px; font-size:14.5px; }
  .blk{ padding:18px 16px; }
  .blk-title{ font-size:16.5px; }
  .card-name{ font-size:22px; }
  .card-grid{ grid-template-columns:1fr; }
  .era-foot{ grid-template-columns:1fr; }
  .next-card:nth-child(3){ text-align:left; align-items:flex-start; }
  .foot{ font-size:11.5px; }
}

@media (max-width:420px){
  body{ font-size:15px; }
  .hub-title{ font-size:27px; }
  .arrive-title{ font-size:25px; }
  .card-no{ font-size:36px; }
}

/* ---------------- 9. 打印 ---------------- */

@media print{
  .topbar,.toc,.to-top,.toast,.copy,.era-foot,.searchbox,.chips,.hint{ display:none !important; }
  .era-layout{ display:block; padding:0; }
  .hub{ padding:0; }
  body{ background:#fff; }
  .arrive,.blk,.card{ box-shadow:none; break-inside:avoid; }
  .sec{ break-before:auto; }
}

/* ---------------- 10. 人间三卷 · 回总览入口 ---------------- */

.hub-home{ flex:none; font-size:12.5px; }

@media (max-width:700px){
  .hub-home{ padding:6px 10px; font-size:12px; }
}
