/* =========================================================
   鸭博体育 · 赛季手册  /assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、通用件
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, address {
  margin: 0;
}

ul[class],
ol[class] { list-style: none; margin: 0; padding: 0; }

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

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

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 主色板 */
  --ink:        #0B1B2B;
  --ink-deep:   #061320;
  --water:      #0E6B5C;
  --water-lift: #1F9C84;
  --orange:     #F26722;
  --cyan:       #4DE1C1;
  --amber:      #F0A93B;
  --red:        #D94A4A;
  --green:      #3FA45B;
  --paper:      #F4F1E8;
  --text:       #101820;
  --note:       #7A8C99;

  /* 字体栈 */
  --f-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-note: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", cursive;

  /* 尺度 */
  --rail: 78px;
  --shell: 1280px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --r-pill: 999px;

  --sp-1: 8px;
  --sp-2: 14px;
  --sp-3: 22px;
  --sp-4: 34px;
  --sp-5: 56px;
  --sp-6: 88px;

  --edge: clamp(16px, 3vw, 40px);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }

p { text-wrap: pretty; }

::selection {
  background: var(--water-lift);
  color: var(--ink-deep);
}

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

/* ---------- 4. 文字语汇 ---------- */
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--water-lift);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--f-note);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--note);
  line-height: 1.2;
}

.note-hand {
  font-family: var(--f-note);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--note);
}

.sticker {
  display: inline-block;
  font-family: var(--f-note);
  font-size: .8rem;
  line-height: 1.5;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #24180a;
  transform: rotate(-2deg);
}

.sticker--cyan { background: var(--cyan); color: #06231d; }
.sticker--paper { background: var(--paper); color: var(--text); }

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

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.prose {
  max-width: 38em;
  line-height: 1.85;
}

.prose > p + p { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }

.panel {
  background: rgba(244, 241, 232, .045);
  border: 1px solid rgba(122, 140, 153, .22);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
}

.panel--paper {
  background: var(--paper);
  color: var(--text);
  border-color: rgba(16, 24, 32, .1);
}

.panel--paper a { color: var(--water); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .04em;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn-cta {
  background: var(--orange);
  color: #1a1008;
  box-shadow: 0 8px 20px rgba(242, 103, 34, .22);
}

.btn-cta::after {
  content: "→";
  font-family: var(--f-mono);
  font-size: .95em;
}

.btn-cta:hover {
  background: #ff7d3e;
  transform: translateY(-2px);
}

/* ---------- 7. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--cyan);
  color: #06231d;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top .2s ease;
}

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

/* ---------- 8. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(122, 140, 153, .22);
}

.header-grid {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--edge);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  align-items: stretch;
}

/* 品牌轨道 */
.brand-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 24px 0 28px;
  background: var(--water);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.rail-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px 9px 22px 9px;
  background: var(--orange);
  box-shadow: inset 0 0 0 3px rgba(11, 27, 43, .38);
}

.rail-type {
  writing-mode: vertical-rl;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .34em;
  color: var(--paper);
  line-height: 1;
}

.rail-sub {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: .56rem;
  letter-spacing: .3em;
  color: rgba(244, 241, 232, .58);
  line-height: 1;
}

/* 右侧两层信息区 */
.header-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-left: clamp(16px, 2.4vw, 34px);
}

.header-upper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(122, 140, 153, .22);
}

.header-tagline {
  display: flex;
  align-items: center;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(.92rem, 1.2vw, 1.1rem);
  letter-spacing: .01em;
  color: var(--paper);
}

.header-tagline::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--cyan);
}

.header-search-hint {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
  gap: 9px;
  margin: 0;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--note);
}

.header-search-hint .mono {
  flex: none;
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--cyan);
  border: 1px solid rgba(77, 225, 193, .42);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}

.utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.utility-nav a {
  font-size: .78rem;
  color: var(--note);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

.utility-nav a:hover {
  color: var(--paper);
  border-bottom-color: var(--water-lift);
}

.header-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 14px;
}

/* 主导航 */
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9rem;
  color: rgba(244, 241, 232, .78);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.primary-nav .mono {
  font-size: .6rem;
  color: var(--water-lift);
}

.primary-nav a:hover {
  background: rgba(31, 156, 132, .16);
  color: var(--paper);
}

.primary-nav a[aria-current="page"] {
  background: var(--water);
  border-color: rgba(77, 225, 193, .48);
  color: var(--paper);
}

