/* ============================================================
   B体育入口 · 共享样式 /assets/site.css
   赛场指挥台 + 数据看板：纵向长卷、非对称双栏、红黄标记色
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --c-red: #E11D2E;
  --c-red-dark: #C4162A;
  --c-yellow: #FFC22E;
  --c-blue: #123A5E;
  --c-blue-soft: #1D5480;
  --c-ink: #071A2E;
  --c-ink-soft: #0E2A45;
  --c-mist: #F4F6F9;
  --c-paper: #FFFFFF;
  --c-cyan: #00C2B2;
  --c-violet: #6C4BD1;
  --c-gray: #6B7785;
  --c-track: #D9E0E8;

  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.2vw, 28px);

  --shadow-1: 0 2px 6px rgba(7, 26, 46, 0.06);
  --shadow-2: 0 14px 32px rgba(7, 26, 46, 0.14);
  --shadow-red: 0 10px 24px rgba(225, 29, 46, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 基础排版（中英混排） ---------- */
body {
  background: var(--c-mist);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--c-ink);
}

p { max-width: 34em; }

strong { font-weight: 700; }

.numeric,
.num {
  font-family: var(--font-num);
  letter-spacing: 0;
}

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

::selection {
  background: rgba(255, 194, 46, 0.42);
  color: var(--c-ink);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -72px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-2);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- 容器与布局 ---------- */
.shell,
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  padding-block: clamp(24px, 4vw, 56px);
}

.section {
  padding-block: clamp(24px, 4vw, 56px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.layout-rail {
  display: grid;
  grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

.band {
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-red) 0%, #FF8A2B 55%, var(--c-yellow) 100%);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--c-ink);
}

.readbar {
  height: 4px;
  background: var(--c-ink-soft);
  overflow: hidden;
}

.readbar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-red) 0%, #FF8A2B 50%, var(--c-yellow) 100%);
  transition: width 0.12s linear;
}

.topbar {
  background: var(--c-ink);
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding-block: 10px;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--c-red) 0%, #FF8A2B 55%, var(--c-yellow) 100%);
  color: var(--c-ink);
  font-family: var(--font-num);
  font-size: 1.0625rem;
  font-weight: 700;
}

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

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

.brand--footer .brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 194, 178, 0.48);
  background: rgba(0, 194, 178, 0.14);
  color: #7FF0E4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.locale {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

/* 栏目层 */
.navlayer {
  position: relative;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-track);
}

.navlayer__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
  flex: 1;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-blue);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.nav-link:hover {
  background: var(--c-mist);
  color: var(--c-ink);
  transform: translateY(-2px);
}

.nav-link[aria-current="page"] {
  background: rgba(225, 29, 46, 0.1);
  color: var(--c-red);
}

.nav-link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--c-track);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-blue);
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-blue);
  transition: background-color 0.15s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-blue);
  transition: transform 0.18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.3em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
              background-color 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--c-red-dark);
  box-shadow: 0 14px 28px rgba(225, 29, 46, 0.34);
}

.btn--yellow {
  background: var(--c-yellow);
  color: var(--c-ink);
  box-shadow: 0 10px 22px rgba(255, 194, 46, 0.34);
}

.btn--line {
  border-color: var(--c-track);
  background: var(--c-paper);
  color: var(--c-blue);
}

.btn--line:hover {
  border-color: var(--c-blue);
  color: var(--c-ink);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.btn--sm {
  padding: 0.45em 1em;
  font-size: 0.8125rem;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--c-gray);
  margin-bottom: clamp(12px, 2vw, 20px);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-track);
}

.breadcrumb a {
  color: var(--c-blue);
  font-weight: 600;
}

.breadcrumb a:hover { color: var(--c-red); }

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

/* ---------- 文本组件 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-gray);
}

.index-num {
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--c-ink);
}

.lede {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-gray);
  max-width: 34em;
}

/* ---------- 卡片与面板 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--c-paper);
  border: 1px solid var(--c-track);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

.card__meta {
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--c-gray);
}

.card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-gray);
  max-width: 34em;
}

.panel {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: var(--c-blue);
  color: #fff;
}

.panel--ink { background: var(--c-ink); }

.panel .card__title,
.panel .section-title,
.panel .card__text { color: #fff; }

.panel .card__text { color: rgba(255, 255, 255, 0.76); }

/* ---------- 标签与筛选 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42em 1em;
  border: 1px solid var(--c-track);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease),
              background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.chip:hover {
  border-color: var(--c-cyan);
  color: var(--c-ink);
  transform: translateY(-2px);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.2em 0.62em;
  border: 1px solid var(--c-track);
  border-radius: var(--r-sm);
  background: var(--c-mist);
  color: var(--c-blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag--red {
  border-color: rgba(225, 29, 46, 0.28);
  background: rgba(225, 29, 46, 0.1);
  color: var(--c-red);
}

.tag--yellow {
  border-color: rgba(255, 194, 46, 0.5);
  background: rgba(255, 194, 46, 0.2);
  color: #8A6400;
}

.tag--cyan {
  border-color: rgba(0, 194, 178, 0.36);
  background: rgba(0, 194, 178, 0.12);
  color: #00796F;
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--c-ink) 0%, var(--c-blue) 58%, var(--c-blue-soft) 100%);
}

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

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

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 194, 46, 0.18) 58% 62%, transparent 62%),
    linear-gradient(115deg, transparent 0 44%, rgba(225, 29, 46, 0.22) 44% 47%, transparent 47%);
}

.media__bar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 72px;
  height: 6px;
  background: linear-gradient(90deg, var(--c-red), var(--c-yellow));
}

.media__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32em 0.9em;
  border-radius: var(--r-pill);
  background: rgba(7, 26, 46, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(2px);
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 96px);
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__band {
  height: 8px;
  background: linear-gradient(90deg, var(--c-red) 0%, #FF8A2B 55%, var(--c-yellow) 100%);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-block: clamp(32px, 5vw, 64px);
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-bottom: clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__tagline {
  flex: 1 1 260px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 38em;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.foot-card {
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
}

.foot-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.foot-card__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-yellow);
}

.foot-card__note {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 26em;
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.foot-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color 0.15s var(--ease);
}

.foot-list a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.foot-list a:hover::before { background: var(--c-yellow); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: clamp(16px, 3vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer__contact {
  max-width: none;
  font-family: var(--font-num);
  letter-spacing: 0.01em;
}

.footer__copy { max-width: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-rail { grid-template-columns: minmax(0, 1fr); }
}

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

  .navlayer__inner { justify-content: flex-end; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 76vh;
    overflow-y: auto;
    padding: 14px max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter))) 22px;
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-track);
    box-shadow: 0 24px 40px rgba(7, 26, 46, 0.16);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-actions {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--c-track);
  }

  .nav-actions .btn { width: 100%; }
}

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

  .locale { display: none; }

  .brand__sub { letter-spacing: 0.12em; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

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

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

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

  .btn:hover,
  .card:hover,
  .chip:hover,
  .nav-link:hover,
  .nav-toggle:hover,
  .foot-list a:hover {
    transform: none;
  }
}
