/* ==========================================================
   OK赛场 · 共享样式 /assets/site.css
   矿物色 + 陶土橙 + 苔绿 + 深蓝数据条
   ========================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --primary-300: #C5C2BC;
  --primary-500: #8A8782;
  --primary-700: #4A4A48;
  --primary-900: #2E2E2C;
  --accent-300: #E0A08F;
  --accent-500: #C2755A;
  --accent-700: #9B523A;
  --accent-fire: #D9652F;
  --secondary-300: #A3C4A3;
  --secondary-500: #6B8E6B;
  --secondary-700: #4A6B4A;
  --bg-50: #FCFAF5;
  --bg-100: #F5F0E8;
  --bg-200: #EFE9DF;
  --text: #2E2E2C;
  --text-secondary: #5E5E5B;
  --on-dark: #F5F0E8;
  --blue-700: #2C4E6B;
  --blue-900: #1D3348;

  --font-heading: 'Arial Black', 'Arial Bold', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Helvetica Neue', 'PingFang SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;

  --radius-pill: 999px;
  --radius-organic: 24px 8px 24px 8px;
  --shadow-float: 0 8px 24px rgba(46, 46, 44, 0.1);
  --shadow-lift: 0 18px 36px rgba(46, 46, 44, 0.14);
}

/* ---------- 2. Reset 与基础排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.45em;
}

p { margin: 0 0 1em; }

a {
  color: var(--accent-700);
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-fire); }

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

ul, ol { padding-left: 1.3em; }

main { display: block; }

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

::selection { background: var(--accent-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. 通用容器与工具 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn--primary {
  background: var(--accent-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(194, 117, 90, 0.35);
}

.btn--primary:hover {
  background: var(--accent-fire);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(194, 117, 90, 0.4);
}

.btn--ghost {
  border-color: var(--primary-500);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-500);
  color: var(--accent-700);
  background: var(--bg-100);
}

.btn--dark {
  background: var(--blue-900);
  color: var(--on-dark);
}

.btn--dark:hover {
  background: var(--blue-700);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--on-dark);
  color: var(--blue-900);
}

.btn--light:hover {
  background: #fff;
  color: var(--text);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 20px; font-size: 0.85rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-200);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--moss { background: var(--secondary-300); color: var(--secondary-700); }
.tag--clay { background: var(--accent-300); color: var(--accent-700); }
.tag--blue { background: rgba(44, 78, 107, 0.14); color: var(--blue-700); }

/* ---------- 5. 章节组件 ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--gray { background: var(--bg-100); }
.section--clay { background: var(--accent-500); color: #fff; }
.section--dark { background: var(--blue-900); color: var(--on-dark); }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.section--dark .section-kicker { color: var(--accent-300); }
.section--dark .section-sub { color: rgba(245, 240, 232, 0.75); }
.section--clay .section-title { color: #fff; }
.section--clay .section-sub { color: rgba(255, 255, 255, 0.88); }

.divider {
  height: 8px;
  margin: 56px 0;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-500) 18%, var(--bg-200) 18%, var(--bg-200) 82%, var(--secondary-500) 82%, var(--secondary-500) 100%);
  transform: skewY(-0.8deg);
}

/* ---------- 6. 卡片、图片与比分 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-organic);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card--accent { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.card--dark { background: var(--blue-900); border-color: var(--blue-900); color: var(--on-dark); }
.card--tall { min-height: 280px; }

.card--wide { grid-column: span 1; }

@media (min-width: 640px) {
  .card--wide { grid-column: span 2; }
}

.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__body { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 18px; }
.card--accent .card__title, .card--dark .card__title { color: #fff; }
.card--accent .card__body, .card--dark .card__body { color: rgba(255, 255, 255, 0.85); }

.card__link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-700);
  text-decoration: none;
}

.card__link:hover { color: var(--accent-fire); text-decoration: underline; }
.card--accent .card__link { color: #fff; }
.card--dark .card__link { color: var(--accent-300); }

.score-tile {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  padding: 16px 18px;
  border-radius: 18px 6px 18px 6px;
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  border-left: 4px solid var(--accent-500);
}

.score-tile__team { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.3; }
.score-tile__value { font-family: var(--font-heading); font-style: italic; font-size: 1.7rem; line-height: 1.05; color: var(--text); }
.score-tile__meta { font-size: 0.74rem; color: var(--text-secondary); }

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-200), var(--bg-100));
  border-radius: var(--radius-organic);
}

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

.img-frame--skew { transform: rotate(-0.8deg); }
.img-frame--clip { border-radius: 0; clip-path: polygon(0 4%, 96% 0, 100% 96%, 4% 100%); }
.img-frame--4-3 { aspect-ratio: 4 / 3; }
.img-frame--16-9 { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 7. 面包屑与索引 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb__item { display: inline-flex; align-items: center; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin: 0 10px;
  color: var(--primary-500);
}

.breadcrumb__link { color: var(--text-secondary); text-decoration: none; }
.breadcrumb__link:hover { color: var(--accent-700); }
.breadcrumb__item[aria-current="page"] { color: var(--text); font-weight: 600; }

.list-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bg-200);
}

.list-index__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--bg-200);
  font-size: 0.95rem;
}

.list-index__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-500);
  min-width: 2.4em;
}

.list-index__title { font-weight: 600; color: var(--text); }
.list-index__link { color: var(--text); text-decoration: none; }
.list-index__link:hover { color: var(--accent-fire); }
.list-index__note { margin-left: auto; color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; }

/* ---------- 8. 实时脉冲与 Logo 色彩 ---------- */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-fire);
  box-shadow: 0 0 0 0 rgba(217, 101, 47, 0.45);
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 101, 47, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(217, 101, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 101, 47, 0); }
}

