/* ==========================================================================
   盈嘉体育赛事 · 共享样式表 /assets/site.css
   暖纸底色 + 深墨绿黑 + 夜灯暖金，展览画册式控制台
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: .01em;
  font-weight: 800;
}

p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-mid); }

button { font: inherit; color: inherit; }

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

:root {
  /* 色板 */
  --paper: #F4EEDF;
  --ink: #14201B;
  --green-deep: #0E4A3A;
  --green-mid: #1F6B52;
  --gold: #E8B65A;
  --red: #FF5A4E;
  --black: #171412;
  --mist: #D8D2C2;
  --field: #A9C7B0;
  --white: #FFFFFF;

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-numeric: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;

  /* 尺幅 */
  --page-max: 1320px;
  --gutter: clamp(18px, 5vw, 64px);
  --hair: rgba(20, 32, 27, .16);
  --hair-soft: rgba(20, 32, 27, .09);
  --hair-invert: rgba(244, 238, 223, .18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

/* --------------------------------------------------------------------------
   基础容器
   -------------------------------------------------------------------------- */

.shell,
.container {
  width: 100%;
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}

.prose p + p { margin-top: 1.1em; }

/* --------------------------------------------------------------------------
   跳至主要内容
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: clamp(12px, 4vw, 40px);
  z-index: 400;
  display: inline-block;
  padding: 12px 20px;
  background: var(--green-deep);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 0 0 14px 14px;
  transition: top .18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   阅读进度
   -------------------------------------------------------------------------- */

.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: rgba(20, 32, 27, .08);
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green-mid) 55%, var(--green-deep) 100%);
  transition: transform .12s linear;
}

/* --------------------------------------------------------------------------
   页眉 · 比分状态条
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
}

.ticker {
  background: var(--black);
  color: var(--paper);
}

.ticker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-block: 9px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.ticker__path {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.ticker__path:hover,
.ticker__path:focus-visible { color: var(--paper); }

.ticker__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: ticker-pulse 2.4s ease-out infinite;
}

@keyframes ticker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 78, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 90, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); }
}

.ticker__label {
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  transition: color .2s ease;
}

.ticker__path:hover .ticker__label { color: var(--white); }

.ticker__meta {
  color: rgba(244, 238, 223, .62);
  letter-spacing: .06em;
}

.ticker__tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.status-lights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-light {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: .8;
}

.status-light--gold  { background: var(--gold); }
.status-light--green { background: var(--field); }
.status-light--red   { background: var(--red); }

.ticker__pause {
  background: transparent;
  border: 1px solid rgba(244, 238, 223, .3);
  border-radius: var(--radius-pill);
  color: rgba(244, 238, 223, .78);
  padding: 3px 11px;
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.ticker__pause:hover {
  border-color: var(--gold);
  color: var(--gold);
}

:root[data-pulse="off"] .ticker__dot {
  animation: none;
  box-shadow: none;
  opacity: .45;
}

/* --------------------------------------------------------------------------
   页眉 · 刊头
   -------------------------------------------------------------------------- */

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px clamp(12px, 2vw, 32px);
  padding-block: clamp(18px, 3vw, 34px);
}

.masthead__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masthead__aside--start { justify-self: start; }
.masthead__aside--end   { justify-self: end; }

.masthead__issue {
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--green-deep);
  white-space: nowrap;
}

.masthead__brand {
  grid-column: 2;
  text-align: center;
  min-width: 0;
}

.brand-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--green-deep);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green-deep);
  transition: letter-spacing .24s ease, color .2s ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--green-deep);
  letter-spacing: .09em;
}

.brand-sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-indent: .22em;
  color: rgba(20, 32, 27, .55);
}

/* --------------------------------------------------------------------------
   页眉 · 移动导航按钮
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid rgba(20, 32, 27, .25);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__text { line-height: 1; }

/* --------------------------------------------------------------------------
   页眉 · 居中刊头导航
   -------------------------------------------------------------------------- */

.site-nav {
  display: block;
  padding-bottom: 2px;
  border-top: 1px solid var(--hair);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: clamp(2px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: block;
  padding: 15px 12px 13px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--green-deep); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--green-deep);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  height: 3px;
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   按钮族
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #F0C877;
  color: var(--black);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(20, 32, 27, .28);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.btn--dark {
  background: var(--green-deep);
  color: var(--paper);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--green-mid);
  color: var(--paper);
}

