/* ============================================================
   B体育登录 · 共享站点样式 /assets/site.css
   暗底电子记分牌 + 暖纸长卷 双色体系
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--cyan-200); text-decoration: none; }
a:hover { color: var(--cyan-400); }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 变量 ---------- */
:root {
  --ink-950: #05110E;
  --ink-800: #0B211B;
  --ink-600: #16332B;
  --paper-100: #F3EDE1;
  --paper-300: #DED3BE;
  --cyan-400: #35F0D0;
  --cyan-200: #A6F8E8;
  --orange-500: #FF7A2E;
  --orange-200: #FFC79B;
  --jade-300: #7FD8B0;
  --gray-400: #7C8C86;
  --white-0: #FFFFFF;

  --rail-w: 88px;
  --bar-h: 62px;
  --wrap: 1180px;

  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;

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

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 基础容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

#main-content { display: block; margin-top: var(--bar-h); }

/* ---------- 工具类 ---------- */
.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;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--cyan-400);
  color: var(--ink-950);
  font-size: 13.5px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.28s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink-950); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin: 0;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan-400), rgba(53, 240, 208, 0));
  margin: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.btn__text { white-space: nowrap; }
.btn__icon { display: none; font-family: var(--font-mono); }

.btn--primary {
  background: var(--cyan-400);
  color: var(--ink-950);
  box-shadow: 0 10px 28px rgba(53, 240, 208, 0.18);
}
.btn--primary:hover { background: var(--cyan-200); color: var(--ink-950); transform: translateY(-1px); }

.btn--accent { background: var(--orange-500); color: var(--ink-950); }
.btn--accent:hover { background: var(--orange-200); color: var(--ink-950); }

.btn--quiet {
  background: transparent;
  color: var(--paper-100);
  border-color: rgba(243, 237, 225, 0.24);
}
.btn--quiet:hover { border-color: var(--cyan-400); color: var(--cyan-200); }

.btn--ghost {
  background: var(--ink-600);
  color: var(--cyan-200);
  border-color: rgba(53, 240, 208, 0.22);
}
.btn--ghost:hover { background: var(--ink-800); color: var(--cyan-400); }

.btn--block { width: 100%; }

/* ---------- 标签 / 胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: var(--ink-600);
  color: var(--cyan-200);
  border: 1px solid rgba(53, 240, 208, 0.2);
}
.chip--orange {
  background: rgba(255, 122, 46, 0.1);
  color: var(--orange-200);
  border-color: rgba(255, 122, 46, 0.3);
}
.chip--jade {
  background: rgba(127, 216, 176, 0.1);
  color: var(--jade-300);
  border-color: rgba(127, 216, 176, 0.28);
}
.chip--paper {
  background: var(--paper-300);
  color: var(--ink-800);
  border-color: transparent;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ---------- 站点头部：侧边轨道 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  background: var(--ink-800);
  border-right: 1px solid var(--ink-600);
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px 0 24px;
}

.rail__progress {
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 2px;
  background: rgba(22, 51, 43, 0.9);
  pointer-events: none;
}
.rail__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan-400), var(--orange-500));
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--cyan-400);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand__name {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--paper-100);
}
.brand__tag { display: none; }

/* 移动导航按钮（桌面隐藏） */
.nav-toggle { display: none; }
.nav-toggle__bars { display: none; }
.nav-toggle__text { display: none; }

/* 导航 */
.site-nav { display: flex; flex-direction: column; }
.nav-list { list-style: none; }
.nav-link { text-decoration: none; }
.site-nav__eyebrow { display: none; }
.site-nav__foot { display: flex; flex-direction: column; }

/* 状态条 */
.status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-400);
}
.status-strip__dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--jade-300);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 216, 176, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(127, 216, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 216, 176, 0); }
}

/* ---------- 桌面轨道布局 ---------- */
@media (min-width: 1024px) {
  #main-content { margin-top: 0; margin-left: var(--rail-w); }

  .site-nav {
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 10px;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .nav-item { width: 100%; display: flex; justify-content: center; }

  .nav-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--r-md);
    color: var(--gray-400);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: background 0.24s var(--ease), color 0.24s var(--ease);
  }
  .nav-link__idx { display: block; }
  .nav-link__label {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 5;
    transform: translateY(-50%) translateX(-6px);
    padding: 7px 14px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(53, 240, 208, 0.24);
    background: var(--ink-600);
    color: var(--paper-100);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s linear;
  }
  .nav-link:hover { background: var(--ink-600); color: var(--cyan-200); }
  .nav-link:hover .nav-link__label,
  .nav-link:focus-visible .nav-link__label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
  .nav-link[aria-current="page"] {
    background: var(--cyan-400);
    color: var(--ink-950);
  }
  .nav-link[aria-current="page"] .nav-link__idx { font-weight: 700; }

  .site-nav__foot {
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0 10px;
    flex: none;
  }
  .status-strip__text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rail .btn {
    width: 46px; height: 46px;
    padding: 0;
    border-radius: var(--r-md);
  }
  .rail .btn__icon { display: block; font-size: 16px; line-height: 1; }
  .rail .btn__text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .rail .btn--quiet { display: none; }
  .rail .btn--primary:hover { transform: none; }
}

