:root {
  --hust-blue: #0b4ea2;
  --deep-blue: #0c2f68;
  --ink: #16304c;
  --paper: #f6f0df;
  --paper-2: #fff8e8;
  --warm: #d8a85b;
  --green: #5a8f69;
  --cyan: #29c5d8;
  --red: #c72f3b;
  --muted: rgba(22, 48, 76, .66);
  --white-muted: rgba(255,255,255,.76);
  --line: rgba(22,48,76,.14);
  --shadow: 0 22px 58px rgba(23, 42, 64, .22);
  --page-w: 640px;
  --page-h: 1030px;
  --stage-h: var(--page-h);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(41,197,216,.25), transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(90,143,105,.22), transparent 30%),
    #07182e;
}
button { font-family: inherit; border: 0; cursor: pointer; color: inherit; }
button:active { transform: scale(.98); }

.phone-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}
.h5-stage {
  position: relative;
  width: min(100vw, var(--page-w));
  height: min(100vh, var(--page-h));
  max-height: 100vh;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 38px 110px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12);
  isolation: isolate;
}
.pages {
  width: 100%;
  height: 100%;
  transition: transform 720ms cubic-bezier(.22,.88,.18,1);
  will-change: transform;
}
.page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 70px 38px 78px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(246,240,223,.92)),
    var(--paper);
}
.page > * { position: relative; z-index: 2; }
.paper-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .45;
  background-image:
    radial-gradient(rgba(22,48,76,.12) .7px, transparent .8px),
    linear-gradient(120deg, rgba(255,255,255,.4), transparent 28%, rgba(255,255,255,.36));
  background-size: 9px 9px, 100% 100%;
  pointer-events: none;
}

.loading {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 48% 34%, rgba(41,197,216,.26), transparent 32%),
    linear-gradient(180deg, #0c2f68, #07182e);
  transition: opacity .55s ease, visibility .55s ease;
}
.loading.hide { opacity: 0; visibility: hidden; }
.loader-emblem {
  width: 118px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.08);
  letter-spacing: .18em;
  font-weight: 900;
  box-shadow: 0 0 38px rgba(41,197,216,.32), inset 0 0 34px rgba(255,255,255,.06);
  animation: breathe 1.8s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.96); } to { transform: scale(1.04); } }
.loader-title { font-size: 23px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.loader-sub { font-size: 14px; color: rgba(255,255,255,.78); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.loader-line { width: 280px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.loader-line span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); transition: width .2s ease; box-shadow: 0 0 8px rgba(255,255,255,.4); }

.topbar {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar-brand, .progress-pill {
  pointer-events: auto;
  border-radius: 999px;
  background: rgba(255,248,232,.76);
  border: 1px solid rgba(22,48,76,.14);
  box-shadow: 0 12px 32px rgba(23,42,64,.08);
  backdrop-filter: blur(14px);
  font-weight: 800;
}
.topbar-brand { padding: 9px 14px; font-size: 13px; letter-spacing: .08em; }
.progress-pill { padding: 9px 13px; font-size: 13px; letter-spacing: .08em; }
.bottom-nav {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 22;
  display: flex;
  gap: 8px;
}
.bottom-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22,48,76,.78);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 900;
}
.eyebrow.dark { color: var(--hust-blue); }
.primary-btn, .ghost-btn, .small-btn {
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .03em;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #0b4ea2, #1ca3b5 52%, #5a8f69);
  box-shadow: 0 14px 32px rgba(11,78,162,.24);
}
.ghost-btn {
  background: rgba(255,248,232,.78);
  border: 1px solid rgba(22,48,76,.16);
  color: var(--ink);
}
.small-btn {
  padding: 10px 16px;
  font-size: 14px;
  background: #16304c;
  color: #fff;
}
.small-btn.muted { background: rgba(22,48,76,.10); color: var(--ink); border: 1px solid rgba(22,48,76,.14); }
.wide { width: 100%; }

/* COVER: magazine layout rather than generic tech panels */
.cover {
  color: #fff;
  background:
    radial-gradient(circle at 8% 8%, rgba(41,197,216,.38), transparent 28%),
    radial-gradient(circle at 76% 36%, rgba(216,168,91,.32), transparent 28%),
    linear-gradient(160deg, #0c2f68 0%, #0c2f68 38%, #07182e 100%);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000, transparent 68%);
}
.cover-map-lines { position: absolute; inset: 74px 34px 360px; z-index: 1; }
.cover-map-lines span { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent); transform-origin: left; }
.cover-map-lines span:nth-child(1) { left: 40px; top: 88px; width: 370px; transform: rotate(8deg); }
.cover-map-lines span:nth-child(2) { left: 110px; top: 188px; width: 310px; transform: rotate(-12deg); }
.cover-map-lines span:nth-child(3) { left: 20px; top: 284px; width: 440px; transform: rotate(15deg); }
.cover-map-lines span:nth-child(4) { left: 260px; top: 40px; width: 260px; transform: rotate(58deg); }
.cover-hero { position: absolute; left: 34px; right: 34px; top: 76px; height: 520px; z-index: 2; }
.photo-slot {
  position: absolute;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,.32);
}
.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.48), transparent 58%);
}
.photo-slot span, .photo-slot strong, .photo-slot small { position: relative; z-index: 1; }
.photo-slot span { color: #e7d098; font-size: 12px; letter-spacing: .2em; font-weight: 900; }
.photo-slot strong { font-size: 25px; margin: 8px 0 4px; }
.photo-slot small { color: rgba(255,255,255,.72); }
.cover-now { left: 2px; top: 76px; width: 310px; height: 370px; transform: rotate(-3.8deg); background: url('./图片/梧桐大道-now.webp') center/cover; }
.cover-future { right: 4px; top: 20px; width: 300px; height: 390px; transform: rotate(5deg); background: url('./图片/梧桐大道-future.webp') center/cover; }
.time-ribbon {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 38px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.time-ribbon b { white-space: nowrap; }
.time-ribbon i { flex: 1; height: 2px; background: linear-gradient(90deg, #fff, #29c5d8, #b8e596); box-shadow: 0 0 18px rgba(41,197,216,.8); }
.cover-copy { position: absolute; left: 38px; right: 38px; bottom: 72px; z-index: 3; }
.cover h1 { margin: 0; font-size: 72px; line-height: .95; letter-spacing: .05em; }
.cover h2 { margin: 10px 0 0; font-size: 34px; font-weight: 500; color: rgba(255,255,255,.86); }
.lead { margin: 22px 0 26px; color: rgba(255,255,255,.74); line-height: 1.75; font-size: 16px; }
.ai-note { margin: 16px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.6; }

/* IDENTITY: desk with real-life objects */
.identity { background: linear-gradient(180deg, #fbf3df, #eee1c4); }
.page-title { padding-top: 16px; }
.page-title h2 { margin: 0 0 12px; font-size: 38px; line-height: 1.16; }
.page-title p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }
.compact-title { padding-top: 8px; }
.compact-title h2 { font-size: 34px; }
.block-title { width: 88%; }
.identity-desk {
  position: relative;
  height: 560px;
  margin-top: 18px;
}
.role-card {
  position: absolute;
  width: 250px;
  min-height: 194px;
  padding: 20px 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: var(--shadow);
  background: var(--paper-2);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.role-card:hover, .role-card.active { box-shadow: 0 28px 70px rgba(11,78,162,.24); border-color: rgba(11,78,162,.38); }
.role-card::before { content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none; }
.role-card::after { content: ""; position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; border-radius: 12px; opacity: .95; }
.role-card.highschool { left: -14px; top: -4px; transform: rotate(-16deg); background: #f0f7ff; }
.role-card.student { right: -18px; top: 48px; transform: rotate(14deg); background: #eaf3fb; }
.role-card.alumni { left: 10px; top: 264px; transform: rotate(12deg); background: #f8ecd9; }
.role-card.public { right: -6px; top: 310px; transform: rotate(-14deg); background: #edf4e7; }
.role-card.active.highschool { transform: rotate(-4deg) translateY(-6px); }
.role-card.active.student { transform: rotate(3deg) translateY(-6px); }
.role-card.active.alumni { transform: rotate(2deg) translateY(-6px); }
.role-card.active.public { transform: rotate(-3deg) translateY(-6px); }
.role-card.highschool::before { background: linear-gradient(120deg, rgba(10,115,253,.18), transparent 55%); }
.role-card.student::before { background: linear-gradient(120deg, rgba(11,78,162,.16), transparent 55%); }
.role-card.alumni::before { background: radial-gradient(circle at 20% 20%, rgba(122,81,43,.13), transparent 40%); }
.role-card.public::before { background: linear-gradient(120deg, rgba(90,143,105,.18), transparent 55%); }
.role-card.highschool::after { background: linear-gradient(135deg, #0A73FD 50%, #72BCFF 50%); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 78%); }
.role-card.student::after { background: linear-gradient(135deg, var(--hust-blue), #89c8ef); border-radius: 999px; }
.role-card.alumni::after { background: #fff; border: 6px solid #b98b61; transform: rotate(6deg); }
.role-card.public::after { background: linear-gradient(90deg, transparent 18%, #5a8f69 19% 27%, transparent 28% 46%, #5a8f69 47% 55%, transparent 56%); border: 1px solid rgba(90,143,105,.3); }
.role-card span { display: block; color: var(--hust-blue); font-weight: 900; font-size: 12px; letter-spacing: .14em; }
.role-card h3 { margin: 34px 0 8px; font-size: 23px; }
.role-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.identity-preview {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 142px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 18px 48px rgba(23,42,64,.12);
}
.identity-preview span { color: var(--hust-blue); font-size: 12px; letter-spacing: .14em; font-weight: 900; }
.identity-preview strong { display: block; margin-top: 8px; font-size: 20px; }
.identity-preview p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.identity .wide { position: absolute; left: 38px; right: 38px; bottom: 76px; width: auto; }

/* ROUTE: map + preview + filmstrip */
.route { background: linear-gradient(180deg, #f7f1e0, #edf3f1); }
.map-pin {
  position: absolute;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: #fff8e8;
  border: 2px solid rgba(11,78,162,.25);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--hust-blue);
  box-shadow: 0 12px 26px rgba(23,42,64,.18);
  transition: transform .18s ease, background .18s ease;
}
.map-pin.active { transform: scale(1.22); background: var(--hust-blue); color: #fff; }
.map-pin.unlocked { border-color: rgba(90,143,105,.7); box-shadow: 0 0 0 5px rgba(90,143,105,.12), 0 12px 26px rgba(23,42,64,.16); }

/* DETAIL: dynamic visual language */
.detail { background: linear-gradient(180deg, #fbf3df, #edf3f1); padding-bottom: 66px; }
.detail-header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding-top: 0; }
.detail-header h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.15; }
.detail-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 430px; }
.detail-layout { margin-top: 15px; display: grid; gap: 14px; }
.image-stage { position: relative; }
.image-layers {
  position: relative;
  height: 418px;
  border-radius: 34px;
  overflow: hidden;
  background: #d9e7ea;
  border: 1px solid rgba(22,48,76,.14);
  box-shadow: var(--shadow);
}
.layer { position: absolute; inset: 0; overflow: hidden; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: none; }
.future-layer { clip-path: inset(0 0 0 48%); transition: clip-path .08s linear; background: #0c2f68; }
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.28)),
    repeating-linear-gradient(90deg, rgba(22,48,76,.08) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(22,48,76,.06) 0 1px, transparent 1px 28px);
}
.placeholder span { color: var(--hust-blue); letter-spacing: .18em; font-size: 12px; font-weight: 900; }
.placeholder strong { font-size: 26px; }
.placeholder small { color: var(--muted); }
.future-placeholder { background: linear-gradient(135deg, rgba(41,197,216,.38), rgba(90,143,105,.18)), repeating-linear-gradient(90deg, rgba(255,255,255,.26) 0 1px, transparent 1px 24px), #0c2f68; color: #fff; }
.future-placeholder small { color: rgba(255,255,255,.72); }

/* v62: 加载中状态 — 显示旋转加载动画 */
.placeholder.loading::after {
  content: "";
  width: 36px;
  height: 36px;
  border: 3px solid rgba(11,78,162,.18);
  border-top-color: var(--hust-blue);
  border-radius: 50%;
  animation: imgSpin .8s linear infinite;
  margin-top: 6px;
}
.placeholder.loading span,
.placeholder.loading strong,
.placeholder.loading small {
  display: none;
}
.placeholder.loading::before {
  content: "图片加载中…";
  font-size: 13px;
  font-weight: 700;
  color: var(--hust-blue);
  letter-spacing: .04em;
}
.future-placeholder.loading::before {
  color: rgba(255,255,255,.9);
}
.future-placeholder.loading::after {
  border-color: rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.85);
}
@keyframes imgSpin {
  to { transform: rotate(360deg); }
}

/* v62: 加载失败状态 */
.placeholder.error::before {
  content: "图片加载失败";
}
.placeholder.error::after {
  display: none;
}
.placeholder.error strong,
.placeholder.error small {
  display: none;
}
.scene-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.image-badge {
  position: absolute;
  top: 16px;
  z-index: 7;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.38);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 800;
}
.now-badge { left: 16px; }
.future-badge { right: 16px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 48%; width: 2px; z-index: 8; background: rgba(255,255,255,.92); box-shadow: 0 0 18px rgba(41,197,216,.8); pointer-events: none; }
.compare-handle i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.62); backdrop-filter: blur(8px); }
.compare-handle i::after { content: "↔"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 9; cursor: ew-resize; }
.image-tools { display: flex; gap: 8px; padding: 8px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,.62); border: 1px solid rgba(22,48,76,.12); }
.tool { flex: 1; padding: 9px 8px; border-radius: 999px; background: transparent; color: rgba(22,48,76,.58); font-weight: 900; }
.tool.active { color: #fff; background: var(--hust-blue); }
.story-card {
  padding: 17px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 12px 36px rgba(23,42,64,.09);
  display: grid;
  gap: 10px;
}
.story-card p { margin: 0; color: var(--muted); line-height: 1.58; font-size: 14px; }
.mini-label { color: var(--hust-blue); font-size: 12px; letter-spacing: .14em; font-weight: 900; }
.interaction-module {
  min-height: 150px;
  margin-top: 13px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 14px 38px rgba(23,42,64,.10);
}
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.module-head h3 { margin: 0; font-size: 21px; }
.module-head span { color: var(--hust-blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.module-copy { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: 13px; }
.detail-nav { display: flex; gap: 10px; margin-top: 13px; }
.detail-nav button { flex: 1; padding-left: 12px; padding-right: 12px; }

/* detail mode overlays */
.detail-timegate .image-layers { border-radius: 34px 34px 16px 16px; }
.detail-timegate .scene-overlay::before { content: none; }
.detail-book .image-layers { border-radius: 18px 38px 38px 18px; box-shadow: inset 18px 0 28px rgba(0,0,0,.08), var(--shadow); }
.detail-book .scene-overlay::before { content: none; }
.detail-nature .image-layers { border-radius: 45px; }
.detail-nature .scene-overlay::before, .detail-nature .scene-overlay::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255,255,255,.48); bottom: 40px; left: 38px; animation: ripple 2.6s linear infinite; }
.detail-nature .scene-overlay::after { animation-delay: .8s; transform: scale(.7); }
@keyframes ripple { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.6); } }
.detail-classroom .scene-overlay { background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 54px 54px; mix-blend-mode: screen; }
.detail-science .scene-overlay::before { content: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(360px); } }
.detail-medicine .scene-overlay::before { content: none; }
@keyframes pulseLine { 0%,100% { opacity: .38; transform: scaleX(.84); } 50% { opacity: 1; transform: scaleX(1); } }

/* modules */
.timeline-range { width: 100%; accent-color: var(--hust-blue); }
.timeline-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: rgba(22,48,76,.52); font-size: 12px; font-weight: 800; }
.timeline-row span:nth-child(2) { text-align: center; }
.timeline-row span:nth-child(3) { text-align: right; }
.book-stack { display: flex; gap: 10px; }
.book-page { flex: 1; min-height: 70px; padding: 12px; border-radius: 14px; background: #fff8e8; border: 1px solid rgba(22,48,76,.11); font-size: 13px; line-height: 1.45; }
.season-wheel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.season-btn { padding: 12px 4px; border-radius: 16px; background: rgba(90,143,105,.12); font-weight: 900; }
.season-btn.active { background: var(--green); color: #fff; }
.window-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.window-dot { height: 18px; border-radius: 6px; background: rgba(22,48,76,.12); border: 1px solid rgba(22,48,76,.08); }
.window-dot.on { background: #ffd166; box-shadow: 0 0 14px rgba(255,209,102,.72); }
.constellation { position: relative; height: 78px; }
.star { position: absolute; width: 17px; height: 17px; border-radius: 50%; background: rgba(11,78,162,.18); border: 1px solid rgba(11,78,162,.25); }
.star.on { background: var(--cyan); box-shadow: 0 0 20px rgba(41,197,216,.8); }

/* COLLECTION */
.collection { background: linear-gradient(180deg, #f7f1e0, #f2e5ca); }
.notebook {
  position: relative;
  height: 668px;
  margin-top: 18px;
  padding: 26px 18px 18px 34px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(22,48,76,.08) 1px, transparent 1px),
    linear-gradient(#fffaf0, #f7eacb);
  background-size: 100% 100%, 100% 100%;
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: var(--shadow);
}
.notebook-ring { position: absolute; left: 14px; top: 34px; bottom: 34px; width: 8px; background: repeating-linear-gradient(180deg, rgba(22,48,76,.32) 0 18px, transparent 18px 38px); border-radius: 99px; }
.stamp-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stamp {
  min-height: 126px;
  padding: 10px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: rgba(22,48,76,.36);
  background: rgba(255,255,255,.52);
  border: 1px dashed rgba(22,48,76,.22);
  transform: rotate(var(--rot, 0deg));
}
.stamp-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed rgba(22,48,76,.25); font-weight: 900; }
.stamp strong { font-size: 12px; line-height: 1.35; }
.stamp.unlocked { color: var(--hust-blue); background: #fff8e8; border: 2px solid rgba(11,78,162,.58); box-shadow: 0 10px 22px rgba(23,42,64,.10); }
.stamp.unlocked .stamp-icon { color: #fff; background: var(--hust-blue); border: 0; }
.collection-actions { display: flex; gap: 12px; margin-top: 16px; }
.collection-actions button { flex: 1; }

/* ENDING */
.ending { background: linear-gradient(180deg, #0c2f68, #07182e); color: #fff; }
.ending::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 78%); opacity: .48; }
.ticket-wrap { padding-top: 42px; }
.ticket {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,248,232,.86));
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
  overflow: hidden;
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 46%; width: 46px; height: 46px; border-radius: 50%; background: #0a2348; }
.ticket::before { left: -23px; }
.ticket::after { right: -23px; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; color: var(--hust-blue); font-size: 13px; letter-spacing: .12em; font-weight: 900; }
.ticket h2 { margin: 72px 0 18px; font-size: 45px; line-height: 1.12; }
.ticket p { color: var(--muted); line-height: 1.75; font-size: 16px; }
.ticket-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0; }
.ticket-stats div { border-radius: 20px; padding: 18px; background: rgba(11,78,162,.08); }
.ticket-stats strong { display: block; font-size: 28px; color: var(--hust-blue); }
.ticket-stats span { color: var(--muted); font-size: 13px; }
.ticket-footer { position: absolute; left: 34px; right: 34px; bottom: 28px; padding-top: 18px; border-top: 1px dashed rgba(22,48,76,.24); font-size: 13px; color: rgba(22,48,76,.52); }
.ending .wide { margin-top: 22px; }
#posterCanvas { display: none; width: 100%; max-height: 390px; height: auto; margin-top: 18px; border-radius: 26px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.poster-tip { margin: 12px 0 0; color: rgba(255,255,255,.55); font-size: 12px; text-align: center; }

/* INFO */
.info { background: linear-gradient(180deg, #fbf3df, #edf3f1); }
.info-panel {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 14px 36px rgba(23,42,64,.08);
}
.info-panel h3 { margin: 0 0 12px; color: var(--hust-blue); }
.info-panel p { margin: 0; color: var(--muted); line-height: 1.78; font-size: 15px; }
.info .wide { margin-top: 26px; }

@media (max-width: 480px) {
  .page { padding-left: 24px; padding-right: 24px; }
  .cover-hero { left: 22px; right: 22px; }
  .cover-copy { left: 24px; right: 24px; }
  .cover h1 { font-size: 56px; }
  .cover h2 { font-size: 27px; }
  .photo-slot { padding: 18px; }
  .cover-now { width: 285px; }
  .cover-future { width: 272px; }
  .page-title h2 { font-size: 32px; }
  .role-card { width: 220px; }
  .identity-preview, .identity .wide { left: 24px; right: 24px; }
  .image-layers { height: 390px; }
  .notebook { height: 636px; }
  .stamp { min-height: 116px; }
}

/* =========================
   v4 refine patch: based on v2, fixed 640 × 1030 design canvas
   ========================= */
.phone-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}
.h5-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--page-w);
  height: var(--stage-h, var(--page-h));
  min-width: var(--page-w);
  min-height: var(--stage-h, var(--page-h));
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  border-radius: 0;
}
.h5-stage::before {
  content: "";
  position: absolute;
  inset: -26%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 14%, rgba(41,197,216,.20), transparent 24%),
    radial-gradient(circle at 74% 8%, rgba(216,168,91,.16), transparent 22%),
    radial-gradient(circle at 86% 84%, rgba(90,143,105,.18), transparent 26%);
  animation: ambientDrift 14s ease-in-out infinite alternate;
  opacity: .72;
}
@keyframes ambientDrift {
  from { transform: translate3d(-12px,-8px,0) scale(1); }
  to { transform: translate3d(14px,10px,0) scale(1.06); }
}
.pages, .topbar, .bottom-nav, .loading { position: relative; z-index: 1; }
.loading { position: absolute; }
.page {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(246,240,223,.92)),
    radial-gradient(rgba(11,78,162,.08) .8px, transparent .9px);
  background-size: auto, 18px 18px;
}

/* Premium button system: pill surface + sheen + ripple */
.primary-btn, .ghost-btn, .small-btn, .tool, .season-btn, .book-page, .map-pin, .landmark-chip, .campus-head, .stamp, .window-dot, .star {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
}
.primary-btn, .small-btn {
  --btn-bg: linear-gradient(135deg, #073a82 0%, #0b4ea2 42%, #168a9f 72%, #4e8b67 100%);
  min-height: 48px;
  color: #fff;
  background: var(--btn-bg);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow:
    0 16px 34px rgba(11,78,162,.28),
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -12px 22px rgba(0,0,0,.10);
  transform: translateZ(0);
}
.primary-btn::before, .small-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 45%);
  z-index: -1;
}
.primary-btn::after, .small-btn::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  vertical-align: -5px;
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
}
.primary-btn:hover::after, .small-btn:hover::after { transform: translateX(3px); }
.small-btn:active { transform: translateY(2px) scale(.985); filter: saturate(1.08); }
.ghost-btn {
  min-height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,248,232,.68));
  border: 1px solid rgba(22,48,76,.14);
  box-shadow: 0 10px 24px rgba(23,42,64,.10), inset 0 1px 0 rgba(255,255,255,.75);
}
.ghost-btn:active { transform: translateY(2px) scale(.985); }
.small-btn.muted::after, .ghost-btn::after { content: none; }
.btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.58);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut .58s ease-out forwards;
  z-index: 5;
}
@keyframes rippleOut { to { transform: translate(-50%, -50%) scale(28); opacity: 0; } }

/* Route page: replace long film strip with two collapsible campus cards */
.route { background: linear-gradient(180deg, #f7f1e0, #edf3f1); }
.campus-accordion {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.campus-card {
  border-radius: 30px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 16px 38px rgba(23,42,64,.11);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}
.campus-card.open {
  background: rgba(255,248,232,.88);
  box-shadow: 0 26px 64px rgba(23,42,64,.17);
}
.campus-card:has(.campus-head:active) { transform: scale(.992); }
.campus-head {
  width: 100%;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 13px;
  align-items: center;
  text-align: left;
  background: transparent;
}
.campus-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08);
}
.campus-mark img.campus-emblem {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.campus-meta span { display: block; color: var(--hust-blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.campus-meta strong { display: block; margin-top: 4px; font-size: 21px; color: var(--ink); }
.campus-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hust-blue);
  background: rgba(11,78,162,.08);
  transition: transform .28s ease, background .28s ease;
}
.campus-card.open .campus-toggle { transform: rotate(180deg); background: rgba(11,78,162,.14); }
.campus-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .46s cubic-bezier(.2,.9,.2,1), padding .35s ease;
}
.campus-card.open .campus-body { grid-template-rows: 1fr; }
.campus-body-inner {
  overflow: hidden;
  padding: 0 16px;
}
.campus-card.open .campus-body-inner { padding-bottom: 16px; }
.campus-map {
  position: relative;
  height: 244px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,.20)),
    radial-gradient(circle at 22% 30%, rgba(90,143,105,.28), transparent 24%),
    radial-gradient(circle at 70% 66%, rgba(41,197,216,.20), transparent 26%),
    #d9e6de;
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}
.campus-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}
.campus-map[data-map="tongji"]::before { background-size: cover; }
.campus-map[data-map="main"]::before { background-image: url("assets/maps/Main-map.webp"); }
.campus-map[data-map="tongji"]::before { background-image: url("assets/maps/TJ-map.webp"); }
/* v59: 主校区地图保持横向铺满，高度按图片比例自适应，去除上下空白 */
.campus-map[data-map="main"] {
  height: auto !important;
  aspect-ratio: 1672 / 941 !important;
}
.campus-map[data-map="main"]::before {
  background-size: 100% 100% !important;
}
.campus-map::after {
  display: none;
}
.campus-route-line {
  display: none !important;
}
.landmark-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.landmark-chip {
  min-height: 58px;
  padding: 9px 8px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  align-items: center;
  text-align: left;
  border-radius: 17px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(22,48,76,.10);
  box-shadow: 0 8px 18px rgba(23,42,64,.06);
  color: var(--ink);
}
.landmark-chip b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--hust-blue);
  background: rgba(11,78,162,.09);
  font-size: 11px;
}
.landmark-chip span { font-size: 12px; line-height: 1.25; font-weight: 800; }
.landmark-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #0b4ea2, #1593a7 72%, #5a8f69);
  box-shadow: 0 14px 26px rgba(11,78,162,.22), inset 0 1px 0 rgba(255,255,255,.26);
}
.landmark-chip.active b { color: #fff; background: rgba(255,255,255,.18); }
.route-preview-card {
  position: relative;
  inset: auto;
  min-height: 166px;
  margin-top: 16px;
  padding: 21px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,248,232,.94), rgba(255,255,255,.72));
}
.route-preview-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(11,78,162,.14), rgba(41,197,216,.10)),
    repeating-linear-gradient(45deg, rgba(11,78,162,.14) 0 2px, transparent 2px 8px);
  opacity: .62;
}

