/* ==========================================================================
   冠竞看台 /assets/site.css
   共享外壳：侧边品牌轨道 + 紧凑命令栏 + 三段式页脚 + 通用组件
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --c-900: #07231E;
  --c-800: #0C2F28;
  --c-700: #134239;
  --c-signal: #2BE8C4;
  --c-signal-2: #8FF4E0;
  --c-warn: #FFA23A;
  --c-indigo: #4B3F86;
  --c-wine: #7A2B3C;
  --c-paper: #F3F8F5;
  --c-ink: #E6F4EF;
  --c-muted: #9CBDB2;
  --c-line: #20534A;

  --rail-w: 88px;
  --bar-h: 68px;
  --pad-x: clamp(20px, 4vw, 64px);
  --shell-max: 1440px;

  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;

  --fs-display: clamp(58px, 9vw, 132px);
  --fs-h1: clamp(34px, 4.4vw, 64px);
  --fs-h2: clamp(24px, 2.6vw, 38px);

  --ease: cubic-bezier(.22, .68, 0, 1);
  --t-fast: 160ms;
  --t-mid: 260ms;
  --t-slide: 420ms;

  --shell-font: system-ui, -apple-system, "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

@media (max-width: 1024px) {
  :root { --rail-w: 64px; --bar-h: 60px; }
}
@media (max-width: 640px) {
  :root { --rail-w: 54px; --bar-h: 56px; --pad-x: 18px; }
}

/* ---------- 2. Reset 与基础排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  min-height: 100vh;
  background: var(--c-900);
  color: var(--c-ink);
  font-family: var(--shell-font);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; max-width: 34em; }
a { color: var(--c-signal); }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 3. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 12px);
  z-index: 200;
  transform: translateY(-180%);
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-signal);
  color: #04231d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform var(--t-mid) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. 头部外壳 ---------- */
.site-header { position: relative; z-index: 60; }

/* 4.1 侧边品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 22px;
  background: linear-gradient(180deg, #082720 0%, #051a16 100%);
  border-right: 1px solid var(--c-line);
  z-index: 70;
}

.brand-rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-ink);
}

.brand-rail__glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-signal);
  color: #04231d;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(43, 232, 196, .35), 0 10px 26px rgba(43, 232, 196, .18);
}

.brand-rail__name {
  writing-mode: vertical-rl;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--c-ink);
}

.brand-rail__track {
  position: relative;
  flex: 1 1 auto;
  width: 2px;
  margin: 22px 0 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(43, 232, 196, .14), rgba(43, 232, 196, .02));
  overflow: hidden;
}

.brand-rail__signal {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-signal), var(--c-signal-2));
  box-shadow: 0 0 14px rgba(43, 232, 196, .5);
  transition: height 120ms linear;
}

.brand-rail__code {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

/* 4.2 紧凑命令栏 */
.cmd-bar {
  position: fixed;
  top: 0; left: var(--rail-w); right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  padding: 0 var(--pad-x) 0 clamp(12px, 1.8vw, 28px);
  background: rgba(7, 35, 30, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  z-index: 65;
}

/* 4.3 移动导航按钮 */
.cmd-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-800);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cmd-toggle:hover { border-color: var(--c-signal); }

.cmd-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 15px;
}
.cmd-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-signal);
  transition: transform var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.cmd-toggle__bars i:nth-child(2) { width: 70%; }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bars i:nth-child(2) { width: 100%; }

