/* ==========================================================================
   /assets/site.css — 安博电竞主站 共享外壳
   分区：1 变量 2 重置 3 无障碍 4 容器 5 刊头 6 页脚
        7 按钮 8 面包屑 9 排版 10 卡片与网格 11 图片容器 12 响应式
   ========================================================================== */

/* 1. 变量 ---------------------------------------------------------------- */
:root {
  --bg: #060A12;
  --panel: #0E1626;
  --panel-2: #111C31;
  --line: #1E2A40;
  --line-strong: #2C3D5C;

  --cyan: #2BE7E0;
  --amber: #FF9A2E;
  --violet: #8A6BFF;
  --green: #46E08A;
  --fault: #FF4D6D;

  --ink: #E9EEF7;
  --muted: #8FA0BC;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular",
    Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 44px);
  --dur: 200ms;
  --dur-fast: 160ms;

  --shadow-hard: 6px 6px 0 #03060C;
  --shadow-hard-sm: 4px 4px 0 #03060C;
}

/* 2. 重置与基础 ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 3px
  );
}

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

a { color: var(--cyan); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 800;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

button { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* 3. 无障碍 -------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  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;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04131B;
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid #04131B;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

#main-content { scroll-margin-top: 96px; }
[data-section] { scroll-margin-top: 120px; }

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

.stack { display: grid; gap: clamp(12px, 1.6vw, 20px); }

.divider {
  height: 2px;
  border: 0;
  background: var(--line);
  margin: clamp(24px, 4vw, 48px) 0;
}

/* 5. 刊头 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(6, 10, 18, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.header-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(10px, 1.4vw, 17px) var(--gutter);
  transition: padding var(--dur) ease;
}

.site-header[data-compact="true"] .header-rail {
  padding-block: 7px;
}

/* 品牌报头 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: linear-gradient(150deg, rgba(43, 231, 224, 0.18), rgba(138, 107, 255, 0.06) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 #03060C;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-header[data-compact="true"] .brand__tag { display: none; }

/* 居中栏目 */
.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.45vw, 7px);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__item { flex: none; }

.site-nav__link {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.site-nav__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--amber);
}

/* 右侧工具 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}

.header-tools__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(43, 231, 224, 0.16), rgba(138, 107, 255, 0.1));
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.header-tools__link:hover {
  background: var(--cyan);
  color: #04131B;
  box-shadow: var(--shadow-hard-sm);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease,
    background var(--dur-fast) ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.nav-toggle__label { line-height: 1; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--violet);
  color: var(--violet);
}

.site-header[data-open="true"] .nav-toggle__bars {
  box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
  transform: rotate(45deg);
}

/* 阅读进度 */
.header-progress {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--green) 42%, var(--amber) 100%);
  transition: transform 90ms linear;
}

/* 6. 页脚 ---------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 110px);
  border-top: 2px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, #080D18 55%, #05080F 100%);
  color: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(24px, 3vw, 42px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 900;
  font-stretch: 87.5%;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-note {
  margin: 0 0 16px;
  max-width: 36ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(70, 224, 138, 0.18);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-list a {
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__val {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: #05080F;
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-legal__row p { margin: 0; }

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-meta { line-height: 1.6; }

/* 7. 按钮 ---------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease,
    background var(--dur-fast) ease, color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-hard-sm);
  transform: translate(-2px, -2px);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04131B;
}

.btn--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A0D00;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

/* 8. 面包屑 -------------------------------------------------------------- */
.breadcrumb {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 9px;
  color: var(--line-strong);
}

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.breadcrumb__link:hover { color: var(--cyan); }

/* 9. 排版 ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  font-stretch: 87.5%;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.45em;
}

.lede {
  max-width: 66ch;
  margin: 0 0 1.4em;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose p { margin: 0 0 1.15em; }

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.section-band {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg,
      rgba(43, 231, 224, 0.07) 0%,
      rgba(138, 107, 255, 0.05) 45%,
      rgba(255, 154, 46, 0.07) 100%);
  padding: clamp(14px, 2.2vw, 26px) 0;
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
}

.band-head__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

/* 10. 卡片与网格 --------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid--asym {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
}

.card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-hard-sm);
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 11px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  margin: 0 0 0.5em;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(43, 231, 224, 0.55);
  background: rgba(43, 231, 224, 0.08);
  color: var(--cyan);
}

.tag--amber {
  border-color: rgba(255, 154, 46, 0.55);
  background: rgba(255, 154, 46, 0.08);
  color: var(--amber);
}

.tag--violet {
  border-color: rgba(138, 107, 255, 0.6);
  background: rgba(138, 107, 255, 0.1);
  color: var(--violet);
}

.tag--green {
  border-color: rgba(70, 224, 138, 0.55);
  background: rgba(70, 224, 138, 0.09);
  color: var(--green);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.data-row:last-child { border-bottom: 0; }

.data-row__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-row__val {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* 11. 图片容器 ----------------------------------------------------------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  background:
    linear-gradient(140deg, #101B2E 0%, #0A1120 55%, #0C1526 100%);
  box-shadow: var(--shadow-hard-sm);
}

.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(43, 231, 224, 0.05) 0 1px,
      transparent 1px 4px),
    linear-gradient(180deg, transparent 55%, rgba(6, 10, 18, 0.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(43, 231, 224, 0.18);
}

/* 12. 响应式 ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-rail {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    justify-content: flex-start;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    border-top: 2px solid var(--line);
    overflow: visible;
  }

  .site-nav__link {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 1rem;
    transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
      padding-left var(--dur-fast) ease, background var(--dur-fast) ease;
  }

  .site-nav__link:hover {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
    padding-left: 12px;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--amber);
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(43, 231, 224, 0.13), transparent 72%);
  }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .header-tools__link {
    padding: 7px 10px;
    font-size: 0.8125rem;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .brand__tag { display: none; }

  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

  .footer-legal__row { flex-direction: column; align-items: flex-start; }

  .data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .data-row__val { text-align: left; }
}

/* 13. 减弱动效 ----------------------------------------------------------- */
@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;
  }

  .card:hover,
  .btn:hover { transform: none; }
}
