:root {
  --navy-950: #061426;
  --navy-900: #0a213b;
  --navy-800: #123656;
  --navy-700: #1c4d74;
  --blue-100: #dcecf7;
  --blue-50: #eef6fb;
  --paper: #f5f7f4;
  --card: #ffffff;
  --ink: #10263e;
  --muted: #5e7182;
  --line: #d6e0e3;
  --orange: #ec6f32;
  --orange-dark: #bc4d20;
  --danger: #a6443d;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  line-height: 1.62;
}

button,
input,
select { font: inherit; }

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .44;
}

a { color: inherit; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

#main[tabindex="-1"]:focus { outline: 0; }

.skip-link {
  position: absolute;
  top: 0;
  left: -10000px;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--navy-950);
  background: #fff;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  color: var(--ink);
  background: rgba(245, 247, 244, .96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  max-width: min(68vw, 36rem);
  color: inherit;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.18;
  text-decoration: none;
}

.brand-kicker,
.eyebrow {
  color: var(--navy-700);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.environment {
  padding: .28rem .65rem;
  color: var(--navy-700);
  border: 1px solid #c6d9e3;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 720;
  white-space: nowrap;
}

.site-main {
  width: min(1180px, calc(100% - 2.5rem));
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.75rem) 0 clamp(3rem, 7vw, 6rem);
}

.reader-main {
  min-height: calc(100vh - 78px);
  background: var(--navy-950);
}

footer {
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  color: #c4d4df;
  background: var(--navy-950);
  font-size: .83rem;
}

.loading {
  display: grid;
  min-height: 45vh;
  place-items: center;
  color: var(--muted);
}

.discovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5.5rem);
  overflow: hidden;
  background: linear-gradient(124deg, #fffdf7 0%, #eef7fa 53%, #d7edf4 100%);
  border: 1px solid #d8e8e9;
  border-radius: 28px;
}

.discovery-hero h1,
.room-hero h1,
.section-heading h2,
.reader-topbar h1,
.reader-title-block h2,
.poster-metadata h2,
.error-view h1 {
  font-family: ui-serif, Georgia, "Songti SC", STSong, serif;
}

.discovery-hero h1 {
  max-width: 11ch;
  margin: .55rem 0 1rem;
  color: var(--navy-900);
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero-copy {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.primary-link,
.card-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.45rem;
  padding: .68rem 1rem;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
}

.primary-link:hover,
.card-action:hover { background: var(--orange-dark); }

.hero-orbit {
  position: relative;
  display: grid;
  width: min(100%, 315px);
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(18, 77, 116, .22);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 17%, #bedee9 18% 19%, transparent 20% 41%, #d1eaf0 42% 43%, transparent 44% 62%, #dbeff2 63% 64%, transparent 65%);
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--navy-700);
  border-radius: 50%;
}

.hero-orbit::before { top: 13%; left: 28%; }
.hero-orbit::after { right: 17%; bottom: 25%; }
.hero-orbit span:first-child { top: 49%; left: 7%; width: 8px; height: 8px; background: var(--navy-700); }
.hero-orbit span:nth-child(2) { top: 16%; right: 23%; width: 7px; height: 7px; background: var(--navy-700); }
.hero-orbit span:nth-child(3) { right: 7%; bottom: 48%; width: 7px; height: 7px; background: var(--navy-700); }

.hero-orbit b {
  display: block;
  color: var(--navy-800);
  font-size: .82rem;
  letter-spacing: .16em;
  line-height: 1.35;
  text-align: center;
}

.conference-platforms { margin-top: clamp(3rem, 8vw, 7rem); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  max-width: 19ch;
  margin: .35rem 0 0;
  color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 640;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.discovery-heading > p {
  max-width: 30rem;
  margin: 0 0 .15rem;
  color: var(--muted);
}

.conference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.conference-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  padding: 1.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(24, 65, 82, .05);
}

.conference-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 720;
}

.conference-index {
  color: var(--navy-700);
  font-size: .92rem;
  font-weight: 830;
  letter-spacing: .08em;
}

.conference-card h2 {
  margin: 2.1rem 0 .55rem;
  color: var(--navy-900);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 1.75rem;
  line-height: 1.13;
}

.conference-card > p {
  margin: 0;
  color: var(--muted);
}

.conference-facts,
.material-facts,
.poster-facts {
  display: grid;
  gap: .5rem;
  margin: 1.3rem 0 0;
}

.conference-facts div,
.material-facts div,
.poster-facts div {
  display: grid;
  grid-template-columns: minmax(4.8rem, .7fr) minmax(0, 1.8fr);
  gap: .75rem;
}

dt {
  color: var(--muted);
  font-size: .75rem;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
}

.conference-card .card-action { align-self: flex-start; margin-top: auto; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: .86rem;
}

.breadcrumbs a {
  color: var(--navy-700);
  text-underline-offset: 3px;
}

.room-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.65rem, 5vw, 4.25rem);
  background: linear-gradient(135deg, #eaf7f7, #e2eff8 60%, #edf7f8);
  border: 1px solid #d0e5e8;
  border-radius: 22px;
}

.room-hero > div:first-child { max-width: 51rem; }

.room-hero h1 {
  margin: .35rem 0 .65rem;
  color: var(--navy-900);
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.room-hero p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.room-counts {
  display: grid;
  min-width: 185px;
  gap: .6rem;
}

.room-counts span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: .65rem .8rem;
  color: var(--navy-700);
  background: rgba(255, 255, 255, .7);
  border: 1px solid #cfe0e5;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 720;
}

.room-counts b {
  color: var(--navy-900);
  font-size: 1.45rem;
}

.catalog-section { margin-top: clamp(2.5rem, 6vw, 5rem); }

.catalog-heading {
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.catalog-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .85rem;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) minmax(160px, .7fr) auto;
  gap: .8rem;
  align-items: end;
  margin: 1.4rem 0 1.5rem;
}

