/* ============================================================
   乐鱼入口 · 共享站点样式 /assets/site.css
   轨道导航 · 蓝图网格 · 赛事数据舱
   ============================================================ */

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

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

body { margin: 0; }

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

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

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

button { font: inherit; color: inherit; }

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

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #061826;
  --ink-800: #0B2A3D;
  --ink-700: #123F57;
  --coral: #FF6B4A;
  --aqua: #39E6D0;
  --mist: #8FB3C4;
  --paper: #F2F7F8;
  --coral-soft: #FFB49F;
  --teal-deep: #0E6B66;
  --grid: #D9E7EA;

  --line: rgba(217, 231, 234, 0.12);
  --line-soft: rgba(217, 231, 234, 0.07);

  --rail-w: 272px;
  --gutter: 2.5rem;
  --maxw: 1160px;

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

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --radius: 14px;
}

/* ---------- 3. 基础排版与背景 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(58rem 30rem at 84% -12%, rgba(57, 230, 208, 0.13), transparent 68%),
    radial-gradient(46rem 26rem at 2% 104%, rgba(255, 107, 74, 0.11), transparent 72%),
    linear-gradient(rgba(217, 231, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 231, 234, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.24; font-weight: 800; letter-spacing: -0.005em; }

p { max-width: 68ch; }

::selection { background: rgba(255, 107, 74, 0.35); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--aqua);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. 轨道头部（桌面） ---------- */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0C2E42 0%, #08222F 44%, #051520 100%);
  border-right: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(57, 230, 208, 0.55) 26%, rgba(255, 107, 74, 0.55) 74%, transparent);
  opacity: 0.6;
}

.site-header__bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 20px 22px;
  border-bottom: 1px solid var(--line);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #04202A;
  background: linear-gradient(145deg, var(--aqua) 0%, #7FF0E3 42%, var(--coral-soft) 100%);
  border-radius: 13px 4px 13px 4px;
  box-shadow: 0 6px 20px rgba(57, 230, 208, 0.22);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.28;
  min-width: 0;
}

.brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand__line {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--aqua);
}

.brand--footer .brand__mark { width: 44px; height: 44px; }

/* 快捷检索 */
.quick-entry {
  display: grid;
  gap: 8px;
}

.quick-entry__tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
}

.quick-entry__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--mist);
  background: rgba(6, 24, 38, 0.55);
  border: 1px dashed rgba(57, 230, 208, 0.3);
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, border-style 0.2s;
}

.quick-entry__field:hover,
.quick-entry__field:focus-visible {
  color: var(--paper);
  border-style: solid;
  border-color: var(--aqua);
  background: rgba(57, 230, 208, 0.09);
}

.quick-entry__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.quick-entry__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

/* 移动端开关（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: rgba(57, 230, 208, 0.09);
  border: 1px solid rgba(57, 230, 208, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover { background: rgba(57, 230, 208, 0.18); border-color: var(--aqua); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--aqua);
  transition: transform 0.26s var(--ease), opacity 0.2s ease;
}

.nav-toggle__label { line-height: 1; }

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 导航主体 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 230, 208, 0.35) transparent;
}

.site-nav::-webkit-scrollbar { width: 5px; }
.site-nav::-webkit-scrollbar-thumb { background: rgba(57, 230, 208, 0.32); border-radius: 8px; }

.site-nav__title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.site-nav__coord {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: rgba(143, 179, 196, 0.42);
}

.nav-list { display: grid; gap: 3px; }

.nav-list__item { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mist);
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s, padding-left 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(18, 63, 87, 0.55);
  border-left-color: var(--aqua);
  padding-left: 15px;
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(255, 107, 74, 0.22), rgba(57, 230, 208, 0.07) 78%, transparent);
  border-left-color: var(--coral);
}

.nav-link__text { min-width: 0; }

.nav-link__idx {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(143, 179, 196, 0.5);
}

.nav-link[aria-current="page"] .nav-link__idx { color: var(--coral); }

.site-nav__foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 16px 10px 0;
  border-top: 1px solid var(--line);
}

.site-nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(143, 179, 196, 0.85);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(57, 230, 208, 0.16);
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 29, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 底部阅读进度 */
.read-meter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 88;
  background: rgba(6, 24, 38, 0.75);
  pointer-events: none;
}