.primary-nav a[aria-current="page"] .mono { color: var(--cyan); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(77, 225, 193, .35);
  border-radius: var(--r-pill);
  background: rgba(31, 156, 132, .14);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .06em;
}

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .2s 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);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  position: relative;
  background: var(--ink-deep);
  color: rgba(244, 241, 232, .76);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--water) 0 34%,
    var(--cyan) 34% 47%,
    var(--orange) 47% 60%,
    rgba(122, 140, 153, .25) 60% 100%
  );
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(46px, 7vw, 84px) var(--edge) clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.footer-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-logo-dot {
  color: var(--orange);
  margin: 0 .3em;
}

.footer-note {
  max-width: 30ch;
  margin-bottom: 14px;
  font-size: .86rem;
  line-height: 1.75;
  color: rgba(244, 241, 232, .6);
}

.footer-hand {
  font-family: var(--f-note);
  font-size: .82rem;
  color: var(--cyan);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.footer-cols {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.9fr;
  gap: 20px;
}

.footer-col:nth-child(2) { padding-top: 18px; }
.footer-col:nth-child(3) { padding-top: 36px; }

.footer-col-title {
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--note);
  margin-bottom: 12px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  font-size: .92rem;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(31, 156, 132, .42);
  transition: color .18s ease, border-color .18s ease;
}

.footer-col a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  font-style: normal;
  display: grid;
  gap: 10px;
  font-size: .84rem;
}

.footer-contact p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  line-height: 1.65;
  word-break: break-word;
}

.footer-contact-key {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--note);
}

.footer-legal {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--edge) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  border-top: 1px solid rgba(122, 140, 153, .2);
  font-size: .78rem;
  color: var(--note);
}

.footer-copy { margin: 0; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal-links a {
  color: var(--note);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color .18s ease;
}

.footer-legal-links a:hover { color: var(--paper); }

.footer-icp {
  margin-left: auto;
  font-family: var(--f-mono);
  letter-spacing: .06em;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--note);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(122, 140, 153, .6);
}

.breadcrumb a {
  color: var(--water-lift);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}

.breadcrumb a:hover { border-bottom-color: currentColor; }

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
  background-color: #0d2432;
  background-image:
    repeating-linear-gradient(114deg, rgba(31, 156, 132, .15) 0 2px, transparent 2px 9px),
    radial-gradient(120% 100% at 12% 0%, rgba(31, 156, 132, .3), transparent 62%),
    linear-gradient(160deg, #102739, #0b1b2b 72%);
}

.media-frame > img,
.media-frame > svg,
.media-frame > video,
.media-frame > picture,
.media-frame > picture > 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 figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: min(88%, 32ch);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(11, 27, 43, .74);
  font-family: var(--f-note);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--paper);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(122, 140, 153, .24);
}

/* ---------- 12. 入场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .5s ease var(--reveal-delay, 0ms),
    transform .5s cubic-bezier(.22, .8, .3, 1) var(--reveal-delay, 0ms);
}

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

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

  .brand-rail {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 0 0 var(--r-md) var(--r-md);
  }

  .rail-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px 7px 18px 7px;
  }

  .rail-type {
    writing-mode: horizontal-tb;
    font-size: .98rem;
    letter-spacing: .22em;
  }

  .rail-sub {
    writing-mode: horizontal-tb;
    font-size: .58rem;
    letter-spacing: .24em;
    margin-left: auto;
  }

  .header-body { padding-left: 0; }

  .header-upper {
    padding: 14px 0;
    gap: 10px 16px;
  }

  .header-search-hint { display: none; }

  .header-lower {
    flex-wrap: wrap;
    padding: 12px 0 14px;
  }

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

  .primary-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
  }

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

  .primary-nav ul {
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
  }

  .primary-nav a {
    width: 100%;
    border-radius: var(--r-md);
    padding: 12px 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) { padding-top: 0; }

  .footer-col:nth-child(3) { grid-column: 1 / -1; }

  .footer-icp { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }

  .header-tagline { font-size: .9rem; }

  .header-upper { gap: 10px 14px; }

  .utility-nav { gap: 4px 14px; }

  .btn {
    padding: 10px 16px;
    font-size: .82rem;
  }

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

  .footer-col:nth-child(3) { grid-column: auto; }

  .footer-contact p { grid-template-columns: 38px minmax(0, 1fr); }

  .footer-legal { font-size: .74rem; gap: 8px 16px; }

  .media-frame figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    font-size: .72rem;
  }
}

/* ---------- 14. 动效降级 ---------- */
@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;
  }

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