/* ============================================================
   搏鱼体育 · /assets/site.css
   共享外壳：坐标轴轨道导航 + 顶部刻度条 + 深水蓝页脚 + 基础组件
   ============================================================ */

/* ---------- 01 · TOKENS ---------- */
:root {
  --deep: #0A2A43;
  --deep-dark: #05182A;
  --deep-lift: #17456B;
  --accent: #FF5A1F;
  --accent-soft: #FF8C5A;
  --coord: #7FA3B8;
  --data: #FFD24A;
  --water: #EDF3F7;
  --paper: #FFFFFF;
  --ink: #16232C;
  --line: #C9D8E0;

  --rail-w: 96px;
  --scale-h: 40px;
  --mob-bar: 56px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(52px, 8.5vw, 148px);
  --fs-h2: clamp(24px, 2.6vw, 34px);
  --fs-h3: clamp(17px, 1.5vw, 21px);
  --fs-body: 16.5px;
  --gap: clamp(20px, 2.8vw, 40px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 1px 0 rgba(10, 42, 67, .06), 0 10px 28px -22px rgba(5, 24, 42, .55);
}

/* ---------- 02 · RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--scale-h);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--water);
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 163, 184, .10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(127, 163, 184, .10) 0 1px, transparent 1px 48px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
hr { border: 0; }
table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--accent); color: var(--deep-dark); }

/* ---------- 03 · LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.section {
  position: relative;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(48px, 7vw, 104px);
}
.section--deep { background: var(--deep); color: var(--water); }
.section--paper { background: var(--paper); }
.section--water { background: var(--water); }

.stack > * + * { margin-top: var(--gap); }

.rule {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 0;
}
.section--deep .rule { background: var(--deep-lift); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.grid-lines {
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 163, 184, .16) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(127, 163, 184, .16) 0 1px, transparent 1px 48px);
}

/* ---------- 04 · TYPOGRAPHY ---------- */
.display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--deep);
  margin: 0;
}
.section--deep .display { color: var(--paper); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
}

.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.72;
  color: var(--ink);
  max-width: 36em;
}
.section--deep .lede { color: rgba(237, 243, 247, .82); }

.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coord);
  line-height: 1.4;
}
.index-tag::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

.data-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.text-accent { color: var(--accent); }
.text-data { color: var(--data); }
.text-coord { color: var(--coord); }

/* ---------- 05 · BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: var(--deep-dark);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 0 8px 22px -14px rgba(255, 90, 31, .9);
}

.btn--ghost {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--deep);
}
.section--deep .btn--ghost {
  color: var(--water);
  border-color: var(--deep-lift);
}
.section--deep .btn--ghost:hover { border-color: var(--accent); color: var(--paper); }

.btn--sm { padding: 10px 16px; font-size: 11.5px; letter-spacing: .12em; }

/* ---------- 06 · BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coord);
}
.breadcrumb__item {
  text-decoration: none;
  color: inherit;
  transition: color .18s var(--ease);
}
a.breadcrumb__item:hover { color: var(--accent); }
.breadcrumb__item[aria-current="page"] { color: var(--deep); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 07 · IMAGE CONTAINERS ---------- */
.figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  border: 1px solid var(--line);
  background-color: var(--deep-lift);
  background-image:
    linear-gradient(140deg, rgba(23, 69, 107, .95) 0%, rgba(5, 24, 42, .95) 100%),
    repeating-linear-gradient(0deg, rgba(127, 163, 184, .22) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(127, 163, 184, .22) 0 1px, transparent 1px 48px);
  box-shadow: var(--shadow-soft);
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -22deg,
    rgba(127, 163, 184, .16) 0 1px,
    transparent 1px 26px
  );
  mix-blend-mode: screen;
}
.figure__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coord);
}

/* ---------- 08 · SKIP LINK ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-decoration: none;
  border: 1px solid var(--accent);
  transform: translateY(-220%);
  transition: transform .2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--data);
  outline-offset: 2px;
}

/* ---------- 09 · HEADER SHELL ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

/* 顶部刻度条 */
.scale {
  position: absolute;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--scale-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: var(--deep-dark);
  border-bottom: 1px solid var(--deep-lift);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coord);
}
.scale__label { flex: 0 0 auto; white-space: nowrap; }
.scale__track {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  background: var(--deep-lift);
  overflow: hidden;
}
.scale__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .08s linear;
}
.scale__value {
  flex: 0 0 auto;
  min-width: 42px;
  text-align: right;
  color: var(--data);
}

