/* =====================================================================
   b体育登录入口 · 共享样式表 /assets/site.css
   赛季档案室 · 夜间转播数据感
   ===================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root{
  --ink:#0A1A2F;
  --rail:#0C2138;
  --card:#12304F;
  --line:#1E3F62;
  --text:#DDE7F3;
  --muted:#7C93AC;
  --turf:#34E3A6;
  --turf-soft:#9BF0D2;
  --offside:#FF7A2F;
  --white:#FFFFFF;

  --stripe:linear-gradient(90deg,#34E3A6 0%,#1E7F66 45%,#12304F 100%);

  --rail-w:96px;
  --topbar-h:56px;

  --font-head:"Alibaba PuHuiTi 105 Heavy","Source Han Sans SC Heavy","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono","IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;

  --fs-12:12px;
  --fs-14:14px;
  --fs-18:18px;
  --fs-24:24px;
  --fs-34:34px;
  --fs-52:52px;
  --fs-78:78px;
  --fs-112:112px;

  --gap:24px;
  --ease:ease-out;
}

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

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

body,
h1,h2,h3,h4,h5,h6,
p,ul,ol,li,figure,figcaption,blockquote,
dl,dt,dd,address{
  margin:0;
  padding:0;
}

ul,ol{ list-style:none; }

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

button{
  font:inherit;
  color:inherit;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}

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

input,button,textarea,select{ font:inherit; }

/* ---------- 3. 页面基座与中文排版 ---------- */
body{
  min-height:100vh;
  background:var(--ink);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  font-weight:500;
  line-height:1.85;
  letter-spacing:.01em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

@media (min-width:768px){
  body{ font-size:17px; }
}

h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:900;
  font-stretch:75%;
  line-height:1.15;
  letter-spacing:.02em;
  color:var(--white);
}

h1{ font-size:clamp(38px,7.4vw,72px); }
h2{ font-size:clamp(26px,4vw,44px); }
h3{ font-size:clamp(20px,2.6vw,34px); }

::selection{
  background:var(--turf);
  color:var(--ink);
}

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

#main-content{ scroll-margin-top:80px; }

/* 通用工具 */
.mono{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
}

.rule{
  width:100%;
  height:1px;
  border:0;
  background:var(--line);
}

.vnote{
  font-size:11px;
  font-weight:400;
  letter-spacing:.18em;
  line-height:1.6;
  color:var(--muted);
  writing-mode:vertical-rl;
}

.lede{
  max-width:620px;
  font-size:var(--fs-18);
  line-height:1.85;
  color:var(--text);
}