.search-field,
.select-field {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 730;
}

.search-field input,
.select-field select {
  min-width: 0;
  height: 44px;
  padding: 0 .72rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd9dd;
  border-radius: 9px;
}

.search-field input::placeholder { color: #8797a3; }

.type-filter {
  display: flex;
  min-width: 0;
  gap: .35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.type-filter legend {
  width: 100%;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 730;
}

.type-filter button {
  min-width: 4.2rem;
  height: 44px;
  padding: 0 .7rem;
  color: var(--navy-700);
  background: #fff;
  border: 1px solid #cbd9dd;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 730;
}

.type-filter button.is-active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.material-card {
  display: flex;
  min-width: 0;
  min-height: 292px;
  flex-direction: column;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.material-card:hover { border-color: #9ab8c9; box-shadow: 0 10px 22px rgba(14, 63, 88, .08); }

.material-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  color: var(--muted);
  font-size: .76rem;
}

.type-chip {
  padding: .16rem .47rem;
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid #c9e0eb;
  border-radius: 999px;
  font-weight: 780;
}

.material-card h3 {
  margin: 1.1rem 0 .45rem;
  color: var(--navy-900);
  font-size: 1.18rem;
  line-height: 1.38;
}

.material-card h3 a { text-decoration: none; }
.material-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.material-original {
  min-height: 1.7em;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .82rem;
}

.material-facts { margin-top: auto; padding-top: 1rem; border-top: 1px solid #e4eaeb; }
.material-facts div { grid-template-columns: 4.2rem minmax(0, 1fr); }

.material-card .card-action {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: rgba(188, 77, 32, .38);
  text-underline-offset: 4px;
}

.catalog-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #b5ccd4;
  border-radius: 14px;
}

.catalog-empty h3 { margin: .25rem 0 .35rem; color: var(--navy-900); font-size: 1.35rem; }
.catalog-empty p:not(.eyebrow) { max-width: 33rem; margin: 0; color: var(--muted); }

.catalog-pagination,
.thumbnail-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.6rem 0 0;
}

.catalog-pagination button,
.thumbnail-pagination button {
  padding: .5rem .75rem;
  color: var(--navy-700);
  background: #fff;
  border: 1px solid #cbd9dd;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 730;
}

.catalog-pagination span,
.thumbnail-pagination span { color: var(--muted); font-size: .82rem; }

.error-view { max-width: 38rem; padding: 2rem 0; }
.error-view h1 { margin: .35rem 0 .55rem; color: var(--navy-900); font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.08; }
.error-view p:not(.eyebrow) { color: var(--danger); }
.error-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.error-actions button { color: var(--navy-700); background: transparent; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--navy-700); font-weight: 750; text-underline-offset: 3px; }

/* Immersive Oral reader */
.reader-shell { color: #edf5f8; background: var(--navy-950); }

.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1rem, 4vw, 4.5rem);
  background: linear-gradient(100deg, #08233d, #0d3856);
  border-bottom: 1px solid rgba(194, 224, 235, .17);
}

.reader-topbar .eyebrow { color: #9ac4d7; }

.reader-topbar h1 {
  max-width: 61vw;
  margin: .18rem 0 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: .98rem;
  font-weight: 730;
  letter-spacing: .01em;
}

.reader-top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .65rem;
}

.back-to-room {
  max-width: 18rem;
  overflow-wrap: anywhere;
  color: #c9e6ef;
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
  text-underline-offset: 3px;
}

.reader-top-actions button {
  padding: .52rem .72rem;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 780;
}

.slide-stage {
  display: grid;
  grid-template-columns: clamp(2.8rem, 7vw, 5rem) minmax(0, 1fr) clamp(2.8rem, 7vw, 5rem);
  align-items: center;
  min-height: min(72vh, 890px);
  padding: clamp(.8rem, 2.3vw, 2.4rem);
  background: radial-gradient(circle at 50% 16%, rgba(39, 102, 138, .33), transparent 38%), var(--navy-950);
  touch-action: pan-y;
}

.slide-figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  place-items: center;
}

.slide-figure img {
  display: block;
  width: auto;
  max-height: min(64vh, 780px);
  margin: auto;
  background: #fff;
  box-shadow: 0 26px 58px rgba(0, 0, 0, .42);
  object-fit: contain;
}

.stage-arrow {
  z-index: 1;
  width: min(3.1rem, 8vw);
  height: min(3.1rem, 8vw);
  margin: auto;
  color: #e5f3f7;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(226, 245, 249, .22);
  border-radius: 50%;
  font-size: 1.35rem;
}

.stage-arrow:not(:disabled):hover { color: #fff; background: var(--orange); border-color: var(--orange); }

.reader-information {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .65fr);
  gap: 2.25rem;
  align-items: end;
  padding: clamp(1.3rem, 3vw, 2.8rem) clamp(1rem, 7vw, 10rem) clamp(1.6rem, 4vw, 3.5rem);
  background: var(--navy-900);
  border-top: 1px solid rgba(222, 242, 247, .12);
}

.title-status {
  display: inline-flex;
  margin: 0 0 .5rem;
  padding: .18rem .48rem;
  color: #b9dce7;
  background: rgba(152, 205, 224, .11);
  border: 1px solid rgba(169, 215, 231, .16);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 780;
}

.title-status[data-status="NO_EXPLICIT_TITLE"],
.title-status[data-status="UNREADABLE_NEEDS_EXECUTOR_CHECK"] {
  color: #c7e3ed;
  background: rgba(152, 205, 224, .11);
  border-color: rgba(169, 215, 231, .16);
}

.reader-title-block h2 {
  max-width: 27ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3.1vw, 2.65rem);
  font-weight: 630;
  letter-spacing: -.03em;
  line-height: 1.18;
}

.original-title {
  margin: .55rem 0 0;
  overflow-wrap: anywhere;
  color: #a9c2cf;
  font-size: .86rem;
}

