/* ============ 变量与重置 ============ */
:root {
  --sf-green: #0B3D2E;
  --sf-green-light: #1C6151;
  --sf-gold: #D4A013;
  --sf-gold-light: #F0D47A;
  --sf-red: #C0392B;
  --sf-ice: #9CD6E4;
  --sf-navy: #1F3A5F;
  --sf-cream: #F5F1E8;
  --sf-ink: #2D2D2D;
  --sf-mist: #E5E5E5;
  --sf-shadow: 6px 6px 0 rgba(11, 61, 46, 0.16);
  --sf-shadow-lg: 10px 10px 0 rgba(11, 61, 46, 0.2);
  --sf-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --sf-mono: "JetBrains Mono", "Roboto Mono", "SF Mono", "Consolas", "Courier New", monospace;
  --sf-border: 2px solid var(--sf-green);
}

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

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

body {
  margin: 0;
  font-family: var(--sf-font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--sf-ink);
  background-color: var(--sf-cream);
  background-image:
    linear-gradient(to right, rgba(11, 61, 46, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 61, 46, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

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

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

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

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

input,
textarea,
select {
  font: inherit;
}

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

::selection {
  background: var(--sf-gold);
  color: var(--sf-green);
}

/* ============ 基础排版 ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sf-font);
  font-weight: 900;
  line-height: 1.25;
  color: var(--sf-green);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  margin-top: 0;
}

time,
.mono-num,
.data-num,
.stat-num,
.match-score,
.footer-meta,
.header-coords,
.timeline-label,
.tag {
  font-family: var(--sf-mono);
}

#main-content {
  display: block;
  min-height: 60vh;
  scroll-margin-top: 6rem;
  padding-bottom: 4rem;
}

/* ============ 布局工具 ============ */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: 4rem 5rem;
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-index {
  font-family: var(--sf-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sf-gold);
  letter-spacing: 0.2em;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--sf-green);
  margin: 0;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--sf-mist);
  margin-left: 0.8rem;
}

.section-note {
  writing-mode: vertical-rl;
  font-family: var(--sf-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--sf-navy);
  opacity: 0.5;
  position: absolute;
  right: 0;
  top: 0.6rem;
}

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

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.page-header-block {
  background: var(--sf-green);
  color: var(--sf-cream);
  padding: 3rem 0 2.2rem;
  border-bottom: 4px solid var(--sf-gold);
  margin-bottom: 2rem;
}

.page-header-block .page-title {
  color: var(--sf-cream);
}

.page-header-block .page-lead {
  color: rgba(245, 241, 232, 0.85);
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--sf-green);
  margin-bottom: 0.5rem;
}

.page-lead {
  font-size: 1.02rem;
  max-width: 42em;
  color: var(--sf-ink);
  opacity: 0.85;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sf-green);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--sf-mist);
  margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--sf-gold);
}

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

.hero-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: min(82vh, 760px);
  border-bottom: 4px solid var(--sf-green);
  box-shadow: inset 0 0 0 2px var(--sf-gold), inset 0 0 0 4px var(--sf-green);
}

.hero-panel-primary {
  background: var(--sf-green);
  color: var(--sf-cream);
  padding: 2.5rem;
  display: grid;
  align-content: center;
}

.hero-panel-accent {
  background: var(--sf-gold);
  color: var(--sf-ink);
  padding: 2.5rem;
  display: grid;
  align-content: end;
}

.title-skew {
  display: inline-block;
  transform: skewX(-6deg);
}