/* 4.4 主导航 */
.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav__items {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__items::-webkit-scrollbar { display: none; }

.site-nav__item { flex: none; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.site-nav__link:hover {
  color: var(--c-ink);
  background: rgba(43, 232, 196, .1);
}
.site-nav__no {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-line);
  font-variant-numeric: tabular-nums;
}
.site-nav__link[aria-current="page"] {
  color: var(--c-signal);
  background: rgba(43, 232, 196, .12);
  box-shadow: inset 0 0 0 1px rgba(43, 232, 196, .34);
}
.site-nav__link[aria-current="page"] .site-nav__no { color: var(--c-signal-2); }

/* 4.5 球队检索 */
.cmd-search { position: relative; display: flex; align-items: center; flex: none; }

.cmd-search__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cmd-search__input {
  width: clamp(112px, 13vw, 184px);
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-800);
  color: var(--c-ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .02em;
  transition: width var(--t-mid) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
}
.cmd-search__input::placeholder { color: rgba(156, 189, 178, .72); }
.cmd-search__input:focus {
  outline: none;
  width: clamp(150px, 18vw, 236px);
  border-color: var(--c-signal);
  box-shadow: 0 0 0 3px rgba(43, 232, 196, .18);
}

/* 4.6 更新时钟胶囊 */
.clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(43, 232, 196, .1);
  border: 1px solid rgba(43, 232, 196, .3);
  white-space: nowrap;
  transition: background var(--t-mid), border-color var(--t-mid);
}
.clock-chip__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-muted);
}
.clock-chip__value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--c-signal);
  font-variant-numeric: tabular-nums;
}
.clock-chip.is-imminent {
  background: rgba(255, 162, 58, .12);
  border-color: rgba(255, 162, 58, .45);
}
.clock-chip.is-imminent .clock-chip__value {
  color: var(--c-warn);
  animation: chipPulse 1.8s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.cmd-cta { flex: none; white-space: nowrap; }

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn--signal {
  background: var(--c-signal);
  color: #04231d;
  box-shadow: 0 6px 20px rgba(43, 232, 196, .2);
}
.btn--signal:hover { background: var(--c-signal-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-signal); color: var(--c-signal); }
.btn--warn { background: var(--c-warn); color: #2a1400; }
.btn--warn:hover { transform: translateY(-1px); }
.btn--indigo { background: var(--c-indigo); color: #fff; }
.btn--indigo:hover { transform: translateY(-1px); }

/* ---------- 6. 状态标签（全站统一规范） ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
}
.tag--all { background: rgba(156, 189, 178, .12); color: var(--c-muted); box-shadow: inset 0 0 0 1px var(--c-line); }
.tag--confirmed { background: rgba(43, 232, 196, .14); color: var(--c-signal); box-shadow: inset 0 0 0 1px rgba(43, 232, 196, .34); }
.tag--talks { background: rgba(75, 63, 134, .3); color: #BEB4F0; box-shadow: inset 0 0 0 1px rgba(75, 63, 134, .75); }
.tag--rumor { background: rgba(122, 43, 60, .3); color: #F0A8B8; box-shadow: inset 0 0 0 1px rgba(122, 43, 60, .8); }
.tag--out { background: rgba(255, 162, 58, .14); color: var(--c-warn); box-shadow: inset 0 0 0 1px rgba(255, 162, 58, .42); }
.tag--back { background: rgba(143, 244, 224, .12); color: var(--c-signal-2); box-shadow: inset 0 0 0 1px rgba(143, 244, 224, .3); }

/* ---------- 7. 布局与内容基础件 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-signal);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .8;
  flex: none;
}

.display {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 250;
  line-height: .95;
  letter-spacing: -.02em;
}

.num-xl {
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--c-signal);
  font-variant-numeric: tabular-nums;
}

.dossier {
  background: var(--c-800);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}
.dossier--paper { background: var(--c-paper); color: #08251F; }
.dossier--indigo { background: linear-gradient(160deg, var(--c-indigo), #2f2759); }
.dossier--wine { background: linear-gradient(160deg, var(--c-wine), #4d1a26); }

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

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-muted);
}
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-signal); }
.crumbs__sep { opacity: .5; }

/* 响应式图片容器：页面阶段直接放置 <img> */
.figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-700);
  aspect-ratio: 16 / 10;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }
.figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-ink);
  background: linear-gradient(0deg, rgba(7, 35, 30, .9), transparent);
}

/* 主体基础留白 */
.site-main { padding-bottom: clamp(48px, 8vw, 96px); }

/* ---------- 8. 显现动画 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--c-line);
  background: linear-gradient(180deg, #06201b 0%, #041713 100%);
  padding: clamp(44px, 6vw, 80px) var(--pad-x) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--shell-max);
  margin: 0 auto;
}

.footer-block__title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--c-signal);
}

.footer-block p {
  margin: 0 0 12px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-muted);
}
.footer-block a { color: var(--c-signal-2); text-decoration: none; }
.footer-block a:hover { color: var(--c-signal); text-decoration: underline; }

.footer-block__meta {
  font-size: 12.5px !important;
  letter-spacing: .04em;
  color: rgba(156, 189, 178, .82) !important;
}
.footer-block__meta [data-countdown {
  color: var(--c-signal);
  font-variant-numeric: tabular-nums;
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.footer-index a {
  display: inline-block;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-index a:hover { color: var(--c-signal-2); }

.footer-contact { display: grid; gap: 10px; }
.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--c-muted);
}
.footer-contact__key {
  flex: none;
  min-width: 4.6em;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(43, 232, 196, .78);
}
.footer-contact__val {
  color: var(--c-ink);
  letter-spacing: .02em;
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--shell-max);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(156, 189, 178, .85);
}
.footer-legal__copy { margin: 0; max-width: none; }
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal__links a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-legal__links a:hover { color: var(--c-signal); }

.footer-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px 0 26px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-signal-2);
}
.footer-hint::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-signal);
}

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-index { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 10. 响应式：命令栏折叠 ---------- */
@media (max-width: 1180px) {
  .cmd-search__input { width: 110px; }
  .cmd-search__input:focus { width: 150px; }
}

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

  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: var(--rail-w);
    right: 0;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 14px var(--pad-x) 24px;
    background: #08261f;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility var(--t-mid);
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav__items {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }
  .site-nav__link {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: var(--r-md);
  }
  .site-nav__no { font-size: 11px; }
}

@media (max-width: 860px) {
  .cmd-search { display: none; }
  .clock-chip__label { display: none; }
  .cmd-cta { padding: 9px 15px; font-size: 12px; }
}

@media (max-width: 560px) {
  .clock-chip { padding: 6px 11px; }
  .clock-chip__value { font-size: 13px; }
  .cmd-cta { padding: 8px 12px; font-size: 11.5px; letter-spacing: .02em; }
  .cmd-toggle__text { font-size: 12px; }
  .brand-rail__glyph { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .brand-rail__name { font-size: 12px; letter-spacing: .26em; text-indent: .26em; }
}

/* ---------- 11. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
