/* =========================================
   AOA体育汇 — 共享样式 /assets/site.css
   ========================================= */

/* ---------- 设计变量 ---------- */
:root {
  --deep-blue: #0A192F;
  --fluorescent-green: #39FF14;
  --orange-red: #FF4500;
  --white: #FFFFFF;
  --light-gray: #E6E6E6;
  --dark-gray: #333333;
  --mid-gray: #666666;
  --navy-black: #02050A;
  --green-tint: #D0FFDB;
  --blue-tint: #B0D4FF;

  --font-headline: Impact, 'Arial Narrow', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', 'Microsoft YaHei', sans-serif;

  --max-w: 1240px;
  --gap-page: 24px;
  --transition: 240ms ease;
  --nav-link-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--light-gray);
  background-color: var(--deep-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

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

input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--fluorescent-green);
  color: var(--navy-black);
}

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

/* ---------- 通用工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap-page);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 4000;
  padding: 10px 20px;
  background: var(--fluorescent-green);
  color: var(--navy-black);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--transition);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 3200;
  background: linear-gradient(90deg, var(--fluorescent-green), var(--orange-red));
  pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--fluorescent-green);
  color: var(--navy-black);
  border-color: var(--fluorescent-green);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-tint);
  border-color: var(--green-tint);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
  outline-offset: 2px;
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--fluorescent-green);
  color: var(--fluorescent-green);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--mid-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumb-link {
  color: var(--light-gray);
  transition: color var(--transition);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--fluorescent-green);
}

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

/* ---------- 页头标题组 ---------- */
.page-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 36px;
}

.page-title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}

.page-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--fluorescent-green);
}

.page-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-gray);
  max-width: 680px;
}

/* ---------- 章节标题行 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.section-index {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--orange-red);
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.section-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: center;
}

/* ---------- 数据卡片 ---------- */
.data-card {
  background: var(--white);
  color: var(--dark-gray);
  padding: 20px 22px;
  border-left: 3px solid var(--fluorescent-green);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.data-index {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange-red);
  margin-bottom: 6px;
}

.data-value {
  display: block;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  color: var(--deep-blue);
}

.data-label {
  display: block;
  font-size: 13px;
  color: var(--mid-gray);
  margin-top: 6px;
}

/* ---------- 小标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid;
  line-height: 1.4;
}

.chip-green {
  background: rgba(57, 255, 20, 0.12);
  color: var(--fluorescent-green);
  border-color: rgba(57, 255, 20, 0.4);
}

.chip-orange {
  background: rgba(255, 69, 0, 0.12);
  color: var(--orange-red);
  border-color: rgba(255, 69, 0, 0.4);
}

/* ---------- 媒体占位容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(57, 255, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.06) 1px, transparent 1px),
    var(--navy-black);
  background-size: 24px 24px, 24px 24px, auto;
}

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

.media-frame[data-caption]::after {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(2, 5, 10, 0.8);
  border-left: 3px solid var(--fluorescent-green);
}

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--navy-black);
}

/* 顶部状态条 */
.header-topbar {
  background: var(--navy-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px var(--gap-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--light-gray);
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluorescent-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
  animation: status-pulse 2.4s ease-in-out infinite;
}

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

.topbar-keyword {
  color: var(--green-tint);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.topbar-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mid-gray);
}

.topbar-notice::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--orange-red);
  display: inline-block;
}

/* 品牌刊头 */
.header-masthead {
  position: relative;
  padding: 32px var(--gap-page) 26px;
  text-align: center;
  background-color: var(--deep-blue);
  overflow: hidden;
}

.header-masthead::before,
.header-masthead::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
}

.header-masthead::before {
  left: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 38%, rgba(57, 255, 20, 0.18) 38%, rgba(57, 255, 20, 0.18) 52%, transparent 52%, transparent 100%);
}

.header-masthead::after {
  right: 0;
  background: linear-gradient(225deg, transparent 0%, transparent 38%, rgba(255, 69, 0, 0.22) 38%, rgba(255, 69, 0, 0.22) 52%, transparent 52%, transparent 100%);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fluorescent-green);
  margin-bottom: 10px;
}

.brand-line {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.brand-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: var(--orange-red);
}

.brand-slogan {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mid-gray);
}

/* 导航栏 */
.header-navbar {
  background: var(--navy-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(2, 5, 10, 0.4);
  position: relative;
  z-index: 100;
}

.nav-list {
  counter-reset: nav-counter;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-item {
  counter-increment: nav-counter;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-link-h);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--light-gray);
  transition: color var(--transition), background var(--transition);
}

.nav-link::before {
  content: "0" counter(nav-counter);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 11px;
  color: var(--orange-red);
  margin-right: 7px;
  letter-spacing: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--fluorescent-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--fluorescent-green);
  background: rgba(57, 255, 20, 0.05);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

/* 移动端菜单按钮（桌面隐藏） */
.nav-toggle {
  display: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--navy-black);
  color: var(--light-gray);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fluorescent-green) 0%, var(--fluorescent-green) 16%, var(--orange-red) 16%, var(--orange-red) 22%, transparent 22%, transparent 62%, var(--fluorescent-green) 62%, var(--fluorescent-green) 100%);
  z-index: 1;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px var(--gap-page) 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-column {
  min-width: 0;
}

.footer-brand {}

.footer-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fluorescent-green);
}

.footer-logo {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: var(--white);
  transition: color var(--transition);
}

.footer-logo:hover,
.footer-logo:focus-visible {
  color: var(--fluorescent-green);
}

.footer-trust {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mid-gray);
  max-width: 320px;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 26px;
  height: 1px;
  background: var(--fluorescent-green);
}

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

.footer-item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mid-gray);
}

.footer-link {
  color: var(--light-gray);
  transition: color var(--transition);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--fluorescent-green);
}

.footer-contact .footer-item {
  font-size: 12px;
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}

.footer-contact .footer-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--fluorescent-green);
}

.footer-bottom {
  background: rgba(2, 5, 10, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gap-page);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--mid-gray);
}

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

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-black);
  border: 1px solid rgba(57, 255, 20, 0.45);
  color: var(--fluorescent-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition), border-color var(--transition);
}

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

.back-top:hover,
.back-top:focus-visible {
  background: var(--fluorescent-green);
  border-color: var(--fluorescent-green);
  color: var(--navy-black);
}

.back-top-icon {
  display: block;
  font-size: 22px;
  line-height: 1;
}

/* ---------- 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

  .footer-trust {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .header-masthead {
    padding: 20px 56px 18px;
  }

  .header-masthead::before,
  .header-masthead::after {
    width: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    z-index: 10;
  }

  .nav-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
  }

  .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: none;
    padding: 6px 0 14px;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    max-width: none;
  }

  .nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item:first-child {
    border-top: none;
  }

  .nav-link {
    height: auto;
    padding: 13px 16px;
    justify-content: flex-start;
    font-size: 15px;
    width: 100%;
  }

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

  .nav-link::before {
    margin-right: 10px;
  }

  .header-navbar[data-open] {
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
  }
}

@media (max-width: 720px) {
  .topbar-keyword {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }
}

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

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

  .footer-main {
    padding: 40px var(--gap-page) 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-title {
    font-size: 22px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .topbar-notice {
    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;
  }

  .status-dot {
    animation: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-top {
    transition: none;
  }
}
