/* ==========================================================
   乐竞体育 · 共享站点样式  /assets/site.css
   结构：重置 → 令牌 → 基础排版 → 通用组件 → 头部 → 页脚 → 响应式
   ========================================================== */

/* ---------- 1 重置 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html[data-nav-open]{overflow:hidden}
body{margin:0}
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
img,svg,picture{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit;text-decoration:none}
em,i{font-style:normal}

/* ---------- 2 设计令牌 ---------- */
:root{
  --teal:#0E7C7B;
  --lake:#1B6CA8;
  --orange:#F26419;
  --orange-deep:#D9550F;
  --pine:#123C3A;
  --sand:#E8E3DA;
  --paper:#FBF9F5;
  --ice:#A9CBDD;
  --moss:#BFD9D3;
  --clay:#F8C9AC;
  --line:#C9C2B6;
  --ink:#14181A;

  --rail-w:96px;
  --rail-open:256px;
  --maxw:1280px;
  --gutter:24px;
  --dur:180ms;
  --ease:cubic-bezier(.2,.7,.3,1);

  --f-display:"Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif;
  --f-body:"Noto Sans SC","Source Han Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-mono:"JetBrains Mono","Roboto Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* ---------- 3 基础排版 ---------- */
body{
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.75;
  color:var(--ink);
  background:var(--sand);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
@media (min-width:901px){ body{padding-left:var(--rail-w)} }

::selection{background:var(--orange);color:var(--ink)}
:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

#main-content{scroll-margin-top:132px}
@media (max-width:900px){ #main-content{scroll-margin-top:108px} }

/* ---------- 4 通用组件 ---------- */
.wrap{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.display{
  font-family:var(--f-display);
  font-weight:700;
  line-height:1.05;
  letter-spacing:.01em;
}

.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--f-body);
  font-size:14px;
  font-weight:900;
  letter-spacing:.18em;
  color:var(--teal);
  text-transform:uppercase;
}
.section-label::before{
  content:"";
  width:18px;
  height:2px;
  background:var(--orange);
  flex:0 0 auto;
}

.lede{
  font-size:20px;
  line-height:1.65;
  color:var(--pine);
}

.data-num{
  font-family:var(--f-mono);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.01em;
}

.prose{max-width:36em;font-size:17px;line-height:1.75}
.prose > * + *{margin-top:1.05em}
.prose h2,.prose h3{font-family:var(--f-display);line-height:1.28;letter-spacing:.01em}
.prose h2{font-size:28px}
.prose h3{font-size:22px}
.prose a{color:var(--lake);border-bottom:1px solid currentColor}
.prose a:hover{color:var(--teal)}

.grid{display:grid;gap:var(--gutter)}

/* 按钮 */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 22px;
  border:1px solid var(--pine);
  background:var(--paper);
  color:var(--pine);
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  line-height:1.2;
  transition:background-color var(--dur) var(--ease),
             color var(--dur) var(--ease),
             border-color var(--dur) var(--ease),
             transform var(--dur) var(--ease);
}
.btn:hover{transform:translateY(-2px);background:var(--moss)}
.btn--primary{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.btn--primary:hover{background:var(--orange-deep);border-color:var(--orange-deep);color:var(--paper)}
.btn--primary:focus-visible{outline-color:var(--pine);outline-offset:3px}
.btn--ghost{background:transparent;border-color:var(--pine);color:var(--pine)}
.btn--ghost:hover{background:var(--pine);color:var(--paper)}
.btn--light{background:transparent;border-color:rgba(251,249,245,.55);color:var(--paper)}
.btn--light:hover{background:var(--paper);color:var(--pine);border-color:var(--paper)}

/* 标签 */
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  line-height:1.5;
  background:var(--moss);
  color:var(--pine);
}
.tag--alert{background:var(--clay);color:var(--ink)}
.tag--data{background:var(--lake);color:var(--paper)}
.tag--live{background:var(--orange);color:var(--ink)}

/* 面板 */
.panel{
  background:var(--paper);
  border:1px solid var(--line);
  padding:20px;
}
.panel--dark{
  background:var(--pine);
  border-color:transparent;
  color:var(--paper);
}

/* 面包屑 */
.breadcrumb{padding:18px 0}
.breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.08em;
  color:var(--lake);
}
.breadcrumb li{display:flex;align-items:center;gap:8px}
.breadcrumb li + li::before{content:"/";color:var(--line)}
.breadcrumb a:hover{color:var(--teal);text-decoration:underline}

