:root {
  --bg-cream: #FDF6E3;
  --ink: #2E1E0F;
  --orange: #E84A2F;
  --blue: #1E3A5F;
  --yellow: #F2B705;
  --green: #4A9D5B;
  --line: #5A4A3A;
  --soft-orange: #FFE0D6;
  --white: #FFFFFF;
  --radius: 8px;
  --site-width: 1180px;
  --shadow: 0 6px 24px rgba(46, 30, 15, 0.08);
  --font-head: 'Arial Narrow', 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Courier New', 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.7;
  color: var(--ink);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5em 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: -9999px;
  z-index: 1000;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--bg-cream);
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: relative;
  background: var(--bg-cream);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 22%, var(--yellow) 22%, var(--yellow) 52%, var(--blue) 52%, var(--blue) 100%);
  opacity: 0.75;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brand-name {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}

.brand-m6 {
  color: var(--orange);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--line);
}

.masthead-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft-orange);
  border: 1px solid rgba(232, 74, 47, 0.25);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: status-pulse 2s ease infinite;
}

.status-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 12px 18px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--line);
  border-bottom: 3px solid transparent;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -3px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

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

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

.site-footer {
  background-color: var(--blue);
  color: rgba(253, 246, 227, 0.85);
}

.footer-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bg-cream);
}

.footer-brand-m6 {
  color: var(--orange);
}

.footer-tagline {
  margin-top: 8px;
  color: rgba(253, 246, 227, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-link-title {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(253, 246, 227, 0.75);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-divider {
  border-top: 1px solid rgba(253, 246, 227, 0.15);
  margin: 32px 0 24px;
}

.footer-meta {
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-icp {
  font-weight: 600;
  color: var(--bg-cream);
  margin-bottom: 8px;
}

.footer-contact,
.footer-address {
  color: rgba(253, 246, 227, 0.65);
  margin-bottom: 4px;
}

.footer-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(253, 246, 227, 0.1);
  color: rgba(253, 246, 227, 0.5);
  font-size: 0.78rem;
}

.section-panel {
  padding: 64px 0;
}

.panel-dark {
  background: var(--blue);
  color: var(--bg-cream);
}

.panel-dark h1,
.panel-dark h2,
.panel-dark h3 {
  color: var(--bg-cream);
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.panel-dark .section-kicker {
  color: var(--yellow);
}

.slash-line {
  height: 6px;
  max-width: 196px;
  border-radius: 2px;
  margin: 6px 0 24px;
  background: repeating-linear-gradient(135deg, var(--orange) 0, var(--orange) 4px, transparent 4px, transparent 10px);
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg-cream);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn:active {
  transform: none;
}

.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.btn-solid:hover {
  background: #CC3D22;
  border-color: #CC3D22;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg-cream);
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  background: #152E4C;
  border-color: #152E4C;
}

.panel-dark .btn-outline {
  border-color: var(--bg-cream);
  color: var(--bg-cream);
}

.panel-dark .btn-outline:hover {
  background: var(--bg-cream);
  color: var(--blue);
}

.archive-card {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(90, 74, 58, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.archive-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
}

.card-body {
  padding: 24px;
}

.file-tag {
  display: inline-block;
  padding: 5px 18px;
  margin-left: 8px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 6px 6px 0 0;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--line);
  letter-spacing: 0.06em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(90, 74, 58, 0.14);
}

.data-table th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--line);
}

.data-table td {
  color: var(--ink);
}

.data-table .num {
  font-weight: 600;
  color: var(--blue);
  text-align: right;
}

.tag-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--soft-orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(90, 74, 58, 0.12);
}

.tag-pill--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.tag-pill--green {
  background: var(--green);
  color: #FFFFFF;
}

.tag-pill--blue {
  background: var(--blue);
  color: var(--bg-cream);
}

.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(90, 74, 58, 0.12);
  background: var(--soft-orange);
  overflow: hidden;
}

.image-frame::before {
  content: "赛事影像 · 档案";
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--line);
  text-transform: uppercase;
}

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

.breadcrumb {
  padding: 18px 0 8px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--line);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 10px;
  color: rgba(90, 74, 58, 0.4);
}

.breadcrumb-item a {
  color: var(--line);
}

.breadcrumb-item a:hover {
  color: var(--orange);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.prose {
  max-width: 72ch;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.2em;
}

.prose p {
  margin-bottom: 1em;
}

.prose ul,
.prose ol {
  margin-bottom: 1em;
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  color: var(--line);
  margin: 1em 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 999;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 0 3px 3px 0;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--bg-cream);
  font-size: 1.2rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--orange);
}

[data-reveal] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(18px);
}

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

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

@media (max-width: 768px) {
  .header-inner {
    padding: 14px 16px 0;
  }

  .masthead {
    padding: 4px 0 18px;
  }

  .masthead::after {
    bottom: 4px;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .brand-sub {
    letter-spacing: 0.18em;
  }

  .season-status {
    padding: 4px 10px;
  }

  .status-text {
    font-size: 0.68rem;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow);
    padding: 12px 24px 24px;
  }

  .site-nav[data-open="true"] {
    display: block;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item {
    border-bottom: 1px solid rgba(90, 74, 58, 0.14);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 8px;
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left: 4px solid var(--orange);
    padding-left: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    padding: 40px 20px 24px;
  }
}

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

  .section-panel {
    padding: 48px 0;
  }
}

@media (max-width: 420px) {
  .season-status {
    display: none;
  }
}

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

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