/* ==========================================================================
   欧赔体育娱乐 · /assets/site.css
   夜间赛场数据指挥中心 —— 共享外壳、基础组件与排版系统
   ========================================================================== */

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

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

body { margin: 0; }

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

/* ---------- 02 Tokens ---------- */
:root {
  --ink: #050B14;
  --ink-deep: #04121A;
  --slate: #0A1424;
  --panel: #122036;
  --line: #1F3350;
  --line-soft: rgba(31, 51, 80, 0.62);
  --cyan: #3FE0D0;
  --orange: #FF7A29;
  --gold: #FFC46B;
  --silver: #8FA0B3;
  --white: #E8EEF5;
  --teal: #2AA79B;
  --dim: #5F7183;

  --wrap-max: 1180px;
  --gutter: 20px;
  --radius: 4px;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;
  --font-cond: "Barlow Condensed", "Oswald", "Arial Narrow", var(--font-sans);
}

/* ---------- 03 Base typography ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(63, 224, 208, 0.028) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(90deg, rgba(63, 224, 208, 0.028) 0 1px, transparent 1px 74px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(23px, 3vw, 34px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.1vw, 22px); }
h4 { font-size: 17px; }

p { max-width: 42em; }

a { color: var(--cyan); text-decoration: none; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

/* ---------- 04 Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

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

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

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { margin: 1.1em 0; padding-left: 1.2em; list-style: square; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--cyan); }

/* ---------- 05 Editorial numbers ---------- */
.display-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

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

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--dim);
}

/* ---------- 06 Buttons, chips, labels, cards ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--ink-deep);
}
.btn--primary:hover { background: var(--gold); }

.btn--cyan {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--cyan:hover { background: rgba(63, 224, 208, 0.12); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 32, 54, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.chip--cyan { color: var(--cyan); border-color: rgba(63, 224, 208, 0.42); }
.chip--orange { color: var(--orange); border-color: rgba(255, 122, 41, 0.42); }

.paper-label {
  display: inline-block;
  padding: 5px 12px;
  background: var(--gold);
  color: #1A1206;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.38);
  transform: rotate(-1.4deg);
}

.card {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}
.card:hover { border-color: #2A4064; }
.card__title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 07 Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 18px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}
.breadcrumb a {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 08 Media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(63, 224, 208, 0.12), rgba(5, 11, 20, 0.52)),
    repeating-linear-gradient(0deg, rgba(232, 238, 245, 0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.06) brightness(0.86);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--silver);
}

/* ---------- 09 Header · skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink-deep);
  font-weight: 600;
  border-radius: 3px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 10 Header · shell ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, #050B14 0%, #071021 100%);
  border-bottom: 1px solid var(--line);
}

/* --- 10a Masthead --- */
.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding-block: 18px;
}

.masthead__brand { min-width: 0; }

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: var(--white);
}

.brand__cn {
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

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

.brand:hover .brand__lat { color: var(--orange); }

.masthead__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.masthead__season {
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--slate);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--silver);
  white-space: nowrap;
}

.masthead__stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--dim);
  white-space: nowrap;
}

.masthead__clock {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.masthead__aside {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.masthead__mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border-right: 2px solid var(--orange);
  padding-right: 10px;
  line-height: 1.5;
}

/* --- 10b Ticker --- */
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 42px;
  overflow: hidden;
  background: linear-gradient(90deg, #0A1424 0%, #050B14 55%, #0A1424 100%);
  border-bottom: 1px solid var(--line);
}

.ticker__label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: var(--orange);
  color: #140A02;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #140A02;
  animation: tickerPulse 1.8s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(0.7); }
}

.ticker__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.ticker__track[data-ticker-ready="true"] {
  animation: tickerScroll 52s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding-inline: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.ticker__item + .ticker__item { border-left: 1px solid var(--line); }

.ticker__item b {
  color: var(--orange);
  font-family: var(--font-cond);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticker__league {
  padding: 2px 6px;
  border: 1px solid rgba(63, 224, 208, 0.4);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.ticker__extra {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver);
}

/* --- 10c Nav band --- */
.nav-band {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav-band__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding-block: 6px;
}

.primary-nav {
  grid-column: 2;
  grid-row: 1;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
  color: var(--cyan);
  border-color: var(--line);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(63, 224, 208, 0.55);
  background: rgba(63, 224, 208, 0.08);
}

.primary-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-toggle__bars {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 5px 0 var(--cyan), 0 -5px 0 var(--cyan);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--orange);
  box-shadow: 0 5px 0 var(--orange), 0 -5px 0 var(--orange);
}

.quick-chips {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-chips::before {
  content: "快速入口";
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-right: 2px;
}

.quick-chips a {
  display: inline-block;
  padding: 4px 9px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.quick-chips a:hover,
.quick-chips a:focus-visible {
  color: var(--orange);
  border-style: solid;
  border-color: var(--orange);
}

/* ---------- 11 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--slate);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 38%, var(--orange) 38%, var(--orange) 100%);
  opacity: 0.75;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-block: clamp(38px, 6vw, 62px) 34px;
}

.footer__brand { min-width: 0; }

.brand--footer .brand__cn {
  font-size: clamp(18px, 2vw, 22px);
}

.footer__blurb {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--silver);
}

.footer__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14.5px;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(63, 224, 208, 0.55);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 30px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.contact-item { min-width: 0; }

.contact-item__k {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.contact-item__v {
  display: block;
  font-size: 15px;
  color: var(--white);
  overflow-wrap: anywhere;
}

.contact-item--wide { grid-column: 1 / -1; }

.contact-item--wide .contact-item__v {
  color: var(--silver);
  font-size: 14px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px 32px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}

.footer__copy { color: var(--silver); }

.footer__icp .mono {
  color: var(--silver);
  letter-spacing: 0.1em;
}

/* ---------- 12 Reveal / back-to-top ---------- */
html[data-js="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html[data-js="true"] [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--cyan);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
    border-color 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { border-color: var(--cyan); }

/* ---------- 13 Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 860px) {
  .masthead__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 16px;
  }
  .masthead__meta { align-items: flex-start; text-align: left; }
  .masthead__aside { justify-content: flex-start; }
  .masthead__mono { border-right: 0; border-left: 2px solid var(--orange); padding: 0 0 0 10px; }

  .nav-band__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 12px;
    min-height: 0;
    padding-block: 10px;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }
  .quick-chips {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }
  .quick-chips::before { display: none; }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
  }
  .primary-nav[data-open="true"] { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .primary-nav__list a {
    display: block;
    width: 100%;
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .primary-nav__list a[aria-current="page"] {
    background: rgba(63, 224, 208, 0.08);
    border-color: var(--line-soft);
  }
  .primary-nav__list a[aria-current="page"]::after { display: none; }
}

@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .ticker { height: 38px; }
  .ticker__item { padding-inline: 16px; font-size: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { grid-template-columns: 1fr; gap: 18px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .to-top { right: 12px; bottom: 12px; }
}

/* ---------- 14 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ticker__track[data-ticker-ready="true"] { animation: none; }
  .ticker__dot { animation: none; }

  html[data-js="true"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .to-top { transition: none; }

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