/* ==========================================================================
   亚新体育 · Site Kit 共享样式  /assets/site.css
   夜间赛场数据指挥中心 — 技术蓝图网格 + 珠宝色分区
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, figure, blockquote, dl, dd, address { margin: 0; }

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

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

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

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* --- 2. 变量 ------------------------------------------------------------- */
:root {
  --ink: #060D16;
  --ink-2: #0B1B2B;
  --slate: #12283C;
  --teal: #0E3B3F;
  --indigo: #1E1B45;
  --wine: #4A1B2A;
  --cyan: #26E3D2;
  --orange: #FF7A29;
  --line: #2C4257;
  --text: #E8F1F8;
  --muted: #93A9BD;
  --ok: #6FE3A0;

  --font-head: "Barlow Semi Condensed", "Archivo Narrow", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1240px;
  --gutter: 24px;
  --rule: 1px solid var(--line);
}

/* --- 3. 基础与中文排版 --------------------------------------------------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.75 var(--font-body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(44, 66, 87, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 66, 87, 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: #ffffff;
}

h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; }
h4 { font-size: 22px; font-weight: 700; }

.ax-num,
.ax-clock__value,
.ax-fact__num,
[data-count],
time { font-variant-numeric: tabular-nums; }

strong { color: #ffffff; }

::selection { background: rgba(38, 227, 210, 0.32); color: #ffffff; }

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

/* --- 4. 跳至主内容 ------------------------------------------------------- */
.ax-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--ink);
  font: 700 14px/1 var(--font-head);
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: top 160ms var(--ease);
}

.ax-skip:focus { top: 12px; }

/* --- 5. 布局骨架 --------------------------------------------------------- */
.ax-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ax-main { display: block; position: relative; }

.ax-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.ax-section {
  position: relative;
  padding: 72px 0;
}

.ax-section--slate { background: var(--ink-2); }
.ax-section--teal { background: var(--teal); }
.ax-section--indigo { background: var(--indigo); }
.ax-section--wine { background: var(--wine); }

.ax-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
}

/* --- 6. 头部 ------------------------------------------------------------- */
.ax-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 13, 22, 0.96);
  border-bottom: var(--rule);
}

.ax-header__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, rgba(44, 66, 87, 0.75) 0 1px, transparent 1px 64px);
}

.ax-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

/* 品牌 */
.ax-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.ax-brand__pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  animation: axPulse 3s infinite;
}

@keyframes axPulse {
  0% { box-shadow: 0 0 0 0 rgba(38, 227, 210, 0.5); }
  55% { box-shadow: 0 0 0 10px rgba(38, 227, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 227, 210, 0); }
}

.ax-brand__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ax-brand__name {
  font: 800 22px/1.1 var(--font-head);
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: color 140ms var(--ease);
}

.ax-brand__name:hover { color: var(--cyan); }

.ax-brand__line {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.ax-nav {
  margin-left: auto;
  z-index: 3;
}

.ax-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ax-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font: 700 15px/1.2 var(--font-head);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.ax-nav__link:hover {
  color: #ffffff;
  border-color: var(--line);
  background: rgba(18, 40, 60, 0.6);
}

.ax-nav__link[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(255, 122, 41, 0.55);
  background: rgba(255, 122, 41, 0.1);
}

.ax-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--orange);
}

.ax-nav__scale { display: none; }

.ax-nav__actions { display: none; }

.ax-nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 11px 13px;
  border: var(--rule);
  border-radius: 2px;
  color: var(--text);
  font: 700 13px/1 var(--font-head);
  letter-spacing: 0.14em;
  z-index: 4;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}

.ax-nav__toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.ax-nav__toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.ax-nav__toggle-bars::before,
.ax-nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.ax-nav__toggle-bars::before { top: 0; }
.ax-nav__toggle-bars::after { bottom: 0; }

.ax-nav__toggle[aria-expanded="true"] .ax-nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.ax-nav__toggle[aria-expanded="true"] .ax-nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.ax-nav__toggle-text { display: inline-block; }

/* 工具区 */
.ax-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ax-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border: var(--rule);
  border-radius: 2px;
  font-family: var(--font-mono);
}