/* Map pins refined */
.map-pin {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: rgba(255,248,232,.92);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: 0 10px 24px rgba(23,42,64,.20), 0 0 0 5px rgba(255,255,255,.20);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(11,78,162,.22);
  animation: pinPulse 2s ease-out infinite;
}
.map-pin.active { transform: scale(1.18); background: #0b4ea2; color: #fff; }
.map-pin.active::after { border-color: rgba(41,197,216,.55); }
@keyframes pinPulse { 0% { transform: scale(.72); opacity: .72; } 80%,100% { transform: scale(1.25); opacity: 0; } }

/* v56: Map labels — 更大透明圆圈按钮，选中仅波动 */
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-block;
  width: 64px;
  height: 64px;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all .22s ease;
  z-index: 5;
}
/* 隐藏自己生成的图标和文字，只保留透明点击区 */
.map-label b,
.map-label span {
  display: none;
}
/* hover 浮起淡淡边框提示 */
.map-label:hover {
  border-color: rgba(11,78,162,.35);
  background: rgba(11,78,162,.05);
}
/* 路线成员：淡淡圆形描边提示可点 */
.map-label.route-member {
  border-color: rgba(11,78,162,.25);
}
.map-label.route-member:hover {
  background: rgba(11,78,162,.10);
  border-color: rgba(11,78,162,.50);
}
/* 自由探索：更淡的虚线圆 */
.map-label.free-explore {
  border-color: rgba(22,48,76,.18);
  border-style: dashed;
}
/* 已解锁 */
.map-label.unlocked {
  border-color: rgba(90,143,105,.45);
}
.map-label.unlocked:hover {
  background: rgba(90,143,105,.10);
  border-color: rgba(90,143,105,.65);
}
/* 选中状态：无边框，仅波动效果 */
.map-label.active {
  border-color: transparent;
  background: transparent;
  z-index: 6;
  animation: labelPulse 1.4s ease-out infinite;
}
@keyframes labelPulse {
  0% { box-shadow: 0 0 0 0 rgba(41,197,216,.55), 0 0 0 0 rgba(11,78,162,.35); }
  50% { box-shadow: 0 0 0 8px rgba(41,197,216,.25), 0 0 0 14px rgba(11,78,162,.12); }
  100% { box-shadow: 0 0 0 16px rgba(41,197,216,0), 0 0 0 28px rgba(11,78,162,0); }
}

/* Details: keep now/future compare, but move controls into the image and vary the feel */
.image-stage { position: relative; }
.image-layers { height: 424px; }
.image-layers::after {
  content: "拖动图片 · 比较现在 / 未来";
  position: absolute;
  left: 18px;
  bottom: 76px;
  z-index: 7;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.image-tools {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  margin-top: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 16px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.34);
  backdrop-filter: blur(14px);
}
.tool {
  min-height: 38px;
  padding: 8px 6px;
  border-radius: 17px;
  background: rgba(255,255,255,.32);
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tool::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.54);
  vertical-align: 1px;
}
.tool.active {
  color: #fff;
  background: linear-gradient(135deg, #0b4ea2, #1ba1b5);
  box-shadow: 0 8px 18px rgba(11,78,162,.34), inset 0 1px 0 rgba(255,255,255,.32);
}
.tool.active::before { background: #b8e596; box-shadow: 0 0 12px rgba(184,229,150,.9); }
.detail-book .image-tools { top: 14px; bottom: auto; left: 18px; right: 18px; }
.detail-classroom .image-tools { left: 18px; right: auto; bottom: 18px; width: 145px; grid-template-columns: 1fr; border-radius: 24px; }
.detail-science .image-tools, .detail-medicine .image-tools { left: 88px; right: 88px; }
.compare-handle i {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, rgba(255,255,255,.46), rgba(255,255,255,.16));
  box-shadow: 0 10px 28px rgba(0,0,0,.20), 0 0 28px rgba(41,197,216,.45);
  animation: handlePulse 2.4s ease-in-out infinite;
}
@keyframes handlePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 10px 28px rgba(0,0,0,.20), 0 0 24px rgba(11,78,162,.40); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,.20), 0 0 36px rgba(11,78,162,.70); }
}
/* 拖动中暂停脉冲，避免视觉抖动 */
body.dragging-compare .compare-handle i { animation: none; }

.story-card {
  position: relative;
  overflow: hidden;
}
.story-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,78,162,.10), transparent 68%);
}
.detail-nature .story-card { background: linear-gradient(135deg, rgba(255,255,255,.70), rgba(239,247,232,.76)); }
.detail-book .story-card { border-left: 6px solid rgba(216,168,91,.55); }
.detail-classroom .story-card { background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(230,241,250,.74)); }

/* Richer interaction modules */
.interaction-module {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.interaction-card {
  min-height: 150px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 14px 38px rgba(23,42,64,.10);
  overflow: hidden;
}
.module-head span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11,78,162,.08);
}
.module-copy { position: relative; z-index: 1; }
.timeline-range {
  height: 34px;
  appearance: none;
  background: transparent;
}
.timeline-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a76b, #0b4ea2 55%, #29c5d8);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.timeline-range::-webkit-slider-thumb {
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid #0b4ea2;
  box-shadow: 0 10px 22px rgba(11,78,162,.25);
}
.timegate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.timegate-card {
  padding: 10px 8px;
  border-radius: 17px;
  background: rgba(255,248,232,.74);
  border: 1px solid rgba(22,48,76,.10);
}
.timegate-card b { display: block; color: var(--hust-blue); font-size: 14px; }
.timegate-card small { color: var(--muted); font-size: 11px; }
.book-stack { perspective: 800px; }
.book-page {
  min-height: 88px;
  background:
    linear-gradient(90deg, rgba(216,168,91,.18), transparent 12%),
    linear-gradient(180deg, #fffaf0, #fff3d6);
  box-shadow: 0 12px 24px rgba(23,42,64,.08);
  transform-origin: left center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.book-page:active { transform: rotateY(-10deg) translateY(-2px); }
.season-wheel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 8px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(90,143,105,.10), rgba(41,197,216,.08)),
    rgba(255,255,255,.45);
}
.season-btn {
  min-height: 54px;
  padding: 8px 4px;
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(22,48,76,.10);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 8px 16px rgba(23,42,64,.05);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.season-btn::before {
  content: attr(data-season);
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 3px;
  border-radius: 50%;
  background: rgba(90,143,105,.13);
  color: transparent;
}
.season-btn[data-season="春"]::before { background: radial-gradient(circle, #f0d487 0 36%, #8ebf79 38%); }
.season-btn[data-season="夏"]::before { background: radial-gradient(circle, #fff 0 22%, #2ca7ad 24% 64%, #0b4ea2 66%); }
.season-btn[data-season="秋"]::before { background: radial-gradient(circle, #f4d48a 0 34%, #c77a38 36% 64%, #8e5131 66%); }
.season-btn[data-season="冬"]::before { background: radial-gradient(circle, #fff 0 30%, #b9d7e8 34% 62%, #6a89a7 66%); }
.season-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0b4ea2, #3f956c);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11,78,162,.18), inset 0 1px 0 rgba(255,255,255,.28);
}
.window-grid {
  position: relative;
  padding: 18px 16px 20px;
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(12,47,104,.90), rgba(8,25,52,.86));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.window-grid::before {
  content: "FUTURE CLASSROOM";
  position: absolute;
  right: 16px;
  top: 7px;
  color: rgba(255,255,255,.34);
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 900;
}
.window-dot { height: 20px; border-radius: 5px; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.10); }
.window-dot.on { background: #ffd166; box-shadow: 0 0 18px rgba(255,209,102,.78), inset 0 0 0 1px rgba(255,255,255,.46); }
.constellation {
  height: 104px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 40%, rgba(41,197,216,.16), transparent 18%),
    radial-gradient(circle at 70% 25%, rgba(216,168,91,.14), transparent 18%),
    linear-gradient(135deg, rgba(12,47,104,.90), rgba(7,24,46,.90));
  overflow: hidden;
}
.constellation::before {
  content: "";
  position: absolute;
  inset: 22px 36px;
  border-top: 1px dashed rgba(255,255,255,.24);
  transform: skewY(-12deg);
}
.star { width: 19px; height: 19px; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.26); }
.star.on { background: #29c5d8; box-shadow: 0 0 22px rgba(41,197,216,.88), 0 0 0 8px rgba(41,197,216,.10); }
.pulse-strip {
  position: relative;
  height: 104px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12,47,104,.92), rgba(45,80,94,.88));
}
.pulse-strip::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff 14%, #e95b69 18%, #fff 22%, transparent 30%, transparent 46%, #fff 52%, #e95b69 56%, #fff 60%, transparent 72%);
  animation: pulseMove 2.2s linear infinite;
  filter: drop-shadow(0 0 12px rgba(233,91,105,.7));
}
@keyframes pulseMove { from { transform: translateX(0); } to { transform: translateX(28%); } }
@keyframes seasonPop{from{opacity:1;transform:translateY(0) scale(.8)}to{opacity:0;transform:translateY(-42px) scale(1.6)}}

@media (max-width: 640px), (max-height: 1030px) {
  body { background: #07182e; }
}

/* v4 layout corrections */
.pages { position: relative; z-index: 1; }
.topbar { position: absolute; z-index: 20; }
.bottom-nav { position: absolute; z-index: 22; }
.loading { position: absolute; z-index: 50; }
.campus-head { padding: 14px 16px; grid-template-columns: 42px 1fr auto; }
.campus-mark { width: 42px; height: 42px; border-radius: 50%; }
.campus-meta strong { font-size: 20px; }
.campus-meta small { display: block; margin-top: 2px; color: rgba(22,48,76,.52); font-size: 12px; line-height: 1.25; }
.campus-map { height: 202px; }
.landmark-chip-grid { gap: 7px; margin-top: 10px; }
.landmark-chip { min-height: 46px; padding: 6px 7px; border-radius: 15px; }
.landmark-chip b { width: 22px; height: 22px; border-radius: 8px; }
.landmark-chip span { font-size: 11px; }
.route-preview-card { min-height: 146px; margin-top: 13px; padding: 18px 20px; }
.route-preview-card h3 { font-size: 23px; margin: 7px 0 6px; }
.route-preview-card p { margin-bottom: 10px; }
.route-preview-card .small-btn { min-height: 42px; padding: 9px 15px; font-size: 13px; }

/* ===== v8 repair: back to stable v4 style, only safe improvements ===== */
.h5-stage { position: absolute; left: 50%; top: 50%; width: var(--page-w); height: var(--stage-h, var(--page-h)); transform: translate(-50%, -50%) scale(var(--stage-scale, 1)); transform-origin: center center; }
.identity-preview { display: none !important; }
.identity-desk { height: 620px; margin-top: 22px; }
.identity .identity-next { position: absolute; left: 38px; right: 38px; bottom: 76px; width: auto; }
.role-card { opacity: 0; transform: translateY(26px) rotate(0deg); }
.page-ready .role-card { animation: roleIn .72s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--delay, 0ms); }
.page-ready .role-card.highschool { transform: rotate(-5deg); }
@keyframes roleIn { from { opacity:0; transform: translateY(40px) rotate(0deg) scale(.98); filter: blur(8px);} to { opacity:1; filter: blur(0);} }

/* subtle page/component entrance animations */
.page [data-anim], .page .campus-card, .page .route-preview-card, .page .detail-header, .page .detail-layout, .page .interaction-module, .page .detail-nav, .page .notebook, .page .collection-actions, .page .ticket-wrap {
  opacity: 0;
  transform: translateY(22px);
}
.page.page-ready [data-anim], .page.page-ready .campus-card, .page.page-ready .route-preview-card, .page.page-ready .detail-header, .page.page-ready .detail-layout, .page.page-ready .interaction-module, .page.page-ready .detail-nav, .page.page-ready .notebook, .page.page-ready .collection-actions, .page.page-ready .ticket-wrap {
  animation: softReveal .66s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes softReveal { from { opacity:0; transform:translateY(28px); filter: blur(7px);} to { opacity:1; transform:translateY(0); filter: blur(0);} }

/* make decorative layers never block clicks */
.cover::before, .cover::after, .detail::before, .detail::after, .image-stage::before, .image-layers::before, .image-layers::after, .story-card::before, .story-card::after, .route-preview-card::before, .route-preview-card::after, .campus-map::before, .campus-map::after, .campus-route-line, .map-pin::after, .paper-noise, .cover-map-lines, .cover-map-lines span, .notebook::before { pointer-events: none !important; }
.bottom-nav { z-index: 42; }
button, .campus-accordion, .interaction-module, .detail-nav, .collection-actions, .stamp-wall, .identity-desk { position: relative; z-index: 6; }

/* clean detail background: generated art only as atmosphere, not as compare image */
.detail { background: linear-gradient(180deg, #fbf3df, #edf3f1); }
.detail::before {
  content:"";
  position:absolute;
  inset:-22px;
  z-index:0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(246,240,223,.88)), var(--landmark-bg) center/cover no-repeat;
  opacity:.32;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.06);
}
.detail::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: radial-gradient(circle at 12% 20%, rgba(41,197,216,.14), transparent 24%), radial-gradient(circle at 84% 72%, rgba(216,168,91,.14), transparent 24%);
}
.detail > * { z-index:2; }

/* remove mode buttons; keep one calm hint outside image */
.image-tools { display: none !important; }
.image-hint-line {
  margin: 10px 8px 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(22,48,76,.72);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(22,48,76,.10);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 22px rgba(23,42,64,.06);
}
#imageLayers { touch-action: pan-y; user-select: none; }
.compare-range { pointer-events: none; opacity: 0; }
body.dragging-compare * { cursor: ew-resize !important; }
.image-layers::after { content: none !important; }
.compare-handle i::after { content: "⇆"; }

/* maintain neat route card, avoid generated icon clutter */
.campus-card { background: rgba(255,248,232,.88); }
.campus-head { min-height: 82px; }
.campus-mark { font-size: 13px; }
.landmark-chip-grid { grid-template-columns: repeat(3, 1fr); }
.map-pin { z-index: 4; }
.route-preview-card { z-index: 7; }

/* slight variety on detail layouts without breaking structure */
.detail-book .detail-layout, .detail-classroom .detail-layout, .detail-science .detail-layout, .detail-medicine .detail-layout { grid-template-columns: 1.12fr .88fr; align-items: start; }
.detail-book .image-stage, .detail-classroom .image-stage, .detail-science .image-stage, .detail-medicine .image-stage { grid-row: 1 / span 2; }
.detail-book .story-card, .detail-classroom .story-card, .detail-science .story-card, .detail-medicine .story-card { min-height: 210px; align-content: start; }
.detail-book .image-layers, .detail-classroom .image-layers, .detail-science .image-layers, .detail-medicine .image-layers { height: 392px; }
.detail-timegate .story-card, .detail-nature .story-card { margin: -30px 22px 0; z-index: 8; background: rgba(255,255,255,.78); backdrop-filter: blur(12px); }
.detail-timegate .detail-layout, .detail-nature .detail-layout { display: block; }
.detail-timegate .image-stage, .detail-nature .image-stage { margin-bottom: 0; }

/* refined buttons but not excessive — v31 渐变玻璃已接管，清理旧硬阴影定义 */
.ghost-btn, .small-btn.muted { box-shadow: 0 8px 18px rgba(23,42,64,.08), inset 0 1px 0 rgba(255,255,255,.75); }

/* keep collection clickable */
.notebook { z-index: 4; }
.stamp { z-index: 5; }

/* ===== v9 targeted repair ===== */
/* stronger cover readability */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,23,45,.10) 0%, rgba(8,23,45,.16) 26%, rgba(8,23,45,.44) 62%, rgba(8,23,45,.76) 100%);
  pointer-events: none;
  z-index: 1;
}
.cover-copy {
  padding: 26px 24px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(7,24,46,.34), rgba(7,24,46,.60));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 52px rgba(0,0,0,.18);
}
.cover h1 { color: #fff9ec; text-shadow: 0 8px 24px rgba(0,0,0,.30); }
.cover h2 { color: rgba(255,255,255,.96); text-shadow: 0 5px 16px rgba(0,0,0,.26); }
.lead, .ai-note, .cover-copy .eyebrow { color: rgba(255,255,255,.88); }
.ai-note { font-size: 12px; opacity: .86; }

/* identity page fixes */
.identity { overflow: hidden; }
.identity-desk {
  height: calc(var(--stage-h, var(--page-h)) - 330px);
  min-height: 660px;
  margin-top: 18px;
}
.role-card { width: 252px; min-height: 186px; transform: rotate(var(--card-tilt, 0deg)); }
.role-card.highschool { left: 34px; top: 18px; --card-tilt: -7deg; }
.role-card.student { right: 18px; top: 148px; --card-tilt: 6deg; }
.role-card.alumni { left: 2px; top: 326px; --card-tilt: 5deg; }
.role-card.public { right: 42px; top: 474px; --card-tilt: -6deg; }
.role-card.active { box-shadow: 0 28px 70px rgba(11,78,162,.24); }
.role-card.active::before { opacity: .95; }
.identity .identity-next { display: none !important; }
.identity-next[disabled] {
  opacity: .56;
  filter: grayscale(.14);
  cursor: not-allowed;
  box-shadow: 0 6px 0 rgba(11,78,162,.12), 0 10px 18px rgba(11,78,162,.10);
}
.identity-next[disabled]:active { transform: none; }

/* slower, left-right reveal instead of popping up */
.page [data-anim], .page .campus-card, .page .route-preview-card, .page .detail-header, .page .detail-layout, .page .interaction-module, .page .detail-nav, .page .notebook, .page .collection-actions, .page .ticket-wrap {
  opacity: 0;
  transform: translateX(0) translateY(0);
}
.page .role-card { opacity: 0; }
.page.page-ready [data-anim][data-from="left"], .page.page-ready .campus-card {
  animation: revealFromLeft .92s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--delay, 0ms);
}
.page.page-ready [data-anim][data-from="right"], .page.page-ready .route-preview-card, .page.page-ready .detail-nav, .page.page-ready .collection-actions {
  animation: revealFromRight .92s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--delay, 0ms);
}
.page.page-ready .role-card[data-from="left"] { animation: revealRoleFromLeft .98s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--delay, 0ms); }
.page.page-ready .role-card[data-from="right"] { animation: revealRoleFromRight .98s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--delay, 0ms); }
@keyframes revealFromLeft { from { opacity:0; transform: translateX(-32px); filter: blur(8px);} to { opacity:1; transform: translateX(0); filter: blur(0);} }
@keyframes revealFromRight { from { opacity:0; transform: translateX(32px); filter: blur(8px);} to { opacity:1; transform: translateX(0); filter: blur(0);} }
@keyframes revealRoleFromLeft {
  from { opacity: 0; transform: translateX(-32px) rotate(var(--card-tilt, 0deg)); filter: blur(8px); }
  to { opacity: 1; transform: translateX(0) rotate(var(--card-tilt, 0deg)); filter: blur(0); }
}
@keyframes revealRoleFromRight {
  from { opacity: 0; transform: translateX(32px) rotate(var(--card-tilt, 0deg)); filter: blur(8px); }
  to { opacity: 1; transform: translateX(0) rotate(var(--card-tilt, 0deg)); filter: blur(0); }
}

