/* ============================================================
   环游中国 · 攻略展厅
   浅暖色 / 纸张质感 / 博物馆标签式排版
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Song Serif";
  src: url("/fonts/noto-serif-sc-chinese-simplified-400-normal.woff2") format("woff2"),
       url("/fonts/noto-serif-sc-chinese-simplified-400-normal.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF, U+3000-303F;
}
@font-face {
  font-family: "Song Serif";
  src: url("/fonts/noto-serif-sc-chinese-simplified-700-normal.woff2") format("woff2"),
       url("/fonts/noto-serif-sc-chinese-simplified-700-normal.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF, U+3000-303F;
}
@font-face {
  font-family: "Song Serif";
  src: url("/fonts/noto-serif-sc-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Song Serif";
  src: url("/fonts/noto-serif-sc-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20A0-20CF;
}

:root {
  /* 纸 */
  --paper:       #faf5ec;
  --paper-2:     #f4ebdd;
  --paper-3:     #eee1ce;
  --card:        #fffdf8;
  /* 墨 */
  --ink:         #2b2620;
  --ink-2:       #4d453a;
  --ink-3:       #7d7263;
  --ink-4:       #a99c88;
  /* 彩 */
  --clay:        #b3672f;
  --clay-deep:   #8f4d20;
  --clay-soft:   #f0dcc9;
  --gold:        #c19a5b;
  --gold-soft:   #ecdcbf;
  --sage:        #7c8b76;
  --line:        rgba(86, 66, 42, 0.14);
  --line-strong: rgba(86, 66, 42, 0.26);

  --serif: "Song Serif", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(80, 56, 28, 0.05);
  --shadow-md: 0 14px 34px -14px rgba(80, 56, 28, 0.24), 0 2px 6px rgba(80, 56, 28, 0.05);
  --shadow-lg: 0 40px 80px -34px rgba(63, 42, 18, 0.36), 0 6px 20px rgba(63, 42, 18, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 620px at 82% -8%, #f6e6ce 0%, rgba(246, 230, 206, 0) 62%),
    radial-gradient(900px 520px at 0% 12%, #f8efdf 0%, rgba(248, 239, 223, 0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张颗粒 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

::selection { background: var(--clay-soft); color: var(--clay-deep); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--paper-3) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #d8c8ae; border-radius: 20px; border: 2px solid var(--paper); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶部进度 ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  z-index: 120; transition: width 0.1s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: calc(16px + env(safe-area-inset-top)) max(clamp(18px, 4vw, 54px), env(safe-area-inset-right)) 16px max(clamp(18px, 4vw, 54px), env(safe-area-inset-left));
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(250, 245, 236, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-top: 11px; padding-bottom: 11px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  color: var(--clay-deep); background: linear-gradient(145deg, #fffdf7, #f2e5d2);
  box-shadow: inset 0 1px 0 #fff;
  letter-spacing: -1px;
}
.brand-text { line-height: 1.18; }
.brand-text b {
  display: block; font-family: var(--serif); font-size: 16.5px;
  letter-spacing: 0.16em; font-weight: 700;
}
.brand-text span {
  display: block; font-size: 8.5px; letter-spacing: 0.3em;
  color: var(--ink-4); text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 13.5px; letter-spacing: 0.08em; color: var(--ink-2);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay); transition: width 0.32s var(--ease);
}
.nav-links a:hover { color: var(--clay-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 253, 247, 0.7);
  font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: #fdf8ef; border-color: var(--ink); transform: translateY(-1px); }
.nav-cta i { font-style: normal; font-size: 11px; opacity: 0.6; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(132px + env(safe-area-inset-top)) clamp(18px, 4vw, 54px) 0;
  overflow: hidden;
}
.hero-grid {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 60px);
  align-items: start;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 30px;
}
.hero-eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--line-strong); }
.hero-eyebrow em { font-style: normal; color: var(--clay); }

.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(52px, 11.4vw, 148px); line-height: 0.92;
  letter-spacing: 0.06em; color: var(--ink);
}
.hero h1 .l2 {
  display: block; margin-top: 0.06em;
  font-size: 0.4em; letter-spacing: 0.42em; color: var(--ink-2);
  font-weight: 400; padding-left: 0.06em;
}
.hero h1 .dot { color: var(--clay); }