/* ---------- 4. 布局容器与网格 ---------- */
.shell{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

@media (min-width:768px){
  .shell{ padding:0 32px; }
}

@media (min-width:1024px){
  .shell{ padding:0 44px; }
}

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

@media (min-width:768px){
  .grid{ grid-template-columns:repeat(8,minmax(0,1fr)); }
}

@media (min-width:1024px){
  .grid{ grid-template-columns:repeat(12,minmax(0,1fr)); }
}

/* ---------- 5. 正文容器 ---------- */
.prose{
  max-width:620px;
  font-size:17px;
  line-height:1.85;
  color:var(--text);
}

.prose p + p{ margin-top:1.1em; }

.prose h2,
.prose h3{
  margin-top:2.2em;
  margin-bottom:.6em;
}

.prose ul,
.prose ol{
  margin:1em 0 0;
  padding-left:0;
}

.prose li{
  position:relative;
  padding-left:22px;
  margin-bottom:.5em;
}

.prose li::before{
  content:"";
  position:absolute;
  left:0;
  top:.78em;
  width:12px;
  height:1px;
  background:var(--turf);
}

.prose a{
  color:var(--turf);
  border-bottom:1px solid rgba(52,227,166,.4);
}

.prose a:hover{ border-bottom-color:var(--turf); }

/* ---------- 6. 跳至主要内容 ---------- */
.skip-link{
  position:fixed;
  top:8px;
  left:8px;
  z-index:200;
  padding:10px 16px;
  background:var(--turf);
  color:var(--ink);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.4;
  transform:translateY(-220%);
  transition:transform .18s var(--ease);
}

.skip-link:focus{
  transform:translateY(0);
  outline:2px solid var(--white);
  outline-offset:2px;
}

@media (min-width:1024px){
  .skip-link{ left:calc(var(--rail-w) + 12px); }
}

/* =====================================================================
   7. 页头
   ===================================================================== */
.sh{
  position:relative;
  z-index:60;
}

/* 顶部阅读进度条 */
.sh-progress{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:2px;
  z-index:90;
  background:rgba(30,63,98,.65);
  pointer-events:none;
}

.sh-progress__bar{
  position:absolute;
  inset:0;
  display:block;
  background:linear-gradient(90deg,#34E3A6 0%,#FF7A2F 100%);
  transform:scaleX(0);
  transform-origin:left center;
  will-change:transform;
}

/* 移动端顶部一行 */
.sh-topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:75;
  height:var(--topbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  background:rgba(12,33,56,.96);
  border-bottom:1px solid var(--line);
}

.sh-topbar__brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.sh-topbar__mark{
  flex:0 0 auto;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1;
  padding:5px 6px;
  background:var(--turf);
  color:var(--ink);
}

.sh-topbar__name{
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sh-topbar__toggle{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.14em;
  transition:border-color .2s var(--ease), color .2s var(--ease);
}

.sh-topbar__toggle:hover,
.sh-topbar__toggle:focus-visible{
  border-color:var(--turf);
  color:var(--turf);
}

.sh-topbar__toggle-lines{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  width:18px;
  height:14px;
}

.sh-topbar__toggle-lines i{
  display:block;
  height:1px;
  background:currentColor;
  transition:transform .22s var(--ease), opacity .18s var(--ease);
}

.sh-topbar__toggle[aria-expanded="true"] .sh-topbar__toggle-lines i:nth-child(1){
  transform:translateY(5px) rotate(45deg);
}

.sh-topbar__toggle[aria-expanded="true"] .sh-topbar__toggle-lines i:nth-child(2){
  opacity:0;
}

.sh-topbar__toggle[aria-expanded="true"] .sh-topbar__toggle-lines i:nth-child(3){
  transform:translateY(-5px) rotate(-45deg);
}

.sh-topbar__toggle-text{ line-height:1; }

/* 抽屉遮罩 */
.sh-scrim{
  position:fixed;
  inset:0;
  z-index:78;
  background:rgba(10,26,47,.7);
}

.sh-scrim[hidden]{ display:none; }

/* 侧边轨道 / 移动抽屉 */
.sh-rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:80;
  display:flex;
  flex-direction:column;
  width:min(300px,82vw);
  padding:20px 18px 24px;
  background:var(--rail);
  border-right:1px solid var(--line);
  transform:translateX(-101%);
  transition:transform .3s cubic-bezier(.22,.8,.36,1);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.sh-rail[data-open]{ transform:translateX(0); }

.sh-rail__brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}

.sh-rail__mark{
  flex:0 0 auto;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  line-height:1;
  padding:6px 7px;
  background:var(--turf);
  color:var(--ink);
}

.sh-rail__name{
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--muted);
}

/* 主导航 */
.sh-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  scrollbar-width:none;
}

.sh-nav::-webkit-scrollbar{ display:none; }

.sh-nav__list{
  display:flex;
  flex-direction:column;
}

.sh-nav__item{ display:block; }

