/* ==========================================================
   中欧体育看台 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   色彩节奏：深墨绿场域 → 看台墨绿 → 草皮纹绿 → 暖白 / 米白
   强调色配额：橙红=比分与当前版本，冰蓝=版本与时间索引
   ========================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, fieldset {
  margin: 0;
}

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

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. CSS 变量 ---------- */
:root {
  /* 场域 */
  --ink: #071F1A;
  --stand: #0E2F27;
  --turf: #1C463A;

  /* 光与纸 */
  --lamp: #F7F0E2;
  --paper: #E9DFCB;

  /* 强调 */
  --score: #FF5A36;
  --score-deep: #C63E22;
  --ice: #9DE3F0;
  --ice-deep: #1E6575;
  --doubt: #E8B44A;

  /* 线与弱化文本 */
  --line: #527066;
  --line-soft: rgba(82, 112, 102, 0.42);
  --ink-soft: rgba(247, 240, 226, 0.74);
  --ink-faint: rgba(247, 240, 226, 0.46);

  /* 字体 */
  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺寸 */
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 2px;

  /* 动效 */
  --dur: 160ms;
  --ease: ease-out;

  /* 极轻材质 */
  --shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.9);
}

/* ---------- 3. 基础中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(115% 70% at 10% -12%, rgba(28, 70, 58, 0.55), rgba(7, 31, 26, 0) 62%),
    radial-gradient(85% 55% at 100% -6%, rgba(30, 101, 117, 0.22), rgba(7, 31, 26, 0) 58%);
  background-repeat: no-repeat;
  color: var(--lamp);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 820px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--lamp);
}

::selection {
  background: var(--score);
  color: #0B1A16;
}

#main-content { scroll-margin-top: 16px; }

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

/* ---------- 4. 框架容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--ice);
  color: #062520;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, #08241E 0%, #071F1A 100%);
  border-bottom: 1px solid var(--line-soft);
}

/* 顶部版本轨 */
.header-band {
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(28, 70, 58, 0.6) 0%, rgba(7, 31, 26, 0.25) 52%, rgba(30, 101, 117, 0.34) 100%);
}

.header-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 6px var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.header-band__version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice);
  white-space: nowrap;
}

.header-band__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--score);
  box-shadow: 0 0 10px rgba(255, 90, 54, 0.9);
}

.header-band__note {
  color: var(--ink-faint);
  letter-spacing: 0.14em;
}

/* 品牌行 */
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lamp);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--score);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 90, 54, 0.18), rgba(255, 90, 54, 0.02));
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--score);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 折叠按钮（移动端显示） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lamp);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

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

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

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 导航即边框 */
.site-nav {
  border-top: 1px solid var(--line-soft);
  background: rgba(14, 47, 39, 0.44);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-nav__item {
  display: flex;
  min-width: 0;
}

.site-nav__item + .site-nav__item {
  border-left: 1px solid var(--line-soft);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px clamp(10px, 1.6vw, 20px);
  border-bottom: 2px solid transparent;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
  opacity: 0.85;
}

.site-nav__link:hover {
  color: var(--lamp);
  border-bottom-color: var(--score);
  background: rgba(255, 90, 54, 0.07);
}

.site-nav__link[aria-current="page"] {
  color: var(--lamp);
  border-bottom-color: var(--score);
  background: linear-gradient(180deg, rgba(255, 90, 54, 0.16), rgba(255, 90, 54, 0));
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--score);
  opacity: 1;
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--score {
  background: var(--score);
  border-color: var(--score);
  color: #0B1A16;
  font-weight: 700;
}

.btn--score:hover {
  background: var(--score-deep);
  border-color: var(--score-deep);
  color: var(--lamp);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--lamp);
}

.btn--ghost:hover {
  border-color: var(--score);
  color: var(--score);
  background: rgba(255, 90, 54, 0.08);
}

/* ---------- 7. 章节标题 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--score);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--lamp);
}

/* ---------- 8. 信息板 ---------- */
.panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 70, 58, 0.5), rgba(14, 47, 39, 0.68));
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease);
}

