/* =========================================================
   欧巴体育 · 共享样式  /assets/site.css
   意象：夜赛转播室 + 本地数据终端
   ========================================================= */

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

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

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

ul, ol { list-style: none; }

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

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%; }

/* ---------- 2. 变量 ---------- */
:root {
  --c-ink: #06120E;
  --c-mountain: #0C2A22;
  --c-panel: #123F34;
  --c-amber: #E8B14B;
  --c-amber-soft: #F3D48F;
  --c-cyan: #5AD1C4;
  --c-cyan-line: #2A8579;
  --c-tactic: #D8F24A;
  --c-text: #EAF1EE;
  --c-dim: #9CAFA8;

  --grad-mist: linear-gradient(135deg, #0C2A22 0%, #16483A 45%, #5A3E12 100%);
  --grad-line: linear-gradient(90deg, rgba(42, 133, 121, 0), rgba(90, 209, 196, .55), rgba(42, 133, 121, 0));
  --grad-card: linear-gradient(160deg, rgba(18, 63, 52, .88), rgba(12, 42, 34, .92));

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --w-wrap: 1240px;
  --w-narrow: 880px;

  --font-display: "Oswald", "Barlow Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: Inter, "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --shadow-lift: 0 20px 44px -26px rgba(0, 0, 0, .9);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(18, 63, 52, .85), rgba(6, 18, 14, 0) 62%),
    radial-gradient(880px 460px at 96% 6%, rgba(90, 209, 196, .10), rgba(6, 18, 14, 0) 64%),
    radial-gradient(760px 620px at 78% 104%, rgba(232, 177, 75, .10), rgba(6, 18, 14, 0) 68%),
    var(--c-ink);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .015em;
}

h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 19px; }

::selection { background: rgba(232, 177, 75, .32); color: #fff; }

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

#main-content { display: block; scroll-margin-top: 140px; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -72px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-tactic);
  color: #08170F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top .18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ---------- 5. 刊头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(10, 30, 24, .98), rgba(6, 18, 14, .96));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 133, 121, .45);
}

.masthead__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(620px 130px at 50% 0%, rgba(232, 177, 75, .18), rgba(6, 18, 14, 0) 72%);
}

.masthead__inner {
  position: relative;
  width: min(var(--w-wrap), 100% - 32px);
  margin-inline: auto;
  padding: 14px 0 0;
}

.masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.masthead__domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--c-dim);
  align-self: center;
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: var(--r-sm);
}

.masthead__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: .14em;
  color: var(--c-text);
  transition: color .18s ease;
}

.masthead__brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--c-dim);
}

.masthead__brand:hover .masthead__brand-name { color: var(--c-amber-soft); }

.masthead__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-tactic);
  background: rgba(216, 242, 74, .09);
  color: var(--c-tactic);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.version-chip--sm {
  padding: 2px 9px;
  font-size: 11px;
  letter-spacing: .12em;
  vertical-align: middle;
}

.kickoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--grad-mist);
  border: 1px solid rgba(232, 177, 75, .42);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.kickoff__label { color: var(--c-dim); letter-spacing: .08em; }

.kickoff__time {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-amber);
  font-variant-numeric: tabular-nums;
}

.kickoff[data-ten] {
  border-color: var(--c-tactic);
  box-shadow: 0 0 0 1px rgba(216, 242, 74, .45), 0 0 24px -6px rgba(216, 242, 74, .5);
}
.kickoff[data-ten] .kickoff__time { color: var(--c-tactic); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(42, 133, 121, .9);
  background: rgba(18, 63, 52, .6);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s ease, color .18s ease;
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.nav-toggle__bars {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-rail {
  margin-top: 10px;
  border-top: 1px solid rgba(42, 133, 121, .35);
}

.nav-rail__list {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2.2vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2px;
}
.nav-rail__list::-webkit-scrollbar { display: none; }

.nav-link {
  display: block;
  padding: 11px 6px 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-link:hover { color: var(--c-amber-soft); border-bottom-color: rgba(232, 177, 75, .45); }
.nav-link[aria-current="page"] { color: var(--c-text); border-bottom-color: var(--c-amber); }

.masthead__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-amber) 62%, var(--c-tactic));
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #06120E 0%, #0A2019 100%);
  border-top: 1px solid rgba(42, 133, 121, .5);
  color: var(--c-text);
}

.site-foot::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad-line);
}

.site-foot__inner {
  width: min(var(--w-wrap), 100% - 32px);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 56px) 0 22px;
}

.site-foot__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(20px, 4vw, 54px);
}

.site-foot__col--brand { padding-right: 6px; }

.site-foot__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .16em;
  color: var(--c-amber);
}

.site-foot__text {
  margin-top: 10px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-dim);
}

.site-foot__head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 133, 121, .45);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--c-cyan);
}

.site-foot__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.site-foot__link {
  display: inline-block;
  font-size: 14px;
  color: var(--c-text);
  opacity: .84;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, opacity .18s ease, border-color .18s ease;
}
.site-foot__link:hover {
  opacity: 1;
  color: var(--c-amber-soft);
  border-bottom-color: var(--c-amber);
}

