/* ============================================================
   乐鱼赛场 · 共享外壳 / assets/site.css
   母版：看台剖面 —— 双层导视、1px 细边界、夜场数据感
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 2 · Tokens ---------- */
:root {
  /* 色彩体系 */
  --ink: #071A2F;
  --ink-deep: #0B1220;
  --steel: #183A5A;
  --cyan: #35F2D0;
  --orange: #FF7A2F;
  --yellow: #FFD166;
  --paper: #F4EBDD;
  --cream: #FFF8EC;
  --green: #5BE49B;

  /* 边界：全站只用 1px */
  --line: 1px solid rgba(24, 58, 90, 0.95);
  --line-soft: 1px solid rgba(24, 58, 90, 0.55);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 字号阶梯 */
  --step--1: clamp(0.72rem, 0.70rem + 0.12vw, 0.80rem);
  --step-0: clamp(0.95rem, 0.93rem + 0.16vw, 1.06rem);
  --step-1: clamp(1.08rem, 1.00rem + 0.40vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.90vw, 1.90rem);
  --step-3: clamp(1.70rem, 1.30rem + 1.90vw, 2.80rem);

  /* 节奏 */
  --gutter: clamp(1rem, 0.55rem + 2.2vw, 2.75rem);
  --shell-max: 1280px;
  --radius: 3px;
}

/* ---------- 3 · 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(90rem 42rem at 50% -20rem, rgba(24, 58, 90, 0.60), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--cream);
}

h1 { font-size: var(--step-3); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { max-width: 68ch; }

strong, b { font-weight: 800; color: var(--cream); }

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

#main-content { display: block; }
#main-content:focus-visible { outline: none; }

/* ---------- 4 · 容器与通用网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* ---------- 5 · 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.85rem; }

/* ---------- 6 · 页头 · 双层导视 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--steel);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header[data-compact] {
  border-bottom-color: rgba(53, 242, 208, 0.38);
  box-shadow: 0 18px 36px -30px rgba(53, 242, 208, 0.75);
}

/* 6.1 上层：品牌说明层 */
.header-strip {
  background: var(--ink);
  border-bottom: 1px solid rgba(24, 58, 90, 0.85);
}

.header-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding-block: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: rgba(244, 235, 221, 0.68);
}

.header-strip__note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: none;
}

.header-strip__meta {
  color: rgba(255, 209, 102, 0.85);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.utility-link {
  display: inline-block;
  padding-block: 0.12rem;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.utility-link:hover,
.utility-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 6.2 下层：品牌 + 主导航 */
.header-main {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.65), rgba(7, 26, 47, 0.95));
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding-block: 0.7rem;
}

/* 品牌签名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-deep);
  background: linear-gradient(150deg, var(--cyan), #17bda5);
  box-shadow:
    0 0 0 1px rgba(53, 242, 208, 0.35),
    0 8px 20px -12px rgba(53, 242, 208, 0.9);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--cream);
  font-stretch: 105%;
}

.brand__sub {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  line-height: 1.3;
  color: rgba(53, 242, 208, 0.8);
}

.brand--footer .brand__glyph {
  width: 2.7rem;
  height: 2.7rem;
  font-size: 0.86rem;
}
.brand--footer .brand__name { font-size: 1.18rem; }

/* 主导航 */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 235, 221, 0.76);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(53, 242, 208, 0.55);
  transition: color 0.18s ease;
}

.site-nav__label { display: inline-block; }

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cream);
  background: rgba(24, 58, 90, 0.62);
  border-color: var(--steel);
}
.site-nav__link:hover .site-nav__num,
.site-nav__link:focus-visible .site-nav__num { color: var(--cyan); }

/* 当前页：荧光青内描边 + 橙色心跳点 */
.site-nav__link[aria-current="page"] {
  color: var(--cream);
  border-color: rgba(53, 242, 208, 0.55);
  background: linear-gradient(180deg, rgba(53, 242, 208, 0.13), rgba(53, 242, 208, 0.02));
  box-shadow: inset 0 -2px 0 0 var(--cyan);
}
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--cyan); }

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--ink-deep);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(24, 58, 90, 0.45);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 242, 208, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

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

/* 6.3 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(24, 58, 90, 0.5);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.12s linear;
}

/* 6.4 移动端导航 */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 0.35rem var(--gutter) 1.35rem;
    background: var(--ink-deep);
    border-top: 1px solid rgba(24, 58, 90, 0.9);
    border-bottom: 1px solid rgba(53, 242, 208, 0.3);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
  }

  .site-nav[data-open] { display: block; }

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

  .site-nav__link {
    justify-content: flex-start;
    padding: 0.85rem 0.55rem;
    border: 0;
    border-bottom: 1px solid rgba(24, 58, 90, 0.7);
    border-radius: 0;
    font-size: 1rem;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    background: rgba(24, 58, 90, 0.55);
    border-color: transparent;
    border-bottom-color: rgba(53, 242, 208, 0.45);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(53, 242, 208, 0.1);
    border-color: transparent;
    border-bottom-color: rgba(53, 242, 208, 0.45);
    box-shadow: inset 3px 0 0 0 var(--cyan);
  }

  .site-nav__link[aria-current="page"]::after {
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
  }
}