/* once selected, cards keep their light scattered tilt */
.role-card.active.highschool,
.role-card.active.student,
.role-card.active.alumni,
.role-card.active.public {
  animation: none;
  transform: rotate(var(--card-tilt, 0deg)) translateY(-4px);
}

.boar-run {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: clamp(66px, calc(66px + (var(--stage-h, var(--page-h)) - var(--page-h)) * .28), 176px);
  height: 136px;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
}
.identity.page-ready .boar-run { animation: boarFade .78s cubic-bezier(.22,1,.36,1) .55s both; }
.boar-track {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 20px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(90,143,105,.22), rgba(90,143,105,.05) 58%, transparent 68%);
  filter: blur(1px);
}
.boar {
  position: absolute;
  left: 2%;
  bottom: 18px;
  width: 210px;
  height: auto;
  animation: boarTrot 3.2s cubic-bezier(.2,.84,.16,1) .72s both;
  transform-origin: 50% 92%;
}
.boar img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(71,50,32,.22));
}
@keyframes boarTrot {
  0% { transform: translateX(-190px) translateY(22px) rotate(-5deg) scale(.9); }
  22% { transform: translateX(-42px) translateY(-20px) rotate(4deg) scale(.98); }
  40% { transform: translateX(74px) translateY(8px) rotate(-2deg) scale(.95); }
  58% { transform: translateX(170px) translateY(-18px) rotate(3deg) scale(1); }
  76% { transform: translateX(252px) translateY(6px) rotate(-1deg) scale(.97); }
  90% { transform: translateX(292px) translateY(-5px) rotate(1deg) scale(.98); }
  100% { transform: translateX(302px) translateY(0) rotate(0deg) scale(.98); }
}
@keyframes boarFade {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* route page: remove lower chip components, use map markers only */
.landmark-chip-grid { display: none !important; }
.campus-body-inner { padding-bottom: 14px; }
.map-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(22,48,76,.10);
  box-shadow: 0 10px 24px rgba(23,42,64,.07);
}
.map-note-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11,78,162,.08);
  color: var(--hust-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.map-note strong { display: block; margin-top: 10px; font-size: 16px; }
.map-note span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.map-pin {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: linear-gradient(180deg, #34a8c0, #0f67b0 65%, #0b4ea2);
  color: #fff;
  font-weight: 900;
  border: 2px solid rgba(255,255,255,.9);
}
.map-pin span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  font-size: 12px;
}
.map-pin.active { transform: translate(-50%, -50%) rotate(-45deg) scale(1.12); }
.map-pin.unlocked { box-shadow: 0 0 0 6px rgba(90,143,105,.14), 0 12px 26px rgba(23,42,64,.16); }

/* v54: route page map-label 透明点击区 */
.map-label {
  transform: translate(-50%, -50%);
}
.map-label.active { transform: translate(-50%, -50%); }
.route-preview-card { min-height: 164px; }

/* detail page interaction safety */
.detail, .route, .identity, .collection, .ending, .info { isolation: isolate; }
.story-card, .interaction-module, .detail-nav, .route-preview-card, .campus-accordion, .map-note, .collection-actions, .ticket-wrap, .info-panel {
  position: relative;
  z-index: 8;
}
.image-stage, .image-layers, #imageLayers { position: relative; z-index: 6; }
.image-stage::before, .story-card::before, .story-card::after, .interaction-card::before, .interaction-card::after, .map-note::before, .map-note::after,
.campus-head::before, .campus-head::after, .route-preview-card::before, .route-preview-card::after, .notebook::before { pointer-events: none !important; }

/* identity-specific viewing styles */
.h5-stage.theme-highschool .route,
.h5-stage.theme-highschool .detail,
.h5-stage.theme-highschool .collection { background: linear-gradient(180deg, #eef5ff, #e4effb); }
.h5-stage.theme-student .route,
.h5-stage.theme-student .detail,
.h5-stage.theme-student .collection { background: linear-gradient(180deg, #edf4ff, #eef5f2); }
.h5-stage.theme-alumni .route,
.h5-stage.theme-alumni .detail,
.h5-stage.theme-alumni .collection { background: linear-gradient(180deg, #f8ecd9, #f4efe5); }
.h5-stage.theme-public .route,
.h5-stage.theme-public .detail,
.h5-stage.theme-public .collection { background: linear-gradient(180deg, #eef5e7, #edf5f2); }
.h5-stage.theme-highschool .route-preview-card span { background: rgba(10,115,253,.10); color: #0A73FD; }
.h5-stage.theme-student .route-preview-card span { background: rgba(11,78,162,.08); color: var(--hust-blue); }
.h5-stage.theme-alumni .route-preview-card span { background: rgba(185,139,97,.12); color: #8b5c37; }
.h5-stage.theme-public .route-preview-card span { background: rgba(90,143,105,.12); color: #467252; }

/* prevent yellow blank feeling by ensuring backgrounds and content are visible */
.page { background-color: transparent; }
.page-title, .campus-accordion, .route-preview-card, .detail-header, .detail-layout, .interaction-module, .notebook, .collection-actions, .ticket-wrap, .info-panel { visibility: visible; }

.page-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(12, 47, 104, .88);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity .35s, transform .35s;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(12, 47, 104, .32);
}
.page-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.h5-stage {
  --identity-visual: none;
  --identity-accent: var(--hust-blue);
  --identity-soft: #edf3f1;
}

.bottom-nav,
.detail-nav {
  display: none !important;
}

.pages {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: none !important;
  transition: none !important;
}
.page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(26px);
  transition: opacity .42s ease, transform .52s cubic-bezier(.22,1,.36,1), visibility .42s ease;
}
.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.route::before,
.collection::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(246,240,223,.88)),
    var(--identity-visual) center/cover no-repeat;
  opacity: .34;
  filter: saturate(1.04) blur(5px);
  transform: scale(1.04);
  pointer-events: none;
}
.route > *,
.collection > * { position: relative; z-index: 2; }
.detail::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(246,240,223,.88)),
    var(--identity-visual) center/cover no-repeat,
    var(--landmark-bg) center/cover no-repeat;
  opacity: .36;
  filter: blur(9px) saturate(1.08);
}

.h5-stage.theme-highschool {
  --identity-accent: #0A73FD;
  --identity-soft: #e6f2ff;
}
.h5-stage.theme-student {
  --identity-accent: #0b4ea2;
  --identity-soft: #e8f2ff;
}
.h5-stage.theme-alumni {
  --identity-accent: #b98252;
  --identity-soft: #f7e2c9;
}
.h5-stage.theme-public {
  --identity-accent: #6f8f6a;
  --identity-soft: #e8f0e2;
}
.mini-label,
.module-head span,
.eyebrow.dark {
  color: var(--identity-accent);
}
.route-preview-card,
.story-card,
.interaction-card,
.campus-card.open {
  border-color: color-mix(in srgb, var(--identity-accent) 24%, rgba(22,48,76,.12));
}

.story-card {
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58)),
    var(--identity-soft);
}
.task-status {
  position: relative;
  padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--identity-accent) 16%, #fff), rgba(255,255,255,.72));
  border: 1px solid color-mix(in srgb, var(--identity-accent) 25%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 22px rgba(23,42,64,.08);
}
.task-status span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--identity-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}
.task-status strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 17px;
}
.task-status small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.future-layer { transition: clip-path .68s cubic-bezier(.2,.9,.2,1); }
.detail.task-complete .compare-handle { opacity: 0; transition: opacity .35s ease; }
.detail.task-complete .future-badge {
  background: color-mix(in srgb, var(--identity-accent) 82%, #16304c);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--identity-accent) 30%, transparent);
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.task-step {
  border: 1px solid rgba(22,48,76,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.task-step:active {
  transform: translateY(2px) scale(.985);
}
.task-step.done,
.season-btn.done,
.book-page.done {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--identity-accent) 84%, #16304c), #1aa1aa);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--identity-accent) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.28);
}
.timegate-card.task-step {
  cursor: pointer;
  text-align: left;
}
.timegate-card.task-step b,
.timegate-card.task-step small {
  position: relative;
  z-index: 1;
}
.timegate-card.task-step.done b,
.timegate-card.task-step.done small { color: #fff; }
.book-page.done b,
.book-page.done br { color: inherit; }
.window-dot.locked { opacity: .52; pointer-events: none; }
.window-dot.done { outline: 2px solid rgba(255,255,255,.72); }
.star.done { transform: scale(1.12); }

.task-spark {
  position: absolute;
  z-index: 9;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--identity-accent) 58%, #fff);
  animation: taskSpark .82s ease-out forwards;
  pointer-events: none;
}
.task-spark.strong {
  width: 14px;
  height: 14px;
  background: color-mix(in srgb, var(--identity-accent) 55%, #fff);
}
@keyframes taskSpark {
  from { opacity: .95; transform: translate3d(0,0,0) scale(.65); }
  to { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(1.6); }
}

/* Forest university cover background */
.cover {
  background: #07182e url("./assets/generated/cover-forest-hust.webp") center/cover no-repeat !important;
}
.cover::before {
  z-index: 0;
  opacity: .62;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,230,151,.25), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(12,47,104,.28), transparent 28%),
    linear-gradient(180deg, rgba(5,19,33,.18) 0%, rgba(5,19,33,.12) 36%, rgba(5,19,33,.52) 74%, rgba(5,19,33,.88) 100%);
  background-size: auto;
  mask-image: none;
}
.cover::after {
  background:
    linear-gradient(180deg, rgba(5,19,33,.06) 0%, rgba(5,19,33,.18) 42%, rgba(5,19,33,.66) 72%, rgba(5,19,33,.92) 100%),
    linear-gradient(90deg, rgba(5,19,33,.50), transparent 38%, rgba(5,19,33,.18));
}
.cover-map-lines { opacity: .24; mix-blend-mode: screen; }
.photo-slot {
  background: rgba(7,24,46,.22) !important;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 22px 58px rgba(0,0,0,.18);
  backdrop-filter: blur(8px) saturate(1.08);
}
.cover-now { background: url('./图片/梧桐大道-now.webp') center/cover !important; }
.cover-future { background: url('./图片/梧桐大道-future.webp') center/cover !important; }
.photo-slot::after { background: linear-gradient(0deg, rgba(4,18,31,.46), rgba(4,18,31,.05) 64%); }
.cover-copy {
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.cover h1 {
  color: #fff7df;
  text-shadow: 0 8px 22px rgba(0,0,0,.42), 0 1px 0 rgba(255,255,255,.18);
}
.cover h2,
.lead,
.ai-note,
.cover-copy .eyebrow {
  text-shadow: 0 4px 16px rgba(0,0,0,.36);
}

.loading.hide {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ===== v10 route/content repair ===== */
.identity {
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(246,240,223,.86) 46%, rgba(238,243,241,.90)),
    url("./assets/generated/identity-entry-bg.webp") center/cover no-repeat !important;
}
.identity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.56) 34%, rgba(246,240,223,.64) 100%),
    radial-gradient(circle at 12% 16%, rgba(216,168,91,.18), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(11,78,162,.14), transparent 30%);
  pointer-events: none;
}
.identity > * { position: relative; z-index: 2; }
.role-card {
  background-color: rgba(255,248,232,.84);
  backdrop-filter: blur(10px) saturate(1.08);
}

.guide-bear {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 18;
  width: 138px;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
}
.guide-bear.guide-hidden {
  opacity: 0;
  transform: translateY(16px);
}
.guide-bear img {
  display: block;
  width: 112px;
  margin-left: auto;
  filter: drop-shadow(0 14px 20px rgba(23,42,64,.22));
}
.guide-bubble {
  position: absolute;
  right: 86px;
  bottom: 66px;
  width: 210px;
  padding: 10px 13px;
  border-radius: 18px 18px 5px 18px;
  color: var(--ink);
  background: rgba(255,248,232,.88);
  border: 1px solid rgba(22,48,76,.13);
  box-shadow: 0 14px 32px rgba(23,42,64,.14);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.h5-stage[data-page="identity"] .guide-bear {
  right: 8px;
  bottom: 8px;
  width: 120px;
}
.h5-stage[data-page="identity"] .guide-bear img { width: 96px; }
.h5-stage[data-page="identity"] .guide-bubble { display: none; }
.h5-stage[data-page="ending"] .guide-bear,
.h5-stage[data-page="info"] .guide-bear { display: none; }

.map-pin.route-member {
  background: linear-gradient(180deg, color-mix(in srgb, var(--identity-accent) 72%, #34a8c0), #0b4ea2 70%);
}
.map-pin.route-member::after {
  content: attr(data-order);
  position: absolute;
  right: -9px;
  top: -10px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--identity-accent);
  background: rgba(255,248,232,.96);
  border: 1px solid rgba(22,48,76,.14);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(45deg);
  box-shadow: 0 8px 16px rgba(23,42,64,.14);
}
.map-pin.free-explore {
  opacity: .62;
  filter: grayscale(.38);
  background: linear-gradient(180deg, rgba(120,138,153,.82), rgba(52,72,91,.82));
}
.map-pin.free-explore.active {
  opacity: 1;
  filter: none;
}
.map-note-tag {
  background: color-mix(in srgb, var(--identity-accent) 16%, rgba(255,255,255,.82));
  color: color-mix(in srgb, var(--identity-accent) 78%, var(--ink));
}

.detail-layout,
.detail-book .detail-layout,
.detail-classroom .detail-layout,
.detail-science .detail-layout,
.detail-medicine .detail-layout,
.detail-canteen .detail-layout {
  display: block !important;
}
.detail .image-stage,
.detail-book .image-stage,
.detail-classroom .image-stage,
.detail-science .image-stage,
.detail-medicine .image-stage,
.detail-canteen .image-stage {
  grid-row: auto;
  margin-bottom: 0;
}
.detail .image-layers,
.detail-book .image-layers,
.detail-classroom .image-layers,
.detail-science .image-layers,
.detail-medicine .image-layers,
.detail-canteen .image-layers {
  height: 460px !important;
  border-radius: 30px !important;
}
.detail .story-card,
.detail-book .story-card,
.detail-classroom .story-card,
.detail-science .story-card,
.detail-medicine .story-card,
.detail-canteen .story-card,
.detail-timegate .story-card,
.detail-nature .story-card {
  min-height: 0;
  margin: 12px 0 0 !important;
  align-content: start;
  z-index: 8;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
}
.interaction-module {
  min-height: 138px;
}
.task-next-btn {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 14px;
  box-shadow: 0 7px 0 rgba(8,58,121,.70), 0 14px 24px rgba(11,78,162,.18), inset 0 1px 0 rgba(255,255,255,.25);
}
.task-next-btn[hidden] { display: none !important; }
.meal-card {
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255,248,232,.92), rgba(255,255,255,.74)),
    radial-gradient(circle at 88% 18%, rgba(216,168,91,.18), transparent 28%);
}
.meal-card b { display: block; margin-bottom: 6px; color: var(--ink); }
.meal-card small { display: block; color: var(--muted); line-height: 1.35; }
.meal-card.done b,
.meal-card.done small { color: #fff; }

.stamp-wall {
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.notebook {
  height: 666px;
  padding: 22px 16px 16px 32px;
}
.stamp {
  position: relative;
  min-height: 106px;
  padding: 8px 6px;
}
.stamp.route-member::after {
  content: attr(data-order);
  position: absolute;
  right: 7px;
  top: 7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--identity-accent) 16%, #fff);
  color: var(--identity-accent);
  font-size: 11px;
  font-weight: 900;
}
.stamp.free-explore {
  opacity: .76;
}
.stamp.free-explore::after {
  content: "彩";
  position: absolute;
  right: 7px;
  top: 7px;
  color: rgba(22,48,76,.44);
  font-size: 11px;
  font-weight: 900;
}

.ticket {
  min-height: 594px;
  padding: 30px;
}
.ticket h2 {
  margin: 46px 0 14px;
  font-size: 38px;
}
.ticket p {
  font-size: 14px;
  line-height: 1.66;
  max-height: 230px;
  overflow: hidden;
}
.ticket-stats { margin: 22px 0; }
#posterCanvas {
  width: min(100%, 390px);
  max-height: 640px;
  aspect-ratio: 640 / 1030;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
}
.poster-download {
  display: block;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #16304c, #0b4ea2 64%, #168a9f);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 10px 24px rgba(11,78,162,.22);
}
.poster-download[hidden] { display: none !important; }

/* final fit polish */
.identity-desk {
  min-height: 600px;
}
.role-card {
  width: 236px;
  min-height: 162px;
}
.role-card.highschool { left: 34px; top: 14px; --card-tilt: -7deg; }
.role-card.student { right: 18px; top: 126px; --card-tilt: 6deg; }
.role-card.alumni { left: 8px; top: 276px; --card-tilt: 5deg; }
.role-card.public { right: 34px; top: 410px; --card-tilt: -6deg; }
.boar-run {
  bottom: clamp(72px, calc(72px + (var(--stage-h, var(--page-h)) - var(--page-h)) * .18), 132px);
}
.ending.active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ending.active::-webkit-scrollbar { display: none; }
#posterCanvas {
  width: min(100%, 360px);
}
.poster-download {
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ===== v11 interaction redesign ===== */
.music-toggle {
  pointer-events: auto;
  position: relative;
  margin-left: auto;
  margin-right: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #5ce1e6 0%, #a78bfa 45%, #f472b6 85%, #fb923c 100%);
  border: none;
  box-shadow:
    inset 0 2px 12px rgba(255, 255, 255, .50),
    inset 0 4px 24px rgba(255, 255, 255, .25),
    0 8px 24px rgba(92, 225, 230, .22);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 4px rgba(0,0,0,.14);
}
/* 高光层：椭圆 + blur + plus-lighter */
.music-toggle::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 140%;
  height: 120%;
  left: -20%;
  top: -10%;
  border-radius: inherit;
  background: radial-gradient(ellipse 65% 50% at 30% 24%, rgba(255, 255, 255, .80), transparent 62%);
  filter: blur(48px);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  z-index: 1;
}
/* 内描边 */
.music-toggle::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .32);
  pointer-events: none;
  z-index: 2;
}
.music-toggle[hidden] { display: none !important; }
.music-toggle.playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1.5px solid rgba(92, 225, 230, .55);
  animation: musicPulse 1.8s ease-out infinite;
  z-index: 3;
}
@keyframes musicPulse { from { opacity: .8; transform: scale(.84); } to { opacity: 0; transform: scale(1.24); } }

