/* ============================================================
   AOA体育 · 共享站点样式  /assets/site.css
   设计语言：赛事指挥室 / 蓝图网格 / 框景导航 / 等宽数字
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #070B10;
  --panel: #0E151D;
  --panel-2: #111A24;
  --line: #1E2A36;
  --ink: #F2F6F8;
  --muted: #8FA3B0;
  --green: #B6FF3C;
  --blue: #27C7FF;
  --orange: #FF8A2A;
  --red: #FF4D5E;
  --green-deep: #12261B;

  --font-display: "Oswald", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", "Times New Roman", serif;

  --shell: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --step-h1: clamp(2.6rem, 5vw, 4.6rem);
  --step-h2: clamp(1.6rem, 2.6vw, 2.3rem);
  --step-h3: 1.15rem;
  --step-label: 0.75rem;

  --dur: 0.18s;
  --header-h: 118px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(30, 42, 54, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 54, 0.42) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--dur) ease;
}
a:hover { color: var(--green); }

button { font: inherit; }

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

#main-content { display: block; scroll-margin-top: 9rem; }

/* ---------- 3. 中文排版与通用文字 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.lede {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 5. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--live {
  color: var(--blue);
  border-color: rgba(39, 199, 255, 0.35);
  background: rgba(39, 199, 255, 0.08);
}

.tag--brand {
  color: var(--green);
  border-color: rgba(182, 255, 60, 0.35);
  background: var(--green-deep);
}

.tag--soon {
  color: var(--orange);
  border-color: rgba(255, 138, 42, 0.35);
  background: rgba(255, 138, 42, 0.08);
}

.tag--warn {
  color: var(--red);
  border-color: rgba(255, 77, 94, 0.35);
  background: rgba(255, 77, 94, 0.08);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) ease, background var(--dur) ease,
              border-color var(--dur) ease, transform var(--dur) ease;
}

.btn:hover {
  color: var(--ink);
  border-color: #33465a;
  background: rgba(242, 246, 248, 0.05);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #08130A;
}
.btn--primary:hover {
  background: #c9ff70;
  border-color: #c9ff70;
  color: #08130A;
}

.btn--ghost {
  border-color: rgba(39, 199, 255, 0.4);
  color: var(--blue);
}
.btn--ghost:hover {
  background: rgba(39, 199, 255, 0.1);
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: rgba(143, 163, 176, 0.5);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }

/* ---------- 8. 数据面板 ---------- */
.data-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

/* ---------- 9. 图片容器（供页面阶段放置占位/图） ---------- */
.figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-placeholder {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: repeating-linear-gradient(
    135deg,
    rgba(30, 42, 54, 0.5) 0 8px,
    transparent 8px 16px
  );
}

.figure-caption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  z-index: 120;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #08130A;
  font-size: 0.85rem;
  font-weight: 700;
  transform: translate(-50%, -220%);
  transition: transform var(--dur) ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  color: #08130A;
}

/* ---------- 11. 页头 · 框架导轨 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-top {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.6vw, 1.5rem);
  min-height: 72px;
  padding-block: 0.7rem;
}

/* 品牌锁 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(182, 255, 60, 0.45);
  border-radius: 14px;
  background: var(--green-deep);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-tag {
  margin-top: 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* 轮次状态胶囊 */
.round-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.9rem 0.4rem 0.72rem;
  border: 1px solid rgba(39, 199, 255, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(39, 199, 255, 0.07);
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.round-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 199, 255, 0.16);
  animation: dot-pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 快捷行动 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  padding: 0.46rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) ease, border-color var(--dur) ease,
              background var(--dur) ease;
}
.quick-link:hover {
  color: var(--ink);
  border-color: #33465a;
  background: rgba(242, 246, 248, 0.04);
}

.quick-link.is-primary {
  background: var(--green);
  border-color: var(--green);
  color: #08130A;
  font-weight: 700;
}
.quick-link.is-primary:hover {
  background: #c9ff70;
  border-color: #c9ff70;
  color: #08130A;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.nav-toggle:hover { border-color: rgba(182, 255, 60, 0.45); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航条 */
.site-nav {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.9rem clamp(0.7rem, 1.4vw, 1.15rem);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.nav-link + .nav-link { border-left: 1px solid var(--line); }
.nav-link:hover {
  color: var(--ink);
  background: rgba(39, 199, 255, 0.06);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 176, 0.55);
  transition: color var(--dur) ease;
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(182, 255, 60, 0.08);
}
.nav-link[aria-current="page"] .nav-index { color: var(--green); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
}

/* 移动面板内的行动组（桌面隐藏） */
.nav-quick { display: none; }

/* 滚动刻度尺 */
.scroll-meter {
  position: relative;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.9;
  pointer-events: none;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.footer-summary {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(182, 255, 60, 0.3);
  border-radius: var(--radius-pill);
  background: var(--green-deep);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.footer-badge .round-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(182, 255, 60, 0.16);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

.footer-title {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list a {
  display: inline-block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color var(--dur) ease, transform var(--dur) ease;
}
.footer-list a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}
.contact-item { display: grid; gap: 0.15rem; }
.contact-item dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

.footer-legal {
  padding-left: 0.6rem;
  border-left: 2px solid var(--green);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-copyright {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) ease, transform var(--dur) ease,
              visibility var(--dur) ease, border-color var(--dur) ease,
              color var(--dur) ease;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  border-color: var(--green);
  color: var(--green);
}
.to-top-mark {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1;
  color: var(--green);
}

/* ---------- 13. 平板 ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 14. 移动导航面板 ---------- */
@media (max-width: 1139px) {
  .header-actions { display: none; }
  .round-status { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    flex-direction: column;
    margin: 0;
    padding: 0.4rem 0 0;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] { display: flex; }

  .nav-link {
    padding: 0.95rem var(--gutter);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
  }
  .nav-link + .nav-link {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .nav-link[aria-current="page"] {
    border-left-color: var(--green);
    background: rgba(182, 255, 60, 0.07);
  }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link:hover { background: rgba(39, 199, 255, 0.07); }

  .nav-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem var(--gutter) 1.2rem;
    border-top: 1px solid var(--line);
  }
}

/* ---------- 15. 手机 ---------- */
@media (max-width: 640px) {
  .header-top {
    min-height: 62px;
    gap: 0.5rem;
    padding-block: 0.55rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.6rem;
  }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 0.56rem; letter-spacing: 0.14em; }
  .nav-toggle { padding: 0.45rem 0.75rem; font-size: 0.75rem; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { font-size: 0.72rem; padding: 0.5rem 0.8rem; }
}

@media (max-width: 400px) {
  .brand-tag { display: none; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- 16. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .round-dot { animation: none; }
  .site-nav, .to-top { transition: none; }
}
