@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700;900&display=swap');

:root {
  --ink: #171922;
  --ink-soft: #262a37;
  --paper: #f4efe4;
  --paper-deep: #e7dfcf;
  --gold: #e8b35b;
  --gold-bright: #ffd991;
  --red: #a94234;
  --red-dark: #7c2f2a;
  --blue: #234a6b;
  --muted: #a9a7a1;
  --line: rgba(255, 217, 145, .24);
  --serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --sans: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.site-shell { overflow: hidden; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  transition: background .2s ease, padding .2s ease;
}
.site-header.is-scrolled { padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font: 700 23px/1 var(--serif);
  transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { color: var(--paper); font: 700 18px/1.25 var(--serif); letter-spacing: .14em; }
.brand-copy small { color: var(--gold); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); color: rgba(244,239,228,.75); font-size: 13px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--gold-bright); }
.site-nav .nav-cta { border-bottom: 1px solid var(--gold); color: var(--gold-bright); padding: 4px 0; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 5px 0; background: var(--gold); }

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  height: 100vh;
  max-height: 980px;
  align-items: center;
  isolation: isolate;
  padding: 120px max(32px, calc((100% - 1240px) / 2));
}
.hero-backdrop, .hero-grain { position: absolute; z-index: -2; inset: 0; }
.hero-backdrop {
  background: linear-gradient(90deg, rgba(13, 16, 25, .96) 0%, rgba(13, 16, 25, .72) 38%, rgba(13, 16, 25, .18) 75%, rgba(13, 16, 25, .52) 100%), url('/assets/images/bg-menu.png') center 39% / cover no-repeat;
  filter: saturate(.9);
}
.hero-grain { z-index: -1; opacity: .16; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.22) .7px, transparent .7px); background-size: 4px 4px; mix-blend-mode: soft-light; }
.hero-content { position: relative; z-index: 2; width: min(620px, 58%); padding-bottom: 36px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--gold); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }
.hero h1, h2 { margin: 0; font-family: var(--serif); font-weight: 900; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(54px, 7vw, 94px); line-height: 1.15; color: #fbf6eb; text-shadow: 0 8px 34px rgba(0,0,0,.25); }
.hero h1 em, h2 em { color: var(--gold-bright); font-style: normal; }
.hero-lede { max-width: 480px; margin: 26px 0 0; color: rgba(244,239,228,.74); font-size: 16px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 0 25px; border: 0; border-radius: 0; cursor: pointer; font-size: 14px; letter-spacing: .12em; transition: transform .22s ease, background .22s ease, color .22s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.button-primary:hover { background: var(--gold-bright); }
.button-primary span { font-size: 18px; line-height: 0; }
.text-link { display: inline-flex; gap: 10px; color: rgba(244,239,228,.78); font-size: 13px; }
.text-link:hover { color: var(--gold-bright); }
.hero-characters { position: absolute; right: max(-7vw, calc((100% - 1460px) / 2)); bottom: -2px; z-index: 1; width: min(710px, 53vw); height: 87%; pointer-events: none; }
.hero-character { position: absolute; bottom: 0; width: 56%; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 25px rgba(0,0,0,.38)); }
.hero-character-zhao { right: 42%; z-index: 2; transform: translateY(7%); }
.hero-character-guan { right: -2%; z-index: 1; width: 63%; transform: translateY(8%); }
.hero-stamp { position: absolute; right: 11%; top: 26%; z-index: 3; display: grid; width: 78px; height: 78px; place-content: center; border: 1px solid rgba(232,179,91,.8); color: var(--gold-bright); transform: rotate(-11deg); opacity: .82; }
.hero-stamp::before { position: absolute; inset: 5px; border: 1px solid rgba(232,179,91,.6); content: ''; }
.hero-stamp span { font: 700 28px/1 var(--serif); }
.hero-stamp small { margin-top: -4px; font: 600 14px/1 var(--serif); text-align: center; }
.hero-scroll { position: absolute; bottom: 34px; left: max(32px, calc((100% - 1240px) / 2)); display: flex; align-items: center; gap: 12px; color: rgba(244,239,228,.55); font-size: 10px; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-scroll i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); }

