/* ============================================================
   安博电竞站 · 共享样式 /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, dl, dd, figure, blockquote { margin: 0; }

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

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

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

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

input, textarea, select { font: inherit; color: inherit; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink: #070A0F;
  --ink-2: #0E1520;
  --ink-3: #0A111A;
  --graphite: #1C2733;
  --cyan: #28F0FF;
  --mint: #8FF8FF;
  --magenta: #FF2D8D;
  --acid: #DFFF3F;
  --violet: #6E4BFF;
  --fog: #E9F2F5;
  --cool: #93A4B0;

  /* 面积节奏 */
  --line-soft: rgba(40, 240, 255, 0.18);
  --line-hard: rgba(28, 39, 51, 1);

  /* 布局 */
  --page-max: 1440px;
  --gutter: clamp(18px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --header-h: 76px;

  /* 形状 */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--fog);
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 8% -6%, rgba(40, 240, 255, 0.10), transparent 62%),
    radial-gradient(720px 460px at 96% 2%, rgba(110, 75, 255, 0.14), transparent 64%),
    radial-gradient(620px 420px at 52% 108%, rgba(255, 45, 141, 0.07), transparent 68%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: #04121A;
}

p { max-width: 46ch; }

a, button { -webkit-tap-highlight-color: transparent; }

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

#main-content { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 页头：透明叠加 → 实色阅读条 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid rgba(233, 242, 245, 0.06);
  transition: background-color 0.24s var(--ease),
              border-color 0.24s var(--ease),
              backdrop-filter 0.24s var(--ease);
}

.site-header.is-scrolled,
.site-header[data-open] {
  background: rgba(7, 10, 15, 0.94);
  border-bottom-color: var(--graphite);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(12px, 1.4vw, 18px) var(--gutter);
  min-height: var(--header-h);
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  font-size: 17px;
  font-weight: 700;
  color: #04121A;
  background: linear-gradient(145deg, var(--cyan), var(--mint) 48%, var(--violet));
  box-shadow: 0 0 0 1px rgba(40, 240, 255, 0.45),
              0 10px 28px -12px rgba(40, 240, 255, 0.95);
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}

.brand:hover .brand__mark {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--mint),
              0 14px 32px -10px rgba(40, 240, 255, 1);
}

.brand__text { display: grid; gap: 1px; }

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  color: var(--fog);
}

.brand__edition {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--cool);
  white-space: nowrap;
}

/* 导航 */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  margin-left: auto;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 26px);
}

.header-nav__item { display: block; }

.header-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--cool);
  transition: color 0.2s var(--ease);
}

.header-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.header-nav__link:hover { color: var(--fog); }
.header-nav__link:hover::after { transform: scaleX(1); }

.header-nav__link[aria-current="page"] { color: var(--mint); }
.header-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 12px rgba(40, 240, 255, 0.85);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 进度刻度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled .header-progress { opacity: 1; }

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 62%, var(--acid));
  box-shadow: 0 0 10px rgba(40, 240, 255, 0.7);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid var(--graphite);
  background: rgba(14, 21, 32, 0.72);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--mint);
  background: rgba(40, 240, 255, 0.08);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transition: transform 0.22s var(--ease);
}

.site-header[data-open] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- 6. 按钮 ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.18s var(--ease),
              background-color 0.2s var(--ease),
              color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.pill-btn--primary {
  color: #04121A;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 0 1px rgba(40, 240, 255, 0.55),
              0 12px 30px -14px rgba(40, 240, 255, 0.95);
}

.pill-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--mint),
              0 18px 36px -14px rgba(40, 240, 255, 1);
}

.pill-btn--ghost {
  color: var(--fog);
  background: rgba(28, 39, 51, 0.5);
  border: 1px solid var(--graphite);
}

.pill-btn--ghost:hover {
  color: var(--mint);
  border-color: rgba(143, 248, 255, 0.8);
  background: rgba(40, 240, 255, 0.08);
}

