/* ==========================================================================
   完美体育WM·对垒库  共享样式  /assets/site.css
   纵向叙事长卷 · 双层信息导航 · 玻璃层与实色层并置
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* —— 复古出版色 × 赛场夜灯 —— */
  --bg: #061A17;
  --panel: #0C2A24;
  --paper: #F2EDE3;
  --cream: #F2EDE3;
  --cyan: #29E0D2;
  --line: #0F7C74;
  --gold: #E8B44A;
  --flame: #E4552B;
  --ink: #14100C;
  --muted: #9DB3AE;

  --glass: rgba(41, 224, 210, 0.08);
  --cyan-soft: rgba(41, 224, 210, 0.28);
  --line-soft: rgba(15, 124, 116, 0.45);
  --paper-ink-soft: rgba(20, 16, 12, 0.62);

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

  --wrap: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(41, 224, 210, 0.07), transparent 62%),
    radial-gradient(900px 540px at -12% 34%, rgba(232, 180, 74, 0.05), transparent 64%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--cream);
}

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

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ 容器 */
.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04211D;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 0 0 3px 3px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #04211D; }

.muted { color: var(--muted); }
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.v-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ------------------------------------------------------------- 页头 双层 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 26, 23, 0.94);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-top {
  max-height: 140px;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 124, 116, 0.22);
  transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.35s var(--ease);
}
.header-top__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--cream); }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}
.brand__sep { color: var(--line); font-weight: 600; }
.brand__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.brand__tagline {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-left: 1px solid var(--line-soft);
  padding-left: 16px;
  line-height: 1.5;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-chip {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 4px 9px;
  line-height: 1.4;
}

.tool-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 7px 12px;
  line-height: 1.2;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tool-link:hover { color: var(--cyan); border-color: var(--cyan); }
.tool-link--strong {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.tool-link--strong:hover { background: var(--cyan); border-color: var(--cyan); color: #04211D; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--cyan-soft);
  border-radius: 2px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-toggle__bars { display: block; }
.nav-toggle__bars i {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 3px 0;
  background: currentColor;
}
.nav-toggle__label { line-height: 1; }

.header-bottom { position: relative; }
.header-bottom__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
}
.header-bottom__hint {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav { min-width: 0; flex: 1 1 auto; }
.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__item { flex: 0 0 auto; scroll-snap-align: start; }

.site-nav__link {
  display: block;
  padding: 15px 14px 13px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #C9D8D4;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-nav__link:hover { color: var(--cyan); background: var(--glass); }
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: var(--glass);
}

.site-header[data-stuck] .header-bottom {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.site-header[data-stuck] .header-bottom__inner { border-bottom: 1px solid var(--cyan); }

.scroll-progress {
  height: 2px;
  width: 100%;
  background: rgba(15, 124, 116, 0.25);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--line), var(--cyan));
}

/* --------------------------------------------------------- 章节 · 标题组 */
.section { padding: clamp(52px, 7vw, 104px) 0; position: relative; }
.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper h1, .section--paper h2, .section--paper h3 { color: var(--ink); }
.section--paper .section-note { color: var(--paper-ink-soft); }
.section--paper a { color: #0B5F59; }
.section--paper a:hover { color: var(--flame); }

.section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 2vw, 26px);
  margin-bottom: clamp(24px, 3.4vw, 46px);
}
.section-index {
  font-family: var(--font-num);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  line-height: 0.85;
  color: var(--gold);
}
.section-title {
  font-size: clamp(26px, 4.2vw, 54px);
  font-weight: 900;
}
.section-note {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ 网格 */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ------------------------------------------------------------------ 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.card--glass {
  background: var(--glass);
  border-color: var(--cyan-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.card--paper {
  background: var(--paper);
  border-color: rgba(20, 16, 12, 0.16);
  color: var(--ink);
}
.card--paper .card__title { color: var(--ink); }
.card--paper .card__meta { color: var(--paper-ink-soft); }
.card__title {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
  margin-bottom: 10px;
}
.card__meta {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}
.card__body { color: inherit; }
.card__body p + p { margin-top: 12px; }
.card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 124, 116, 0.32);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card--paper .card__foot { border-top-color: rgba(20, 16, 12, 0.16); }

/* ------------------------------------------------------------------ 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.tag::before {
  content: "";
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.tag--live { color: var(--flame); border-color: rgba(228, 85, 43, 0.6); }
.tag--gold { color: var(--gold); border-color: rgba(232, 180, 74, 0.6); }
.section--paper .tag { color: var(--paper-ink-soft); border-color: rgba(20, 16, 12, 0.25); }
.section--paper .tag--gold { color: #8A6516; border-color: rgba(138, 101, 22, 0.5); }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: #04211D; font-weight: 700; }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.btn--gold:hover { background: var(--cyan); border-color: var(--cyan); color: #04211D; }
.btn--ghost { background: transparent; border-color: var(--cyan-soft); color: var(--cyan); }
.btn--ghost:hover { background: var(--glass); border-color: var(--cyan); color: var(--cyan); }

.copy-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan-soft);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover { background: var(--glass); }
.copy-btn.is-copied { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------------------------------------------------------------- 筛选栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(18px, 2.6vw, 32px);
}
.filter-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filter-btn:hover { color: var(--cyan); border-color: var(--cyan-soft); }
.filter-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--glass);
}

/* -------------------------------------------------------------- 面包屑 */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.breadcrumbs__item::after { content: "/"; color: var(--line); }
.breadcrumbs__item:last-child::after { content: none; }
.breadcrumbs__link { color: var(--muted); }
.breadcrumbs__link:hover { color: var(--cyan); }

/* ------------------------------------------------------------------ 正文 */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: #DCE7E4;
}
.prose p + p { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: clamp(18px, 2.1vw, 23px); margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.1em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--cream); font-weight: 600; }
.section--paper .prose { color: #2A2219; }
.section--paper .prose strong { color: var(--ink); }

/* -------------------------------------------------------- 图片容器基础 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.06) brightness(0.92);
}
.media--tone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(162deg, rgba(6, 26, 23, 0.12) 0%, rgba(6, 26, 23, 0.66) 100%),
    radial-gradient(circle at 78% 20%, rgba(232, 180, 74, 0.24), transparent 46%);
}
.media__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ------------------------------------------------------------- 显现动效 */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ 页脚 */
.site-footer {
  margin-top: clamp(40px, 6vw, 88px);
  background: linear-gradient(180deg, #04120F 0%, #061A17 100%);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.footer-band {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, rgba(41, 224, 210, 0.07), rgba(232, 180, 74, 0.05));
  border-bottom: 1px solid rgba(15, 124, 116, 0.4);
}
.footer-band__seg {
  flex: 1 1 0;
  padding: 9px 0 8px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(157, 179, 174, 0.55);
  border-right: 1px solid rgba(15, 124, 116, 0.22);
}
.footer-band__seg:last-child { border-right: 0; color: var(--gold); }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(22px, 3vw, 46px);
  padding: clamp(34px, 4.4vw, 62px) 0;
}

.footer-col__title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cream);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 124, 116, 0.32);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.footer-note { line-height: 1.75; margin-bottom: 14px; }
.footer-legal { font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); }

