:root {
  --ink: #172523;
  --ink-soft: #3c4d49;
  --jade: #135e52;
  --jade-dark: #0a3e38;
  --cinnabar: #a4382b;
  --gold: #d5a83d;
  --paper: #f3efe4;
  --paper-deep: #e6decb;
  --white: #fffdf7;
  --line: rgba(23, 37, 35, .16);
  --shadow: 0 22px 55px rgba(8, 38, 34, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  height: 74px;
  padding: 0 4.5vw;
  display: flex;
  align-items: center;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(9, 54, 48, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.seal, .person-seal {
  display: grid;
  place-items: center;
  font-family: "STKaiti", "KaiTi", serif;
  background: var(--cinnabar);
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}
.seal { width: 38px; height: 38px; font-size: 22px; transform: rotate(-3deg); }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-family: "STKaiti", "KaiTi", serif; font-size: 19px; letter-spacing: .12em; }
.brand small { opacity: .6; font-size: 11px; letter-spacing: .18em; }
nav { display: flex; gap: 27px; }
nav a { position: relative; padding: 24px 0 20px; font-size: 14px; opacity: .66; }
nav a:hover, nav a.active { opacity: 1; }
nav a.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 13px; height: 2px; background: var(--gold); }
.demo-pill { padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; font-size: 11px; letter-spacing: .1em; opacity: .7; }

.banquet {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(610px, 1.75fr);
  align-items: stretch;
  position: relative;
  background: var(--jade-dark);
  overflow: hidden;
}
.banquet-copy {
  padding: clamp(56px, 7vw, 112px) 3vw 50px 5vw;
  color: var(--white);
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, #073f38 0%, #0e5147 70%, rgba(14,81,71,.78) 100%);
}
.banquet-copy::after { content: ""; position: absolute; right: -44px; top: 0; bottom: 0; width: 90px; background: inherit; transform: skewX(-4deg); z-index: -1; }
.eyebrow { margin: 0 0 12px; color: var(--cinnabar); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.eyebrow.light, .banquet-copy .eyebrow, .person-drawer .eyebrow { color: #e8c35e; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "STKaiti", "KaiTi", "Songti SC", serif; font-weight: 600; }
h1 { margin-bottom: 26px; font-size: clamp(42px, 5vw, 76px); line-height: 1.06; letter-spacing: -.04em; }
h1 em { color: #f1ce6b; font-style: normal; }
.banquet-copy > p:not(.eyebrow) { max-width: 430px; color: rgba(255,255,255,.72); font-size: 16px; }
.progress-line { margin-top: 42px; max-width: 310px; font-size: 13px; color: rgba(255,255,255,.62); }
.progress-line b { color: #f2ce6d; font-size: 20px; }
.progress-track { height: 2px; margin-top: 9px; background: rgba(255,255,255,.2); }
.progress-track i { display: block; width: 0; height: 100%; background: #f2ce6d; transition: width .4s ease; }

.scene-wrap { position: relative; min-height: 650px; background: #203d35; overflow: hidden; }
.scene-wrap > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.85) contrast(.98); }
.scene-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,39,35,.3), transparent 24%), linear-gradient(0deg, rgba(10,30,27,.48), transparent 30%); }
.hotspot {
  position: absolute;
  z-index: 4;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 7px rgba(255,255,255,.22), 0 0 0 13px rgba(164,56,43,.18);
  cursor: pointer;
  transition: transform .2s, background .2s;
  animation: breathe 2.4s infinite;
}
.hotspot:hover, .hotspot:focus-visible, .hotspot.visited { transform: scale(1.22); background: var(--gold); outline: none; }
.hotspot span { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: max-content; padding: 4px 9px; color: #fff; background: rgba(9,48,43,.86); border-radius: 3px; font-size: 12px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hotspot:hover span, .hotspot:focus-visible span { opacity: 1; }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 0 0 12px rgba(164,56,43,.12); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 18px rgba(164,56,43,.04); } }
.hs-xiangyun { left: 31%; top: 30%; }
.hs-daiyu { left: 50%; top: 42%; }
.hs-baoyu { left: 66%; top: 31%; }
.hs-jiamu { left: 76%; top: 30%; }
.hs-wang { left: 91%; top: 39%; }
.hs-liu { left: 45%; top: 58%; }
.scene-caption { position: absolute; z-index: 3; right: 24px; bottom: 23px; padding: 10px 14px; color: white; text-align: right; border-right: 2px solid var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.scene-caption span, .scene-caption strong { display: block; }
.scene-caption span { font-size: 11px; opacity: .68; letter-spacing: .16em; }
.scene-caption strong { font-family: "STKaiti", "KaiTi", serif; font-size: 18px; }

.person-drawer {
  position: fixed;
  z-index: 50;
  top: 74px;
  right: 0;
  width: min(430px, 92vw);
  height: calc(100vh - 74px);
  padding: 46px 38px;
  color: #fff;
  background: rgba(7,48,43,.97);
  backdrop-filter: blur(18px);
  box-shadow: -20px 0 45px rgba(0,0,0,.25);
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.person-drawer.open { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 20px; border: 0; background: transparent; color: white; font-size: 28px; cursor: pointer; opacity: .65; }
.person-heading { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.person-seal { width: 58px; height: 58px; font-size: 28px; flex: 0 0 auto; }
.person-heading h2 { margin: 0; font-size: 35px; line-height: 1.1; }
.person-heading p { margin: 5px 0 0; color: rgba(255,255,255,.58); font-size: 13px; }
.person-drawer blockquote { margin: 26px 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); font-family: "STKaiti", "KaiTi", serif; color: #f4d478; font-size: 21px; }
.evidence-card { padding: 20px; color: var(--ink); background: var(--paper); }
.evidence-card span { color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.evidence-card strong { display: block; margin: 7px 0; font-size: 18px; }
.evidence-card p { margin: 0; font-size: 14px; line-height: 1.8; }
.ai-note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.68); }
.ai-note b, .ai-note span { display: block; }
.ai-note b { margin-bottom: 4px; color: white; }

.story, .lab { padding: 92px 5vw; }
.section-heading { max-width: 740px; margin-bottom: 42px; }
.section-heading h2, .challenge h2, .closing h2 { margin-bottom: 10px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.15; }
.section-heading > p:last-child { color: var(--ink-soft); }
.story-rail { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 60px rgba(23,37,35,.08); }
.story-rail article { min-height: 290px; padding: 34px 28px; border-right: 1px solid var(--line); }
.story-rail article:last-child { border-right: 0; }
.story-rail article > span { font-family: Georgia, serif; font-size: 44px; color: var(--paper-deep); }
.story-rail .label { margin: 20px 0 5px; color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.story-rail h3 { margin-bottom: 11px; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; }
.story-rail p:last-child { color: var(--ink-soft); font-size: 14px; }
.story-rail .accent { color: white; background: var(--cinnabar); }
.story-rail .accent > span, .story-rail .accent .label, .story-rail .accent p { color: rgba(255,255,255,.78); }

.challenge { padding: 86px 5vw; display: grid; grid-template-columns: .62fr 1.38fr; gap: 70px; color: #fff; background: var(--ink); }
.challenge-intro { position: relative; padding-right: 30px; }
.challenge-intro > p:not(.eyebrow) { max-width: 400px; color: rgba(255,255,255,.62); }
.score { margin: 25px 0 8px; color: var(--gold); font-family: Georgia, serif; }
.score span { font-size: 70px; line-height: 1; }
.score small { font-size: 18px; }
.reset-button { padding: 8px 0; color: rgba(255,255,255,.65); border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; }
.match-board { display: grid; grid-template-columns: 1fr 68px .72fr; gap: 12px; position: relative; }
.match-column { display: grid; gap: 10px; align-content: start; }
.match-option { min-height: 68px; padding: 13px 17px; text-align: left; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.055); color: #fff; cursor: pointer; transition: .2s; }
.match-option:hover, .match-option.selected { border-color: var(--gold); background: rgba(213,168,61,.14); }
.match-option.matched { border-color: #5fb49f; color: rgba(255,255,255,.45); background: rgba(95,180,159,.1); cursor: default; }
.match-option.wrong { animation: shake .25s 2; border-color: #df6e62; }
.match-column.names .match-option { font-family: "STKaiti", "KaiTi", serif; font-size: 20px; text-align: center; }
.match-center { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.34); font-size: 11px; letter-spacing: .12em; }
.match-center i { width: 1px; flex: 1; background: rgba(255,255,255,.12); }
.match-feedback { grid-column: 1 / -1; margin: 8px 0 0; min-height: 28px; color: #eac96c; font-size: 14px; }
@keyframes shake { 0%,100%{transform:translateX(0)} 50%{transform:translateX(6px)} }

.lab { background-image: radial-gradient(circle at 83% 5%, rgba(213,168,61,.2), transparent 22%); }
.compare-stage { position: relative; max-width: 1180px; aspect-ratio: 16/7.2; overflow: hidden; background: #17362f; box-shadow: var(--shadow); }
.compare-image { position: absolute; inset: 0; overflow: hidden; }
.compare-image img { width: 100%; height: 100%; object-fit: cover; }
.draft-image { width: 48%; border-right: 2px solid #fff; }
.draft-image img { width: 1180px; max-width: none; filter: grayscale(.68) sepia(.16) contrast(.78) blur(1px); }
.draft-wash { position: absolute; inset: 0; background: rgba(32,65,58,.12); }
.image-label { position: absolute; top: 20px; right: 20px; padding: 7px 12px; color: #fff; background: rgba(16,32,29,.76); font-size: 12px; letter-spacing: .1em; }
.draft-image .image-label { left: 20px; right: auto; }
.image-label.good { background: var(--cinnabar); }
#compare-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-handle { position: absolute; z-index: 4; left: 48%; top: 50%; display: grid; place-items: center; width: 45px; height: 45px; transform: translate(-50%,-50%); color: var(--ink); background: white; border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,.25); pointer-events: none; }
.revision-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin-top: 25px; border-top: 1px solid var(--line); }
.revision-grid article { padding: 28px 36px 10px 0; }
.revision-grid span { color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.revision-grid h3 { margin: 8px 0; font-size: 18px; }
.revision-grid p { color: var(--ink-soft); font-size: 14px; }

.closing { padding: 90px 5vw; color: white; text-align: center; background: var(--cinnabar); }
.closing > p { margin-bottom: 6px; color: rgba(255,255,255,.65); letter-spacing: .2em; font-size: 12px; }
.closing h2 { max-width: 760px; margin: 0 auto 28px; }
.closing-notes { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.closing-notes span { padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; font-size: 13px; }
footer { padding: 22px 5vw; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.53); background: #10201e; font-size: 12px; }
footer p { margin: 0; }

@media (max-width: 1000px) {
  nav { display: none; }
  .banquet { grid-template-columns: 1fr; }
  .banquet-copy { padding: 48px 6vw 38px; }
  .banquet-copy::after { display: none; }
  .scene-wrap { min-height: 62vw; }
  .story-rail { grid-template-columns: 1fr 1fr; }
  .story-rail article:nth-child(2) { border-right: 0; }
  .story-rail article { border-bottom: 1px solid var(--line); }
  .story-rail article:nth-child(3), .story-rail article:nth-child(4) { border-bottom: 0; }
  .challenge { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 660px) {
  .topbar { height: 66px; padding: 0 18px; }
  .demo-pill { display: none; }
  .banquet { min-height: 0; }
  .banquet-copy { padding: 38px 22px 30px; }
  h1 { font-size: 44px; }
  .scene-wrap { min-height: 77vw; }
  .hotspot { width: 18px; height: 18px; }
  .scene-caption { display: none; }
  .person-drawer { top: 66px; height: calc(100vh - 66px); padding: 42px 24px; }
  .story, .lab { padding: 68px 20px; }
  .story-rail { grid-template-columns: 1fr; }
  .story-rail article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .story-rail article:last-child { border-bottom: 0 !important; }
  .challenge { padding: 66px 20px; }
  .match-board { grid-template-columns: 1fr .65fr; gap: 9px; }
  .match-center { display: none; }
  .match-option { min-height: 80px; padding: 10px; font-size: 13px; }
  .match-column.names .match-option { font-size: 18px; }
  .compare-stage { aspect-ratio: 4/3; }
  .draft-image img { width: calc(100vw - 40px); }
  .revision-grid { grid-template-columns: 1fr; }
  .revision-grid article { padding-right: 0; border-bottom: 1px solid var(--line); }
  footer { flex-direction: column; }
}

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