/* ==========================================================================
   大江赛场 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }

/* ---------- 02 变量 ---------- */
:root {
  --clay: #A6402D;
  --ink: #0F2A24;
  --line: #D9FF43;
  --paper: #F4EFE3;
  --stone: #6B7168;
  --moss: #425846;
  --terracotta: #B86C4E;
  --table: #DCE7EA;
  --black: #161A17;
  --white: #FFFFFF;

  --hair: rgba(107, 113, 104, 0.42);
  --hair-soft: rgba(107, 113, 104, 0.22);
  --hair-dark: rgba(244, 239, 227, 0.18);
  --veil: rgba(244, 239, 227, 0.66);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --grid-gap: clamp(14px, 2vw, 26px);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", Impact,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --edge: 0px;
}

/* ---------- 03 基础排版 ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(38px, 6vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.numeral {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--clay);
  margin: 0;
}
.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.8;
  color: var(--moss);
  max-width: 62ch;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.rule--strong { height: 2px; background: var(--ink); }

/* ---------- 04 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--line);
}

/* ---------- 05 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1480px; }

.page-main {
  padding-block: clamp(10px, 2vw, 22px) clamp(48px, 7vw, 92px);
}

.section { padding-block: clamp(34px, 5.5vw, 68px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 22px;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 12px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ---------- 06 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 07 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--line); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--signal { background: var(--line); border-color: var(--line); color: var(--ink); }
.btn--signal:hover { background: var(--ink); border-color: var(--ink); color: var(--line); }
.btn--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn--slant {
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-right: 34px;
}
.btn--slant:hover { transform: translateX(2px); }

/* ---------- 08 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 1px solid var(--hair);
  color: var(--moss);
  background: transparent;
  white-space: nowrap;
}
.tag--clay { border-color: var(--clay); color: var(--clay); }
.tag--moss { border-color: var(--moss); color: var(--moss); }
.tag--line { background: var(--line); border-color: var(--line); color: var(--ink); }
.tag--deep { background: var(--ink); border-color: var(--ink); color: var(--line); }

/* ---------- 09 面板 ---------- */
.surface {
  background: var(--white);
  border: 1px solid var(--hair);
  padding: clamp(18px, 2.6vw, 28px);
}
.surface--paper { background: var(--paper); }
.surface--deep { background: var(--ink); border-color: var(--hair-dark); color: var(--paper); }
.surface--table { background: var(--table); border-color: #C3D2D6; }
.surface--clay { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.surface--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* ---------- 10 图片容器 ---------- */
.media-figure { margin: 0; }
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--table);
  border: 1px solid var(--hair);
}
.media img,
.media picture,
.media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--panorama { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--slant { clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%); }
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone);
}

/* ---------- 11 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--hair);
}
.breadcrumb-link {
  text-decoration: none;
  color: var(--moss);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.breadcrumb-link:hover { color: var(--clay); border-bottom-color: var(--clay); }
.breadcrumb-current { color: var(--black); }

/* ---------- 12 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--line);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 10px; }

/* ---------- 13 页头：滚动进度 ---------- */
.site-header {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: rgba(22, 26, 23, 0.4);
  pointer-events: none;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 14 页头：红土通栏 ---------- */
.header-utility {
  background: var(--clay);
  color: var(--paper);
  border-bottom: 1px solid rgba(22, 26, 23, 0.22);
}
.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 38px;
  padding-block: 6px;
}
.utility-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
}
.utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.utility-link {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.utility-link:hover { color: var(--line); border-bottom-color: var(--line); }

/* ---------- 15 页头：居中刊头 ---------- */
.masthead {
  background: var(--ink);
  padding-block: clamp(16px, 2.6vw, 28px) clamp(12px, 2vw, 20px);
}
.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
}
.masthead-side {
  margin: 0;
  justify-self: start;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 227, 0.62);
  white-space: nowrap;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-decoration: none;
  color: var(--paper);
  line-height: 1;
  text-align: center;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(30px, 5.4vw, 58px);
  letter-spacing: 0.1em;
  color: var(--paper);
  transition: color 0.18s ease;
}
.brand-sub {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.44em;
  color: var(--line);
  text-transform: uppercase;
}
.brand:hover .brand-name { color: var(--line); }
.masthead-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  justify-self: end;
}
.masthead-meta {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 227, 0.62);
  white-space: nowrap;
}