/* 图片容器（页面阶段放占位） */
.media{
  position:relative;
  overflow:hidden;
  background:var(--ice);
  border:1px solid var(--line);
  width:100%;
}
.media--21x9{aspect-ratio:21/9}
.media--16x9{aspect-ratio:16/9}
.media--3x2{aspect-ratio:3/2}
.media--4x3{aspect-ratio:4/3}
.media--1x1{aspect-ratio:1/1}
.media > img,
.media > picture,
.media > picture > img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media__caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px 12px;
  font-size:12px;
  line-height:1.5;
  letter-spacing:.04em;
  color:var(--paper);
  background:linear-gradient(to top,rgba(18,60,58,.88),rgba(18,60,58,0));
}

/* ---------- 5 跳过链接 ---------- */
.skip-link{
  position:fixed;
  top:8px;
  left:8px;
  z-index:400;
  padding:10px 18px;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--f-body);
  font-size:14px;
  font-weight:700;
  letter-spacing:.06em;
  transform:translateY(-200%);
  transition:transform var(--dur) var(--ease);
}
.skip-link:focus{transform:translateY(0)}

/* ---------- 6 站点头部 ---------- */
.site-header{position:sticky;top:0;z-index:60}

/* 滚动进度 */
.scrollbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:var(--orange);
  transform:scaleX(0);
  transform-origin:0 50%;
  pointer-events:none;
  z-index:90;
}

/* 6.1 侧边轨道导航 */
.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail-w);
  z-index:70;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--pine);
  color:var(--paper);
  border-right:1px solid rgba(251,249,245,.14);
  transition:width 220ms var(--ease);
}
.rail:hover,
.rail:focus-within{width:var(--rail-open)}

.rail__brand{
  display:flex;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
  height:96px;
  padding:0 24px;
  border-bottom:1px solid rgba(251,249,245,.14);
}
.rail__mark{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  background:var(--teal);
  color:var(--paper);
  font-family:var(--f-display);
  font-size:26px;
  font-weight:700;
  line-height:1;
  letter-spacing:.02em;
}
.rail__wordmark{
  white-space:nowrap;
  font-family:var(--f-display);
  font-size:19px;
  font-weight:700;
  letter-spacing:.04em;
  opacity:0;
  transform:translateX(-8px);
  transition:opacity 160ms var(--ease),transform 160ms var(--ease);
}
.rail:hover .rail__wordmark,
.rail:focus-within .rail__wordmark{opacity:1;transform:none}

.rail__nav{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  padding:14px 0;
  overflow-y:auto;
  overflow-x:hidden;
}
.rail__link{
  position:relative;
  display:flex;
  align-items:center;
  height:48px;
  padding:0 24px;
  white-space:nowrap;
  color:rgba(251,249,245,.72);
  transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease);
}
.rail__glyph{
  flex:0 0 auto;
  width:48px;
  font-family:var(--f-mono);
  font-size:12px;
  letter-spacing:.06em;
  color:rgba(251,249,245,.42);
  transition:color var(--dur) var(--ease);
}
.rail__name{
  font-size:15px;
  font-weight:500;
  letter-spacing:.06em;
  opacity:0;
  transform:translateX(-8px);
  transition:opacity 160ms var(--ease),transform 160ms var(--ease);
}
.rail:hover .rail__name,
.rail:focus-within .rail__name{opacity:1;transform:none}
.rail__link:hover{background:rgba(251,249,245,.07);color:var(--paper)}
.rail__link:hover .rail__glyph{color:var(--orange)}
.rail__link[aria-current="page"]{
  background:var(--teal);
  color:var(--paper);
}
.rail__link[aria-current="page"]::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--orange);
}
.rail__link[aria-current="page"] .rail__glyph{color:var(--paper)}

.rail__foot{
  flex:0 0 auto;
  padding:16px 12px 22px;
  border-top:1px solid rgba(251,249,245,.14);
  text-align:center;
}
.rail__meter{
  height:3px;
  width:100%;
  background:rgba(251,249,245,.18);
  margin-bottom:10px;
}
.rail__meter i{display:block;height:100%;background:var(--orange)}
.rail__count{
  font-family:var(--f-mono);
  font-size:11px;
  letter-spacing:.1em;
  color:rgba(251,249,245,.6);
}

/* 6.2 顶部状态条 */
.topbar{
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  max-width:var(--maxw);
  margin-inline:auto;
  padding:0 var(--gutter);
  min-height:68px;
  display:flex;
  align-items:center;
  gap:20px;
}