.section { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 128px 0; }
.section-kicker { margin-bottom: 26px; color: #bca474; }
.section-kicker::before { display: inline-block; width: 18px; height: 1px; background: currentColor; content: ''; }
h2 { font-size: clamp(42px, 5.5vw, 72px); line-height: 1.22; color: var(--paper); }
.intro { color: var(--ink); padding-bottom: 116px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 100px; align-items: end; }
.intro h2 { color: var(--ink); }
.intro h2 em { color: var(--red); }
.intro-copy { max-width: 450px; color: #4b4b50; font-size: 16px; }
.intro-copy p { margin: 0 0 18px; }
.intro-copy .muted { color: #898680; font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 76px; }
.feature-card { position: relative; min-height: 240px; padding: 30px; overflow: hidden; color: var(--paper); }
.feature-card::after { position: absolute; right: -23px; bottom: -56px; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; content: ''; }
.feature-card-ink { background: #2c3441; }
.feature-card-gold { color: var(--ink); background: var(--gold); }
.feature-card-blue { background: var(--blue); }
.feature-index { position: absolute; top: 24px; right: 28px; font: 500 14px/1 var(--serif); opacity: .52; }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 32px; border: 1px solid currentColor; font: 600 18px/1 var(--serif); }
.feature-card h3 { margin: 0 0 8px; font: 700 22px/1.3 var(--serif); }
.feature-card p { max-width: 230px; margin: 0; font-size: 13px; opacity: .72; line-height: 1.8; }

.generals { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: center; min-height: 730px; color: var(--paper); background: var(--ink); }
.generals::before { position: absolute; left: 0; right: 0; height: 730px; z-index: -1; background: radial-gradient(circle at 72% 50%, rgba(35,74,107,.65), transparent 38%), var(--ink); content: ''; }
.generals-copy { max-width: 390px; }
.generals h2 { margin-bottom: 28px; }
.generals h2 em { color: #7db7df; }
.generals-copy p { color: rgba(244,239,228,.65); font-size: 15px; line-height: 1.9; }
.general-note { display: flex; align-items: center; gap: 12px; margin-top: 40px; color: #a8c6dc; font-size: 12px; letter-spacing: .12em; }
.note-line { width: 28px; height: 1px; background: #a8c6dc; }
.general-stage { position: relative; height: 600px; }
.general-glow { position: absolute; top: 50%; left: 52%; width: 360px; height: 360px; border-radius: 50%; background: rgba(111,183,235,.14); filter: blur(22px); transform: translate(-50%, -50%); }
.general-card { position: absolute; bottom: 0; width: 54%; max-width: 390px; height: 92%; }
.general-card img { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 15px 20px rgba(0,0,0,.48)); }
.general-card-zhao { left: 2%; z-index: 2; }
.general-card-guan { right: 1%; z-index: 1; width: 59%; transform: translateY(2%); }
.general-label { position: absolute; bottom: 18px; left: 21%; display: grid; gap: 1px; min-width: 126px; padding: 10px 14px; border-left: 2px solid var(--gold); background: rgba(16,20,29,.75); backdrop-filter: blur(8px); }
.general-card-guan .general-label { left: 25%; border-color: #a5c87f; }
.general-label b { font: 600 18px/1.4 var(--serif); }
.general-label small { color: rgba(244,239,228,.62); font-size: 11px; }
.stage-seal { position: absolute; top: 17%; right: 22%; z-index: 4; display: grid; width: 75px; height: 75px; place-content: center; border: 1px solid rgba(232,179,91,.7); color: var(--gold); font: 700 21px/1.15 var(--serif); text-align: center; transform: rotate(8deg); }

.battle { color: var(--ink); padding-bottom: 134px; }
.battle-header { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 56px; }
.battle-header h2 { color: var(--ink); }
.battle-header h2 em { color: var(--red); }
.battle-header > p { max-width: 330px; margin: 0 0 5px; color: #686660; font-size: 15px; }
.battle-panel { display: grid; grid-template-columns: 1.22fr .78fr; min-height: 478px; background: #1e2430; }
.battle-image { min-height: 478px; overflow: hidden; }
.battle-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.92); transition: transform .65s ease; }
.battle-panel:hover .battle-image img { transform: scale(1.04); }
.battle-list { display: grid; align-content: center; padding: 36px 42px; }
.battle-item { display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.battle-item:last-child { border-bottom: 0; }
.battle-item > span { color: var(--gold); font: 600 12px/1 var(--serif); }
.battle-item b { display: block; color: var(--paper); font: 600 20px/1.3 var(--serif); }
.battle-item small { display: block; margin-top: 4px; color: rgba(244,239,228,.54); font-size: 12px; line-height: 1.6; }

.play { padding-top: 0; padding-bottom: 145px; }
.play-card { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; background: #a94234; }
.play-card-art { position: absolute; inset: 0 0 0 42%; opacity: .31; background: linear-gradient(90deg, #a94234 2%, rgba(169,66,52,.2) 55%, rgba(169,66,52,.1)), url('/assets/images/bg-menu.png') center 52% / cover; mix-blend-mode: multiply; }
.play-content { position: relative; z-index: 1; max-width: 550px; padding: 56px; }
.play-content .section-kicker { color: #f2c878; }
.play h2 { font-size: clamp(38px, 5vw, 62px); }
.play h2 em { color: #ffe2a4; }
.play-content p { max-width: 390px; margin: 22px 0 28px; color: rgba(255,245,230,.76); font-size: 14px; }
.play-content .button { background: #f6e0a9; }
.copy-status { display: inline-block; margin-left: 12px; color: #ffe2a4; font-size: 12px; }
.play-merit { position: absolute; z-index: 2; right: 12%; bottom: -4%; width: 175px; opacity: .88; filter: drop-shadow(0 12px 16px rgba(80,18,15,.34)); transform: rotate(8deg); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 22px; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 26px 0 36px; border-top: 1px solid rgba(244,239,228,.15); color: rgba(244,239,228,.48); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font: 600 15px var(--serif); }
.footer-brand .brand-mark { width: 26px; height: 26px; font-size: 13px; }
.site-footer p { margin: 0; }
.footer-line { width: 100%; height: 1px; background: rgba(244,239,228,.13); }
.site-footer small { color: rgba(244,239,228,.34); white-space: nowrap; }

@media (max-width: 900px) {
  .hero { min-height: 720px; padding-right: 28px; padding-left: 28px; }
  .hero-content { width: 64%; }
  .hero-characters { right: -12%; width: 66vw; opacity: .8; }
  .hero-stamp { right: 7%; top: 23%; }
  .intro-grid { gap: 50px; }
  .generals { grid-template-columns: .9fr 1.1fr; }
  .general-stage { height: 510px; }
  .play-merit { right: 4%; }
}

@media (max-width: 680px) {
  .site-header, .section, .site-footer { width: calc(100% - 40px); }
  .site-header { padding-top: 20px; }
  .site-nav { position: absolute; top: 76px; right: 0; display: grid; gap: 0; width: 190px; padding: 10px 18px; border: 1px solid rgba(232,179,91,.24); background: rgba(23,25,34,.96); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .nav-cta { border-bottom-color: var(--gold); }
  .menu-toggle { display: block; }
  .hero { min-height: 760px; height: 93vh; padding: 130px 20px 70px; align-items: flex-start; }
  .hero-backdrop { background-position: 61% 42%; }
  .hero-content { width: 100%; max-width: 460px; padding-top: 12px; }
  .hero h1 { font-size: clamp(48px, 14vw, 70px); }
  .hero-lede { max-width: 300px; font-size: 14px; }
  .hero-characters { right: -24%; bottom: -2%; width: 108vw; height: 57%; opacity: .72; }
  .hero-character { width: 51%; }
  .hero-character-guan { width: 58%; }
  .hero-stamp { top: 48%; right: 7%; width: 58px; height: 58px; }
  .hero-stamp span { font-size: 21px; }
  .hero-stamp small { font-size: 11px; }
  .hero-scroll { display: none; }
  .section { padding: 82px 0; }
  .intro-grid, .feature-grid, .generals, .battle-panel { grid-template-columns: 1fr; }
  .intro-grid { gap: 30px; }
  .feature-grid { gap: 12px; margin-top: 48px; }
  .feature-card { min-height: 185px; padding: 24px; }
  .feature-icon { margin-bottom: 20px; }
  .generals { min-height: auto; gap: 25px; }
  .generals::before { height: 1000px; }
  .generals-copy { max-width: none; }
  .general-stage { height: 430px; margin: 12px -18px -35px; }
  .general-card { width: 57%; }
  .general-card-guan { width: 64%; }
  .general-label { left: 8%; min-width: 100px; padding: 7px 9px; }
  .general-card-guan .general-label { left: 16%; }
  .general-label b { font-size: 15px; }
  .general-label small { font-size: 9px; }
  .stage-seal { top: 8%; right: 13%; width: 60px; height: 60px; font-size: 17px; }
  .battle { padding-top: 96px; }
  .battle-header { display: block; margin-bottom: 34px; }
  .battle-header > p { margin-top: 24px; }
  .battle-image { min-height: 270px; }
  .battle-list { padding: 17px 25px; }
  .battle-item { padding: 17px 0; }
  .play { padding-top: 0; padding-bottom: 90px; }
  .play-card { min-height: 500px; align-items: end; }
  .play-card-art { inset: 0; opacity: .22; }
  .play-content { padding: 32px 26px; }
  .play-merit { top: 8%; right: 8%; bottom: auto; width: 120px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 12px; }
  .site-footer p { display: none; }
  .footer-line { display: none; }
}

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