/* ============ 头部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sf-green);
  color: var(--sf-cream);
  border-bottom: 1px solid rgba(212, 160, 19, 0.7);
  box-shadow: 0 2px 0 var(--sf-green), inset 0 -3px 0 rgba(212, 160, 19, 0.5);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 500;
  background: var(--sf-gold);
  color: var(--sf-ink);
  font-weight: 900;
  padding: 0.65rem 1.2rem;
  border: 2px solid var(--sf-ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition: top 0.25s;
}

.skip-link:focus-visible {
  top: 1rem;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 0%;
  background: var(--sf-gold);
  z-index: 50;
}

.header-top {
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  font-family: var(--sf-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 0.3rem 0;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-coords {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--sf-mono);
  color: var(--sf-gold-light);
}

.coord-item {
  opacity: 0.75;
  letter-spacing: 0.18em;
}

.header-status-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sf-mono);
  color: var(--sf-ice);
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-gold-light);
  box-shadow: 0 0 0 0 rgba(240, 212, 122, 0.6);
  animation: sf-pulse 2s infinite;
}

@keyframes sf-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 212, 122, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(240, 212, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 212, 122, 0);
  }
}

.clock-sep {
  opacity: 0.4;
  padding-inline: 0.2rem;
}

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 58px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  background: var(--sf-gold);
  color: var(--sf-green);
  display: grid;
  place-items: center;
  border: 2px solid var(--sf-cream);
  box-shadow: 3px 3px 0 rgba(245, 241, 232, 0.3);
}

.brand-badge-inner {
  display: inline-block;
  border: 2px solid var(--sf-green);
  font-family: var(--sf-mono);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  transform: skewX(-6deg);
}

.brand-text {
  display: grid;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.brand-slogan {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  opacity: 0.75;
  margin-top: 0.1rem;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 0.15rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.85);
  border: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--sf-gold-light);
  border-color: rgba(212, 160, 19, 0.55);
}

.nav-link[aria-current="page"] {
  color: var(--sf-gold-light);
  border-color: var(--sf-gold);
  background: rgba(212, 160, 19, 0.12);
}

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

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sf-green-light);
  border: 1px solid rgba(245, 241, 232, 0.35);
  padding: 0.3rem 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-pill:focus-within {
  border-color: var(--sf-gold);
  box-shadow: 0 0 0 2px rgba(212, 160, 19, 0.35);
}

.search-icon {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  right: -5px;
  bottom: -2px;
}

.search-input {
  border: none;
  background: transparent;
  color: var(--sf-cream);
  width: 7.5rem;
  font-size: 0.75rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: rgba(245, 241, 232, 0.5);
}

.fav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(245, 241, 232, 0.35);
  padding: 0.3rem 0.65rem;
  background: var(--sf-green-light);
  color: var(--sf-cream);
  font-family: var(--sf-mono);
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color 0.2s, background 0.2s;
}

.fav-button:hover {
  border-color: var(--sf-gold);
}

.fav-button.is-active {
  border-color: var(--sf-gold);
  background: rgba(212, 160, 19, 0.18);
}

.fav-count {
  font-family: var(--sf-mono);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  padding: 0.35rem 0.4rem;
  border: 1px solid rgba(245, 241, 232, 0.4);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

.top-button {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  background: var(--sf-gold);
  color: var(--sf-green);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(11, 61, 46, 0.3);
  border: 2px solid var(--sf-ink);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}

.top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--sf-green);
  color: var(--sf-cream);
  border-top: 4px solid var(--sf-gold);
  box-shadow: inset 0 -3px 0 var(--sf-navy);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--sf-gold-light);
  margin: 0 0 0.25rem;
}

.footer-slogan {
  font-family: var(--sf-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sf-ice);
  margin-bottom: 1rem;
}

.footer-trust {
  max-width: 32em;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.8);
  border-left: 3px solid var(--sf-gold);
  padding-left: 0.9rem;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--sf-gold-light);
  margin-bottom: 0.7rem;
}

.footer-list {
  display: grid;
  gap: 0.4rem;
}

.footer-list a {
  font-size: 0.84rem;
  color: rgba(245, 241, 232, 0.8);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-list a:hover {
  color: var(--sf-gold-light);
  padding-left: 0.3rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(245, 241, 232, 0.8);
}

.footer-address a {
  color: var(--sf-ice);
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--sf-gold-light);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  padding: 1rem 0;
  font-size: 0.75rem;
  font-family: var(--sf-mono);
  color: rgba(245, 241, 232, 0.6);
}

.footer-copy,
.footer-icp,
.footer-coord {
  margin: 0;
}

.footer-icp a:hover {
  color: var(--sf-gold-light);
}

/* ============ 按钮与标签 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  border: 2px solid var(--sf-green);
  background: transparent;
  color: var(--sf-green);
  box-shadow: 3px 3px 0 var(--sf-green);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sf-green);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--sf-green);
}

.btn-gold {
  background: var(--sf-gold);
  color: var(--sf-green);
  border-color: var(--sf-ink);
  box-shadow: 4px 4px 0 var(--sf-ink);
}

.btn-gold:hover {
  background: var(--sf-gold-light);
  box-shadow: 2px 2px 0 var(--sf-ink);
}

.btn-ghost {
  border-color: var(--sf-mist);
  color: var(--sf-ink);
  box-shadow: 3px 3px 0 var(--sf-mist);
}

.btn-ghost:hover {
  box-shadow: 1px 1px 0 var(--sf-mist);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  line-height: 1.5;
}

.tag-gold {
  color: var(--sf-gold);
  background: rgba(212, 160, 19, 0.1);
  border-color: var(--sf-gold);
}

.tag-red {
  color: var(--sf-red);
  border-color: var(--sf-red);
  background: rgba(192, 57, 43, 0.08);
}

.tag-ice {
  color: var(--sf-navy);
  border-color: var(--sf-ice);
  background: rgba(156, 214, 228, 0.2);
}

.tag-green {
  color: var(--sf-green-light);
  border-color: var(--sf-green-light);
  background: rgba(28, 97, 81, 0.08);
}

/* ============ 卡片与面板 ============ */
.card {
  background: var(--sf-cream);
  border: 2px solid var(--sf-green);
  box-shadow: var(--sf-shadow);
  padding: 1.4rem;
}