.brand{
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-right:auto;
  color:var(--ink);
}
.brand__name{
  font-family:var(--f-display);
  font-size:22px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:.04em;
}
.brand__sub{
  font-family:var(--f-mono);
  font-size:11px;
  letter-spacing:.18em;
  color:var(--lake);
}
.brand:hover .brand__name{color:var(--teal)}

.season-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:500;
  letter-spacing:.12em;
  color:var(--pine);
  white-space:nowrap;
}
.season-chip::before{
  content:"";
  width:6px;
  height:6px;
  background:var(--teal);
  flex:0 0 auto;
}

.status{
  display:flex;
  align-items:stretch;
  border:1px solid var(--line);
  background:var(--sand);
}
.status__cell{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 16px;
  border-left:1px solid var(--line);
}
.status__cell:first-child{border-left:0}
.status__k{
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--teal);
}
.status__v{
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  white-space:nowrap;
  color:var(--ink);
}
.status__cell--accent{background:var(--orange);color:var(--ink)}
.status__cell--accent .status__k{color:var(--ink);opacity:.7}
.status__cell--accent .status__v{color:var(--ink)}

.navtoggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:var(--pine);
  border:1px solid var(--pine);
  color:var(--paper);
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
}
.navtoggle:hover{background:var(--teal);border-color:var(--teal)}
.navtoggle__bars{display:grid;gap:4px;width:18px}
.navtoggle__bars i{display:block;height:2px;background:currentColor}

/* 6.3 轮次时间轴 */
.timeline{
  background:var(--pine);
  color:var(--paper);
  border-bottom:1px solid rgba(251,249,245,.14);
}
.timeline__inner{
  max-width:var(--maxw);
  margin-inline:auto;
  padding:8px var(--gutter);
  display:flex;
  align-items:center;
  gap:18px;
}
.timeline__label{
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.18em;
  color:rgba(251,249,245,.6);
  white-space:nowrap;
}
.timeline__value{
  display:inline-block;
  font-family:var(--f-mono);
  font-size:17px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--paper);
}
.timeline__value.is-flip{animation:roundFlip 180ms var(--ease)}
@keyframes roundFlip{
  from{opacity:0;transform:translateY(-60%)}
  to{opacity:1;transform:translateY(0)}
}

.timeline__track{
  flex:1 1 auto;
  display:flex;
  align-items:flex-end;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(251,249,245,.32) transparent;
}
.timeline__track::-webkit-scrollbar{height:3px}
.timeline__track::-webkit-scrollbar-track{background:transparent}
.timeline__track::-webkit-scrollbar-thumb{background:rgba(251,249,245,.3)}

.tl-tick{
  position:relative;
  flex:0 0 auto;
  width:21px;
  height:28px;
  display:block;
}
.tl-tick::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:2px;
  width:1px;
  height:11px;
  background:rgba(251,249,245,.26);
  transform:translateX(-50%);
  transition:background-color var(--dur) var(--ease),height var(--dur) var(--ease);
}
.tl-tick::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:13px;
  width:7px;
  height:7px;
  transform:translateX(-50%);
  background:transparent;
  border:1px solid rgba(251,249,245,.4);
  transition:background-color var(--dur) var(--ease),
             border-color var(--dur) var(--ease),
             width var(--dur) var(--ease),
             height var(--dur) var(--ease);
}
.tl-tick:hover::after{border-color:var(--paper)}
.tl-tick[data-state="done"]::after{background:var(--teal);border-color:var(--teal)}
.tl-tick[data-state="done"]::before{background:rgba(14,124,123,.85)}
.tl-tick[data-state="todo"]::after{background:transparent;border-color:rgba(251,249,245,.35)}
.tl-tick[data-state="current"]::after{
  width:9px;
  height:9px;
  bottom:12px;
  background:var(--orange);
  border-color:var(--orange);
}
.tl-tick[data-state="current"]::before{background:var(--orange);height:15px}

/* 6.4 移动抽屉 */
.drawer{
  position:fixed;
  inset:0;
  z-index:120;
  visibility:hidden;
}
.drawer[data-open]{visibility:visible}

.drawer__scrim{
  position:absolute;
  inset:0;
  background:rgba(18,60,58,.58);
  opacity:0;
  transition:opacity 200ms var(--ease);
}
.drawer[data-open] .drawer__scrim{opacity:1}

.drawer__panel{
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:min(330px,86vw);
  display:flex;
  flex-direction:column;
  background:var(--paper);
  border-right:1px solid var(--line);
  transform:translateX(-100%);
  transition:transform 220ms var(--ease);
}
.drawer[data-open] .drawer__panel{transform:none}

