/* ==========================================================================
   site.css — 投注指南 共享外壳
   墨绿夜间赛况面板 × 展览画册阅读面
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre {
  margin: 0;
}

ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

a { color: inherit; }

table {
  border-collapse: collapse;
  width: 100%;
}

main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0B1F1A;
  --ink-800: #102C24;
  --ink-700: #1C4A3E;
  --brown: #2A211B;
  --paper-100: #F4EDDF;
  --paper-200: #E5DAC3;
  --orange: #FF6A2B;
  --orange-soft: #FF7F49;
  --lime: #C6F24E;
  --silver: #9FB0AD;
  --silver-light: #D7E0DE;
  --alert: #E0483C;

  --rail: 248px;
  --bar-h: 60px;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --hairline: 1px solid rgba(159, 176, 173, 0.24);
  --hairline-strong: 1px solid rgba(159, 176, 173, 0.42);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 82% -10%, rgba(28, 74, 62, 0.55) 0%, transparent 46%),
    radial-gradient(circle at 4% 108%, rgba(28, 74, 62, 0.42) 0%, transparent 40%);
  background-repeat: no-repeat;
  color: var(--silver-light);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.4vw + 14px, 17px);
  line-height: 1.75;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#main-content {
  scroll-margin-block-start: 24px;
}

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

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

/* ---------- 4. 中文排版与字号层级 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.03em;
  color: var(--paper-100);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 9vw, 148px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--paper-100);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0.03em;
  color: var(--paper-100);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--paper-100);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.72;
  color: var(--silver-light);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 13px;
  line-height: 1.68;
  color: var(--silver);
  letter-spacing: 0.02em;
}

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 6. 纸面与面板 ---------- */
.paper {
  background: var(--paper-100);
  color: var(--brown);
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: 2px;
  box-shadow: 7px 7px 0 -1px var(--paper-200);
}

.paper h1, .paper h2, .paper h3, .paper h4 {
  color: var(--brown);
}

.paper a {
  color: var(--ink-800);
  text-decoration-color: rgba(42, 33, 27, 0.35);
  text-underline-offset: 3px;
}

.paper .eyebrow { color: #B4430F; }
.paper .note { color: #5B4C40; }

.panel {
  background: var(--ink-800);
  border: var(--hairline);
  border-radius: 2px;
  padding: clamp(20px, 2.6vw, 32px);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper-100);
  --btn-bd: rgba(159, 176, 173, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease),
              background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

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

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink-900);
  --btn-bd: var(--orange);
}
.btn--primary:hover {
  --btn-bg: var(--orange-soft);
  --btn-bd: var(--orange-soft);
}

.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--brown);
  --btn-bd: var(--lime);
}
.btn--lime:hover { --btn-bg: #D6FA72; --btn-bd: #D6FA72; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--silver-light);
}
.btn--ghost:hover {
  --btn-fg: var(--paper-100);
  --btn-bd: var(--lime);
}

/* ---------- 8. 磁贴 ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 180px;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--ink-800);
  border: 1px solid rgba(159, 176, 173, 0.22);
  border-radius: 2px;
  color: var(--paper-100);
  text-decoration: none;
  transition: transform 0.18s var(--ease),
              background-color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(159, 176, 173, 0.5);
}

.tile--hot {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}
.tile--hot:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.tile--line {
  background: var(--ink-900);
  border-style: dashed;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.breadcrumbs a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumbs a:hover { color: var(--lime); }

.breadcrumbs__sep {
  color: rgba(159, 176, 173, 0.5);
  user-select: none;
}

.breadcrumbs [aria-current="page"] { color: var(--paper-100); }

/* ---------- 10. 标签 / 状态点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--ink-700);
  color: var(--silver-light);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--update {
  background: var(--lime);
  color: var(--brown);
}

.tag--hot {
  background: var(--orange);
  color: var(--ink-900);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.18);
  vertical-align: middle;
}

/* ---------- 11. 图片容器（页面阶段放置占位图） ---------- */
.figure {
  display: block;
  margin: 0;
  min-width: 0;
}

.figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--figure-ratio, 16 / 10);
  object-fit: cover;
  background: var(--ink-800);
  border: var(--hairline);
  border-radius: 2px;
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--silver);
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--brown);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 13. 头部框架 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 900;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 72%);
  border-right: var(--hairline);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 20px 16px 26px;
}

.status-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: var(--hairline);
}

.status-bar__brand {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}

.status-bar__site {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.06em;
  color: var(--paper-100);
}

.status-bar__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.status-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.16);
  animation: status-pulse 3s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.16); }
  50%      { box-shadow: 0 0 0 6px rgba(198, 242, 78, 0.05); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(159, 176, 173, 0.4);
  border-radius: 2px;
  color: var(--silver-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.site-header[data-open] .nav-toggle {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle__icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 10px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { bottom: 0; }

.site-header[data-open] .nav-toggle__icon::before {
  transform: translateY(4px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__icon::after {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1;
}

/* 竖排路径导航 */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 22px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  color: var(--silver-light);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.site-nav__link:hover {
  background: var(--ink-700);
  color: var(--paper-100);
}

.site-nav__link[aria-current="page"] {
  border-left-color: var(--orange);
  background: rgba(255, 106, 43, 0.13);
  color: var(--paper-100);
  font-weight: 800;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(159, 176, 173, 0.75);
  transition: color 0.18s var(--ease);
}

.site-nav__link:hover .site-nav__index { color: var(--silver-light); }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--orange); }

.header-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px;
  background: var(--orange);
  border-radius: 2px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.header-cta:hover {
  background: var(--orange-soft);
  transform: translateX(3px);
}

.header-cta__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

/* 阅读进度线 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(159, 176, 173, 0.14);
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.1s linear;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  border-top: var(--hairline);
  background: linear-gradient(180deg, var(--ink-900) 0%, #081814 100%);
  color: var(--silver);
  padding-block: clamp(40px, 6vw, 84px) 28px;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

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

.footer-brand__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--paper-100);
}

.footer-brand__desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--silver);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
}

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

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--silver-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding-top: 24px;
  border-top: var(--hairline);
}

.footer-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-meta__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.footer-meta__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--silver-light);
}

.footer-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--silver);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid rgba(159, 176, 173, 0.38);
  border-radius: 2px;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.copy-btn:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.copy-btn[data-copied] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--brown);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: var(--hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(159, 176, 173, 0.85);
}

.footer-bottom__copy { margin: 0; }

.footer-bottom__icp {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- 15. 进入视口显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式：平板与手机 ---------- */
@media (max-width: 1080px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    border-right: 0;
    border-bottom: var(--hairline);
    background: var(--ink-800);
    overflow: visible;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 0 var(--gutter);
  }

  .status-bar {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .status-bar__brand { display: none; }

  .status-bar__site {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    flex: none;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--ink-800);
    border-bottom: var(--hairline);
    transition: max-height 0.32s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .site-nav__list { padding: 12px var(--gutter) 8px; }

  .site-nav__link {
    padding: 13px 12px;
    font-size: 16px;
  }

  .header-cta {
    margin: 8px var(--gutter) 22px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .grid--7-5,
  .grid--8-4 { grid-template-columns: minmax(0, 1fr); }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .footer-meta { gap: 12px 20px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper { box-shadow: 4px 4px 0 -1px var(--paper-200); }
}

/* ---------- 17. Reduced motion ---------- */
@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;
  }

  .status-bar__dot { animation: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress__bar { transition: none; }

  .btn:hover,
  .tile:hover,
  .header-cta:hover { transform: none; }
}