/* —— 音乐按钮内部元素：图标 + 文字 —— */
.music-icon {
  font-size: 14px;
  position: relative;
  z-index: 4;
}
.music-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .92;
  position: relative;
  z-index: 4;
  transform: translateY(-1.5px);
}
/* 播放时文字变化：BGM → PAUSE */
.music-toggle.playing .music-label {
  content: "PAUSE";
}
/* 用 JS 切换更可靠，此处仅做样式定位 */

.image-hint-line { display: none !important; }

.slope-scene {
  position: absolute;
  left: 26px;
  bottom: 40px;
  width: 310px;
  height: 146px;
  z-index: 1;
  opacity: .82;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(23,42,64,.10));
}
.slope-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.h5-stage[data-page="identity"] .guide-bear {
  left: 46px;
  right: auto;
  bottom: 68px;
  width: 126px;
  z-index: 16;
  animation: guidePop .82s cubic-bezier(.22,1,.36,1) both;
}
.h5-stage[data-page="identity"] .guide-bear img { width: 118px; }
.h5-stage[data-page="route"] .guide-bear {
  left: 30px;
  right: auto;
  bottom: 18px;
}
.h5-stage[data-page="route"] .guide-bubble {
  left: 96px;
  right: auto;
  bottom: 66px;
  border-radius: 18px 18px 18px 5px;
}
.h5-stage[data-page="detail"] .guide-bear {
  right: 8px;
  bottom: 10px;
}
.h5-stage[data-page="collection"] .guide-bear {
  left: 20px;
  right: auto;
  bottom: 18px;
}
.h5-stage[data-page="collection"] .guide-bubble {
  left: 88px;
  right: auto;
  bottom: 70px;
}
@keyframes guidePop {
  from { opacity: 0; transform: translateY(18px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.boar-run {
  left: 330px;
  right: 38px;
  bottom: clamp(86px, calc(86px + (var(--stage-h, var(--page-h)) - var(--page-h)) * .18), 142px);
}
.boar { width: 166px; }
@keyframes boarTrot {
  0% { transform: translateX(-190px) translateY(22px) rotate(-5deg) scale(.9); }
  22% { transform: translateX(-78px) translateY(-20px) rotate(4deg) scale(.98); }
  40% { transform: translateX(4px) translateY(8px) rotate(-2deg) scale(.95); }
  58% { transform: translateX(76px) translateY(-18px) rotate(3deg) scale(1); }
  76% { transform: translateX(124px) translateY(6px) rotate(-1deg) scale(.97); }
  90% { transform: translateX(138px) translateY(-5px) rotate(1deg) scale(.98); }
  100% { transform: translateX(132px) translateY(0) rotate(0deg) scale(.98); }
}

.route-preview-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
}
.route-preview-media {
  position: relative;
  min-height: 136px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(22,48,76,.08);
  border: 1px solid rgba(22,48,76,.10);
}
.route-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 136px;
  object-fit: cover;
  display: none;
}
.route-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: rgba(22,48,76,.64);
  background:
    linear-gradient(135deg, rgba(255,255,255,.70), rgba(255,255,255,.36)),
    repeating-linear-gradient(90deg, rgba(22,48,76,.08) 0 1px, transparent 1px 20px);
  font-size: 12px;
  font-weight: 900;
}
.route-preview-placeholder small { font-weight: 700; opacity: .72; }
/* v62: 路线卡片预览图加载状态 */
.route-preview-placeholder.loading::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(11,78,162,.18);
  border-top-color: var(--hust-blue);
  border-radius: 50%;
  animation: imgSpin .8s linear infinite;
  margin-top: 4px;
}
.route-preview-placeholder.loading strong,
.route-preview-placeholder.loading small { display: none; }
.route-preview-placeholder.loading::before {
  content: "加载中…";
  font-size: 12px;
  font-weight: 700;
}
.route-preview-copy { min-width: 0; }
.route-enter-btn,
.primary-btn,
.small-btn {
  position: relative;
  overflow: hidden;
}
.route-enter-btn {
  min-height: 48px;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0b4ea2, #168a9f 58%, #5a8f69);
  box-shadow: 0 8px 0 rgba(8,58,121,.72), 0 18px 32px rgba(11,78,162,.22);
  font-size: 15px;
  font-weight: 900;
}
.route-enter-btn i,
.primary-btn::after {
  display: grid;
  place-items: center;
}
.route-enter-btn i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.36);
  font-style: normal;
}
.route-enter-btn::before,
.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: transform .65s ease;
}
/* v12 buttonShine 流光已由 v31 玻璃高光取代，清理旧 active 流光 */

.detail-flow-task-first .interaction-module {
  margin-top: 15px;
  animation: taskCardRise .58s cubic-bezier(.22,1,.36,1) both;
}
.detail-flow-task-first .detail-layout {
  margin-top: 13px;
}
.detail-flow-task-first .image-layers {
  height: 430px !important;
}
@keyframes taskCardRise {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-swipe {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}
.gate-reader {
  min-height: 96px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #16304c, #0b4ea2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 28px rgba(23,42,64,.16);
}
.gate-reader span {
  width: 56px;
  height: 6px;
  border-radius: 99px;
  background: #29c5d8;
  box-shadow: 0 0 18px rgba(41,197,216,.85);
}
.gate-reader b { font-size: 12px; letter-spacing: .14em; }
.gate-pass {
  min-height: 112px;
  padding: 18px;
  border-radius: 24px;
  text-align: left;
  background: linear-gradient(135deg, #fff8e8, #e8f3ff);
  border: 1px solid rgba(22,48,76,.12);
  box-shadow: 0 16px 34px rgba(23,42,64,.10);
}
.gate-pass small { color: var(--identity-accent); font-weight: 900; }
.gate-pass strong { display: block; margin-top: 8px; font-size: 24px; color: var(--ink); }
.gate-pass i { display: inline-block; margin-top: 10px; color: var(--muted); font-style: normal; font-weight: 800; }
.gate-pass.done,
.gate-pass.swiped { transform: translateX(-18px) rotate(-2deg); }

.quiz-card strong { display: block; margin-bottom: 14px; font-size: 20px; color: var(--ink); }
.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quiz-option,
.keyword-chip,
.lab-step,
.guide-stop,
.memory-chip {
  min-height: 58px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,248,232,.78);
  border: 1px solid rgba(22,48,76,.10);
  font-weight: 900;
}
.quiz-option.correct,
.quiz-option.done,
.keyword-chip.done,
.lab-step.done,
.guide-stop.done,
.memory-chip.done {
  color: #fff;
  background: linear-gradient(135deg, var(--identity-accent), #168a9f);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--identity-accent) 26%, transparent);
}
.quiz-option.wrong {
  color: #c72f3b;
  background: rgba(199,47,59,.08);
}
.keyword-cloud,
.lab-steps,
.memory-strip,
.guide-line-task {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.keyword-cloud { grid-template-columns: repeat(4, 1fr); }
.lab-step b,
.memory-chip b { display: block; }
.lab-step small,
.memory-chip small { display: block; margin-top: 5px; opacity: .66; }
.ripple-board {
  position: relative;
  height: 116px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 50%, rgba(41,197,216,.22), transparent 24%),
    radial-gradient(circle at 70% 52%, rgba(90,143,105,.20), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(232,243,255,.72));
}
.ripple-point {
  position: absolute;
  top: 38px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--identity-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--identity-accent) 26%, transparent);
}
.ripple-point:nth-child(1) { left: 26%; }
.ripple-point:nth-child(2) { right: 26%; }
.ripple-point.done { animation: rippleTask 1s ease-out both; background: var(--identity-accent); }
@keyframes rippleTask { to { box-shadow: 0 0 0 42px transparent; } }
.pulse-strip {
  display: block;
  width: 100%;
  height: 98px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,.75) 12% 14%, transparent 14% 22%, rgba(233,91,105,.88) 22% 25%, transparent 25% 36%, rgba(255,255,255,.75) 36% 39%, transparent 39%),
    linear-gradient(135deg, #16304c, #5a8f69);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 32px rgba(23,42,64,.14);
}
.guide-line-task {
  position: relative;
}
.guide-line-task::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--identity-accent), #29c5d8);
  z-index: 0;
}
.guide-stop { position: relative; z-index: 1; }

/* ===== v12 mobile readability, task affordance, and poster-first ending ===== */
.primary-btn,
.route-enter-btn,
.task-next-btn,
.interaction-module button,
.book-page,
.meal-card,
.quiz-option,
.keyword-chip,
.lab-step,
.guide-stop,
.memory-chip,
.gate-pass {
  position: relative;
  overflow: hidden;
}

.primary-btn::after,
.route-enter-btn::after,
.task-next-btn::after,
.interaction-module button:not(.done):not(.wrong):not(.ripple-surface)::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.58);
  box-shadow:
    0 0 0 0 color-mix(in srgb, var(--identity-accent) 30%, transparent),
    inset 0 0 16px rgba(255,255,255,.18);
  animation: actionGlow 1.8s ease-in-out infinite;
  pointer-events: none;
}

.interaction-module button:not(.done):not(.wrong)::before,
.route-enter-btn::before,
.primary-btn::before,
.task-next-btn::before {
  animation: buttonShine 2.35s ease-in-out infinite;
}

@keyframes actionGlow {
  0%, 100% { opacity: .56; box-shadow: 0 0 0 0 color-mix(in srgb, var(--identity-accent) 20%, transparent), inset 0 0 12px rgba(255,255,255,.12); }
  50% { opacity: 1; box-shadow: 0 0 0 5px color-mix(in srgb, var(--identity-accent) 16%, transparent), inset 0 0 18px rgba(255,255,255,.24); }
}

@keyframes buttonShine {
  0%, 58% { transform: translateX(-125%) skewX(-22deg); }
  100% { transform: translateX(125%) skewX(-22deg); }
}

.detail-flow-image-first .interaction-module {
  margin-top: 16px;
}

.detail-flow-image-first .detail-layout {
  margin-top: 13px;
}

.ending #makePoster {
  display: none !important;
}

.ending.active {
  background:
    linear-gradient(180deg, rgba(5,19,33,.10), rgba(5,19,33,.72)),
    var(--identity-visual) center/cover no-repeat,
    #07182e;
}

.ending .ticket {
  display: none;
}

.ending .ticket-wrap {
  padding-top: 62px;
}

.ending #posterCanvas {
  display: block;
  width: min(100%, 444px);
  max-height: calc(var(--stage-h, 1030px) - 260px);
  margin: 0 auto 14px;
  border-radius: 28px;
}

.ending .poster-tip {
  max-width: 460px;
  margin: 10px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}

.poster-download {
  width: min(100%, 444px);
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}

@media (max-width: 480px) {
  .page {
    padding: 72px 32px 76px;
  }

  .topbar {
    left: 26px;
    right: 26px;
    top: 20px;
  }

  .topbar-brand,
  .progress-pill {
    padding: 11px 17px;
    font-size: 16px;
  }

  .music-toggle {
    margin-right: 12px;
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }
  .music-icon { font-size: 15px; }
  .music-label { font-size: 12px; }

  .primary-btn,
  .ghost-btn,
  .small-btn,
  .route-enter-btn {
    min-height: 56px;
    padding: 15px 24px;
    font-size: 18px;
  }

  .cover-hero {
    left: 22px;
    right: 22px;
    top: 74px;
    height: 470px;
  }

  .cover-copy {
    left: 32px;
    right: 32px;
    bottom: calc(76px + var(--stage-extra, 0px) * .08);
  }

  .cover h1 {
    font-size: 76px;
  }

  .cover h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
    line-height: 1.75;
  }

  .ai-note {
    font-size: 14px;
  }

  .photo-slot strong {
    font-size: 30px;
  }

  .page-title h2,
  .compact-title h2 {
    font-size: 42px;
  }

  .page-title p:not(.eyebrow),
  .compact-title p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 15px;
  }

  .identity-desk {
    height: 650px;
    margin-top: 16px;
  }

  .role-card {
    width: 276px;
    min-height: 192px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .role-card span {
    font-size: 14px;
  }

  .role-card h3 {
    margin-top: 38px;
    font-size: 29px;
  }

  .role-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  .role-card.highschool { left: 36px; top: 6px; }
  .role-card.student { right: 22px; top: 142px; }
  .role-card.alumni { left: 18px; top: 306px; }
  .role-card.public { right: 34px; top: 452px; }

  .slope-scene {
    left: 30px;
    bottom: 34px;
    width: 352px;
    height: 166px;
  }

  .h5-stage[data-page="identity"] .guide-bear {
    left: 58px;
    bottom: 86px;
    width: 142px;
  }

  .h5-stage[data-page="identity"] .guide-bear img {
    width: 136px;
  }

  .boar-run {
    left: 260px;
    right: 64px;
    bottom: 126px;
  }

  .boar {
    width: 178px;
  }

  .campus-head {
    padding: 14px 16px;
    grid-template-columns: 46px 1fr auto;
  }

  .campus-mark {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .campus-meta strong {
    font-size: 23px;
  }

  .campus-meta span,
  .campus-meta small {
    font-size: 14px;
  }

  .campus-map {
    height: 196px;
  }

  .route-preview-card {
    grid-template-columns: 138px 1fr;
    gap: 12px;
    min-height: 150px;
    padding: 14px 16px;
    margin-top: 10px;
  }

  .route-preview-card h3 {
    font-size: 24px;
    margin: 5px 0 4px;
  }

  .route-preview-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .route-preview-card span {
    font-size: 12px;
  }

  .route-preview-media,
  .route-preview-media img {
    min-height: 118px;
  }

  .route-enter-btn {
    min-height: 44px;
    min-width: 142px;
    padding: 9px 10px 9px 16px;
    font-size: 14px;
  }

  .route-enter-btn i {
    width: 26px;
    height: 26px;
  }

  .detail-header h2 {
    font-size: 40px;
  }

  .detail-header p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.6;
  }

  .detail .image-layers,
  .detail-book .image-layers,
  .detail-classroom .image-layers,
  .detail-science .image-layers,
  .detail-medicine .image-layers,
  .detail-canteen .image-layers,
  .detail-flow-task-first .image-layers {
    height: min(540px, calc(var(--stage-h, 1030px) * .44)) !important;
  }

  .story-card {
    padding: 18px 20px;
  }

  .story-card p {
    font-size: 16px;
  }

  .task-status {
    padding: 15px 16px;
  }

  .task-status span {
    font-size: 14px;
  }

  .task-status strong {
    font-size: 20px;
  }

  .task-status small {
    font-size: 15px;
  }

  .interaction-module {
    min-height: 188px;
    padding: 18px;
    border-radius: 28px;
  }

  .module-head h3 {
    font-size: 25px;
    line-height: 1.25;
  }

  .module-copy {
    font-size: 15px;
  }

  .quiz-card strong {
    font-size: 22px;
  }

  .quiz-option,
  .keyword-chip,
  .lab-step,
  .guide-stop,
  .memory-chip,
  .meal-card,
  .book-page {
    min-height: 70px;
    font-size: 17px;
  }

  .gate-swipe {
    grid-template-columns: 136px 1fr;
  }

  .gate-reader {
    min-height: 118px;
  }

  .gate-pass {
    min-height: 130px;
  }

  .gate-pass strong {
    font-size: 28px;
  }

  .window-grid {
    gap: 8px;
  }

  .window-dot {
    min-height: 30px;
  }

  .ending .ticket-wrap {
    padding: 56px 28px 28px;
  }

  .ending #posterCanvas {
    width: min(100%, 468px);
    max-height: calc(var(--stage-h, 1030px) - 238px);
  }

  .phone-shell {
    place-items: start center;
    align-items: flex-start;
    justify-items: center;
  }

  .h5-stage {
    top: 0 !important;
    transform: translateX(-50%) scale(var(--stage-scale, 1)) !important;
    transform-origin: top center !important;
  }
}

body[data-h5-page="cover"] {
  background:
    linear-gradient(180deg, rgba(5,19,33,.08), rgba(5,19,33,.62)),
    url("./assets/generated/cover-forest-hust.webp") center/cover no-repeat,
    #07182e;
}

body[data-h5-page="identity"] {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(246,240,223,.92)),
    url("./assets/generated/identity-entry-bg.webp") center/cover no-repeat,
    #f6f0df;
}

body[data-h5-page="route"],
body[data-h5-page="detail"],
body[data-h5-page="collection"],
body[data-h5-page="info"] {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,240,223,.94)),
    var(--identity-visual, none) center/cover no-repeat,
    #f6f0df;
}

body[data-h5-page="ending"] {
  background:
    linear-gradient(180deg, rgba(5,19,33,.10), rgba(5,19,33,.78)),
    var(--identity-visual, none) center/cover no-repeat,
    #07182e;
}

/* final mobile-H5 submission overrides */
.loading {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.10), transparent 42%),
    linear-gradient(180deg, rgba(8,24,48,.62), rgba(5,16,32,.88)),
    url("./assets/generated/loading-hust-gate-mao.webp") center/cover no-repeat,
    #07182e;
}

.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,.32) 100%);
  z-index: 0;
}

.loading > * { position: relative; z-index: 1; }

.route-preview-card {
  display: block !important;
  grid-template-columns: 1fr !important;
  min-height: 132px;
}

.route-preview-card::before,
.route-preview-card::after {
  display: none !important;
}

.route-preview-copy {
  position: relative;
  z-index: 1;
}

.boar-run {
  left: 292px;
  right: 82px;
}

.ending .ticket-wrap {
  min-height: 100%;
  padding: 50px 44px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.ending #posterCanvas {
  display: block;
  order: 1;
  width: min(100%, 388px);
  height: auto;
  max-height: 632px;
  margin: 0 auto 4px;
  border-radius: 24px;
  object-fit: contain;
}

.ending .poster-download[hidden] {
  display: none !important;
}

.ending .poster-download:not([hidden]) {
  display: flex;
  order: 2;
  width: min(100%, 388px);
  min-height: 50px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  font-size: 17px;
}

