:root {
  --bg: #070b10;
  --bg-soft: #101722;
  --panel: rgba(16, 20, 27, .78);
  --panel-strong: rgba(24, 28, 36, .92);
  --text: #fff4df;
  --muted: #b6a58f;
  --gold: #ffd77a;
  --amber: #ff9f2e;
  --fire: #ec3b16;
  --red: #9b130d;
  --line: rgba(255, 215, 122, .18);
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Serif SC", serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(236, 59, 22, .28), transparent 28rem),
    radial-gradient(circle at 85% 5%, rgba(255, 159, 46, .2), transparent 24rem),
    linear-gradient(135deg, #05070a 0%, #0b121c 46%, #120908 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 215, 122, .45);
  border-radius: 14px;
  color: #250501;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--gold), var(--fire));
  box-shadow: 0 0 34px rgba(236, 59, 22, .35);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  letter-spacing: .18em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav a,
.topbar-cta,
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, .05);
}

.topbar-cta {
  padding: 11px 18px;
  color: #1c0803;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 42px;
  align-items: center;
  max-width: 1200px;
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 80px 24px 70px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  width: min(72vw, 900px);
  height: min(72vw, 900px);
  border: 1px solid rgba(255, 215, 122, .08);
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 215, 122, .1), transparent 58%);
  filter: blur(2px);
}

.hero-copy,
.hero-card,
.section,
.footer {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: .88;
  letter-spacing: .08em;
  text-shadow:
    0 4px 0 #5c0904,
    0 0 38px rgba(236, 59, 22, .64),
    0 0 90px rgba(255, 159, 46, .28);
  background: linear-gradient(180deg, #fff8c8 0%, #ffd66c 38%, #f0521d 72%, #7a0805 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 700px;
  color: #e7d8c4;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

.hero-actions,
.hero-stats,
.feature-grid,
.package-grid,
.class-grid,
.transfer-cards {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 800;
}

.btn:hover,
.topbar-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #210600;
  background: linear-gradient(135deg, #fff0a3, var(--amber) 55%, var(--fire));
  box-shadow: 0 16px 38px rgba(236, 59, 22, .3);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .06);
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
}

.hero-stats article,
.feature-card,
.package-card,
.class-grid article,
.transfer-cards article,
.hero-card,
.guide-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  color: var(--gold);
  font-size: 26px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  min-height: 520px;
  padding: 34px;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 45% 18%, rgba(255, 215, 122, .42), transparent 11rem),
    radial-gradient(circle at 56% 45%, rgba(236, 59, 22, .36), transparent 15rem),
    linear-gradient(160deg, rgba(19, 23, 31, .95), rgba(23, 8, 5, .95));
}

.hero-card::after {
  content: "龍";
  position: absolute;
  right: -18px;
  bottom: -80px;
  z-index: -1;
  color: rgba(255, 215, 122, .08);
  font-size: 280px;
  font-weight: 900;
  line-height: 1;
}

.hero-card p {
  color: var(--muted);
  letter-spacing: .2em;
}

.hero-card h2 {
  max-width: 360px;
  font-size: 44px;
  line-height: 1.1;
}

.hero-card ul,
.guide-panel ol {
  padding-left: 20px;
  color: #ebdac4;
  line-height: 1.9;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  right: 80px;
  top: 90px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, #ffe48c, #f04b16 60%, transparent 62%);
  box-shadow: 0 0 70px rgba(236, 59, 22, .6);
}

.orb-two {
  right: 48px;
  top: 170px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 215, 122, .22);
  background: radial-gradient(circle, rgba(255, 215, 122, .08), transparent 68%);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 78px 24px;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(34px, 5vw, 58px);
}

.section-heading span {
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.package-card,
.class-grid article,
.transfer-cards article {
  border-radius: 26px;
  padding: 24px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .24em;
}

.feature-card h3,
.package-card h3,
.class-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.feature-card p,
.package-card p,
.class-grid p {
  color: #d6c4ad;
  line-height: 1.75;
}

.package-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.package-card {
  min-height: 230px;
  background: var(--panel);
}

.package-card.hot {
  transform: translateY(-14px);
  border-color: rgba(255, 215, 122, .55);
  background: linear-gradient(160deg, rgba(255, 215, 122, .18), rgba(236, 59, 22, .14));
}

.package-card strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 15px;
}

.class-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.class-grid article {
  min-height: 260px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    radial-gradient(circle at 80% 0%, rgba(236, 59, 22, .18), transparent 10rem);
}

.class-grid b {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 215, 122, .36);
  border-radius: 20px;
  color: var(--gold);
  font-size: 22px;
}

.guide-panel {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  padding: 34px;
  border-radius: 34px;
  background: var(--panel-strong);
}

.guide-panel li + li {
  margin-top: 12px;
}

.transfer-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transfer-cards strong,
.transfer-cards span {
  display: block;
}

.transfer-cards strong {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 28px;
}

.transfer-cards span {
  color: var(--muted);
}

.floating-panel {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.floating-panel a,
.floating-panel button {
  width: 58px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font: inherit;
  background: rgba(10, 12, 16, .78);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.floating-panel button[aria-pressed="true"] {
  color: #210600;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 70px;
  color: #8f806d;
  text-align: center;
}

.footer p {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
  }

  .hero-card {
    min-height: 360px;
  }

  .feature-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-grid,
  .guide-panel,
  .transfer-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 11px;
  }

  .topbar-cta {
    margin-left: auto;
  }

  .nav a {
    padding: 8px 12px;
    font-size: 13px;
    writing-mode: horizontal-tb;
    white-space: nowrap;
  }

  .nav {
    flex-basis: 100%;
    order: 5;
    margin-top: 2px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 74px);
    letter-spacing: .02em;
  }

  .hero-actions,
  .hero-stats,
  .feature-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card.hot {
    transform: none;
  }

  .floating-panel {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12px;
    grid-template-columns: repeat(3, 1fr);
    transform: translateX(-50%);
  }

  .floating-panel a,
  .floating-panel button {
    width: 54px;
    min-height: 50px;
  }
}
