/* ============================================================
   谈球吧赛场 · 共享外壳 site.css
   深墨绿底 / 纸感米白 / 高原红土红 · 滇池青 · 夜场琥珀
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0D2621;
  --panel: #14352D;
  --line: #1F4A40;
  --red: #C0492B;
  --red-soft: #E4795A;
  --teal: #2E8C82;
  --teal-deep: #1F6D64;
  --teal-soft: #86CFC4;
  --amber: #F2B23E;
  --amber-deep: #C98A22;
  --paper: #F4EDE1;
  --brown: #1B1512;
  --mist: #93A7A0;

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

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(14px, 2vw, 24px);
  --shell-max: 1280px;
  --radius: 2px;

  --print: 1px solid var(--brown);
  --lift: 4px 4px 0 rgba(27, 21, 18, 0.55);
  --lift-red: 4px 4px 0 rgba(192, 73, 43, 0.28);
}

/* ---------- 3. 中文排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p { overflow-wrap: break-word; }

::selection { background: var(--amber); color: var(--brown); }

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

#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--brown);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.section { padding: clamp(32px, 5vw, 64px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(20px, 2.6vw, 28px); }

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: clamp(20px, 3vw, 32px) 0;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.layout-split--wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- 6. 文本层级 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede {
  max-width: 52ch;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--mist);
}
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--amber); }
.prose a { color: var(--teal-soft); border-bottom: 1px solid currentColor; }
.prose h2, .prose h3 { margin: 1.4em 0 0.6em; }

/* ---------- 7. 面板 / 卡片 / 标签 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 28px);
}
.panel--paper {
  background: var(--paper);
  color: var(--brown);
  border-color: var(--brown);
  box-shadow: var(--lift);
}
.panel--paper .lede { color: rgba(27, 21, 18, 0.66); }

.card {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 10px 0 rgba(27, 21, 18, 0.35);
}
.card h3 { font-size: clamp(17px, 1.7vw, 20px); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--mist); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(134, 207, 196, 0.12);
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.tag--red { background: rgba(192, 73, 43, 0.18); border-color: var(--red); color: var(--red-soft); }
.tag--amber { background: rgba(242, 178, 62, 0.16); border-color: var(--amber-deep); color: var(--amber); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.btn--amber { background: var(--amber); color: var(--brown); box-shadow: 3px 3px 0 rgba(27, 21, 18, 0.5); }
.btn--amber:hover { background: var(--amber-deep); transform: translate(-1px, -1px); }
.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-soft); color: var(--brown); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-soft); color: var(--teal-soft); box-shadow: 3px 3px 0 rgba(31, 74, 64, 0.6); }
.btn--paper { background: var(--paper); color: var(--brown); }
.btn--paper:hover { background: var(--teal-soft); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs { padding: clamp(14px, 2vw, 22px) 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--mist); }
.breadcrumbs a:hover { color: var(--teal-soft); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. 图片容器（页面阶段放置占位图） ---------- */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(46, 140, 130, 0.42), rgba(13, 38, 33, 0.92)),
    repeating-linear-gradient(45deg, rgba(244, 237, 225, 0.07) 0 6px, transparent 6px 12px);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 3 / 4; }
.image-frame--square { aspect-ratio: 1 / 1; }

.figure-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.panel--paper .figure-note { color: rgba(27, 21, 18, 0.6); }

/* ---------- 11. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header[data-stuck] {
  background: #0B211C;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
.site-header[data-stuck] .header-rule { background: var(--red); }

.scroll-progress {
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.1s linear;
}

.header-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; }
.brand-mark { display: block; flex: none; width: 6px; height: 34px; background: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--paper);
  font-size: 13px;
}
.nav-toggle:hover { border-color: var(--teal-soft); }
.nav-toggle-lines { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle-lines i { display: block; height: 2px; background: var(--amber); transition: transform 0.18s ease, opacity 0.18s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-text { font-family: var(--font-mono); letter-spacing: 0.14em; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 26px); }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.18s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-list a:hover { color: var(--paper); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--paper); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.header-rule { height: 1px; background: var(--line); transition: background-color 0.2s ease; }

.league-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 10px var(--gutter) 12px;
}

.league-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.league-track::-webkit-scrollbar { height: 4px; }
.league-track::-webkit-scrollbar-track { background: transparent; }
.league-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.league-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.league-track.is-dragging .league-pill { pointer-events: none; }

.league-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(134, 207, 196, 0.08);
  color: var(--teal-soft);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.league-pill b { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--paper); }
.league-pill:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.league-pill:hover b { color: var(--ink); }
.league-pill--on { background: var(--red); border-color: var(--red); color: var(--paper); }
.league-pill--on b { color: var(--amber); }
.league-pill--alt { border-style: dashed; color: var(--mist); }
.league-pill--alt:hover { background: var(--red-soft); border-color: var(--red-soft); color: var(--brown); }

.rail-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(27, 21, 18, 0.6);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.rail-cta::after { content: "↗"; font-family: var(--font-mono); font-size: 12px; }
.rail-cta:hover { background: var(--amber-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(27, 21, 18, 0.6); }

/* ---------- 12. 页脚 ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--paper); }

.feedback-bar { background: var(--red); color: var(--paper); border-top: 1px solid var(--brown); }
.feedback-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter);
}
.feedback-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}
.feedback-side { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.feedback-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(244, 237, 225, 0.82);
}

.footer-paper {
  background: var(--paper);
  color: var(--brown);
  border-top: 2px solid var(--brown);
  padding: clamp(28px, 4vw, 48px) 0 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-col { min-width: 0; }
.footer-col--brand { border-left: 4px solid rgba(192, 73, 43, 0.35); padding-left: 16px; }

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  border-left: 6px solid var(--red);
  padding-left: 12px;
}
.footer-slogan { margin-top: 12px; font-size: 14px; letter-spacing: 0.06em; color: rgba(27, 21, 18, 0.68); }

.footer-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}
.footer-list li { margin-bottom: 8px; }
.footer-list a {
  font-size: 15px;
  color: var(--brown);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-list a:hover { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }

.footer-contact li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.footer-contact span { font-size: 12px; letter-spacing: 0.1em; color: rgba(27, 21, 18, 0.55); }
.footer-contact b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.footer-bottom { margin-top: clamp(26px, 4vw, 44px); padding: 16px 0 22px; border-top: 1px dashed rgba(27, 21, 18, 0.28); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(27, 21, 18, 0.68);
}
.footer-icp { font-family: var(--font-mono); letter-spacing: 0.06em; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 rgba(27, 21, 18, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.16s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber-deep); }

/* ---------- 13. 焦点与显现 ---------- */
.footer-paper :focus-visible { outline-color: var(--teal-deep); }
.feedback-bar :focus-visible { outline-color: var(--paper); }

[data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 96px; }
  .header-main { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    order: 3;
  }
  .site-nav[data-open] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-list a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--amber); }
  .layout-split,
  .layout-split--wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-col--brand { border-left: 0; padding-left: 0; }
  .league-rail { gap: 8px; padding-bottom: 14px; }
  .rail-cta { padding: 8px 12px; font-size: 12px; }
  .feedback-inner { flex-direction: column; align-items: flex-start; }
  .to-top { padding: 9px 12px; }
}

/* ---------- 15. 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .league-track { scroll-behavior: auto; }
}
