/* ============================================================
   乐道赛场 · 共享样式 /assets/site.css
   夜场记分牌语言：深墨压底、草皮绿分块、橙红做入口与状态
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
#main-content { display: block; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --ink: #0E1512;
  --ink-soft: rgba(14, 21, 18, .68);
  --grass: #1E5C3A;
  --grass-deep: #123024;
  --orange: #F04A22;
  --paper: #F5EEDF;
  --paper-dim: rgba(245, 238, 223, .74);
  --paper-faint: rgba(245, 238, 223, .46);
  --concrete: #8C928B;
  --warm: #E7DDC7;
  --yellow: #F2C94C;
  --rust: #A8321C;
  --white: #FFFFFF;

  /* 线 */
  --hairline: rgba(245, 238, 223, .16);
  --hairline-ink: rgba(14, 21, 18, .16);

  /* 结构 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --gap: clamp(16px, 2vw, 28px);

  /* 字体 */
  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "DIN Condensed", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .16s;
}

/* ---------- 3. 中文排版与基础元素 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.4; letter-spacing: 0; }

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

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

/* ---------- 4. 布局容器 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(44px, 7vw, 104px);
}

.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--warm); color: var(--ink); }
.section--grass { background: var(--grass); color: var(--paper); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.prose {
  max-width: 36em;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.prose a:hover { color: var(--rust); }
.prose li {
  position: relative;
  padding-left: 1.25em;
}
.prose li + li { margin-top: .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 2px;
  background: var(--orange);
}

/* ---------- 5. 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  font-size: 13px;
  letter-spacing: .08em;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  opacity: .5;
}
.breadcrumb__link {
  text-decoration: none;
  opacity: .78;
  border-bottom: 1px solid transparent;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumb__link:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}
.breadcrumb__current {
  font-weight: 800;
}

/* ---------- 6. 小构件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

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

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--grass-deep);
  border: 0;
}
.media img,
.media picture,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--cinema { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 10px 14px;
  background: rgba(14, 21, 18, .84);
  color: var(--paper);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--cta {
  background: var(--orange);
  color: var(--ink);
}
.btn--cta:hover { background: var(--yellow); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper-faint);
}
.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--grass); }

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 10. 头部：赛程命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--hairline);
  box-shadow: inset 0 -3px 0 0 rgba(240, 74, 34, .28);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 40px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 88px;
  transition: min-height var(--dur) var(--ease);
}

.site-header[data-compact] .header-shell {
  min-height: 64px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: background-color var(--dur) var(--ease);
}
.brand:hover .brand__mark { background: var(--yellow); }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--white);
}
.brand__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--paper-faint);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper-faint);
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle__label { line-height: 1; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list__item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav-link__index {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: var(--paper-faint);
  transition: color var(--dur) var(--ease);
}
.nav-link__label { display: inline-block; line-height: 1.2; }

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--grass-deep);
  color: var(--white);
}
.nav-link:hover .nav-link__index,
.nav-link:focus-visible .nav-link__index {
  color: var(--yellow);
}
.nav-link[aria-current="page"] {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.nav-link[aria-current="page"] .nav-link__index {
  color: rgba(14, 21, 18, .55);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 11px 18px;
  font-size: 13px;
}

/* 移动端导航 */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 10px var(--gutter) 24px;
    background: var(--grass-deep);
    border-top: 1px solid var(--hairline);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list__item { display: block; }

  .nav-link {
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-link[aria-current="page"] {
    padding-inline: 14px;
    background: var(--orange);
    color: var(--ink);
    border-bottom-color: transparent;
  }

  .nav-cta {
    margin-top: 20px;
    justify-content: center;
    padding: 15px 18px;
    font-size: 15px;
  }
}

/* ---------- 11. 页脚：看台底层 ---------- */
.site-footer {
  background: var(--grass-deep);
  color: var(--paper);
  border-top: 6px solid var(--orange);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3vw, 52px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 52px);
}

.footer-brand { min-width: 0; }
.footer-brand__line {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--white);
}
.footer-brand__summary {
  margin-top: 14px;
  max-width: 26em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper-dim);
}
.footer-brand__cta { margin-top: 22px; }

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

.footer-col__heading {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--yellow);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  display: inline-block;
  font-size: 15px;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--orange);
  transform: translateX(3px);
}

.footer-contact { min-width: 0; }
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-link {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-faint);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.contact-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--paper-dim);
}
.footer-contact .contact-note { margin-top: 16px; }

.footer-base {
  border-top: 1px solid var(--hairline);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
  font-size: 13px;
  color: var(--paper-faint);
}
.footer-copy { letter-spacing: .06em; }
.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.legal-link {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.legal-link:hover,
.legal-link:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}
.footer-icp {
  font-family: var(--font-num);
  letter-spacing: .06em;
}

/* ---------- 12. 滚动进度条（JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-shell { min-height: 68px; }
  .brand__mark { width: 38px; height: 38px; font-size: 15px; }
  .brand__name { font-size: 17px; }
  .brand__tag { letter-spacing: .22em; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-shell { grid-template-columns: 1fr; gap: 32px; }
  .footer-base__inner { flex-direction: column; align-items: flex-start; }
  .btn { padding: 12px 18px; }
}

/* ---------- 14. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .footer-link:hover,
  .footer-link:focus-visible {
    transform: none;
  }
}