.btn--sm {
  padding: 9px 17px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   通用小组件
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--green-deep);
  margin-bottom: 10px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(20, 32, 27, .58);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(20, 32, 27, .3);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid rgba(20, 32, 27, .1);
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.5;
}

.pill--gold  { background: var(--gold); color: var(--black); border-color: transparent; }
.pill--field { background: var(--field); color: var(--ink); border-color: transparent; }
.pill--dark  { background: var(--black); color: var(--paper); border-color: transparent; }

/* 比分牌基础面板（页面阶段叠加布局） */
.scoreboard {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--green-deep);
  border-radius: var(--radius-md);
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .02em;
}

.scoreboard__delta {
  font-size: .42em;
  color: var(--gold);
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   图片容器基础规则（页面阶段放入占位图）
   -------------------------------------------------------------------------- */

.figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
  aspect-ratio: 16 / 10;
}

.figure--wide   { aspect-ratio: 21 / 9; }
.figure--tall   { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }

.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.figure__caption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(20, 32, 27, .6);
}

.figure__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(23, 20, 18, .78);
  color: var(--gold);
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: .12em;
}

/* --------------------------------------------------------------------------
   滚动显现
   -------------------------------------------------------------------------- */

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

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--green-deep);
}

.footer-shell { padding-block: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1.35fr;
  gap: clamp(24px, 3vw, 56px);
  padding-block: clamp(38px, 5vw, 68px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--paper);
}

.footer-brand__line {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--gold);
}

.footer-brand__note {
  margin-top: 16px;
  max-width: 26ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(244, 238, 223, .62);
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--field);
  margin-bottom: 16px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(244, 238, 223, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: baseline;
}

.footer-contact__row dt {
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(244, 238, 223, .48);
}

.footer-contact__row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 238, 223, .88);
  overflow-wrap: anywhere;
}

.footer-contact__row dd:first-of-type,
.footer-contact__row:nth-child(1) dd,
.footer-contact__row:nth-child(2) dd {
  font-family: var(--font-numeric);
  letter-spacing: .02em;
}

.footer-contact__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(244, 238, 223, .5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--hair-invert);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(244, 238, 223, .6);
}

.footer-legal__copy { margin: 0; }

.footer-legal__icp {
  font-family: var(--font-numeric);
  letter-spacing: .06em;
}

.footer-legal__region { letter-spacing: .1em; }

.footer-top {
  margin-left: auto;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid rgba(244, 238, 223, .3);
  border-radius: var(--radius-pill);
  color: rgba(244, 238, 223, .82);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.footer-top:hover,
.footer-top:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   焦点可见
   -------------------------------------------------------------------------- */

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

.btn--gold:focus-visible,
.scoreboard:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.site-footer :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .masthead__issue { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-contact__row { grid-template-columns: 44px 1fr; }
  .footer-brand__note { max-width: 34ch; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-block: 16px 18px;
  }

  .masthead__aside--start { order: 1; }
  .masthead__aside--end   { order: 2; margin-left: auto; }

  .masthead__brand {
    order: 3;
    flex: 1 0 100%;
    text-align: left;
  }

  .brand {
    font-size: clamp(26px, 7.6vw, 40px);
    padding-bottom: 8px;
  }

  .brand-kicker,
  .brand-sub { text-align: left; }

  .site-nav {
    display: none;
    border-top: 1px solid var(--hair);
    padding-bottom: 10px;
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px 10px;
  }

  .nav-link {
    padding: 15px 14px;
    border-bottom: 1px solid var(--hair-soft);
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    display: block;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after { transform: translateY(-50%) scaleY(1); }

  .nav-link[aria-current="page"]::after { transform: translateY(-50%) scaleY(1); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }

  .footer-top { margin-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }

  .ticker__inner { font-size: 11px; letter-spacing: .05em; }
  .ticker__meta { display: none; }

  .masthead__aside--end .btn { padding: 8px 14px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { gap: 8px 18px; }
  .footer-top { margin-left: 0; width: 100%; }

  .scoreboard { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   减少动态
   -------------------------------------------------------------------------- */

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

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

  .ticker__dot { animation: none; box-shadow: none; }

  html.js [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-progress__bar { transition: none; }
}
