/* ===== 安博电竞 共享样式 /assets/site.css ===== */

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

html {
  background: #06080B;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: transparent;
  color: #F4F1EA;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(760px 480px at 4% 4%, rgba(91, 63, 168, 0.16), transparent 64%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
button { font: inherit; }
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #00E5FF;
  outline-offset: 3px;
}

/* --- variables --- */
:root {
  --ink: #06080B;
  --panel: #14181D;
  --line: #232A32;
  --line-soft: rgba(35, 42, 50, 0.7);
  --cyan: #00E5FF;
  --orange: #FF5A1F;
  --violet: #5B3FA8;
  --teal: #0E3A3C;
  --wine: #7A1E3C;
  --lime: #A8F04A;
  --paper: #F4F1EA;
  --muted: #98A2AE;
  --shell: 1280px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --scroll-progress: 0%;
}

/* --- typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: clamp(32px, 4.6vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 28px); }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.86);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--paper); }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }

/* --- layout --- */
.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: clamp(56px, 7vw, 104px) 0; }
.site-main { display: block; padding-top: 104px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- skipto --- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: #04181D;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--data {
  background: var(--cyan);
  color: #04181D;
  box-shadow: 0 12px 28px -16px rgba(0, 229, 255, 0.95);
}
.btn--data:hover { background: #5AEFFF; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(35, 42, 50, 0.5);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag--live { color: var(--lime); border-color: rgba(168, 240, 74, 0.42); background: rgba(168, 240, 74, 0.1); }
.tag--version { color: var(--orange); border-color: rgba(255, 90, 31, 0.42); background: rgba(255, 90, 31, 0.1); }
.tag--region { color: #C6B6FF; border-color: rgba(91, 63, 168, 0.65); background: rgba(91, 63, 168, 0.26); }

/* --- panels --- */
.panel {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.panel--data {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(35, 42, 50, 0.55), rgba(20, 24, 29, 0.95));
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.panel--data:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95);
}

/* --- media --- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  aspect-ratio: 16 / 9;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--map { aspect-ratio: 4 / 3; }
.figure-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  background-image: repeating-linear-gradient(135deg, rgba(0, 229, 255, 0.07) 0 2px, transparent 2px 11px);
}
.figure figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: rgba(6, 8, 11, 0.74);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* --- breadcrumb --- */
.breadcrumb {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* --- reveal --- */
[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-js] [data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 16px 0;
  pointer-events: none;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  transition: width 0.12s linear;
}

.nav-island {
  position: relative;
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #0E1116;
  box-shadow: 0 22px 48px -22px rgba(0, 0, 0, 0.95);
  transition: padding 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--cyan);
  color: #04181D;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 22px -8px rgba(0, 229, 255, 0.95);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-current {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--pill);
  background: rgba(0, 229, 255, 0.09);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--pill);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-link:hover { color: var(--paper); background: var(--line); }
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.45);
}

.nav-cta { position: relative; z-index: 2; flex: 0 0 auto; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(35, 42, 50, 0.9);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bar {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 打开态：全屏栏目面板 */
.site-header[data-open] .nav-island { background: #0E1116; border-color: rgba(0, 229, 255, 0.32); }
.site-header[data-open] .primary-nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 110;
  margin: 0;
  padding: 116px 20px 48px;
  overflow-y: auto;
  background: #080A0E;
  animation: navPanelIn 0.26s var(--ease) both;
}
.site-header[data-open] .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.site-header[data-open] .nav-link {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-header[data-open] .nav-link[aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  box-shadow: none;
}

@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ===== footer ===== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 32px 32px 0 0;
  background: var(--teal);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(90deg, var(--cyan), rgba(0, 229, 255, 0.05) 42%, var(--orange));
}
.footer-shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 1fr 1.3fr;
  gap: 44px 36px;
}
.foot-col { min-width: 0; }
.foot-title {
  margin: 0 0 18px;
  color: rgba(244, 241, 234, 0.5);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.foot-list { display: grid; gap: 12px; list-style: none; font-size: 15px; line-height: 1.6; }
.foot-list a {
  color: rgba(244, 241, 234, 0.82);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.foot-list a:hover { color: var(--cyan); }

.foot-list--regions li { display: flex; align-items: center; gap: 10px; color: rgba(244, 241, 234, 0.82); }
.region-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 12px -2px currentColor; }
.region-dot--east { background: var(--violet); color: var(--violet); }
.region-dot--south { background: var(--cyan); color: var(--cyan); }
.region-dot--north { background: var(--orange); color: var(--orange); }
.region-dot--west { background: var(--lime); color: var(--lime); }

.foot-list--contact li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: start; }
.foot-label {
  color: rgba(244, 241, 234, 0.45);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.foot-list--contact .mono { font-size: 13.5px; word-break: break-word; }
.foot-list--contact span:last-child { color: rgba(244, 241, 234, 0.82); font-size: 14px; line-height: 1.6; }

.foot-desc {
  max-width: 34ch;
  margin: 18px 0 10px;
  color: rgba(244, 241, 234, 0.8);
  font-size: 15px;
  line-height: 1.7;
}
.foot-note {
  max-width: 32ch;
  color: rgba(244, 241, 234, 0.52);
  font-size: 13px;
  line-height: 1.65;
}
.brand--footer .brand-sub { color: rgba(244, 241, 234, 0.55); }

.version-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: var(--pill);
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.version-link:hover { background: rgba(0, 229, 255, 0.16); border-color: var(--cyan); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
}
.foot-legal {
  color: rgba(244, 241, 234, 0.52);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; font-size: 12.5px; line-height: 1.6; }
.foot-legal-links a {
  color: rgba(244, 241, 234, 0.62);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.foot-legal-links a:hover { color: var(--cyan); }

/* --- back to top --- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 50%;
  background: #14181D;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
              background 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top[data-shown] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cyan); color: #04181D; }

/* ===== responsive ===== */
@media (min-width: 1081px) {
  .site-header[data-scrolled]:not([data-open]) .primary-nav { display: none; }
  .site-header[data-scrolled] .nav-current { display: inline-flex; }
  .site-header[data-scrolled] .nav-toggle { display: inline-flex; }
  .site-header[data-scrolled] .brand-sub { display: none; }
  .site-header[data-scrolled] .nav-island {
    padding: 8px 10px 8px 16px;
    background: #0C0F13;
    border-color: rgba(0, 229, 255, 0.24);
  }
}

@media (max-width: 1080px) {
  .site-header { padding: 12px 0; }
  .nav-island { gap: 10px; padding: 8px 10px 8px 14px; }
  .primary-nav { display: none; }
  .brand-sub { display: none; }
  .nav-current { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .site-main { padding-top: 92px; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .grid--thirds, .grid--quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding-top: 52px; border-radius: 26px 26px 0 0; }
}

@media (max-width: 720px) {
  .shell, .footer-shell { width: calc(100% - 32px); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .nav-current { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 12px; font-size: 13px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .site-header[data-open] .primary-nav { padding: 100px 16px 40px; }
  .site-header[data-open] .nav-link { font-size: 19px; padding: 16px 18px; }
}

@media (max-width: 640px) {
  .grid--halves, .grid--thirds, .grid--quarters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { margin-top: 36px; }
  .figure, .figure--wide, .figure--map { aspect-ratio: 4 / 3; border-radius: 20px; }
}

/* ===== reduced motion ===== */
@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;
  }
  [data-js] [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header::after { transition: none !important; }
}
