/* =========================================================
   乐鱼体育 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

/* ---------- 2. Design tokens ---------- */
:root {
  /* 品牌色板 */
  --water-blue: #0A6EBD;
  --ink-blue: #0B1B2B;
  --night: #071320;
  --lime: #B6FF3C;
  --ref-yellow: #FFD23F;
  --sky: #7FD4FF;
  --mist: #E8F1F8;
  --steel: #9AA9B8;
  --teal: #0F4C5C;
  --indigo: #3B2A6B;
  --wine: #6E1F3A;
  --pitch: #1C5E3A;

  /* 字体栈 */
  --font-head: 'Oswald', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'JetBrains Mono', 'Roboto Mono', 'DIN Alternate', 'SFMono-Regular', Menlo, monospace;

  /* 尺度 */
  --shell-max: 1320px;
  --gutter: 24px;
  --radius-none: 0;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur-mid: 320ms;
  --dur-slow: 420ms;

  /* 切角 */
  --cut-sm: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --cut-md: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-lg: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--ink-blue);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--mist);
}

h1 { font-size: clamp(34px, 4.4vw, 62px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

p { max-width: 68ch; }

a { transition: color var(--dur-fast) var(--ease); }

::selection { background: var(--lime); color: var(--night); }

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

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--sky);
  text-transform: uppercase;
}

.index-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.display-xl {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.display-lg {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
}

/* ---------- 4. Layout shell ---------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 88px 0; }
.section--tight { padding: 48px 0; }
.section--flush { padding: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}

.col-12 { grid-column: span 12; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }

.rule-slant {
  height: 1px;
  border: 0;
  margin: 64px 0;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 18%, var(--teal) 82%, transparent 100%);
  transform: rotate(-0.35deg);
  transform-origin: left center;
}

.tone-teal { background: var(--teal); }
.tone-indigo { background: var(--indigo); }
.tone-wine { background: var(--wine); }
.tone-night { background: var(--night); }

/* ---------- 5. Buttons / tags / panels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  clip-path: var(--cut-md);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--lime); color: var(--night); }
.btn--primary:hover { background: #caff6b; }

.btn--ghost {
  background: transparent;
  border-color: rgba(127, 212, 255, 0.36);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--sky); color: var(--lime); }

.btn--mark { background: var(--ref-yellow); color: var(--night); }
.btn--mark:hover { background: #ffdc66; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sky);
  border: 1px solid rgba(127, 212, 255, 0.32);
  clip-path: var(--cut-sm);
}

.tag--lime { color: var(--lime); border-color: rgba(182, 255, 60, 0.5); }
.tag--yellow { color: var(--ref-yellow); border-color: rgba(255, 210, 63, 0.55); }

.panel {
  position: relative;
  padding: 32px;
  background: rgba(10, 110, 189, 0.14);
  border: 1px solid rgba(127, 212, 255, 0.14);
  clip-path: var(--cut-lg);
}

.panel--teal { background: var(--teal); border-color: rgba(127, 212, 255, 0.22); }
.panel--indigo { background: var(--indigo); border-color: rgba(127, 212, 255, 0.2); }
.panel--wine { background: var(--wine); border-color: rgba(255, 210, 63, 0.22); }
.panel--night { background: var(--night); border-color: rgba(127, 212, 255, 0.16); }

.panel--score {
  background: linear-gradient(135deg, rgba(10, 110, 189, 0.32), rgba(15, 76, 92, 0.42));
  border-color: rgba(182, 255, 60, 0.28);
}

/* ---------- 6. Media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal) 0%, var(--ink-blue) 62%, var(--night) 100%);
  clip-path: var(--cut-md);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 32, 0) 46%, rgba(7, 19, 32, 0.72) 100%);
  pointer-events: none;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 1;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--sky);
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.breadcrumb__sep { color: rgba(154, 169, 184, 0.5); }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb [aria-current="page"] { color: var(--mist); }

/* ---------- 8. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--lime);
  color: var(--night);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: var(--cut-sm);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 9. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-blue);
}

/* 上层状态条 */
.header-top {
  background: var(--night);
  border-bottom: 1px solid rgba(127, 212, 255, 0.18);
  overflow: hidden;
  max-height: 200px;
  transition: max-height var(--dur-mid) var(--ease),
              opacity 240ms var(--ease),
              border-color var(--dur-mid) var(--ease);
}

.header-top__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 20px;
}

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

.brand__mark {
  flex: none;
  width: 12px;
  height: 24px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.brand__tagline {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 当轮状态条 */
.statusbar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.statusbar__item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 18px;
  border-left: 1px solid rgba(127, 212, 255, 0.22);
}

.statusbar__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.statusbar__key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  white-space: nowrap;
}

.statusbar__val {
  font-size: 13px;
  color: var(--mist);
  white-space: nowrap;
}