.card:hover {
  box-shadow: var(--sf-shadow-lg);
  transform: translate(-2px, -2px);
}

.card-gold {
  border-color: var(--sf-gold);
  box-shadow: 6px 6px 0 rgba(212, 160, 19, 0.3);
}

.card-gold:hover {
  box-shadow: 9px 9px 0 rgba(212, 160, 19, 0.32);
}

.card-navy {
  background: var(--sf-navy);
  color: var(--sf-cream);
  border-color: var(--sf-navy);
  box-shadow: 6px 6px 0 rgba(31, 58, 95, 0.3);
}

.card-navy:hover {
  box-shadow: 9px 9px 0 rgba(31, 58, 95, 0.35);
}

.card-green {
  background: var(--sf-green);
  color: var(--sf-cream);
  border-color: var(--sf-gold);
  box-shadow: 6px 6px 0 rgba(11, 61, 46, 0.35);
}

.card-green:hover {
  box-shadow: 9px 9px 0 rgba(11, 61, 46, 0.4);
}

/* ============ 数据与赛事组件 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 2px solid var(--sf-green);
  background: var(--sf-cream);
  padding: 1.2rem;
  box-shadow: var(--sf-shadow);
  display: grid;
  gap: 0.35rem;
}

.stat-num {
  font-family: var(--sf-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--sf-green);
  line-height: 1.1;
}

.stat-num.gold {
  color: var(--sf-gold);
  font-weight: 900;
}

.stat-num.red {
  color: var(--sf-red);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--sf-ink);
  opacity: 0.7;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--sf-cream);
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--sf-mist);
  white-space: nowrap;
}

.data-table thead th {
  background: var(--sf-green);
  color: var(--sf-cream);
  border-bottom: 3px solid var(--sf-gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: rgba(156, 214, 228, 0.18);
}

.data-num {
  font-family: var(--sf-mono);
  font-weight: 700;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sf-mist);
  background: var(--sf-cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.match-row:hover {
  border-color: var(--sf-gold);
  box-shadow: 3px 3px 0 rgba(212, 160, 19, 0.2);
}

.match-team {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.match-score {
  font-family: var(--sf-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sf-green);
}

.score-sep {
  margin: 0 0.2rem;
  color: var(--sf-mist);
}

.team-rank {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-family: var(--sf-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--sf-green);
  color: var(--sf-cream);
  margin-right: 0.4rem;
}

.team-rank.top {
  background: var(--sf-gold);
  color: var(--sf-ink);
}

/* ============ 内容组件 ============ */
.timeline {
  display: grid;
  gap: 1.4rem;
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  width: 2px;
  background: var(--sf-green);
}

