/* =========================================================
   亿百电竞 · 共享站点样式 /assets/site.css
   1 变量  2 reset  3 排版  4 布局容器  5 头部  6 页脚
   7 通用组件  8 动效与进度  9 响应式  10 无障碍
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #070A0F;
  --deck: #0D141D;
  --steel: #16222F;
  --cyan: #00E5F2;
  --magenta: #FF2DAA;
  --cinnabar: #C93A2E;
  --ice: #EAF7FB;
  --mist: #91A6B5;
  --line: #2A4050;
  --amber: #F0B84B;

  --cyan-12: rgba(0, 229, 242, .12);
  --cyan-30: rgba(0, 229, 242, .30);
  --magenta-12: rgba(255, 45, 170, .12);
  --cinnabar-14: rgba(201, 58, 46, .16);
  --line-soft: rgba(42, 64, 80, .62);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --pill: 999px;

  --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", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(0, 229, 242, .10), transparent 62%),
    radial-gradient(900px 520px at -8% 104%, rgba(255, 45, 170, .07), transparent 62%),
    radial-gradient(620px 320px at 12% 8%, rgba(201, 58, 46, .06), transparent 70%);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: rgba(0, 229, 242, .28); color: var(--ice); }

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ice);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.03; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { text-wrap: pretty; }
strong { color: var(--ice); font-weight: 700; }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--cyan);
  opacity: .75;
}

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

.page-top {
  padding-top: calc(var(--header-h) + clamp(26px, 5vw, 58px));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(145, 166, 181, .82);
}
.breadcrumbs a { color: var(--mist); transition: color .16s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--ice); }
.breadcrumbs__sep { color: var(--line); }

/* ---------- 5. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: #04141A;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(13, 20, 29, .94);
  border-bottom-color: rgba(0, 229, 242, .28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 2px;
  border-radius: var(--radius-sm);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(0, 229, 242, .22), rgba(255, 45, 170, .16));
  border: 1px solid rgba(0, 229, 242, .45);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .03em;
  color: var(--ice);
}
.brand__tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--mist);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mist);
  transition: color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.nav-link__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(145, 166, 181, .6);
  transition: color .16s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ice);
  background: rgba(22, 34, 47, .92);
}
.nav-link:hover .nav-link__index,
.nav-link:focus-visible .nav-link__index { color: var(--cyan); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-12);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 242, .34);
}
.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
}

.header-tools {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--pill);
  background: var(--cinnabar);
  color: var(--ice);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(201, 58, 46, .55), 0 8px 20px rgba(201, 58, 46, .25);
  transition: background .16s var(--ease);
}
.header-contact:hover { background: #DB4638; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--steel);
  color: var(--ice);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan-30); background: #1B2938; }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.site-header[data-nav-open] .nav-toggle { border-color: var(--cyan-30); }
.site-header[data-nav-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-nav-open] .nav-toggle__bars span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--deck), var(--ink) 72%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: .5;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--footer .brand__mark { width: 42px; height: 42px; border-radius: 14px; }
.footer-brand__note {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-brand__cta { margin-top: 2px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-col--contact {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--cinnabar);
}
.footer-col__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ice);
}
.footer-col--contact .footer-col__title { color: #FFB8AE; }
.footer-col__badge {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--cinnabar);
  color: var(--ice);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.footer-col__list { display: flex; flex-direction: column; gap: 9px; }
.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mist);
  transition: color .16s var(--ease);
  width: fit-content;
}
.footer-col__link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  opacity: .45;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.footer-col__link:hover { color: var(--cyan); }
.footer-col__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.footer-col__text--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.footer-col__note { font-size: 12.5px; line-height: 1.7; color: rgba(145, 166, 181, .8); }

.footer-base {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: rgba(145, 166, 181, .85);
}
.footer-base__copy { font-family: var(--font-mono); letter-spacing: .04em; }
.footer-base__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-base__links a { transition: color .16s var(--ease); }
.footer-base__links a:hover { color: var(--cyan); }
.footer-base__icp {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: rgba(145, 166, 181, .75);
}

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.btn--primary {
  background: var(--cyan);
  color: #04141A;
  box-shadow: 0 0 0 1px rgba(0, 229, 242, .55), 0 10px 26px rgba(0, 229, 242, .22);
}
.btn--primary:hover { background: #5BF2FA; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(22, 34, 47, .55);
  color: var(--ice);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--cyan); border-color: var(--cyan-30); background: rgba(22, 34, 47, .9); }
.btn--cinnabar {
  background: var(--cinnabar);
  color: var(--ice);
  box-shadow: 0 0 0 1px rgba(201, 58, 46, .5);
}
.btn--cinnabar:hover { background: #DB4638; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(22, 34, 47, .7);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(0, 229, 242, .42); background: var(--cyan-12); }
.tag--magenta { color: var(--magenta); border-color: rgba(255, 45, 170, .42); background: var(--magenta-12); }
.tag--cinnabar { color: #FFB0A6; border-color: rgba(201, 58, 46, .55); background: var(--cinnabar-14); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, var(--steel), var(--deck) 70%),
    repeating-linear-gradient(90deg, rgba(42, 64, 80, .35) 0 1px, transparent 1px 44px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.06) brightness(.94);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 10, 15, .62));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 8. 动效与进度 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 150;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 242, .4);
  background: rgba(13, 20, 29, .94);
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease), background .16s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(0, 229, 242, .16); }

html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
html[data-reveal-ready] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

[data-toc] a[aria-current="true"] {
  color: var(--cyan);
  box-shadow: inset 2px 0 0 var(--cyan);
}

/* ---------- 9. 响应式 ---------- */
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-tools { display: none; }
  .footer-inner { grid-template-columns: minmax(230px, .85fr) 2.4fr; }
}

@media (min-width: 1000px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1160px) {
  .footer-inner { grid-template-columns: 300px 1fr; }
}

@media (max-width: 899px) {
  .header-tools { display: flex; }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 16px;
    max-height: calc(100vh - var(--header-h) - 26px);
    overflow-y: auto;
    background: rgba(13, 20, 29, .98);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 64px rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }
  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    min-height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-size: 15.5px;
    justify-content: flex-start;
  }
  .nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .nav-actions .btn { width: 100%; height: 44px; font-size: 14px; }

  .footer-base__icp { margin-left: 0; }
}

/* ---------- 10. 无障碍 ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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