/* ==========================================================================
   安博电竞 — 共享样式 /assets/site.css
   01 重置 · 02 变量 · 03 基础排版 · 04 布局 · 05 通用组件
   06 头部 · 07 页脚 · 08 响应式与动效降级
   ========================================================================== */

/* ---------- 01 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
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; }

/* ---------- 02 变量 ---------- */
:root {
  --ink: #070B18;
  --ink-2: #0A1024;
  --panel: #0E1730;
  --panel-2: #1A2750;
  --cyan: #35E6E0;
  --violet: #8C5BFF;
  --gold: #FFB020;
  --paper: #F3EBDD;
  --mist: #9AA6C4;
  --green: #2BE08A;
  --red: #FF5C6E;
  --line: rgba(154, 166, 196, .18);
  --line-strong: rgba(154, 166, 196, .32);
  --cyan-line: rgba(53, 230, 224, .34);
  --violet-line: rgba(140, 91, 255, .34);
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Courier New", monospace;
  --shell: 1280px;
  --pad: clamp(16px, 3.6vw, 48px);
  --cut: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 03 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 战术网格底：只在区块边缘露出 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(154, 166, 196, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154, 166, 196, .10) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(130% 85% at 50% 0%, #000 0%, rgba(0,0,0,.35) 55%, transparent 88%);
  mask-image: radial-gradient(130% 85% at 50% 0%, #000 0%, rgba(0,0,0,.35) 55%, transparent 88%);
  opacity: .7;
}

main { position: relative; z-index: 1; display: block; }
::selection { background: var(--violet); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.display { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; line-height: .94; letter-spacing: -.035em; }
.h-sub { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.015em; }
.h-mini { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.lede { font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.7; color: rgba(243, 235, 221, .86); max-width: 34em; }
.prose { max-width: 36em; color: rgba(243, 235, 221, .82); }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--cyan); border-bottom: 1px solid var(--cyan-line); }
.prose strong { color: var(--paper); font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: rotate(-12deg);
}
.annotation {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .3em;
  color: rgba(154, 166, 196, .62); writing-mode: vertical-rl; transform: rotate(180deg);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- 04 布局 ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(48px, 6.5vw, 96px); }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; }
.rule {
  position: relative; height: 1px; border: 0; margin-block: clamp(32px, 5vw, 64px);
  background: linear-gradient(90deg, var(--cyan-line), rgba(140, 91, 255, .28) 42%, transparent 88%);
}
.rule::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px;
  border: 1px solid var(--cyan); transform: rotate(-12deg) skewX(-12deg);
}

/* ---------- 05 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; font-size: .92rem; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #140F06; }
.btn--gold:hover { background: #FFC24D; }
.btn--ghost { border-color: var(--cyan-line); color: var(--cyan); }
.btn--ghost:hover { background: rgba(53, 230, 224, .12); border-color: var(--cyan); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.tag--ready { color: var(--green); }
.tag--live { color: var(--gold); }
.tag--todo { color: #B9A6FF; }
.tag--warn { color: var(--red); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, var(--panel), #0A1128);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.panel + .panel { margin-top: 16px; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-block: 18px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: rgba(154, 166, 196, .8);
}
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: rgba(154, 166, 196, .38); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--paper); }

.tabs__list {
  display: flex; gap: 4px; overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative; padding: 12px 16px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--mist);
  transition: color .2s var(--ease);
}
.tabs__btn:hover { color: var(--paper); }
.tabs__btn[aria-selected="true"] { color: var(--paper); }
.tabs__btn[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--gold);
}
.tabs__panel { padding-top: 24px; }

.media {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(140deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.media__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.media--wide .media__img { aspect-ratio: 21 / 9; }
.media--tall .media__img { aspect-ratio: 3 / 4; }
.media--square .media__img { aspect-ratio: 1 / 1; }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 230, 224, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 91, 255, .12) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  opacity: .55;
}
.media--shade::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0) 38%, rgba(7, 11, 24, .88) 100%);
}
.media__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: .8rem; color: rgba(243, 235, 221, .9);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- 06 头部 ---------- */
.skip-link {
  position: fixed; left: 14px; top: -120px; z-index: 200;
  padding: 10px 18px; background: var(--gold); color: #140F06;
  font-weight: 800; font-size: .86rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: top .24s var(--ease);
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(180deg, rgba(7, 11, 24, .985), rgba(7, 11, 24, .93));
  border-bottom: 1px solid rgba(53, 230, 224, .16);
  -webkit-backdrop-filter: saturate(130%) blur(8px);
  backdrop-filter: saturate(130%) blur(8px);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, .95);
}

