/* ============================================================
   /assets/site.css — OB体育主站 共享外壳与基础组件
   夜场索引体系：竖排品牌轨道 + 刻度顶栏 + 硬边斜切
   ============================================================ */

/* ---------- 1. RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h, 96px) + 16px);
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

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

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

table { width: 100%; border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #060917;
  --indigo: #0C1230;
  --indigo-2: #141B3F;
  --line: #232C5C;
  --white: #F2F5FF;
  --cyan: #38F0DC;
  --cyan-deep: #1FA79B;
  --amber: #FF9A2E;
  --yellow: #FFE94A;
  --muted: #8C96BE;

  --rail-w: 88px;
  --top-h: 34px;
  --bar-h: 62px;
  --head-h: 96px;

  --pad: clamp(18px, 3.6vw, 54px);
  --gap: clamp(16px, 2.2vw, 32px);
  --dur: 180ms;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  padding-left: var(--rail-w);
  padding-top: var(--head-h);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-stretch: 88%;
  color: var(--white);
}
h1 { font-size: clamp(34px, 5.6vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); }
h4 { font-size: 17px; letter-spacing: 0.02em; }

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

strong { font-weight: 700; color: var(--white); }

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

/* ---------- 4. 无障碍：跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 12px);
  z-index: 99;
  transform: translateY(-180%);
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 10px 18px;
  transition: transform var(--dur) ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.grid {
  display: grid;
  gap: var(--gap);
}
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose ul { list-style: none; margin-top: 12px; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- 6. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.index-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--yellow);
}
.index-num--sm {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
}

.data-num {
  font-family: var(--mono);
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  display: block;
}
.data-num--key { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--cyan);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 18px 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) ease;
}
.crumbs a:hover,
.crumbs a:focus-visible { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--white); }

.frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--indigo);
  padding: clamp(18px, 3vw, 34px);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.tape {
  margin-inline: calc(var(--pad) * -1);
  padding: 14px var(--pad);
  background: var(--indigo-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tape--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--cyan-deep) var(--indigo);
  scrollbar-width: thin;
}
.tape--scroll > * { scroll-snap-align: start; }
.tape--scroll::-webkit-scrollbar { height: 6px; }
.tape--scroll::-webkit-scrollbar-track { background: var(--indigo); }
.tape--scroll::-webkit-scrollbar-thumb { background: var(--cyan-deep); }

.card {
  position: relative;
  background: var(--indigo-2);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 26px);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.card:hover,
.card:focus-within {
  border-color: var(--cyan);
  box-shadow: 6px 6px 0 rgba(56, 240, 220, 0.12);
}

.media-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--indigo-2);
  overflow: hidden;
}
.media-frame__img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  background:
    repeating-linear-gradient(118deg, rgba(56, 240, 220, 0.10) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(28deg, rgba(35, 44, 92, 0.55) 0 1px, transparent 1px 34px),
    var(--indigo-2);
}
.media-frame__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- 7. 头部外壳 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

/* 左侧 88px 品牌轨道 */
.brand-rail {
  pointer-events: auto;
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  height: 100vh;
  background: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 14px;
  transition: border-color var(--dur) ease;
}
.site-header[data-scrolled="true"] .brand-rail {
  border-right-color: var(--cyan-deep);
}
.brand-rail__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 2px;
  text-decoration: none;
}
.brand-rail__ob {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  line-height: 1;
}
.brand-rail__cn {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--white);
  line-height: 1;
}
.brand-rail__ticks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
}
.brand-rail__ticks span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--line);
}
.brand-rail__ticks span:nth-child(3n) {
  width: 28px;
  background: var(--cyan-deep);
}
.brand-rail__meta {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1;
}

/* 顶部条与主导航行 */
.header-shell {
  pointer-events: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(6, 9, 23, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--top-h);
  padding: 0 var(--pad);
  background: var(--indigo);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.header-top__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  max-width: none;
}
.header-top__dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.header-top__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-top__links a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.header-top__links a:hover,
.header-top__links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  height: var(--bar-h);
  padding: 0 var(--pad);
}
.header-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--progress, 0) * 100%);
  background: var(--cyan);
  transition: width 140ms linear;
}

.brand-inline {
  display: none;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-inline__ob {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.brand-inline__cn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 28px);
  list-style: none;
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: color var(--dur) ease;
}
.site-nav__link::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  bottom: 8px;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) ease, background-color var(--dur) ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--white); }
.site-nav__link:hover::before,
.site-nav__link:focus-visible::before { transform: scaleY(1); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--white); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"]::before {
  transform: scaleY(1);
  background: var(--amber);
}

.header-cta {
  margin-left: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--indigo-2);
  border: 1px solid var(--line);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.header-cta:hover,
.header-cta:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}
.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); }
.nav-toggle__text { line-height: 1; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--indigo);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 88px;
  height: 3px;
  background: var(--cyan);
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(32px, 5vw, 56px) 0 clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.footer-brand__ob {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cyan);
}
.footer-brand__cn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--white);
}
.footer-mood {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  max-width: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(28px, 4vw, 44px) 0;
}
.footer-col { min-width: 0; }
.footer-col__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-stretch: normal;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: color var(--dur) ease, border-color var(--dur) ease, padding-left var(--dur) ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--white);
  border-left-color: var(--cyan);
  padding-left: 8px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: none;
}
.footer-contact__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.footer-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
  padding-bottom: clamp(18px, 2.4vw, 26px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-legal__copy { max-width: none; }
.footer-legal__icp { max-width: none; color: var(--muted); }

/* ---------- 9. 显现增强 ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}
html.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav__list { gap: 14px; }
  .site-nav__link { font-size: 12.5px; letter-spacing: 0.1em; }
  .header-cta { padding: 9px 12px; font-size: 12px; }
}

@media (max-width: 900px) {
  :root {
    --rail-w: 0px;
    --top-h: 0px;
    --bar-h: 56px;
    --head-h: 56px;
  }

  body { padding-left: 0; padding-top: var(--head-h); }

  .brand-rail { display: none; }
  .header-top { display: none; }
  .brand-inline { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .skip-link { left: 12px; }

  .header-bar { height: var(--bar-h); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--indigo);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.5);
    padding: 4px var(--pad) 18px;
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
  }
  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__link {
    display: block;
    padding: 15px 0 15px 14px;
    font-size: 15px;
    letter-spacing: 0.12em;
    color: var(--white);
  }
  .site-nav__link::before {
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 3px;
    transform: scaleY(0);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link:hover::before,
  .site-nav__link:focus-visible::before { transform: scaleY(1); }
  .site-nav__link[aria-current="page"]::before {
    transform: scaleY(1);
    background: var(--cyan);
  }

  .header-cta {
    display: block;
    margin: 16px 0 0;
    align-self: stretch;
    text-align: center;
    padding: 13px 16px;
    font-size: 13px;
  }

  .grid--7-5,
  .grid--3-9 { grid-template-columns: 1fr; }

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

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-head { align-items: flex-start; }
  .header-bar::after { height: 2px; }
}

/* ---------- 11. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
