:root {
  --pitch-deep: #0B3D2E;
  --pitch-mid: #14684B;
  --victory-gold: #D3AF4E;
  --gold-light: #EBCB75;
  --night-black: #0A0E12;
  --text-light: #E8F0EA;
  --text-muted: #8BA39B;
  --injury-red: #C25E4C;
  --data-blue: #4A90A6;
  --header-height: 78px;
  --container-width: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: 'Anton', 'Impact', 'Source Han Sans Heavy', sans-serif;
  --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-data: 'DIN Alternate', 'Roboto Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--night-black);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--victory-gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--gold-light);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--victory-gold);
  color: var(--night-black);
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

body.has-progress {
  padding-top: calc(var(--header-height) + 4px);
}

body[data-progress]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--victory-gold), var(--gold-light));
  z-index: 3000;
  transition: width 0.1s linear;
}

body[data-scroll-top]::after {
  content: '';
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  font-family: var(--font-body);
  z-index: 2500;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(211, 175, 78, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.nav-brand-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 900;
  color: var(--victory-gold);
  background: linear-gradient(135deg, var(--victory-gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  text-shadow: 0 0 28px rgba(211, 175, 78, 0.2);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.nav-brand-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--victory-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--victory-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--victory-gold), var(--gold-light));
  color: var(--night-black);
  box-shadow: 0 2px 12px rgba(211, 175, 78, 0.3);
}

.btn-gold:hover {
  color: var(--night-black);
  box-shadow: 0 6px 20px rgba(211, 175, 78, 0.4);
}

.btn-outline {
  border: 1.5px solid rgba(211, 175, 78, 0.6);
  color: var(--victory-gold);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(211, 175, 78, 0.1);
}

.btn-narrow {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 1200;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--victory-gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--victory-gold);
}

.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(-7px) rotate(-45deg);
  background: var(--victory-gold);
}

.nav-actions-mobile {
  display: none;
}

/* ===== Main transitions ===== */
#main-content {
  min-height: 60vh;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: 6rem;
  background-color: var(--night-black);
  background-image:
    linear-gradient(rgba(11, 61, 46, 0.35), rgba(10, 14, 18, 0.95)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(211, 175, 78, 0.02) 12px 13px);
  border-top: 1px solid rgba(211, 175, 78, 0.3);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(20, 104, 75, 0.35), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1.4fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
}

.footer-logo-mark {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--victory-gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 28rem;
}

.footer-trust {
  color: var(--text-muted);
  font-size: 0.78rem;
  opacity: 0.8;
  max-width: 26rem;
  border-left: 2px solid var(--victory-gold);
  padding-left: 0.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--victory-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(211, 175, 78, 0.2);
  padding-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-links li {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-contact .footer-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.45);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(211, 175, 78, 0.15);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 0 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--victory-gold);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb .breadcrumb-current {
  color: var(--text-light);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Common layout blocks ===== */
.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--victory-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 48rem;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--pitch-mid);
  border: 1px solid rgba(232, 240, 234, 0.08);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(211, 175, 78, 0.4);
}

.card-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.card-glass:hover {
  border-color: rgba(211, 175, 78, 0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(211, 175, 78, 0.15);
  color: var(--victory-gold);
  border-left: 3px solid var(--victory-gold);
  border-radius: 2px;
  gap: 0.3rem;
}

.tag-danger {
  background: rgba(194, 94, 76, 0.15);
  color: var(--injury-red);
  border-left-color: var(--injury-red);
}

.tag-data {
  background: rgba(74, 144, 166, 0.15);
  color: var(--data-blue);
  border-left-color: var(--data-blue);
}

/* ===== Data components ===== */
.stat-card {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.9), rgba(20, 104, 75, 0.6));
  border: 1px solid rgba(211, 175, 78, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(211, 175, 78, 0.2), transparent 70%);
}

.stat-value {
  font-family: var(--font-data);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* ===== Page hero variants ===== */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  background: var(--pitch-deep);
  background-image:
    linear-gradient(110deg, rgba(10, 14, 18, 0.85) 10%, rgba(11, 61, 46, 0.85) 60%, rgba(20, 104, 75, 0.7));
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -8%;
  top: 10%;
  width: 55%;
  height: 120%;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(211, 175, 78, 0.06) 18px 20px);
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
}

/* ===== Reveal animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Image frames ===== */
.img-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pitch-mid);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(211, 175, 78, 0.2);
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.3), rgba(10, 14, 18, 0.6));
  z-index: 1;
}

.img-frame-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-wide {
  aspect-ratio: 16 / 9;
}

.img-frame-square {
  aspect-ratio: 1 / 1;
}

/* ===== Back to top ===== */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--victory-gold);
  color: var(--night-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  .nav-container {
    width: min(100% - 1.5rem, var(--container-width));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-contact {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 360px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: calc(var(--header-height) + 1.5rem) 2rem 2rem;
    background: rgba(10, 14, 18, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    z-index: 1100;
    border-left: 1px solid rgba(211, 175, 78, 0.2);
  }

  .nav-links[data-open] {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0.2rem;
    width: 100%;
  }

  .nav-link::after {
    left: 0;
    right: 100%;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    right: 0;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 240, 234, 0.12);
  }

  .nav-actions-mobile .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-contact {
    grid-column: span 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 62px;
  }

  .nav-brand-text small {
    display: none;
  }

  .nav-brand-logo {
    font-size: 1.6rem;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 2.5rem);
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-top {
    transition: none;
  }
}