/* 左侧坐标轴轨道 */
.rail {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: var(--deep-dark);
  border-right: 1px solid var(--deep-lift);
  color: var(--water);
  overflow: hidden;
}

.rail__top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--deep-lift);
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--water);
}
.brand__mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  display: block;
  transition: transform .18s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__name {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .30em;
  line-height: 1;
  padding-left: .30em;
}
.brand__sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  color: var(--coord);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--deep-lift);
  color: var(--water);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-soft); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 15px;
}
.nav-toggle__bars span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.rail[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.rail[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.rail[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* 小屏细进度（桌面隐藏） */
.rail__progress { display: none; }

/* 主导航 */
.rail__nav {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 0;
}
.rail__list { display: block; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 8px 12px 14px;
  text-decoration: none;
  color: var(--coord);
  box-shadow: inset 2px 0 0 transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rail__link:hover {
  color: var(--paper);
  background: rgba(127, 163, 184, .08);
  box-shadow: inset 2px 0 0 var(--deep-lift);
}
.rail__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 90, 31, .10);
  box-shadow: inset 2px 0 0 var(--accent);
}
.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--coord);
  line-height: 1.2;
}
.rail__link[aria-current="page"] .rail__idx { color: var(--accent-soft); }
.rail__label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* 轨道底部 */
.rail__foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 18px;
  border-top: 1px solid var(--deep-lift);
}
.rail__cta {
  display: block;
  padding: 12px 6px;
  background: var(--accent);
  color: var(--deep-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .18s var(--ease);
}
.rail__cta:hover { background: var(--accent-soft); }
.rail__meta {
  display: block;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-align: center;
  color: var(--coord);
  text-decoration: none;
  border-top: 1px dashed var(--deep-lift);
  padding-top: 10px;
  transition: color .18s var(--ease);
}
.rail__meta:hover { color: var(--data); }

/* ---------- 10 · FOOTER ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(26px, 3vw, 40px);
  background-color: var(--deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 163, 184, .12) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(127, 163, 184, .12) 0 1px, transparent 1px 48px);
  border-top: 1px solid var(--deep-lift);
  color: var(--water);
}

.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer__logo {
  display: inline-block;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--paper);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer__logo:hover { color: var(--accent-soft); }

.footer__tagline {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(237, 243, 247, .78);
  max-width: 22em;
}
.footer__meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--deep-lift);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--coord);
  max-width: 24em;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list a {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(237, 243, 247, .80);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.footer__contact { display: flex; flex-direction: column; }
.footer__line {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(237, 243, 247, .80);
  word-break: break-word;
}
.footer__line + .footer__line { margin-top: 6px; }
.footer__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--deep-lift);
  font-size: 12px;
  line-height: 1.7;
  color: var(--coord);
}

.footer__legal {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--deep-lift);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .10em;
  color: var(--coord);
  line-height: 1.6;
}

/* ---------- 11 · MOTION HOOKS ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12 · RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--mob-bar) + 16px); }

  body {
    padding-left: 0;
    padding-top: var(--mob-bar);
  }

  .scale { display: none; }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--mob-bar);
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--deep-lift);
    overflow: hidden;
    transition: height .30s var(--ease);
  }
  .rail[data-open] {
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .rail__top {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--mob-bar);
    padding: 0 16px;
    border-bottom: 0;
  }

  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .brand__name { writing-mode: horizontal-tb; font-size: 15px; letter-spacing: .16em; padding-left: 0; }
  .brand__sub { display: inline; }

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

  .rail__progress {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--deep-lift);
    overflow: hidden;
  }
  .rail__progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width .08s linear;
  }

  .rail__nav {
    flex: 1 1 auto;
    padding: 8px 0 0;
    border-top: 1px solid var(--deep-lift);
  }
  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 17px 20px;
    box-shadow: inset 3px 0 0 transparent;
  }
  .rail__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .rail__link[aria-current="page"]::after { display: none; }
  .rail__idx { font-size: 11px; }
  .rail__label { font-size: 15px; }

  .rail__foot {
    padding: 16px 20px 26px;
  }
  .rail__cta { padding: 15px 10px; font-size: 13px; }
  .rail__meta { font-size: 11px; }

  html.nav-open { overflow: hidden; }

  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 {
    grid-column: 1 / -1;
  }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__contact { grid-column: auto; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --fs-body: 16px; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__tagline, .footer__meta { max-width: none; }
}

/* ---------- 13 · REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .rail__cta:hover,
  .brand:hover .brand__mark { transform: none; }
  .scale__fill,
  .rail__progress-fill { transition: none; }
}
