:root {
  --deep-space-blue: #0A192F;
  --cream: #FFF9EF;
  --dark-brown: #1A1512;
  --passion-red: #E63946;
  --gold: #D4AF37;
  --blue-mist: #4A6491;
  --sky-blue: #A3D3FF;
  --gray-blue: #506680;
  --orange-red: #FF6B35;
  --off-white: #F8F8F4;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-width: 288px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(10, 25, 47, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin-left: var(--header-width);
  background: var(--cream);
  color: var(--dark-brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 25, 47, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body[data-nav-open]::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body[data-nav-open] {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark-brown);
}

a {
  color: var(--passion-red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-red);
}

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

button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(163, 211, 255, 0.35);
}

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

#main-content {
  scroll-margin-top: 1.5rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  background: var(--passion-red);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-350%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--header-width);
  width: 0;
  height: 4px;
  z-index: 200;
  background: linear-gradient(90deg, var(--passion-red), var(--gold));
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.45);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  z-index: 150;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.14), transparent 44%),
    radial-gradient(ellipse at 100% 100%, rgba(230, 57, 70, 0.18), transparent 42%),
    var(--deep-space-blue);
  box-shadow: 1px 0 0 rgba(255, 249, 239, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--passion-red), var(--gold));
  opacity: 0.8;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--passion-red), var(--gold));
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.2rem 1.2rem;
  gap: 1rem;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 249, 239, 0.12);
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--passion-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
  filter: drop-shadow(6px 6px 0 rgba(212, 175, 55, 0.35));
  transition: transform 0.2s ease;
}

.brand-mark--sm {
  width: 44px;
  height: 44px;
  font-size: 0.75rem;
  filter: drop-shadow(4px 4px 0 rgba(212, 175, 55, 0.3));
}

.brand:hover .brand-mark {
  transform: rotate(-4deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-copy small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  counter-reset: navCounter;
  flex: 1 1 auto;
  align-content: start;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: rgba(255, 249, 239, 0.76);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link::before {
  counter-increment: navCounter;
  content: "0" counter(navCounter);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-mist);
}

.nav-link:hover {
  background: rgba(163, 211, 255, 0.08);
  color: #fff;
  border-left-color: var(--gold);
}

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.22), rgba(10, 25, 47, 0));
  color: #fff;
  border-left-color: var(--passion-red);
}

.nav-link[aria-current="page"]::before {
  color: var(--passion-red);
}

.live-board {
  flex-shrink: 0;
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.45rem 0.6rem;
  background: rgba(255, 249, 239, 0.06);
  border: 1px solid rgba(255, 249, 239, 0.14);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
}

.live-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--passion-red);
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--passion-red);
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.live-game {
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.live-game strong {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin: 0 0.1rem;
  font-variant-numeric: tabular-nums;
}

.live-minute {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange-red);
  font-variant-numeric: tabular-nums;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sky-blue);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 160;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 249, 239, 0.08);
  border: 1px solid rgba(255, 249, 239, 0.25);
  color: #fff;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--deep-space-blue);
  color: rgba(255, 249, 239, 0.76);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.18), transparent 70%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--passion-red), var(--gold) 60%, transparent);
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

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

.footer-brand {
  max-width: 34rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.footer-brand-link:hover {
  color: inherit;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-copy strong {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.footer-brand-copy small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.footer-trust {
  margin-top: 0.75rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

.footer-contact,
.footer-links {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-title {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  font-weight: 700;
}

.contact-list,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list li,
.footer-links li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-list a,
.footer-links a {
  color: rgba(255, 249, 239, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover,
.footer-links a:hover {
  color: var(--sky-blue);
  border-bottom-color: var(--sky-blue);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 249, 239, 0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 249, 239, 0.55);
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  max-width: 520px;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--passion-red);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  transform: translateY(-4px);
  background: #c92532;
}

.to-top[hidden] {
  display: none;
}

.container {
  width: min(100% - clamp(1.5rem, 5vw, 4rem), 1180px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark-brown);
  margin: 0;
}

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--passion-red);
}

.index-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--gray-blue);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--blue-mist);
}

.breadcrumbs a {
  color: var(--passion-red);
  text-decoration: none;
}

.breadcrumbs [aria-current="page"] {
  color: var(--gray-blue);
}

.panel-stack {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.panel {
  background: var(--off-white);
  border: 1px solid rgba(74, 100, 145, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  background: var(--off-white);
  border: 1px solid rgba(74, 100, 145, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(10, 25, 47, 0.12);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.split-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--deep-space-blue);
  border-radius: var(--radius-sm);
  color: var(--sky-blue);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 249, 239, 0.08) 0, rgba(255, 249, 239, 0.08) 1px, transparent 1px, transparent 12px),
    radial-gradient(circle at 70% 20%, rgba(230, 57, 70, 0.3), transparent 42%);
}

.media-frame .img-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--passion-red);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(230, 57, 70, 0.7);
}

.btn-primary:hover {
  background: #c92532;
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--deep-space-blue);
  border-color: var(--blue-mist);
}

.btn-ghost:hover {
  border-color: var(--passion-red);
  color: var(--passion-red);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(74, 100, 145, 0.12);
  color: var(--blue-mist);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--blue-mist);
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--deep-space-blue);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover,
.chip[aria-pressed="true"] {
  background: var(--deep-space-blue);
  border-color: var(--deep-space-blue);
  color: var(--cream);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  background: var(--passion-red);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.data-highlight {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
}

.rule {
  border: 0;
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, var(--passion-red), var(--blue-mist) 60%, transparent);
}

@media (min-width: 680px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .split-wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 900px) {
  body {
    margin-left: 0;
  }

  .scroll-progress {
    left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.35);
  }

  .site-header::before {
    display: none;
  }

  .header-shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
    border-bottom: 0;
    padding: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 140;
    width: min(84vw, 360px);
    height: 100vh;
    padding: 6rem 1.75rem 1.75rem;
    background: var(--deep-space-blue);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

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

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    display: none;
  }

  .to-top {
    right: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
  }
}

@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;
  }
}
