/* ============================================================
   安博址 ANBO V3.1 — 全站共享样式 /assets/site.css
   视觉概念：赛场蓝图 · 技术坐标网格 + 高饱和运动撞色
   ============================================================ */

:root {
  --bg: #0D0D0D;
  --bg-elev: #141414;
  --bg-card: #171717;
  --border: #272727;
  --light: #F8F9FA;
  --gray-light: #ADB5BD;
  --gray: #6C757D;
  --brand: #E63946;
  --brand-deep: #B7323D;
  --orange: #F4A261;
  --blue: #118AB2;
  --sand: #C9A227;
  --green: #2A9D8F;
  --font-head: 'Anton', Impact, 'Arial Black', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --header-h: 72px;
  --container: 1280px;
  --gutter: 24px;
  --speed: 180ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--orange); }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--brand) 0%, var(--orange) 55%, var(--blue) 100%);
  opacity: .85;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--light);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--bg); }

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, var(--brand), var(--orange));
  transition: width .1s linear;
}

.header-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  flex-shrink: 0;
  min-width: 0;
}
.brand:hover { color: var(--orange); }
.brand-block {
  display: inline-grid;
  place-items: center;
  padding: 6px 10px 6px 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  flex-shrink: 0;
}
.brand-caption { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .05em;
  color: var(--light);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  padding: 8px 24px 24px;
  background: rgba(13, 13, 13, .98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 32px 48px rgba(0, 0, 0, .4);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
}
.site-nav[data-open] { transform: translateY(0); opacity: 1; visibility: visible; }

.nav-list { display: flex; flex-direction: column; }
.nav-item a {
  display: block;
  padding: 14px 12px;
  font-size: 15px;
  color: var(--light);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}
.nav-item a:hover { background: rgba(244, 162, 97, .07); color: var(--orange); }
.nav-item a[aria-current="page"] {
  color: var(--brand);
  border-left-color: var(--brand);
  background: rgba(230, 57, 70, .07);
}

.header-side { display: flex; align-items: center; gap: 12px; }

.quick-match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .1em;
  line-height: 1;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.quick-match:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.quick-text { line-height: 1; }
.quick-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: quick-blink 1.6s var(--ease) infinite;
}
@keyframes quick-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color var(--speed) var(--ease);
}
.nav-toggle:hover { border-color: var(--brand); }
.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--light);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1081px) {
  .header-grid { grid-template-columns: auto 1fr auto; gap: 24px; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border-bottom: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    justify-self: end;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-item a {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    border-left: 0;
    background: none;
    color: var(--gray-light);
  }
  .nav-item a:hover { background: rgba(244, 162, 97, .06); color: var(--orange); }
  .nav-item a[aria-current="page"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: none;
  }
  .nav-toggle { display: none; }
}

@media (max-width: 380px) {
  .brand-code { display: none; }
  .quick-match { padding: 8px 10px; }
}

/* ===== 布局与容器 ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.page-main { flex: 1 0 auto; }
#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }
.dash-rule {
  display: block;
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--aside { grid-template-columns: 1fr; }

@media (min-width: 601px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--aside { grid-template-columns: 1fr 320px; }
}
@media (min-width: 961px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroller > * { flex: 0 0 auto; scroll-snap-align: start; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--light);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: 0 10px 28px rgba(230, 57, 70, .28); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: #0E7FA3; border-color: #0E7FA3; color: #fff; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ===== 面包屑 ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--gray-light); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs [aria-current="page"] { color: var(--brand); font-weight: 600; }

/* ===== 章节标题 ===== */
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--brand);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--light);
}
.section-sub { margin-top: 10px; color: var(--gray-light); font-size: 15px; max-width: 640px; }
@media (max-width: 600px) {
  .section-head { flex-wrap: wrap; }
  .section-index { writing-mode: horizontal-tb; letter-spacing: .12em; }
}

/* ===== 首页首屏 / 内页标题 ===== */
.intro { position: relative; padding: 48px 0 40px; }
.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}
.intro-kicker::before { content: ""; width: 32px; height: 2px; background: var(--brand); }
.intro-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 84px);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--light);
}
.intro-desc { margin-top: 18px; color: var(--gray-light); font-size: 16px; max-width: 640px; }

.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.page-route {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gray);
  text-transform: uppercase;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  line-height: .95;
  color: var(--light);
  text-transform: uppercase;
}

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0 48px;
}
.toc-item {
  display: block;
  background: var(--bg-elev);
  padding: 20px 22px;
  color: var(--light);
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.toc-item:hover { background: var(--brand); color: #fff; }
.toc-item small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gray-light);
  text-transform: none;
  margin-bottom: 6px;
}
.toc-item:hover small { color: rgba(255, 255, 255, .75); }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card--accent { border-top: 3px solid var(--brand); }
.card--accent-blue { border-top-color: var(--blue); }
.card--accent-green { border-top-color: var(--green); }
.card--accent-sand { border-top-color: var(--sand); }
.card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card__title { font-family: var(--font-head); font-size: 20px; line-height: 1.15; color: var(--light); margin-bottom: 8px; }
.card__text { color: var(--gray-light); font-size: 14px; line-height: 1.65; }
.card__more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--blue); }
.card__more:hover { color: var(--orange); }

/* ===== 图片占位 ===== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.04) 50%, transparent 70%);
  pointer-events: none;
}

/* ===== 筛选 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gray-light);
  background: transparent;
  text-transform: uppercase;
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn[data-active] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===== 数据与标签 ===== */
.data-num { font-family: var(--font-mono); font-weight: 700; color: var(--orange); }
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.league-chip--cba { color: var(--orange); }
.league-chip--csl { color: var(--green); }

/* ===== 页脚 ===== */
.site-footer {
  margin-top: auto;
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--orange), var(--blue));
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.brand--footer .brand-block { font-size: 20px; padding: 8px 14px 8px 10px; }
.brand--footer .brand-name { font-size: 26px; }
.brand--footer .brand-code { font-size: 12px; letter-spacing: .18em; }
.footer-trust { max-width: 380px; color: var(--gray-light); font-size: 14px; line-height: 1.8; }
.footer-locale {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
  text-transform: uppercase;
}
.footer-col { min-width: 0; }
.footer-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: grid; gap: 8px; }
.footer-link {
  display: inline-block;
  color: var(--gray-light);
  font-size: 14px;
  transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}
.footer-link:hover { color: var(--orange); padding-left: 4px; }
.footer-contact { color: var(--gray-light); font-size: 14px; line-height: 1.9; }
.footer-service { margin-top: 8px; color: var(--gray); font-size: 13px; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-copy, .footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gray);
}

@media (min-width: 601px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
}
@media (min-width: 961px) {
  .footer-grid { grid-template-columns: 1.5fr .8fr .8fr 1.3fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
}

/* ===== 入场显现 ===== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

/* ===== 动效降级 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .quick-dot { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
