/* ==========================================================================
   安博看台 · 共享样式 /assets/site.css
   夜赛看台框架：左侧栏目轨道 + 顶部读秒条 + 斜切看台页脚
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #061C16;
  --ink-800: #0B2B22;
  --ink-700: #123A2E;
  --lime: #C8FF3D;
  --orange: #FF8A3D;
  --bluegrey: #9BB1BE;
  --coral: #FF6B6B;
  --paper: #F2F7F4;
  --grey: #5C7068;
  --line: rgba(200, 255, 61, 0.28);
  --line-soft: rgba(155, 177, 190, 0.16);

  --rail-w: 96px;
  --bar-h: 68px;
  --bar-h-sm: 60px;
  --slant: clamp(26px, 5vw, 50px);

  --maxw: 1240px;
  --pad: clamp(18px, 4vw, 48px);
  --radius: 3px;

  --font-display: 'Noto Sans SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Roboto Mono', 'SFMono-Regular', ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h-sm) + 20px);
  background: var(--ink-900);
}

html.nav-locked { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--bar-h-sm);
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.45vw + 14.5px, 17.5px);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}

main { display: block; min-height: 50vh; }

/* ---------- 3. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. 版心与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell--narrow { max-width: 820px; }
.shell--wide { max-width: 1480px; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 5. 通用排版组件 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bluegrey);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 20px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--lime);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bluegrey);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li::after {
  content: "/";
  color: rgba(155, 177, 190, 0.45);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
  color: var(--bluegrey);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.breadcrumb a:hover { color: var(--lime); border-bottom-color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--lime); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-900);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(200, 255, 61, 0.1);
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 7. 标签 / 卡片 / 数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, 0.4); }
.tag--coral { color: var(--coral); border-color: rgba(255, 107, 107, 0.4); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(180deg, rgba(18, 58, 46, 0.55), rgba(11, 43, 34, 0.88));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--lime);
  opacity: 0.55;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--paper);
}

/* ---------- 8. 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(200, 255, 61, 0.12), transparent 62%),
    repeating-linear-gradient(90deg, rgba(242, 247, 244, 0.05) 0 2px, transparent 2px 44px),
    var(--ink-700);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(200, 255, 61, 0.18);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* ---------- 9. 长文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(242, 247, 244, 0.9);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 2em;
  color: var(--paper);
}
.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 1.6em;
  color: var(--lime);
}
.prose ul, .prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--lime); border-bottom: 1px solid var(--line); }
.prose strong { color: var(--paper); font-weight: 700; }

/* ---------- 10. 顶栏 ---------- */
.site-header { position: relative; z-index: 80; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h-sm);
  z-index: 90;
  background: rgba(6, 28, 22, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: clamp(14px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 84% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--paper);
}
.brand-tagline {
  display: none;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--bluegrey);
  white-space: nowrap;
}

.topbar-meta {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bluegrey);
}
.meta-chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.meta-item { white-space: nowrap; }

.topbar-cta { display: none; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle-label { line-height: 1; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(200, 255, 61, 0.1);
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
}

/* ---------- 11. 导航：移动端抽屉 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 85;
  max-height: 100vh;
  overflow-y: auto;
  padding: calc(var(--bar-h-sm) + 26px) 18px 26px;
  background: linear-gradient(180deg, #0B2B22 0%, #061C16 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(-103%);
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.36s;
}
.site-nav[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
}

.nav-head {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.nav-list { display: flex; flex-direction: column; }

.nav-item { display: block; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: color 0.18s ease, background-color 0.18s ease, padding 0.18s ease;
}
.nav-idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bluegrey);
}
.nav-label { display: inline-block; }

.nav-link:hover,
.nav-link:focus-visible { color: var(--lime); }

.nav-link[aria-current="page"] {
  padding-left: 12px;
  color: var(--lime);
  background: rgba(200, 255, 61, 0.06);
  box-shadow: inset 3px 0 0 var(--lime);
}
.nav-link[aria-current="page"] .nav-idx { color: var(--lime); }

.nav-foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-foot-btn { width: 100%; }
.nav-foot-note {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grey);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
}

.footer-shape {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(200, 255, 61, 0.05) 0 1px, transparent 1px 92px),
    linear-gradient(160deg, #0E3327 0%, var(--ink-800) 45%, var(--ink-800) 100%);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin-inline: auto;
  padding: calc(var(--slant) + clamp(28px, 4vw, 48px)) var(--pad) 18px;
}

.footer-top {
  display: grid;
  gap: clamp(26px, 3.5vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(26px, 3.5vw, 48px);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 84% 100%, 0 100%);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.footer-summary {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bluegrey);
}
.footer-hours {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--grey);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-links a::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width 0.18s ease, background-color 0.18s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--lime); border-bottom-color: var(--line); }
.footer-links a:hover::before,
.footer-links a:focus-visible::before { width: 14px; background: var(--lime); }

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-legal {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--bluegrey);
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ---------- 13. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 断点 ---------- */
@media (min-width: 560px) {
  .topbar-cta { display: inline-flex; }
}

@media (min-width: 720px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  html { scroll-padding-top: calc(var(--bar-h) + 20px); }

  body {
    padding-top: var(--bar-h);
    padding-left: var(--rail-w);
  }

  .topbar {
    left: var(--rail-w);
    height: var(--bar-h);
  }
  .topbar-inner {
    gap: 22px;
    padding-inline: clamp(18px, 2.2vw, 36px);
  }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .brand-name { font-size: 17px; }
  .brand-tagline { display: block; }
  .topbar-meta { display: flex; margin-left: auto; }
  .nav-toggle { display: none; }

  /* 导航转为左侧竖向轨道，成为页面视觉边框 */
  .site-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    max-height: none;
    overflow: visible;
    padding: calc(var(--bar-h) + 16px) 10px 24px;
    background: var(--ink-800);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-head { display: none; }
  .nav-list { gap: 4px; }

  .nav-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 2px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(200, 255, 61, 0.07);
    border-color: var(--line);
  }
  .nav-link[aria-current="page"] {
    padding-left: 2px;
    background: rgba(200, 255, 61, 0.1);
    border-color: var(--line);
    box-shadow: none;
  }

  .nav-foot { display: none; }

  .footer-top {
    grid-template-columns:
      minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  }
  .footer-brand { grid-column: auto; }

  .footer-links a { font-size: 15.5px; }
  .contact-val { font-size: 14px; }
}

@media (min-width: 1440px) {
  :root { --rail-w: 108px; }
}

/* ---------- 15. 降低动效 ---------- */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: none;
  }
}
