:root {
  --bg: #090705;
  --gold: #c99a46;
  --gold-light: #f2d58f;
  --gold-dark: #79501c;
  --cream: #f3e7cc;
  --muted: #b6a98e;
  --line: rgba(201, 154, 70, 0.3);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  font-family: "Microsoft YaHei", "Noto Serif SC", serif;
  background:
    radial-gradient(circle at 50% 0, rgba(126, 78, 23, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(201, 154, 70, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(201, 154, 70, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px;
}

a { color: inherit; text-decoration: none; }
.page-shell { overflow: hidden; }

.topbar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 40px));
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.brand { display: 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-light);
  background: rgba(15, 9, 4, 0.75);
  font-size: 24px;
  transform: rotate(45deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; letter-spacing: 3px; }
.brand small { margin-top: 3px; color: var(--gold); font-size: 8px; letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav-links a { padding: 9px 0; border-bottom: 1px solid transparent; transition: 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-light); border-color: var(--gold); outline: 0; }
.nav-links .home-link { padding: 9px 14px; border: 1px solid var(--line); }

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 150px 20px 90px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(150, 87, 25, 0.32), transparent 24%),
    linear-gradient(180deg, rgba(4, 3, 2, 0.1), var(--bg) 94%);
}

.hero::before, .hero::after {
  position: absolute;
  top: 17%;
  width: 34vw;
  height: 62%;
  border: 1px solid rgba(201, 154, 70, 0.14);
  content: "";
  transform: rotate(45deg);
}
.hero::before { left: -25vw; }
.hero::after { right: -25vw; }

