/* =========================================================
   云体育赛事 — 共享站点样式 /assets/site.css
   ========================================================= */

:root {
  --ink: #0B1B2B;
  --ink-2: #16414D;
  --mist: #3E7482;
  --paper: #F4F6F5;
  --cloud: #DDE4E4;
  --signal: #FF6A1A;
  --amber: #FFC24B;
  --card-y: #F2C230;
  --card-r: #E03A3A;
  --indigo: #3A2F5B;
  --muted: #5A6470;

  --rail-w: 232px;
  --line: 2px solid var(--ink);
  --hard: 5px 5px 0 var(--ink);
  --hard-s: 3px 3px 0 var(--ink);
  --wrap: 1240px;
  --pad-x: clamp(16px, 4vw, 40px);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-narrow: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --font-serif: Georgia, "Songti SC", "Source Han Serif SC", "SimSun", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 9px 18px;
  background: var(--amber);
  color: var(--ink);
  border: var(--line);
  box-shadow: var(--hard-s);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--signal);
}

.brand-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 18px 16px;
  background: linear-gradient(180deg, rgba(22, 65, 77, .95) 0%, rgba(11, 27, 43, 1) 62%);
  border-right: 2px solid rgba(221, 228, 228, .16);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark__abbr {
  display: inline-block;
  padding: 3px 9px 5px;
  font-family: var(--font-narrow);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .16em;
  color: var(--paper);
  border: 2px solid var(--signal);
  box-shadow: 3px 3px 0 rgba(255, 106, 26, .38);
  transition: transform .16s ease, box-shadow .16s ease;
}
.brand-mark:hover .brand-mark__abbr {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(255, 106, 26, .5);
}
.brand-mark__name {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--cloud);
}

.rail-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rail-meta__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}
.rail-meta__label {
  letter-spacing: .12em;
  color: rgba(221, 228, 228, .62);
}
.rail-meta__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--amber);
}

.rail-tagline {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(221, 228, 228, .24);
  font-size: 11px;
  letter-spacing: .18em;
  color: #7C93A0;
}

.command-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 78px;
  padding: 0 16px 0 18px;
  background:
    repeating-linear-gradient(90deg, rgba(62, 116, 130, .17) 0 1px, transparent 1px 76px),
    var(--ink);
}

/* 移动端频道按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(221, 228, 228, .6);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .1em;
  transition: border-color .16s ease, background .16s ease;
}
.nav-toggle:hover { border-color: var(--amber); background: rgba(255, 194, 75, .12); }
.nav-toggle__text { font-size: 13px; letter-spacing: .1em; }
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: 0 0 auto; }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border: 2px solid transparent;
  color: var(--cloud);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav-list__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: rgba(62, 116, 130, .95);
}
.nav-list a:hover { background: rgba(62, 116, 130, .32); color: var(--paper); }
.nav-list a[aria-current="page"] {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(244, 246, 245, .3);
  font-weight: 700;
}
.nav-list a[aria-current="page"] .nav-list__idx { color: rgba(11, 27, 43, .68); }

/* 状态胶囊 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 2px solid rgba(221, 228, 228, .3);
  background: rgba(22, 65, 77, .58);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cloud);
  white-space: nowrap;
}
.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-y);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .22);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* 命令栏入口 */
.bar-cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--amber);
  color: var(--ink);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--signal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease;
}
.bar-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--signal);
}
.bar-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--signal);
}

/* =========================================================
   阅读进度条（JS 插入）
   ========================================================= */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* =========================================================
   通用骨架
   ========================================================= */
#main-content {
  display: block;
  scroll-margin-top: 96px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding: clamp(40px, 7vw, 88px) 0; }

.eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
}

.section__title {
  margin-bottom: 14px;
  font-family: var(--font-narrow);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.01em;
}

.lede {
  max-width: 54ch;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
  color: #2A3948;
}

