:root { --paper:#f5e8cb; --ink:#39291c; --muted:#786148; --line:#b29369; --rust:#94442e; --navy:#273f46; --serif:"STKaiti","KaiTi","Noto Serif CJK SC","Songti SC",serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:#ded0b4; font-family:var(--serif); font-size:16px; line-height:1.6; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; }
a { color:inherit; }
button:focus-visible,a:focus-visible,.map-scroll:focus-visible { outline:3px solid #236e86; outline-offset:5px; }
.page-shell { max-width:1600px; min-height:100vh; margin:auto; padding:0 42px; background:radial-gradient(ellipse at 50% 8%,#fff7e5 0,transparent 65%),var(--paper); border:1px solid #b69b72; }
.masthead { display:flex; justify-content:space-between; align-items:center; min-height:94px; border-bottom:1px solid var(--line); gap:20px; }
.brand { display:flex; align-items:center; gap:13px; text-decoration:none; font-size:25px; font-weight:bold; letter-spacing:3px; }
.brand-seal { display:flex; justify-content:center; align-items:center; width:43px; height:53px; color:#fff2d6; background:var(--rust); border:3px double #f1d3ad; outline:1px solid var(--rust); font-size:27px; line-height:1; letter-spacing:0; }
.brand-subtitle { display:block; color:var(--muted); font-size:14px; font-weight:normal; letter-spacing:2px; }
.masthead-links { display:flex; align-items:center; gap:18px; }
.masthead-links a { text-decoration:none; }
.text-button { border:0; border-bottom:1px solid var(--line); padding:4px 0; background:transparent; color:var(--muted); cursor:pointer; font-size:16px; }
.text-button:hover { color:var(--rust); }
.intro { text-align:center; padding:30px 10px 28px; }
.eyebrow { margin:0 0 8px; color:var(--muted); font-size:14px; letter-spacing:3px; }
h1 { display:flex; align-items:center; justify-content:center; gap:30px; margin:0; font-size:clamp(40px,4.6vw,68px); font-weight:600; line-height:1.2; letter-spacing:12px; }
.cloud { font-size:31px; font-weight:normal; color:#ad7950; letter-spacing:0; }
.intro-copy { margin:14px 0 0; font-size:18px; color:var(--muted); letter-spacing:3px; }
.academy-layout { display:grid; grid-template-columns:minmax(0,2.55fr) minmax(290px,1fr); align-items:stretch; border:4px double var(--line); box-shadow:0 8px 24px #573c1820; }
.map-panel { min-width:0; border-right:1px solid var(--line); }
.panel-heading { min-height:58px; display:flex; align-items:center; justify-content:space-between; padding:12px 22px; gap:12px; background:#f9eed7; }
.panel-heading h2 { margin:0; font-size:21px; font-weight:normal; }
.map-key { color:var(--muted); font-size:14px; white-space:nowrap; }
.map-key i { display:inline-block; width:7px; height:7px; margin-right:8px; background:var(--rust); border-radius:50%; }
.map-scroll { overflow-x:auto; overflow-y:hidden; }
.map-canvas { position:relative; overflow:hidden; aspect-ratio:1032/694; isolation:isolate; background:#a08e62; }
.map-art { position:absolute; width:148.83721%; max-width:none; height:auto; left:-.775194%; top:-25.072046%; pointer-events:none; user-select:none; }
/* 透明热区对齐原图牌匾 (474,238,168,67)，地图裁切区为 (8,174,1032,694)。 */
.map-hotspot { position:absolute; display:block; z-index:2; padding:0; border:0; background:transparent; cursor:pointer; }
.comic-landmark { left:45.155039%; top:9.221902%; width:16.27907%; height:9.654179%; }
.faculty-landmark { left:13.75969%; top:15.561959%; width:14.534884%; height:10.086455%; }
/* 静止时直接看底图；悬停时只放大同一张原图中的牌匾，不添加文字或方框。 */
.hotspot-visual { position:absolute; inset:0; overflow:hidden; opacity:0; pointer-events:none; clip-path:polygon(5% 0,95% 0,100% 9%,100% 91%,95% 100%,5% 100%,0 91%,0 9%); transform:scale(1); transition:transform .2s,opacity .15s; }
.hotspot-visual img { position:absolute; display:block; width:914.285714%; max-width:none; height:auto; left:-282.142857%; top:-355.223881%; user-select:none; }
.faculty-landmark .hotspot-visual img { width:1024%; left:-100%; top:-402.857143%; }
.map-hotspot:focus-visible .hotspot-visual,.map-hotspot:active .hotspot-visual { opacity:1; transform:translateY(-2px) scale(1.1); }
@media(hover:hover) { .map-hotspot:hover .hotspot-visual { opacity:1; transform:translateY(-2px) scale(1.1); } }
.map-caption { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:52px; padding:12px 20px; margin:0; color:var(--muted); font-size:14px; }
.caption-mark { color:#946338; font-size:21px; }
.swipe-note,.mobile-only,.mobile-caption { display:none; }
.reading-room { padding:24px 25px 20px; background:linear-gradient(135deg,#fcf3dfaa,#eedbbb80); }
.room-topline { display:flex; justify-content:space-between; align-items:center; padding-bottom:16px; margin-bottom:25px; border-bottom:1px solid var(--line); color:var(--muted); letter-spacing:3px; font-size:15px; }
.room-topline span:last-child { font-size:25px; }
.reading-room h2 { margin:0; font-size:43px; font-weight:normal; letter-spacing:5px; line-height:1.3; }
.room-copy { margin:14px 0 24px; font-size:17px; color:var(--muted); }
.collection-card { border:1px solid var(--line); padding:19px 16px 8px; background:#fff8e9a6; }
.collection-label { color:var(--rust); font-size:14px; letter-spacing:2px; }
.collection-card h3 { margin:7px 0 6px; font-size:21px; font-weight:normal; }
.collection-card p { margin:0 0 18px; color:var(--muted); font-size:14px; }
.primary-button { display:block; width:100%; text-align:center; border:1px solid #713120; outline:1px solid #bc8c61; outline-offset:3px; padding:12px 14px; background:var(--rust); color:#fff5df; cursor:pointer; text-decoration:none; font-size:18px; line-height:1.4; letter-spacing:2px; transition:background .18s; }
.primary-button:hover { background:#74301f; }
.copy-button { display:block; margin:14px auto 0; padding:3px 6px; border:0; background:transparent; color:var(--muted); font-size:14px; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.collection-card .feedback { min-height:22px; margin:5px 0 0; color:var(--rust); font-size:13px; text-align:center; }
.reading-note { margin:15px 0 21px; color:var(--muted); font-size:13px; }
.next-shelves { border-top:1px solid var(--line); padding-top:16px; }
.next-shelves h3 { margin:0 0 10px; font-size:17px; font-weight:normal; }
.next-shelves p { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:7px 0; color:var(--muted); font-size:14px; }
.next-shelves p>span:first-child { color:var(--ink); }
.pending { margin-left:auto; font-size:12px; color:#695843; border:1px solid #c9b28b; padding:0 5px; }
.bottom-nav { display:flex; justify-content:center; align-items:stretch; margin:22px 0 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.bottom-nav>a,.bottom-nav>span { display:flex; justify-content:center; align-items:center; gap:9px; min-width:0; flex:1; padding:14px 10px; text-decoration:none; font-size:18px; letter-spacing:2px; text-align:center; }
.bottom-nav a:hover { background:#ead6b1; }
.bottom-nav .nav-current { color:var(--rust); box-shadow:inset 0 -3px var(--rust); }
.nav-pending { color:#786952; }
.nav-pending small { border:1px solid #bdaa8c; font-size:12px; padding:0 5px; letter-spacing:0; }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:23px 0; color:var(--muted); font-size:13px; letter-spacing:1px; }
dialog { width:min(90vw,520px); border:4px double var(--line); padding:34px; background:#fbefd7; color:var(--ink); box-shadow:0 20px 80px #281b1359; }
dialog::backdrop { background:#211a136e; backdrop-filter:blur(3px); }
dialog h2 { margin:0 0 20px; font-size:30px; font-weight:normal; }
dialog p { margin:0 0 18px; }
.dialog-close { position:absolute; right:13px; top:7px; border:0; background:transparent; color:var(--muted); font-size:30px; cursor:pointer; }
.dialog-note { color:var(--muted); font-size:14px; }
.noscript-note { color:var(--muted); text-align:center; }
.copy-fallback { display:block; width:100%; height:80px; margin:12px 0; border:1px solid var(--line); background:#fff8e9; color:var(--ink); font:14px/1.5 sans-serif; resize:vertical; }
@media(min-width:1450px) { .reading-room { padding:30px; } .room-copy { margin-bottom:35px; } .collection-card { padding:24px 20px 12px; } .reading-room h2 { font-size:49px; } }
@media(max-width:1050px) { .page-shell { padding:0 23px; } .academy-layout { grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr); } .reading-room { padding:18px; } .room-topline { margin-bottom:18px; } .reading-room h2 { font-size:37px; } .map-canvas { min-width:600px; } .swipe-note { display:block; width:100%; font-size:13px; } .map-key { font-size:13px; } }
@media(max-width:760px) { .page-shell { padding:0 14px; } .masthead { min-height:80px; } .brand { font-size:22px; gap:10px; } .brand-subtitle { font-size:12px; } .text-button { font-size:14px; } .intro { padding:26px 0; } h1 { font-size:43px; gap:14px; letter-spacing:7px; } .cloud { font-size:23px; } .intro-copy { font-size:16px; letter-spacing:1px; } .academy-layout { grid-template-columns:1fr; } .map-panel { border-right:0; border-bottom:1px solid var(--line); } .panel-heading { padding:12px 13px; } .panel-heading h2 { font-size:19px; } .map-caption { padding:10px 13px; } .reading-room { padding:22px; } .room-topline { margin-bottom:17px; } .reading-room h2 { font-size:38px; } .room-copy { margin:10px 0 20px; } .bottom-nav { flex-wrap:wrap; } .bottom-nav>a,.bottom-nav>span { flex:1 1 50%; padding:12px 5px; font-size:17px; letter-spacing:1px; } footer { justify-content:center; text-align:center; } dialog { padding:29px 23px; } }
.modal-open { overflow:hidden; }
.site-bridge { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:26px; padding:23px 26px; border:1px solid var(--line); background:#fbf1dc80; }
.site-bridge .eyebrow { margin-bottom:3px; font-size:13px; }
.site-bridge h2 { margin:0; font-size:23px; font-weight:normal; }
.site-bridge p:not(.eyebrow) { margin:5px 0 0; color:var(--muted); font-size:15px; }
.site-bridge-links { display:flex; gap:12px; }
.site-bridge-links a { display:flex; align-items:center; justify-content:center; min-height:44px; border:1px solid var(--line); padding:8px 17px; font-size:16px; text-decoration:none; white-space:nowrap; }
.site-bridge-links a:hover { background:#ead6b2; }
.library-sheet { max-height:85vh; max-height:85dvh; overscroll-behavior:contain; }
.sheet-handle { display:none; }
.sheet-intro { color:var(--muted); }
.sheet-collection { padding:20px; border:1px solid var(--line); background:#fff8e9a6; }
.sheet-collection h3 { font-size:23px; font-weight:normal; margin:8px 0; }
.sheet-collection>p { color:var(--muted); font-size:15px; }
.sheet-collection .feedback { min-height:22px; margin:9px 0 0; color:var(--rust); font-size:13px; text-align:center; }
.story-directory { margin-top:22px; }
.story-directory h3 { margin:0 0 10px; font-size:20px; font-weight:normal; }
#directory-empty { font-size:15px; color:var(--muted); }
.story-link { display:block; padding:12px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.story-link strong { display:block; font-size:18px; font-weight:normal; }
.story-link small { font-size:14px; color:var(--muted); }
.expanded-map { width:calc(100% - 24px); max-width:1100px; max-height:92vh; max-height:92dvh; padding:0; }
.expanded-map-header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px; }
.expanded-map-header h2 { margin:0; font-size:23px; }
.map-close-button,.map-zoom-button { min-height:44px; padding:7px 12px; border:1px solid var(--line); background:#fff4dc; color:var(--ink); cursor:pointer; font-size:15px; }
.expanded-map-hint { margin:0; padding:0 16px 12px; color:var(--muted); font-size:14px; }
.expanded-map-scroll { overflow:auto; max-height:68vh; max-height:68dvh; overscroll-behavior:contain; }
.expanded-map-scroll .map-canvas { min-width:900px; }

@media(max-width:760px) {
  .page-shell { padding:0 15px calc(85px + env(safe-area-inset-bottom,0px)); }
  .masthead { min-height:73px; }
  .brand { font-size:21px; gap:10px; }
  .brand-seal { width:35px; height:44px; font-size:23px; }
  .masthead { gap:8px; }
  .masthead-links { gap:12px; }
  .text-button { min-height:44px; font-size:14px; }
  .intro { padding:23px 0 24px; }
  .intro .eyebrow { font-size:13px; }
  h1 { font-size:43px; line-height:1.25; gap:15px; letter-spacing:6px; }
  .intro-copy { margin-top:10px; font-size:16px; letter-spacing:1px; }
  .mobile-only { display:block; }
  .map-canvas { min-width:0; }
  .map-scroll { overflow:hidden; }
  .panel-heading { min-height:52px; padding:6px 12px; }
  .panel-heading h2 { font-size:19px; }
  .map-key,.desktop-caption,.reading-room,.bottom-nav { display:none; }
  .map-zoom-button { border:0; background:transparent; color:var(--rust); text-decoration:underline; text-underline-offset:4px; }
  .map-hotspot::before { content:""; position:absolute; left:50%; top:50%; min-width:44px; min-height:44px; width:100%; height:100%; transform:translate(-50%,-50%); }
  .mobile-caption { display:block; }
  .map-caption { align-items:flex-start; flex-wrap:nowrap; padding:12px; gap:9px; font-size:14px; }
  .caption-mark { line-height:1.5; }
  .mobile-reading { padding:26px 1px 0; }
  .section-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
  .section-heading .eyebrow { font-size:13px; letter-spacing:2px; margin-bottom:4px; }
  .section-heading h2 { margin:0; font-size:26px; font-weight:normal; }
  .reading-stamp { display:flex; justify-content:center; align-items:center; width:33px; height:36px; border:2px solid #a1694a; color:#a1694a; font-size:21px; transform:rotate(5deg); }
  .collection-teaser { display:flex; align-items:center; gap:13px; padding:19px 15px; border:1px solid var(--line); background:#fff7e5b3; box-shadow:0 3px 0 #a78a5c12; text-decoration:none; }
  .book-symbol { width:33px; height:33px; flex-shrink:0; color:var(--rust); }
  .collection-teaser>span:nth-child(2) { flex:1; min-width:0; }
  .collection-teaser strong { display:block; font-size:19px; font-weight:normal; }
  .collection-teaser small { display:block; margin-top:5px; color:var(--muted); font-size:14px; line-height:1.5; }
  .teaser-action { color:var(--rust); font-size:14px; white-space:nowrap; }
  .faculty-teaser { margin-top:12px; }
  .shelf-note { margin:13px 0 0; font-size:13px; color:var(--muted); }
  .site-bridge { display:block; margin-top:26px; padding:20px 17px; }
  .site-bridge h2 { font-size:22px; }
  .site-bridge p:not(.eyebrow) { font-size:14px; }
  .site-bridge-links { margin-top:16px; gap:10px; }
  .site-bridge-links a { flex:1; padding:8px; }
  footer { padding:20px 0 10px; gap:4px; font-size:12px; }
  footer>span { display:block; width:100%; }
  .mobile-dock { display:flex; position:fixed; z-index:5; bottom:0; left:0; right:0; align-items:stretch; padding:7px max(16px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); background:#fbf1dcf5; border-top:1px solid var(--line); box-shadow:0 -4px 20px #5b402011; }
  .dock-item { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:49px; border:0; background:transparent; color:var(--muted); font-family:var(--serif); text-decoration:none; font-size:14px; cursor:pointer; }
  .dock-item svg { width:22px; height:22px; }
  .dock-current { color:var(--rust); }
  dialog.library-sheet { position:fixed; inset:auto 0 0; width:100%; max-width:600px; margin:0 auto; max-height:88vh; max-height:88dvh; padding:27px 23px calc(20px + env(safe-area-inset-bottom,0px)); border:1px solid var(--line); border-bottom:0; border-radius:23px 23px 0 0; }
  .library-sheet[open] { animation:sheet-rise .22s ease-out; }
  .sheet-handle { position:absolute; display:block; top:10px; left:calc(50% - 18px); width:36px; height:4px; border-radius:5px; background:#b49b79; }
  .library-sheet .dialog-close { min-width:44px; min-height:44px; right:8px; top:18px; }
  .library-sheet .eyebrow { margin:11px 0 5px; }
  .library-sheet h2 { margin-bottom:7px; font-size:34px; }
  .sheet-intro { font-size:16px; }
  .library-sheet .reading-note { margin:18px 0 0; }
  .expanded-map { width:calc(100% - 16px); }
  .expanded-map-header { padding:12px; }
  .expanded-map-header h2 { font-size:22px; }
}
@media(max-width:350px) { h1 { font-size:37px; gap:9px; } .collection-teaser { padding:16px 11px; gap:10px; } .teaser-action { display:none; } .section-heading h2 { font-size:24px; } }
@keyframes sheet-rise { from { transform:translateY(24px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }

/* 首页近期更新与主题书架，沿用地图页纸色、字体与响应式断点。 */
.academy-updates { display:flex; gap:24px; align-items:stretch; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:15px 0; margin:0 0 22px; }
.updates-label { flex:0 0 115px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); padding:0 20px 0 4px; }
.updates-label h2 { font-size:22px; font-weight:normal; margin:0; letter-spacing:2px; white-space:nowrap; }
.updates-label>span { color:var(--muted); font-size:14px; letter-spacing:2px; }
.updates-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:1; min-width:0; gap:22px; }
.updates-links>a { display:flex; align-items:flex-start; flex-wrap:wrap; gap:4px 10px; text-decoration:none; min-width:0; }
.updates-links>a:hover strong { color:var(--rust); text-decoration:underline; text-underline-offset:4px; }
.updates-links time { color:var(--rust); font-size:14px; padding-top:1px; white-space:nowrap; }
.updates-links>a>span { flex:1; min-width:0; }
.updates-links small { display:block; color:var(--muted); font-size:13px; }
.updates-links strong { display:block; font-size:17px; font-weight:normal; line-height:1.6; }
.academy-shelves { margin-top:30px; scroll-margin-top:20px; }
.shelves-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.shelves-heading .eyebrow { margin-bottom:3px; }
.shelves-heading h2 { font-size:29px; font-weight:normal; letter-spacing:3px; margin:0; }
.shelves-heading>a { text-decoration:none; white-space:nowrap; }
.theme-shelf-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:4px double var(--line); background:#fff7e54d; }
.theme-shelf { min-width:0; padding:20px 22px 12px; }
.theme-shelf+.theme-shelf { border-left:1px solid var(--line); }
.theme-shelf-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 8px; }
.theme-shelf-heading h3 { margin:0; font-size:23px; font-weight:normal; color:var(--rust); }
.theme-shelf-heading>span { font-size:13px; color:var(--muted); white-space:nowrap; }
.theme-shelf>p { margin:6px 0 12px; color:var(--muted); font-size:15px; }
.shelf-story { display:flex; align-items:center; gap:12px; min-height:90px; padding:12px 0; text-decoration:none; }
.shelf-story+.shelf-story { border-top:1px solid #b2936955; }
.shelf-story img { display:block; flex:0 0 84px; width:84px; height:62px; border:1px solid var(--line); object-fit:cover; }
.shelf-story>span { min-width:0; }
.shelf-story strong { display:block; font-size:17px; font-weight:normal; line-height:1.5; }
.shelf-story small { display:block; font-size:13px; color:var(--muted); margin-top:5px; }
.shelf-story:hover strong { color:var(--rust); text-decoration:underline; text-underline-offset:4px; }
.shelves-fallback { grid-column:1/-1; padding:16px 22px; margin:0; color:var(--muted); }
@media(max-width:1100px) and (min-width:761px) {
  .academy-updates { gap:16px; }
  .updates-label { flex-basis:105px; padding-right:14px; }
  .updates-links { gap:15px; }
  .updates-links time { width:100%; }
  .theme-shelf { padding:17px 15px 10px; }
  .theme-shelf-heading h3 { font-size:21px; }
  .shelf-story { gap:9px; }
  .shelf-story img { flex-basis:66px; width:66px; height:54px; }
}
@media(max-width:760px) {
  .academy-updates { display:block; padding:12px 0 8px; margin-bottom:19px; }
  .updates-label { display:flex; flex-direction:row; align-items:center; justify-content:space-between; border-right:0; padding:0 0 5px; }
  .updates-label h2 { font-size:21px; }
  .updates-label>span { font-size:13px; letter-spacing:1px; }
  .updates-links { display:block; }
  .updates-links>a { display:flex; flex-wrap:nowrap; gap:11px; padding:8px 0; align-items:flex-start; }
  .updates-links>a+a { border-top:1px solid #b2936940; }
  .updates-links time { flex:0 0 68px; font-size:13px; padding-top:2px; }
  .updates-links>a>span { display:flex; flex-direction:column-reverse; }
  .updates-links strong { font-size:16px; line-height:1.5; }
  .updates-links small { font-size:12px; margin-top:1px; }
  .academy-shelves { margin-top:27px; }
  .shelves-heading { gap:10px; margin-bottom:13px; }
  .shelves-heading .eyebrow { font-size:13px; letter-spacing:2px; }
  .shelves-heading h2 { font-size:26px; letter-spacing:0; }
  .shelves-heading>a { font-size:14px; }
  .theme-shelf-grid { grid-template-columns:minmax(0,1fr); }
  .theme-shelf { padding:17px 16px 9px; }
  .theme-shelf+.theme-shelf { border-left:0; border-top:1px solid var(--line); }
  .theme-shelf-heading h3 { font-size:22px; }
  .theme-shelf>p { font-size:14px; margin-bottom:6px; }
  .shelf-story { min-height:83px; padding:10px 0; gap:13px; }
  .shelf-story img { flex-basis:91px; width:91px; height:63px; }
  .shelf-story strong { font-size:17px; }
}
@media(max-width:350px) { .shelves-heading h2 { font-size:22px; } .shelf-story img { flex-basis:73px; width:73px; height:55px; } .theme-shelf { padding-left:12px; padding-right:12px; } }