.ending .poster-tip {
  order: 3;
  max-width: 388px;
  margin: 0 auto;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 640px), (max-height: 1030px) {
  .boar-run {
    left: 230px;
    right: 92px;
    bottom: 126px;
  }

  .route-preview-card {
    min-height: 134px;
    padding: 14px 16px;
  }

  .ending .ticket-wrap {
    padding: 46px 34px 22px;
  }

  .ending #posterCanvas,
  .ending .poster-download:not([hidden]) {
    width: min(100%, 374px);
  }
}

/* v13 interaction safety, identity typography, and sharper poster preview */
:root {
  --display-font: "FZYaoti", "STXingkai", "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  --ui-font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --title-gradient: linear-gradient(100deg, #16304c 0%, #0b4ea2 58%, #29c5d8 100%);
}

body {
  font-family: var(--ui-font);
}

.h5-stage.theme-highschool {
  --title-gradient: linear-gradient(100deg, #16304c 0%, #d8a85b 62%, #29c5d8 100%);
}

.h5-stage.theme-student {
  --title-gradient: linear-gradient(100deg, #0c2f68 0%, #0b4ea2 55%, #29c5d8 100%);
}

.h5-stage.theme-alumni {
  --title-gradient: linear-gradient(100deg, #16304c 0%, #b98b61 58%, #d8a85b 100%);
}

.h5-stage.theme-public {
  --title-gradient: linear-gradient(100deg, #16304c 0%, #5a8f69 58%, #29c5d8 100%);
}

.cover h1,
.page-title h2,
.detail-header h2,
.route-preview-card h3,
.role-card h3,
.ticket h2,
.module-head h3 {
  font-family: var(--display-font);
  font-weight: 900;
}

.page-title h2,
.detail-header h2,
.route-preview-card h3,
.collection .page-title h2,
.ending .ticket h2 {
  color: transparent;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 28px color-mix(in srgb, var(--identity-accent) 12%, transparent);
}

.role-card h3 {
  color: color-mix(in srgb, var(--identity-accent) 68%, #16304c);
}

.cover h1 {
  color: transparent;
  background: linear-gradient(100deg, #fff8e8 0%, #e8d5a8 46%, #29c5d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 12px 36px rgba(41,197,216,.20);
}

.cover h2 {
  font-family: var(--display-font);
}

.page.route.active,
.page.detail.active,
.page.collection.active {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.page.route.active::-webkit-scrollbar,
.page.detail.active::-webkit-scrollbar,
.page.collection.active::-webkit-scrollbar {
  display: none;
}

.route.active {
  padding-bottom: 132px;
}

.detail.active {
  padding-bottom: 146px;
}

.collection.active {
  padding-bottom: 148px;
}

.task-next-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  white-space: normal;
  line-height: 1.25;
}

.collection-actions {
  margin-top: 24px;
  padding-bottom: 20px;
}

.collection-actions .primary-btn,
.collection-actions .ghost-btn {
  min-height: 54px;
}

.ending .ticket-wrap {
  padding: 38px 42px 20px;
  gap: 9px;
}

.ending #posterCanvas {
  width: min(100%, 430px);
  max-height: 692px;
  border-radius: 28px;
  image-rendering: auto;
}

.ending .poster-download:not([hidden]) {
  width: min(100%, 430px);
  min-height: 52px;
}

.ending .poster-tip {
  max-width: 430px;
}

@media (max-width: 640px), (max-height: 1030px) {
  .ending .ticket-wrap {
    padding: 36px 32px 20px;
  }

  .ending #posterCanvas,
  .ending .poster-download:not([hidden]) {
    width: min(100%, 414px);
  }
}

/* v14 tall-phone fill: keep 640x1030 base, extend runtime stage height */
.phone-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}

.h5-stage {
  max-height: none !important;
}

.page {
  min-height: var(--stage-h, var(--page-h));
}

.cover-hero {
  top: calc(72px + var(--stage-extra, 0px) * .03);
}

.cover-now {
  top: 48px;
}

.cover-future {
  top: 0;
}

.time-ribbon {
  bottom: -4px;
}

.cover-copy {
  bottom: calc(72px + var(--stage-extra, 0px) * .18);
}

.identity-desk {
  height: calc(var(--stage-h, var(--page-h)) - 320px);
}

.h5-stage[data-page="identity"] .guide-bear {
  bottom: calc(68px + var(--stage-extra, 0px) * .12);
}

.boar-run {
  bottom: calc(126px + var(--stage-extra, 0px) * .34);
}

.route.active,
.detail.active,
.collection.active,
.ending.active {
  min-height: var(--stage-h, var(--page-h));
}

.route-preview-card {
  margin-bottom: max(0px, calc(var(--stage-extra, 0px) * .22));
}

@media (max-width: 640px), (max-height: 1030px) {
  .cover-hero {
    height: min(520px, calc(470px + var(--stage-extra, 0px) * .08));
  }

  .cover-copy {
    bottom: calc(78px + var(--stage-extra, 0px) * .20);
  }

  .role-card.public {
    top: calc(452px + var(--stage-extra, 0px) * .08);
  }

  .h5-stage[data-page="identity"] .guide-bear {
    bottom: calc(86px + var(--stage-extra, 0px) * .18);
  }

  .boar-run {
    bottom: calc(126px + var(--stage-extra, 0px) * .38);
  }
}

/* v15 mobile legibility, guide safety, route preview, and poster image output */
.topbar-brand,
.progress-pill {
  min-height: 46px;
  padding: 12px 19px;
  font-size: 17px;
}

.page-title h2,
.compact-title h2 {
  font-size: 48px;
  line-height: 1.12;
}

.page-title p:not(.eyebrow),
.compact-title p:not(.eyebrow),
.detail-header p:not(.eyebrow),
.route-preview-card p,
.story-card p,
.module-copy {
  font-size: 17px;
  line-height: 1.66;
}

.eyebrow,
.mini-label,
.task-status span {
  font-size: 15px;
}

.campus-head {
  min-height: 92px;
  padding: 18px 18px;
}

.campus-meta span,
.campus-meta small {
  font-size: 14px;
}

.campus-meta strong {
  font-size: 26px;
}

.campus-map {
  height: 262px;
  transform: translateZ(0);
}

.map-pin {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  font-size: 14px;
  transition: transform .22s cubic-bezier(.22,1,.36,1), background .22s ease, color .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.map-pin::after {
  animation: none !important;
}

.map-pin.active {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1.08);
}

.route-preview-card {
  display: grid !important;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  min-height: 224px;
  padding: 24px;
  align-items: stretch;
}

.route-preview-media {
  display: block;
  height: 178px;
  min-height: 178px;
  border-radius: 26px;
}

.route-preview-media img {
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
}

.route-preview-placeholder {
  display: flex;
}

.route-preview-placeholder strong {
  color: var(--hust-blue);
  font-size: 22px;
  letter-spacing: .16em;
}

.route-preview-card h3 {
  font-size: 32px;
  line-height: 1.18;
}

.route-preview-card span {
  font-size: 13px;
  line-height: 1.45;
}

.route-enter-btn,
.primary-btn,
.ghost-btn,
.small-btn {
  min-height: 58px;
  font-size: 18px;
}

.detail-header h2 {
  font-size: 42px;
  line-height: 1.12;
}

.story-card {
  padding: 22px 22px;
}

.task-status {
  padding: 15px 16px;
}

.task-status strong {
  font-size: 19px;
}

.task-status small {
  font-size: 14px;
  line-height: 1.52;
}

.interaction-module {
  min-height: 176px;
  padding: 21px;
}

.module-head h3 {
  font-size: 25px;
}

.module-head span {
  font-size: 13px;
}

.interaction-module button,
.book-page,
.meal-card,
.quiz-option,
.keyword-chip,
.lab-step,
.guide-stop,
.memory-chip,
.reader-card,
.gate-pass {
  min-height: 62px;
  font-size: 16px;
}

.window-dot {
  min-height: 24px;
}

.star {
  width: 24px;
  height: 24px;
}

.task-next-btn {
  min-height: 58px;
  font-size: 17px;
}

.stamp strong {
  font-size: 13px;
}

.collection-actions .primary-btn,
.collection-actions .ghost-btn {
  min-height: 60px;
  font-size: 17px;
}

.h5-stage[data-page="route"] .guide-bear,
.h5-stage[data-page="detail"] .guide-bear,
.h5-stage[data-page="collection"] .guide-bear {
  display: block !important;
  z-index: 4;
  width: 104px;
  opacity: .88;
}

.h5-stage[data-page="route"] .guide-bear {
  left: auto;
  right: 18px;
  bottom: calc(500px + var(--stage-extra, 0px) * .08);
}

.h5-stage[data-page="detail"] .guide-bear {
  left: auto;
  right: 12px;
  top: calc(372px + var(--stage-extra, 0px) * .04);
  bottom: auto;
}

.h5-stage[data-page="collection"] .guide-bear {
  left: 18px;
  right: auto;
  bottom: calc(92px + var(--stage-extra, 0px) * .08);
}

.h5-stage[data-page="route"] .guide-bear img,
.h5-stage[data-page="detail"] .guide-bear img,
.h5-stage[data-page="collection"] .guide-bear img {
  width: 92px;
}

.h5-stage[data-page="route"] .guide-bubble,
.h5-stage[data-page="detail"] .guide-bubble,
.h5-stage[data-page="collection"] .guide-bubble {
  display: none !important;
}

.detail.landmark-changing .detail-header,
.detail.landmark-changing .image-stage,
.detail.landmark-changing .story-card,
.detail.landmark-changing .interaction-module,
.detail.landmark-changing .detail-nav {
  animation: landmarkEnter .46s cubic-bezier(.22,1,.36,1) both;
}

.detail.landmark-changing .story-card { animation-delay: 45ms; }
.detail.landmark-changing .interaction-module { animation-delay: 90ms; }
.detail.landmark-changing .detail-nav { animation-delay: 130ms; }

@keyframes landmarkEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

.energy-task,
.guide-line-task,
.tower-task {
  display: grid;
  gap: 14px;
  padding: 15px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.70), rgba(255,248,232,.42)),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--identity-accent) 18%, transparent), transparent 34%);
  border: 1px solid rgba(22,48,76,.10);
}

.energy-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.energy-words span {
  padding: 8px 12px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--identity-accent) 80%, var(--ink));
  background: color-mix(in srgb, var(--identity-accent) 13%, #fff);
  font-size: 14px;
  font-weight: 900;
}

.energy-slider,
.tower-task label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.energy-slider input,
.route-range,
.tower-task input {
  width: 100%;
  height: 36px;
  appearance: none;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--identity-accent) 0 var(--range-progress, 0%), rgba(22,48,76,.12) var(--range-progress, 0%) 100%);
  box-shadow: inset 0 2px 5px rgba(23,42,64,.14), 0 10px 22px rgba(23,42,64,.08);
}

.energy-slider input::-webkit-slider-thumb,
.route-range::-webkit-slider-thumb,
.tower-task input::-webkit-slider-thumb {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: linear-gradient(135deg, var(--identity-accent), #29c5d8);
  box-shadow: 0 10px 22px rgba(23,42,64,.20);
}

.energy-slider input::-moz-range-thumb,
.route-range::-moz-range-thumb,
.tower-task input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: linear-gradient(135deg, var(--identity-accent), #29c5d8);
  box-shadow: 0 10px 22px rgba(23,42,64,.20);
}

.guide-line-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: rgba(22,48,76,.66);
  font-size: 14px;
  font-weight: 900;
}

.guide-line-track span:nth-child(2) { text-align: center; }
.guide-line-track span:nth-child(3) { text-align: right; }

.digital-reader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reader-card {
  padding: 13px 10px;
  border-radius: 18px;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255,255,255,.82), rgba(232,243,223,.66)),
    radial-gradient(circle at 84% 16%, rgba(41,197,216,.22), transparent 26%);
  border: 1px solid rgba(22,48,76,.10);
}

.reader-card b,
.reader-card small {
  display: block;
}

.reader-card small {
  margin-top: 5px;
  color: var(--muted);
}

.reader-card.done small,
.reader-card.done b {
  color: #fff;
}

.tower-task {
  grid-template-columns: 112px 1fr;
  align-items: center;
}

.tower-dial {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(from var(--tower-rotate, -135deg), #29c5d8, var(--identity-accent), #16304c, #29c5d8);
  box-shadow: 0 16px 30px rgba(23,42,64,.16), inset 0 0 0 8px rgba(255,255,255,.28);
  font-weight: 900;
}

.tower-dial span {
  position: absolute;
  top: 12px;
  width: 6px;
  height: 32px;
  border-radius: 99px;
  background: #fff8e8;
  transform-origin: 50% 40px;
  transform: rotate(var(--tower-rotate, -135deg));
  box-shadow: 0 0 16px rgba(255,255,255,.8);
}

.poster-image {
  display: block;
  width: min(100%, 536px);
  height: auto;
  max-height: calc(var(--stage-h, 1030px) - 176px);
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 30px;
  box-shadow: 0 28px 76px rgba(0,0,0,.32);
  -webkit-touch-callout: default;
  user-select: auto;
}

.poster-image[hidden] {
  display: none !important;
}

.ending #posterCanvas {
  display: none !important;
}

.ending .ticket-wrap {
  padding: 30px 22px 20px;
  gap: 12px;
}

.ending .poster-download:not([hidden]) {
  width: min(100%, 536px);
  min-height: 58px;
  font-size: 18px;
}

.ending .poster-tip {
  max-width: 536px;
  font-size: 15px;
}

@media (max-width: 640px), (max-height: 1030px) {
  .page {
    padding-left: 30px;
    padding-right: 30px;
  }

  .route-preview-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
  }

  .route-preview-card h3 {
    font-size: 30px;
  }

  .poster-image,
  .ending .poster-download:not([hidden]) {
    width: min(100%, 512px);
  }

  .h5-stage[data-page="detail"] .guide-bear {
    top: calc(372px + var(--stage-extra, 0px) * .04);
    bottom: auto;
  }
}

/* v16 guide bubble return, richer task visuals, and poster-card fallback */
.no-break {
  white-space: nowrap;
}

/* v36 防孤行：完整继承 h3 样式，避免被 .module-head span 命中
   v37 修复：用 .module-head h3 .widow-keep 提升优先级（0,3,0 > 0,2,0），
   并对被 !important 声明的属性同样使用 !important，确保冒号后所有文字
   与冒号前格式完全一致，所有站点统一生效。 */
.module-head h3 .widow-keep {
  white-space: normal !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  letter-spacing: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: inline !important;
  position: static !important;
  line-height: inherit !important;
  text-align: inherit !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  place-items: unset !important;
  justify-self: unset !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
}

.module-head {
  position: relative;
  display: block;
  min-height: 42px;
  padding-right: 104px;
  margin-bottom: 14px;
}

.module-head h3 {
  margin: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
  line-height: 1.22;
  letter-spacing: 0;
}

.module-head span {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 84px;
  max-width: 96px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  background: color-mix(in srgb, var(--identity-accent) 12%, #fff);
}

.h5-stage[data-page="route"] .guide-bear,
.h5-stage[data-page="detail"] .guide-bear,
.h5-stage[data-page="collection"] .guide-bear {
  z-index: 16;
  width: 150px;
  opacity: .96;
  filter: drop-shadow(0 18px 24px rgba(23,42,64,.20));
}

.h5-stage[data-page="route"] .guide-bear img,
.h5-stage[data-page="detail"] .guide-bear img,
.h5-stage[data-page="collection"] .guide-bear img {
  width: 124px;
}

.h5-stage[data-page="route"] .guide-bubble,
.h5-stage[data-page="detail"] .guide-bubble,
.h5-stage[data-page="collection"] .guide-bubble {
  display: block !important;
  width: 218px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(23,42,64,.16);
}

.h5-stage[data-page="route"] .guide-bear {
  right: 12px;
  top: calc(178px + var(--stage-extra, 0px) * .03);
  bottom: auto;
}

.h5-stage[data-page="route"] .guide-bubble {
  left: auto;
  right: 82px;
  top: -6px;
  bottom: auto;
  border-radius: 18px 18px 5px 18px;
}

.h5-stage[data-page="detail"] .guide-bear {
  right: 8px;
  top: calc(318px + var(--stage-extra, 0px) * .04);
  bottom: auto;
}

.h5-stage[data-page="detail"] .guide-bubble {
  left: auto;
  right: 86px;
  top: 6px;
  bottom: auto;
  width: 204px;
  border-radius: 18px 18px 5px 18px;
}

.h5-stage[data-page="collection"] .guide-bear {
  left: 18px;
  bottom: calc(100px + var(--stage-extra, 0px) * .08);
}

.h5-stage[data-page="collection"] .guide-bubble {
  left: 104px;
  right: auto;
  bottom: 92px;
  width: 230px;
  border-radius: 18px 18px 18px 5px;
}

.science-constellation {
  position: relative;
  height: 156px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(7,24,46,.10), rgba(7,24,46,.18)),
    url("assets/generated/science-starfield-panel.webp") center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 34px rgba(7,24,46,.20);
}

.science-constellation::before {
  content: "";
  position: absolute;
  inset: 18px 24px;
  border-top: 0;
  transform: none;
  background:
    radial-gradient(circle at 16% 36%, rgba(255,255,255,.28), transparent 10%),
    radial-gradient(circle at 48% 28%, rgba(41,197,216,.22), transparent 12%),
    radial-gradient(circle at 78% 46%, rgba(216,168,91,.18), transparent 11%);
  opacity: .75;
  pointer-events: none;
}

.science-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.science-orbits i {
  position: absolute;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  animation: orbitBreath 3.8s ease-in-out infinite;
}

.science-orbits i:nth-child(1) { width: 116px; height: 116px; left: 20px; top: 18px; }
.science-orbits i:nth-child(2) { width: 170px; height: 170px; right: 34px; top: -20px; animation-delay: .45s; }
.science-orbits i:nth-child(3) { width: 96px; height: 96px; left: 48%; bottom: -28px; animation-delay: .9s; }

@keyframes orbitBreath {
  0%, 100% { opacity: .28; transform: scale(.92); }
  50% { opacity: .68; transform: scale(1.04); }
}

.science-constellation .star {
  width: 30px;
  height: 30px;
  border: 0;
  background:
    radial-gradient(circle, #fff 0 18%, #8df7ff 19% 42%, rgba(41,197,216,.46) 43% 70%, transparent 72%);
  box-shadow: 0 0 20px rgba(41,197,216,.70), 0 0 0 10px rgba(41,197,216,.10);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.science-constellation .star::before,
.science-constellation .star::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.26);
  animation: scienceStarPulse 2.1s ease-out infinite;
}

.science-constellation .star::after {
  inset: -18px;
  animation-delay: .45s;
}

.science-constellation .star.on,
.science-constellation .star.done {
  transform: scale(1.18);
  filter: saturate(1.3);
  box-shadow: 0 0 28px rgba(41,197,216,.95), 0 0 42px rgba(216,168,91,.36);
}

@keyframes scienceStarPulse {
  from { opacity: .72; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.35); }
}

.ecg-panel {
  position: relative;
  height: 142px;
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,24,46,.94), rgba(13,74,84,.88), rgba(90,143,105,.80)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 16px 32px rgba(23,42,64,.16);
}

.ecg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 48%, transparent 58%);
  transform: translateX(-100%);
  animation: ecgScan 2.4s linear infinite;
}

.heart-beat {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 28%, #ff9aa6, #e95b69 62%, #b53346);
  box-shadow: 0 0 26px rgba(233,91,105,.58), inset 0 2px 0 rgba(255,255,255,.30);
  font-size: 32px;
  animation: heartPulse 1.08s ease-in-out infinite;
}

.ecg-wave {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 88px;
  overflow: visible;
}

.ecg-wave polyline {
  fill: none;
  stroke: #fff8e8;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.70)) drop-shadow(0 0 16px rgba(233,91,105,.45));
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: ecgDraw 2.6s ease-in-out infinite;
}

.pulse-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: start;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(.94); }
  18% { transform: scale(1.12); }
  32% { transform: scale(.98); }
  48% { transform: scale(1.06); }
}

@keyframes ecgDraw {
  0% { stroke-dashoffset: 460; opacity: .72; }
  42%, 78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -460; opacity: .46; }
}

@keyframes ecgScan {
  to { transform: translateX(100%); }
}

.corridor-board {
  position: relative;
  min-height: 126px;
  padding: 18px 20px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(255,248,232,.58)),
    radial-gradient(circle at 82% 18%, rgba(90,143,105,.20), transparent 30%);
}

.corridor-board .guide-line-track {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  color: rgba(22,48,76,.70);
}

