/* ===========================================================
   乐鱼赛场 · 共享样式表 /assets/site.css
   =========================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(90% 60% at 100% 0%, rgba(127, 212, 245, .30), transparent 62%),
    radial-gradient(70% 55% at 0% 10%, rgba(255, 176, 32, .18), transparent 64%),
    linear-gradient(180deg, #FFF9F1 0%, var(--sand) 45%, #FFF3E3 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

a { color: var(--ocean); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 5.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1em; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --sun:      #FFB020;   /* 落日金 */
  --deep:     #0B3C6E;   /* 深海蓝 */
  --ocean:    #1B7FD4;   /* 海洋蓝 */
  --sky:      #7FD4F5;   /* 浅海渐变 */
  --tropic:   #12A87A;   /* 热带绿 */
  --coral:    #FF6B4A;   /* 珊瑚橙 */
  --sand:     #FFF7EC;   /* 沙岸白 */
  --ink:      #071A2F;   /* 夜色墨 */
  --mint:     #E3F5EF;   /* 薄荷雾 */
  --dyellow:  #FFD466;   /* 数据黄 */

  --ink-70:   rgba(7, 26, 47, .74);
  --ink-45:   rgba(7, 26, 47, .50);
  --line:     rgba(11, 60, 110, .14);
  --on-deep:  #EAF3FB;

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

  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;

  --container: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 24px 48px -30px rgba(11, 60, 110, .55);
  --shadow-card: 0 18px 36px -26px rgba(11, 60, 110, .50);
}

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

/* ---------- 3. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--sky);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 18px 34px -18px rgba(11, 60, 110, .9);
  transition: top .28s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 4. 共享头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-top: 5px solid var(--sun);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 236, .93);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(255, 249, 242, .99);
  box-shadow: 0 18px 34px -28px rgba(11, 60, 110, .85);
}

.header-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  transition: padding .3s var(--ease);
}

.site-header[data-scrolled] .header-frame {
  padding-top: 8px;
  padding-bottom: 8px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--sky), var(--ocean) 45%, var(--sun) 78%, var(--coral));
  transition: width .12s linear;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--deep), var(--ocean) 70%, var(--sky));
  box-shadow: inset 0 -6px 14px rgba(7, 26, 47, .35);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border-radius: 50%;
  border: 3px solid var(--sun);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-28deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--sun);
}

.brand-text { display: grid; gap: 1px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
  color: var(--deep);
  letter-spacing: .01em;
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: .16em;
  color: var(--ocean);
}

/* 导航 */
.primary-nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  list-style: none;
  border-radius: var(--pill);
  background: rgba(11, 60, 110, .06);
  border: 1px solid rgba(11, 60, 110, .10);
}

.nav-link {
  display: block;
  padding: 8px 15px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
  white-space: nowrap;
  text-decoration: none;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.nav-link:hover {
  background: #fff;
  color: var(--ocean);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--deep), var(--ocean));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(11, 60, 110, .95);
}

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.ghost-link {
  padding: 8px 10px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.ghost-link:hover {
  color: var(--ocean);
  border-bottom-color: var(--sun);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              background .26s var(--ease), color .26s var(--ease);
}

.btn--sun {
  background: linear-gradient(135deg, var(--sun) 0%, var(--coral) 100%);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(255, 107, 74, .95);
}

.btn--sun:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(255, 107, 74, 1);
}

.btn--ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid rgba(27, 127, 212, .55);
}

.btn--ghost:hover {
  background: rgba(27, 127, 212, .10);
  transform: translateY(-2px);
}

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

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1.5px solid rgba(11, 60, 110, .18);
  border-radius: var(--pill);
  background: #fff;
  color: var(--deep);
  font-weight: 700;
  cursor: pointer;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.nav-toggle:hover { border-color: var(--ocean); }

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--deep);
  transition: transform .3s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__label { font-size: 14px; letter-spacing: .02em; }

