:root {
  --ink: #05070a;
  --panel: #0b1017;
  --panel-soft: #111923;
  --paper: #ebe7dc;
  --muted: #aeb6bc;
  --line: rgba(255,255,255,.16);
  --acid: #d7ff28;
  --orange: #ff6a18;
  --blue: #2838ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #f3f0e8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5,7,10,.82), rgba(5,7,10,0));
  backdrop-filter: blur(10px);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(215,255,40,.5));
}

nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 13px; color: rgba(255,255,255,.78); }
nav a:hover { color: var(--acid); }

.section-dark { background: #05070a; }
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  opacity: .86;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 46%, rgba(215,255,40,.12), transparent 16%),
    linear-gradient(90deg, rgba(5,7,10,.18), rgba(5,7,10,.28) 42%, rgba(5,7,10,.78));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 25vw 100%, 100% 32vh;
  opacity: .28;
}

.hero-content {
  position: relative;
  width: min(620px, calc(100% - 40px));
  margin-left: auto;
  margin-right: clamp(20px, 7vw, 110px);
  padding-top: 80px;
}

.eyebrow, .section-label, .chapter-kicker {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(72px, 14vw, 180px);
  line-height: .84;
  font-weight: 300;
  letter-spacing: 0;
}

h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.05; font-weight: 420; }
h3 { font-size: 24px; font-weight: 520; }

.hero-line {
  max-width: 520px;
  color: #fff;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.28;
}

.hero-question { color: rgba(255,255,255,.72); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 14px;
}

.button.primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #101307;
}

.button.ghost { color: #fff; background: rgba(255,255,255,.05); }

.statement, .world, .chapters, .archive, .flow, .questions, .generator, .booking {
  padding: clamp(72px, 10vw, 136px) clamp(18px, 5vw, 72px);
}

.statement {
  background: var(--paper);
  color: #151515;
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 920px);
  gap: 30px;
}

.statement p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.38;
  letter-spacing: 0;
}

.section-heading { max-width: 880px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }

.world { background: #081019; }
.world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: stretch;
}

.world-map, .world-panels article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.world-map img { width: 100%; height: 100%; object-fit: cover; opacity: .78; mix-blend-mode: screen; }
.world-panels { display: grid; gap: 14px; }
.world-panels article { padding: 28px; }
.world-panels span { color: var(--acid); font-size: 13px; }
.world-panels p { color: var(--muted); line-height: 1.7; }

.chapter-grid { display: grid; gap: 24px; }
.chapter-card {
  min-height: 560px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line);
}

.chapter-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.chapter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,7,10,.92), rgba(5,7,10,.35) 55%, rgba(5,7,10,.82));
}

.chapter-card > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(28px, 5vw, 58px);
}

.chapter-card h3 { font-size: clamp(42px, 7vw, 86px); margin-bottom: 10px; }
.chapter-card p { color: rgba(255,255,255,.78); font-size: 18px; }
.chapter-card ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.chapter-card li { border: 1px solid rgba(255,255,255,.24); padding: 8px 12px; color: rgba(255,255,255,.78); font-size: 13px; }
.deep .chapter-kicker { color: #8fa2ff; }
.wheel .chapter-kicker { color: var(--orange); }

.archive { background: var(--paper); color: #111; }
.archive .eyebrow { color: #657a00; }
.archive-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,.18);
  background: transparent;
  color: #111;
  cursor: pointer;
}
.tab.active { background: #111; color: var(--acid); }

.character-strip {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 18vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-color: #111 transparent;
}
.character-strip.active { display: grid; }
.character-strip article {
  background: #111;
  color: #fff;
  border: 1px solid rgba(0,0,0,.18);
}
.character-strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.character-strip h3 { display: none; }
.character-strip p { margin: 16px 16px 18px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; }

.flow-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
}
.flow-list li {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: rgba(255,255,255,.05);
  font-size: 20px;
}
.flow-list span { color: var(--acid); font-size: 12px; }

.questions {
  background: #0d1118;
  display: grid;
  gap: 22px;
}
.questions p {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1.12;
  color: rgba(255,255,255,.9);
}
.questions p:nth-child(2) { color: rgba(255,255,255,.62); }
.questions p:nth-child(3) { color: rgba(215,255,40,.84); }

.generator {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(215,255,40,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 14%, rgba(40,56,255,.2), transparent 26%),
    linear-gradient(135deg, #05070a, #111923 58%, #05070a);
  background-size: 72px 72px, 100% 56px, auto, auto;
}

.generator::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5,7,10,.74));
  pointer-events: none;
}

.generator-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.generator-intro {
  position: sticky;
  top: 96px;
}

.generator-intro h2 {
  margin-bottom: 18px;
}

.generator-intro > p:last-child {
  max-width: 560px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}

.generator-console {
  min-height: 620px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,7,10,.78);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}

.generator-stage {
  display: none;
  min-height: 620px;
  padding: clamp(22px, 4vw, 42px);
}

.generator-stage.active {
  display: grid;
  align-content: center;
}

.archive-card,
.scan-card,
.unlock-card,
.news-result {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
}

.archive-card {
  padding: clamp(24px, 4vw, 44px);
}

.archive-meta,
.news-source {
  margin-bottom: 16px;
  color: rgba(215,255,40,.86);
  font-size: 12px;
  letter-spacing: .08em;
}

.archive-card h3,
.generator-stage h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
}

.archive-card p:not(.archive-meta) {
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}

.player-name-field {
  display: grid;
  max-width: 520px;
  gap: 9px;
  margin: 24px 0 12px;
}

.player-name-field span {
  color: rgba(255,255,255,.68);
  font-size: 13px;
  letter-spacing: .04em;
}