.hero-lede {
  max-width: 40ch; margin: 30px 0 0;
  font-family: var(--serif); font-size: clamp(15px, 1.35vw, 18px);
  line-height: 2.06; color: var(--ink-2); letter-spacing: 0.03em;
}
.hero-lede b { color: var(--clay-deep); font-weight: 700; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px; max-width: 620px;
}
.hero-meta .cell {
  padding-right: clamp(20px, 3.4vw, 46px); margin-right: clamp(20px, 3.4vw, 46px);
  border-right: 1px solid var(--line);
}
.hero-meta .cell:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta .k {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px;
}
.hero-meta .v { font-family: var(--serif); font-size: 19px; letter-spacing: 0.04em; color: var(--ink); }
.hero-meta .v small { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; margin-left: 3px; }

/* 右侧印章 */
.hero-seal { position: relative; width: clamp(150px, 20vw, 262px); aspect-ratio: 1; flex: none; }
.seal-ring { width: 100%; height: 100%; animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core {
  position: absolute; inset: 21%;
  border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 34% 28%, #fffdf8, #f3e7d4);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.seal-core b {
  font-family: var(--serif); font-size: clamp(15px, 1.75vw, 22px);
  letter-spacing: 0.1em; color: var(--clay-deep); line-height: 1.3;
  font-weight: 700; white-space: nowrap;
}
.seal-core i {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: 7.5px; letter-spacing: 0.12em; color: var(--ink-4);
  margin-top: 5px; white-space: nowrap;
}

/* 首屏底部跑马灯 */
.hero-foot {
  margin-top: auto; width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto;
  border-top: 1px solid var(--line); padding: 14px 0;
  display: flex; align-items: center; gap: 20px;
}
.hero-foot .scroll-cue {
  flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.26em;
  color: var(--ink-4); display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.hero-foot .scroll-cue span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: slide 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.26em;
  color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 34px;
}
.marquee-track span::after { content: "✦"; font-size: 8px; color: var(--gold); }

/* ---------- 通用容器 ---------- */
.shell { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 54px); }
section.block { padding-top: clamp(64px, 9vw, 116px); scroll-margin-top: 64px; }
#collection, #rooms, #about { scroll-margin-top: 70px; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(26px, 3.6vw, 46px);
}
.sec-head .lead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-num {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--clay); padding-bottom: 6px;
}
.sec-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(25px, 3.3vw, 40px); letter-spacing: 0.16em; line-height: 1.25;
}
.sec-head h2 small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 9.5px; letter-spacing: 0.32em; color: var(--ink-4);
  text-transform: uppercase; margin-top: 9px;
}
.sec-head .aside {
  font-size: 12.5px; color: var(--ink-3); text-align: right;
  max-width: 34ch; line-height: 1.9; flex: none;
}