.read-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--coral));
}

/* ---------- 6. 通用组件 ---------- */
.container {
  width: min(100% - var(--gutter), var(--maxw));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  color: #2A0D05;
  background: var(--coral);
}

.btn--primary:hover { background: #FF8065; transform: translateY(-1px); }

.btn--ghost {
  color: var(--paper);
  background: rgba(6, 24, 38, 0.5);
  border-color: rgba(57, 230, 208, 0.35);
}

.btn--ghost:hover {
  border-color: var(--aqua);
  background: rgba(57, 230, 208, 0.1);
  transform: translateY(-1px);
}

.btn--sm { padding: 9px 14px; font-size: 0.76rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumb a { color: var(--mist); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb__sep { color: rgba(143, 179, 196, 0.45); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.page-head { padding: 64px 0 40px; }

.page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--aqua);
}

.page-head__title {
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-head__lead {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mist);
}

.stack { display: flex; flex-direction: column; gap: 1.5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.data-card {
  position: relative;
  padding: 20px;
  background: linear-gradient(160deg, rgba(18, 63, 87, 0.55), rgba(6, 24, 38, 0.9));
  border: 1px solid var(--ink-700);
  border-radius: 4px 16px 4px 16px;
}

.data-card__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua);
}

.data-card__value {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
}

/* 图片容器基础 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-700);
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900));
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ink-900);
  background: rgba(57, 230, 208, 0.9);
  border-radius: 999px;
}

/* 滚动显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  padding-top: 56px;
  background: linear-gradient(180deg, rgba(12, 46, 66, 0.72), #04121D 62%);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(100% - var(--gutter), var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2rem;
}

.site-footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.site-footer__summary {
  max-width: 32ch;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--mist);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
}

.footer-links { display: grid; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--mist);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover { color: var(--paper); padding-left: 4px; }

.footer-contact { display: grid; gap: 10px; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-contact dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(143, 179, 196, 0.65);
}

.footer-contact dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 14px;
  font-size: 0.72rem;
  color: rgba(143, 179, 196, 0.7);
}

.site-footer__base {
  width: min(100% - var(--gutter), var(--maxw));
  margin: 40px auto 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(143, 179, 196, 0.78);
}

.site-footer__copy,
.site-footer__icp { margin: 0; }

.site-footer__toplink {
  margin-left: auto;
  color: var(--aqua);
  transition: color 0.2s;
}

.site-footer__toplink:hover { color: var(--coral); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 86;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #04202A;
  background: var(--aqua);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(57, 230, 208, 0.28);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.to-top:hover { background: #6FF3E4; transform: translateY(-2px); }

.to-top__arrow {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 8. 响应式 ---------- */
@media (min-width: 961px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1080px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --gutter: 2rem; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid rgba(217, 231, 234, 0.14);
    background: linear-gradient(180deg, #0C2E42, #061826);
  }

  .site-header::after { display: none; }

  .site-header__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: none;
  }

  .quick-entry { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 336px);
    z-index: 96;
    padding: 30px 16px 32px;
    background: linear-gradient(180deg, #0C2E42, #051520 88%);
    border-right: 1px solid rgba(57, 230, 208, 0.28);
    box-shadow: 22px 0 60px rgba(0, 0, 0, 0.58);
    transform: translateX(-103%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.36s var(--ease), visibility 0s linear 0.36s;
  }

  .site-header[data-open] .site-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.36s var(--ease), visibility 0s linear 0s;
  }

  .nav-scrim { display: block; z-index: 94; }

  .site-header[data-open] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .page-head { padding: 40px 0 28px; }

  .site-footer { margin-top: 64px; padding-top: 42px; }
}

@media (max-width: 860px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 1.75rem; }

  body { font-size: 15px; line-height: 1.78; }

  .brand__line { display: none; }
  .brand__name { font-size: 0.95rem; }

  .grid--3 { grid-template-columns: 1fr; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-footer__base { font-size: 0.62rem; }
  .site-footer__toplink { margin-left: 0; }

  .to-top { right: 12px; bottom: 16px; width: 40px; height: 40px; }

  .data-card__value { font-size: 1.55rem; }
}

/* ---------- 9. 动效降级 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

  .nav-toggle__bars span { transition: none; }
}
