/* ==========================================================================
   买球网赛场 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

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

/* ---------- 变量 ---------- */
:root {
  --ink: #071120;
  --panel: #0E1F38;
  --line: #1C3555;
  --cyan: #2FF3D6;
  --orange: #FF6A2B;
  --green: #3DDC97;
  --text: #E7F1FF;
  --muted: #93A7C4;
  --amber: #FFC24B;
  --zebra: #10283A;

  --font-sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --fs-display: clamp(2.4rem, 1.1rem + 5.4vw, 4.75rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.7vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 20px 40px -34px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .02);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(47, 243, 214, .07), transparent 62%),
    radial-gradient(900px 520px at -5% 105%, rgba(255, 106, 43, .06), transparent 60%),
    linear-gradient(to right, rgba(28, 53, 85, .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 53, 85, .26) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

#main-content { display: block; scroll-margin-top: 9.5rem; }

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

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

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 200;
  padding: .6rem 1.05rem;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 32, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 22px 44px -36px #000, 0 1px 0 rgba(47, 243, 214, .12);
}

.header-bar { padding-bottom: .45rem; }

/* 比分条 */
.ticker {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 106, 43, .12), rgba(47, 243, 214, .07) 55%, rgba(255, 106, 43, .1));
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: .42rem 2.6rem .42rem 0;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
  white-space: nowrap;
}

.ticker__league {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.ticker__team { font-weight: 600; }

.ticker__score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .04em;
}

.ticker__score i {
  font-style: normal;
  color: var(--muted);
  padding: 0 .12em;
}

.ticker__state {
  padding: .08rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
}

.ticker__state--live {
  color: var(--orange);
  border-color: rgba(255, 106, 43, .5);
  background: rgba(255, 106, 43, .1);
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 上层品牌带 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0 .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--cyan);
  background: linear-gradient(150deg, rgba(47, 243, 214, .16), rgba(255, 106, 43, .14));
  box-shadow: var(--shadow-1);
}

.brand__mark svg { width: 20px; height: 20px; }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--ghost {
  color: var(--cyan);
  border-color: rgba(47, 243, 214, .42);
  background: rgba(47, 243, 214, .07);
}

.btn--ghost:hover {
  background: rgba(47, 243, 214, .16);
  border-color: var(--cyan);
}

.btn--solid {
  color: #100600;
  background: var(--orange);
  border-color: var(--orange);
}