.hero-ornament {
  position: absolute;
  top: 170px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(201, 154, 70, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(201, 154, 70, 0.02), 0 0 90px rgba(177, 102, 25, 0.12);
}
.hero-ornament::before, .hero-ornament::after {
  position: absolute;
  inset: 62px;
  border: 1px solid rgba(201, 154, 70, 0.13);
  content: "";
  transform: rotate(45deg);
}
.hero-ornament::after { inset: 112px; transform: rotate(0); }

.eyebrow { position: relative; margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 5px; }
.hero h1 {
  position: relative;
  margin: 0;
  color: var(--gold-light);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(60px, 10vw, 126px);
  line-height: 0.95;
  letter-spacing: 8px;
  text-shadow: 0 2px 0 #694519, 0 0 24px rgba(226, 167, 71, 0.32), 0 12px 38px rgba(0, 0, 0, 0.8);
}
.hero h1 span { display: block; }
.hero-copy { position: relative; max-width: 680px; margin: 30px auto 0; color: #d6c5a3; font-size: 18px; line-height: 1.9; letter-spacing: 2px; }

.hero-facts { position: relative; display: flex; margin-top: 36px; border-block: 1px solid var(--line); }
.hero-facts span { min-width: 170px; padding: 16px 26px; color: var(--gold-light); font-weight: 700; }
.hero-facts span + span { border-left: 1px solid var(--line); }
.hero-facts small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 2px; }

.hero-actions { position: relative; display: flex; gap: 14px; margin-top: 34px; }
.gold-button, .ghost-button {
  display: inline-flex;
  min-width: 168px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.gold-button { color: #160e05; background: linear-gradient(135deg, var(--gold-light), #ad7628); box-shadow: 0 12px 30px rgba(126, 76, 18, 0.25); }
.ghost-button { color: var(--gold-light); background: rgba(16, 10, 5, 0.55); }
.gold-button:hover, .gold-button:focus-visible, .ghost-button:hover, .ghost-button:focus-visible {
  outline: 2px solid rgba(242, 213, 143, 0.45);
  outline-offset: 3px;
  box-shadow: 0 16px 38px rgba(201, 154, 70, 0.3);
  transform: translateY(-3px);
}
.download-status { position: relative; min-height: 22px; margin: 16px 0 0; color: #9c8d73; font-size: 12px; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .opening-banner h2 { margin: 0; color: var(--gold-light); font-family: "STKaiti", "KaiTi", serif; font-size: clamp(38px, 5vw, 62px); letter-spacing: 5px; }
.section-heading h2::after { display: block; width: 80px; height: 1px; margin-top: 18px; background: linear-gradient(90deg, var(--gold), transparent); content: ""; }
.section-heading.centered { text-align: center; }
.section-heading.centered h2::after { margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.section-heading > p:last-child { color: var(--muted); }

.intro-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 70px; align-items: start; }
.intro-copy { padding: 30px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 2; }
.intro-copy .lead { margin-top: 0; color: #e4d4b4; font-size: 20px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-grid article, .class-card { position: relative; padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(48, 33, 16, 0.72), rgba(17, 12, 7, 0.88)); box-shadow: var(--shadow); }
.feature-grid article span { position: absolute; top: 10px; right: 16px; color: rgba(201, 154, 70, 0.16); font-family: serif; font-size: 58px; }
.feature-grid h3 { margin: 0 0 12px; color: var(--gold-light); letter-spacing: 2px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.classes-section { padding-top: 70px; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.class-card { min-height: 280px; padding: 30px 22px; transition: 0.25s; }
.class-card::after { position: absolute; inset: 8px; border: 1px solid rgba(201, 154, 70, 0.1); content: ""; pointer-events: none; }
.class-card:hover { border-color: var(--gold); transform: translateY(-9px); }
.class-card.featured { background: radial-gradient(circle at 50% 0, rgba(201, 154, 70, 0.22), transparent 45%), #21160b; }
.class-number { color: #7e5d2c; font-size: 12px; letter-spacing: 3px; }
.class-card h3 { margin: 38px 0 18px; color: var(--gold-light); font-family: "STKaiti", "KaiTi", serif; font-size: 38px; }
.class-card p { min-height: 88px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.class-card em { color: var(--gold); font-size: 12px; font-style: normal; letter-spacing: 2px; }

.opening-banner { display: flex; width: min(1180px, calc(100% - 40px)); align-items: center; justify-content: space-between; margin: 20px auto; padding: 54px 64px; border: 1px solid var(--gold-dark); background: radial-gradient(circle at 70% 50%, rgba(201, 154, 70, 0.16), transparent 30%), linear-gradient(100deg, #27190b, #100b06); box-shadow: var(--shadow); }
.opening-banner h2 strong { color: #fff0bd; font-size: 1.35em; }
.opening-banner p:last-child { margin-bottom: 0; color: var(--muted); letter-spacing: 2px; }

.gear-section { width: 100%; padding-bottom: 120px; }
.gear-section .section-heading { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.gear-window { overflow: hidden; width: 100%; padding: 16px 0; outline: 0; }
.gear-window:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.gear-track { display: flex; width: max-content; animation: gear-flow 38s linear infinite; will-change: transform; }
.gear-set { display: flex; gap: 18px; padding-right: 18px; }
.gear-set figure { position: relative; width: 303px; flex: 0 0 auto; margin: 0; padding: 10px; border: 1px solid var(--line); background: linear-gradient(145deg, #25190d, #0c0906); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45); }
.gear-set img { display: block; width: 100%; height: 420px; object-fit: contain; background: #080604; }
.gear-set figcaption { padding: 16px 8px 8px; color: var(--gold-light); font-size: 13px; letter-spacing: 3px; text-align: center; }
.gear-window:hover .gear-track, .gear-window:focus-within .gear-track { animation-play-state: paused; }

footer { display: flex; width: min(1180px, calc(100% - 40px)); align-items: center; justify-content: space-between; margin: auto; padding: 34px 0; color: #746955; font-size: 12px; }
footer a { color: var(--gold); }

@keyframes gear-flow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-layout { grid-template-columns: 1fr; gap: 36px; }
  .nav-links a:not(.home-link) { display: none; }
}

@media (max-width: 760px) {
  .topbar { width: calc(100% - 28px); padding: 16px 0; }
  .brand strong { font-size: 16px; }
  .hero { min-height: 760px; padding: 130px 14px 70px; }
  .hero h1 { font-size: 58px; letter-spacing: 3px; }
  .hero-copy { font-size: 15px; letter-spacing: 1px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 400px; }
  .hero-facts span { min-width: 0; padding: 13px 8px; }
  .hero-facts span + span { border-left: 1px solid var(--line); }
  .hero-facts span:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .hero-actions { width: 100%; max-width: 400px; flex-direction: column; }
  .gold-button, .ghost-button { width: 100%; }
  .section { width: calc(100% - 28px); padding: 78px 0; }
  .feature-grid, .class-grid { grid-template-columns: 1fr; }
  .class-card { min-height: auto; }
  .class-card p { min-height: auto; margin-bottom: 20px; }
  .opening-banner { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; padding: 38px 28px; }
  .opening-banner .gold-button { width: auto; margin-top: 20px; }
  .gear-window { overflow-x: auto; scrollbar-color: var(--gold-dark) #0d0905; }
  .gear-track { animation-duration: 46s; }
  .gear-set figure { width: min(303px, calc(100vw - 48px)); }
  .gear-set img { height: auto; aspect-ratio: 303 / 420; }
  footer { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gear-track { animation: none; }
  .gear-window { overflow-x: auto; }
  .gear-set[aria-hidden="true"] { display: none; }
  .gold-button, .ghost-button, .class-card { transition: none; }
}