.timeline-item {
  position: relative;
  padding: 1.2rem;
  background: var(--sf-cream);
  border: 2px solid var(--sf-green);
  box-shadow: var(--sf-shadow);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.4rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--sf-gold);
  border: 2px solid var(--sf-green);
  transform: rotate(45deg);
}

.timeline-label {
  font-family: var(--sf-mono);
  font-size: 0.78rem;
  color: var(--sf-gold);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  border: 2px solid var(--sf-green);
  background: var(--sf-cream);
}

.accordion-item[data-open="true"] {
  box-shadow: var(--sf-shadow);
}

.accordion-header {
  width: 100%;
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--sf-green);
}

.accordion-panel {
  padding: 0 1.2rem 1.2rem;
  display: none;
}

.accordion-item[data-open="true"] .accordion-panel {
  display: block;
}

.toc {
  border: 2px solid var(--sf-green);
  background: var(--sf-cream);
  padding: 1.2rem;
  box-shadow: var(--sf-shadow);
}

.toc-heading {
  margin-bottom: 0.6rem;
  font-weight: 900;
  color: var(--sf-green);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.toc-list {
  display: grid;
  gap: 0.45rem;
}

.toc-link {
  display: block;
  font-size: 0.84rem;
  color: var(--sf-ink);
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: border-color 0.2s, color 0.2s, font-weight 0.2s;
}

.toc-link:hover,
.toc-link.active {
  border-left-color: var(--sf-gold);
  color: var(--sf-green);
  font-weight: 700;
}

/* ============ 媒体框架 ============ */
.media-frame {
  position: relative;
  border: 2px solid var(--sf-green);
  box-shadow: var(--sf-shadow);
  overflow: hidden;
  background: var(--sf-navy);
}

.media-frame::before {
  content: "";
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(156, 214, 228, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 214, 228, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

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

.media-frame-wide::before {
  padding-top: 56.25%;
}

.media-frame-square::before {
  padding-top: 100%;
}

.media-frame-portrait::before {
  padding-top: 133.33%;
}

/* ============ 表单 ============ */
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field-label {
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--sf-green);
}

.input,
.textarea,
.select {
  width: 100%;
  border: 2px solid var(--sf-green-light);
  background: var(--sf-cream);
  color: var(--sf-ink);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 0;
  font-family: var(--sf-font);
  -webkit-appearance: none;
  appearance: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: 3px solid var(--sf-gold);
  outline-offset: 0;
  border-color: var(--sf-green);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  opacity: 0.75;
}

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

@media (min-width: 981px) {
  body::before {
    content: "SHUNFA SPORTS / 顺发竞技";
    position: fixed;
    left: 0.4rem;
    top: 50%;
    translate: 0 -50%;
    writing-mode: vertical-rl;
    font-family: var(--sf-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    color: var(--sf-green);
    opacity: 0.35;
    z-index: 60;
    pointer-events: none;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    margin-left: 0;
    flex-basis: 100%;
    order: 5;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
  }

  .primary-nav[data-open] {
    max-height: 440px;
  }

  .header-main-inner {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.4rem 0;
  }

  .nav-link {
    display: block;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  }

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

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

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

  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .split-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

  .section-note {
    display: none;
  }
}

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

  .search-input {
    width: 4.5rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-badge {
    width: 36px;
    height: 36px;
  }

  .brand-badge-inner {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .fav-button {
    padding: 0.3rem 0.45rem;
  }

  .top-button {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 40px;
    height: 40px;
  }
}

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

  .search-input {
    width: 3.6rem;
  }
}

/* ============ 动效与减动效 ============ */
@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;
  }
}