.ax-clock__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ax-clock__value {
  font-size: 13px;
  color: var(--cyan);
}

.ax-top {
  padding: 9px 12px;
  border: var(--rule);
  border-radius: 2px;
  color: var(--muted);
  font: 700 12px/1 var(--font-head);
  letter-spacing: 0.14em;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.ax-top:hover {
  color: var(--orange);
  border-color: rgba(255, 122, 41, 0.7);
  background: rgba(255, 122, 41, 0.08);
}

.ax-top.is-visible {
  color: var(--orange);
  border-color: rgba(255, 122, 41, 0.6);
}

/* 遮罩与进度 */
.ax-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  background: rgba(6, 13, 22, 0.74);
}

.ax-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
}

/* --- 7. 内容通用组件 ----------------------------------------------------- */
.ax-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ax-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.ax-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: var(--rule);
  border-radius: 2px;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--muted);
}

.ax-lead {
  font-size: 19px;
  line-height: 1.7;
  color: #c9dceb;
  max-width: 60ch;
}

.ax-prose {
  max-width: 68ch;
  color: var(--text);
}

.ax-prose p { margin-bottom: 1.15em; }
.ax-prose p:last-child { margin-bottom: 0; }
.ax-prose h2, .ax-prose h3 { margin: 1.6em 0 0.6em; }
.ax-prose ul { list-style: none; display: grid; gap: 10px; margin-bottom: 1.15em; }
.ax-prose li { position: relative; padding-left: 20px; }
.ax-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.ax-card {
  position: relative;
  padding: 24px;
  border: var(--rule);
  border-radius: 2px;
  background: var(--slate);
  box-shadow: inset 0 1px 0 rgba(232, 241, 248, 0.05);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.ax-card:hover { border-color: var(--cyan); transform: translateY(-2px); }

.ax-card__title {
  font: 700 20px/1.3 var(--font-head);
  color: #ffffff;
  margin-bottom: 10px;
}

.ax-card__meta {
  margin-top: 14px;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ax-fact {
  padding: 18px 20px;
  border: var(--rule);
  border-radius: 2px;
  background: rgba(18, 40, 60, 0.45);
}

.ax-fact__num {
  display: block;
  font: 800 38px/1 var(--font-head);
  color: var(--cyan);
}

.ax-fact__label {
  display: block;
  margin-top: 10px;
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ax-note {
  padding: 16px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(14, 59, 63, 0.4);
  font-size: 15px;
  color: #c9dceb;
}

.ax-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: var(--rule);
  border-radius: 2px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ax-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--ok);
}

.ax-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ax-status--warn { color: var(--orange); }

/* 按钮 */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font: 700 15px/1.2 var(--font-head);
  letter-spacing: 0.05em;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.ax-btn:hover {
  border-color: var(--cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

.ax-btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-2);
}

.ax-btn--primary:hover {
  background: #ff8f4d;
  border-color: #ff8f4d;
  color: var(--ink);
}

.ax-btn--ghost {
  background: rgba(38, 227, 210, 0.06);
  border-color: rgba(38, 227, 210, 0.5);
  color: var(--cyan);
}

.ax-btn--ghost:hover { border-color: var(--cyan); color: #ffffff; }

.ax-btn--block { width: 100%; }

/* 面包屑 */
.ax-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 600 12px/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ax-crumbs__link {
  color: var(--muted);
  transition: color 140ms var(--ease);
}

.ax-crumbs__link:hover { color: var(--cyan); }

.ax-crumbs__sep { color: var(--line); }

/* 图片容器 */
.ax-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--rule);
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(148deg, var(--slate) 0%, var(--ink) 78%);
}

.ax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-media::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(38, 227, 210, 0.18);
  pointer-events: none;
}

.ax-media--wide { aspect-ratio: 21 / 9; }
.ax-media--tall { aspect-ratio: 3 / 4; }
.ax-media--square { aspect-ratio: 1 / 1; }

.ax-media__caption {
  margin-top: 12px;
  font: 600 12px/1.6 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 章节目录 */
.ax-toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: var(--rule);
  border-radius: 2px;
  background: rgba(18, 40, 60, 0.55);
}