.panel--paper {
  background: var(--paper);
  border-color: #D6C8AE;
  color: var(--ink);
  box-shadow: 0 20px 40px -34px rgba(0, 0, 0, 0.95);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper strong {
  color: var(--ink);
}

.panel--paper a {
  color: var(--ice-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.panel--paper a:hover { color: var(--score-deep); }

/* ---------- 9. 标签与元信息 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(157, 227, 240, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.tag--score {
  color: var(--score);
  border-color: rgba(255, 90, 54, 0.6);
  background: rgba(255, 90, 54, 0.12);
}

.tag--doubt {
  color: var(--doubt);
  border-color: rgba(232, 180, 74, 0.6);
  background: rgba(232, 180, 74, 0.12);
}

.tag--paper {
  color: var(--ice-deep);
  border-color: rgba(30, 101, 117, 0.42);
  background: rgba(30, 101, 117, 0.08);
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- 10. 布局网格 ---------- */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.layout-grid__main { min-width: 0; }

.layout-grid__aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 1000px) {
  .layout-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
  .layout-grid__aside {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* ---------- 11. 正文容器 ---------- */
.prose {
  max-width: 34em;
  color: var(--ink-soft);
}

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

.prose h2,
.prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--lamp);
}

.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}

.prose a:hover { color: var(--score); }

.panel--paper .prose { color: rgba(7, 31, 26, 0.82); }
.panel--paper .prose h2,
.panel--paper .prose h3 { color: var(--ink); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

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

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb__link:hover {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.breadcrumb__current { color: var(--lamp); }

/* ---------- 13. 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 22% 0%, rgba(157, 227, 240, 0.14), rgba(7, 31, 26, 0) 60%),
    linear-gradient(150deg, #123B31 0%, #071F1A 58%, #0B2A24 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---------- 14. 数据表基础 ---------- */
.data-table {
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  background: rgba(28, 70, 58, 0.55);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ice);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color var(--dur) var(--ease);
}

.data-table tbody tr:hover { background: rgba(255, 90, 54, 0.07); }

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

.data-table--paper {
  color: var(--ink);
  border-color: rgba(82, 112, 102, 0.4);
}

.data-table--paper th {
  background: rgba(28, 70, 58, 0.12);
  color: var(--ice-deep);
}

.data-table--paper th,
.data-table--paper td {
  border-bottom-color: rgba(7, 31, 26, 0.16);
}

.data-table--paper tbody tr:hover { background: rgba(30, 101, 117, 0.08); }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid rgba(157, 227, 240, 0.2);
  background:
    radial-gradient(90% 65% at 6% 0%, rgba(28, 70, 58, 0.7), rgba(7, 31, 26, 0) 62%),
    linear-gradient(180deg, #08241E 0%, #061A16 100%);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

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

.brand--footer .brand__name { font-size: 24px; }

.footer-note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-faint);
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}

.footer-contact__item {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ice);
}

.footer-contact__value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--lamp);
  overflow-wrap: anywhere;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  min-width: 0;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 24px;
  }
}

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

.footer-col__title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--ice);
}

.footer-col__list {
  display: grid;
  gap: 2px;
}

.footer-col__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  background-image: linear-gradient(var(--score), var(--score));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease);
}

.footer-col__link:hover {
  color: var(--lamp);
  background-size: 100% 1px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.footer-legal__copy { color: var(--ink-faint); }
.footer-legal__icp { color: var(--ink-soft); }
.footer-legal__version { color: var(--ice); }

/* ---------- 16. 阅读进度条（JS 注入） ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(82, 112, 102, 0.26);
}

.read-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ice) 0%, var(--score) 100%);
}

/* ---------- 17. 响应式：移动与平板 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; }

  .site-header[data-open] .site-nav {
    display: block;
    border-top: 1px solid var(--line-soft);
    background: rgba(10, 38, 32, 0.98);
  }

  .site-nav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 6px var(--gutter) 14px;
  }

  .site-nav__item {
    width: 100%;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__item:last-child { border-bottom: 0; }

  .site-nav__link {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 0;
    font-size: 16px;
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] {
    background: rgba(255, 90, 54, 0.1);
    box-shadow: inset 3px 0 0 var(--score);
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .brand__name { font-size: 19px; }
  .brand__tagline { display: none; }

  .header-main__inner { padding: 12px var(--gutter); }

  .btn--score {
    padding: 8px 12px;
    font-size: 13px;
    letter-spacing: 0;
  }

  .nav-toggle {
    padding: 8px 10px;
    gap: 8px;
  }

  .header-band__note { display: none; }

  .section-head__index { font-size: 22px; }
  .section-head__title { font-size: 19px; }
}

@media (max-width: 400px) {
  .header-actions .btn--score { display: none; }
}

@media (max-width: 560px) {
  .footer-legal {
    justify-content: flex-start;
    gap: 6px 18px;
  }
}

/* ---------- 18. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active { transform: none; }

  .footer-col__link:hover { background-size: 0% 1px; }
}

/* ---------- 19. 打印 ---------- */
@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .read-progress {
    display: none !important;
  }

  .panel,
  .panel--paper {
    border: 1px solid #999;
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  a { color: #111; text-decoration: underline; }
}
