/* ==========================================================================
   亚体育 Site Kit — /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用按钮 / 网格 / 基础组件
   ========================================================================== */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

body {
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* 夜间赛场矿物色 */
  --bg-void: #071A2B;
  --bg-panel: #0E2740;
  --bg-panel-2: #132F4C;
  --bg-panel-3: #18385A;
  --accent: #FF6A2B;
  --accent-deep: #C4552A;
  --mint: #4FE3C1;
  --ink: #F3EFE7;
  --ink-dim: #8C99A6;
  --moss: #6E8B6B;
  --slate: #3A4A5A;

  --edge: rgba(140, 153, 166, .18);
  --edge-strong: rgba(140, 153, 166, .34);
  --accent-veil: rgba(255, 106, 43, .10);
  --mint-veil: rgba(79, 227, 193, .10);
  --grad: linear-gradient(115deg, #FF6A2B 0%, #C4552A 38%, #4FE3C1 100%);

  /* 字体栈 */
  --font-display: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* 度量 */
  --shell: 1240px;
  --gut: clamp(20px, 4.2vw, 56px);
  --gap-1: 8px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 40px;
  --gap-5: 64px;
  --gap-6: 96px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --skew: -3deg;
}

/* ---------- 3. 中文排版与结构容器 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }

p { max-width: 38em; }

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

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.site-main { display: block; min-height: 40vh; }

.rule {
  height: 1px;
  border: 0;
  background: var(--edge);
  margin-block: var(--gap-4);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 34em;
}

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--ink); }
.prose h2, .prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.3em; max-width: 38em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--ink-dim); }
.accent-txt { color: var(--accent); }
.mint-txt { color: var(--mint); }

/* ---------- 4. 章节标题组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.section-head {
  display: grid;
  gap: var(--gap-2);
  margin-bottom: var(--gap-4);
}
.section-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--edge-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--bg-void);
  --btn-bd: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-deep);
  --btn-bd: var(--accent-deep);
  --btn-fg: var(--ink);
}
.btn-ghost {
  --btn-fg: var(--ink-dim);
  --btn-bd: var(--edge-strong);
}
.btn-ghost:hover { --btn-fg: var(--ink); --btn-bd: var(--mint); }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-void);
  border-bottom: 1px solid var(--edge);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-collapsed { box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.header-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-height: 44px;
  overflow: hidden;
  padding: 7px var(--gut);
  background: linear-gradient(90deg, rgba(255, 106, 43, .06), rgba(79, 227, 193, .06));
  border-bottom: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: max-height .18s var(--ease), opacity .18s var(--ease),
              padding .18s var(--ease), border-color .18s var(--ease);
}
.site-header.is-collapsed .header-status {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.status-mono { color: var(--mint); font-weight: 700; letter-spacing: .1em; }
.status-sep { color: var(--slate); }
.status-text { color: var(--ink-dim); }

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gut);
  transition: padding .18s var(--ease);
}
.site-header.is-collapsed .header-frame { padding-top: 9px; padding-bottom: 9px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  width: 5px;
  height: 36px;
  background: var(--grad);
  border-radius: 1px;
  transform: skewY(-14deg);
  flex: none;
  transition: height .18s var(--ease);
}
.site-header.is-collapsed .brand-mark { height: 26px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand-ver {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  max-height: 1.4em;
  overflow: hidden;
  transition: opacity .18s var(--ease), max-height .18s var(--ease);
}
.site-header.is-collapsed .brand-ver { opacity: 0; max-height: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--edge-strong);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--mint); }
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  flex: none;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--mint);
  transition: transform .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
}

.site-nav {
  display: flex;
  margin-left: auto;
  min-width: 0;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 32px);
}
.site-nav a {
  --lift: 0px;
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  transform: translateY(var(--lift));
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { --lift: 0px; color: var(--accent); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

@media (min-width: 961px) {
  .site-nav li:nth-child(2) a,
  .site-nav li:nth-child(5) a { --lift: 4px; }
  .site-nav li:nth-child(3) a,
  .site-nav li:nth-child(4) a { --lift: 8px; }
}

.header-cta {
  flex: none;
  margin-left: clamp(10px, 1.6vw, 24px);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--bg-panel);
  border-top: 1px solid var(--edge);
  color: var(--ink);
  margin-top: clamp(48px, 7vw, 88px);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: .85;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) var(--gut) 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--gap-5);
  padding-bottom: var(--gap-4);
  border-bottom: 1px solid var(--edge);
}
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-logo {
  width: fit-content;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.footer-logo:hover { color: var(--accent); }
.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 28em;
}
.footer-ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-4);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.footer-col-list { display: grid; gap: 10px; }
.footer-col-list a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-col-list a:hover,
.footer-col-list a:focus-visible { color: var(--ink); padding-left: 6px; }

.footer-contact {
  display: grid;
  gap: 6px;
  padding-block: var(--gap-4);
  border-bottom: 1px solid var(--edge);
}
.footer-contact-line {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.footer-contact .footer-note { margin-top: 4px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: var(--gap-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer-meta p { max-width: none; }
.footer-legal { color: var(--ink-dim); }
.footer-copy { color: var(--slate); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: var(--gap-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-dim);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--slate); }
.breadcrumb a { color: var(--ink-dim); transition: color .2s var(--ease); }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--mint); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 9. 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--edge);
  background: var(--bg-panel-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.tag--accent { background: var(--accent-veil); color: var(--accent); border-color: rgba(255, 106, 43, .3); }
.tag--mint { background: var(--mint-veil); color: var(--mint); border-color: rgba(79, 227, 193, .3); }
.tag--moss { background: rgba(110, 139, 107, .18); color: #A9C0A4; border-color: rgba(110, 139, 107, .4); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(79, 227, 193, .16);
  flex: none;
}
.status-dot--accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 43, .18); }
.status-dot--muted { background: var(--slate); box-shadow: none; }

/* ---------- 10. 面板卡片 ---------- */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: var(--gap-3);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.panel:hover { border-color: var(--edge-strong); }
.panel:hover::before { opacity: 1; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}

/* ---------- 11. 图片容器（供页面阶段放置 image_opportunities） ---------- */
.media-band,
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--bg-panel-2), var(--bg-panel-3));
  border: 1px solid var(--edge);
  border-radius: 3px;
}
.media-band { aspect-ratio: 21 / 9; }
.media-frame { aspect-ratio: 4 / 3; }
.media-band > img,
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-band figcaption,
.media-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-dim);
  background: linear-gradient(0deg, rgba(7, 26, 43, .9), transparent);
}

/* ---------- 12. 网格 ---------- */
.grid { display: grid; gap: var(--gap-3); }
.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)); }

/* ---------- 13. 进入视口显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    will-change: opacity, transform;
  }
  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 150;
    display: none;
    flex-direction: column;
    margin-left: 0;
    padding: 8px var(--gut) 24px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
  }
  .site-nav[data-open] { display: flex; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav li { border-bottom: 1px solid var(--edge); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    transform: none;
  }
  .site-nav a::after { display: none; }
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--gap-4);
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-3);
  }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .brand-name { font-size: 20px; }
  .brand-mark { height: 30px; }
  .header-status { font-size: 10px; letter-spacing: .05em; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .breadcrumb { font-size: 10.5px; }
}

/* ---------- 15. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
    scroll-behavior: auto;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
