:root {
  --navy: #061a3d;
  --navy-2: #0a2a5a;
  --ink: #11233b;
  --cream: #fff9ec;
  --paper: #fffdf8;
  --gold: #ffc938;
  --gold-2: #ffdf6b;
  --teal: #15a692;
  --coral: #ff785e;
  --line: rgba(8, 34, 69, 0.13);
  --shadow: 0 24px 70px rgba(7, 29, 66, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(6px); opacity: .45; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; top: 100px; right: -180px; background: radial-gradient(circle, rgba(255,202,56,.6), transparent 68%); }
.ambient-two { width: 540px; height: 540px; top: 700px; left: -280px; background: radial-gradient(circle, rgba(35,184,167,.32), transparent 67%); }

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--navy); background: var(--gold); font-size: 24px; box-shadow: 0 8px 24px rgba(255, 190, 32, .35); }
.brand strong { display: block; font-size: 18px; line-height: 1; font-weight: 900; letter-spacing: .08em; }
.brand small { display: block; margin-top: 5px; font: 800 9px/1 Arial, sans-serif; letter-spacing: .16em; color: #547087; }
.topnav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.topnav a { transition: color .2s; }
.topnav a:hover { color: var(--teal); }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.58); color: var(--ink); padding: 11px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 54px 0 92px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: #557087; font: 800 11px/1 Arial, sans-serif; letter-spacing: .17em; }
.eyebrow > span { width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero h1, .section-heading h2, .journey h2, .catalog h2 { margin: 0; color: var(--navy); font-weight: 900; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(48px, 6vw, 76px); line-height: 1.12; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-lead { max-width: 520px; margin: 25px 0 30px; color: #526679; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.primary-button, .secondary-button { min-height: 52px; border-radius: 16px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 0; cursor: pointer; font-weight: 800; }
.primary-button { color: white; background: var(--navy); box-shadow: 0 14px 34px rgba(6,26,61,.23); transition: transform .2s, box-shadow .2s; }
.primary-button span { color: var(--gold); font-size: 21px; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(6,26,61,.29); }
.secondary-button { color: var(--navy); background: transparent; border: 1px solid var(--line); }
.story-facts { display: flex; margin: 42px 0 0; padding: 25px 0 0; gap: 35px; border-top: 1px solid var(--line); }
.story-facts div { display: flex; align-items: baseline; gap: 7px; }
.story-facts dt { color: var(--navy); font: 900 25px/1 Arial, sans-serif; }
.story-facts dd { margin: 0; color: #6f8191; font-size: 12px; font-weight: 600; }

.hero-art { position: relative; min-height: 470px; display: grid; place-items: center; }
.cover-card { width: min(580px, 100%); margin: 0; border-radius: 30px; overflow: hidden; border: 8px solid white; box-shadow: 0 35px 80px rgba(6, 26, 61, .26); transform: rotate(1.8deg); position: relative; z-index: 3; }
.cover-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cover-shine { position: absolute; inset: -30% 45% -30% -25%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.27), transparent); }
.orbit { position: absolute; border: 1px dashed rgba(15,156,144,.28); border-radius: 50%; }
.orbit-a { width: 600px; height: 600px; }
.orbit-b { width: 430px; height: 430px; border-color: rgba(255,190,35,.4); }
.floating-star { position: absolute; z-index: 4; color: var(--gold); text-shadow: 0 8px 20px rgba(255,195,35,.45); animation: float 3.8s ease-in-out infinite; }
.star-a { top: 13%; right: 2%; font-size: 36px; }
.star-b { left: 1%; bottom: 19%; font-size: 31px; animation-delay: -1.1s; }
.star-c { right: 12%; bottom: 7%; color: var(--teal); font-size: 21px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }

.reader-shell { padding: 95px 20px 110px; color: white; background: var(--navy); position: relative; }
.reader-shell::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(circle at 15% 20%, var(--gold) 0 1px, transparent 2px), radial-gradient(circle at 82% 33%, white 0 1px, transparent 2px), radial-gradient(circle at 52% 84%, var(--gold) 0 1.5px, transparent 2.5px); background-size: 180px 180px, 220px 220px, 270px 270px; }
.section-heading, .reader { width: min(1180px, 100%); margin-inline: auto; position: relative; z-index: 1; }
.section-heading { margin-bottom: 34px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading .eyebrow { color: #88a5be; }
.section-heading h2 { color: white; font-size: clamp(36px, 5vw, 56px); }
.section-heading > p { max-width: 340px; margin: 0 0 5px; color: #88a5be; font-size: 13px; line-height: 1.7; text-align: right; }
.reader { border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: rgba(2,15,39,.7); box-shadow: 0 38px 100px rgba(0,0,0,.28); overflow: hidden; backdrop-filter: blur(12px); }
.reader-toolbar { height: 78px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.chapter-badge { display: flex; align-items: center; gap: 14px; }
.chapter-badge span { color: var(--gold); font: 900 10px/1 Arial, sans-serif; letter-spacing: .15em; }
.chapter-badge strong { font-size: 14px; letter-spacing: .03em; }
.reader-actions { display: flex; gap: 7px; }
.reader-actions button { color: #bed0e1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.reader-actions button[aria-pressed="true"] { color: var(--navy); background: var(--gold); }
.stage-wrap { padding: 28px 70px; position: relative; min-height: 300px; display: grid; place-items: center; }
.stage-glow { position: absolute; inset: 18% 15%; border-radius: 50%; background: rgba(24,167,147,.22); filter: blur(70px); }
.story-frame { width: min(100%, 1020px); margin: 0; position: relative; overflow: hidden; border-radius: 13px; background: #102a50; box-shadow: 0 24px 65px rgba(0,0,0,.35); }
.story-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; user-select: none; transition: opacity .2s ease, transform .35s ease; }
.story-frame.loading img { opacity: .25; transform: scale(1.01); }
.image-loader { display: none; position: absolute; inset: 0; z-index: 2; place-items: center; grid-auto-flow: column; gap: 7px; }
.story-frame.loading .image-loader { display: grid; }
.image-loader span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse .8s infinite alternate; }
.image-loader span:nth-child(2) { animation-delay: .2s; }
.image-loader span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .25; transform: translateY(-5px); } }
.page-arrow { position: absolute; z-index: 4; top: 50%; width: 44px; height: 72px; margin-top: -36px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: white; background: rgba(255,255,255,.07); font-size: 38px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.page-arrow:hover { background: var(--teal); transform: scale(1.03); }
.page-arrow:disabled { opacity: .23; cursor: default; transform: none; }
.page-prev { left: 15px; }
.page-next { right: 15px; }
.reader-footer { padding: 20px 25px 24px; border-top: 1px solid rgba(255,255,255,.1); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 11px; color: #7e9ab4; font: 800 10px/1 Arial, sans-serif; letter-spacing: .13em; }
.progress-meta strong { color: white; font-size: 12px; letter-spacing: .08em; }
.progress-control { height: 20px; display: block; position: relative; }
.progress-control::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; border-radius: 4px; background: rgba(255,255,255,.12); }
.progress-fill { position: absolute; top: 9px; left: 0; width: 0; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--gold)); pointer-events: none; }
.progress-control input { position: absolute; inset: 0; width: 100%; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.mobile-controls { display: none; }
.reader.light-mode { background: #f6efe2; color: var(--navy); }
.reader.light-mode .reader-toolbar, .reader.light-mode .reader-footer { border-color: rgba(6,26,61,.11); }
.reader.light-mode .chapter-badge strong, .reader.light-mode .progress-meta strong { color: var(--navy); }
.reader.light-mode .reader-actions button { color: var(--navy); border-color: rgba(6,26,61,.1); background: rgba(6,26,61,.06); }

.journey { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 125px; display: grid; grid-template-columns: 340px 1fr; gap: 65px; align-items: end; }
.journey h2 { font-size: 42px; line-height: 1.2; }
.journey-copy > p:last-child { color: #647789; font-size: 14px; line-height: 1.85; }
.chapter-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.chapter-card { min-height: 128px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.58); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; text-align: left; }
.chapter-card:hover { transform: translateY(-4px); border-color: rgba(21,166,146,.42); box-shadow: 0 16px 35px rgba(8,39,71,.1); }
.chapter-card b { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); font: 900 12px/1 Arial, sans-serif; }
.chapter-card span { color: #6c8091; font-size: 11px; }
.chapter-card strong { color: var(--navy); font-size: 13px; }

footer { min-height: 180px; padding: 44px max(20px, calc((100% - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #91abc0; background: #04152f; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-size: 15px; }
.footer-brand span { color: var(--gold); font-size: 20px; }
footer a { color: var(--gold); font-weight: 700; }

.catalog { width: min(1120px, calc(100% - 28px)); max-height: min(880px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 25px; color: var(--ink); background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.catalog::backdrop { background: rgba(3,15,35,.75); backdrop-filter: blur(10px); }
.catalog-head { position: sticky; top: 0; z-index: 3; padding: 28px 32px 22px; display: flex; justify-content: space-between; background: rgba(255,253,248,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.catalog-head .eyebrow { margin-bottom: 9px; }
.catalog h2 { font-size: 34px; }
.catalog-head p:last-child { margin: 7px 0 0; color: #718395; font-size: 12px; }
#close-catalog { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--navy); background: #eef0ed; font-size: 28px; cursor: pointer; }
.catalog-grid { padding: 25px 30px 35px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.thumb { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 13px; background: #e6e9e6; cursor: pointer; text-align: left; transition: transform .2s, border-color .2s; }
.thumb:hover { transform: translateY(-3px); }
.thumb.active { border-color: var(--teal); }
.thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e5e8e4; }
.thumb span { display: flex; justify-content: space-between; padding: 9px 11px; color: #607386; font: 800 9px/1 Arial, sans-serif; letter-spacing: .08em; background: white; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; padding: 11px 18px; color: white; background: rgba(4,21,47,.92); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: 12px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 45px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-art { min-height: 400px; }
  .story-facts { justify-content: center; }
  .journey { grid-template-columns: 1fr; }
  .journey-copy { max-width: 570px; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 28px); height: 76px; }
  .brand-mark { width: 39px; height: 39px; }
  .topnav > a { display: none; }
  .ghost-button { padding: 9px 13px; font-size: 12px; }
  .hero { width: calc(100% - 28px); min-height: auto; padding: 35px 0 75px; gap: 35px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; margin-top: 20px; }
  .hero-actions { justify-content: center; width: 100%; }
  .primary-button, .secondary-button { width: 100%; }
  .story-facts { width: 100%; gap: 0; justify-content: space-between; }
  .story-facts div { flex-direction: column; gap: 5px; align-items: center; }
  .hero-art { min-height: 275px; }
  .cover-card { border-width: 5px; border-radius: 18px; }
  .orbit-a { width: 360px; height: 360px; }
  .orbit-b { width: 280px; height: 280px; }
  .reader-shell { padding: 72px 12px 80px; }
  .section-heading { margin-inline: 8px; }
  .section-heading > p { display: none; }
  .section-heading h2 { font-size: 38px; }
  .reader { border-radius: 20px; }
  .reader-toolbar { height: 66px; padding: 0 14px; }
  .chapter-badge { gap: 8px; }
  .chapter-badge strong { font-size: 12px; }
  .reader-actions button { padding: 7px 9px; font-size: 0; }
  .reader-actions button::first-letter { font-size: 12px; }
  #toggle-auto::after { content: "播"; font-size: 11px; }
  #toggle-theme::after { content: "夜"; font-size: 11px; }
  #toggle-fullscreen::after { content: "全"; font-size: 11px; }
  .stage-wrap { padding: 16px 9px; }
  .story-frame { border-radius: 8px; }
  .page-arrow { display: none; }
  .reader-footer { padding: 15px 14px 16px; }
  .mobile-controls { margin-top: 12px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 7px; }
  .mobile-controls button { min-height: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: white; background: rgba(255,255,255,.07); font-size: 11px; }
  .reader.light-mode .mobile-controls button { color: var(--navy); border-color: rgba(6,26,61,.1); background: rgba(6,26,61,.06); }
  .journey { width: calc(100% - 32px); padding: 80px 0; gap: 30px; }
  .journey h2 { font-size: 35px; }
  .chapter-strip { grid-template-columns: repeat(2, 1fr); }
  .chapter-card { min-height: 116px; }
  footer { flex-direction: column; text-align: center; padding-block: 42px; }
  .catalog-head { padding: 22px 18px 18px; }
  .catalog-grid { padding: 18px; grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .catalog h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