.reader-progress-block { min-width: 0; }
.reader-progress-block > p:first-child { margin: 0 0 .55rem; color: #f1f8fb; font-size: .95rem; font-weight: 760; }
.muted { color: #a9c2cf; font-size: .8rem; }

.reader-progress {
  height: 5px;
  overflow: hidden;
  background: rgba(224, 242, 247, .2);
  border-radius: 999px;
}

.reader-progress span {
  display: block;
  width: var(--reader-progress, 0%);
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
  transition: width .18s ease;
}

.reader-progress-copy { margin: .5rem 0 0; }

.slide-directory {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  width: min(31rem, 94vw);
  height: 100dvh;
  flex-direction: column;
  padding: 1.1rem;
  overflow-y: auto;
  color: #eaf3f6;
  background: #092039;
  border-left: 1px solid rgba(197, 229, 238, .24);
  box-shadow: -18px 0 42px rgba(0, 0, 0, .38);
}

.slide-directory[hidden] { display: none; }

.directory-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.directory-header .eyebrow { color: #9ac4d7; }
.directory-header h2 { margin: .15rem 0 0; color: #fff; font-size: 1.2rem; }

.icon-button {
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  font-size: 1.25rem;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.slide-thumbnail {
  display: grid;
  min-width: 0;
  padding: .35rem;
  overflow: hidden;
  color: #c6dce5;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 232, 241, .13);
  border-radius: 8px;
  text-align: left;
}

.slide-thumbnail.is-current { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

.slide-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #102b44;
  object-fit: cover;
}

.slide-thumbnail span { padding: .38rem .1rem .05rem; font-size: .7rem; line-height: 1.35; word-break: break-word; }

.thumbnail-pagination { margin-top: auto; padding-top: 1rem; }
.thumbnail-pagination button { color: #e9f5f7; background: rgba(255, 255, 255, .08); border-color: rgba(201, 232, 241, .18); }
.thumbnail-pagination span { color: #b9d1da; }

/* Poster is an independent canvas rather than an Oral slide stage. */
.poster-layout {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.8fr);
  min-height: calc(100vh - 154px);
}

.poster-metadata {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 3rem);
  background: #0a2944;
  border-right: 1px solid rgba(190, 224, 235, .15);
}

.poster-metadata h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  font-weight: 640;
  line-height: 1.18;
}

.poster-facts { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(196, 225, 236, .15); }
.poster-facts dt { color: #9bbccc; }
.poster-facts dd { color: #e6f1f4; }

.canvas-switcher { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(196, 225, 236, .15); }
.canvas-switcher .eyebrow { color: #9ac4d7; }
.canvas-switcher h3 { margin: .18rem 0 .8rem; color: #fff; font-size: 1rem; }

.canvas-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .45rem; }

.canvas-tabs button {
  min-width: 0;
  padding: .5rem .45rem;
  overflow-wrap: anywhere;
  color: #b9d4df;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 232, 241, .16);
  border-radius: 7px;
  font-size: .76rem;
  text-align: left;
}

.canvas-tabs button.is-active { color: #fff; background: var(--orange); border-color: var(--orange); }

.poster-canvas-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(.75rem, 2vw, 1.5rem);
  background: #04111f;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .1rem 0 .75rem;
}

.canvas-toolbar > p { margin: 0; color: #d5e7ee; font-size: .84rem; font-weight: 720; }
.canvas-actions { display: flex; gap: .4rem; }

.canvas-actions button {
  min-width: 2.1rem;
  height: 2rem;
  padding: 0 .55rem;
  color: #e9f5f7;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(206, 235, 243, .18);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 760;
}

.canvas-actions button:hover { background: var(--navy-700); border-color: var(--navy-700); }

.poster-reading-workspace {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: .8rem;
}

.poster-reading-workspace.has-region-follow {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
}

.poster-reading-workspace.has-region-follow .region-follow {
  grid-row: 1;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.poster-stage {
  position: relative;
  display: grid;
  min-height: min(72vh, 860px);
  flex: 1;
  overflow: hidden;
  /* 画框带 will-change: transform 会形成独立合成层；给舞台自建层叠上下文并裁掉
     合成层溢出，避免聚焦放大时原图内容越过舞台边界画到左侧信息面板上。 */
  isolation: isolate;
  contain: paint;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #143d58, #03101f 64%);
  border: 1px solid rgba(191, 225, 236, .14);
  touch-action: none;
}

/* 占位框保持适屏尺寸，让舞台高度不受画框布局放大影响；画框绝对居中，
   放大时溢出由舞台裁剪，文档高度与聚焦居中点与修复前一致。 */
.poster-canvas-sizer {
  justify-self: center;
  align-self: center;
}

.poster-canvas-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  /* 缩放走实际布局尺寸（width/height + 居中负边距），transform 只承担平移；
     图片按最终显示尺寸重新光栅化，手机聚焦不再放大低分辨合成层。 */
  transition: transform .3s cubic-bezier(.2, .75, .25, 1), width .3s cubic-bezier(.2, .75, .25, 1), height .3s cubic-bezier(.2, .75, .25, 1), margin-left .3s cubic-bezier(.2, .75, .25, 1), margin-top .3s cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.poster-stage img {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .48);
  user-select: none;
}

/* 图上热点、区域高亮与原图共享同一坐标平面和全部变换。 */
.region-hotspot-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.region-hotspot {
  position: absolute;
  box-sizing: border-box;
  padding: 0;
  pointer-events: auto;
  cursor: zoom-in;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}
.region-hotspot:hover { border-color: rgba(255, 184, 130, .7); }
.region-hotspot:focus-visible { z-index: 2; outline: 3px solid #fff; outline-offset: 2px; border-color: var(--orange); }
.region-hotspot[aria-pressed="true"] { cursor: default; }
.region-highlight-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
/* 选区只做定位提示：细轮廓、无填充、无外围暗色遮罩，不随画布放大变粗，
   不再压住原图文字；短暂提示后自行消退，阅读状态由图外开关控制。 */
.region-highlight { position: absolute; box-sizing: border-box; border-radius: 4px; opacity: 1; }
.region-highlight.is-preview { border: 2px dashed rgba(255, 184, 130, .95); background: transparent; }
.region-highlight.is-locked { border: 2px solid var(--orange); background: transparent; }
.region-highlight.is-fading { opacity: 0; transition: opacity .45s ease; }

.region-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: 0 0 .7rem;
}

.region-nav-label { color: #9ac4d7; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }

.region-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.region-chip {
  padding: .4rem .72rem;
  color: #dcecf4;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(160, 190, 255, .24);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.region-chip:hover { color: #fff; border-color: var(--orange); }
.region-chip[aria-pressed="true"] { color: #fff; background: var(--orange); border-color: var(--orange); }

.region-actions { display: flex; gap: .4rem; margin-left: auto; }

.region-actions button {
  padding: .4rem .72rem;
  color: #e9f5f7;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(206, 235, 243, .2);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 760;
  white-space: nowrap;
}

.region-actions button:not(:disabled):hover { background: var(--navy-700); border-color: var(--navy-700); }

.region-follow { padding: .8rem 0 0; background: transparent; }
.region-follow .page-follow-inner { max-width: none; }

.poster-reader .region-nav { display: flex; flex-wrap: wrap; align-items: start; }
.region-picker { flex: 1 1 100%; min-width: 0; border-bottom: 1px solid #a0beff40; }
.region-picker > summary { display: flex; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; list-style: none; color: #315381; font-size: .85rem; }
.region-picker > summary::-webkit-details-marker { display: none; }
#region-current-label { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.region-picker .disclosure-more, .region-picker .disclosure-less { flex: none; text-decoration: underline; text-underline-offset: .2em; }
.region-picker .disclosure-less, .region-picker[open] .disclosure-more { display: none; }
.region-picker[open] .disclosure-less { display: inline; }
.poster-reader .region-picker .region-chips { display: flex; flex-wrap: wrap; overflow: visible; padding: .4rem 0 .8rem; }
.poster-reader .region-picker .region-chip { max-width: 100%; white-space: normal; text-align: left; min-height: 44px; }
.poster-reader .region-nav .region-actions { margin-left: auto; }
.region-picker > summary:focus-visible, .follow-disclosure > summary:focus-visible { outline: 2px solid #254caf; outline-offset: 3px; }

.canvas-hint { margin: .75rem 0 0; color: #a8c3cf; font-size: .78rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.poster-fullscreen-active { overflow: hidden; }
.poster-fullscreen-viewer[hidden] { display: none; }
.poster-fullscreen-viewer.is-fallback-open {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  color: #eef4ff;
  background: #01050d;
}

.poster-fullscreen-viewer:fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #eef4ff;
  background: #01050d;
}

.poster-fullscreen-toolbar {
  position: absolute;
  top: max(.75rem, env(safe-area-inset-top, 0px));
  right: max(.75rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  display: flex;
  gap: .42rem;
  padding: .42rem;
  background: rgba(3, 10, 20, .76);
  border: 1px solid rgba(194, 218, 255, .2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.poster-fullscreen-toolbar button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .42rem .68rem;
  color: #f4f7ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(194, 218, 255, .2);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 760;
}

.poster-fullscreen-toolbar button:hover,
.poster-fullscreen-toolbar button:focus-visible { background: rgba(255, 74, 45, .3); border-color: var(--orange); }

.poster-fullscreen-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #10233d, #01050d 68%);
  touch-action: none;
  cursor: grab;
}

.poster-fullscreen-stage:active { cursor: grabbing; }
.poster-fullscreen-frame { position: absolute; top: 50%; left: 50%; transform-origin: center; will-change: transform; }
.poster-fullscreen-frame img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; user-select: none; background: #fff; box-shadow: 0 22px 70px rgba(0, 0, 0, .65); }

.poster-fullscreen-status {
  position: absolute;
  right: max(.8rem, env(safe-area-inset-right, 0px));
  bottom: max(.7rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  margin: 0;
  padding: .3rem .52rem;
  color: rgba(238, 244, 255, .8);
  background: rgba(3, 10, 20, .72);
  border-radius: 999px;
  font: 700 .68rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-reduced-motion: reduce) {
  .poster-canvas-frame { transition: none; }
  .region-highlight.is-fading { transition: none; }
}

@media (max-width: 980px) {
  .conference-grid,
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: minmax(0, 1fr) minmax(160px, .7fr); }
  .type-filter { grid-column: 1 / -1; }
  .poster-layout { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.55fr); }
}

@media (max-width: 700px) {
  .site-header { min-height: 66px; padding: .8rem .75rem; }
  .brand { max-width: 65vw; font-size: .9rem; }
  .environment { font-size: .66rem; }
  .site-main { width: min(100% - 1.5rem, 1180px); padding: 1.5rem 0 3.5rem; }
  .discovery-hero { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem 1.25rem; border-radius: 17px; }
  .discovery-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-orbit { width: min(72vw, 250px); }
  .section-heading,
  .room-hero { align-items: start; flex-direction: column; gap: 1rem; }
  .section-heading h2 { font-size: 2rem; }
  .room-hero { padding: 1.35rem; border-radius: 16px; }
  .room-hero h1 { font-size: clamp(2.35rem, 12vw, 3.75rem); }
  .room-counts { width: 100%; grid-template-columns: 1fr 1fr; }
  .conference-grid,
  .material-grid { grid-template-columns: 1fr; }
  .conference-card { min-height: 275px; }
  .catalog-heading { align-items: start; }
  .catalog-filters { grid-template-columns: 1fr; }
  .type-filter { grid-column: auto; }
  .type-filter button { flex: 1; }
  .material-card { min-height: 0; }
  .reader-topbar { align-items: start; flex-direction: column; gap: .8rem; padding: .85rem .8rem; }
  .reader-topbar h1 { max-width: 100%; font-size: .83rem; }
  .reader-top-actions { width: 100%; justify-content: space-between; }
  .back-to-room { max-width: 70vw; text-align: left; }
  .slide-stage { grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem; min-height: 55vh; padding: .65rem .25rem; }
  .slide-figure img { max-height: 51vh; }
  .stage-arrow { width: 2.15rem; height: 2.15rem; font-size: 1rem; }
  .reader-information { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.25rem .9rem 1.6rem; }
  .reader-title-block h2 { font-size: 1.65rem; }
  .slide-directory { width: 100%; padding: .9rem; }
  .poster-layout { grid-template-columns: 1fr; }
  .poster-metadata { padding: 1rem; border-right: 0; border-bottom: 1px solid rgba(190, 224, 235, .15); }
  .poster-canvas-panel { min-height: 60vh; padding: .6rem; }
  .poster-reading-workspace.has-region-follow { grid-template-columns: 1fr; }
  .poster-reading-workspace.has-region-follow .region-follow {
    grid-row: 1;
    max-height: none;
    overflow-y: visible;
  }
  .poster-reading-workspace.has-region-follow .poster-stage { grid-row: 2; }
  .poster-stage { min-height: 58vh; }
  .canvas-hint { margin-bottom: .2rem; }
  /* 手机端整行容易点：区域工具按钮与跟读折叠标题行加大触控区。 */
  /* 主题表用 .oncoFamily 前缀把按钮触控区压回 36px，这里提高特异度保证手机断点 ≥44px。 */
  .poster-reader .region-nav .region-actions button { min-height: 2.75rem; }
  .region-follow .follow-disclosure summary { padding: .55rem 0; min-height: 2.75rem; }
}

@media (max-width: 420px) {
  .room-counts { grid-template-columns: 1fr; }
  .thumbnail-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .thumbnail-pagination { gap: .45rem; }
  .thumbnail-pagination button { padding: .45rem .5rem; font-size: .76rem; }
  .canvas-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Targeted return to ASCO_Medical_Reader_V1: light topic discovery, dark reading. */
:root {
  --paper: #f3f6fc;
  --card: #ffffff;
  --ink: #0f2450;
  --muted: rgba(15, 36, 80, .68);
  --line: rgba(18, 48, 108, .12);
  --navy-950: #060d1d;
  --navy-900: #0a1428;
  --navy-800: #101d3a;
  --navy-700: #243d73;
  --blue-50: #edf2fb;
  --orange: #ff4a2d;
  --orange-dark: #e83d1f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  background: rgba(243, 246, 252, .86);
  backdrop-filter: blur(14px);
}

.brand-kicker,
.eyebrow { letter-spacing: .16em; }

.environment {
  color: #805400;
  background: rgba(255, 197, 61, .12);
  border-color: rgba(217, 142, 0, .42);
}

.room-hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  color: #eaf0fd;
  background:
    radial-gradient(52% 68% at 86% 18%, rgba(255, 74, 45, .23), rgba(255, 74, 45, .04) 46%, transparent 72%),
    radial-gradient(42% 62% at 8% 90%, rgba(64, 110, 220, .22), transparent 70%),
    linear-gradient(160deg, #0a1730 0%, #0c1a36 55%, #122246 100%);
  border: 0;
  border-radius: 24px;
}

.room-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .6;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .65) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 32% 68%, rgba(255, 255, 255, .45) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 74% 42%, rgba(255, 255, 255, .38) 50%, transparent 52%),
    linear-gradient(rgba(160, 190, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}

.topic-hero-inner {
  position: relative;
  max-width: 76rem;
  padding: clamp(2.3rem, 6vw, 5.3rem) clamp(1.25rem, 5vw, 4.25rem) clamp(2rem, 5vw, 3.7rem);
}

.room-hero .eyebrow { color: rgba(234, 240, 253, .68); }

.room-hero h1 {
  max-width: 16ch;
  margin: 1rem 0 .65rem;
  color: #fff;
  font-family: ui-serif, Georgia, "Songti SC", STSong, serif;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.room-hero p.topic-desc {
  max-width: 42rem;
  margin: 0;
  color: rgba(234, 240, 253, .78);
  font-size: .95rem;
  line-height: 1.9;
}

.room-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(7.25rem, 1fr));
  max-width: 48rem;
  gap: .75rem;
  margin-top: 1.75rem;
}

.room-counts span {
  display: grid;
  justify-content: start;
  gap: .1rem;
  padding: .78rem .92rem;
  color: rgba(234, 240, 253, .58);
  background: rgba(16, 29, 58, .58);
  border: 1px solid rgba(160, 190, 255, .18);
  border-radius: 13px;
  font-size: .72rem;
}

.room-counts b {
  color: var(--orange);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.topic-disease-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.topic-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .48rem .8rem;
  color: rgba(234, 240, 253, .88);
  background: rgba(6, 13, 29, .35);
  border: 1px solid rgba(160, 190, 255, .22);
  border-radius: 999px;
  font-size: .8rem;
  text-decoration: none;
}

.topic-domain-chip small { color: var(--orange); font-size: .68rem; }
.topic-domain-chip:hover,
.topic-domain-chip.is-active { color: #fff; background: rgba(255, 74, 45, .13); border-color: rgba(255, 74, 45, .58); }

.catalog-heading { border-bottom-color: var(--line); }
.catalog-heading h2 { max-width: 23ch; }
.topic-shelf { margin-top: 2.25rem; }
.topic-shelf + .topic-shelf { padding-top: 2.25rem; border-top: 1px solid var(--line); }
.topic-shelf-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.topic-shelf-heading h3 { margin: 0; color: var(--ink); font-family: ui-serif, Georgia, "Songti SC", serif; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.topic-shelf-heading span { color: var(--muted); font-size: .78rem; }

.material-grid { gap: 1.35rem; }

.material-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(15, 36, 80, .06), 0 16px 40px rgba(15, 36, 80, .08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.material-card:hover { border-color: rgba(255, 74, 45, .34); box-shadow: 0 10px 24px rgba(15, 36, 80, .12), 0 32px 64px rgba(15, 36, 80, .16); transform: translateY(-3px); }

.material-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #101d3a; }
.material-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.material-card:hover .material-cover img { transform: scale(1.025); }
.material-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(234, 240, 253, .68); font-size: .8rem; }
.material-badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .45rem; }
.material-badges span,
.material-badges b { padding: .24rem .52rem; color: #fff; background: rgba(10, 20, 40, .74); border-radius: 999px; font-size: .67rem; font-weight: 700; backdrop-filter: blur(8px); }
.material-badges b { background: rgba(255, 74, 45, .92); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.material-open { position: absolute; right: .75rem; bottom: .75rem; padding: .43rem .72rem; color: #fff; background: rgba(10, 20, 40, .76); border-radius: 999px; font-size: .74rem; opacity: 0; transform: translateY(.4rem); transition: opacity .2s ease, transform .2s ease; }
.material-open i { font-style: normal; }
.material-card:hover .material-open { opacity: 1; transform: none; }
.material-card-body { display: flex; min-height: 12rem; flex-direction: column; padding: 1rem 1.1rem .8rem; }
.material-card-kind { margin: 0; color: var(--orange-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.material-card h3 { margin: .52rem 0 .45rem; color: var(--ink); font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 1.08rem; line-height: 1.55; }
.material-original { display: -webkit-box; min-height: 0; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: rgba(15, 36, 80, .5); font-size: .73rem; line-height: 1.6; }
.material-card-id { margin: auto 0 0; color: rgba(15, 36, 80, .42); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .63rem; overflow-wrap: anywhere; }
.material-progress { height: 4px; margin-top: .7rem; overflow: hidden; background: #e9eff9; border-radius: 999px; }
.material-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #f26a35); border-radius: inherit; }
.material-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .75rem 1.1rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.material-card .card-action { flex: none; margin: 0; color: var(--orange-dark); font-size: .76rem; text-decoration: none; }
.material-card .card-action:hover { color: var(--orange-dark); background: transparent; text-decoration: underline; }

.reader-main { background: radial-gradient(120% 90% at 50% -10%, #101d3a 0%, #0a1428 46%, #060d1d 100%); }
.reader-shell { min-height: calc(100vh - 64px); background: transparent; }
.reader-topbar { min-height: 58px; padding: .65rem clamp(.75rem, 2.4vw, 1.5rem); background: rgba(6, 13, 29, .66); backdrop-filter: blur(12px); }
.reader-topbar h1 { font-family: ui-serif, Georgia, "Songti SC", serif; font-size: .94rem; }
.reader-topbar .eyebrow { color: rgba(234, 240, 253, .62); font-size: .62rem; }
.back-to-room { color: rgba(234, 240, 253, .74); }
.reader-top-actions button { padding: .42rem .62rem; color: rgba(234, 240, 253, .82); background: rgba(255, 255, 255, .06); border: 1px solid rgba(160, 190, 255, .16); border-radius: 9px; }
.reader-top-actions button:hover { color: #fff; background: rgba(255, 74, 45, .16); border-color: rgba(255, 74, 45, .52); }
.slide-stage { min-height: min(66vh, 780px); background: transparent; }
.slide-figure img { max-width: 96%; max-height: min(61vh, 710px); border-radius: 6px; box-shadow: 0 10px 44px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .4); }
.stage-arrow { color: rgba(234, 240, 253, .78); background: rgba(6, 13, 29, .62); border-color: rgba(160, 190, 255, .18); border-radius: 12px; }
.reader-information { grid-template-columns: minmax(0, 1fr) minmax(13rem, .45fr); padding: 1rem clamp(1rem, 4vw, 2rem); background: rgba(6, 13, 29, .44); }
.reader-title-block h2 { max-width: 38ch; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: clamp(1.12rem, 2.15vw, 1.55rem); }
.reader-progress-block { align-self: center; }

/* 桌面端逐页跟读：左图右文同屏。幻灯舞台吸附常驻并占满视口高度，标题与
   跟读内容在右侧栏独立滚动；长文不挤压、不截断，页面滚动时幻灯不动。
   手机与平板保持纵向连续阅读（见下方 ≤980px / ≤700px 规则）。*/
@media (min-width: 1024px) {
  .deck-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(21rem, 0.85fr);
    align-items: start;
  }
  .deck-body .slide-stage {
    position: sticky;
    top: 4rem;
    min-height: 0;
    height: calc(100dvh - 4rem);
  }
  .deck-body .slide-figure img { max-height: calc(100dvh - 9rem); }
  .deck-side {
    min-width: 0;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }
  .deck-side .reader-information {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }
  .deck-side .reader-progress-block { align-self: start; }
  .deck-side .page-follow { padding: 0 clamp(.9rem, 1.5vw, 1.5rem) 1rem; }
  .deck-side .page-follow-inner { max-width: none; }
}
/* 逐页 / 分区跟读：每页或每区域按实际数据显示 0–3 个逻辑槽位（概括 / 解释 /
   解读）；无内容时整区隐藏（hidden），不留空白、空卡或占位文字。正文自然
   增高，不使用固定高度、行数截断或省略号。*/
.page-follow { padding: 0 clamp(1rem, 4vw, 2rem) 1.15rem; background: rgba(6, 13, 29, .44); }
.page-follow[hidden] { display: none; }
.page-follow-inner { max-width: 74rem; margin: 0 auto; padding: .95rem 1.15rem 1.1rem; background: rgba(13, 28, 58, .5); border: 1px solid rgba(160, 190, 255, .16); border-radius: 12px; color: #e6ecfb; text-align: left; }
.page-follow-eyebrow { margin: 0 0 .65rem; color: rgba(255, 184, 130, .9); }
.page-follow-items { display: flex; gap: 1.1rem; align-items: stretch; }
.page-follow-items.items-1 { display: block; }
.page-follow-items.items-1 .follow-item { max-width: 78ch; }
/* 两项组合按面板实际可用宽度自适应：flex-basis 15rem + wrap——面板够宽时
   按内容长度比例并排；不足两栏（约 2×15rem+gap ≈ 31rem）时自动换行为单列
   纵向排列。任何宽度下都不产生横向滚动、裁切或文字伸出面板。*/
.page-follow-items.items-2 { flex-wrap: wrap; }
.page-follow-items.items-2 .follow-item { flex: var(--grow, 1) 1 15rem; min-width: min(15rem, 100%); }
.page-follow-items.items-3 { flex-direction: column; gap: .8rem; }
.follow-item { min-width: 0; padding: .1rem 0 .1rem .85rem; border-left: 2px solid rgba(160, 190, 255, .35); }
.follow-item-label { margin: 0 0 .18rem; color: rgba(255, 184, 130, .9); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.follow-item h3 { margin: 0 0 .25rem; color: #fff; font-size: .95rem; font-family: ui-serif, Georgia, "Songti SC", serif; }
.follow-item-body { margin: 0; color: rgba(230, 236, 251, .92); font-size: .88rem; line-height: 1.78; overflow-wrap: anywhere; white-space: pre-line; }
.follow-disclosure { padding-right: .4rem; }
.follow-disclosure summary { display: flex; align-items: baseline; gap: .55rem; margin-left: -.1rem; cursor: pointer; list-style: none; }
.follow-disclosure summary::-webkit-details-marker { display: none; }
.follow-disclosure summary::before { content: "+"; flex: 0 0 auto; color: rgba(255, 184, 130, .9); font-weight: 800; }
.follow-disclosure[open] summary::before { content: "−"; }
.follow-disclosure-title { color: #fff; font-size: .9rem; font-weight: 700; }
.follow-disclosure .follow-item-body { margin-top: .4rem; }
/* 纵向折叠项不能沿用双栏的 15rem flex-basis，否则收起后仍留下整块空白。 */
.page-follow-items.is-compact { display: block; }
.page-follow-items.is-compact > .follow-item { min-width: 0; max-width: none; padding: 0; border-left: 0; border-bottom: 1px solid #a0beff40; }
.page-follow-items.is-compact > .follow-item:last-child { border-bottom: 0; }
.page-follow-items.is-compact summary { align-items: center; min-height: 44px; margin: 0; padding: .55rem 0; }
.page-follow-items.is-compact summary::after { content: "展开"; margin-left: auto; flex: none; font-size: .75rem; color: #315381; }
.page-follow-items.is-compact [open] > summary::after { content: "收起"; }
.page-follow-items.is-compact .follow-item-body { margin: 0 0 .8rem; }
.reader-filmstrip { display: flex; gap: .58rem; padding: .65rem clamp(.75rem, 2vw, 1.5rem); overflow-x: auto; background: rgba(6, 13, 29, .58); border-top: 1px solid rgba(160, 190, 255, .12); }
.film-thumbnail { position: relative; flex: 0 0 7rem; padding: 0; overflow: hidden; color: #fff; background: #101d3a; border: 2px solid transparent; border-radius: 7px; opacity: .54; }
.film-thumbnail img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-thumbnail span { position: absolute; right: .2rem; bottom: .14rem; padding: .02rem .25rem; background: rgba(6, 13, 29, .75); border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6rem; }
.film-thumbnail b { display: block; padding: .18rem .28rem .22rem; font-weight: 600; font-size: .64rem; line-height: 1.2; color: rgba(230, 236, 251, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-thumbnail.is-current { border-color: var(--orange); box-shadow: 0 0 14px rgba(255, 74, 45, .3); opacity: 1; }
.reader-bottom-bar { display: none; }
.reader-report-id {
  margin: .28rem 0 0;
  color: rgba(234, 240, 253, .55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  overflow-wrap: anywhere;
}

.slide-figure { position: relative; }
.slide-open-original {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  z-index: 2;
  padding: .38rem .62rem;
  color: #fff;
  background: rgba(6, 13, 29, .78);
  border: 1px solid rgba(160, 190, 255, .28);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 720;
}
.slide-open-original:hover,
.slide-open-original:focus-visible { background: rgba(255, 74, 45, .88); border-color: var(--orange); }
#current-slide-image { cursor: zoom-in; }

.directory-jump {
  display: grid;
  gap: .65rem;
  margin: 0 0 1rem;
}
.directory-search,
.directory-page-input {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(234, 240, 253, .72);
  font-size: .78rem;
}
.directory-search input,
.directory-page-input input {
  min-width: 0;
  flex: 1;
  padding: .42rem .55rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(160, 190, 255, .2);
  border-radius: 8px;
}
.directory-page-input input { flex: 0 0 4.5rem; }
.directory-page-input button {
  padding: .4rem .7rem;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  font-size: .76rem;
}
.directory-count { margin: 0 0 .7rem; color: rgba(234, 240, 253, .58); font-size: .75rem; }
.toc-list {
  display: grid;
  gap: .28rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 8.5rem;
  max-height: min(38vh, 22rem);
}
.toc-page {
  display: block;
  width: 100%;
  min-height: 2.2rem;
  padding: .42rem .55rem;
  color: #f3f8fc;
  background: rgba(255, 255, 255, .1);
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-size: .8rem;
}
.toc-page.is-current { border-color: var(--orange); color: #fff; background: rgba(255, 74, 45, .22); }
.directory-thumbs .eyebrow { margin-bottom: .45rem; }

.catalog-status {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  color: #0f2450;
  background: #eef6fb;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.catalog-status.is-error { color: var(--danger); background: #fff5f3; }
.catalog-status button {
  margin-top: .45rem;
  padding: .4rem .7rem;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
}

.slide-deck-reader.is-focused .reader-information,
.slide-deck-reader.is-focused .page-follow,
.slide-deck-reader.is-focused .reader-filmstrip { display: none; }
.slide-deck-reader.is-focused .reader-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
}
.slide-deck-reader.is-focused .deck-body { display: block; }
.slide-deck-reader.is-focused .slide-stage { min-height: calc(100dvh - 8rem); height: calc(100dvh - 8rem); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.source-drawer { position: fixed; top: 0; right: 0; z-index: 45; width: min(28rem, 92vw); height: 100dvh; padding: 1.2rem; overflow-y: auto; color: #eaf0fd; background: #0a1428; border-left: 1px solid rgba(160, 190, 255, .18); box-shadow: -18px 0 42px rgba(0, 0, 0, .4); }
.source-drawer[hidden] { display: none; }
.source-drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(160, 190, 255, .15); }
.source-drawer-header .eyebrow { color: rgba(234, 240, 253, .55); }
.source-drawer-header h2 { margin: .2rem 0 0; color: #fff; font-family: ui-serif, Georgia, "Songti SC", serif; font-size: 1.35rem; }
.source-facts { display: grid; gap: .7rem; margin: 1rem 0 0; }
.source-facts div { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr); gap: .75rem; }
.source-facts dt { color: rgba(234, 240, 253, .48); }
.source-facts dd { color: rgba(234, 240, 253, .88); font-size: .78rem; font-weight: 500; }

@media (max-width: 700px) {
  .room-hero { border-radius: 18px; }
  .topic-hero-inner { padding: 2rem 1.15rem 1.6rem; }
  .room-hero h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .room-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-domain-chip { padding: .42rem .66rem; font-size: .74rem; }
  .material-card-body { min-height: 0; }
  .material-open { opacity: 1; transform: none; }
  .reader-top-actions { flex-wrap: wrap; }
  .reader-top-actions button { font-size: .72rem; }
  .slide-stage { grid-template-columns: minmax(0, 1fr); min-height: 53vh; padding-inline: 0; }
  .slide-stage .stage-arrow { display: none; }
  .slide-figure { width: 100%; }
  .slide-figure img { width: 100%; max-width: 100%; max-height: calc(100dvh - 19rem); }
  .reader-information { display: block; padding: .9rem 1rem; text-align: center; }
  .page-follow { padding: 0 .8rem 1rem; }
  .page-follow-inner { padding: .85rem .9rem 1rem; }
  .page-follow-items.items-2 { flex-direction: column; }
  .region-nav { flex-wrap: nowrap; align-items: center; }
  .region-nav-label { flex: 0 0 auto; }
  .region-chips { flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .15rem; -webkit-overflow-scrolling: touch; }
  .region-chip { flex: 0 0 auto; }
  .region-actions { flex: 0 0 auto; margin-left: 0; }
  .region-actions button { padding: .4rem .55rem; font-size: .72rem; }
  .reader-progress-block { margin-top: .75rem; }
  .reader-filmstrip { display: none; }
  .slide-deck-reader { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px)); }
  .slide-deck-reader.is-focused { padding-bottom: calc(8.8rem + env(safe-area-inset-bottom, 0px)); }
  .reader-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 26;
    display: grid;
    grid-template-columns: auto minmax(2.8rem, 1fr) auto auto;
    gap: .35rem;
    align-items: center;
    padding: .55rem .65rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 13, 29, .92);
    border-top: 1px solid rgba(160, 190, 255, .12);
  }
  .slide-deck-reader.is-focused .reader-bottom-bar { display: grid; }
  .reader-bottom-bar button { padding: .42rem .48rem; color: rgba(234, 240, 253, .85); background: rgba(255, 255, 255, .06); border: 1px solid rgba(160, 190, 255, .16); border-radius: 999px; font-size: .68rem; white-space: nowrap; }
  .reader-bottom-bar span { color: rgba(234, 240, 253, .65); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; text-align: center; }
  .slide-deck-reader.is-focused .slide-stage { min-height: calc(100dvh - 16rem); height: auto; max-height: calc(100dvh - 14rem); }
}

@media (max-height: 500px) and (orientation: landscape) {
  body:has(.slide-deck-reader) .site-header { display: none; }
  .reader-topbar { padding: .45rem .7rem; }
  .reader-filmstrip { display: none; }
  .slide-stage { grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 8.5rem); padding-inline: 0; }
  .slide-stage .stage-arrow { display: none; }
  .slide-figure { width: 100%; }
  .slide-figure img { max-height: calc(100dvh - 15rem); max-width: 100%; }
  .slide-deck-reader { padding-bottom: calc(3.8rem + env(safe-area-inset-bottom, 0px)); }
  .reader-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 26;
    display: grid;
    grid-template-columns: auto minmax(2.4rem, 1fr) auto auto;
    gap: .3rem;
    padding: .4rem .55rem calc(.4rem + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 13, 29, .92);
  }
}

@media (max-width: 390px) {
  .reader-top-actions { gap: .38rem; }
  .back-to-room { max-width: 100%; flex-basis: 100%; }
  .reader-bottom-bar { grid-template-columns: auto minmax(2.3rem, 1fr) auto; }
  #reader-mobile-directory,
  #reader-mobile-focus-exit { grid-column: 1 / -1; }
}

.source-caveats{margin:12px 0;padding:12px 18px;background:#fff7ed;border:1px solid #eadbc7;border-radius:10px;font-size:13px;line-height:1.8}.source-caveats summary{cursor:pointer}.source-caveats li+li{margin-top:8px}