/* =========================================================
   通用组件
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  box-shadow: var(--hard);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: none;
}
.btn--ghost:hover {
  box-shadow: 6px 6px 0 rgba(244, 246, 245, .35);
  background: rgba(244, 246, 245, .08);
}

.card {
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--hard);
}
.card--tilt { transform: rotate(-.6deg); }

.panel {
  padding: clamp(18px, 3vw, 32px);
  background: var(--ink-2);
  color: var(--paper);
  border: var(--line);
  box-shadow: var(--hard);
}
.panel--indigo { background: var(--indigo); }
.panel a { color: var(--amber); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--cloud);
  color: var(--ink);
  border: var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.tag--signal { background: var(--signal); }
.tag--amber { background: var(--amber); }
.tag--yellow { background: var(--card-y); }
.tag--red {
  background: var(--card-r);
  color: #FFFFFF;
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 13px;
  border: 2px dashed var(--indigo);
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  transform: rotate(-2deg);
}

.update-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 194, 75, .18);
  border-left: 4px solid var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted);
}

.num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 9vw, 96px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--ink);
}
.num--signal { color: var(--signal); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--mist);
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}
.breadcrumb a:hover { border-bottom-color: var(--signal); }

/* 标签切换 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  padding: 8px 14px;
  background: var(--cloud);
  border: var(--line);
  box-shadow: var(--hard-s);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .04em;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.tab:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.tab[aria-selected="true"] {
  background: var(--signal);
  font-weight: 700;
}

/* 图片容器基础规则 */
.img-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--line);
  box-shadow: var(--hard);
  background:
    linear-gradient(135deg, rgba(62, 116, 130, .42) 0%, rgba(11, 27, 43, .92) 78%),
    var(--ink-2);
}
.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* 显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  margin-top: clamp(40px, 7vw, 96px);
  padding: clamp(36px, 5vw, 64px) var(--pad-x) 0;
  background: var(--ink);
  color: var(--cloud);
  border-top: 3px solid var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(20px, 3vw, 46px);
  max-width: var(--wrap);
  margin-inline: auto;
}

.footer-brand__mark {
  display: inline-block;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 5px solid var(--signal);
  font-family: var(--font-narrow);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--paper);
  text-decoration: none;
}
.footer-brand__line {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: #9FB4BC;
}
.footer-brand__addr {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: #7C93A0;
}

.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col__list a {
  font-size: 14px;
  color: var(--cloud);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-col__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.footer-contact__line {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--paper);
  word-break: break-all;
}
.footer-contact__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #7C93A0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  max-width: var(--wrap);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(221, 228, 228, .18);
  font-size: 12px;
  color: #7C93A0;
}
.footer-bottom__icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer-bottom__note { margin-left: auto; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; }

  .brand-rail {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 2px solid rgba(221, 228, 228, .16);
    background: var(--ink);
  }
  .brand-mark__abbr {
    font-size: 19px;
    padding: 2px 7px 3px;
    box-shadow: 2px 2px 0 rgba(255, 106, 26, .38);
  }
  .brand-mark__name { font-size: 11.5px; letter-spacing: .16em; }
  .rail-meta {
    flex-direction: row;
    gap: 14px;
    margin-left: auto;
  }
  .rail-tagline { display: none; }

  .command-bar {
    flex-wrap: wrap;
    row-gap: 8px;
    min-height: 0;
    padding: 9px 12px 10px;
    background: var(--ink);
  }
  .nav-toggle { display: inline-flex; }
  .status-pill { margin-left: auto; order: 2; }
  .primary-nav {
    order: 3;
    flex-basis: 100%;
    overflow: visible;
  }
  .nav-list { gap: 2px; }
  .nav-list a { padding: 8px 10px; font-size: 13px; }
  .nav-list a[aria-current="page"] { box-shadow: 2px 2px 0 rgba(244, 246, 245, .3); }

  .primary-nav[data-open] .nav-list {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }
  .primary-nav[data-open] .nav-list li {
    flex: 1 1 calc(50% - 6px);
  }
  .primary-nav[data-open] .nav-list a {
    justify-content: flex-start;
    background: rgba(62, 116, 130, .26);
    border-color: rgba(221, 228, 228, .18);
  }
  .primary-nav[data-open] .nav-list a[aria-current="page"] {
    background: var(--signal);
    border-color: var(--ink);
  }
  .bar-cta { order: 4; flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom__note { margin-left: 0; }
  .status-pill__text { font-size: 11px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-mark__name { display: none; }
}

/* =========================================================
   减弱动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .card--tilt { transform: none; }
  .stamp { transform: none; }
}