/* 出场动画 */
.rise { opacity: 0; transform: translateY(22px); }
.rise.in { opacity: 1; transform: none; transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

/* ---------- 展厅分类 ---------- */
.rooms {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
}
.room {
  position: relative; overflow: hidden; text-align: left;
  padding: 22px 20px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: linear-gradient(170deg, rgba(255, 253, 247, 0.9), rgba(248, 240, 227, 0.6));
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease), border-color 0.42s, background 0.42s;
  min-height: 158px; display: flex; flex-direction: column;
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.room.empty { opacity: .56; }
.room.empty:hover { opacity: 1; }
.room.empty .count { color: var(--ink-4); }
.room .glyph {
  position: absolute; right: -4px; bottom: -22px;
  font-family: var(--serif); font-size: 96px; line-height: 1;
  color: rgba(138, 106, 63, 0.09); transition: color 0.42s, transform 0.6s var(--ease);
  pointer-events: none;
}
.room:hover .glyph { transform: translateY(-4px) rotate(-4deg); color: rgba(179, 103, 47, 0.16); }
.room .idx { font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; color: var(--ink-4); }
.room h3 {
  margin: 10px 0 3px; font-family: var(--serif); font-size: 19px;
  letter-spacing: 0.13em; font-weight: 700; position: relative;
}
.room .en {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.22em;
  color: var(--ink-4); text-transform: uppercase;
}
.room .desc { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.72; position: relative; }
.room .count {
  margin-top: auto; padding-top: 14px; font-family: var(--serif);
  font-size: 12px; color: var(--clay); letter-spacing: 0.1em; position: relative;
}
.room .count b { font-size: 21px; font-weight: 700; margin-right: 3px; }
.room.active {
  background: linear-gradient(165deg, #38302a, #241f1a);
  border-color: #241f1a; color: #fbf3e6; box-shadow: var(--shadow-md);
}
.room.active .idx, .room.active .en { color: rgba(251, 243, 230, 0.5); }
.room.active .desc { color: rgba(251, 243, 230, 0.66); }
.room.active .count { color: var(--gold-soft); }
.room.active .glyph { color: rgba(236, 220, 191, 0.11); }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 0 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 58px; z-index: 40;
  background: linear-gradient(180deg, rgba(250, 245, 236, 0.96) 62%, rgba(250, 245, 236, 0.82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-2);
  transition: all 0.28s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); background: rgba(255, 253, 247, 0.9); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fbf3e6; }
.chip .n { font-family: var(--mono); font-size: 9.5px; opacity: 0.55; margin-left: 5px; }

.tool-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  background: rgba(255, 253, 247, 0.66); transition: all 0.3s var(--ease);
}
.search:focus-within { border-color: var(--clay); background: #fffdf8; box-shadow: 0 0 0 3px rgba(179, 103, 47, 0.09); }
.search input {
  border: 0; background: none; outline: none; font: inherit;
  font-size: 12.5px; width: 148px; color: var(--ink); letter-spacing: 0.03em;
}
.search input::placeholder { color: var(--ink-4); }
.search svg { flex: none; opacity: 0.45; }
.search kbd {
  font-family: var(--mono); font-size: 9px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; background: rgba(255,255,255,.6);
}
.sel {
  appearance: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 30px 7px 13px; font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 253, 247, 0.66) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237d7263' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer; letter-spacing: 0.04em; outline: none;
}
.sel:focus { border-color: var(--clay); }

/* ---------- 展品网格 ---------- */
.grid {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-top: clamp(22px, 3vw, 36px);
}
/* 展品很少时不要拉成满屏巨图 */
.grid > .card:only-child { max-width: 480px; justify-self: center; }
.grid > .card:nth-last-child(2):first-child,
.grid > .card:nth-last-child(3):first-child { max-width: 520px; }

.card {
  --px: 50%; --py: 50%;
  display: flex; flex-direction: column; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  will-change: transform;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(179, 103, 47, 0.32); }
.card:active { transform: translateY(-2px); }

.card-media { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--paper-3); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.7s;
  filter: saturate(0.92) contrast(1.02);
}
.card:hover .card-media img { transform: scale(1.055); filter: saturate(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px circle at var(--px) var(--py), rgba(255, 246, 228, 0.2), transparent 62%),
    linear-gradient(to top, rgba(43, 30, 16, 0.62) 0%, rgba(43, 30, 16, 0.14) 34%, transparent 62%);
  opacity: 1; transition: opacity 0.5s;
}
.card-no {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: #fffaf0; background: rgba(38, 30, 20, 0.42);
  border: 1px solid rgba(255, 250, 240, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 9px; border-radius: 999px;
}
.card-days {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: 0.1em;
  color: #fffaf0; background: rgba(179, 103, 47, 0.9);
  padding: 4px 10px; border-radius: 999px;
}
.card-cat {
  position: absolute; left: 15px; bottom: 13px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.2em; color: #fdf5e7;
  display: flex; align-items: center; gap: 7px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.card-cat::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.7; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(17px, 1.55vw, 20.5px); line-height: 1.5;
  letter-spacing: 0.03em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sum {
  margin: 9px 0 0; font-size: 12.6px; line-height: 1.82; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: auto; padding-top: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3);
  border-top: 1px dashed var(--line); margin-top: 16px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.card-meta b { color: var(--clay-deep); font-weight: 600; font-family: var(--serif); font-size: 11px; letter-spacing: 0.03em; }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.tag {
  font-size: 10.5px; letter-spacing: 0.06em; color: #7a5a30;
  background: #f7ecd9; border: 1px solid #eddcc0;
  padding: 1px 8px; border-radius: 4px;
}

.card-acts {
  display: flex; gap: 8px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line);
}
.act {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.act:hover { background: var(--paper-2); }
.act.primary { background: var(--ink); border-color: var(--ink); color: #fbf3e6; }
.act.primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); transform: translateY(-1px); }
.act svg { flex: none; }

/* 空封面 */
.cover-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, #f3e3c9, #e8d3b5 45%, #dcc3a0);
}
.cover-fallback span {
  font-family: var(--serif); font-size: 92px; color: rgba(122, 88, 46, 0.26);
  letter-spacing: 0.1em; user-select: none;
}
.cover-fallback::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(122, 88, 46, 0.18);
  border-radius: 8px;
}

