/* ============================================================
   LDSPORTS赛事 · /assets/site.css
   共享外壳：reset、变量、中文排版、页头、页脚、通用组件
   ============================================================ */

/* ---------- 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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --snow: #F7FAFC;
  --sky: #1B6FA8;
  --indigo: #123A5A;
  --ink: #14202B;
  --flag-blue: #2E9BE0;
  --flag-red: #D2453B;
  --flag-green: #2F9E6B;
  --flag-yellow: #E8B23A;
  --wine: #7A2E3A;
  --violet: #4B3F87;
  --grey: #5A6B78;
  --line: #C9D4DC;
  --line-strong: rgba(20, 32, 43, .18);
  --paper: #FFFFFF;

  --shadow-soft: 0 1px 2px rgba(20,32,43,.05), 0 10px 24px -20px rgba(20,32,43,.55);
  --shadow-lift: 0 1px 2px rgba(20,32,43,.05), 0 18px 30px -22px rgba(20,32,43,.62);

  --radius: 2px;
  --radius-pill: 999px;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(72px, 15vw, 200px);
  --fs-1: clamp(34px, 6vw, 72px);
  --fs-2: clamp(24px, 3.4vw, 40px);
  --fs-3: clamp(19px, 2.1vw, 24px);
  --fs-body: 17px;
  --fs-note: 13px;

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-size: var(--fs-1);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 .55em;
}

h2, .h2 {
  font-size: var(--fs-2);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
}

h3, .h3 {
  font-size: var(--fs-3);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .45em;
}

.num { font-variant-numeric: tabular-nums; }

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

a:focus-visible,
button:focus-visible { outline-offset: 3px; }

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

.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-nowrap { white-space: nowrap; }

/* ---------- 容器与网格 ---------- */
.container {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-9 { grid-column: span 9; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.stack { display: grid; gap: 1rem; }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: .5rem;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%) translateY(-260%);
  padding: .6rem 1.1rem;
  background: var(--indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: transform .22s ease;
}

.skip-link:focus {
  transform: translateX(-50%) translateY(0);
  outline: 3px solid var(--flag-yellow);
  outline-offset: 2px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--snow);
  transition: box-shadow .22s ease;
}

.site-header.is-stuck {
  box-shadow: 0 14px 26px -24px rgba(20, 32, 43, .8);
}

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 3;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--flag-yellow);
}

/* 上层：品牌说明条 */
.masthead {
  background: var(--snow);
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-size: var(--fs-note);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  padding: .6rem 0;
}

.masthead__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .75rem;
}

.brand-mark {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--sky);
  text-decoration: none;
}

.brand-mark:hover { color: var(--indigo); }

.masthead__tagline {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: .01em;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .9rem;
}

.masthead__contact {
  font-size: 12.5px;
  color: var(--grey);
  white-space: nowrap;
}

.masthead__date {
  display: inline-block;
  padding: .2rem .62rem;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--indigo);
  border-radius: var(--radius-pill);
  box-shadow: inset 3px 0 0 var(--flag-yellow);
}

/* 下层：栏目导航 */
.navbar {
  background: var(--sky);
  color: #fff;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .45rem 0;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
}

.nav-link {
  display: inline-block;
  padding: .55rem .7rem;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 900;
  border-bottom-color: var(--flag-yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding-left: 1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-toggle:hover { background: rgba(255, 255, 255, .2); }

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

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

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

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--indigo);
  color: #CFDFEA;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem 1.75rem;
  padding: 3.25rem 0 2.25rem;
}

.brand-mark--footer {
  font-size: 18px;
  color: #fff;
}

.brand-mark--footer:hover { color: var(--flag-yellow); }

.footer-brand__line {
  margin: .9rem 0 .4rem;
  max-width: 34ch;
  font-size: 14.5px;
  color: #EAF3F9;
}

.footer-brand__meta {
  max-width: 36ch;
  font-size: 12.5px;
  color: #9FB6C6;
}

.footer-col__title {
  margin: 0 0 .9rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--flag-yellow);
}

.footer-links {
  display: grid;
  gap: .55rem;
}