.ax-toc__title {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: var(--rule);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ax-toc__list { display: grid; gap: 2px; }

.ax-toc__link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.ax-toc__link:hover {
  color: var(--text);
  border-left-color: var(--line);
  background: rgba(18, 40, 60, 0.7);
}

.ax-toc__link.is-active {
  color: #ffffff;
  border-left-color: var(--orange);
  background: rgba(255, 122, 41, 0.1);
}

/* 显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --- 8. 页脚 ------------------------------------------------------------- */
.ax-footer {
  position: relative;
  margin-top: 64px;
  background: var(--ink);
  border-top: var(--rule);
}

.ax-footer__rule {
  display: block;
  height: 1px;
  opacity: 0.6;
  background: repeating-linear-gradient(90deg,
    var(--cyan) 0 24px, transparent 24px 40px,
    var(--orange) 40px 56px, transparent 56px 96px);
}

.ax-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 1fr)) minmax(250px, 1.5fr);
  gap: 32px;
  padding: 56px 0 44px;
}

.ax-footer__logo {
  font: 800 26px/1.1 var(--font-head);
  letter-spacing: 0.05em;
  color: #ffffff;
}

.ax-footer__tag {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.ax-footer__meta {
  margin-top: 18px;
  font: 600 12px/1.7 var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(38, 227, 210, 0.78);
}

.ax-footer__col-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: var(--rule);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: #ffffff;
}

.ax-footer__list { display: grid; gap: 11px; }

.ax-footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 140ms var(--ease), transform 140ms var(--ease);
}

.ax-footer__link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.ax-footer__contact {
  padding: 20px;
  border: var(--rule);
  border-radius: 2px;
  background: rgba(14, 59, 63, 0.42);
}

.ax-footer__contact .ax-footer__col-title { border-bottom-color: rgba(38, 227, 210, 0.28); }

.ax-footer__contact-row {
  display: grid;
  gap: 4px;
}

.ax-footer__label {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--muted);
}

.ax-footer__value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.ax-footer__bar {
  border-top: var(--rule);
  background: rgba(11, 27, 43, 0.55);
}

.ax-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.ax-footer__copy {
  margin: 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.ax-footer__copy--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--line);
}

.ax-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ax-footer__legal .ax-footer__link { font-size: 13px; }

/* --- 9. 响应式 ----------------------------------------------------------- */
@media (max-width: 1280px) {
  .ax-nav__link {
    font-size: 13.5px;
    padding: 9px 9px;
  }
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; }

  .ax-header__bar { min-height: 68px; }

  .ax-nav__toggle { display: inline-flex; }

  .ax-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    margin-left: 0;
    padding: 88px 22px 32px;
    overflow-y: auto;
    z-index: 3;
    background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    border-left: var(--rule);
    transform: translateX(102%);
    transition: transform 240ms var(--ease);
  }

  .ax-nav[data-open="true"] { transform: translateX(0); }

  .ax-nav__scale {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: var(--rule);
    font: 700 12px/1 var(--font-mono);
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .ax-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .ax-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 14px;
    font-size: 16px;
    border-color: transparent;
  }

  .ax-nav__link[aria-current="page"]::before { top: 10px; bottom: 10px; }

  .ax-nav__actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: var(--rule);
  }

  .ax-scrim { display: block; }

  .ax-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 44px 0 36px;
  }

  .ax-footer__brand { grid-column: 1 / -1; }
  .ax-footer__contact { grid-column: 1 / -1; }

  .ax-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
  }

  .ax-section { padding: 56px 0; }

  .ax-toc { position: static; top: auto; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .ax-utility .ax-clock { display: none; }

  .ax-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }

  .ax-brand__line { display: none; }
  .ax-brand__name { font-size: 20px; }

  .ax-nav__toggle-text { display: none; }

  .ax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .ax-section { padding: 44px 0; }

  .ax-card { padding: 18px; }
  .ax-note { padding: 14px 15px; }

  .ax-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ax-footer__legal { gap: 14px; }
}

/* --- 10. 减弱动效 -------------------------------------------------------- */
@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;
  }

  .ax-brand__pulse { animation: none; }

  [data-reveal] { opacity: 1; transform: none; }
}
