:root {
  --ink: #071426;
  --ink-soft: #122b48;
  --paper: #f3f1eb;
  --surface: #fffefa;
  --signal: #ff4d29;
  --signal-soft: #fff0eb;
  --sea: #185a91;
  --muted: #69737e;
  --line: rgba(7, 20, 38, 0.14);
  --line-light: rgba(255, 255, 255, 0.13);
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  --shadow-stage: 0 28px 80px rgba(2, 12, 26, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 77, 41, 0.1), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(255, 77, 41, 0.35);
  outline-offset: 3px;
}

[hidden] { display: none !important; }
.desktop-only { display: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  border-radius: 9px;
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.brand-bar {
  height: 78px;
  padding: 13px 16px;
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 235, 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
}

.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 46px;
  height: 46px;
  padding: 5px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 20, 38, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(7, 20, 38, 0.09);
}

.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-eyebrow { margin: 0 0 4px; color: var(--signal); font: 800 8px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; white-space: nowrap; }
.brand-name { margin: 0; overflow: hidden; font: 800 16px/1.15 "Songti SC", "STSong", serif; letter-spacing: 0.03em; text-overflow: ellipsis; white-space: nowrap; }
.brand-actions { display: flex; align-items: center; gap: 18px; }

.status-pill {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #646e79;
  border: 1px solid #d6d9dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #9da4ab; }
.status-live { color: #fff; border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.status-live i { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); animation: pulse 1.4s infinite; }
.status-ended { color: #fff; border-color: #596270; background: #596270; }
.status-ended i { background: #d8dce0; }

main { width: min(100%, 760px); margin: 0 auto; }
.stage-panel { min-width: 0; background: var(--ink); }
.information-rail { min-width: 0; background: var(--paper); }

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 73% 24%, color-mix(in srgb, var(--signal) 64%, transparent), transparent 32%),
    radial-gradient(circle at 20% 92%, rgba(24, 90, 145, 0.46), transparent 38%),
    linear-gradient(135deg, #071426, #102f53 70%);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 90px rgba(2, 12, 26, 0.26);
  pointer-events: none;
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(400px) rotateX(58deg) scale(1.8) translateY(9%);
  transform-origin: center bottom;
}

#player { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; display: none; background: #000; object-fit: contain; }
.stage.is-playing #player { display: block; }

.stage-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  background-position: center;
  background-size: cover;
}

.stage-poster p { margin: 17px 0 6px; color: rgba(255, 255, 255, 0.58); font: 800 9px/1 "DIN Alternate", sans-serif; letter-spacing: 0.28em; }
.stage-poster h2 { margin: 0; font: 750 clamp(25px, 7vw, 42px)/1.18 "Songti SC", "STSong", serif; letter-spacing: 0.04em; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); }
.stage-poster #stage-detail { margin-top: 11px; color: rgba(255, 255, 255, 0.62); font: 400 11px/1.5 "Avenir Next", sans-serif; letter-spacing: 0.04em; }

.signal-mark { width: 82px; height: 55px; position: relative; display: block; filter: drop-shadow(0 8px 20px rgba(255, 77, 41, 0.28)); }
.signal-mark i { position: absolute; left: 50%; bottom: 0; border: 4px solid var(--signal); border-bottom: 0; border-radius: 60px 60px 0 0; transform: translateX(-50%); }
.signal-mark i:first-child { width: 78px; height: 45px; }
.signal-mark i:nth-child(2) { width: 43px; height: 27px; }
.signal-mark b { width: 12px; height: 12px; position: absolute; left: 50%; bottom: -6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 28px var(--signal); transform: translateX(-50%); }

.play-button { position: absolute; z-index: 5; left: 50%; bottom: 49px; min-height: 42px; padding: 0 18px; color: #fff; border: 0; border-radius: 999px; background: var(--signal); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); font-weight: 800; transform: translateX(-50%); }
.play-button:hover { background: #e94322; }
.stage-meta { position: absolute; z-index: 4; right: 15px; bottom: 13px; left: 15px; display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.58); font: 800 8px/1 "DIN Alternate", sans-serif; letter-spacing: 0.13em; pointer-events: none; }

.story-card,
.speaker-card,
.materials-card { padding: 31px 22px; border-bottom: 1px solid var(--line); }
.section-index { margin: 0 0 18px; color: var(--signal); font: 800 9px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; }
.story-card h1 { margin: 0; max-width: 12em; font: 850 clamp(34px, 10vw, 62px)/1.03 "Songti SC", "STSong", serif; letter-spacing: -0.045em; }
.lede { margin: 21px 0 27px; color: #4f5965; font-size: 14px; line-height: 1.85; }
.schedule-line { padding-top: 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.schedule-line span { color: var(--muted); font-size: 10px; }
.schedule-line strong { color: #293543; text-align: right; font: 750 12px/1.45 "DIN Alternate", "PingFang SC", sans-serif; }

.speaker-layout { display: flex; align-items: center; gap: 17px; }
.speaker-monogram { width: 67px; height: 67px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50% 50% 50% 14px; background: linear-gradient(145deg, #2272ad, var(--sea)); box-shadow: inset -10px -10px 24px rgba(0, 0, 0, 0.13), 0 10px 28px rgba(24, 90, 145, 0.16); font: 800 27px/1 "Songti SC", serif; }
.speaker-layout h2 { margin: 0 0 6px; font: 750 22px/1.2 "Songti SC", serif; }
.speaker-layout p { margin: 0; color: var(--muted); font-size: 12px; }

.materials-card h2 { margin: 0 0 16px; font: 750 24px/1.2 "Songti SC", serif; }
.materials-list { display: grid; gap: 9px; }
.material-link { min-height: 50px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.42); text-decoration: none; transition: 160ms ease; }
.material-link::after { content: "↗"; color: var(--signal); font-weight: 800; }
.material-link:hover { border-color: rgba(255, 77, 41, 0.35); background: #fff; transform: translateY(-1px); }

.contact-card { margin: 22px; padding: 18px; display: flex; align-items: flex-start; gap: 12px; color: #dbe7f3; border-radius: 14px; background: var(--ink); box-shadow: 0 12px 36px rgba(7, 20, 38, 0.14); }
.contact-card p { margin: 0; font-size: 12px; line-height: 1.7; }
.contact-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 77, 41, 0.15); }

footer { width: min(100%, 760px); margin: 0 auto; padding: 11px 22px var(--safe-bottom); display: flex; justify-content: space-between; gap: 12px; color: #858b92; font: 800 8px/1.4 "DIN Alternate", sans-serif; letter-spacing: 0.13em; }

.access-gate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 16px; background: rgba(7, 20, 38, 0.86); backdrop-filter: blur(20px); }
.gate-panel { width: min(100%, 440px); padding: 30px 24px calc(25px + env(safe-area-inset-bottom)); border-top: 5px solid var(--signal); border-radius: 20px 20px 0 0; background: var(--paper); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36); }
.gate-code { color: var(--signal); font: 800 9px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; }
.gate-panel h2 { margin: 14px 0 8px; font: 850 31px/1.1 "Songti SC", serif; }
.gate-panel > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.gate-panel label span { margin-bottom: 8px; display: block; font-size: 11px; font-weight: 800; }
.gate-panel input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; outline: 0; }
.gate-panel input:focus { border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 16%, transparent); }
.gate-panel button { width: 100%; min-height: 48px; margin-top: 12px; color: #fff; border: 0; border-radius: 11px; background: var(--ink); font-weight: 800; }
.form-error { min-height: 18px; margin: 10px 0 0 !important; color: #bd3d32 !important; }
.fatal-error { position: fixed; inset: auto 16px 24px; z-index: 40; padding: 18px; color: #fff; border-radius: 13px; background: #9d332a; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.26); }
.fatal-error strong,
.fatal-error span { display: block; }
.fatal-error span { margin-top: 5px; font-size: 11px; opacity: 0.82; }

.reveal { animation: reveal 0.58s both; }
.reveal:nth-of-type(3) { animation-delay: 0.06s; }
.reveal:nth-of-type(4) { animation-delay: 0.12s; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }

@media (min-width: 760px) and (max-width: 1099px) {
  body { padding: 28px 0; }
  .brand-bar { width: 760px; margin: 0 auto; position: static; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
  main { box-shadow: 0 28px 80px rgba(7, 20, 38, 0.14); }
  footer { padding-top: 17px; }
}

@media (min-width: 1100px) {
  html { background: #031020; }

  body {
    min-height: 100vh;
    padding: 24px;
    background:
      radial-gradient(circle at 14% 0, rgba(24, 90, 145, 0.58), transparent 36rem),
      radial-gradient(circle at 92% 18%, rgba(255, 77, 41, 0.15), transparent 30rem),
      linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
      #031020;
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }

  .brand-bar,
  .watch-shell,
  footer { width: min(100%, 1440px); margin-inline: auto; }

  .brand-bar {
    height: 90px;
    padding: 16px 22px;
    position: static;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: rgba(243, 241, 235, 0.98);
  }

  .brand-mark { width: 54px; height: 54px; padding: 6px; border-radius: 16px; }
  .brand-eyebrow { font-size: 9px; }
  .brand-name { font-size: 19px; }
  .brand-actions { gap: 22px; }
  .header-channel { display: inline-flex; align-items: center; color: #757c84; font: 800 8px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; }

  .watch-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(350px, 0.78fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 22px 22px;
    background: var(--paper);
    box-shadow: var(--shadow-stage);
  }

  .stage-panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      var(--ink);
    background-size: 32px 32px;
  }

  .desktop-stage-head { min-height: 55px; padding: 2px 2px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; color: #fff; }
  .desktop-stage-head > div { display: grid; gap: 5px; }
  .desktop-stage-head span { color: rgba(255, 255, 255, 0.45); font: 800 8px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; }
  .desktop-stage-head strong { font: 750 16px/1.2 "Songti SC", serif; letter-spacing: 0.08em; }
  .desktop-stage-head .signal-route { color: var(--signal); }

  .stage { width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28); }
  .stage-poster h2 { font-size: clamp(33px, 3.1vw, 54px); }

  .desktop-stage-footer { min-height: 78px; margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .desktop-stage-footer > div { min-width: 0; padding: 0 18px; display: grid; gap: 7px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
  .desktop-stage-footer > div:first-child { padding-left: 2px; border-left: 0; }
  .desktop-stage-footer span { color: var(--signal); font: 800 8px/1 "DIN Alternate", sans-serif; letter-spacing: 0.18em; }
  .desktop-stage-footer strong { overflow: hidden; color: rgba(255, 255, 255, 0.77); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

  .information-rail { display: flex; flex-direction: column; border-left: 1px solid rgba(7, 20, 38, 0.16); }
  .story-card,
  .speaker-card,
  .materials-card { padding: 31px 32px; }
  .story-card { flex: 1 1 auto; }
  .story-card h1 { max-width: 9em; font-size: clamp(39px, 3.6vw, 57px); }
  .lede { margin: 18px 0 24px; font-size: 13px; line-height: 1.8; }
  .speaker-monogram { width: 58px; height: 58px; font-size: 23px; }
  .speaker-layout h2 { font-size: 20px; }
  .contact-card { margin: 18px 22px 22px; }

  footer { padding: 16px 5px 0; color: rgba(255, 255, 255, 0.42); }
  .access-gate { place-items: center; }
  .gate-panel { border-top-width: 6px; border-radius: 20px; }
  .fatal-error { inset: auto 32px 32px auto; width: min(420px, calc(100% - 64px)); }
}

@media (max-width: 380px) {
  .brand-bar { padding-inline: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-eyebrow { display: none; }
  .brand-name { font-size: 15px; }
  .status-pill { min-height: 32px; padding-inline: 9px; }
  .story-card h1 { font-size: 32px; }
  .schedule-line { align-items: flex-start; flex-direction: column; gap: 8px; }
  .schedule-line strong { text-align: left; }
}

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