/* =========================================================
   乐鱼赛事 · 共享外壳样式 /assets/site.css
   深海蓝近单色基底 + 乐鱼橙动线 + 青绿数据 + 暖黄时间标记
   ========================================================= */

:root {
  --navy: #071A2B;
  --navy-mid: #0E2433;
  --panel: #122C3E;
  --line: #24465C;
  --ink: #F4F8FB;
  --muted: #A9BCCB;
  --orange: #FF6B2C;
  --orange-soft: #FFB38A;
  --mint: #35D6B2;
  --amber: #FFC857;
  --white: #FFFFFF;

  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-data: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", monospace;

  --u: 8px;
  --shell-w: 1240px;
  --gutter: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.22, .72, .28, 1);
  --dur: .28s;
  --header-pad: 16px;
}

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

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

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

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

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

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

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

::selection {
  background: rgba(255, 107, 44, .85);
  color: #0A1C2B;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .005em;
  background-color: var(--navy);
  background-image:
    radial-gradient(58% 42% at 84% -8%, rgba(255, 107, 44, .13), transparent 68%),
    radial-gradient(46% 36% at 4% 2%, rgba(53, 214, 178, .09), transparent 70%),
    linear-gradient(rgba(36, 70, 92, .26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 70, 92, .26) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: scroll, scroll, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }

p { max-width: 68ch; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 容器 ---------- */
.shell {
  width: min(var(--shell-w), 100% - 48px);
  margin-inline: auto;
}

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(36, 70, 92, 0));
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #0A1C2B;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  transform: translateY(calc(-100% - 24px));
  transition: transform .22s var(--ease);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #0A1C2B;
  box-shadow: 0 10px 26px rgba(255, 107, 44, .22);
}

.btn-primary:hover {
  background: #FF7F49;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 107, 44, .3);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  border-color: rgba(36, 70, 92, .95);
}

.btn-quiet:hover {
  color: var(--white);
  border-color: rgba(53, 214, 178, .7);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn-arrow,
.footer-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* =========================================================
   HEADER · 双浮岛胶囊
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: var(--header-pad) 0;
  border-bottom: 1px solid rgba(36, 70, 92, .65);
  background: linear-gradient(180deg, rgba(7, 26, 43, .96) 0%, rgba(7, 26, 43, .74) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: padding var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.site-header.is-condensed {
  --header-pad: 8px;
  background: rgba(7, 26, 43, .97);
  border-bottom-color: rgba(36, 70, 92, .95);
}

.read-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(36, 70, 92, .5);
  overflow: hidden;
}

.read-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--orange));
  transition: width .1s linear;
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(var(--shell-w), 100% - 48px);
  margin-inline: auto;
}

/* 品牌浮岛 */
.brand-cap {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 44, 62, .78);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.brand-cap:hover {
  border-color: rgba(255, 107, 44, .6);
  background: rgba(18, 44, 62, .96);
  transform: translateY(-1px);
}

.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--orange) 0%, #E24E12 78%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #0A1C2B;
  transform: rotate(-45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0A1C2B;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}

.brand-desc {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.site-header.is-condensed .brand-mark {
  width: 26px;
  height: 26px;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 44, 62, .82);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .08em;
}

.nav-toggle-glyph {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle-glyph::before,
.nav-toggle-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), top .24s var(--ease);
}

.nav-toggle-glyph::before { top: 0; }
.nav-toggle-glyph::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-glyph::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-glyph::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  line-height: 1;
}

/* 导航胶囊 */
.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(36, 70, 92, .9);
  border-radius: 999px;
  background: rgba(18, 44, 62, .66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(36, 70, 92, .6);
}

