/* ============================================================
   竞彩赛场 · 全站共享样式 /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, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --green: #0E7A3C;
  --green-deep: #083B20;
  --cream: #FBF6EC;
  --paper: #FFFFFF;
  --orange: #FF6B1A;
  --orange-soft: #FFD9BC;
  --navy: #13324F;
  --ink: #241A12;
  --yellow: #FFC93C;
  --line: #D8E4D9;

  --shell-w: 1180px;
  --header-h: 132px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  padding-top: var(--header-h);
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, rgba(216, 228, 217, .55) 1px, transparent 1px);
  background-size: 96px 100%;
  background-position: center top;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
}

p { line-height: 1.78; }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong { font-weight: 800; }

::selection { background: var(--orange); color: var(--paper); }

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

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

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: min(100% - 40px, var(--shell-w));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 3px solid var(--green);
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 28px);
}

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

@media (min-width: 900px) {
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--7-5 { grid-template-columns: 7fr 5fr; }
}

/* ---------- 5. 文字元件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
  flex: none;
}

.display-title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.72;
  color: #4A3B2E;
  max-width: 34em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--orange-soft);
  color: var(--ink);
}

.tag--green { background: rgba(14, 122, 60, .12); color: var(--green-deep); }
.tag--navy { background: rgba(19, 50, 79, .1); color: var(--navy); }

.prose {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.8;
}

.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prose h3 { margin: 1.6em 0 .5em; font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--green); }
.prose a:hover { color: var(--orange); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--orange);
  color: var(--navy);
  font-size: 1.05em;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              color .16s var(--ease), border-color .16s var(--ease);
}

.btn--primary { background: var(--green); color: var(--paper); }
.btn--primary:hover { background: var(--orange); color: var(--ink); transform: translateY(-2px); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 2px;
  font-size: 13px;
  color: var(--navy);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

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

.breadcrumb__list li + li::before {
  content: "›";
  color: var(--orange);
  font-weight: 900;
}

.breadcrumb__list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.breadcrumb__list a:hover { border-bottom-color: var(--orange); color: var(--green); }
.breadcrumb__list [aria-current="page"] { color: var(--ink); }

/* ---------- 8. 玻璃层 ---------- */
.glass {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  box-shadow: 0 18px 40px -30px rgba(36, 26, 18, .6);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.glass:hover { background: rgba(255, 255, 255, .76); }

/* ---------- 9. 图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background-color: var(--green-deep);
  background-image:
    linear-gradient(135deg, rgba(14, 122, 60, .95) 0%, rgba(8, 59, 32, .98) 62%, rgba(19, 50, 79, 1) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px);
}

.media-frame 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--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 59, 32, 0) 48%, rgba(8, 59, 32, .68) 100%);
  pointer-events: none;
}

.media-frame__caption {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cream);
}

/* ---------- 10. 淡入 ---------- */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}

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

/* ---------- 11. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); color: var(--yellow); }

/* ---------- 12. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

/* 刊头带 */
.masthead {
  max-height: 150px;
  overflow: hidden;
  background: var(--cream);
  border-top: 6px solid var(--green);
  border-bottom: 1px solid var(--line);
  transition: max-height .22s var(--ease), opacity .18s var(--ease), border-color .22s var(--ease);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}

.coord-index {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--navy);
}

.coord-index::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--navy);
  opacity: .5;
  flex: none;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: .5em;
  height: .5em;
  background: var(--orange);
  border-radius: 3px;
  transform: rotate(45deg);
  flex: none;
}

.round-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--green-deep);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

.round-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .22);
  flex: none;
}

/* 导航带 */
.nav-band {
  padding-block: 2px;
  background: rgba(251, 246, 236, .94);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-shell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width .22s var(--ease), margin .22s var(--ease), padding .22s var(--ease),
              border-radius .22s var(--ease), background-color .22s var(--ease),
              box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

.nav-list a:hover { color: var(--green); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] { color: var(--green); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  flex: none;
  transition: background-color .18s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), top .18s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动后收为居中悬浮细条 */
.site-header[data-condensed] .masthead {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.site-header[data-condensed] .nav-band {
  background: rgba(251, 246, 236, .84);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.site-header[data-condensed] .nav-shell {
  width: min(100% - 40px, 860px);
  margin-block: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 14px 30px -26px rgba(36, 26, 18, .95);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--green-deep);
  color: #DCEDE2;
  border-top: 6px solid var(--green);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(24px, 4vw, 40px) 18px;
  border-bottom: 1px solid rgba(216, 228, 217, .22);
}

.footer-brand {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--cream);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.footer-brand:hover { color: var(--yellow); }

.footer-coord {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .14em;
  color: #9EC6AD;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(28px, 4vw, 50px);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.footer-list a {
  color: #DCEDE2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-list a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.footer-list--plain li {
  color: #B9D3C4;
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.footer-base { background: rgba(0, 0, 0, .22); }

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 16px;
  font-size: 13px;
  color: #9EC6AD;
}

.footer-copy { margin: 0; }

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 124px; }
  .nav-list a { padding: 11px 10px; font-size: 14.5px; }
  .nav-list a::after { left: 10px; right: 10px; }
}

@media (max-width: 880px) {
  :root { --header-h: 116px; }

  body { font-size: 16px; background-size: 64px 100%; }

  .masthead__inner { grid-template-columns: 1fr auto; gap: 10px; }
  .coord-index { display: none; }
  .brand { justify-self: start; }
  .round-badge { justify-self: end; font-size: 12px; padding: 5px 10px; }

  .nav-band { padding-block: 6px; }

  .nav-shell { justify-content: center; }

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

  .nav-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 26px 44px -30px rgba(36, 26, 18, .85);
  }

  .nav-shell[data-open] .nav-list { display: flex; }

  .nav-list a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 16px;
    background: transparent;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover { background: var(--cream); }

  .nav-list a[aria-current="page"] {
    background: var(--cream);
    color: var(--green);
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .site-header[data-condensed] .nav-shell {
    width: 100%;
    margin-block: 0;
    padding: 0;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header[data-condensed] .nav-band {
    padding-block: 6px;
    background: rgba(251, 246, 236, .92);
  }

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

@media (max-width: 720px) {
  .masthead { max-height: 210px; }
  .masthead__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding-block: 14px;
  }
  .brand { justify-self: center; }
  .round-badge { justify-self: center; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, var(--shell-w)); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-base__inner { font-size: 12px; }
  .display-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn--primary:hover, .btn--ghost:hover { transform: none; }
}