.drawer__head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
}
.drawer__title{
  font-size:12px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--teal);
}
.drawer__close{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  font-size:16px;
  line-height:1;
  color:var(--pine);
  transition:background-color var(--dur) var(--ease);
}
.drawer__close:hover{background:var(--sand)}

.drawer__nav{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  padding:8px 0;
}
.drawer__link{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 20px;
  font-size:16px;
  color:var(--ink);
  border-bottom:1px solid rgba(201,194,182,.5);
  transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease);
}
.drawer__link span{
  font-family:var(--f-mono);
  font-size:11px;
  letter-spacing:.08em;
  color:var(--lake);
}
.drawer__link:hover{background:var(--sand)}
.drawer__link[aria-current="page"]{
  background:var(--moss);
  color:var(--pine);
  font-weight:700;
}
.drawer__link[aria-current="page"] span{color:var(--teal)}

.drawer__foot{
  flex:0 0 auto;
  margin-top:auto;
  padding:16px 20px 22px;
  background:var(--sand);
  border-top:1px solid var(--line);
}
.drawer__footline{
  font-size:13px;
  line-height:1.7;
  color:var(--pine);
}
.drawer__footline--dim{color:rgba(18,60,58,.62);font-size:12px}

/* ---------- 7 页脚 ---------- */
.site-footer{
  margin-top:96px;
  background:var(--pine);
  color:var(--paper);
}
.footer__inner{
  max-width:var(--maxw);
  margin-inline:auto;
  padding:56px var(--gutter) 0;
}
.footer__grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.3fr;
  gap:36px 40px;
}
.footer__col--brand{max-width:34ch}

.footer__brandname{
  font-family:var(--f-display);
  font-size:28px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:.04em;
  margin-bottom:14px;
}
.footer__desc{
  font-size:14px;
  line-height:1.8;
  color:rgba(251,249,245,.72);
}
.footer__status{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  padding:8px 12px;
  border:1px solid rgba(251,249,245,.2);
  font-family:var(--f-mono);
  font-size:11px;
  letter-spacing:.1em;
  color:var(--moss);
}
.footer__dot{
  flex:0 0 auto;
  width:6px;
  height:6px;
  background:var(--orange);
}

.footer__k{
  margin-bottom:16px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.2em;
  color:var(--ice);
}
.footer__list li + li{margin-top:9px}
.footer__link{
  font-size:14px;
  color:rgba(251,249,245,.78);
  border-bottom:1px solid transparent;
  transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease);
}
.footer__link:hover{color:var(--paper);border-bottom-color:var(--orange)}

.footer__contact-item{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.footer__contact-item + .footer__contact-item{margin-top:14px}
.footer__key{
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--ice);
}
.footer__val{
  font-size:13px;
  line-height:1.7;
  color:rgba(251,249,245,.8);
  word-break:break-word;
}

.footer__bottom{
  margin-top:44px;
  padding:18px 0 26px;
  border-top:1px solid rgba(251,249,245,.16);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
}
.footer__copy{
  font-family:var(--f-mono);
  font-size:12px;
  letter-spacing:.04em;
  color:rgba(251,249,245,.55);
}
.footer__legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px;
}
.footer__legal .footer__link{font-size:12px;letter-spacing:.08em}

/* ---------- 8 响应式 ---------- */
@media (max-width:1180px){
  .status__cell--accent{display:none}
}

@media (max-width:1080px){
  .footer__grid{grid-template-columns:1fr 1fr;gap:32px}
  .footer__col--brand{max-width:none}
}

@media (max-width:900px){
  body{padding-left:0}
  .rail{display:none}
  .navtoggle{display:inline-flex;margin-left:auto}
  .status{display:none}
  .season-chip{display:none}
  .brand__sub{display:none}
  .brand__name{font-size:19px}
  .topbar__inner{min-height:62px;gap:12px}
  .timeline__inner{padding:7px 16px;gap:12px}
  .timeline__label span:first-child{display:none}
  .tl-tick{width:19px;height:26px}
  .site-footer{margin-top:64px}
  .footer__inner{padding-top:40px}
  .scrollbar{left:0}
}

@media (max-width:620px){
  :root{--gutter:16px}
  .footer__grid{grid-template-columns:1fr;gap:28px}
  .footer__bottom{flex-direction:column;align-items:flex-start}
  .footer__legal{gap:14px}
  .footer__brandname{font-size:24px}
  .timeline__value{font-size:15px}
}

@media (min-width:901px){
  .scrollbar{left:var(--rail-w)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