.nav-link[aria-current="page"] {
  color: var(--orange-soft);
  background: rgba(255, 107, 44, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 44, .45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(36, 70, 92, .9);
}

/* =========================================================
   FOOTER · 第二层索引
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 5vw, 68px) 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 36, 51, .92) 0%, rgba(7, 26, 43, .98) 82%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px -10% auto -10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, .55), rgba(53, 214, 178, .4), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background: repeating-linear-gradient(115deg, rgba(36, 70, 92, .34) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, .8fr) 1.5fr;
  gap: clamp(22px, 2.6vw, 46px);
  width: min(var(--shell-w), 100% - 48px);
  margin-inline: auto;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}

.footer-brand:hover { color: var(--orange-soft); }

.footer-tagline {
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 107, 44, .45);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-soft);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-cta:hover {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-idx {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: .1em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  font-size: 13.5px;
  color: #C7D6E1;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--orange-soft);
  border-bottom-color: rgba(255, 179, 138, .45);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(36, 70, 92, .55);
}

.contact-k {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

.contact-v {
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer-note {
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(169, 188, 203, .82);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  width: min(var(--shell-w), 100% - 48px);
  margin: clamp(30px, 4vw, 54px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 70, 92, .8);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-copy { margin: 0; }

.footer-icp {
  margin: 0;
  color: rgba(169, 188, 203, .9);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-legal-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-legal-links a:hover {
  color: var(--orange-soft);
  border-bottom-color: rgba(255, 179, 138, .5);
}

/* =========================================================
   通用页面组件
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(36, 70, 92, .95);
  border-radius: 2px;
  background: rgba(18, 44, 62, .72);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.tag[data-tone="time"] {
  color: var(--amber);
  border-color: rgba(255, 200, 87, .42);
  background: rgba(255, 200, 87, .08);
}

.tag[data-tone="data"] {
  color: var(--mint);
  border-color: rgba(53, 214, 178, .42);
  background: rgba(53, 214, 178, .08);
}

.tag[data-tone="live"] {
  color: var(--orange-soft);
  border-color: rgba(255, 107, 44, .48);
  background: rgba(255, 107, 44, .1);
}

.data-fig {
  font-family: var(--font-data);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--mint);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.panel:hover {
  border-color: rgba(255, 107, 44, .45);
  transform: translateY(-2px);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--panel) 0%, #0A2334 72%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 43, 0) 45%, rgba(7, 26, 43, .62) 100%);
}

.media-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }

/* 面包屑 */
.crumbs {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "›";
  color: rgba(169, 188, 203, .5);
}

.crumbs a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.crumbs a:hover {
  color: var(--orange-soft);
  border-bottom-color: rgba(255, 179, 138, .5);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

/* 目录高亮 */
[data-scroll-spy] a[aria-current="true"] {
  color: var(--orange-soft);
  border-left-color: var(--orange);
}

/* 渐进显现 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .nav-actions .btn-quiet { display: none; }
}

@media (max-width: 1024px) {
  .site-header { --header-pad: 10px; }

  .header-shell {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(10, 29, 44, .98);
    border-color: rgba(36, 70, 92, .95);
    box-shadow: 0 28px 64px rgba(0, 0, 0, .5);
  }

  .site-nav[data-open] {
    display: flex;
    animation: nav-drop .24s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 8px 0 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(36, 70, 92, .9);
  }

  .nav-actions .btn {
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
  }

  .nav-actions .btn-quiet { display: inline-flex; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .footer-lead { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .brand-desc { display: none; }
}

@media (max-width: 640px) {
  .shell,
  .header-shell,
  .footer-shell,
  .footer-base {
    width: min(var(--shell-w), 100% - 32px);
  }

  .site-header { --header-pad: 8px; }

  .brand-cap { padding: 5px 14px 5px 5px; }

  .brand-mark { width: 26px; height: 26px; }

  .nav-toggle { padding: 8px 12px; }

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

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-legal-links {
    margin-left: 0;
    gap: 14px;
  }

  .contact-list li { grid-template-columns: 34px minmax(0, 1fr); }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .read-bar { transition: none; }
}