.player-name-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.28);
  color: #fff;
  padding: 15px 16px;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.player-name-field input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(215,255,40,.12);
}

.player-name-field small {
  color: rgba(255,255,255,.52);
  font-size: 12px;
  line-height: 1.6;
}

.quiz-head {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width .28s ease;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.86);
  padding: 16px 18px;
  text-align: left;
  font: inherit;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.option-card:hover {
  border-color: rgba(215,255,40,.72);
  transform: translateY(-1px);
}

.option-card.active {
  border-color: var(--acid);
  background: rgba(215,255,40,.12);
  color: #fff;
}

.quiz-warning {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ffb08b;
  font-size: 13px;
}

.quiz-actions,
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.scan-card {
  padding: clamp(24px, 4vw, 42px);
}

.scan-window {
  position: relative;
  height: 260px;
  margin-bottom: 26px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    rgba(255,255,255,.035);
  background-size: 100% 26px, 34px 100%;
}

.scan-window span {
  position: absolute;
  inset: -34% 0 auto;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(215,255,40,.36), transparent);
  animation: scanLine 1.35s linear infinite;
}

@keyframes scanLine {
  to { transform: translateY(420px); }
}

.scan-card p {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}

.scan-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255,255,255,.68);
}

.scan-card li::before {
  content: "读取中 ";
  color: var(--acid);
}

.unlock-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
}

.unlock-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(215,255,40,.18);
  pointer-events: none;
}

.sealed-id {
  display: grid;
  width: fit-content;
  min-width: min(100%, 280px);
  gap: 6px;
  margin-bottom: 22px;
  border: 1px solid rgba(215,255,40,.38);
  background: rgba(215,255,40,.08);
  padding: 14px 16px;
}

.sealed-id span,
.passphrase-field span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .08em;
}

.sealed-id strong {
  color: var(--acid);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 520;
  letter-spacing: .04em;
}

.unlock-card p:not(.archive-meta):not(.unlock-message) {
  max-width: 680px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}

.passphrase-field {
  display: grid;
  max-width: 520px;
  gap: 10px;
  margin-top: 28px;
}

.passphrase-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.28);
  color: #fff;
  padding: 15px 16px;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.passphrase-field input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(215,255,40,.12);
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.unlock-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: #ffb08b;
  font-size: 13px;
  line-height: 1.5;
}

.news-result {
  background: #f2eee3;
  color: #141414;
  padding: clamp(22px, 4vw, 44px);
}

.news-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.22);
  padding-bottom: 12px;
  color: #4d4d4d;
  font-size: 13px;
}

.news-source {
  color: #657a00;
}

.news-result h3 {
  margin-bottom: 24px;
  color: #111;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.16;
  font-weight: 560;
}

.news-body {
  display: grid;
  gap: 16px;
  color: #252525;
  font-size: 17px;
  line-height: 1.9;
}

.news-body p {
  margin: 0;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.news-tags span {
  border: 1px solid rgba(0,0,0,.2);
  padding: 7px 10px;
  color: #333;
  font-size: 12px;
}

.booking {
  background: var(--paper);
  color: #111;
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(260px, 1fr) minmax(320px, 480px);
  gap: 34px;
  align-items: center;
}
.booking-logo img { width: 100%; mix-blend-mode: multiply; }
.booking-copy .eyebrow { color: #657a00; }
.booking-copy p { color: #4c4c4c; line-height: 1.7; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 7px; color: #333; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.22);
  background: rgba(255,255,255,.55);
  min-height: 44px;
  padding: 10px 12px;
  color: #111;
  font: inherit;
  border-radius: 0;
}
textarea { resize: vertical; }
form .button { width: 100%; margin-top: 8px; cursor: pointer; }

.form-message {
  min-height: 22px;
  margin: 0;
  color: #354000;
  font-size: 13px;
  line-height: 1.5;
}

button:disabled {
  cursor: wait;
  opacity: .68;
}

.admin-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 16%, rgba(215,255,40,.12), transparent 18%),
    linear-gradient(135deg, #05070a, #081019 58%, #05070a);
}

.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) 0;
}

.admin-hero {
  margin-bottom: 28px;
}

.admin-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(48px, 10vw, 108px);
}

.admin-hero p:last-child,
.admin-message {
  color: rgba(255,255,255,.68);
}

.admin-login,
.admin-dashboard {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  margin-bottom: 18px;
}

.admin-login label {
  color: rgba(255,255,255,.78);
}

.admin-login input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.admin-message {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.admin-dashboard {
  padding: 22px;
}

.admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-summary strong {
  display: block;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .9;
  color: var(--acid);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: rgba(255,255,255,.86);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.admin-table th {
  color: var(--acid);
  font-weight: 500;
}

@media (max-width: 920px) {
  .site-header { height: 62px; }
  nav { gap: 12px; }
  .hero-content { margin: 0 20px; align-self: end; padding-bottom: 60px; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,7,10,.12), rgba(5,7,10,.88)); }
  .statement, .world-layout, .booking { grid-template-columns: 1fr; }
  .generator-shell { grid-template-columns: 1fr; }
  .generator-intro { position: static; }
  .chapter-card { min-height: 520px; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  nav a:nth-child(2), nav a:nth-child(3), nav a:nth-child(5) { display: none; }
  .brand img { width: 36px; height: 36px; }
  .statement, .world, .chapters, .archive, .flow, .questions, .generator, .booking { padding-left: 16px; padding-right: 16px; }
  .chapter-card > div { padding: 24px; }
  .character-strip { grid-auto-columns: minmax(210px, 72vw); }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { min-height: 110px; }
  .generator-console,
  .generator-stage { min-height: 560px; }
  .news-topline { display: grid; }
  .quiz-actions .button,
  .result-actions .button { flex: 1 1 100%; }
}
