/* 九体育CN Site Kit 共享样式 —— /assets/site.css */

/* ---------- 变量 ---------- */
:root {
  --bg-black: #0A0F0D;
  --bg-green: #0D2B1F;
  --bg-card: #1E1E1E;
  --accent: #C6FF00;
  --white: #FFFFFF;
  --gray-green: #A0B0A8;
  --gray: #58686A;
  --orange: #F04E23;
  --mid-green: #166B36;
  --font-display: "Roboto Condensed", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-numeric: "DIN Alternate", "Courier New", ui-monospace, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1240px;
}

/* ---------- Reset 与基础 ---------- */
*,
*::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: 1rem;
  line-height: 1.65;
  color: var(--white);
  background-color: var(--bg-black);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  padding-top: 84px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
}

[id] {
  scroll-margin-top: 110px;
}

#main-content {
  outline: none;
}

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

/* ---------- 容器 ---------- */
.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: var(--container);
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  background: rgba(13, 43, 31, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(198, 255, 0, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(10, 15, 13, 0.96);
  border-color: rgba(198, 255, 0, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-black);
  font-family: var(--font-numeric);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: 0 0 18px rgba(198, 255, 0, 0.4);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-green);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--bg-black);
  background: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--white);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
  height: 14px;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 4rem;
  background: linear-gradient(160deg, var(--bg-black) 0%, var(--bg-green) 55%, var(--bg-black) 100%);
  border-top: 4px solid var(--accent);
  padding: 4rem 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: "9";
  font-family: var(--font-numeric);
  font-weight: 800;
  line-height: 0.7;
  font-size: clamp(9rem, 24vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 255, 0, 0.08);
  position: absolute;
  right: -20px;
  top: -30px;
  pointer-events: none;
  user-select: none;
}

.footer-glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

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

.footer-brand-col .brand {
  margin-bottom: 1.25rem;
}

.footer-slogan {
  color: var(--gray-green);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 32ch;
  margin-bottom: 1rem;
}

.footer-address {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(198, 255, 0, 0.15);
}

.footer-heading a {
  color: inherit;
}

.footer-heading a:hover {
  color: var(--white);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-list a {
  color: var(--white);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.footer-label {
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-muted {
  color: var(--gray-green);
  font-size: 0.85rem;
  word-break: break-all;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-copy {
  color: var(--gray);
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.footer-legal a {
  color: var(--gray-green);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-dot {
  color: var(--gray);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-black);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(198, 255, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

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

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

/* ---------- 区块 ---------- */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2rem 0;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.section-sub {
  color: var(--gray-green);
  font-size: 0.95rem;
  max-width: 48ch;
}

.section-more {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

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

/* ---------- 左右分屏 ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}

.split--even {
  grid-template-columns: 1fr 1fr;
}

/* ---------- 面板 ---------- */
.panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.panel:hover {
  border-color: rgba(198, 255, 0, 0.25);
}

.panel--field {
  background: linear-gradient(160deg, var(--bg-green), var(--bg-card));
}

.panel--score {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--bg-green), var(--bg-card));
}

/* ---------- 框景 ---------- */
.frame {
  position: relative;
  border: 1px solid rgba(198, 255, 0, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: linear-gradient(150deg, rgba(13, 43, 31, 0.6), rgba(10, 15, 13, 0.9));
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
  border-radius: 8px 0 0 0;
}

.frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 8px 0;
}

.frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(198, 255, 0, 0.15);
}

.frame__label {
  font-family: var(--font-numeric);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--bg-black);
}

.btn--primary:hover {
  background: var(--white);
  color: var(--bg-black);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tag--accent {
  background: var(--accent);
  color: var(--bg-black);
}

.tag--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-green);
}

.tag--live {
  background: var(--orange);
  color: var(--white);
}

/* ---------- 数字 ---------- */
.number {
  font-family: var(--font-numeric);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- 统计 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__number {
  font-family: var(--font-numeric);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.stat__number--accent {
  color: var(--accent);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray-green);
  letter-spacing: 0.05em;
}

/* ---------- 比分牌 ---------- */
.scorecard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
}

.scorecard__team {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.scorecard__team:last-child {
  text-align: right;
}

.scorecard__score {
  font-family: var(--font-numeric);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(198, 255, 0, 0.1);
  padding: 0.2rem 1rem;
  border-radius: 12px;
  white-space: nowrap;
}

/* ---------- 直播状态条 ---------- */
@keyframes softPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.scorebar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-numeric);
  font-size: 0.8rem;
  color: var(--gray-green);
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(198, 255, 0, 0.12);
  white-space: nowrap;
}

.scorebar::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(240, 78, 35, 0.6);
  animation: softPulse 1.6s ease-in-out infinite;
  flex: 0 0 auto;
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-frame:hover > img {
  transform: scale(1.04);
}

.media-frame--wide {
  aspect-ratio: 16 / 7;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numeric);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.08);
  background-color: var(--bg-black);
  background-image:
    linear-gradient(45deg, var(--bg-green) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-green) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--bg-green) 75%),
    linear-gradient(-45deg, transparent 75%, var(--bg-green) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}

/* ---------- 内页首屏 ---------- */
.page-hero {
  padding: 3rem 0 3.5rem;
}

.page-hero-tag {
  font-family: var(--font-numeric);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.page-hero-tag::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 2px;
  background: var(--accent);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--gray-green);
  line-height: 1.8;
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-green);
  margin-bottom: 1.5rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta span::before {
  content: "▪";
  color: var(--accent);
  font-size: 0.7rem;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--gray-green);
  transition: color 0.2s ease;
}

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

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

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-green);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--accent);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg-black);
  border-color: var(--accent);
  font-weight: 700;
}

/* ---------- 目录与旁注 ---------- */
.toc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
}

.toc__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

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

.toc__link {
  color: var(--gray-green);
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.toc__link:hover {
  color: var(--accent);
  padding-left: 6px;
}

.aside-note {
  background: linear-gradient(140deg, var(--bg-green), var(--bg-card));
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  margin: 1.5rem 0;
}

.aside-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.aside-note__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.aside-note p {
  color: var(--gray-green);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ---------- 正文 ---------- */
.prose {
  color: var(--gray-green);
  font-size: 1rem;
  line-height: 1.9;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  margin-bottom: 1.5rem;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 分隔线与装饰 ---------- */
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, rgba(198, 255, 0, 0.3), rgba(255, 255, 255, 0.04), transparent);
  margin: 2.5rem 0;
}

.watermark {
  font-family: var(--font-numeric);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.is-hidden {
  display: none !important;
}

/* ---------- 滚动显现 ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.05s;
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split--even {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: rgba(13, 43, 31, 0.98);
    border: 1px solid rgba(198, 255, 0, 0.18);
    border-radius: 20px;
    padding: 0.9rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

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

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

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .frame {
    padding: 1.5rem;
  }

  .scorecard {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .scorecard__team:last-child {
    text-align: center;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 74px;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .header-inner {
    padding: 0.35rem 0.45rem 0.35rem 1rem;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .nav-toggle-text {
    display: none;
  }

  .site-container {
    padding: 0 1rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-top {
    right: 1rem;
    bottom: 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ---------- 无障碍：减弱动效 ---------- */
@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;
  }

  .scorebar::before {
    animation: none;
  }

  .js-enabled [data-reveal],
  .js-enabled [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