.corridor-path {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 58px;
  height: 36px;
  pointer-events: none;
}

.corridor-path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(90,143,105,.24), var(--identity-accent), #29c5d8);
  box-shadow: 0 0 20px color-mix(in srgb, var(--identity-accent) 28%, transparent);
}

.corridor-path i {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff8e8;
  border: 4px solid color-mix(in srgb, var(--identity-accent) 72%, #29c5d8);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(41,197,216,.35);
}

.corridor-path i:nth-child(1) { left: 0; }
.corridor-path i:nth-child(2) { left: 50%; }
.corridor-path i:nth-child(3) { left: 100%; }

.corridor-board .route-range {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  background: transparent;
  box-shadow: none;
}

.detail-nature .scene-overlay::before,
.detail-nature .scene-overlay::after {
  width: 148px;
  height: 148px;
  border-color: rgba(255,255,255,.44);
  box-shadow: 0 0 30px rgba(41,197,216,.18), inset 0 0 26px rgba(255,255,255,.12);
}

.detail-nature .scene-overlay::before {
  left: 28px;
  bottom: 48px;
  animation-duration: 2.2s;
}

.detail-nature .scene-overlay::after {
  left: 88px;
  bottom: 92px;
  animation-duration: 3.1s;
}

.detail-nature .scene-overlay {
  background:
    radial-gradient(circle at 28% 62%, rgba(41,197,216,.18), transparent 24%),
    radial-gradient(circle at 72% 40%, rgba(255,248,232,.14), transparent 20%),
    linear-gradient(110deg, rgba(255,255,255,.08), transparent 42%);
}

.detail-nature .scene-overlay .task-spark {
  mix-blend-mode: screen;
}

.ending .ticket-wrap {
  min-height: 100%;
  padding: 34px 28px 22px;
  justify-content: flex-start;
}

.ending .ticket {
  display: block !important;
  order: 1;
  width: min(100%, 512px);
  min-height: 0;
  margin: 0 auto 10px;
  padding: 24px 24px 22px;
  border-radius: 30px;
  color: var(--ink);
  background: rgba(255,248,232,.92);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.ending.poster-ready .ticket {
  display: none !important;
}

.ending .ticket h2 {
  margin: 24px 0 12px;
  font-size: 38px;
  line-height: 1.18;
}

.ending .ticket p {
  max-height: none;
  font-size: 15px;
  line-height: 1.62;
  overflow: visible;
}

.ending .ticket-stats {
  margin: 18px 0 0;
}

.poster-image {
  order: 2;
  width: min(100%, 512px);
  max-height: calc(var(--stage-h, 1030px) - 206px);
  margin-bottom: 10px;
}

.ending .poster-download:not([hidden]) {
  order: 3;
}

.ending #makePoster {
  display: flex !important;
  order: 4;
  width: min(100%, 512px);
  min-height: 52px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  font-size: 17px;
}

.ending.poster-ready #makePoster {
  min-height: 46px;
  opacity: .86;
}

.ending .poster-tip {
  order: 5;
  margin-top: 0;
}

@media (max-width: 640px), (max-height: 1030px) {
  .module-head {
    padding-right: 94px;
  }

  .module-head span {
    min-width: 78px;
    max-width: 88px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }

  .h5-stage[data-page="route"] .guide-bear,
  .h5-stage[data-page="detail"] .guide-bear,
  .h5-stage[data-page="collection"] .guide-bear {
    width: 136px;
  }

  .h5-stage[data-page="route"] .guide-bear img,
  .h5-stage[data-page="detail"] .guide-bear img,
  .h5-stage[data-page="collection"] .guide-bear img {
    width: 112px;
  }

  .h5-stage[data-page="route"] .guide-bubble,
  .h5-stage[data-page="detail"] .guide-bubble,
  .h5-stage[data-page="collection"] .guide-bubble {
    width: 198px;
    font-size: 12px;
  }

  .h5-stage[data-page="detail"] .guide-bear {
    top: calc(306px + var(--stage-extra, 0px) * .04);
  }

  .science-constellation {
    height: 146px;
  }

  .ecg-panel {
    height: 134px;
    grid-template-columns: 60px 1fr;
    padding: 16px;
  }

  .heart-beat {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .ending .ticket,
  .poster-image,
  .ending .poster-download:not([hidden]),
  .ending #makePoster {
    width: min(100%, 500px);
  }
}

/* v17 task polish: page flip, circular science stars, smarter corridor, draggable guide and card poster view */
.guide-bear {
  pointer-events: auto !important;
  touch-action: none;
  cursor: grab;
  user-select: none;
  transform: translate3d(var(--guide-drag-x, 0px), var(--guide-drag-y, 0px), 0) !important;
}

.guide-bear.dragging {
  cursor: grabbing;
  transition: none !important;
}

.guide-bear.guide-hidden {
  pointer-events: none !important;
  transform: translate3d(var(--guide-drag-x, 0px), calc(var(--guide-drag-y, 0px) + 16px), 0) !important;
}

.guide-bear img {
  pointer-events: none;
}

.guide-bubble {
  pointer-events: none;
}

.module-head h3 {
  max-width: calc(100% - 2px);
  word-break: keep-all;
  line-break: strict;
}

.book-flip-task {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  perspective: 1000px;
}

.book-spine {
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 16px 0;
  border-radius: 20px 8px 8px 20px;
  background:
    linear-gradient(180deg, rgba(22,48,76,.20), rgba(11,78,162,.44)),
    linear-gradient(90deg, rgba(255,255,255,.24), transparent);
  box-shadow: inset -8px 0 14px rgba(7,24,46,.20), 0 12px 22px rgba(23,42,64,.10);
}

.book-spine span {
  width: 9px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255,248,232,.72);
  box-shadow: 0 0 12px rgba(255,255,255,.42);
}

.book-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.book-page.flip-page {
  position: relative;
  min-height: 126px;
  padding: 14px 13px;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  text-align: left;
  border-radius: 10px 20px 20px 10px;
  border: 1px solid rgba(22,48,76,.12);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(22,48,76,.12), transparent 14px),
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(22,48,76,.055) 22px 23px),
    linear-gradient(145deg, #fffdf4, #edf7ef);
  box-shadow: 0 14px 26px rgba(23,42,64,.10);
  transform-origin: left center;
  transform: rotateY(calc(var(--page) * -1deg)) translateY(calc(var(--page) * 4px));
  transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease, filter .38s ease;
}

.book-page.flip-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--identity-accent) 26%, transparent), transparent 24%),
    linear-gradient(100deg, rgba(255,255,255,.62), transparent 42%);
}

.book-page.flip-page span,
.book-page.flip-page b,
.book-page.flip-page small {
  position: relative;
  z-index: 1;
}

.book-page.flip-page span {
  color: var(--identity-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.book-page.flip-page b {
  font-size: 18px;
  line-height: 1.18;
}

.book-page.flip-page small {
  color: rgba(22,48,76,.62);
  font-size: 12px;
  line-height: 1.42;
}

.book-page.flip-page.flipped,
.book-page.flip-page.done {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.24), transparent 16px),
    linear-gradient(135deg, color-mix(in srgb, var(--identity-accent) 78%, #0b4ea2), #29c5d8);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--identity-accent) 28%, transparent);
  transform: rotateY(-16deg) translateY(-3px);
}

.book-page.flip-page.done span,
.book-page.flip-page.done b,
.book-page.flip-page.done small {
  color: #fff;
}

.science-constellation {
  min-height: 164px;
}

.science-constellation .star {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 25%, #91fbff 26% 50%, rgba(41,197,216,.58) 51% 70%, rgba(41,197,216,.12) 71% 100%) !important;
  box-shadow: 0 0 16px rgba(41,197,216,.78), 0 0 0 7px rgba(41,197,216,.12) !important;
  transform: translate(-50%, -50%);
}

.science-constellation .star::before {
  inset: -8px !important;
  border-radius: 50% !important;
}

.science-constellation .star::after {
  inset: -14px !important;
  border-radius: 50% !important;
}

.science-constellation .star.on,
.science-constellation .star.done {
  transform: translate(-50%, -50%) scale(1.12) !important;
  box-shadow: 0 0 22px rgba(41,197,216,.95), 0 0 38px rgba(216,168,91,.34) !important;
}

.corridor-board {
  min-height: 158px;
  padding: 18px 20px;
  grid-template-columns: 1fr !important;
  width: 100%;
}

.corridor-board::before {
  display: none !important;
}

.corridor-board .guide-line-track,
.corridor-path {
  display: none !important;
}

.corridor-steps {
  position: relative;
  height: 48px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  color: rgba(22,48,76,.62);
  font-size: 13px;
  font-weight: 900;
}

.corridor-steps::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 11px;
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--identity-accent) 78%, #5a8f69) 0 var(--range-progress, 0%), rgba(22,48,76,.14) var(--range-progress, 0%) 100%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--identity-accent) 24%, transparent);
}

.corridor-steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.corridor-steps span::before {
  content: attr(data-label);
}

.corridor-steps span::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff8e8;
  border: 4px solid color-mix(in srgb, var(--identity-accent) 70%, #29c5d8);
  box-shadow: 0 0 18px rgba(41,197,216,.30);
  z-index: 1;
}

.corridor-slider-label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  color: var(--ink);
  font-weight: 900;
}

.corridor-range {
  margin: 0 !important;
}

.corridor-hint {
  margin-top: 10px;
  color: rgba(22,48,76,.58);
  font-size: 13px;
  line-height: 1.45;
}

.detail-nature .scene-overlay {
  overflow: hidden;
}

.detail-nature .scene-overlay::before,
.detail-nature .scene-overlay::after {
  opacity: .26;
}

.ambient-wave {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: calc(var(--size) * .42);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.46);
  background: radial-gradient(ellipse at center, rgba(41,197,216,.20), transparent 64%);
  box-shadow: 0 0 24px rgba(41,197,216,.18), inset 0 0 18px rgba(255,255,255,.15);
  transform: translate(-50%, 16px) scale(.52);
  opacity: 0;
  animation: ambientWave var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes ambientWave {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(.52) rotate(-3deg); }
  18% { opacity: .72; }
  52% { opacity: .42; transform: translate(-50%, -8px) scale(1.08) rotate(2deg); }
  100% { opacity: 0; transform: translate(-50%, -32px) scale(1.62) rotate(-2deg); }
}

.ending .ticket-wrap {
  padding: 44px 28px 24px !important;
  gap: 14px;
  justify-content: flex-start;
}

.ending .ticket,
.ending.poster-ready .ticket {
  display: block !important;
  width: min(100%, 552px) !important;
  padding: 28px 28px 76px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,248,232,.95), rgba(255,248,232,.88)),
    radial-gradient(circle at 82% 8%, rgba(216,168,91,.16), transparent 28%);
}

.ending .ticket h2 {
  font-size: 42px;
  line-height: 1.14;
}

.ending .ticket p {
  font-size: 16px;
  line-height: 1.66;
}

.ending .ticket-stats div {
  min-height: 94px;
}

.ending .ticket-stats strong {
  font-size: 34px;
}

.poster-image {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden;
}

.poster-image.save-preview {
  position: relative !important;
  order: 2;
  display: block !important;
  width: min(100%, 552px) !important;
  height: auto !important;
  max-height: calc(var(--stage-h, 1030px) - 248px);
  margin: 0 auto 10px;
  opacity: 1 !important;
  pointer-events: auto !important;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  -webkit-touch-callout: default;
  user-select: auto;
}

.ending .poster-download:not([hidden]),
.ending #makePoster {
  width: min(100%, 552px) !important;
}

@media (max-width: 640px), (max-height: 1030px) {
  .book-flip-task {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .book-pages {
    gap: 8px;
  }

  .book-page.flip-page {
    min-height: 116px;
    padding: 12px 10px;
  }

  .book-page.flip-page b {
    font-size: 16px;
  }

  .science-constellation {
    min-height: 148px;
  }

  .ending .ticket,
  .ending.poster-ready .ticket,
  .ending .poster-download:not([hidden]),
  .ending #makePoster {
    width: min(100%, 520px) !important;
  }
}

/* v18 completion-gated station scroll, complete previews, readable titles and ending actions */
.module-head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px;
  min-height: 0 !important;
  padding-right: 0 !important;
}

.module-head h3 {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  text-wrap: balance;
  line-height: 1.24 !important;
  font-size: 23px !important;
}

.module-head h3 .no-break,
.no-break {
  white-space: normal !important;
}

.module-head span {
  position: static !important;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
}

.campus-map {
  height: 360px !important;
  overflow: visible !important;
  margin-bottom: 8px;
}

.campus-body-inner {
  overflow: visible;
}

.map-pin {
  position: absolute !important;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  z-index: 6;
}

.route-preview-card {
  grid-template-columns: 1fr !important;
  gap: 16px;
  min-height: 0;
}

.route-preview-media {
  width: 100%;
  height: 226px !important;
  min-height: 226px !important;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(232,243,241,.58)),
    repeating-linear-gradient(90deg, rgba(22,48,76,.06) 0 1px, transparent 1px 24px);
}

.route-preview-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: rgba(255,248,232,.36);
}

.route-preview-copy {
  display: grid;
  gap: 8px;
}

.route-preview-card h3 {
  font-size: 29px !important;
  line-height: 1.18;
}

.route-preview-card p {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.ending #makePoster,
.ending #makePoster[hidden],
.ending.poster-ready #makePoster {
  display: none !important;
}

.ending .poster-download:not([hidden]) {
  order: 2;
  display: flex !important;
}

.ending #endingRestart {
  order: 3;
  width: min(100%, 552px);
  min-height: 54px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  font-size: 17px;
  background: rgba(255,248,232,.78);
  border: 1px solid rgba(255,255,255,.55);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.ending .poster-tip {
  order: 4;
}

@media (max-width: 640px), (max-height: 1030px) {
  .campus-map {
    height: 340px !important;
  }

  .route-preview-media {
    height: 206px !important;
    min-height: 206px !important;
  }

  .module-head h3 {
    font-size: 22px !important;
  }

  .ending #endingRestart {
    width: min(100%, 520px);
  }
}

.gate-swipe {
  min-height: 156px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(41,197,216,.22), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,248,232,.50));
  border-radius: 24px;
  padding: 16px;
}

.gate-reader {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(7,24,46,.92), rgba(11,78,162,.76)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 14px);
}

.gate-pass {
  min-height: 112px;
  transform: rotate(-4deg);
  box-shadow: 0 18px 34px rgba(23,42,64,.16);
}

.gate-pass.swiped {
  transform: rotate(0deg) translateX(8px);
}

.quiz-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,248,232,.90), rgba(232,243,241,.68)),
    repeating-linear-gradient(0deg, rgba(185,139,97,.10) 0 1px, transparent 1px 24px);
}

.quiz-card::before {
  content: "HUST HISTORY";
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(185,139,97,.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.quiz-option {
  border: 1px solid rgba(185,139,97,.18);
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.canteen-tray {
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 22%, rgba(216,168,91,.22), transparent 24%),
    linear-gradient(135deg, rgba(255,248,232,.86), rgba(232,243,223,.62));
}

.meal-card {
  position: relative;
  border: 1px dashed rgba(185,139,97,.40);
  background:
    radial-gradient(circle at 86% 18%, rgba(216,168,91,.24), transparent 20%),
    linear-gradient(180deg, #fffdf4, #f2ead6);
}

.meal-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(216,168,91,.18);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.42);
}

.energy-task {
  background:
    linear-gradient(135deg, rgba(232,243,241,.86), rgba(255,248,232,.58)),
    radial-gradient(circle at var(--range-progress, 18%) 72%, rgba(41,197,216,.26), transparent 20%);
}

.energy-words span {
  box-shadow: 0 8px 18px rgba(23,42,64,.08);
}

.ripple-board {
  min-height: 134px;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(41,197,216,.30), transparent 26%),
    radial-gradient(ellipse at 70% 52%, rgba(90,143,105,.24), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(232,243,255,.70));
}

.ripple-point {
  animation: rippleFloat 2.4s ease-in-out infinite;
}

.ripple-point:nth-child(2) {
  animation-delay: .5s;
}

@keyframes rippleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.window-grid {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7,24,46,.90), rgba(11,78,162,.72)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.window-dot {
  height: 24px;
  border-radius: 8px;
  background: rgba(255,248,232,.22);
}

.window-dot.on {
  background: #ffd166;
  box-shadow: 0 0 18px rgba(255,209,102,.82), 0 0 0 4px rgba(255,209,102,.12);
}

.lab-steps {
  padding: 14px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 18%, rgba(41,197,216,.20), transparent 24%),
    linear-gradient(135deg, rgba(7,24,46,.90), rgba(11,78,162,.76));
}

.lab-step {
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 18px);
}

.lab-step small {
  color: rgba(255,255,255,.72);
}

.memory-strip {
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,248,232,.90), rgba(246,224,194,.62)),
    repeating-linear-gradient(90deg, rgba(185,139,97,.12) 0 2px, transparent 2px 18px);
}

.memory-chip {
  transform: rotate(var(--memory-rot, -1.2deg));
  box-shadow: 0 14px 24px rgba(23,42,64,.10);
}

.memory-chip:nth-child(2) { --memory-rot: 1.4deg; }
.memory-chip:nth-child(3) { --memory-rot: -.6deg; }

/* v19 route accordions, card-swipe entry, alumni memory visuals and poster cleanup */
.campus-body-inner {
  overflow: hidden !important;
}

.campus-card.open .campus-body-inner {
  overflow: visible !important;
}

.campus-map {
  height: 430px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
}

.campus-map::before {
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
.campus-map[data-map="tongji"]::before {
  background-size: cover !important;
}
/* 主校区保持 100% 100% 填满（容器比例已匹配图片） */
.campus-map[data-map="main"]::before {
  background-size: 100% 100% !important;
}

.map-pin {
  position: absolute !important;
  touch-action: manipulation;
}

.route-preview-media {
  height: 300px !important;
  min-height: 300px !important;
}

.route-preview-media img {
  object-fit: contain !important;
  object-position: center !important;
}

.module-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 10px 14px !important;
}

.module-head h3 {
  grid-column: 1 !important;
  padding-left: 16px !important;
  position: relative !important;
  letter-spacing: .04em !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.module-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  width: 4px;
  height: 1.25em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--hust-blue), #29c5d8);
}

.module-head span {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: start !important;
  max-width: 136px !important;
  white-space: normal !important;
  text-align: center;
}

.gate-swipe {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
}

.gate-pass {
  display: grid;
  grid-template-columns: minmax(132px, 1.2fr) minmax(92px, .8fr);
  gap: 14px;
  align-items: center;
  min-height: 136px !important;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(11,78,162,.16);
  background:
    linear-gradient(135deg, rgba(255,248,232,.94), rgba(232,243,241,.74)),
    radial-gradient(circle at 12% 14%, rgba(41,197,216,.20), transparent 28%);
  transition: transform .38s cubic-bezier(.22,1,.36,1), background .38s ease, box-shadow .38s ease;
  position: relative;
}

/* v49：刷卡成功后整张卡片图完整展示，文字叠在图上 */
.gate-pass.swiped,
.gate-pass.done {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  min-height: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: 0 22px 44px rgba(23,42,64,.20);
}
.gate-pass.swiped .gate-card-art,
.gate-pass.done .gate-card-art {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(23,42,64,.20);
}
.gate-pass.swiped .gate-card-art img,
.gate-pass.done .gate-card-art img {
  width: 100%;
  height: auto;
  display: block;
}
.gate-pass.swiped .gate-pass-copy,
.gate-pass.done .gate-pass-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  gap: 2px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(0deg, rgba(7,24,46,.82), rgba(7,24,46,.36) 60%, transparent);
  color: #fff;
}
.gate-pass.swiped .gate-pass-copy small,
.gate-pass.done .gate-pass-copy small,
.gate-pass.swiped .gate-pass-copy strong,
.gate-pass.done .gate-pass-copy strong,
.gate-pass.swiped .gate-pass-copy i,
.gate-pass.done .gate-pass-copy i {
  color: #fff;
}
.gate-pass.swiped .gate-pass-copy i,
.gate-pass.done .gate-pass-copy i {
  color: rgba(255,255,255,.86);
}

/* v49：用 <img> 元素天然保比例，不再用 background 拉伸 */
.gate-card-art {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23,42,64,.14), inset 0 0 0 1px rgba(255,255,255,.42);
}
.gate-card-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gate-pass-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gate-pass-copy small,
.gate-pass-copy strong,
.gate-pass-copy i {
  display: block;
}

.gate-pass-copy strong {
  font-size: 22px;
}

.quiz-card strong {
  padding-left: 18px !important;
}