.sh-nav__link{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:11px 8px;
  border-bottom:1px solid rgba(30,63,98,.55);
  color:var(--muted);
  font-size:13.5px;
  font-weight:500;
  line-height:1.35;
  letter-spacing:.03em;
  transition:color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.sh-nav__tick{
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  line-height:1;
  color:var(--line);
  transition:color .2s var(--ease);
}

.sh-nav__label{ display:block; }

.sh-nav__link:hover{
  color:var(--turf-soft);
  background:rgba(30,63,98,.38);
}

.sh-nav__link:hover .sh-nav__tick{ color:var(--turf); }

.sh-nav__link[aria-current="page"]{
  color:var(--white);
  background:rgba(52,227,166,.08);
  box-shadow:inset -2px 0 0 0 var(--turf);
}

.sh-nav__link[aria-current="page"] .sh-nav__tick{ color:var(--turf); }

/* 轨道底部动作 */
.sh-rail__foot{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.sh-watch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  padding:9px 10px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.08em;
  line-height:1.3;
  text-align:left;
  transition:border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

.sh-watch:hover,
.sh-watch:focus-visible{
  border-color:var(--turf);
  color:var(--turf);
}

.sh-watch[aria-expanded="true"]{
  border-color:var(--turf);
  background:rgba(52,227,166,.1);
  color:var(--turf);
}

.sh-watch__label{ display:block; }

.sh-watch__count{
  flex:0 0 auto;
  min-width:18px;
  padding:1px 4px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  line-height:1.5;
  text-align:center;
  background:var(--line);
  color:var(--text);
}

.sh-watch[aria-expanded="true"] .sh-watch__count{
  background:var(--turf);
  color:var(--ink);
}

.sh-rail__go{
  display:block;
  padding:10px 10px;
  text-align:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  line-height:1.3;
  background:var(--turf);
  border:1px solid var(--turf);
  color:var(--ink);
  transition:background-color .2s var(--ease), border-color .2s var(--ease);
}

.sh-rail__go:hover,
.sh-rail__go:focus-visible{
  background:var(--turf-soft);
  border-color:var(--turf-soft);
  color:var(--ink);
}

/* 关注列表面板 */
.sh-watchlist{
  position:fixed;
  z-index:86;
  left:16px;
  right:16px;
  bottom:16px;
  padding:18px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:inset 0 -3px 0 0 rgba(52,227,166,.5);
}

.sh-watchlist[hidden]{ display:none; }

.sh-watchlist__head{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--muted);
  margin-bottom:12px;
}

.sh-watchlist__list{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px;
}

.sh-watchlist__item{
  display:block;
  width:100%;
  padding:9px 12px;
  text-align:left;
  font-size:13px;
  letter-spacing:.04em;
  border:1px solid var(--line);
  color:var(--muted);
  transition:border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

.sh-watchlist__item:hover{
  border-color:var(--turf-soft);
  color:var(--turf-soft);
}

.sh-watchlist__item[aria-pressed="true"]{
  border-color:var(--turf);
  background:rgba(52,227,166,.12);
  color:var(--turf);
}

.sh-watchlist__item[aria-pressed="true"]::after{
  content:" ✓";
  font-family:var(--font-mono);
}

.sh-watchlist__go{
  display:block;
  padding:10px 12px;
  text-align:center;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  border:1px solid var(--line);
  color:var(--text);
  transition:border-color .2s var(--ease), color .2s var(--ease);
}

.sh-watchlist__go:hover,
.sh-watchlist__go:focus-visible{
  border-color:var(--turf);
  color:var(--turf);
}

/* 桌面端：轨道常驻 */
@media (max-width:1023px){
  body{ padding-top:var(--topbar-h); }
}

@media (min-width:1024px){
  body{ padding-left:var(--rail-w); }

  .sh-topbar,
  .sh-scrim{ display:none; }

  .sh-rail{
    width:var(--rail-w);
    padding:18px 8px;
    transform:translateX(0);
    transition:none;
    overflow:visible;
    overscroll-behavior:auto;
  }

  .sh-rail[data-open]{ transform:translateX(0); }

  .sh-rail__brand{
    flex-direction:column;
    gap:12px;
    padding-bottom:16px;
    margin-bottom:14px;
  }

  .sh-rail__name{
    writing-mode:vertical-rl;
    font-size:11px;
    letter-spacing:.24em;
    line-height:1.4;
  }

  .sh-nav__link{
    padding:10px 6px;
    font-size:12.5px;
    letter-spacing:.02em;
  }

  .sh-nav__tick{ opacity:.75; }

  .sh-watchlist{
    left:calc(var(--rail-w) + 14px);
    right:auto;
    bottom:56px;
    width:264px;
  }
}

body.is-drawer-open{ overflow:hidden; }

/* =====================================================================
   8. 页脚
   ===================================================================== */
.sf{
  margin-top:80px;
  background:var(--rail);
  border-top:1px solid var(--line);
  color:var(--muted);
}

.sf__inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:56px 20px 36px;
}

@media (min-width:768px){
  .sf__inner{ padding:64px 32px 40px; }
}

@media (min-width:1024px){
  .sf__inner{ padding:72px 44px 44px; }
}

.sf__lead{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px 32px;
  padding-bottom:26px;
  border-bottom:1px solid var(--line);
}

.sf__brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sf__brand-mark{
  font-family:var(--font-head);
  font-weight:900;
  font-stretch:75%;
  font-size:var(--fs-24);
  letter-spacing:.04em;
  line-height:1.2;
  color:var(--white);
}

.sf__brand-sub{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.18em;
  color:var(--muted);
}

.sf__tag{
  max-width:100%;
  font-size:13px;
  letter-spacing:.06em;
  color:var(--muted);
}

.sf__groups{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}

@media (min-width:640px){
  .sf__groups{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
}

.sf__group-title{
  margin-bottom:12px;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:.2em;
  line-height:1.4;
  color:var(--muted);
}

.sf__list{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.sf__link{
  display:inline-block;
  padding:5px 0;
  font-size:14px;
  line-height:1.6;
  color:var(--text);
  transition:color .2s var(--ease);
}

.sf__link:hover,
.sf__link:focus-visible{
  color:var(--turf);
}

.sf__contact{
  padding:28px 0;
  border-bottom:1px solid var(--line);
}

.sf__meta{
  display:grid;
  grid-template-columns:1fr;
  gap:4px 0;
  max-width:760px;
  font-size:14px;
  line-height:1.7;
}

.sf__meta dt{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--line);
  margin-top:10px;
}

.sf__meta dt:first-of-type{ margin-top:0; }

.sf__meta dd{
  color:var(--text);
  overflow-wrap:anywhere;
}

@media (min-width:768px){
  .sf__meta{
    grid-template-columns:max-content minmax(0,1fr);
    gap:8px 22px;
  }

  .sf__meta dt{ margin-top:0; }
}

.sf__legal{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 24px;
  padding-top:22px;
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
}

.sf__legal-item{ display:block; }

/* =====================================================================
   9. 通用按钮
   ===================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 22px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  letter-spacing:.1em;
  line-height:1.3;
  transition:border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

.btn:hover,
.btn:focus-visible{
  border-color:var(--turf);
  color:var(--turf);
}

.btn--solid{
  background:var(--turf);
  border-color:var(--turf);
  color:var(--ink);
}

.btn--solid:hover,
.btn--solid:focus-visible{
  background:var(--turf-soft);
  border-color:var(--turf-soft);
  color:var(--ink);
}

.btn--alert{
  border-color:rgba(255,122,47,.6);
  color:var(--offside);
}

.btn--alert:hover,
.btn--alert:focus-visible{
  background:var(--offside);
  border-color:var(--offside);
  color:var(--ink);
}

.btn--ghost{
  border-color:transparent;
  color:var(--muted);
  padding-left:0;
  padding-right:0;
}

.btn--ghost:hover,
.btn--ghost:focus-visible{
  color:var(--turf);
}

/* =====================================================================
   10. 面包屑
   ===================================================================== */
.crumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.14em;
  line-height:1.6;
  color:var(--muted);
}

.crumbs a{
  transition:color .2s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible{
  color:var(--turf);
}

.crumbs__sep{
  color:var(--line);
}

.crumbs [aria-current="page"]{
  color:var(--text);
}

/* =====================================================================
   11. 图片容器（页面阶段放图）
   ===================================================================== */
.frame{
  position:relative;
  display:block;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--line);
}

.frame__media{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.5;
  background-image:
    linear-gradient(to right, rgba(30,63,98,.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,63,98,.6) 1px, transparent 1px);
  background-size:48px 48px;
  background-position:left top;
}

.frame--16x9{ aspect-ratio:16 / 9; }
.frame--3x2{ aspect-ratio:3 / 2; }
.frame--4x5{ aspect-ratio:4 / 5; }
.frame--1x1{ aspect-ratio:1 / 1; }

.frame--cut{
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

.frame__cap{
  position:absolute;
  left:0;
  bottom:0;
  z-index:2;
  padding:8px 12px;
  background:rgba(10,26,47,.86);
  border-top:1px solid var(--line);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
}

/* =====================================================================
   12. 显现协议
   ===================================================================== */
[data-reveal]{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* =====================================================================
   13. 降低动效偏好
   ===================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }

  *,
  *::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;
  }

  .sh-rail{ transition:none; }
  .sh-progress__bar{ transition:none; }
}