.footer-list { display: grid; gap: 10px; }
.footer-list__link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-list__link:hover { color: var(--cyan); border-bottom-color: var(--cyan-soft); }

.footer-contact { display: grid; gap: 12px; margin-bottom: 20px; }
.footer-contact__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-contact__k {
  flex: 0 0 auto;
  min-width: 68px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--line);
}
.footer-contact__v {
  color: #C9D8D4;
  font-size: 13.5px;
  word-break: break-all;
}
.footer-cta { padding: 10px 18px; font-size: 13.5px; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(15, 124, 116, 0.28);
}
.footer-base__copy, .footer-base__note {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .brand__tagline { display: none; }
  .header-bottom__hint { display: none; }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .site-header { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .header-top__inner { padding: 11px 0; gap: 12px; }
  .header-tools { gap: 8px; }
  .tool-link:not(.tool-link--strong) { display: none; }
  .lang-chip { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; order: 3; }

  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid rgba(15, 124, 116, 0.3);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list {
    flex-direction: column;
    overflow: visible;
    padding: 6px 0 14px;
  }
  .site-nav__link {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(15, 124, 116, 0.24);
    border-left: 2px solid transparent;
    font-size: 15px;
  }
  .site-nav__link[aria-current="page"] {
    border-bottom-color: rgba(15, 124, 116, 0.24);
    border-left-color: var(--cyan);
    padding-left: 12px;
  }
  .header-bottom__inner { flex-wrap: wrap; gap: 0; min-height: 0; }

  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .section-index { font-size: 34px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__mark { font-size: 17px; }
  .tool-link--strong { padding: 7px 10px; font-size: 12.5px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-band__seg { font-size: 10px; letter-spacing: 0.12em; }
}

/* ------------------------------------------------------------ 动效偏好 */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .skip-link { transition: none; }
}