.memory-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.memory-chip {
  min-height: 128px;
  padding: 12px 10px 10px;
  display: grid;
  grid-template-rows: 70px auto auto;
  gap: 5px;
  justify-items: center;
  overflow: hidden;
}

.memory-chip.memory-text-only {
  min-height: 92px;
  grid-template-rows: auto auto;
  align-content: center;
}

.memory-visual {
  width: 100%;
  height: 70px;
  border-radius: 18px;
  display: block;
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,248,232,.48)),
    radial-gradient(circle at 50% 50%, rgba(185,139,97,.24), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(22,48,76,.08);
}

.memory-meal .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 0 center;
}

.memory-menu .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 20% center;
}

.memory-table .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 40% center;
}

.memory-ripple .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 60% center;
}

.memory-wind .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 80% center;
}

.memory-pause .memory-visual {
  background-image: url("assets/generated/hust-memory-task-set.webp");
  background-size: 600% 100%;
  background-position: 100% center;
}

.ticket-footer {
  left: 42px !important;
  right: 42px !important;
  bottom: 14px !important;
  padding-top: 14px !important;
  font-size: 12px !important;
  opacity: .78;
}

@media (max-width: 640px), (max-height: 1030px) {
  .campus-map {
    height: 390px !important;
  }

  .route-preview-media {
    height: 268px !important;
    min-height: 268px !important;
  }

  .module-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .module-head span {
    grid-column: 1 !important;
    justify-self: start !important;
    max-width: 100% !important;
  }

  .gate-swipe {
    grid-template-columns: 1fr;
  }

  .gate-reader {
    width: 100%;
    height: 64px;
    border-radius: 22px;
  }

  .gate-pass {
    grid-template-columns: 1fr;
  }

  .gate-card-art {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .memory-strip {
    gap: 9px;
  }

  .memory-chip {
    min-height: 118px;
    grid-template-rows: 62px auto auto;
  }

  .memory-visual {
    height: 62px;
  }

  .memory-chip.memory-text-only {
    min-height: 92px !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
  }
}

/* v20 alumni task variety, card aspect and larger draggable guide */
.book-pages {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.book-flip-task {
  min-height: 276px;
}

.book-page.flip-page {
  min-height: 126px;
}

.gate-pass {
  grid-template-columns: minmax(0, 292px) minmax(118px, 1fr) !important;
}

.gate-card-art {
  width: min(100%, 292px) !important;
  height: auto !important;
  aspect-ratio: 10 / 7;
  justify-self: center;
  background-size: 300% 100% !important;
}

.ripple-point {
  display: grid;
  place-items: center;
  text-align: center;
}

.ripple-point span {
  display: block;
  width: 78px;
  transform: translateY(48px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  pointer-events: none;
}

.ripple-point.done span {
  color: var(--identity-accent);
}

.h5-stage[data-page="identity"] .guide-bear,
.h5-stage[data-page="route"] .guide-bear,
.h5-stage[data-page="detail"] .guide-bear,
.h5-stage[data-page="collection"] .guide-bear {
  width: 178px !important;
}

.h5-stage[data-page="identity"] .guide-bear img,
.h5-stage[data-page="route"] .guide-bear img,
.h5-stage[data-page="detail"] .guide-bear img,
.h5-stage[data-page="collection"] .guide-bear img {
  width: 150px !important;
}

.h5-stage[data-page="identity"] .guide-bear {
  right: 16px !important;
  bottom: 18px !important;
}

.h5-stage[data-page="identity"] .guide-bubble {
  display: block !important;
  right: 112px !important;
  bottom: 92px !important;
  width: 258px !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.h5-stage[data-page="route"] .guide-bubble,
.h5-stage[data-page="detail"] .guide-bubble,
.h5-stage[data-page="collection"] .guide-bubble {
  width: 252px !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 640px), (max-height: 1030px) {
  .book-flip-task {
    min-height: 252px !important;
  }

  .book-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .book-page.flip-page {
    min-height: 116px !important;
  }

  .gate-pass {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  .gate-card-art {
    width: min(100%, 306px) !important;
    height: auto !important;
  }

  .gate-pass-copy {
    width: min(100%, 306px);
    justify-self: center;
  }

  .h5-stage[data-page="identity"] .guide-bear,
  .h5-stage[data-page="route"] .guide-bear,
  .h5-stage[data-page="detail"] .guide-bear,
  .h5-stage[data-page="collection"] .guide-bear {
    width: 164px !important;
  }

  .h5-stage[data-page="identity"] .guide-bear img,
  .h5-stage[data-page="route"] .guide-bear img,
  .h5-stage[data-page="detail"] .guide-bear img,
  .h5-stage[data-page="collection"] .guide-bear img {
    width: 138px !important;
  }

  .h5-stage[data-page="identity"] .guide-bubble,
  .h5-stage[data-page="route"] .guide-bubble,
  .h5-stage[data-page="detail"] .guide-bubble,
  .h5-stage[data-page="collection"] .guide-bubble {
    width: 228px !important;
    font-size: 13px !important;
  }

  .h5-stage[data-page="identity"] .guide-bubble {
    right: 104px !important;
    bottom: 86px !important;
  }
}

/* v22 identity guide default placement: keep bear near the lower center-right */
.h5-stage[data-page="identity"] .guide-bear {
  left: 318px !important;
  right: auto !important;
  bottom: 132px !important;
}

.h5-stage[data-page="identity"] .guide-bubble {
  left: 60px !important;
  right: auto !important;
  top: auto !important;
  bottom: 332px !important;
  width: 210px !important;
}

.h5-stage[data-page="identity"] .guide-bear {
  left: 230px !important;
  right: auto !important;
  top: auto !important;
  bottom: 298px !important;
  width: 88px;
  z-index: 16;
}

/* v21 HUST emblem loader and immersive pavilion water task */
.loader-emblem {
  position: relative;
  width: 148px;
  height: 130px;
  overflow: visible;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.62);
  letter-spacing: 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.28), 0 0 26px rgba(255,255,255,.18);
  animation: emblemPulse 2.8s ease-in-out infinite alternate;
}

.loader-emblem img {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 106px;
  object-fit: contain;
  border-radius: 50%;
  clip-path: ellipse(50% 50% at 50% 50%);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}

.loader-emblem::before,
.loader-emblem::after,
.loader-orbit {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.loader-emblem::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.92) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 82%, rgba(255,255,255,.78) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 78%, rgba(255,255,255,.70) 0 2px, transparent 3px);
  animation: orbitSpin 5.6s linear infinite;
}

.loader-emblem::after {
  inset: -22px;
  background: conic-gradient(from 90deg, transparent, rgba(255,255,255,.55), transparent 34%, rgba(255,255,255,.42), transparent 64%, rgba(255,255,255,.50), transparent);
  filter: blur(2px);
  opacity: .66;
  animation: orbitSpin 9s linear infinite reverse;
}

.loader-orbit {
  border: 1px solid rgba(255,255,255,.22);
  transform: rotateX(68deg) rotateZ(20deg);
}

.loader-orbit-b {
  inset: -18px;
  border-color: rgba(255,255,255,.20);
  transform: rotateX(64deg) rotateZ(-38deg);
  animation: orbitGlow 2.4s ease-in-out infinite alternate;
}

@keyframes emblemPulse {
  from { transform: scale(.97); box-shadow: 0 8px 30px rgba(0,0,0,.28), 0 0 26px rgba(255,255,255,.18); }
  to { transform: scale(1.03); box-shadow: 0 10px 38px rgba(0,0,0,.32), 0 0 40px rgba(255,255,255,.28); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitGlow {
  from { opacity: .45; }
  to { opacity: .95; }
}

.ripple-surface {
  position: relative;
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  border: 1px solid rgba(22,48,76,.12);
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(7,24,46,.10)),
    url("assets/generated/pavilion-water-panel.webp") center/cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 28px rgba(23,42,64,.12);
}

.ripple-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 28% 58%, rgba(255,255,255,.30), transparent 36%),
    radial-gradient(ellipse at 72% 46%, rgba(41,197,216,.24), transparent 30%);
  opacity: .46;
  transform: translate3d(0, 0, 0);
  animation: waterFlow 4.8s ease-in-out infinite alternate;
}

.ripple-surface::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: 2;
  background: linear-gradient(105deg, transparent 22%, rgba(255,255,255,.32) 44%, transparent 62%);
  transform: translateX(-38%);
  animation: waterSheen 3.8s ease-in-out infinite;
}

.water-sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, transparent 12%, rgba(255,255,255,.20) 48%, transparent 78%),
    radial-gradient(ellipse at 56% 18%, rgba(255,248,232,.20), transparent 34%);
  transform: translate3d(-8%, 0, 0);
  animation: waterBreathe 4.2s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.water-ring {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(224,249,255,.42);
  opacity: .62;
  pointer-events: none;
  transform: translateZ(0);
  animation: idleRipple 4.8s ease-in-out infinite;
}

.water-ring-a {
  left: 18%;
  top: 28%;
  width: 230px;
  height: 82px;
}

.water-label {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 106px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7,24,46,.52);
  border: none;
  box-shadow: 0 12px 26px rgba(7,24,46,.20);
  font-size: 13px;
  font-weight: 900;
  transition: transform .28s ease, background .28s ease;
  animation: none;
}

.ripple-surface.wave-1 .water-label {
  background: color-mix(in srgb, var(--identity-accent) 74%, rgba(7,24,46,.46));
  transform: translateX(-50%) translateY(-4px);
}

.water-tap {
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 0 18px rgba(41,197,216,.75);
  pointer-events: none;
  animation: waterTap .88s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes waterFlow {
  from { transform: translate3d(-6px, -3px, 0) scale(1.01); opacity: .42; }
  to { transform: translate3d(7px, 4px, 0) scale(1.025); opacity: .58; }
}

@keyframes waterSheen {
  0%, 22% { transform: translateX(-46%) rotate(2deg); opacity: 0; }
  52% { opacity: .72; }
  100% { transform: translateX(54%) rotate(2deg); opacity: 0; }
}

@keyframes waterBreathe {
  from { transform: translate3d(-8%, -2px, 0); opacity: .52; }
  to { transform: translate3d(8%, 3px, 0); opacity: .82; }
}

@keyframes idleRipple {
  0%, 100% { transform: scale(.94); opacity: .36; }
  50% { transform: scale(1.06); opacity: .68; }
}

@keyframes waterTap {
  0% { opacity: .9; transform: scale(.28); }
  68% { opacity: .62; }
  100% { opacity: 0; transform: scale(7.2); }
}

@media (max-width: 640px), (max-height: 1030px) {
  .loader-emblem {
    width: 134px;
    height: 118px;
  }

  .loader-emblem img {
    width: 112px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    clip-path: ellipse(50% 50% at 50% 50%);
  }

  .ripple-surface {
    min-height: 164px;
  }
}

/* === v23: 身份选择页 — 新屋熊贴合对话框右下角，整体置于校友卡片下方 === */
.h5-stage[data-page="identity"] .guide-bear {
  left: 30px !important;
  right: auto !important;
  top: auto !important;
  bottom: 174px !important;
  width: 280px !important;
  z-index: 16 !important;
}
.h5-stage[data-page="identity"] .guide-bear img {
  width: 108px !important;
}
.h5-stage[data-page="identity"] .guide-bubble {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: auto !important;
  bottom: 40px !important;
  width: 192px !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  border-radius: 18px 18px 5px 18px !important;
}

/* === v24: 原图点击查看弹层 + 返回集章册按钮 === */
.image-viewer {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 19, 33, .94);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  animation: viewerFadeIn .28s ease both;
}
.image-viewer.show {
  display: flex;
}
.image-viewer img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.image-viewer-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 20px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.image-viewer-label {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 22px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 78, 162, .72);
  border: 1px solid rgba(255, 255, 255, .32);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
}
.image-viewer[data-kind="future"] .image-viewer-label,
.image-viewer img[data-kind="future"] ~ .image-viewer-label {
  background: rgba(216, 168, 91, .72);
}
@keyframes viewerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.task-stamp-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  font-size: 16px;
}
.task-stamp-btn[hidden] {
  display: none !important;
}
.task-stamp-btn::after {
  content: none !important;
}
.task-stamp-btn::before {
  content: "📁";
  margin-right: 8px;
  font-size: 18px;
}

/* === v25d: 重新设计背景 — 完整铺满 + 不裁切校徽校训 === */
/* 图片比例 0.622 ≈ 页面比例 0.621，用 100% 100% 拉伸填满视口，变形 <0.2% 肉眼不可见 */
/* 用默认 scroll（非 local）：背景固定铺满视口，内容在背景上滚动，校徽校训始终完整可见 */

/* 中和旧的 ::before / ::after 背景层 */
.page.route::before,
.page.route::after,
.page.detail::before,
.page.detail::after,
.page.collection::before,
.page.collection::after {
  content: none !important;
  display: none !important;
}

/* 背景图拉伸填满整个视口（padding box），不裁切；蒙层保证文字可读 */
.page.route.active,
.page.detail.active,
.page.collection.active {
  background-image:
    linear-gradient(180deg, rgba(246,240,223,.10), rgba(246,240,223,.22)),
    var(--identity-bg) !important;
  background-size: 100% 100%, 100% 100% !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-attachment: scroll, scroll !important;
  background-color: var(--paper) !important;
}

/* 详情页蒙层稍轻（内容区有自己的底色） */
.page.detail.active {
  background-image:
    linear-gradient(180deg, rgba(246,240,223,.08), rgba(237,243,241,.18)),
    var(--identity-bg) !important;
}

/* 让原有 .paper-noise 等装饰保持在背景之上但不挡内容 */
.page.route .paper-noise,
.page.detail .paper-noise,
.page.collection .paper-noise {
  z-index: 1;
}

/* 详情页内容卡片保持可读 */
.page.detail .story-card,
.page.detail .interaction-card,
.page.detail .detail-header {
  position: relative;
  z-index: 2;
}
.page.detail .story-card {
  background: rgba(255,248,232,.92) !important;
  backdrop-filter: blur(8px);
}

/* ============================================================
   v26 视觉收敛：字重层级 + 局部细节
   原则：标题 800 / 副标 600 / 正文 500 / 标签 700，去掉满屏 900
   ============================================================ */

/* —— 字重层级 —— */
.eyebrow, .eyebrow.dark { font-weight: 700; }
.topbar-brand, .progress-pill { font-weight: 700; }
.photo-slot span { font-weight: 700; }
.role-card span { font-weight: 700; }
.mini-label { font-weight: 700; }
.module-head span { font-weight: 700; }
.image-badge { font-weight: 700; }
.campus-meta span { font-weight: 700; }
.ticket-top { font-weight: 700; }
.tool { font-weight: 700; }
.season-btn { font-weight: 700; }
.stamp strong { font-weight: 600; }
.route-preview-card span { font-weight: 700; }
.map-note-tag { font-weight: 700; }
.landmark-chip b { font-weight: 700; }

/* 主标题保留分量但不顶满 */
.page-title h2 { font-weight: 800; }
.compact-title h2 { font-weight: 800; }
.cover h1 { font-weight: 800; }
.cover h2 { font-weight: 500; }
.ticket h2 { font-weight: 800; }
.detail-header h2 { font-weight: 800; }
.route-preview-card h3 { font-weight: 800; }

/* 按钮从 900 降到 800，仍醒目但不笨重 */
.primary-btn, .ghost-btn, .small-btn { font-weight: 800; }

/* 正文/副标降到 500-600 */
.lead { font-weight: 500; }
.route-preview-card p { font-weight: 500; }
.story-card p { font-weight: 500; }
.module-copy { font-weight: 500; }
.ticket p { font-weight: 500; }
.campus-meta small { font-weight: 500; }
.info-panel p { font-weight: 500; }

/* —— 局部细节 —— */

