/* 经典动画人物博物馆 · 昭和复古印刷(2026-10 改版)
   方向:横尾忠则一代的昭和印刷海报——旧油墨四色(朱红/墨/米黄/藏青/芥末),
   日之丸、放射线、贴纸框展品卡。选型与流程见 design-demos/directions.md。
   色彩论证:朱红比正红暗且偏橙(旧胶印褪色),米黄是老纸,藏青是当年动画片头的夜色,
   芥末是印刷黄;平涂无渐变,做旧纸纹理诚实降级为纯色。
   字体:ZCOOL XiaoWei(旧美术字,固定 UI 子集内嵌)+ Archivo Narrow(西文)+
   系统中文黑体兜底(动态人名不子集,避免缺字混排)。 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #F3E9D2;
  --paper2: #EDE1C4;
  --ink: #1F1B16;
  --ink-dim: #5A5142;
  --verm: #B03A2E;
  --navy: #2B4A6F;
  --mustard: #C99526;
  --pine: #46604E;
  --serif: "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --disp: "ZCOOL XiaoWei", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --sans: "Archivo Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --en: "Archivo Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { font-synthesis: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  line-break: strict;
  min-height: 100vh;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 门厅:满版复古海报 ---------- */
.hall-hero { position: relative; overflow: hidden; padding: 58px 24px 46px; }
.hall-hero .rays {
  position: absolute; inset: -46%; pointer-events: none;
  background: repeating-conic-gradient(from 8deg at 50% 42%,
    rgba(43, 74, 111, .07) 0deg 5deg, transparent 5deg 13deg);
}
.poster { position: relative; max-width: 1060px; margin: 0 auto;
  border: 3px solid var(--ink); padding: 10px; background: transparent; }