.site-foot__meta {
  margin-top: 12px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 16px;
  border-top: 1px solid rgba(42, 133, 121, .35);
}

.site-foot__copy {
  font-size: 12.5px;
  color: var(--c-dim);
}

/* ---------- 7. 布局容器 ---------- */
.wrap {
  width: min(var(--w-wrap), 100% - 32px);
  margin-inline: auto;
}

.wrap--narrow { width: min(var(--w-narrow), 100% - 32px); }

.section { padding: clamp(38px, 6vw, 76px) 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(42, 133, 121, .4);
}

.section__title { letter-spacing: .02em; }

.section__note {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-dim);
}

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }

.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.grid--split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 8. 内容组件 ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-cyan-line);
  background: rgba(18, 63, 52, .7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--c-cyan);
}

.plate__index {
  color: var(--c-amber);
  font-variant-numeric: tabular-nums;
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid rgba(42, 133, 121, .45);
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-cyan); }

.card__title { font-size: 21px; line-height: 1.32; }

.card__body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-dim);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.panel {
  border-radius: var(--r-md);
  border: 1px solid rgba(42, 133, 121, .5);
  background: rgba(18, 63, 52, .55);
  overflow: hidden;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(42, 133, 121, .5);
  background: linear-gradient(90deg, rgba(12, 42, 34, .95), rgba(18, 63, 52, .75));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-cyan);
}

.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(42, 133, 121, .28);
  font-size: 14.5px;
}
.panel__row:last-child { border-bottom: 0; }

.panel__key { color: var(--c-dim); }

.panel__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--c-text);
}

.timeline {
  position: relative;
  padding-left: 22px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-cyan), rgba(42, 133, 121, .18));
}

.timeline__item {
  position: relative;
  padding-bottom: 20px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-ink);
  border: 2px solid var(--c-cyan);
}
.timeline__item[data-state="current"]::before {
  background: var(--c-amber);
  border-color: var(--c-amber);
}

.timeline__mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-amber);
}

.timeline__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-dim);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-cyan-line);
  background: rgba(18, 63, 52, .8);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-cyan);
}
.pill--amber {
  border-color: var(--c-amber);
  background: rgba(232, 177, 75, .1);
  color: var(--c-amber);
}
.pill--tactic {
  border-color: var(--c-tactic);
  background: rgba(216, 242, 74, .1);
  color: var(--c-tactic);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-amber);
  color: #08170F;
}
.btn--primary:hover { background: var(--c-amber-soft); }

.btn--ghost {
  border-color: var(--c-cyan-line);
  background: rgba(18, 63, 52, .45);
  color: var(--c-cyan);
}
.btn--ghost:hover {
  border-color: var(--c-cyan);
  background: rgba(90, 209, 196, .12);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-dim);
}
.crumbs a:hover { color: var(--c-cyan); }

.crumbs__sep { color: var(--c-cyan-line); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 30px 0 12px; }
.prose h3 { margin: 24px 0 10px; }
.prose ul { display: grid; gap: 8px; margin: 14px 0; padding-left: 4px; }
.prose li { padding-left: 16px; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
}
.prose a { color: var(--c-cyan); border-bottom: 1px solid rgba(90, 209, 196, .5); }
.prose a:hover { color: var(--c-amber-soft); border-bottom-color: var(--c-amber); }

.lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--c-dim);
}

/* ---------- 9. 图像容器 ---------- */
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid rgba(42, 133, 121, .45);
  background: var(--grad-mist);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 14, 0) 44%, rgba(6, 18, 14, .74));
}
.frame--wide { aspect-ratio: 21 / 9; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--square { aspect-ratio: 1 / 1; }

.frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-amber-soft);
}

/* ---------- 10. 显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-foot__cols { grid-template-columns: 1fr 1fr; }
  .site-foot__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .masthead__inner {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .masthead__domain { display: none; }

  .masthead__brand {
    order: 1;
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 0;
  }

  .masthead__brand-name { font-size: 24px; letter-spacing: .12em; }
  .masthead__brand-tag { font-size: 10px; letter-spacing: .2em; }

  .masthead__side {
    order: 2;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .kickoff__label { display: none; }
  .kickoff__time { font-size: 13px; }

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

  .nav-rail {
    display: none;
    margin-top: 10px;
    padding-bottom: 6px;
  }
  .nav-rail[data-open] { display: block; }

  .nav-rail__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .nav-rail__item { border-bottom: 1px solid rgba(42, 133, 121, .22); }
  .nav-rail__item:last-child { border-bottom: 0; }

  .nav-link {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 0;
  }
  .nav-link[aria-current="page"] {
    color: var(--c-amber);
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--c-amber);
  }
}

@media (max-width: 620px) {
  .site-foot__cols { grid-template-columns: 1fr; }
  .site-foot__bottom { flex-direction: column; align-items: flex-start; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- 12. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .card:hover { transform: none; }
  .btn:active { transform: none; }
  .skip-link { transition: none; }
}