.logo-track { stroke: var(--accent-500); }
.logo-arc { stroke: var(--secondary-300); }
.logo-o, .logo-k { stroke: var(--primary-900); }

.brand--footer .logo-track { stroke: var(--accent-300); }
.brand--footer .logo-arc { stroke: var(--secondary-300); }
.brand--footer .logo-o,
.brand--footer .logo-k { stroke: var(--on-dark); }

/* ---------- 9. 头部组件 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-50);
  box-shadow: 0 2px 14px rgba(46, 46, 44, 0.06);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(46, 46, 44, 0.13); }

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-500) 18%, var(--secondary-500) 18%, var(--secondary-500) 48%, var(--blue-700) 48%, var(--blue-700) 100%);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (min-width: 1200px) {
  .site-header__bar { gap: 24px; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1100;
  padding: 12px 20px;
  background: var(--primary-900);
  color: var(--on-dark);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}

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

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

.brand__logo { width: 44px; height: 44px; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.capsule-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  box-shadow: var(--shadow-float);
}

.capsule-nav__group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
}

.capsule-nav__group + .capsule-nav__group {
  border-left: 1px solid var(--bg-200);
  padding-left: 14px;
}

.capsule-nav__group--quick { display: none; }

.capsule-nav__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-500);
  text-transform: uppercase;
  white-space: nowrap;
}

.capsule-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.capsule-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-900);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.capsule-nav__link:hover {
  background: var(--bg-200);
  color: var(--accent-700);
}

.capsule-nav__link[aria-current="page"] {
  background: var(--primary-900);
  color: var(--on-dark);
}

.header-note {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-100);
  border: 1px solid var(--bg-200);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .header-note { display: inline-flex; }
}

.header-island {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--blue-900);
  box-shadow: 0 6px 20px rgba(29, 51, 72, 0.35);
}

.header-island__link {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-island__link:hover { background: rgba(255, 255, 255, 0.1); color: var(--on-dark); }
.header-island__link[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }

.header-island__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-500);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.header-island__cta:hover {
  background: var(--accent-fire);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--bg-200);
  border-radius: 50%;
  background: var(--bg-100);
  cursor: pointer;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--primary-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

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

/* ---------- 10. 页脚组件 ---------- */
.site-footer {
  position: relative;
  margin-top: 56px;
  background: var(--blue-900);
  color: rgba(245, 240, 232, 0.72);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(100deg, var(--accent-500) 0%, var(--accent-500) 30%, var(--secondary-500) 30%, var(--secondary-500) 70%, var(--accent-300) 70%, var(--accent-300) 100%);
}

.site-footer__inner { padding-top: 56px; padding-bottom: 24px; }

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 0.9fr 1.6fr;
    gap: 56px;
    align-items: start;
  }
}

.site-footer__brand .brand__name { color: var(--on-dark); }
.site-footer__brand .brand__tag { color: rgba(245, 240, 232, 0.55); }

.site-footer__slogan {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--on-dark);
  margin: 20px 0 10px;
}

.site-footer__trust {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 460px;
  margin: 0;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-footer__nav { grid-template-columns: 0.9fr 0.9fr 1.3fr; }
}

.site-footer__col--contact { padding-left: 0; }

@media (min-width: 900px) {
  .site-footer__col--contact {
    padding-left: 24px;
    border-left: 1px solid rgba(245, 240, 232, 0.12);
  }
}

.site-footer__head {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin: 0 0 14px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer__list a {
  color: rgba(245, 240, 232, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .2s ease, padding-left .2s ease;
}

.site-footer__list a:hover {
  color: var(--accent-300);
  padding-left: 4px;
}

.site-footer__list--plain li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.68);
}

.site-footer__note {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-500);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.52);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.48);
}

@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

.site-footer__copyright,
.site-footer__icp { margin: 0; }

/* ---------- 11. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 12. 移动端断点 ---------- */
@media (max-width: 899.98px) {
  .site-header__bar { min-height: 64px; gap: 12px; }

  .header-note { display: none; }
  .header-island { display: none; }
  .nav-toggle { display: inline-flex; }

  .capsule-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-radius: 24px;
    background: var(--bg-50);
    border: 1px solid var(--bg-200);
    box-shadow: 0 20px 40px rgba(46, 46, 44, 0.18);
  }

  .capsule-nav[data-open="true"] {
    display: flex;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    animation: nav-fade .24s ease-out;
  }

  @keyframes nav-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .capsule-nav__group {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0;
  }

  .capsule-nav__group + .capsule-nav__group {
    border-left: 0;
    border-top: 1px solid var(--bg-200);
    padding-left: 0;
  }

  .capsule-nav__group--quick { display: flex; }

  .capsule-nav__label { padding: 0 8px; margin-bottom: 4px; }

  .capsule-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .capsule-nav__link {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1rem;
  }
}

/* ---------- 13. 减弱动效与无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

  .live-dot { animation: none !important; }

  .capsule-nav[data-open="true"] { animation: none !important; }
}