.btn--solid:hover { background: #FF7F49; border-color: #FF7F49; }

.btn--quiet { color: var(--muted); border-color: transparent; }

.btn--quiet:hover { color: var(--text); border-color: var(--line); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(14, 31, 56, .8);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: rgba(47, 243, 214, .5);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle__label { letter-spacing: .06em; }

/* 下层栏目导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--text);
  background: rgba(28, 53, 85, .55);
}

.site-nav__link[aria-current="page"] { color: var(--cyan); }

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-right: .2rem;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, .16);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: 1.4rem 0 0;
  font-size: 13px;
  color: var(--muted);
}

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

a.breadcrumb__item:hover { color: var(--cyan); }

.breadcrumb__item[aria-current="page"] { color: var(--text); }

.breadcrumb__sep { color: var(--line); }

/* ---------- 章节与正文 ---------- */
.section {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type { border-top: 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: 1.6rem;
}

.section__title { font-size: var(--fs-h2); }

.section__desc {
  max-width: 62ch;
  font-size: 15px;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

.lede {
  max-width: 66ch;
  font-size: clamp(1rem, .95rem + .35vw, 1.16rem);
  color: #C4D7F1;
}

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.75;
}

.prose--narrow { max-width: 62ch; }

.prose p + p { margin-top: 1rem; }

.prose h3 { margin-top: 1.9rem; margin-bottom: .5rem; }

.prose ul { margin-top: .7rem; }

.prose li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 15px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid--rail {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

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

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

/* ---------- 面板与卡片 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-1);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .7rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.panel--flush .panel__head { padding: .95rem 1.25rem .7rem; }

.panel__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.panel__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 31, 56, 1), rgba(10, 23, 43, 1));
  box-shadow: var(--shadow-1);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.card:hover {
  border-color: rgba(47, 243, 214, .38);
  transform: translateY(-2px);
}

.card__title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.card__desc {
  font-size: 14px;
  color: #B7CBE6;
}

/* ---------- 数字 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.05rem);
  letter-spacing: -.01em;
  color: var(--cyan);
}

.stat__value--orange { color: var(--orange); }
.stat__value--green { color: var(--green); }

.stat__label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- 数据表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

.data-table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

.data-table caption {
  padding: .9rem 1rem;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: .62rem .95rem;
  text-align: left;
  border-bottom: 1px solid rgba(28, 53, 85, .7);
  white-space: nowrap;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(7, 17, 32, .95);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table tbody tr:nth-child(even) { background: var(--zebra); }

.data-table tbody tr:hover { background: rgba(47, 243, 214, .06); }

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.data-table th[data-sort-key] { cursor: pointer; user-select: none; }

.data-table th[data-sort-key]::after {
  content: "↕";
  margin-left: .4rem;
  font-size: 11px;
  color: var(--line);
}

.data-table th[aria-sort="ascending"]::after {
  content: "▲";
  color: var(--cyan);
}

.data-table th[aria-sort="descending"]::after {
  content: "▼";
  color: var(--cyan);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .16rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.tag--cyan { color: var(--cyan); border-color: rgba(47, 243, 214, .45); background: rgba(47, 243, 214, .08); }
.tag--orange { color: var(--orange); border-color: rgba(255, 106, 43, .45); background: rgba(255, 106, 43, .09); }
.tag--green { color: var(--green); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, .45); background: rgba(255, 194, 75, .08); }

/* ---------- 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.filter-btn {
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 31, 56, .7);
  font-size: 13px;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(47, 243, 214, .5);
}

.filter-btn[aria-pressed="true"] {
  color: #04121A;
  font-weight: 700;
  background: var(--cyan);
  border-color: var(--cyan);
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

[data-filter-item] {
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

[data-filter-item].is-filtering {
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- 目录型索引 ---------- */
.index-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}

.index-map__item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  transition: background-color .2s var(--ease);
}

.index-map__item:hover { background: #12294A; }

.index-map__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.index-map__title {
  font-size: 1rem;
  font-weight: 700;
}

.index-map__desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 联赛轨道 ---------- */
.league-rail {
  position: sticky;
  top: 9.5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding-left: .8rem;
  border-left: 1px solid var(--line);
}

.league-rail__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.league-rail__item:hover {
  color: var(--text);
  background: rgba(28, 53, 85, .55);
}

.league-rail__item[aria-selected="true"],
.league-rail__item[aria-current="true"] {
  color: var(--cyan);
  background: rgba(47, 243, 214, .1);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.league-rail__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .8;
}

/* ---------- 时间线 ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: .55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--cyan);
}

.timeline__item--done::before {
  background: var(--green);
  border-color: var(--green);
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.timeline__title {
  margin-top: .15rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.timeline__desc {
  font-size: 14px;
  color: #B7CBE6;
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
  background-image:
    linear-gradient(140deg, rgba(47, 243, 214, .08), rgba(7, 17, 32, 0) 55%),
    repeating-linear-gradient(45deg, rgba(28, 53, 85, .55) 0 1px, transparent 1px 14px);
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .7rem .95rem;
  font-size: 12px;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(7, 17, 32, .94), rgba(7, 17, 32, 0));
}

/* ---------- 显现与返回顶部 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 31, 56, .92);
  color: var(--cyan);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 17, 32, .55), #050C16);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 2.25rem;
}

.footer-brand__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.footer-brand__desc {
  max-width: 42ch;
  margin-top: .5rem;
  font-size: 14px;
  color: var(--muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: 1.1rem;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: .6rem;
  font-size: 13px;
  color: #C4D7F1;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: .18rem;
}

.footer-note {
  margin-top: .9rem;
  padding-left: .75rem;
  border-left: 2px solid rgba(255, 194, 75, .5);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: .85rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  width: fit-content;
  font-size: 14px;
  color: #C4D7F1;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(47, 243, 214, .45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.footer-legal__list a { color: var(--muted); }

.footer-legal__list a:hover { color: var(--cyan); }

.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .06em;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    border-top-color: transparent;
  }

  .site-nav[data-open] {
    display: block;
    padding: .35rem 0 .7rem;
    border-top: 1px solid var(--line);
    animation: nav-drop .22s var(--ease) both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .site-nav__link {
    display: block;
    padding: .7rem .7rem;
    font-size: 15px;
    border-radius: 8px;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(47, 243, 214, .08);
  }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: .65rem;
    bottom: .65rem;
    width: 2px;
    height: auto;
  }

  .nav-status { display: none; }

  .league-rail {
    position: static;
    flex-direction: row;
    gap: .35rem;
    padding: 0 0 .6rem;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .league-rail__item {
    width: auto;
    white-space: nowrap;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

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

@media (max-width: 620px) {
  .brand__tagline { display: none; }
  .header-actions .btn--ghost { display: none; }
  .btn { padding: .45rem .85rem; font-size: 13px; }
  .footer-contact__item { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .filter-count { margin-left: 0; width: 100%; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .ticker { overflow-x: auto; }

  .ticker__track {
    animation: none;
    transform: none;
  }

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

  .btn:hover,
  .card:hover { transform: none; }
}