/* ---------- 移动 / 平板布局 ---------- */
@media (max-width: 1023px) {
  .site-header {
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--bar-h);
    border-right: 0;
    border-bottom: 1px solid var(--ink-600);
    background: rgba(11, 33, 27, 0.96);
  }
  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--bar-h);
    width: 100%;
    padding: 0 clamp(14px, 4vw, 24px);
  }
  .rail__progress { display: none; }

  .brand { flex-direction: row; gap: 10px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
  .brand__body { align-items: flex-start; gap: 1px; }
  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }
  .brand__tag {
    display: block;
    font-size: 10.5px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--gray-400);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
    padding: 8px 14px 8px 13px;
    border: 1px solid rgba(53, 240, 208, 0.28);
    border-radius: var(--r-pill);
    background: var(--ink-600);
    color: var(--cyan-200);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: background 0.22s var(--ease), color 0.22s var(--ease);
  }
  .nav-toggle:hover { background: var(--ink-800); color: var(--cyan-400); }
  .nav-toggle__text { display: block; }
  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
  }
  .nav-toggle__bars span {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.24s var(--ease);
  }
  .site-header[data-open] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .site-header[data-open] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 70;
    width: min(340px, 86vw);
    padding: calc(var(--bar-h) + 26px) 22px 30px;
    gap: 18px;
    overflow-y: auto;
    background: var(--ink-800);
    border-right: 1px solid var(--ink-600);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(-104%);
    transition: transform 0.4s var(--ease);
  }
  .site-header[data-open] .site-nav { transform: translateX(0); }

  .site-nav__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan-400);
  }
  .nav-list { display: flex; flex-direction: column; gap: 4px; }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    color: var(--paper-100);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.22s var(--ease), color 0.22s var(--ease);
  }
  .nav-link__idx {
    flex: none;
    width: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--gray-400);
  }
  .nav-link:hover { background: var(--ink-600); color: var(--cyan-200); }
  .nav-link[aria-current="page"] { background: var(--cyan-400); color: var(--ink-950); }
  .nav-link[aria-current="page"] .nav-link__idx { color: var(--ink-950); font-weight: 700; }

  .site-nav__foot { margin-top: auto; gap: 10px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-800);
  border-top: 1px solid var(--ink-600);
  color: var(--paper-100);
}

.footer__scale {
  height: 14px;
  border-bottom: 1px solid var(--ink-600);
  background-image:
    repeating-linear-gradient(90deg, var(--ink-600) 0 1px, transparent 1px 12px),
    linear-gradient(90deg, rgba(53, 240, 208, 0.18), rgba(255, 122, 46, 0.14));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-top: clamp(38px, 5vw, 66px);
  padding-bottom: clamp(28px, 4vw, 46px);
}
.footer__brand { max-width: 42ch; }
.footer__logo {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}
.footer__tagline {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--gray-400);
}
.footer__chip {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 122, 46, 0.28);
  background: rgba(255, 122, 46, 0.1);
  color: var(--orange-200);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  color: var(--paper-100);
  font-size: 14.5px;
  opacity: 0.82;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer__link:hover { color: var(--cyan-200); opacity: 1; }

.footer__contact { max-width: 40ch; }
.footer__value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--paper-100);
  word-break: break-word;
}
.footer__label {
  flex: none;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray-400);
}
.footer__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-400);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--ink-600);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}
.footer__base-item { margin: 0; }
.footer__icp { color: var(--cyan-200); }

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(220px, 1.25fr) minmax(240px, 1fr) minmax(230px, 1.15fr);
  }
}

/* ---------- 章节头 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
}
.section-head__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
.section-head__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-400);
}

/* ---------- 暖纸长卷 ---------- */
.sheet {
  position: relative;
  background: var(--paper-100);
  color: var(--ink-950);
  border-radius: clamp(20px, 3vw, var(--r-xl));
  padding: clamp(28px, 5vw, 72px) clamp(22px, 4vw, 56px);
}
.sheet .eyebrow { color: #0E7A63; }
.sheet .section-head__text { color: #4A5A54; }
.sheet .chip {
  background: var(--paper-300);
  color: var(--ink-800);
  border-color: rgba(5, 17, 14, 0.12);
}
.sheet .rule { background: linear-gradient(90deg, #0E7A63, rgba(14, 122, 99, 0)); }

/* ---------- 面板与卡片 ---------- */
.card {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
}
.card__title {
  margin-bottom: 10px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
}
.panel {
  background: linear-gradient(180deg, rgba(22, 51, 43, 0.55), rgba(11, 33, 27, 0.92));
  border: 1px solid rgba(53, 240, 208, 0.14);
  border-radius: var(--r-md);
  padding: clamp(16px, 2.4vw, 24px);
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-600);
  background: linear-gradient(150deg, var(--ink-600), var(--ink-800));
}
.media > img,
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__cap {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(5, 17, 14, 0.74);
  color: var(--cyan-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.sheet .media { border-color: rgba(5, 17, 14, 0.12); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__link { color: var(--cyan-200); }
.breadcrumb__link:hover { color: var(--cyan-400); }
.breadcrumb__sep { color: var(--ink-600); }

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式细节 ---------- */
@media (min-width: 1024px) {
  .site-footer { margin-left: var(--rail-w); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer__cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 动效降级 ---------- */
@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 !important; transform: none !important; }
  .site-nav { transition: none !important; }
}
