/* ==========================================================================
   88体育赛事 · 共享站点样式 /assets/site.css
   侧边轨道外壳 + 深空黑近单色体系 + 电光蓝强调
   ========================================================================== */

:root {
  --ink: #06080D;
  --rail: #0A0E15;
  --panel: #12181F;
  --grille: #232C38;
  --volt: #1F6BFF;
  --pulse: #5FA8FF;
  --signal: #38F08A;
  --kick: #FF7A2F;
  --text: #E9EEF6;
  --muted: #93A0B4;

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

  --rail-w: 96px;
  --rail-w-open: 268px;
  --rail-h-sm: 60px;

  --ease: cubic-bezier(.16, .68, .36, 1);
  --t: 200ms;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; }
h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
}
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: .01em; }

p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .25em 0; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--pulse);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
a:hover { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; }

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

::selection { background: var(--volt); color: #fff; }

/* ---------- 通用工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pulse);
  margin: 0 0 10px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 56px 0; border-top: 1px solid var(--grille); }
.section:first-of-type { border-top: 0; }

.rule { border: 0; border-top: 1px solid var(--grille); margin: 0; }

.lead { font-size: 17px; color: var(--text); }
.dim { color: var(--muted); }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--volt);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-200%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; text-decoration: none; }

/* ==========================================================================
   侧边轨道 Header
   ========================================================================== */
.rail {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--rail-w);
  background: var(--rail);
  border-right: 1px solid var(--grille);
  overflow: hidden;
  transition: width var(--t) var(--ease);
}

.rail:hover,
.rail:focus-within,
.rail[data-expanded="true"] { width: var(--rail-w-open); }

/* 顶部状态条 */
.rail__status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-bottom: 1px solid var(--grille);
  overflow: hidden;
}

.pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(56, 240, 138, .14);
  animation: pulse-breathe 2s ease-in-out infinite;
}

@keyframes pulse-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .26; }
}

.rail__status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}

.rail:hover .rail__status-text,
.rail:focus-within .rail__status-text,
.rail[data-expanded="true"] .rail__status-text { opacity: 1; }

/* 品牌 */
.rail__head {
  flex: 0 0 auto;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--grille);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand__mark {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
  transition: color var(--t) var(--ease);
}
.brand:hover .brand__mark { color: var(--pulse); }

.brand__name {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--muted);
}

/* 导航 */
.rail__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
}

.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list > li { margin: 0; }

.rail__link {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  align-items: center;
  min-height: 54px;
  color: var(--muted);
  text-decoration: none;
  box-shadow: inset 2px 0 0 transparent;
  transition: color var(--t) var(--ease),
              background-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.rail__link:hover,
.rail__link:focus-visible {
  color: var(--text);
  background: var(--panel);
  box-shadow: inset 2px 0 0 var(--volt);
  text-decoration: none;
}

.rail__num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.rail__link:hover .rail__num,
.rail__link:focus-visible .rail__num { color: var(--pulse); }

.rail__label {
  padding-right: 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.rail:hover .rail__label,
.rail:focus-within .rail__label,
.rail[data-expanded="true"] .rail__label { opacity: 1; transform: none; }

/* 当前栏目 */
.rail__link[aria-current="page"] {
  color: var(--text);
  background: var(--panel);
  box-shadow: inset 2px 0 0 var(--signal);
}
.rail__link[aria-current="page"] .rail__num { color: var(--signal); }
.rail__link[aria-current="page"] .rail__label { color: var(--text); }

/* 轨道底部开关 */
.rail__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--grille);
}

.rail__toggle {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.rail__toggle:hover { color: var(--pulse); background: var(--panel); }

.rail__toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
  margin: 0 auto;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: border-color var(--t) var(--ease);
}
.rail__toggle-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.rail__toggle-text {
  padding-right: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.rail:hover .rail__toggle-text,
.rail:focus-within .rail__toggle-text,
.rail[data-expanded="true"] .rail__toggle-text { opacity: 1; }

/* 滚动进度光条 */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: var(--volt);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  pointer-events: none;
}

/* 移动端开关（桌面隐藏） */
.mobile-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--grille);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.mobile-toggle:hover { border-color: var(--volt); color: var(--pulse); }

