/* ==========================================================================
   AXIS YABO · 亚博线上赛事 — 共享站点样式 /assets/site.css
   中轴看台：深墨绿承重，暖沙为阅读面，荧光青柠标记“当前所在”
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ax-axis: #0A2B23;
  --ax-night: #051512;
  --ax-sand: #E7D9BE;
  --ax-shell: #F5EFE2;
  --ax-lime: #C9F45A;
  --ax-mist: #E4FBA6;
  --ax-ignite: #FF5A2E;
  --ax-grid: #2E4C42;
  --ax-mute: #93A79B;
  --ax-ink: #1C3A31;

  --ax-line: rgba(46, 76, 66, .32);
  --ax-line-soft: rgba(46, 76, 66, .18);

  --ax-font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ax-font-body: var(--ax-font-display);
  --ax-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --ax-maxw: 1320px;
  --ax-gutter: clamp(18px, 4.5vw, 56px);
  --ax-header-h: 84px;
  --ax-ease: cubic-bezier(.22, .61, .36, 1);
  --ax-shadow: 0 1px 0 rgba(5, 21, 18, .08);
}

@media (max-width: 960px) {
  :root { --ax-header-h: 64px; }
}

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

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

html.ax-no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--ax-font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ax-ink);
  background: var(--ax-shell);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

figure { margin: 0; }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .55em;
  font-family: var(--ax-font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ax-axis);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 72px); font-stretch: 92%; }
h2 { font-size: clamp(26px, 3.4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0; line-height: 1.45; }
h5 { font-size: 14px; letter-spacing: .02em; line-height: 1.5; }

strong { font-weight: 800; }

.ax-section--dark h1, .ax-section--dark h2, .ax-section--dark h3, .ax-section--dark h4,
.ax-section--night h1, .ax-section--night h2, .ax-section--night h3, .ax-section--night h4,
.ax-panel--dark h1, .ax-panel--dark h2, .ax-panel--dark h3, .ax-panel--dark h4 {
  color: var(--ax-shell);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--ax-night);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(201, 244, 90, .8);
  border-radius: 2px;
}

.ax-header :focus-visible,
.ax-footer :focus-visible,
.ax-panel--dark :focus-visible,
.ax-section--dark :focus-visible,
.ax-section--night :focus-visible {
  outline-color: var(--ax-lime);
  box-shadow: 0 0 0 4px rgba(5, 21, 18, .9);
}

.ax-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 头部 ---------- */
.ax-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ax-axis);
  color: var(--ax-sand);
  border-bottom: 1px solid var(--ax-grid);
}

.ax-skip {
  position: absolute;
  left: 10px;
  top: -64px;
  z-index: 120;
  padding: 10px 20px;
  background: var(--ax-lime);
  color: var(--ax-night);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 2px;
  transition: top .18s var(--ax-ease);
}

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

.ax-header__rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
  min-height: 84px;
  transition: min-height .24s var(--ax-ease);
}

.ax-header.is-condensed .ax-header__rail { min-height: 52px; }

/* 品牌 */
.ax-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 0;
  max-width: 100%;
}

.ax-brand__axis {
  display: block;
  width: 2px;
  height: 34px;
  background: var(--ax-lime);
  transition: height .24s var(--ax-ease);
}

.ax-header.is-condensed .ax-brand__axis { height: 26px; }

.ax-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ax-brand__mark {
  font-family: var(--ax-font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ax-shell);
  white-space: nowrap;
}

.ax-brand__sub {
  margin-top: 4px;
  font-family: var(--ax-font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--ax-mute);
  white-space: nowrap;
}

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

.ax-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.ax-nav__item { position: relative; }

.ax-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 1px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ax-sand);
  white-space: nowrap;
  transition: color .18s var(--ax-ease);
}

.ax-nav__link::before { content: none; }

.ax-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ax-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .18s var(--ax-ease);
}

.ax-nav__link:hover,
.ax-nav__link:focus-visible { color: var(--ax-lime); }

.ax-nav__link:hover::after { transform: scaleX(1); }

.ax-nav__link[aria-current="page"] {
  color: var(--ax-lime);
  font-weight: 700;
}

.ax-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.ax-nav__actions { display: none; }

/* 页头 CTA */
.ax-header__cta {
  flex: 0 0 auto;
  margin-left: clamp(8px, 1.5vw, 20px);
}

/* 汉堡 */
.ax-burger {
  display: none;
  position: absolute;
  top: 50%;
  right: var(--ax-gutter);
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ax-grid);
  border-radius: 2px;
  color: var(--ax-lime);
  cursor: pointer;
  z-index: 3;
  transition: border-color .18s var(--ax-ease);
}