/* ---------- 16 页头：移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--hair-dark);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--line); color: var(--line); }
.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

/* ---------- 17 页头：栏目带 ---------- */
.nav-bar {
  background: var(--ink);
  border-top: 1px solid var(--hair-dark);
}
.nav-inner { display: flex; justify-content: center; }
.primary-nav { width: 100%; }
.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2.4vw, 34px);
  list-style: none;
}
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 2px 16px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  height: 2px;
  width: 0;
  background: var(--line);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--line); }
.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--line); }
.nav-link[aria-current="page"]::after { width: 100%; }

/* ---------- 18 页头：横向赛程索引条 ---------- */
.schedule-strip {
  background: var(--paper);
  color: var(--black);
  border-bottom: 1px solid var(--hair);
}
.strip-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.strip-title {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding-right: 18px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--clay);
  border-right: 1px solid var(--hair);
  white-space: nowrap;
}
.strip-track {
  display: flex;
  flex: 1 1 auto;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  cursor: grab;
}
.strip-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.strip-track:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.strip-item { flex: 0 0 auto; border-right: 1px solid var(--hair); }
.strip-item:first-child { border-left: 1px solid var(--hair); }
.strip-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.strip-link:hover,
.strip-link:focus-visible { background: var(--ink); color: var(--paper); }
.strip-index {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clay);
  transition: color 0.16s ease;
}
.strip-link:hover .strip-index,
.strip-link:focus-visible .strip-index { color: var(--line); }
.strip-name { font-size: 13.5px; letter-spacing: 0.08em; }

/* ---------- 19 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--clay);
  padding-top: clamp(34px, 5vw, 62px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(26px, 4vw, 56px);
}
.footer-brand { min-width: 0; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--paper);
}
.footer-line {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--line);
}
.footer-note {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--veil);
}
.footer-nav { min-width: 0; }
.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.55);
}
.footer-links { list-style: none; display: flex; flex-direction: column; }
.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover { color: var(--line); border-bottom-color: var(--line); }
.footer-contact { min-width: 0; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-item {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid var(--terracotta);
}
.contact-key {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--line);
}
.contact-value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--hair-dark);
  padding-block: 16px 26px;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
}
.footer-copy,
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 227, 0.6);
}
.footer-stamp {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--line);
}

/* ---------- 20 响应式：平板 ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5 { grid-column: span 3; }
  .col-6, .col-8 { grid-column: span 6; }
}

@media (max-width: 900px) {
  .masthead-side { display: none; }
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}

/* ---------- 21 响应式：手机 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { justify-content: flex-start; }
  .primary-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--hair-dark);
  }
  .primary-nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 0 12px; }
  .nav-item { border-bottom: 1px solid var(--hair-dark); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 17px;
    letter-spacing: 0.08em;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    border-left: 3px solid var(--line);
    padding-left: 12px;
    background: rgba(217, 255, 67, 0.07);
  }
  .strip-title { display: none; }
  .strip-track { scroll-behavior: auto; }
  .utility-inner { min-height: 34px; }
  .utility-line { font-size: 10.5px; letter-spacing: 0.1em; }
  .utility-links { gap: 14px; }
  .utility-link { font-size: 11.5px; }
  .brand-name { letter-spacing: 0.06em; }
  .brand-sub { letter-spacing: 0.3em; font-size: 9px; }
  .masthead-meta { display: none; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-8, .col-12 { grid-column: span 2; }
  .footer-bottom-inner { justify-content: flex-start; }
}

/* ---------- 22 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html, .strip-track { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn--slant:hover { transform: none; }
}