@media (max-width: 720px) {
  .header-strip__note { display: none; }
  .header-strip__inner { justify-content: flex-end; padding-block: 0.4rem; }
  .header-main__inner { padding-block: 0.6rem; }
  .brand__sub { letter-spacing: 0.16em; }
}

@media (max-width: 400px) {
  .header-strip__meta { display: none; }
  .brand__name { font-size: 0.98rem; }
}

/* ---------- 7 · 页脚 · 看台导视 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--ink-deep);
  border-top: 1px solid rgba(53, 242, 208, 0.28);
  color: rgba(244, 235, 221, 0.78);
}

.footer-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(120% 62% at 50% 0%, rgba(53, 242, 208, 0.1), transparent 70%),
    repeating-linear-gradient(180deg, rgba(53, 242, 208, 0.05) 0 1px, transparent 1px 5px);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  padding-block: clamp(2.4rem, 6vw, 4rem) clamp(1.8rem, 4vw, 2.8rem);
}

.footer-brand { display: grid; gap: 1rem; align-content: start; }

.footer-brand__line {
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(244, 235, 221, 0.62);
}

.footer-brand__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: rgba(255, 209, 102, 0.82);
}

.footer-col { display: block; }

.footer-col__title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(24, 58, 90, 0.9);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.footer-col__title:not(:first-child) { margin-top: 1.7rem; }

.footer-list { display: grid; gap: 0.35rem; }

.footer-list a {
  display: inline-block;
  padding-block: 0.12rem;
  font-size: 0.92rem;
  color: rgba(244, 235, 221, 0.74);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--orange);
  padding-left: 0.25rem;
}

.contact-list { display: grid; gap: 0.8rem; }

.contact-list li { display: grid; gap: 0.15rem; }

.contact-list__key {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 209, 102, 0.9);
}

.contact-list__value {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(244, 235, 221, 0.86);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 1.1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 209, 102, 0.45);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(244, 235, 221, 0.55);
  max-width: 34ch;
}

.footer-base {
  position: relative;
  border-top: 1px solid rgba(24, 58, 90, 0.9);
  background: rgba(7, 26, 47, 0.62);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(244, 235, 221, 0.52);
}

.footer-base__copy,
.footer-base__icp { max-width: none; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base__inner { justify-content: flex-start; }
}

/* ---------- 8 · 心跳点 ---------- */
.pulse-dot {
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  animation: heart-pulse 2.4s ease-out 2 both;
}

@keyframes heart-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 47, 0.55); }
  70%  { box-shadow: 0 0 0 0.5rem rgba(255, 122, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 47, 0); }
}

/* ---------- 9 · 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(24, 58, 90, 0.5);
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--cyan);
  background: rgba(53, 242, 208, 0.12);
  color: var(--cyan);
  box-shadow: 0 14px 28px -24px rgba(53, 242, 208, 0.9);
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #1fd2b4);
  color: var(--ink-deep);
  font-weight: 800;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #62f8de, var(--cyan));
  color: var(--ink-deep);
}

.btn--heart {
  border-color: transparent;
  background: var(--orange);
  color: #200d03;
  font-weight: 800;
}
.btn--heart:hover,
.btn--heart:focus-visible {
  border-color: transparent;
  background: #ff915c;
  color: #200d03;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 235, 221, 0.32);
  color: rgba(244, 235, 221, 0.88);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  background: rgba(53, 242, 208, 0.1);
  color: var(--cyan);
}

/* ---------- 10 · 眉题 / 面板 / 面包屑 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.panel {
  position: relative;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid rgba(24, 58, 90, 0.95);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.panel:hover,
.panel:focus-within {
  border-color: rgba(53, 242, 208, 0.5);
  background: rgba(11, 18, 32, 0.95);
  box-shadow: 0 22px 42px -34px rgba(53, 242, 208, 0.8);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.9rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(244, 235, 221, 0.5);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb li + li::before {
  content: "/";
  color: rgba(53, 242, 208, 0.5);
}
.breadcrumb a { transition: color 0.18s ease; }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: rgba(244, 235, 221, 0.88); }

/* ---------- 11 · 图片容器基础（页面阶段填充 img） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(24, 58, 90, 0.9);
  border-radius: var(--radius);
  isolation: isolate;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(120% 90% at 18% 118%, rgba(53, 242, 208, 0.2), transparent 62%),
    linear-gradient(160deg, #0e2942 0%, #071a2f 58%, #0b1220 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(53, 242, 208, 0.07) 0 1px,
    transparent 1px 4px
  );
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 12 · 降低动态偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .pulse-dot {
    animation: none !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.18);
  }

  .scroll-meter__bar { transition: none !important; }
}