.footer-links a {
  color: #CFDFEA;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

.footer-links a:hover {
  color: #fff;
  border-bottom-color: var(--flag-yellow);
}

.footer-contact {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 1.25rem 0;
}

.footer-contact__line {
  margin-bottom: .4rem;
  font-size: 13.5px;
  color: #E4EEF5;
}

.footer-contact__note {
  max-width: 76ch;
  font-size: 12.5px;
  color: #9FB6C6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 1.1rem 0 2.25rem;
  font-size: 12.5px;
  color: #9FB6C6;
}

.footer-legal__item { margin: 0; }

/* ---------- 章节与标题 ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; }
.section--flush { padding-bottom: 0; }

.page-head { padding: clamp(2rem, 5vw, 3.25rem) 0 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-bottom: .85rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  margin: 0;
  font-size: var(--fs-2);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.section-head__note {
  font-size: 12.5px;
  color: var(--grey);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--grey);
}

.eyebrow--folio { color: var(--sky); }

.eyebrow--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .35em;
  font-weight: 400;
}

.lede {
  max-width: 58ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--grey);
}

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule--ink { border-top-color: var(--line-strong); }

.prose {
  max-width: 68ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
}

.prose p { margin: 0 0 1.4em; }
.prose a { color: var(--sky); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #B4C4D0;
}

.card--sky { border-top: 3px solid var(--sky); }
.card--wine { border-top: 3px solid var(--wine); }
.card--violet { border-top: 3px solid var(--violet); }

.card__title {
  margin: 0;
  font-size: var(--fs-3);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.card__meta {
  font-size: 12.5px;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
}

/* ---------- 状态胶囊与圆点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tag--live { color: #fff; background: var(--flag-red); border-color: var(--flag-red); }
.tag--done { color: #fff; background: var(--flag-green); border-color: var(--flag-green); }
.tag--soon { color: var(--ink); background: var(--flag-yellow); border-color: var(--flag-yellow); }
.tag--info { color: #fff; background: var(--flag-blue); border-color: var(--flag-blue); }

.dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--flag-blue);
  flex: 0 0 auto;
}

.dot--live { background: var(--flag-red); }
.dot--done { background: var(--flag-green); }
.dot--soon { background: var(--flag-yellow); }

/* ---------- 时间轴与键值列表 ---------- */
.timeline {
  display: grid;
  gap: 1.1rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 4.5px);
  top: .55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flag-blue);
  box-shadow: 0 0 0 3px var(--snow);
}

.timeline__date {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.spec-list { display: grid; gap: .65rem; }

.spec-list__row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: .35rem 1rem;
  align-items: baseline;
  padding-bottom: .6rem;
  border-bottom: 1px dashed var(--line);
}

.spec-list__key {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--grey);
}

.spec-list__val { font-size: 15px; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #E6EEF4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .6rem .8rem;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(to top, rgba(18, 58, 90, .82), rgba(18, 58, 90, 0));
}

/* ---------- 标签页 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  border-bottom: 1px solid var(--line);
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: .6rem 1rem;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--grey);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--flag-yellow);
}

.tabpanel { padding-top: 1.35rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.05rem;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--flag-yellow); color: var(--ink); }
.btn--primary:hover { background: #F2C55C; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--sky);
  border-color: var(--sky);
}

.btn--outline:hover { background: rgba(27, 111, 168, .08); transform: translateY(-2px); }

.btn--solid { background: var(--sky); color: #fff; }
.btn--solid:hover { background: #175F90; transform: translateY(-2px); }

.btn--sm { padding: .4rem .8rem; font-size: 13px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin: 0 0 1.5rem;
  font-size: 12.5px;
  color: var(--grey);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.breadcrumb li + li::before {
  content: "／";
  color: var(--line);
}

.breadcrumb a {
  color: var(--sky);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 1024px) {
  .card--offset { transform: translateY(26px); }
  .card--offset:hover { transform: translateY(23px); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .navbar__inner {
    justify-content: flex-start;
    gap: .75rem;
    padding: .55rem 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 78vh;
    overflow-y: auto;
    padding: .6rem 0 1.1rem;
    background: var(--indigo);
    border-top: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 22px 30px -24px rgba(20, 32, 43, .85);
  }

  .site-header[data-open] .site-nav { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 .75rem;
  }

  .nav-list > li { display: block; }

  .nav-link {
    display: block;
    padding: .85rem .8rem;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    border-left: 3px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, .12);
    border-left-color: var(--flag-yellow);
    background: rgba(255, 255, 255, .08);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-left: 0;
    padding: 1rem .75rem 0;
  }

  .span-5, .span-7, .span-9 { grid-column: 1 / -1; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .masthead__inner {
    justify-content: flex-start;
    gap: .35rem .9rem;
  }

  .masthead__contact { font-size: 12px; }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .footer-brand { grid-column: auto; }

  .tablist { flex-wrap: nowrap; overflow-x: auto; }

  .spec-list__row { grid-template-columns: 1fr; }
}

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

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

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

  .card:hover,
  .btn:hover,
  .card--offset { transform: none !important; }
}