.ax-burger:hover { border-color: var(--ax-lime); }

.ax-burger__box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.ax-burger__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s var(--ax-ease), opacity .16s linear;
}

.ax-header[data-open="true"] .ax-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ax-header[data-open="true"] .ax-burger__bar:nth-child(2) { opacity: 0; }
.ax-header[data-open="true"] .ax-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 进度线 */
.ax-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ax-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 2;
}

/* ---------- 6. 按钮 ---------- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  font-family: var(--ax-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s var(--ax-ease), color .18s var(--ax-ease),
    border-color .18s var(--ax-ease), transform .18s var(--ax-ease);
}

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

.ax-btn--lime {
  background: var(--ax-lime);
  border-color: var(--ax-lime);
  color: var(--ax-night);
}
.ax-btn--lime:hover { background: var(--ax-mist); border-color: var(--ax-mist); }

.ax-btn--ignite {
  background: var(--ax-ignite);
  border-color: var(--ax-ignite);
  color: #2A0C03;
}
.ax-btn--ignite:hover { background: #FF7549; border-color: #FF7549; }

.ax-btn--ghost {
  background: transparent;
  border-color: var(--ax-grid);
  color: var(--ax-sand);
}
.ax-btn--ghost:hover { border-color: var(--ax-lime); color: var(--ax-lime); }

/* ---------- 7. 页脚 ---------- */
.ax-footer {
  background: var(--ax-night);
  color: var(--ax-sand);
  border-top: 1px solid var(--ax-grid);
  padding: clamp(44px, 6vw, 84px) 0 26px;
  font-size: 14px;
}

.ax-footer__inner {
  width: 100%;
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--ax-grid);
}

.ax-footer__mark {
  display: inline-block;
  padding-bottom: 10px;
  font-family: var(--ax-font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--ax-shell);
  border-bottom: 2px solid var(--ax-lime);
}

.ax-footer__sub {
  margin: 14px 0 0;
  font-family: var(--ax-font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ax-mute);
}

.ax-footer__intro {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ax-mute);
}

.ax-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.ax-footer__col-title {
  margin: 0 0 16px;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ax-mist);
}

.ax-footer__links { display: grid; gap: 10px; }

.ax-footer__link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--ax-sand);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ax-ease), border-color .18s var(--ax-ease);
}

.ax-footer__link:hover,
.ax-footer__link:focus-visible {
  color: var(--ax-lime);
  border-bottom-color: var(--ax-lime);
}

.ax-footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  padding: clamp(26px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--ax-grid);
}

.ax-footer__contact-item { min-width: 0; }

.ax-footer__label {
  margin: 0 0 6px;
  font-family: var(--ax-font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ax-mute);
}

.ax-footer__value {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ax-shell);
  word-break: break-word;
}

.ax-footer__note {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 80ch;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ax-mute);
}

.ax-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--ax-mute);
}

.ax-footer__copy { margin: 0; }

.ax-footer__icp {
  margin: 0;
  font-family: var(--ax-font-mono);
  letter-spacing: .06em;
}

/* ---------- 8. 版式容器 ---------- */
.ax-main { display: block; }

.ax-container {
  width: 100%;
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-section { padding: clamp(44px, 7vw, 96px) 0; }
.ax-section--sand { background: var(--ax-sand); color: var(--ax-ink); }
.ax-section--dark { background: var(--ax-axis); color: var(--ax-sand); }
.ax-section--night { background: var(--ax-night); color: var(--ax-sand); }

.ax-divider {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ax-line);
}

/* ---------- 9. 栅格 ---------- */
.ax-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.ax-col-3 { grid-column: span 3; }
.ax-col-4 { grid-column: span 4; }
.ax-col-5 { grid-column: span 5; }
.ax-col-6 { grid-column: span 6; }
.ax-col-7 { grid-column: span 7; }
.ax-col-8 { grid-column: span 8; }
.ax-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .ax-col-3, .ax-col-4 { grid-column: span 6; }
  .ax-col-5, .ax-col-6, .ax-col-7, .ax-col-8 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .ax-col-3, .ax-col-4, .ax-col-5, .ax-col-6,
  .ax-col-7, .ax-col-8, .ax-col-12 { grid-column: span 12; }
}

/* ---------- 10. 画板 / 标签 / 引导段 ---------- */
.ax-panel {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background: var(--ax-shell);
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow);
}