.mobile-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.mobile-toggle__bars::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.rail[data-open="true"] .mobile-toggle__bars::after { transform: scaleX(.45); }

/* ==========================================================================
   通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--panel);
  border: 1px solid var(--grille);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 3px 0 0 var(--volt);
  cursor: pointer;
  transition: background-color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.btn:hover,
.btn:focus-visible {
  color: var(--text);
  text-decoration: none;
  background: #171E27;
  border-color: var(--volt);
  box-shadow: inset 3px 0 0 var(--signal);
  transform: translateX(4px);
}

.btn--volt {
  background: var(--volt);
  border-color: var(--volt);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--signal);
}
.btn--volt:hover,
.btn--volt:focus-visible {
  background: #2E78FF;
  border-color: var(--pulse);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--signal);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--panel);
  border: 1px solid var(--grille);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease),
              color var(--t) var(--ease),
              background-color var(--t) var(--ease);
}
.chip:hover { border-color: var(--pulse); color: var(--text); }
.chip[aria-pressed="true"] {
  border-color: var(--kick);
  color: #fff;
  background: #1C1310;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb > li { margin: 0; }
.breadcrumb > li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--grille);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pulse); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* 图片占位容器 */
.figure { margin: 0; }
.figure__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grille);
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t) var(--ease);
}
.figure:hover .figure__media img { transform: scale(1.02); }
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(233, 238, 246, .05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-foot {
  margin-top: 96px;
  background: var(--rail);
  border-top: 1px solid var(--grille);
}

.site-foot__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.5fr;
  gap: 44px 32px;
}

.site-foot__wordmark {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--text);
}

.site-foot__tagline {
  margin: 0 0 22px;
  max-width: 34ch;
  font-size: 14px;
  color: var(--muted);
}

.site-foot__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grille);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .2em;
  color: var(--pulse);
}

.site-foot__col p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  max-width: 40ch;
}

.site-foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.site-foot__list li { margin: 0; }
.site-foot__list a { color: var(--muted); }
.site-foot__list a:hover { color: var(--pulse); }

.site-foot__list--contact li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--text);
  word-break: break-word;
}
.site-foot__list--contact .mono { font-size: 12px; }

.site-foot__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.site-foot__base {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  border-top: 1px solid var(--grille);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.site-foot__base p { margin: 0; max-width: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--rail-h-sm);
  }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--rail-h-sm);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--grille);
    overflow: visible;
    transition: none;
  }

  .rail:hover,
  .rail:focus-within,
  .rail[data-expanded="true"] { width: 100%; }

  .rail__status { display: none; }

  .rail__head {
    padding: 0;
    border-bottom: 0;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .brand__mark { font-size: 20px; }
  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: .18em;
  }

  .rail__nav {
    position: fixed;
    top: var(--rail-h-sm);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 130;
    max-height: calc(100vh - var(--rail-h-sm));
    overflow-y: auto;
    padding: 10px 0 18px;
    background: var(--rail);
    border-top: 1px solid var(--grille);
    border-bottom: 1px solid var(--grille);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) var(--ease),
                transform var(--t) var(--ease),
                visibility var(--t) linear;
  }

  .rail[data-open="true"] .rail__nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .rail__link { grid-template-columns: 56px 1fr; min-height: 50px; }
  .rail__label {
    opacity: 1;
    transform: none;
    padding-right: 24px;
  }

  .rail__foot { display: none; }

  .mobile-toggle { display: inline-flex; }

  .rail__progress {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(var(--p, 0));
    transform-origin: left;
  }

  .site-foot { margin-top: 64px; }
  .site-foot__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
    padding: 44px 20px 32px;
  }
  .site-foot__brand { grid-column: 1 / -1; }
  .site-foot__base { padding: 16px 20px 28px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 40px 0; }

  .site-foot__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 18px 26px;
  }
  .site-foot__base { padding: 14px 18px 26px; }
  .site-foot__list--contact li { grid-template-columns: 40px 1fr; }
}

/* ==========================================================================
   动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pulse { animation: none; opacity: 1; }
  .btn:hover,
  .btn:focus-visible { transform: none; }
  .figure:hover .figure__media img { transform: none; }
}