/* 1. 详情页图片区底色：灰蓝绿 → 暖纸色，贴合手账调性 */
.image-layers { background: #ece2c8; }

/* 2. 集章册未点亮 stamp 提亮，避免大面积灰暗 */
.stamp {
  color: rgba(22, 48, 76, .50);
  background: rgba(255, 255, 255, .62);
}
.stamp-icon { opacity: .55; }

/* 3. 结尾票根挖孔：深蓝实心 → 深褐灰，与纸色票根过渡更自然 */
.ticket::before, .ticket::after { background: #3a322a; }

/* 4. 封面 time-ribbon 渐变线去掉青绿，收敛为白+金 */
.time-ribbon i {
  background: linear-gradient(90deg, #fff, #d8a85b);
  box-shadow: 0 0 14px rgba(216, 168, 91, .6);
}

/* ============================================================
   v27 配色收敛：华科蓝 + 纸金 为主，弱化青/绿/红的科技感
   原则：保留 --hust-blue / --paper / --warm 为主色系
        --cyan / --green / --red 降级为低饱和辅助或替换
   手法：用末尾覆盖块统一改，不动多版本历史定义
   ============================================================ */

/* —— 1. 收敛 CSS 变量：青/绿降饱和，主色更聚焦 —— */
:root {
  --cyan: #6b9cc4;          /* 青绿 → 柔和蓝灰，仅作 hover/辅助 */
  --green: #6f8f6a;          /* 翠绿 → 哑光橄榄，配合纸金调性 */
}

/* —— 2. body 外圈氛围光斑：去掉青绿，改深蓝 + 暖灰 —— */
body {
  background:
    radial-gradient(circle at 12% 10%, rgba(11, 78, 162, .22), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(120, 96, 60, .18), transparent 30%),
    #0a1a2e;
}

/* —— 3. 加载页背景光斑：青 → 蓝 —— */
.loading {
  background:
    radial-gradient(circle at 50% 38%, rgba(11, 78, 162, .20), transparent 42%),
    linear-gradient(180deg, rgba(8,24,48,.62), rgba(5,16,32,.88)),
    url("./assets/generated/loading-hust-gate-mao.webp") center/cover no-repeat,
    #07182e;
}

/* —— 4. 封面背景：青绿光斑 → 蓝金 —— */
.cover {
  background:
    radial-gradient(circle at 8% 8%, rgba(11, 78, 162, .42), transparent 30%),
    radial-gradient(circle at 76% 36%, rgba(216, 168, 91, .34), transparent 30%),
    linear-gradient(160deg, #0c2f68 0%, #0c2f68 38%, #07182e 100%);
}

/* —— 5. 主按钮渐变已由 v31 渐变玻璃质感取代，清理旧定义 —— */

/* —— 6. 交互元素：青色发光 → 蓝色发光 —— */
.compare-handle {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 18px rgba(11, 78, 162, .7);
}
.star.on {
  background: var(--hust-blue);
  box-shadow: 0 0 20px rgba(11, 78, 162, .8);
}
.window-dot.on {
  background: #f0c060;
  box-shadow: 0 0 14px rgba(240, 192, 96, .72);
}

/* —— 7. 未来图占位：青绿底 → 蓝金底 —— */
.future-placeholder {
  background:
    linear-gradient(135deg, rgba(11, 78, 162, .42), rgba(216, 168, 91, .20)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .26) 0 1px, transparent 1px 24px),
    #0c2f68;
  color: #fff;
}

/* —— 8. 标题渐变：青色终点 → 金色终点（各身份统一） —— */
:root { --title-gradient: linear-gradient(100deg, #16304c 0%, #0b4ea2 58%, #d8a85b 100%); }
.h5-stage.theme-highschool { --title-gradient: linear-gradient(100deg, #0c2f68 0%, #0A73FD 50%, #72BCFF 85%, #B2C7FE 100%); }
.h5-stage.theme-student    { --title-gradient: linear-gradient(100deg, #0c2f68 0%, #0b4ea2 55%, #6b9cc4 100%); }
.h5-stage.theme-alumni     { --title-gradient: linear-gradient(100deg, #16304c 0%, #b98b61 58%, #d8a85b 100%); }
.h5-stage.theme-public     { --title-gradient: linear-gradient(100deg, #16304c 0%, #6f8f6a 58%, #d8a85b 100%); }

/* —— 9. 已解锁地标 / 季节按钮：绿 → 哑光橄榄（更贴纸金调） —— */
.map-pin.unlocked { border-color: rgba(111, 143, 106, .7); box-shadow: 0 0 0 5px rgba(111, 143, 106, .14), 0 12px 26px rgba(23, 42, 64, .16); }
.season-btn.active { background: var(--green); color: #fff; }

/* —— 10. 身份主题色：社会大众 绿 → 哑光橄榄（已在变量层调整） —— */
/* theme-public 的 --identity-accent 自动跟随 --green 变化，无需单独改 */

/* ============================================================
   v28 学术金箔配色：按钮 + 集章册 + 票根 精修
   色板：Ink Navy #0f1a24 / Scholar Blue #1f3a4a / Leaf Gold #b08a2e
        Linen Cream #f4efe6 / Archive White #f2f4f5
   ============================================================ */

/* —— v28 Scholar Blue 实色按钮已被 v31 渐变玻璃取代，清理旧定义 —— */

/* —— ghost 按钮：暖白底 + 金灰边 —— */
.ghost-btn {
  background: rgba(244, 239, 230, .82);
  border: 1px solid rgba(176, 138, 46, .20);
  color: #1f3a4a;
}

/* —— small-btn：深蓝 → Scholar Blue —— */
.small-btn {
  background: #1f3a4a;
  color: #fff;
}
.small-btn.muted {
  background: rgba(31, 58, 74, .08);
  color: #1f3a4a;
  border: 1px solid rgba(31, 58, 74, .14);
}

/* —— 集章册：纸黄底 → Linen Cream 暖亚麻 —— */
.notebook {
  background:
    linear-gradient(90deg, rgba(59, 53, 47, .06) 1px, transparent 1px),
    linear-gradient(#faf6ee, #f0e8d8);
  border: 1px solid rgba(176, 138, 46, .18);
  box-shadow: 0 18px 48px rgba(59, 53, 47, .14);
}
.notebook-ring {
  background: repeating-linear-gradient(180deg, rgba(59, 53, 47, .28) 0 18px, transparent 18px 38px);
}

/* —— stamp 未点亮：更柔和的亚麻底 —— */
.stamp {
  color: rgba(59, 53, 47, .42);
  background: rgba(250, 246, 238, .68);
  border: 1px dashed rgba(176, 138, 46, .22);
}
.stamp-icon {
  border: 1px dashed rgba(176, 138, 46, .20);
  opacity: .50;
}

/* —— stamp 已解锁：Scholar Blue + Leaf Gold 描边 —— */
.stamp.unlocked {
  color: #1f3a4a;
  background: #faf6ee;
  border: 2px solid rgba(176, 138, 46, .48);
  box-shadow: 0 8px 20px rgba(59, 53, 47, .10);
}
.stamp.unlocked .stamp-icon {
  color: #fff;
  background: #1f3a4a;
  border: 0;
}

/* —— 集章册页面底色：统一 Linen Cream —— */
.collection {
  background: linear-gradient(180deg, #f4efe6, #ece4d4);
}

/* —— 票根：暖白 → Linen Cream，挖孔改暖灰 —— */
.ticket {
  background: linear-gradient(145deg, rgba(250, 246, 238, .94), rgba(240, 232, 216, .88));
  box-shadow: 0 24px 60px rgba(15, 26, 36, .28);
}
.ticket::before, .ticket::after {
  background: #2b2419;
}
.ticket-stats div {
  background: rgba(31, 58, 74, .06);
}
.ticket-stats strong {
  color: #1f3a4a;
}
.ticket-top {
  color: #b08a2e;
}
.ticket-footer {
  border-top: 1px dashed rgba(59, 53, 47, .20);
  color: rgba(59, 53, 47, .48);
}

/* —— 结尾页背景：纯深蓝 → Ink Navy 渐变 —— */
.ending {
  background: linear-gradient(180deg, #0f1a24, #0a1320);
}

/* —— topbar/progress 胶囊：暖白 → Linen Cream —— */
.topbar-brand, .progress-pill {
  background: rgba(250, 246, 238, .80);
  border: 1px solid rgba(176, 138, 46, .16);
  color: #1f3a4a;
}

/* —— 底部导航圆钮：深蓝 → Ink Navy —— */
.bottom-nav button {
  background: #1f3a4a;
  box-shadow: 0 8px 22px rgba(15, 26, 36, .28);
}

/* —— map-pin active：华科蓝 → Scholar Blue —— */
.map-pin.active {
  background: #1f3a4a;
  color: #fff;
}

/* —— eyebrow/标签色：华科蓝 → Scholar Blue —— */
.eyebrow.dark { color: #1f3a4a; }
.mini-label { color: #1f3a4a; }
.module-head span { color: #1f3a4a; }
.campus-meta span { color: #b08a2e; }
.campus-meta strong { color: #1f3a4a; }
.route-preview-card span { color: #b08a2e; }
.image-badge { background: rgba(15, 26, 36, .52); }

/* ============================================================
   v29 四套身份配色 + 修复"下一站"纯黑感
   每个身份一套契合背景图的配色，按钮随身份变化
   ============================================================ */

/* —— 高中生：活力蓝（契合蓝色背景图，参考封面按钮渐变风格） —— */
.h5-stage.theme-highschool {
  --identity-accent: #0A73FD;
  --identity-soft: #e6f2ff;
  --title-gradient: linear-gradient(100deg, #0c2f68 0%, #0A73FD 45%, #72BCFF 82%, #B2C7FE 100%);
}
.h5-stage.theme-highschool .route,
.h5-stage.theme-highschool .detail,
.h5-stage.theme-highschool .collection {
  background: linear-gradient(180deg, #eef5ff, #e4effb);
}

/* —— 高中生按钮：精确按参考图蓝色渐变还原 —— */
.h5-stage.theme-highschool .primary-btn,
.h5-stage.theme-highschool .task-next-btn,
.h5-stage.theme-highschool .route-enter-btn {
  background: linear-gradient(135deg, #0A73FD 0%, #72BCFF 35%, #B2C7FE 70%, #FFDDB7 100%);
  border: none;
  border-radius: 999px;
  box-shadow:
    /* 内阴影1：模糊30，#DEFEFF 80% */
    inset 0 3px 18px rgba(222, 239, 255, .80),
    /* 内阴影2：模糊60，#BDD4FF 100% */
    inset 0 6px 38px rgba(189, 212, 255, 1.00),
    /* 外投影 */
    0 12px 36px rgba(10, 115, 253, .22);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 6px rgba(10, 115, 253, .20);
}
/* 高光层：椭圆 + blur60 + plus-lighter（与封面按钮一致） */
.h5-stage.theme-highschool .primary-btn::before,
.h5-stage.theme-highschool .task-next-btn::before,
.h5-stage.theme-highschool .route-enter-btn::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 140%;
  height: 120%;
  left: -20%;
  top: -10%;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 55% at 35% 22%, rgba(255, 255, 255, .95), transparent 65%);
  filter: blur(60px);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  animation: none;
  z-index: 1;
}
/* 描边 + 呼吸光晕 */
.h5-stage.theme-highschool .primary-btn::after,
.h5-stage.theme-highschool .task-next-btn::after,
.h5-stage.theme-highschool .route-enter-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .28);
  pointer-events: none;
  animation: actionGlow 2s ease-in-out infinite;
  z-index: 2;
}
.h5-stage.theme-highschool .primary-btn:active,
.h5-stage.theme-highschool .task-next-btn:active,
.h5-stage.theme-highschool .route-enter-btn:active { filter: brightness(.94); }

/* —— 在读生：学院蓝（契合蓝色背景图，专注/学术感） —— */
.h5-stage.theme-student {
  --identity-accent: #1f5a9c;
  --identity-soft: #e6f0fb;
  --title-gradient: linear-gradient(100deg, #0c2f68 0%, #1f5a9c 55%, #7eb0e0 100%);
}
.h5-stage.theme-student .route,
.h5-stage.theme-student .detail,
.h5-stage.theme-student .collection {
  background: linear-gradient(180deg, #eef4fb, #e4edf6);
}

/* —— 校友：暖棕红木提亮版（契合棕色背景图，怀旧/温润感） —— */
.h5-stage.theme-alumni {
  --identity-accent: #b0884a;
  --identity-soft: #f7ebdc;
  --title-gradient: linear-gradient(100deg, #3d2a18 0%, #b0884a 55%, #deb485 100%);
}
.h5-stage.theme-alumni .route,
.h5-stage.theme-alumni .detail,
.h5-stage.theme-alumni .collection {
  background: linear-gradient(180deg, #f8f0e3, #f2e5d2);
}

/* —— 社会大众：橄榄墨绿（契合绿色背景图，开放/人文感） —— */
.h5-stage.theme-public {
  --identity-accent: #5d7d56;
  --identity-soft: #e8efe2;
  --title-gradient: linear-gradient(100deg, #1f2c1c 0%, #5d7d56 58%, #9bb28a 100%);
}
.h5-stage.theme-public .route,
.h5-stage.theme-public .public,
.h5-stage.theme-public .detail,
.h5-stage.theme-public .collection {
  background: linear-gradient(180deg, #eef2e8, #e2ead8);
}

/* v29 旧实色按钮定义已由 v31 渐变玻璃质感完全取代，删除以避免 :active 冲突 */

/* —— route-enter-btn 同步随身份 —— */
.route-enter-btn {
  background: var(--identity-accent, #1f5a9c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--identity-accent, #1f5a9c) 26%, transparent);
}

/* —— small-btn 随身份（非固定深色） —— */
.small-btn {
  background: var(--identity-accent, #1f5a9c);
  color: #fff;
}

/* —— 标签/eyebrow 随身份主色，不再统一 Scholar Blue —— */
.eyebrow.dark { color: var(--identity-accent, #1f5a9c); }
.mini-label { color: var(--identity-accent, #1f5a9c); }
.module-head span { color: var(--identity-accent, #1f5a9c); }
.campus-meta strong { color: var(--identity-accent, #1f5a9c); }

/* —— map-pin active 随身份 —— */
.map-pin.active {
  background: var(--identity-accent, #1f5a9c);
  color: #fff;
}

/* —— stamp 已解锁随身份 —— */
.stamp.unlocked {
  color: var(--identity-accent, #1f5a9c);
  border: 2px solid color-mix(in srgb, var(--identity-accent, #1f5a9c) 52%, transparent);
}
.stamp.unlocked .stamp-icon {
  background: var(--identity-accent, #1f5a9c);
}

/* —— ticket-top / stats 随身份 —— */
.ticket-top { color: var(--identity-accent, #1f5a9c); }
.ticket-stats strong { color: var(--identity-accent, #1f5a9c); }

/* ============================================================
   v31 按钮玻璃质感（按参考图精确还原）
   图层顺序：高光(前) → 基础渐变+内阴影(后)
   参考图内阴影参数：#DEFEFF blur30 / #BDD4FF blur60
   ============================================================ */

/* —— 封面按钮：精确按图还原 —— */
.cover-copy .primary-btn {
  --identity-accent: #0A73FD;
  background: linear-gradient(135deg, #0A73FD 0%, #72BCFF 35%, #B2C7FE 70%, #FFDDB7 100%);
  border: none;
  border-radius: 999px;
  box-shadow:
    /* 内阴影1：模糊30，#DEFEFF 80% */
    inset 0 3px 18px rgba(222, 239, 255, .80),
    /* 内阴影2：模糊60，#BDD4FF 100% */
    inset 0 6px 38px rgba(189, 212, 255, 1.00),
    /* 外投影 */
    0 12px 36px rgba(10, 115, 253, .22);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 6px rgba(10, 115, 253, .20);
}
/* 图层1（最上层）：椭圆形高光，blur60，plus-lighter */
.cover-copy .primary-btn::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 140%;
  height: 120%;
  left: -20%;
  top: -10%;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 55% at 35% 22%, rgba(255, 255, 255, .95), transparent 65%);
  filter: blur(60px);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  animation: none;
  z-index: 1;
}
/* 内描边 + 呼吸光晕 */
.cover-copy .primary-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .28);
  pointer-events: none;
  animation: actionGlow 2s ease-in-out infinite;
  z-index: 2;
}
.cover-copy .primary-btn:active { filter: brightness(.94); }

/* —— 各身份按钮：同结构，颜色基于身份主色渐变到暖色收尾 —— */
.primary-btn,
.task-next-btn,
.route-enter-btn {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--identity-accent, #1f5a9c) 85%, #fff) 0%,
    var(--identity-accent, #1f5a9c) 30%,
    color-mix(in srgb, var(--identity-accent, #1f5a9c) 55%, #fff) 65%,
    #E8B86A 100%);
  border: none;
  border-radius: 999px;
  box-shadow:
    inset 0 3px 14px rgba(255, 255, 255, .24),
    inset 0 6px 30px color-mix(in srgb, var(--identity-accent, #1f5a9c) 18%, #fff),
    0 8px 24px color-mix(in srgb, var(--identity-accent, #1f5a9c) 34%, transparent);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

/* v38b：校友按钮提亮——深棕端偏黑，改成更浅的暖棕，保留深黄调 */
.h5-stage.theme-alumni .primary-btn,
.h5-stage.theme-alumni .task-next-btn,
.h5-stage.theme-alumni .route-enter-btn {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--identity-accent) 62%, #fff) 0%,
    color-mix(in srgb, var(--identity-accent) 82%, #fff) 30%,
    color-mix(in srgb, var(--identity-accent) 50%, #fff) 65%,
    #E8B86A 100%);
}
/* 高光层：椭圆 + blur48 + plus-lighter */
.primary-btn::before,
.task-next-btn::before,
.route-enter-btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  width: 130%;
  height: 115%;
  left: -15%;
  top: -8%;
  border-radius: inherit;
  background: radial-gradient(ellipse 65% 52% at 32% 22%, rgba(255, 255, 255, .72), transparent 62%);
  filter: blur(48px);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  animation: none;
  z-index: 1;
}
/* 描边 + 呼吸光晕 */
.primary-btn::after,
.task-next-btn::after,
.route-enter-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .22);
  pointer-events: none;
  animation: actionGlow 2s ease-in-out infinite;
  z-index: 2;
}
/* v33d：醉晚亭水纹任务去除磨砂 + 边框呼吸 */
.ripple-surface::after,
.ripple-surface::before {
  animation: none !important;
}
.ripple-surface {
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 28px rgba(23,42,64,.12) !important;
}
.ripple-surface .water-label {
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 12px 26px rgba(7,24,46,.20) !important;
}
.primary-btn:active,
.task-next-btn:active,
.route-enter-btn:active { filter: brightness(.94); }

/* ============================================================
   v33 身份卡片右上角徽章统一优化
   v33c：去掉圆形徽章底，只展示图标本身
   ============================================================ */
.role-card::after {
  width: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  right: 16px !important;
  top: 16px !important;
  opacity: 1 !important;
  border: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  background-color: transparent !important;
  background-size: 48px 48px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.role-card.highschool::after {
  content: "";
  background-image: url('./assets/generated/录取通知书.webp') !important;
}
.role-card.student::after {
  content: "";
  background-image: url('./assets/generated/校园卡.webp') !important;
}
.role-card.alumni::after {
  content: "";
  background-image: url('./assets/generated/旧相册.webp') !important;
}
.role-card.public::after {
  content: "";
  background-image: url('./assets/generated/导览票.webp') !important;
}
/* 选中态：图标微放大 */
.role-card.active::after {
  transform: scale(1.12);
}

/* ============================================================
   v37 高中生主题：全面清除橘色/金色残留，统一为活力蓝
   覆盖 v28 硬编码金色的字体与组件，与按钮配色一致
   ============================================================ */

/* —— 1. 字体颜色：金色标签文字 → 蓝色 —— */
.h5-stage.theme-highschool .campus-meta span { color: #0A73FD; }

/* —— 2. 组件边框/背景：金色 → 蓝色 —— */
/* 图书馆故事卡片左边框 */
.h5-stage.theme-highschool .detail-book .story-card { border-left-color: rgba(10, 115, 253, .55); }

/* 未来图标签 */
.h5-stage.theme-highschool .image-viewer[data-kind="future"] .image-viewer-label,
.h5-stage.theme-highschool .image-viewer img[data-kind="future"] ~ .image-viewer-label {
  background: rgba(10, 115, 253, .72);
}

/* 未来图占位渐变：蓝金 → 纯蓝 */
.h5-stage.theme-highschool .future-placeholder {
  background:
    linear-gradient(135deg, rgba(10, 115, 253, .52), rgba(114, 188, 255, .30)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .26) 0 1px, transparent 1px 24px),
    #0c2f68;
}

/* 教室灯光：金色 → 蓝色 */
.h5-stage.theme-highschool .window-dot.on {
  background: #5ba8ff;
  box-shadow: 0 0 14px rgba(91, 168, 255, .72);
}

/* 星点：深蓝 → 活力蓝 */
.h5-stage.theme-highschool .star.on {
  background: #0A73FD;
  box-shadow: 0 0 20px rgba(10, 115, 253, .8);
}

/* —— 3. 装饰性金色光斑 → 蓝色光斑 —— */
/* 路线页 / 详情页 / 集章册页背景光斑 */
.h5-stage.theme-highschool .route,
.h5-stage.theme-highschool .detail,
.h5-stage.theme-highschool .collection {
  background:
    radial-gradient(circle at 12% 16%, rgba(10, 115, 253, .14), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(114, 188, 255, .14), transparent 28%),
    linear-gradient(180deg, #eef5ff, #e4effb);
}

/* 详情页内交互区氛围光斑 */
.h5-stage.theme-highschool .detail::before {
  background:
    radial-gradient(circle at 74% 8%, rgba(10, 115, 253, .14), transparent 22%),
    radial-gradient(circle at 22% 22%, rgba(114, 188, 255, .12), transparent 24%);
}

/* story-card / interaction-card 装饰光斑 */
.h5-stage.theme-highschool .story-card::before,
.h5-stage.theme-highschool .interaction-card::before {
  background: radial-gradient(circle at 70% 25%, rgba(10, 115, 253, .12), transparent 18%);
}

/* info / detail 底部氛围 */
.h5-stage.theme-highschool .info {
  background:
    radial-gradient(circle at 84% 72%, rgba(10, 115, 253, .10), transparent 24%),
    linear-gradient(180deg, #eef5ff, #e4effb);
}

/* —— 4. 票根/集章册装饰：金色描边 → 蓝色描边 —— */
.h5-stage.theme-highschool .stamp {
  border-color: rgba(10, 115, 253, .22);
}
.h5-stage.theme-highschool .stamp.unlocked {
  border-color: rgba(10, 115, 253, .48);
}
.h5-stage.theme-highschool .notebook {
  border-color: rgba(10, 115, 253, .18);
}

/* —— 5. ghost-btn 金灰边 → 蓝灰边 —— */
.h5-stage.theme-highschool .ghost-btn {
  border-color: rgba(10, 115, 253, .20);
}

/* —— 6. topbar / progress 胶囊金边 → 蓝边 —— */
.h5-stage.theme-highschool .topbar-brand,
.h5-stage.theme-highschool .progress-pill {
  border-color: rgba(10, 115, 253, .16);
}

/* —— 7. 路线预览卡片装饰 —— */
.h5-stage.theme-highschool .route-preview-card::before {
  background: linear-gradient(90deg, rgba(10, 115, 253, .18), transparent 12%);
}

/* —— 8. 校区折叠卡：暖米底 → 冷蓝白底（主校区/同济校区按钮） —— */
.h5-stage.theme-highschool .campus-card,
.h5-stage.theme-highschool .campus-card.open {
  background: rgba(238, 245, 255, .88);
}

/* —— 9. 校区展开开关：蓝底 —— */
.h5-stage.theme-highschool .campus-card.open .campus-toggle {
  background: rgba(10, 115, 253, .14);
}

/* —— 10. 集章册底色：暖亚麻 → 冷蓝白 —— */
.h5-stage.theme-highschool .notebook {
  background:
    linear-gradient(90deg, rgba(10, 115, 253, .06) 1px, transparent 1px),
    linear-gradient(#f6faff, #e8f0fc);
}
.h5-stage.theme-highschool .collection {
  background: linear-gradient(180deg, #eef5ff, #e4effb);
}

/* —— 11. 票根：暖白 → 冷蓝白 —— */
.h5-stage.theme-highschool .ticket {
  background: linear-gradient(145deg, rgba(246, 250, 255, .94), rgba(228, 239, 251, .88));
}
.h5-stage.theme-highschool .ticket-stats div {
  background: rgba(10, 115, 253, .06);
}

/* —— 12. 图片层底色：暖纸 → 冷蓝灰 —— */
.h5-stage.theme-highschool .image-layers {
  background: #dce8f5;
}

/* —— 13. 占位符：暖纸 → 冷蓝 —— */
.h5-stage.theme-highschool .placeholder {
  background: rgba(238, 245, 255, .68);
}

/* —— 14. image-badge 现在标签 —— */
.h5-stage.theme-highschool .image-badge {
  background: rgba(10, 115, 253, .52);
}

/* —— 15. compare-handle 拖动手柄：金 → 蓝 —— */
.h5-stage.theme-highschool .compare-handle {
  background: rgba(10, 115, 253, .72);
  box-shadow: 0 0 12px rgba(10, 115, 253, .52);
}
.h5-stage.theme-highschool .compare-handle i {
  background: rgba(238, 245, 255, .72);
}