.poster::after { content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--ink); pointer-events: none; }
.poster-inner { position: relative; padding: 34px 38px 30px; text-align: left; }
.hinomaru {
  position: absolute; top: -6px; right: 34px; width: 92px; height: 92px;
  border-radius: 50%; background: var(--verm); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.hinomaru span { writing-mode: vertical-rl; color: var(--paper);
  font-family: var(--disp); font-size: 17px; letter-spacing: .18em; line-height: 1.3; }

.hero-eyebrow {
  display: inline-block; border: 2px solid var(--ink); background: var(--mustard);
  font-weight: 700; font-size: 13px; letter-spacing: .2em;
  padding: 3px 14px; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 20px;
}
.hall-hero h1 {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.16;
  letter-spacing: .02em; margin: 0 0 6px;
}
.hall-hero h1 b { color: var(--verm); font-weight: 400; }
.hero-en {
  font-family: var(--en); font-weight: 700; font-size: 14px;
  letter-spacing: .3em; color: var(--navy); margin: 0 0 20px;
}
.hero-intro { max-width: 36em; color: var(--ink-dim); font-size: 15px; text-align: left; }
.hero-intro b { color: var(--ink); }
.hero-stats { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats span {
  border: 2px solid var(--ink); background: #FFF;
  font-family: "Archivo Narrow", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900; font-size: 14px; padding: 5px 16px;
  box-shadow: 3px 3px 0 var(--ink); font-variant-numeric: tabular-nums;
}
.hero-stats span:nth-child(odd) { transform: rotate(-1.2deg); }
.hero-stats span:nth-child(even) { transform: rotate(1deg); background: var(--paper2); }

/* ---------- 展厅导航:印刷贴条 ---------- */
.hall-nav {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  display: flex; justify-content: center; align-items: stretch; gap: 10px;
  flex-wrap: wrap; padding: 12px 16px;
}
.hall-tab {
  font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--ink);
  background: transparent; border: 2px solid var(--ink); padding: 7px 18px;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hall-tab:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.hall-tab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.hall-tab.is-active { background: var(--verm); color: var(--paper); }
.hall-tab i {
  font-style: normal; font-family: var(--en); font-weight: 700;
  font-size: 12px; letter-spacing: .1em; margin-left: 6px; color: var(--ink-dim);
}
.hall-tab.is-active i { color: var(--paper); }
.search-box {
  font: inherit; font-size: 15px; color: var(--ink); background: #FFF;
  border: 2px solid var(--ink); padding: 7px 16px; width: 230px;
  outline: none; box-shadow: 3px 3px 0 var(--ink);
}
.search-box:focus { background: #FFFDF6; box-shadow: 4px 4px 0 var(--navy); }
.search-box::placeholder { color: #9A8F79; }
.search-empty {
  text-align: center; color: var(--ink-dim); font-size: 15px;
  border: 2px dashed var(--ink); padding: 42px 20px;
}
.search-empty b { color: var(--verm); }

/* ---------- 展厅:杂志内页 ---------- */
.halls { max-width: 1120px; margin: 0 auto; padding: 40px 20px 60px; }
.hall-section { margin-bottom: 58px; }
.hall-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hall-no {
  font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .28em;
  color: var(--paper); background: var(--navy); padding: 2px 10px;
  box-shadow: 2px 2px 0 var(--ink);
}
.hall-section:nth-of-type(4n+2) .hall-no { background: var(--verm); }
.hall-section:nth-of-type(4n+3) .hall-no { background: var(--pine); }
.hall-section:nth-of-type(4n+4) .hall-no { background: var(--mustard); color: var(--ink); }
.hall-title {
  font-family: var(--disp); font-weight: 400; font-size: 30px;
  letter-spacing: .03em; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.hall-title small {
  font-size: 12px; letter-spacing: .3em; font-weight: 700;
  font-family: var(--en); color: var(--ink-dim);
}
.hall-desc { color: var(--ink-dim); font-size: 14px; margin: 6px 0 0; max-width: 40em; }
.hall-desc b, .hall-desc .hall-count { color: var(--verm); font-variant-numeric: tabular-nums; }
.hall-rule { border: none; border-top: 3px double var(--ink); margin: 14px 0 24px; }

.grid {
  display: grid; gap: 20px 16px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

/* ---------- 展品卡:旧杂志贴纸框 ---------- */
.case {
  position: relative; cursor: pointer; border: 0; background: none;
  text-align: left; color: inherit; font: inherit; padding: 0;
}
.case-thumb {
  position: relative; display: block; background: #FFF;
  border: 2.5px solid var(--ink); padding: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.case:hover .case-thumb { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--ink); }
.case:active .case-thumb { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.case-photo {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--paper2);
}
.case:hover .case-photo { filter: saturate(1.08); }
.case-no {
  position: absolute; top: -10px; left: -10px;
  font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .12em;
  color: var(--paper); background: var(--ink); padding: 2px 8px;
  transform: rotate(-4deg); font-variant-numeric: tabular-nums;
}
.case-hall {
  position: absolute; top: -10px; right: -10px;
  font-family: var(--en); font-weight: 700; font-size: 12px;
  background: var(--mustard); color: var(--ink); border: 1.5px solid var(--ink);
  padding: 1px 7px; transform: rotate(3deg); font-variant-numeric: tabular-nums;
}
.case-name {
  display: block; font-family: var(--sans); font-weight: 700; font-size: 16px;
  color: var(--ink); margin-top: 9px; line-height: 1.35;
}
.case-from { display: block; font-size: 12.5px; color: var(--ink-dim); margin-top: 1px; }

/* ---------- 档案弹窗:收藏档案袋 ---------- */
.archive-modal { position: fixed; inset: 0; z-index: 50; display: flex; }
.archive-modal[hidden] { display: none; }
.archive-backdrop { position: absolute; inset: 0; background: rgba(43, 33, 22, .62); }
.archive-panel {
  position: relative; margin: auto; width: min(880px, 94vw); max-height: 90vh;
  overflow: auto; display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(31, 27, 22, .55);
}
.archive-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font-size: 15px;
  cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
}
.archive-close:hover { background: var(--verm); color: var(--paper); }
.archive-figure { position: relative; padding: 22px 20px; border-right: 2px dashed var(--ink); }
.figure-cell { margin-bottom: 14px; }
.figure-view { position: relative; }
#figure-flat img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border: 2.5px solid var(--ink); background: #FFF; padding: 5px;
  box-shadow: 4px 4px 0 var(--ink);
}
#figure-holo {
  height: 250px; border-radius: 0; overflow: hidden;
  border: 2.5px solid var(--ink); background: #FFF; cursor: grab;
  box-shadow: 4px 4px 0 var(--ink);
}
#figure-holo:active { cursor: grabbing; }
#figure-holo canvas { display: block; width: 100%; height: 100%; }
.figure-label {
  display: block; text-align: center; margin-top: 8px;
  font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--ink-dim);
}
.holo-btns { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.holo-btns button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink); background: var(--mustard); border: 2px solid var(--ink);
  border-radius: 0; padding: 6px 14px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.holo-btns button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.holo-btns button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.holo-btns button svg { flex: none; }
.archive-body { padding: 26px 30px 24px 26px; }
.archive-no {
  font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .3em;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.archive-body h2 {
  font-family: var(--sans); font-weight: 700; font-size: 34px;
  line-height: 1.3; letter-spacing: .02em; color: var(--ink); margin: 4px 0 2px;
}
.archive-names { color: var(--ink-dim); font-size: 13px; margin-bottom: 16px; }
.archive-names span + span::before { content: " · "; color: var(--ink-dim); }
.archive-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px;
  border-top: 2px solid var(--ink); border-bottom: 1px dashed var(--ink);
  padding: 13px 0; margin-bottom: 20px;
}
.archive-facts dt { color: var(--verm); white-space: nowrap; font-weight: 700; }
.archive-facts dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.archive-section { margin-bottom: 18px; }
.archive-section h3 {
  font-family: var(--serif); font-weight: 900; font-size: 14px; letter-spacing: .14em;
  color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.archive-section h3::before { content: "■"; color: var(--verm); font-size: 10px; }
.archive-section p { font-size: 14.5px; color: var(--ink); }
#archive-theme-video {
  display: block; width: 100%; max-width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: contain; background: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.archive-quote {
  font-family: var(--sans); font-weight: 700; font-size: 20px;
  color: var(--verm) !important; line-height: 1.6;
}
.theme-song { font-size: 13px; font-weight: 700; margin-top: 10px; }
.theme-hint { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.theme-links { font-size: 13px; margin-top: 4px; }
.archive-source {
  font-size: 12px; color: var(--ink-dim); margin-top: 18px;
  border-top: 1px dashed var(--ink); padding-top: 10px;
}

/* ---------- 页脚 ---------- */
.hall-footer {
  border-top: 3px solid var(--ink); background: var(--paper2);
  text-align: center; padding: 36px 20px 46px; color: var(--ink-dim); font-size: 13px;
}
.hall-footer .footer-motto {
  font-family: var(--disp); color: var(--ink); font-size: 20px;
  letter-spacing: .1em; margin-bottom: 14px;
}
.hall-footer p + p { margin-top: 6px; }

@media (max-width: 680px) {
  .archive-panel { grid-template-columns: 1fr; }
  .archive-figure { border-right: none; border-bottom: 2px dashed var(--ink); padding: 40px 22px 18px; }
  .archive-body { padding: 0 22px 24px; }
  .search-box { width: 100%; }
  .hinomaru { width: 66px; height: 66px; right: 16px; }
  .hinomaru span { font-size: 13px; }
  .poster-inner { padding: 26px 20px; }
}