.header__inner {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--pad);
  height: 76px;
  transition: height .3s var(--ease);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 44px; color: var(--paper); }
.brand__mark { display: flex; align-items: flex-end; gap: 3px; width: 24px; height: 24px; transform: skewX(-12deg); }
.brand__mark i { display: block; flex: 1; background: var(--cyan); }
.brand__mark i:nth-child(1) { height: 46%; }
.brand__mark i:nth-child(2) { height: 100%; background: var(--violet); }
.brand__mark i:nth-child(3) { height: 26%; background: var(--gold); }
.brand__text { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; line-height: 1; letter-spacing: .02em; }
.brand__domain {
  display: none;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--mist);
  padding-left: 12px; border-left: 1px solid var(--line);
}

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list a {
  position: relative; display: block; padding: 10px 13px;
  font-size: .9rem; font-weight: 600; color: rgba(243, 235, 221, .72);
  transition: color .2s var(--ease);
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left center;
  transition: transform .26s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--paper); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--cyan); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  padding: 9px 12px; border: 1px solid var(--cyan-line); color: var(--cyan);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(53, 230, 224, .1); border-color: var(--cyan); }
.nav-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; height: 12px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; transition: transform .24s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.axis {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 23, 48, .92), rgba(7, 11, 24, .92));
  border-top: 1px solid var(--line);
}
.axis__shell {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--pad);
  height: 84px;
  overflow: hidden;
  transition: height .3s var(--ease);
}
.axis__legend {
  flex: 0 0 auto;
  display: flex; align-items: center;
  height: 54px; padding-left: 8px;
  border-left: 1px solid var(--cyan-line);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .26em; color: var(--mist);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.axis__track {
  display: flex; flex: 1 1 auto; min-width: 0; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.axis__track::-webkit-scrollbar { display: none; }
.axis__cell {
  flex: 1 0 auto; min-width: 84px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 14px;
  border-left: 1px solid var(--line);
  transition: background-color .2s var(--ease);
}
.axis__num { font-family: var(--font-mono); font-size: 1.06rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.axis__day { font-size: .62rem; letter-spacing: .14em; color: var(--mist); }
.axis__state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .62rem; letter-spacing: .08em; color: var(--mist);
}
.axis__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); flex: 0 0 auto; }
.axis__cell[data-state="ready"] .axis__dot { background: var(--green); box-shadow: 0 0 8px rgba(43, 224, 138, .7); }
.axis__cell[data-state="ready"] .axis__state { color: var(--green); }
.axis__cell[data-state="live"] .axis__dot { background: var(--gold); box-shadow: 0 0 10px rgba(255, 176, 32, .85); }
.axis__cell[data-state="live"] .axis__state { color: var(--gold); }
.axis__cell[data-state="todo"] .axis__dot { background: var(--violet); box-shadow: 0 0 8px rgba(140, 91, 255, .7); }
.axis__cell[data-state="todo"] .axis__state { color: #B9A6FF; }
.axis__cell[data-today="true"] {
  background: linear-gradient(180deg, rgba(53, 230, 224, .16), rgba(53, 230, 224, .02));
  box-shadow: inset 0 2px 0 var(--cyan);
}

.axis__jumps { display: flex; flex: 0 0 auto; gap: 8px; }
.axis__jump {
  display: inline-block; padding: 9px 14px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--cyan);
  border: 1px solid var(--cyan-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.axis__jump:hover { background: rgba(53, 230, 224, .12); border-color: var(--cyan); }

.scroll-meter {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--gold));
  transition: width .12s linear;
}

.site-header[data-compact="true"] .header__inner { height: 56px; }
.site-header[data-compact="true"] .axis__shell { height: 52px; }
.site-header[data-compact="true"] .axis__cell { padding-block: 6px; }
.site-header[data-compact="true"] .axis__day { display: none; }

