/* =========================================================
   半岛体育 · 共享样式表  /assets/site.css
   展览画册式布局 · 赛场数据感 · 透明叠加导航转实色阅读态
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, table, th, td {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --blue: #0B3C8C;
  --deep: #0E2A38;
  --ink: #101820;
  --paper: #F5F7F8;
  --cool: #E4E8EC;
  --orange: #FF6A13;
  --cyan: #16C2C8;
  --yellow: #F2C200;
  --red: #E23A2E;
  --mist: #C9D6E4;

  /* 字体 */
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", "IBM Plex Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --header-h-solid: 62px;

  --rule: 1px solid var(--cool);
  --rule-dark: 1px solid rgba(201, 214, 228, 0.22);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px -22px rgba(16, 24, 32, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.24;
}

h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }

strong { font-weight: 700; }

/* 抵消页头留白：让首屏色块延伸到页头之下 */
.bleed-top { margin-top: calc(var(--header-h) * -1); }

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 1px;
}

.site-header :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--orange);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* 透明态在浅色首屏上仍保留可读性 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 22, 32, 0.66), rgba(8, 22, 32, 0));
  opacity: 1;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.site-header.is-solid {
  background: var(--deep);
  border-bottom-color: rgba(201, 214, 228, 0.22);
  box-shadow: 0 16px 36px -28px rgba(4, 16, 24, 0.95);
}

.site-header.is-solid::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  transition: min-height 0.3s var(--ease);
}

.site-header.is-solid .header-inner { min-height: var(--header-h-solid); }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 247, 248, 0.55);
  border-radius: 3px;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(245, 247, 248, 0.42);
  transform: translateX(-50%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.brand-line {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  line-height: 1.3;
}

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

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 248, 0.82);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease),
              color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #e35c0a;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(245, 247, 248, 0.4);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 247, 248, 0.35);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: 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) { top: 21px; transform: rotate(-45deg); }

/* ---------- 8. 滚动进度线 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(48px, 7vw, 92px) 0 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--orange);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(34px, 4.5vw, 54px);
  border-bottom: var(--rule-dark);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 430px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-brand-name span { color: var(--orange); }

.footer-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 30em;
}

.footer-index {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 106, 19, 0.6);
  border-radius: 2px;
}

.footer-index-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px dashed rgba(22, 194, 200, 0.55);
  border-radius: 2px;
  background-image: repeating-linear-gradient(45deg, rgba(22, 194, 200, 0.18) 0 5px, transparent 5px 11px);
}

.footer-index-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

.footer-index-text strong {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

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

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(201, 214, 228, 0.2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(245, 247, 248, 0.86);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding: 22px 0;
  border-bottom: var(--rule-dark);
  font-size: 13.5px;
  color: var(--mist);
}

.footer-contact span {
  font-family: var(--font-num);
  letter-spacing: 0.01em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 30px;
  font-size: 12.5px;
  color: rgba(201, 214, 228, 0.82);
}

.footer-copy { letter-spacing: 0.02em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

/* ---------- 10. 布局容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: 880px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* ---------- 11. 章节 ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--deep { background: var(--deep); color: var(--paper); }
.section--blue { background: var(--blue); color: var(--paper); }
.section--edge { border-top: var(--rule); }

.section--deep .prose,
.section--blue .prose { color: rgba(245, 247, 248, 0.88); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: clamp(24px, 3vw, 42px);
  border-bottom: var(--rule);
}

.section--deep .section-head,
.section--blue .section-head { border-bottom-color: rgba(201, 214, 228, 0.24); }

.section-head > div { max-width: 60ch; }

.section-num {
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title { color: inherit; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--cool);
  border-radius: 2px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.section--deep .kicker,
.section--blue .kicker {
  color: var(--cyan);
  border-color: rgba(201, 214, 228, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 12. 正文 ---------- */
.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
}

.prose p { max-width: 34em; }
.prose p + p { margin-top: 1em; }

.prose h3 { margin: 1.6em 0 0.6em; }

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1em 0;
}

.prose li {
  position: relative;
  padding-left: 20px;
  max-width: 34em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

/* ---------- 13. 卡片 ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cool);
  border-radius: 2px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease),
              border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--mist);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 38px -24px rgba(11, 60, 140, 0.38);
}

.section--deep .card,
.section--blue .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(201, 214, 228, 0.24);
  box-shadow: none;
  color: var(--paper);
}

/* ---------- 14. 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  border: 1px solid var(--cool);
  border-radius: 2px;
  overflow: hidden;
  background: var(--cool);
}

.figure-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe3ea 0%, #eef2f5 55%, #dfe6ec 100%);
}

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

.figure-media img,
.figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--slant .figure-media {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.figure--marked::after {
  content: attr(data-mark);
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(14, 42, 56, 0.74);
  color: #fff;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.figure-caption {
  padding: 10px 2px 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #5b6b78;
  line-height: 1.6;
}

/* ---------- 15. 数据表 ---------- */
.data-table {
  width: 100%;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--cool);
}

.data-table caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--paper);
  border-bottom: 1px solid var(--cool);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--cool);
}

.data-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(11, 60, 140, 0.06);
}

.data-table tbody tr:nth-child(even) { background: rgba(201, 214, 228, 0.24); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .num,
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- 16. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-red { background: var(--red); color: #fff; }
.tag-cyan {
  background: rgba(22, 194, 200, 0.14);
  color: #0a7d81;
  border-color: rgba(22, 194, 200, 0.5);
}
.tag-blue {
  background: rgba(11, 60, 140, 0.1);
  color: var(--blue);
  border-color: rgba(11, 60, 140, 0.28);
}

/* ---------- 17. 面包屑 ---------- */
.breadcrumb {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #5b6b78;
}

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

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--mist);
}

.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 18. 锚点索引 ---------- */
.anchor-index {
  position: sticky;
  top: calc(var(--header-h-solid) + 24px);
  padding-left: 16px;
  border-left: 2px solid var(--cool);
  font-size: 13px;
}

.anchor-index a {
  display: block;
  padding: 5px 0;
  color: #5b6b78;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.anchor-index a:hover { color: var(--blue); padding-left: 3px; }

.anchor-index a[aria-current="true"] {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- 19. 显现动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }

  .header-actions { display: none; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: calc(var(--header-h) + 12px) var(--gutter) 30px;
    background: var(--deep);
    border-bottom: 1px solid rgba(201, 214, 228, 0.22);
    box-shadow: 0 32px 54px -32px rgba(4, 16, 24, 0.95);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .site-nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li { border-bottom: 1px solid rgba(201, 214, 228, 0.14); }
  .nav-list li:last-child { border-bottom: 0; }

  .nav-link {
    display: block;
    width: 100%;
    padding: 15px 2px;
    font-size: 16px;
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--orange); }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

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

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 {
    grid-column: span 12;
  }

  .anchor-index {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; --header-h-solid: 58px; }

  body { font-size: 15.5px; }

  .brand-line { display: none; }

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

  .footer-contact { flex-direction: column; gap: 8px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

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

/* ---------- 21. 减少动态效果 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
