/* =========================================================
   半岛体育 · 共享样式表  /assets/site.css
   ========================================================= */

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

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

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

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

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

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

input, select, textarea { font: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #030B14;
  --navy: #071A2B;
  --panel: #0E2A45;
  --panel-2: #0B2237;
  --line: #1E4B6E;
  --gold: #E8B44A;
  --gold-soft: #F7DC9A;
  --ice: #6ED0F6;
  --amber: #FF8A3D;
  --text: #C7D6E3;
  --muted: #8AA0B4;
  --white: #EAF3FB;

  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 78px;
  --header-h-stuck: 60px;

  --ease: cubic-bezier(.22, .8, .28, 1);
  --shadow-hard: 8px 8px 0 rgba(3, 11, 20, .72);
  --shadow-soft: 0 18px 40px rgba(3, 11, 20, .55);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 3. 基础排版与页面底色 ---------- */
body {
  background-color: var(--navy);
  background-image:
    radial-gradient(1200px 620px at 10% -12%, rgba(110, 208, 246, .10), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(232, 180, 74, .085), transparent 60%),
    linear-gradient(180deg, #071A2B 0%, #061624 55%, #04101C 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.375rem); }
h4 { font-size: 1rem; letter-spacing: .01em; }

p { margin-bottom: 1em; }

a { color: var(--ice); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-soft); }

strong { color: var(--white); font-weight: 800; }

hr { border: 0; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- 4. 可访问性与焦点 ---------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -200px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .04em;
  border: 2px solid var(--ink);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; color: var(--ink); }

/* ---------- 5. 容器与工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .08em;
}
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.ice { color: var(--ice); }
.center { text-align: center; }

.rule { height: 2px; background: var(--line); margin-block: clamp(24px, 4vw, 48px); }
.rule-accent { height: 3px; background: linear-gradient(90deg, var(--gold), rgba(232, 180, 74, 0)); }

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.15em; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.15em; }
.prose li { margin-bottom: .5em; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.btn:hover { color: var(--white); border-color: var(--ice); }

.btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-solid:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ghost { border-color: var(--ice); color: var(--ice); }
.btn-ghost:hover {
  background: rgba(110, 208, 246, .12);
  color: var(--white);
  border-color: var(--ice);
}

.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffa163; border-color: #ffa163; color: var(--ink); }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(3, 11, 20, .76) 0%, rgba(7, 26, 43, 0) 100%);
  border-bottom: 2px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(7, 26, 43, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px rgba(3, 11, 20, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.site-header.is-stuck .header-inner { min-height: var(--header-h-stuck); }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
}
.brand:hover { color: var(--white); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--gold) 0%, #b9862c 100%);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(232, 180, 74, .3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.0625rem; font-weight: 900; letter-spacing: .04em; }
.brand-meta { font-size: .625rem; letter-spacing: .16em; color: var(--muted); margin-top: 3px; }

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 8px);
}

.nav-list a {
  display: block;
  padding: 10px 11px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.nav-list a:hover {
  color: var(--gold-soft);
  background: rgba(110, 208, 246, .08);
}
.nav-list a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 页头动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 8px;
}
.header-actions .btn { padding: 9px 14px; font-size: .8125rem; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--line);
  background: rgba(14, 42, 69, .7);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ice), var(--gold));
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 120px);
  background: linear-gradient(180deg, var(--panel-2) 0%, #050F1B 78%, var(--ink) 100%);
  border-top: 3px solid var(--gold);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(38px, 5.5vw, 72px);
}

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

.footer-title {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.footer-links ul,
.footer-legal ul {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-legal a {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-links a::before,
.footer-legal a::before {
  content: "—";
  color: var(--line);
  margin-right: 8px;
  font-family: var(--mono);
  font-size: .75rem;
  transition: color .2s var(--ease);
}
.footer-links a:hover,
.footer-legal a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }
.footer-links a:hover::before,
.footer-legal a:hover::before { color: var(--gold); }

.footer-contact { display: grid; gap: 12px; }

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
}

.footer-key {
  flex: 0 0 auto;
  min-width: 42px;
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-val { color: var(--text); word-break: break-word; }

.footer-note {
  margin: 4px 0 0;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.footer-base {
  background: rgba(3, 11, 20, .62);
  border-top: 2px solid var(--line);
}
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-size: .8125rem;
  color: var(--muted);
}
.footer-brand {
  margin: 0;
  font-size: .9375rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--white);
}
.footer-brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--gold);
  vertical-align: 2px;
}
.footer-copy { margin: 0; }
.footer-copy .mono { color: var(--ice); font-size: .75rem; }

.version-bar {
  background: var(--ink);
  border-top: 1px solid rgba(30, 75, 110, .75);
}
.version-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding-block: 14px;
  font-size: .75rem;
  color: var(--muted);
}
.version-item { display: inline-flex; align-items: center; gap: 8px; }
.version-key { letter-spacing: .16em; color: var(--muted); }
.version-val { font-size: .75rem; letter-spacing: .1em; color: var(--ice); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 18px;
  border-bottom: 2px solid rgba(30, 75, 110, .5);
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumbs-list li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs-list li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumbs-list a { color: var(--ice); }
.breadcrumbs-list a:hover { color: var(--gold-soft); }
.breadcrumbs-list [aria-current="page"] { color: var(--gold); }

/* ---------- 10. 章节与面板 ---------- */
.section { padding-block: clamp(36px, 5.5vw, 78px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.panel {
  position: relative;
  background: linear-gradient(158deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 2.8vw, 38px);
}
.panel--accent { border-top: 4px solid var(--gold); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.panel-index {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold);
}
.panel-title { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); }
.panel-note {
  margin: 0 0 0 auto;
  font-size: .8125rem;
  color: var(--muted);
}

/* ---------- 11. 网格 ---------- */
.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, 1.6fr) minmax(0, 1fr); }

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, #0b2237 0%, #071a2b 58%, #0e2a45 100%);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(30, 75, 110, .42) 1px, transparent 1px),
    linear-gradient(0deg, rgba(30, 75, 110, .42) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .55;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 11, 20, 0) 48%, rgba(3, 11, 20, .62) 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 13. 数据带 / 指标 / 标签 ---------- */
.data-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(90deg, rgba(14, 42, 69, .98) 0%, rgba(7, 26, 43, .55) 100%);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-left: 6px solid var(--gold);
}
.data-band-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ice);
}
.data-band-label { font-size: 1.0625rem; font-weight: 800; color: var(--white); }
.data-band-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.stat { display: grid; gap: 6px; }
.stat-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--gold);
}
.stat-key {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--ice);
  background: rgba(110, 208, 246, .08);
  border: 1px solid var(--line);
}

/* ---------- 14. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  padding: 8px 15px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  background: transparent;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease);
}
.filter-btn:hover { color: var(--ice); border-color: var(--ice); }
.filter-btn.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
}

.is-hidden { display: none !important; }

/* ---------- 15. 进入视口显现 ---------- */
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    margin: 0;
    padding: 18px var(--gutter) 64px;
    overflow-y: auto;
    background: rgba(7, 26, 43, .985);
    border-top: 2px solid var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(30, 75, 110, .6); }
  .nav-list li:first-child { border-top: 1px solid rgba(30, 75, 110, .6); }
  .nav-list a {
    padding: 16px 6px;
    font-size: 1.0625rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    background: rgba(110, 208, 246, .08);
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }

  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .grid-2, .grid-3, .grid-asym { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; --header-h-stuck: 58px; }
  .site-nav { top: var(--header-h); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { box-shadow: 5px 5px 0 rgba(3, 11, 20, .7); }
  .data-band-meta { margin-left: 0; }
  .panel-note { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .brand-meta { display: none; }
  .header-actions .btn { display: none; }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
  .version-inner { gap: 8px 20px; }
}

/* ---------- 17. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js .reveal { opacity: 1; transform: none; }
  .scroll-progress span { transition: none; }
}