/* 空状态 */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 74px 20px 86px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: rgba(255, 253, 247, 0.5);
}
.empty b { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: 0.14em; margin-bottom: 9px; }
.empty p { margin: 0; color: var(--ink-3); font-size: 13px; }

/* 骨架 */
.skeleton { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.sk-line, .sk-media { background: linear-gradient(100deg, #f1e6d4 22%, #f9f1e3 38%, #f1e6d4 56%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }
.sk-media { aspect-ratio: 16 / 10.4; }
.sk-line { height: 11px; border-radius: 5px; margin: 14px 20px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; height: 9px; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------- 制作人 / 关于 ---------- */
.about {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.about-lead {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.86; letter-spacing: 0.04em; margin: 0; color: var(--ink);
}
.about-lead em { font-style: normal; color: var(--clay-deep); border-bottom: 1px solid var(--clay-soft); }
.about-note { margin: 22px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 2; max-width: 52ch; }
.about-sign { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.about-sign .ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #c9985f, #9a6b36); color: #fffaf0;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px; letter-spacing: 0;
}
.about-sign b { display: block; font-family: var(--serif); font-size: 15.5px; letter-spacing: 0.14em; }
.about-sign span { font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.14em; }

.facts { border-top: 1px solid var(--line-strong); }
.fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.fact .k { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.fact .v { font-family: var(--serif); font-size: 15px; letter-spacing: 0.05em; color: var(--ink); text-align: right; }
.fact .v small { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.06em; }

/* 下载说明 */
.dl-note {
  margin-top: 26px; padding: 17px 19px; border-radius: var(--r-md);
  border: 1px solid #e8d7bb; background: linear-gradient(165deg, #fdf6e9, #f8edda);
  display: flex; gap: 13px; align-items: flex-start;
}
.dl-note .ic {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: #efe0c6; display: grid; place-items: center; font-size: 14px;
}
.dl-note b { display: block; font-size: 12.5px; letter-spacing: 0.08em; color: #7a5a30; margin-bottom: 3px; }
.dl-note p { margin: 0; font-size: 12px; line-height: 1.85; color: #91764e; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(244, 235, 221, 0), rgba(238, 225, 206, 0.55));
  padding: clamp(40px, 6vw, 68px) 0 34px;
}
.foot-top { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand h3 {
  margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: 0.2em; font-weight: 700; line-height: 1.2;
}
.foot-brand p { margin: 10px 0 0; font-size: 11px; letter-spacing: 0.34em; color: var(--ink-4); text-transform: uppercase; font-family: var(--mono); }
.foot-cols { display: flex; gap: clamp(28px, 5vw, 70px); flex-wrap: wrap; }
.foot-col .h { font-family: var(--mono); font-size: 9px; letter-spacing: 0.26em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 11px; }
.foot-col a, .foot-col p { display: block; margin: 0 0 7px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.foot-col a { transition: color 0.25s; }
.foot-col a:hover { color: var(--clay-deep); }
.foot-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-4); letter-spacing: 0.05em;
}

/* ---------- 详情弹层 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(40, 31, 20, 0.42);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0; pointer-events: none; transition: opacity 0.36s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(1000px, 100%); max-height: min(88svh, 860px); overflow: auto;
  background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid; grid-template-columns: 0.93fr 1.07fr;
  transform: translateY(24px) scale(0.985); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.overlay.open .sheet { transform: none; opacity: 1; }
.sheet-media { position: relative; min-height: 300px; background: var(--paper-3); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: clamp(24px, 3.4vw, 42px); display: flex; flex-direction: column; }
.sheet-kicker {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.28em;
  color: var(--clay); text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px;
}
.sheet h2 {
  margin: 14px 0 0; font-family: var(--serif); font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.44; letter-spacing: 0.04em; font-weight: 700;
}
.sheet .sum { margin: 14px 0 0; font-size: 13.3px; line-height: 1.95; color: var(--ink-2); }
.sheet-facts { margin-top: 22px; border-top: 1px solid var(--line); }
.sheet-facts .row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.sheet-facts .row .k { color: var(--ink-4); letter-spacing: 0.1em; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.sheet-facts .row .v { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.04em; text-align: right; }
.sheet-acts { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.sheet-acts .act { flex: 1 1 140px; padding: 12px 16px; font-size: 12.5px; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(38, 30, 20, 0.42); color: #fffaf0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: all 0.28s;
}
.sheet-close:hover { background: rgba(38, 30, 20, 0.7); transform: rotate(90deg); }
.sheet-warn {
  margin-top: 14px; font-size: 11.5px; color: #9a7a4e; line-height: 1.8;
  background: #fbf1df; border: 1px solid #eeddc0; border-radius: 8px; padding: 8px 11px;
}

/* ---------- Toast ---------- */
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(43, 34, 24, 0.94); color: #fbf3e6;
  padding: 11px 20px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.06em;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.4s var(--ease) both;
}
.toast.out { animation: toastOut 0.35s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet-media { min-height: 210px; max-height: 260px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding-top: calc(96px + env(safe-area-inset-top)); min-height: 100vh; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-seal { width: 104px; margin: 0 0 0 auto; order: -1; opacity: .95; }
  .hero-meta { max-width: none; margin-top: 26px; }
  .hero-lede { margin-top: 20px; font-size: 14.5px; line-height: 1.95; }
  .hero-foot { margin-top: 30px; gap: 12px; }
  .hero-foot .scroll-cue { display: none; }
  .marquee-track span { font-size: 11.5px; letter-spacing: 0.18em; }
  .marquee-track { gap: 22px; }
  .marquee-track span::after { margin-left: 0; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.2em; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .hero-eyebrow::before { width: 28px; }
  .hero h1 { font-size: clamp(46px, 15vw, 74px); }
  .hero-meta { gap: 14px 0; }
  .hero-meta .cell { padding-right: 18px; margin-right: 18px; }
  .hero-foot { margin-top: 44px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-head .aside { text-align: left; }
  .toolbar { top: 52px; gap: 10px; }
  .tool-right { margin-left: 0; width: 100%; gap: 8px; }
  .search { flex: 1 1 auto; min-width: 0; }
  .search input { width: 100%; min-width: 0; }
  .search kbd { display: none; }
  .sel { flex: none; max-width: 132px; padding-right: 24px; }
  .dl-all { display: none; }   /* 移动端用批量条里的打包入口 */
  .grid { grid-template-columns: 1fr; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; max-width: 100%; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .room { min-height: 140px; padding: 17px 15px 15px; }
  .room .glyph { font-size: 74px; }
  .sheet-acts .act { flex: 1 1 100%; }
  .foot-top { flex-direction: column; }
}
@media (max-width: 420px) {
  .rooms { grid-template-columns: 1fr; }
  .hero-meta .cell { border-right: 0; padding-right: 0; margin-right: 0; width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .toolbar, #progress, .hero-foot, .card-acts, #toasts { display: none !important; }
  body { background: #fff; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* ---------- 批量下载 ---------- */
.dl-all { display: inline-flex; align-items: center; gap: 6px; }
.selectbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid #e2cfae; background: linear-gradient(150deg, #fdf6e8, #f7ecd8);
  font-size: 12px; color: var(--ink-3);
}
.selectbar b { font-family: var(--serif); font-size: 15px; color: var(--clay-deep); margin-right: 2px; }
.selectbar .chip.on:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

/* 卡片勾选 */
.card { position: relative; }
.card .pick {
  position: absolute; top: 13px; left: 13px; z-index: 4;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255, 250, 240, 0.7); background: rgba(38, 30, 20, 0.34);
  display: grid; place-items: center; color: #fffaf0; font-size: 11px;
  opacity: 0; transform: scale(0.85); transition: all 0.26s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card:hover .pick, .card.picked .pick { opacity: 1; transform: none; }
.card.picked .pick { background: var(--clay); border-color: var(--clay); }
.card.picked { box-shadow: 0 0 0 2px var(--clay) inset, var(--shadow-md); }
.card.picked .card-no { display: none; }
