/* ==========================================================================
   德赢体育 · VWIN 赛事导航 — 共享样式 /assets/site.css
   夜场看台 + 数据仪表盘：深墨绿底、夜场蓝分区、青柠高亮、暖橙提示
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
dd { margin: 0; }

:root {
  /* 品牌色 */
  --ink: #062A24;
  --ink-deep: #041D19;
  --night: #0A1A2F;
  --stand: #0E3B35;
  --lime: #C8FF4D;
  --lime-soft: #D8FF7A;
  --orange: #FF8A3D;
  --silver: #B9C6C9;
  --ivory: #F3F1E7;
  --wine: #6A1F35;
  --indigo: #2A2350;
  --charcoal: #111417;

  /* 线条与弱化文字 */
  --hair: rgba(185, 198, 201, 0.18);
  --hair-strong: rgba(185, 198, 201, 0.34);
  --muted: rgba(185, 198, 201, 0.72);
  --muted-soft: rgba(185, 198, 201, 0.55);

  /* 字体 */
  --font-display: "Bebas Neue", "Oswald", "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --cut: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ivory);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { text-wrap: pretty; }

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

/* ---------- 基础工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.text-muted { color: var(--muted); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--hair);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
  flex: none;
}

/* ---------- 章节与正文容器 ---------- */
.section { padding-block: clamp(40px, 6vw, 84px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-lede {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.prose {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ivory);
}
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 面板（档案卡） ---------- */
.panel {
  position: relative;
  background: var(--stand);
  border: 1px solid var(--hair);
  padding: clamp(18px, 2.6vw, 28px);
}
.panel--cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.panel--night { background: var(--night); }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-bd: var(--hair-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease),
              color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.btn--primary { --btn-bg: var(--lime); --btn-fg: #06231A; --btn-bd: transparent; }
.btn--primary:hover { --btn-bg: var(--lime-soft); }
.btn--alert { --btn-bg: var(--orange); --btn-fg: #2A1206; --btn-bd: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: var(--hair-strong); }
.btn--ghost:hover { --btn-fg: var(--lime); --btn-bd: var(--lime); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--hair-strong);
  color: var(--silver);
}
.tag--lime { background: var(--lime); color: #06231A; border-color: transparent; }
.tag--alert { background: var(--orange); color: #2A1206; border-color: transparent; }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  border-bottom: 1px solid var(--hair);
  padding-block: 14px;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--muted-soft);
}
.breadcrumbs__link { transition: color var(--dur) var(--ease); }
.breadcrumbs__link:hover { color: var(--lime); }
.breadcrumbs__item [aria-current="page"] { color: var(--ivory); }

/* ---------- 图片容器（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border: 1px solid var(--hair);
}
.media-frame::before {
  content: "";
  display: block;
  padding-top: 62%;
}
.media-frame--wide::before { padding-top: 44%; }
.media-frame--tall::before { padding-top: 118%; }
.media-frame--square::before { padding-top: 100%; }
.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(4, 29, 25, 0.86);
  border-top: 1px solid var(--hair-strong);
  border-right: 1px solid var(--hair-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.media-frame--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(185, 198, 201, 0.07) 0 2px,
    transparent 2px 12px
  );
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--ink);
  background-image: linear-gradient(180deg, #072E28 0%, var(--ink) 68%, #05231E 100%);
  border-bottom: 1px solid var(--hair);
}

/* 跳至主内容 */
.skip-link {
  position: fixed;
  top: -110px;
  left: clamp(12px, 3vw, 28px);
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: #06231A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

/* 视口顶部阅读进度轨 */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
  background: rgba(4, 29, 25, 0.9);
}
.scroll-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 100%);
}

/* 刊头 */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-block: 20px 18px;
}