/* ---------- 5. 共享尾 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding-bottom: 34px;
  color: var(--on-deep);
  background-color: var(--deep);
  background-image:
    radial-gradient(90% 80% at 8% 0%, rgba(27, 127, 212, .60), transparent 60%),
    radial-gradient(70% 70% at 100% 10%, rgba(255, 176, 32, .22), transparent 62%),
    linear-gradient(180deg, #0E4880 0%, var(--deep) 42%, #061D38 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sun), var(--coral) 30%, var(--sky) 62%, var(--tropic));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 262px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 62px var(--gutter) 0;
}

.footer-brand__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .02em;
  color: #fff;
}

.footer-brand__line {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--sky);
}

.footer-trust {
  margin: 0 0 22px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(234, 243, 251, .76);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 30px 24px;
  min-width: 0;
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--sun);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-link {
  display: inline-block;
  font-size: 15px;
  color: rgba(234, 243, 251, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--sun);
}

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

.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.contact-item { display: grid; gap: 2px; min-width: 0; }

.contact-key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--sky);
}

.contact-value {
  font-size: 14.5px;
  line-height: 1.65;
  color: #fff;
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 12.8px;
  line-height: 1.75;
  color: rgba(234, 243, 251, .62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--container);
  margin: 46px auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(234, 243, 251, .16);
  font-size: 13.5px;
  color: rgba(234, 243, 251, .72);
}

.closing-line { margin: 0; }

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
}

.legal,
.copyright {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--ocean), var(--deep));
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  box-shadow: 0 20px 34px -18px rgba(11, 60, 110, .95);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top::before {
  content: "";
  width: 13px;
  height: 13px;
  border-left: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

.to-top:hover { transform: translateY(-3px); }

/* ---------- 6. 布局与通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 90px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-title { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ocean);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sun), var(--coral));
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-70);
}

.stack { display: grid; gap: 18px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-45);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li::after {
  content: "/";
  color: rgba(11, 60, 110, .32);
}

.breadcrumb li:last-child::after { content: none; }

.breadcrumb a { color: var(--ocean); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 资料卡 */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(11, 60, 110, .07);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 34px;
  bottom: 34px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--sun), var(--coral));
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 52px -30px rgba(11, 60, 110, .62);
}

.card:hover::before { opacity: 1; }

.card__title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

/* 标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--pill);
  border: 1px solid rgba(11, 60, 110, .08);
  background: var(--mint);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.chip--sun { background: rgba(255, 176, 32, .18); color: #8A5600; }
.chip--ocean { background: rgba(27, 127, 212, .14); color: #0B3C6E; }
.chip--tropic { background: rgba(18, 168, 122, .16); color: #0A6E50; }
.chip--coral { background: rgba(255, 107, 74, .17); color: #A8341C; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

/* 数据 */
.stat { display: grid; gap: 3px; }

.stat__value,
.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
  color: var(--deep);
}

.stat__value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat__label {
  font-size: 12.8px;
  letter-spacing: .1em;
  color: var(--ink-45);
}

/* 图片容器 */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background-image:
    radial-gradient(80% 90% at 12% 12%, rgba(255, 176, 32, .55), transparent 58%),
    linear-gradient(155deg, var(--sky) 0%, var(--ocean) 52%, var(--deep) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(7, 26, 47, .58), rgba(7, 26, 47, 0));
  pointer-events: none;
}

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

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

/* 波浪分隔 */
.wave-divider {
  height: 64px;
  background-image:
    radial-gradient(circle at 44px 0, transparent 21px, rgba(127, 212, 245, .42) 22px, transparent 23px);
  background-size: 88px 64px;
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: wave-drift 12s linear infinite;
}

@keyframes wave-drift {
  to { background-position: -88px 0; }
}

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

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

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-frame { grid-template-columns: minmax(0, 1fr) auto; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: block;
    justify-self: stretch;
    max-height: min(72vh, 560px);
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: 0 34px 64px -34px rgba(11, 60, 110, .70);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-link { padding: 13px 16px; font-size: 16.5px; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding-top: 52px; }
}

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

@media (max-width: 620px) {
  .brand-line { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 17.5px; }
  .footer-bottom { justify-content: flex-start; }
  .to-top { width: 46px; height: 46px; }
}

/* ---------- 8. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .to-top:hover { transform: none; }
  .wave-divider { animation: none; }
}