.statusbar__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: statusPulse 2.6s var(--ease) infinite;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(182, 255, 60, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(182, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 255, 60, 0); }
}

/* 上层工具入口 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-link {
  padding: 6px 13px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
  border: 1px solid rgba(154, 169, 184, 0.3);
  clip-path: var(--cut-sm);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--mist);
  border-color: var(--sky);
}

.utility-link--cta {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--night);
  font-weight: 700;
}

.utility-link--cta:hover,
.utility-link--cta:focus-visible {
  background: #caff6b;
  border-color: #caff6b;
  color: var(--night);
}

/* 下层栏目导航 */
.header-main {
  background: var(--ink-blue);
  border-bottom: 1px solid rgba(127, 212, 255, 0.16);
}

.header-main__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: min-height var(--dur-mid) var(--ease);
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: block;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--steel);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--mist); }

.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--mist);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 比分摘要 */
.header-score {
  flex: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 16px;
  background: linear-gradient(120deg, rgba(10, 110, 189, 0.26), rgba(15, 76, 92, 0.34));
  border-left: 3px solid var(--lime);
  clip-path: var(--cut-md);
  white-space: nowrap;
}

.header-score__round {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.header-score__line {
  font-size: 21px;
  font-weight: 700;
  color: var(--mist);
}

.header-score__sep {
  color: var(--steel);
  font-style: normal;
  margin: 0 1px;
}

.header-score__tag {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 95;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(127, 212, 255, 0.32);
  clip-path: var(--cut-sm);
  transition: border-color var(--dur-fast) var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--mist);
  transition: transform 260ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 滚动进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--water-blue), var(--lime));
  z-index: 3;
}

/* 滚动后收窄上层 */
.site-header.is-condensed .header-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.site-header.is-condensed .header-main__inner { min-height: 54px; }

body.nav-open { overflow: hidden; }

/* ---------- 10. Footer ---------- */
.site-footer {
  margin-top: 96px;
  background: var(--night);
  border-top: 1px solid rgba(127, 212, 255, 0.16);
  color: var(--steel);
}

.site-footer__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
}

.footer-brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-brand__tagline {
  margin-top: 7px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--sky);
}

.footer-brand__note {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--steel);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sky);
}

.footer-col__list li + li { margin-top: 10px; }

.footer-col__link {
  font-size: 14px;
  color: var(--steel);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--lime);
  padding-left: 4px;
}

.site-footer__meta {
  margin-top: 52px;
  border-top: 1px solid rgba(127, 212, 255, 0.14);
}

.site-footer__meta-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  max-width: none;
}

.footer-contact__item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13px;
}

.footer-contact__key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sky);
}

.footer-contact__val { color: var(--mist); }

.footer-service {
  margin-top: 14px;
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--steel);
}

.site-footer__base {
  margin-top: 32px;
  background: #050d17;
  border-top: 1px solid rgba(127, 212, 255, 0.1);
}

.site-footer__base-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer-legal,
.footer-sign {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.footer-sign { color: rgba(154, 169, 184, 0.82); }

/* ---------- 11. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

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

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .header-top__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .brand { order: 1; }
  .header-utility { order: 2; justify-self: end; }
  .statusbar {
    order: 3;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 6px 0;
  }
  .statusbar__item { padding: 0 14px; }
  .statusbar__item:first-child { padding-left: 0; }
}

@media (max-width: 1080px) {
  .header-score__tag { display: none; }
  .nav__link { padding: 12px 11px; font-size: 14px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-score { display: none; }
  .header-main__inner { justify-content: space-between; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex: none;
    padding: 92px var(--gutter) 40px;
    background: var(--night);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 260ms var(--ease),
                transform 300ms var(--ease),
                visibility 260ms var(--ease);
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 17px 4px;
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mist);
    border-bottom: 1px solid rgba(127, 212, 255, 0.14);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    color: var(--lime);
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--lime);
  }

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

  .section { padding: 64px 0; }
  .rule-slant { margin: 48px 0; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }

  .statusbar { display: none; }
  .header-top__inner { grid-template-columns: 1fr auto; }
  .brand__tagline { max-width: 46vw; }
  .header-main__inner { min-height: 58px; }

  .panel { padding: 24px 20px; }

  .grid-12 { grid-template-columns: 1fr; gap: 20px; }
  .col-12, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2 { grid-column: span 1; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { margin-top: 64px; }
  .site-footer__inner { padding-top: 48px; }
  .site-footer__base-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .utility-link { padding: 6px 10px; font-size: 12px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::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 !important;
    transform: none !important;
  }

  .nav {
    transform: none !important;
    transition: opacity 0.001ms linear, visibility 0.001ms linear !important;
  }

  .btn:hover { transform: none; }
  .statusbar__dot { animation: none; }
}