.masthead__alerts {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.masthead__alerts--start { justify-content: flex-start; }
.masthead__alerts--end { justify-content: flex-end; }

.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  background: rgba(10, 26, 47, 0.72);
  border: 1px solid var(--hair-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--muted);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: transform 180ms var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.alert-chip:hover {
  transform: translateY(-2px);
  color: var(--ivory);
  border-color: var(--lime);
  background: rgba(14, 59, 53, 0.9);
}
.alert-chip:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.alert-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.16);
}
.alert-chip--warn .alert-chip__dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.16);
}
.alert-chip__label { color: var(--ivory); font-weight: 600; white-space: nowrap; }
.alert-chip__hint {
  color: var(--muted-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__brand {
  display: block;
  text-align: center;
  min-width: 0;
}
.masthead__edition {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 255, 77, 0.86);
}
.masthead__wordmark {
  position: relative;
  display: block;
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.masthead__wordmark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--lime);
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease);
}
.masthead__brand:hover .masthead__wordmark::after,
.masthead__brand:focus-visible .masthead__wordmark::after { width: 78px; }
.masthead__brand:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.masthead__tagline {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 栏目横杆 */
.nav-rail {
  position: relative;
  background: var(--night);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair-strong);
}
.nav-rail__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
}
.nav-rail__meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav__item { position: relative; }
.main-nav__item + .main-nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--hair);
}
.main-nav__link {
  position: relative;
  display: block;
  padding: 16px 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--silver);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.main-nav__link:hover { color: var(--ivory); }
.main-nav__link:hover::after { transform: scaleX(0.5); }
.main-nav__link[aria-current="page"] { color: var(--lime); }
.main-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--hair-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ivory);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--night);
  border-top: 1px solid var(--hair-strong);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lime) 0 72px,
    var(--orange) 72px 104px,
    rgba(185, 198, 201, 0.18) 104px 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3.6vw, 56px);
  align-items: start;
  padding-block: clamp(38px, 5.5vw, 72px) clamp(26px, 3.4vw, 46px);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.footer-brand__line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-brand__cta { margin-top: 20px; }

.footer-col__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}
.footer-col__heading::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.footer-col__list { display: grid; gap: 10px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(185, 198, 201, 0.86);
  transition: color var(--dur) var(--ease);
}
.footer-link::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--silver);
  opacity: 0.5;
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.footer-link:hover { color: var(--lime); }
.footer-link:hover::before { width: 16px; background: var(--lime); opacity: 1; }

.footer-contact__list { display: grid; gap: 12px; }
.footer-contact__item { display: grid; gap: 2px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ivory);
  overflow-wrap: anywhere;
}
.footer-contact__value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-size: 13.5px;
}
.footer-contact__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-soft);
}

.footer-meta {
  border-top: 1px solid var(--hair);
  background: var(--ink-deep);
}
.footer-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 16px;
}
.footer-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}
.footer-meta__dot {
  width: 4px;
  height: 4px;
  background: var(--lime);
  flex: none;
}

/* ==========================================================================
   入场显现与章节高亮（JS 协议）
   ========================================================================== */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-toc-link] { transition: color var(--dur) var(--ease); }
[data-toc-link].is-active { color: var(--lime); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .alert-chip__hint { display: none; }
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-block: 16px 18px;
  }
  .masthead__brand { order: 1; }
  .masthead__alerts--start { order: 2; }
  .masthead__alerts--end { order: 3; }
  .masthead__alerts {
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
  }
  .masthead__tagline { font-size: 11.5px; letter-spacing: 0.1em; }

  .nav-rail__inner {
    justify-content: space-between;
    min-height: 56px;
  }
  .nav-rail__meta { display: block; }

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

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    background: var(--night);
    border-bottom: 1px solid var(--hair-strong);
    box-shadow: 0 24px 44px rgba(2, 12, 10, 0.6);
    padding: 6px 0 14px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 280ms var(--ease), opacity 180ms var(--ease),
                visibility 280ms var(--ease);
  }
  .main-nav[data-open] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .main-nav__item + .main-nav__item { border-top: 1px solid var(--hair); }
  .main-nav__item + .main-nav__item::before { display: none; }
  .main-nav__link {
    padding: 15px clamp(18px, 4vw, 40px);
    font-size: 15px;
  }
  .main-nav__link::after { display: none; }
  .main-nav__link[aria-current="page"] {
    color: var(--lime);
    background: rgba(200, 255, 77, 0.07);
    box-shadow: inset 3px 0 0 var(--lime);
  }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-meta__row { flex-direction: column; align-items: flex-start; }
  .masthead__wordmark { letter-spacing: 0.06em; }
  .section-lede { font-size: 14.5px; }
  .prose { font-size: 16px; }
}

@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;
  }
  html.reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .alert-chip:hover { transform: none; }
}