/* ---------- 7. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-shell { padding-top: var(--header-h); }

.section { padding-block: clamp(40px, 6vw, 88px); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.grid__full { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid .span-4 { grid-column: span 4; }
  .grid .span-6 { grid-column: span 6; }
  .grid .span-8 { grid-column: span 8; }
}

/* ---------- 8. 标题与索引 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.98;
  letter-spacing: 0.04em;
  color: var(--fog);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: var(--fog);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: 0 0 26px rgba(40, 240, 255, 0.35);
}

/* ---------- 9. 标签 / 面板 / 数据条 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--graphite);
  background: rgba(28, 39, 51, 0.42);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--cool);
}

.tag--cyan { color: #04121A; background: var(--cyan); border-color: var(--cyan); }
.tag--magenta { color: #1B0410; background: var(--magenta); border-color: var(--magenta); }
.tag--acid { color: #151A00; background: var(--acid); border-color: var(--acid); }

.tag--live {
  color: var(--magenta);
  border-color: rgba(255, 45, 141, 0.55);
  background: rgba(255, 45, 141, 0.12);
  animation: tag-pulse 2.8s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 141, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 45, 141, 0); }
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--graphite);
  background: linear-gradient(160deg, rgba(14, 21, 32, 0.96), rgba(9, 14, 21, 0.98));
  padding: clamp(20px, 2.4vw, 32px);
}

.data-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(28, 39, 51, 0.9);
  overflow: hidden;
}

.data-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--acid));
  transition: width 0.4s var(--ease);
}

/* ---------- 10. 图片容器（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 39, 51, 0.9);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(40, 240, 255, 0.16), transparent 58%),
    linear-gradient(150deg, var(--ink-2), var(--ink-3) 58%, rgba(110, 75, 255, 0.2));
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mint);
  background: linear-gradient(to top, rgba(7, 10, 15, 0.94), transparent);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cool);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb__item a { transition: color 0.18s var(--ease); }
.breadcrumb__item a:hover { color: var(--mint); }

.breadcrumb__item span[aria-current="page"] { color: var(--fog); }

.breadcrumb__sep {
  color: rgba(28, 39, 51, 1);
  font-size: 11px;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-block: clamp(44px, 5vw, 76px) 28px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(40, 240, 255, 0.10), transparent 62%),
    radial-gradient(95% 85% at 94% 6%, rgba(255, 45, 141, 0.10), transparent 62%),
    linear-gradient(180deg, #05080C, #0A0F16 56%, #070A0F);
}

.footer-rail {
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(40, 240, 255, 0.6) 0 2px,
    transparent 2px 18px
  );
  opacity: 0.55;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3vw, 44px);
}

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fog);
  max-width: none;
}

.footer-brand__tagline {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--cool);
  max-width: 34ch;
}

.footer-cta { margin-top: 20px; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cool);
  border-bottom: 1px solid var(--graphite);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}

.footer-group__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  max-width: none;
}

.footer-links { display: grid; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--cool);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--mint);
  transform: translateX(3px);
}

.footer-contact__list { display: grid; gap: 12px; }

.footer-contact__row { display: grid; gap: 2px; }

.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(147, 164, 176, 0.75);
}

.footer-contact__row dd {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fog);
  word-break: break-word;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin-top: clamp(30px, 3.4vw, 48px);
  padding-top: 18px;
  border-top: 1px dashed rgba(28, 39, 51, 0.95);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cool);
}

.footer-meta__copy,
.footer-meta__icp { max-width: none; }

.footer-meta__icp { color: var(--mint); }

.footer-meta__note {
  flex: 1 1 100%;
  max-width: 78ch;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(147, 164, 176, 0.85);
}

/* ---------- 13. 响应式 ---------- */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-groups { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .footer-groups { grid-column: auto; }
}

@media (max-width: 520px) {
  .footer-groups { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { font-size: 12px; }
}

/* 平板与手机：导航收为下拉面板 */
@media (max-width: 1079px) {
  .nav-toggle { display: grid; }

  .brand { margin-right: auto; }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.99), rgba(7, 10, 15, 0.995));
    border-bottom: 1px solid var(--graphite);
    box-shadow: 0 30px 56px -28px rgba(0, 0, 0, 0.95);
  }

  .site-header[data-open] .header-nav { display: flex; }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-nav__item { border-bottom: 1px solid rgba(28, 39, 51, 0.85); }

  .header-nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    letter-spacing: 0.12em;
  }

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

  .header-nav__link[aria-current="page"] {
    color: var(--cyan);
    padding-left: 12px;
    border-left: 2px solid var(--cyan);
  }

  .header-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .header-actions .pill-btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }

  .brand__mark { width: 36px; height: 36px; font-size: 15px; }
  .brand__name { font-size: 15.5px; letter-spacing: 0.12em; }
  .brand__edition { font-size: 9.5px; letter-spacing: 0.14em; }

  .nav-toggle { width: 40px; height: 40px; }

  .pill-btn { padding: 9px 14px; font-size: 12.5px; }

  .footer-brand__tagline { max-width: none; }
}

@media (max-width: 400px) {
  .brand__edition { display: none; }
}

/* ---------- 14. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .tag--live { animation: none; }
  .to-top:hover .footer-link { transform: none; }
  .footer-link:hover { transform: none; }
}
