:root {
  --green: #2E8B57;
  --green-bright: #3AA86B;
  --bg-deep: #0B1E17;
  --bg-panel: #102A20;
  --orange: #FF6B00;
  --yellow: #E6F74C;
  --text-main: #F5F5F5;
  --text-sub: #A5B8B0;
  --border: #1C3A2E;
  --red: #C62828;
  --indigo: #4B0082;
  --wine: #800020;
  --font-display: Impact, 'PingFang SC Bold', 'Microsoft YaHei UI', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --header-height: 60px;
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 6px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(46, 139, 87, 0.05), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(75, 0, 130, 0.06), transparent 45%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-bright);
  text-decoration: none;
  transition: color var(--transition);
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

h3 {
  font-size: clamp(18px, 2.6vw, 24px);
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: var(--orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius);
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

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

#main-content {
  display: block;
  scroll-margin-top: 96px;
  outline: none;
}

.site-main {
  min-height: 60vh;
  padding: 32px 0 56px;
  display: block;
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--yellow) 50%, var(--orange) 100%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-live-row {
  background: linear-gradient(90deg, #122E22 0%, #0B1E17 100%);
  border-bottom: 1px solid var(--border);
}

.header-live-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}

.live-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.live-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(230, 247, 76, 0.5);
  animation: live-pulse-ring 2s ease-out infinite;
}

@keyframes live-pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.live-label {
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.header-trust {
  margin-left: auto;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.header-main {
  position: relative;
  background: rgba(11, 30, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--green), #1F6B42);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  transition: background 0.3s ease;
  line-height: 1;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-lockup:hover .brand-mark {
  background: linear-gradient(135deg, var(--orange), #C55A00);
}

.brand-lockup:hover .brand-name {
  color: var(--yellow);
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 18px 12px 14px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  line-height: 1.4;
}

.primary-nav a::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-bright);
  letter-spacing: 0.04em;
}

.primary-nav a:hover {
  color: var(--yellow);
  border-bottom-color: var(--green);
}

.primary-nav a:hover::before {
  color: var(--orange);
}

.primary-nav a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--orange);
}

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

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(46, 139, 87, 0.1);
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--green);
  background: rgba(46, 139, 87, 0.2);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: transform 0.25s 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);
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.section-subtitle {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.section--indigo {
  background: linear-gradient(160deg, var(--indigo), #1a0a2e 80%);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.section--wine {
  background: linear-gradient(160deg, var(--wine), #400010 80%);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: #E05E00;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--yellow);
  background: rgba(46, 139, 87, 0.1);
}

.breadcrumb {
  margin: 24px 0;
  font-size: 14px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li + li::before {
  content: '/';
  color: var(--green);
}

.breadcrumb-list a {
  color: var(--text-sub);
}

.breadcrumb-list a:hover {
  color: var(--yellow);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--yellow);
  font-weight: 600;
}

.card {
  background: linear-gradient(160deg, rgba(16, 42, 32, 0.9), rgba(11, 30, 23, 0.65));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.card--accent {
  border-top-width: 3px;
  border-top-color: var(--orange);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.card-title::before {
  content: '';
  width: 5px;
  height: 18px;
  background: var(--orange);
  border-radius: 3px;
  flex-shrink: 0;
}

.card-body {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.75;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.topic-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 42, 32, 0.9), rgba(11, 30, 23, 0.7));
  border: 1px solid var(--border);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.topic-card:hover {
  transform: rotate(-0.5deg) translateY(-2px);
  border-color: var(--green);
}

.topic-card--wide {
  background: linear-gradient(160deg, rgba(75, 0, 130, 0.25), rgba(11, 30, 23, 0.8));
}

.topic-card--accent {
  background: linear-gradient(160deg, rgba(255, 107, 0, 0.2), rgba(11, 30, 23, 0.85));
}

.topic-card--wine {
  background: linear-gradient(160deg, rgba(128, 0, 32, 0.35), rgba(11, 30, 23, 0.85));
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.stat-number--yellow {
  color: var(--yellow);
}

.stat-number--green {
  color: var(--green-bright);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
  background: rgba(46, 139, 87, 0.15);
  color: var(--green-bright);
  border: 1px solid rgba(46, 139, 87, 0.35);
}

.pill--yellow {
  background: rgba(230, 247, 76, 0.12);
  color: var(--yellow);
  border-color: rgba(230, 247, 76, 0.35);
}

.pill--red {
  background: rgba(198, 40, 40, 0.15);
  color: #E57373;
  border-color: rgba(198, 40, 40, 0.4);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag-list a:hover,
.tag-list a[aria-current="true"] {
  border-color: var(--orange);
  color: var(--yellow);
  background: rgba(255, 107, 0, 0.1);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(16, 42, 32, 0.35);
}

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

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

.table-wrap th {
  background: rgba(46, 139, 87, 0.12);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.figure-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(46, 139, 87, 0.06) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, #142F23, #0B1E17);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 0;
}

.figure-block--square {
  aspect-ratio: 1 / 1;
}

.figure-block--portrait {
  aspect-ratio: 3 / 4;
}

.site-footer {
  margin-top: 90px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(46, 139, 87, 0.02) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, #0E241B 0%, #081610 100%);
  border-top: 3px solid var(--green);
}

.site-footer::before {
  content: '球会看台';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 220px);
  font-weight: 900;
  color: rgba(46, 139, 87, 0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: 0.02em;
  z-index: 0;
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding: 56px 0 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
  padding-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.06em;
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  line-height: 1;
}

.footer-trust {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-size: 14px;
  transition: color var(--transition), padding-left 0.2s ease;
}

.footer-nav a::before {
  content: '›';
  color: var(--green);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--yellow);
  padding-left: 6px;
}

.footer-nav a:hover::before {
  color: var(--orange);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-contact-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 9px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.03em;
}

.footer-legal {
  display: inline-flex;
  gap: 16px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

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

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

@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(11, 30, 23, 0.98);
    border-bottom: 2px solid var(--green);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .primary-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 14px 8px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .primary-nav a:last-child {
    border-bottom-color: transparent;
  }

  .primary-nav a[aria-current="page"] {
    border-left-color: var(--orange);
    border-bottom-color: var(--border);
    background: rgba(255, 107, 0, 0.06);
  }
}

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav,
  .primary-nav[data-open] {
    margin-left: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 18px 12px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
  }

  .primary-nav a:last-child {
    border-bottom-color: transparent;
  }

  .primary-nav a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: var(--orange);
    background: transparent;
  }

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

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

  .topic-card--wide {
    grid-column: span 2;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  }

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

  .footer-contact-col {
    grid-column: auto;
  }
}

@media (max-width: 599px) {
  .header-trust {
    display: none;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 479px) {
  .brand-subtitle {
    display: none;
  }
}

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

  html {
    scroll-behavior: auto !important;
  }
}