.ax-panel--sand { background: var(--ax-sand); }

.ax-panel--dark {
  background: var(--ax-axis);
  border-color: var(--ax-grid);
  color: var(--ax-sand);
  box-shadow: none;
}

.ax-lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--ax-ink);
}

.ax-panel--dark .ax-lead,
.ax-section--dark .ax-lead,
.ax-section--night .ax-lead { color: var(--ax-sand); }

.ax-label {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ax-grid);
}

.ax-panel--dark .ax-label,
.ax-section--dark .ax-label,
.ax-section--night .ax-label,
.ax-footer .ax-label { color: var(--ax-mute); }

.ax-label--axis { color: var(--ax-axis); }
.ax-label--lime { color: var(--ax-lime); }

/* ---------- 11. 面包屑 ---------- */
.ax-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ax-grid);
}

.ax-breadcrumb a {
  color: var(--ax-grid);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ax-ease), border-color .18s var(--ax-ease);
}

.ax-breadcrumb a:hover {
  color: var(--ax-axis);
  border-bottom-color: var(--ax-lime);
}

.ax-breadcrumb__sep { color: var(--ax-mute); }

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

/* ---------- 12. 图片容器 ---------- */
.ax-figure {
  position: relative;
  display: block;
  margin: 0;
  background: var(--ax-axis);
  border: 1px solid var(--ax-grid);
  overflow: hidden;
}

.ax-figure > img,
.ax-figure > picture,
.ax-figure > picture > img,
.ax-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-figure--wide { aspect-ratio: 21 / 9; }
.ax-figure--16x9 { aspect-ratio: 16 / 9; }
.ax-figure--4x3 { aspect-ratio: 4 / 3; }
.ax-figure--1x1 { aspect-ratio: 1 / 1; }
.ax-figure--4x5 { aspect-ratio: 4 / 5; }

.ax-figure__caption {
  margin-top: 10px;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.7;
  color: var(--ax-mute);
}

/* ---------- 13. 网格底纹 ---------- */
.ax-gridlines {
  background-image:
    repeating-linear-gradient(to right, var(--ax-line-soft) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--ax-line-soft) 0 1px, transparent 1px 72px);
}

.ax-gridlines--dark {
  background-image:
    repeating-linear-gradient(to right, rgba(201, 244, 90, .1) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(201, 244, 90, .1) 0 1px, transparent 1px 72px);
}

/* ---------- 14. 显现动画 ---------- */
.ax-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .26s var(--ax-ease), transform .26s var(--ax-ease);
  will-change: opacity, transform;
}

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

/* ---------- 15. 响应式：头部 ---------- */
@media (max-width: 960px) {
  .ax-header__rail {
    justify-content: center;
    gap: 0;
    min-height: var(--ax-header-h);
    transition: none;
  }

  .ax-header.is-condensed .ax-header__rail { min-height: var(--ax-header-h); }
  .ax-header.is-condensed .ax-brand__axis { height: 34px; }

  .ax-brand {
    padding: 0 56px;
    max-width: 100%;
  }

  .ax-brand__mark {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ax-brand__sub { display: none; }

  .ax-header__cta { display: none; }

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

  .ax-nav {
    position: fixed;
    top: var(--ax-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 8px var(--ax-gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--ax-night);
    border-top: 1px solid var(--ax-grid);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ax-ease), transform .22s var(--ax-ease),
      visibility .22s linear;
    z-index: 1;
  }

  .ax-header[data-open="true"] .ax-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ax-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .ax-nav__item { border-bottom: 1px solid var(--ax-grid); }

  .ax-nav__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    font-size: 20px;
    letter-spacing: .01em;
    color: var(--ax-shell);
  }

  .ax-nav__link::before {
    content: attr(data-index);
    flex: 0 0 auto;
    font-family: var(--ax-font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--ax-mute);
  }

  .ax-nav__link::after { display: none; }

  .ax-nav__link:hover,
  .ax-nav__link:focus-visible { color: var(--ax-lime); }

  .ax-nav__link[aria-current="page"] { color: var(--ax-lime); }

  .ax-nav__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
  }

  .ax-nav__actions .ax-btn {
    width: 100%;
    min-height: 50px;
    font-size: 14px;
  }
}

/* ---------- 16. 响应式：页脚 ---------- */
@media (max-width: 860px) {
  .ax-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

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

@media (max-width: 560px) {
  .ax-footer { padding-top: 40px; }

  .ax-footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .ax-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .ax-btn:hover,
  .ax-btn:active { transform: none; }

  .ax-reveal [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