/* ---------- 07 页脚 ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: calc(44px + clamp(44px, 5vw, 78px));
  border-top: 1px solid rgba(53, 230, 224, .18);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(140, 91, 255, .20), transparent 62%),
    radial-gradient(90% 80% at 88% 8%, rgba(53, 230, 224, .14), transparent 64%),
    var(--ink);
  clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.footer__shell {
  position: relative; z-index: 1;
  max-width: var(--shell); margin-inline: auto;
  padding: 0 var(--pad) clamp(26px, 3.4vw, 40px);
}
.footer__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand--footer .brand__text { font-size: 1.18rem; }
.footer__lede {
  max-width: 32ch; text-align: right;
  font-size: .9rem; line-height: 1.7; color: var(--mist);
}
.footer__grid {
  display: grid;
  grid-template-columns: .85fr .85fr 1.4fr;
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(26px, 3.6vw, 44px);
}
.footer__col { min-width: 0; }
.footer__title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; color: var(--cyan); text-transform: uppercase;
}
.footer__title::before { content: ""; width: 14px; height: 1px; background: var(--violet); transform: rotate(-12deg); }
.footer__links li + li { margin-top: 8px; }
.footer__links a { font-size: .92rem; color: rgba(243, 235, 221, .8); transition: color .2s var(--ease); }
.footer__links a:hover, .footer__links a:focus-visible { color: var(--cyan); }
.footer__meta { margin-top: 20px; font-size: .8rem; }
.footer__meta dt {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  color: rgba(154, 166, 196, .72);
}
.footer__meta dt:first-child { margin-top: 0; }
.footer__meta dd { margin-top: 3px; color: rgba(243, 235, 221, .86); line-height: 1.6; word-break: break-word; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--mist);
}
.footer__copy { margin-right: auto; font-family: var(--font-mono); letter-spacing: .04em; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal-links a { transition: color .2s var(--ease); }
.footer__legal-links a:hover, .footer__legal-links a:focus-visible { color: var(--cyan); }
.footer__icp { font-family: var(--font-mono); letter-spacing: .04em; }
.footer__coord {
  position: absolute; right: 10px; top: 42%;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .34em;
  color: rgba(154, 166, 196, .38);
  writing-mode: vertical-rl; transform: rotate(180deg);
  pointer-events: none;
}

/* ---------- 08 响应式与动效降级 ---------- */
[data-reveal] { transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal="armed"] { opacity: 0; transform: translateY(12px); }
[data-reveal].is-in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }
#main-content:focus { outline: none; }

@media (min-width: 1100px) {
  .brand__domain { display: inline-block; }
}

@media (max-width: 1024px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .axis__legend { display: none; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 118px; }
  .nav-toggle { display: inline-flex; }
  .header__inner { height: 60px; gap: 12px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; margin-left: 0;
    z-index: 3;
    padding: 6px var(--pad) 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: rgba(10, 16, 36, .99);
    border-bottom: 1px solid rgba(53, 230, 224, .24);
    box-shadow: 0 26px 48px -30px rgba(0, 0, 0, .95);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    padding: 14px 4px; font-size: 1rem;
    border-bottom: 1px solid rgba(154, 166, 196, .14);
  }
  .site-nav__list a::after { left: 4px; right: auto; width: 48px; bottom: 11px; }
  .axis__shell { height: 66px; gap: 10px; }
  .axis__cell { min-width: 76px; padding: 7px 10px; }
  .axis__num { font-size: .98rem; }
  .axis__jump { padding: 8px 11px; font-size: .66rem; }
  .site-header[data-compact="true"] .axis__shell { height: 50px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__lede { text-align: left; max-width: 100%; }
  .footer__coord { display: none; }
}

@media (max-width: 560px) {
  .axis__jumps { display: none; }
  .axis__cell { min-width: 70px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__legal { font-size: .72rem; }
  .footer__copy { margin-right: 0; width: 100%; }
  .brand__mark { width: 20px; height: 20px; }
  .brand__text { font-size: 1.14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-reveal="armed"] { opacity: 1; transform: none; }
}
