/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 78% -160px, rgba(229, 57, 53, 0.1), transparent 60%),
    var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
}

button {
  font-family: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ========== Design Tokens ========== */
:root {
  --red: #E53935;
  --red-dark: #B71C1C;
  --night: #0D0D0D;
  --carbon: #1A1A1A;
  --steel: #242424;
  --gold: #C9A961;
  --gold-bright: #FFD54F;
  --white: #FFFFFF;
  --mist: #B0BEC5;
  --cyan: #00E5FF;
  --bg: var(--night);
  --surface: var(--carbon);
  --surface-raised: var(--steel);
  --text-main: var(--white);
  --text-sub: var(--mist);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-gold: rgba(201, 169, 97, 0.35);
  --font-display: "Archivo Black", "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --topbar-h: 38px;
  --header-h: 118px;
}

/* ========== Utilities ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.gold-text {
  color: var(--gold-bright);
}

.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.container {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
}

/* ========== Skip Link ========== */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold-bright);
  color: var(--night);
  font-weight: 800;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

#main-content:focus {
  outline: none;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.25s ease;
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--red), var(--gold-bright));
  pointer-events: none;
  transition: width 0.06s linear;
}

.site-header__topbar {
  overflow: hidden;
  max-height: var(--topbar-h);
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 62%, #7f1010 100%);
  color: #fff;
  transition: max-height 0.28s ease, opacity 0.28s ease;
}

.site-header[data-scrolled] .site-header__topbar {
  max-height: 0;
  opacity: 0;
}

.site-header__topbar-inner {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-header__tagline::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.site-header__topbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-header__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}

.site-header__quicklinks {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__quicklink {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-header__quicklink:hover {
  border-bottom-color: var(--gold-bright);
  color: var(--gold-bright);
}

.site-header__mainbar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.site-header__mainbar-inner {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-brand__mark {
  display: inline-block;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  transform: skewX(-8deg);
  box-shadow: 3px 0 0 var(--gold);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-brand__name::first-letter {
  color: var(--red);
}

.site-brand__sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--carbon);
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--hairline-gold);
  background: var(--steel);
}

.nav-toggle__box {
  position: relative;
  width: 18px;
  height: 14px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 6px;
}

.nav-toggle__bar:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Desktop Nav */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  transition: color 0.18s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav__link:hover {
  color: #fff;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold-bright);
}

.site-nav__link[aria-current="page"]::after {
  background: var(--gold-bright);
  transform: scaleX(1);
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--night) 0%, #151515 100%);
  border-top: 3px solid var(--red);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.site-footer__main {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.site-brand--footer .site-brand__mark {
  font-size: 14px;
  padding: 6px 10px;
}

.site-brand--footer .site-brand__name {
  font-size: 20px;
}

.site-brand--footer .site-brand__sub {
  font-size: 9px;
}

.site-footer__desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 340px;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
}

.site-footer__list {
  display: grid;
  gap: 10px;
}

.site-footer__list li {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__list a {
  position: relative;
  display: inline-block;
  color: var(--text-sub);
  font-size: 14px;
  padding: 2px 0;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.site-footer__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.18s ease;
}

.site-footer__list a:hover {
  color: #fff;
  padding-left: 16px;
}

.site-footer__list a:hover::before {
  width: 10px;
}

.site-footer__list a[aria-current="page"] {
  color: var(--gold-bright);
}

.site-footer__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 14px 0 0;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.site-footer__bottom {
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__bottom-inner {
  width: min(1280px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__copyright,
.site-footer__icp {
  margin: 0;
}

/* ========== Section & Layout ========== */
.section {
  padding-block: clamp(48px, 7vw, 84px);
}

.section--tight {
  padding-block: clamp(32px, 5vw, 56px);
}

.section__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

.section__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

.section__kicker--gold {
  color: var(--gold);
}

.section__kicker--gold::before {
  background: var(--gold);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  color: #fff;
  margin-top: 10px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section__lead {
  color: var(--text-sub);
  font-size: 16px;
  max-width: 720px;
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ========== Cards ========== */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--carbon);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--red);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.card--gold {
  border-top-color: var(--gold);
}

.card--cyan {
  border-top-color: var(--cyan);
}

.card__title {
  font-size: 18px;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0 0;
}

/* ========== Data Panel ========== */
.data-panel {
  position: relative;
  background: linear-gradient(145deg, var(--steel), var(--carbon));
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
}

.data-panel::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  border-top: 12px solid var(--red);
  border-left: 12px solid transparent;
}

.data-panel__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.data-panel__value {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
}

.badge--gold {
  color: var(--gold-bright);
  border-color: rgba(201, 169, 97, 0.4);
}

.badge--red {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.badge--cyan {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  color: #fff;
  background: transparent;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 78%, rgba(255, 255, 255, 0.22) 78% 80%, transparent 80%);
  pointer-events: none;
}

.btn--primary:hover {
  background: linear-gradient(140deg, #e60000, var(--red-dark));
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.btn--ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn--ghost:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold-bright);
  transform: translateX(2px);
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  padding: 20px 0;
}

.breadcrumbs a {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.18s ease;
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

.breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
}

/* ========== Prose ========== */
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: #c7d0d8;
  max-width: 760px;
}

.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  font-family: var(--font-display);
  margin: 1.6em 0 0.5em;
}

.prose h2 {
  font-size: 26px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

.prose h3 {
  font-size: 20px;
}

.prose p {
  margin: 1em 0;
}

.prose a {
  color: var(--cyan);
}

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.4em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin: 0.4em 0;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 97, 0.06);
  color: var(--mist);
}

.prose strong {
  color: var(--gold-bright);
}

/* ========== Table ========== */
.table-wrap {
  overflow-x: auto;
  background: var(--carbon);
  border: 1px solid var(--hairline);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.table-wrap th {
  background: var(--steel);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td {
  color: var(--text-sub);
}

/* ========== Image Frame ========== */
.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--carbon), var(--night));
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold);
  background: rgba(13, 13, 13, 0.85);
  padding: 5px 10px;
  border-left: 2px solid var(--red);
  text-transform: uppercase;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--hero {
  aspect-ratio: 21 / 9;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

/* ========== TOC / Catalog Index ========== */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: var(--carbon);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
  padding: 18px 20px;
}

.toc__title {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 12px;
  color: var(--text-sub);
  font-size: 14px;
  border-left: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.toc a:hover {
  color: #fff;
  border-left-color: var(--gold);
}

.toc a[aria-current="true"] {
  color: var(--gold-bright);
  border-left-color: var(--red);
  background: rgba(229, 57, 53, 0.08);
}

/* ========== Responsive Header / Footer ========== */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    background: #111;
    border-top: 2px solid var(--red);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.5);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .site-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--gold-bright);
    border-left: 3px solid var(--red);
    padding-left: 12px;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-header__live {
    display: none;
  }

  .site-header__quicklinks {
    gap: 10px;
  }

  .site-header__quicklink {
    font-size: 11px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header__tagline {
    display: none;
  }

  .site-header__topbar-inner {
    justify-content: flex-end;
  }

  .site-brand__mark {
    font-size: 14px;
    padding: 6px 10px;
  }

  .site-brand__name {
    font-size: 20px;
  }

  .site-brand__sub {
    font-size: 9px;
  }

  .nav-toggle__label {
    display: none;
  }

  .site-header__mainbar-inner {
    min-height: 68px;
  }

  .data-panel__value {
    font-size: 26px;
  }
}
