/* ==========================================================================
   BIBO 必博体育 · 共享站点样式 /assets/site.css
   控制台底色 + 荧光青数据强调 + 暖橙比分高亮 + 粗野主义硬边界
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root{
  --bg:#061A13;
  --surface:#0B2A1F;
  --raise:#123A2C;
  --text:#EAF7F1;
  --muted:#A9C6B9;
  --accent:#3DF5D0;
  --accent-d:#1BB99A;
  --warm:#FF8C42;
  --indigo:#5B4DE0;
  --wine:#8E2A3B;
  --line:#2A5A47;
  --focus:#FFD166;
  --ink:#04211A;

  --font-display:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --font-body:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  --font-num:'JetBrains Mono','Roboto Mono','SFMono-Regular',Menlo,Consolas,monospace;

  --fs-xs:14px;
  --fs-s:16px;
  --fs-m:20px;
  --fs-l:28px;
  --fs-xl:44px;
  --fs-2xl:68px;
  --fs-3xl:96px;

  --shell:1320px;
  --gutter:clamp(16px,4vw,44px);
  --radius:18px;
  --radius-pill:999px;
  --border:3px solid var(--line);
  --shadow-hard:0 6px 0 rgba(0,0,0,.35);
  --shadow-hard-lg:0 10px 0 rgba(0,0,0,.42);
  --scroll-progress:0;

  --ease:cubic-bezier(.22,.61,.36,1);
}

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

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

body{
  margin:0;
  min-height:100vh;
  background-color:var(--bg);
  background-image:
    linear-gradient(to right, rgba(42,90,71,.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42,90,71,.26) 1px, transparent 1px);
  background-size:88px 88px;
  color:var(--text);
  font-family:var(--font-body);
  font-size:var(--fs-s);
  font-weight:400;
  line-height:1.7;
  letter-spacing:.01em;
}

h1,h2,h3,h4,h5,h6{
  margin:0;
  font-family:var(--font-display);
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.02em;
}

p,ul,ol,li,figure,blockquote,dl,dd{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;}
img,svg,video{display:block;max-width:100%;}
strong,b{font-weight:700;}

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

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

/* ---------- 3. 辅助类 ---------- */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

.num,.is-num{
  font-family:var(--font-num);
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
}

.divider{
  height:3px;
  border:0;
  background:var(--line);
}

/* ---------- 4. 布局容器与栅格 ---------- */
.shell{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

.section{padding:clamp(40px,7vw,88px) 0;}

.section-head{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:clamp(20px,3vw,36px);
  max-width:72ch;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-num);
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--accent);
}
.eyebrow::before{
  content:"";
  width:28px;
  height:3px;
  background:var(--accent);
  flex:none;
}

.section-title{font-size:clamp(26px,4vw,var(--fs-xl));}

.lede{
  font-size:clamp(16px,1.6vw,var(--fs-m));
  line-height:1.8;
  color:var(--muted);
  max-width:64ch;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(16px,2vw,24px);
}
.span-3{grid-column:span 3;}
.span-4{grid-column:span 4;}
.span-6{grid-column:span 6;}
.span-8{grid-column:span 8;}
.span-12{grid-column:span 12;}

/* ---------- 5. 数据面板 / 标签 / 刻度 ---------- */
.panel{
  background:var(--surface);
  border:var(--border);
  border-radius:var(--radius);
  padding:clamp(16px,2vw,26px);
  box-shadow:var(--shadow-hard);
  transition:transform .18s var(--ease),border-color .18s var(--ease),background-color .18s var(--ease);
}
.panel:hover{
  transform:translateY(-2px);
  border-color:var(--accent-d);
  background:var(--raise);
}

.panel-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:16px;
  border-bottom:2px solid var(--line);
}

.panel-title{
  font-family:var(--font-display);
  font-weight:900;
  font-size:var(--fs-m);
  line-height:1.25;
}

.panel-note{
  font-size:var(--fs-xs);
  color:var(--muted);
  font-family:var(--font-num);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 11px;
  border:2px solid var(--line);
  border-radius:var(--radius-pill);
  background:var(--raise);
  color:var(--text);
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  line-height:1.6;
}
.tag-accent{border-color:var(--accent-d);color:var(--accent);}
.tag-warm{border-color:var(--warm);color:var(--warm);}
.tag-indigo{border-color:var(--indigo);color:#BEB6FF;}
.tag-wine{border-color:var(--wine);color:#FFA6B4;background:rgba(142,42,59,.22);}

.stat{display:flex;flex-direction:column;gap:4px;}
.stat-value{
  font-family:var(--font-num);
  font-size:clamp(24px,3vw,34px);
  font-weight:700;
  line-height:1.05;
  color:var(--accent);
}
.stat-label{
  font-size:13px;
  letter-spacing:.1em;
  color:var(--muted);
}
.stat.is-warm .stat-value{color:var(--warm);}

.meter{display:flex;flex-direction:column;gap:8px;}
.meter-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:var(--fs-xs);
  color:var(--muted);
}
.meter-value{font-family:var(--font-num);color:var(--text);font-weight:700;}
.meter-track{
  height:12px;
  background:var(--raise);
  border:2px solid var(--line);
  border-radius:var(--radius-pill);
  overflow:hidden;
}
.meter-fill{
  height:100%;
  width:0;
  background:var(--accent);
}
.meter-fill.is-warm{background:var(--warm);}

/* ---------- 6. 按钮 / 面包屑 / 媒体容器 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 22px;
  border:3px solid transparent;
  border-radius:var(--radius-pill);
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  transition:transform .16s var(--ease),background-color .16s var(--ease),color .16s var(--ease),border-color .16s var(--ease);
}
.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--ink);
}
.btn-primary:hover{
  background:var(--warm);
  border-color:var(--warm);
  transform:translateY(-2px);
}
.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{
  border-color:var(--accent);
  color:var(--accent);
  transform:translateY(-2px);
}

.crumbs{padding:20px 0 0;}
.crumbs-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  font-size:var(--fs-xs);
  color:var(--muted);
}
.crumbs-item{display:flex;align-items:center;gap:10px;}
.crumbs-item + .crumbs-item::before{
  content:"/";
  color:var(--line);
  font-family:var(--font-num);
}
.crumbs-link{
  color:var(--muted);
  border-bottom:2px solid transparent;
  transition:color .16s var(--ease),border-color .16s var(--ease);
}
.crumbs-link:hover{color:var(--accent);border-bottom-color:var(--accent-d);}
.crumbs-current{color:var(--text);font-weight:600;}

.media-frame{
  position:relative;
  overflow:hidden;
  border:var(--border);
  border-radius:var(--radius);
  background:var(--raise);
}
.media-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-frame figcaption{
  padding:10px 14px;
  border-top:2px solid var(--line);
  background:var(--surface);
  font-size:13px;
  color:var(--muted);
}
.media-grid{
  display:grid;
  gap:clamp(12px,2vw,20px);
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.ratio-16x9{aspect-ratio:16/9;}
.ratio-4x3{aspect-ratio:4/3;}
.ratio-1x1{aspect-ratio:1/1;}

/* ---------- 7. 头部：悬浮胶囊浮岛 ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  padding:14px var(--gutter) 0;
}

.header-shell{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
}

.skip-link{
  position:absolute;
  top:-120px;
  left:18px;
  z-index:200;
  padding:10px 20px;
  border:3px solid var(--bg);
  border-radius:var(--radius-pill);
  background:var(--accent);
  color:var(--ink);
  font-size:var(--fs-xs);
  font-weight:700;
  transition:top .15s var(--ease);
}
.skip-link:focus{top:14px;}

.nav-pill{
  position:relative;
  display:flex;
  align-items:center;
  gap:clamp(10px,1.6vw,26px);
  padding:10px 12px 10px 16px;
  background:var(--surface);
  border:var(--border);
  border-radius:var(--radius-pill);
  box-shadow:var(--shadow-hard);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--accent);
  color:var(--ink);
  font-family:var(--font-display);
  font-size:22px;
  font-weight:900;
  line-height:1;
}

.brand-text{display:flex;flex-direction:column;line-height:1.2;}

.brand-name{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:900;
  letter-spacing:-.01em;
}

.brand-tag{
  margin-top:2px;
  font-family:var(--font-num);
  font-size:11px;
  letter-spacing:.16em;
  color:var(--accent-d);
}

.nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1 1 auto;
  justify-content:flex-end;
}

.nav-list{
  display:flex;
  align-items:center;
  gap:2px;
  flex-wrap:nowrap;
}

.nav-link{
  display:block;
  padding:9px 14px;
  border-radius:var(--radius-pill);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  white-space:nowrap;
  transition:background-color .16s var(--ease),color .16s var(--ease),box-shadow .16s var(--ease);
}
.nav-link:hover{background:var(--raise);color:var(--accent);}
.nav-link[aria-current="page"]{
  background:var(--raise);
  color:var(--accent);
  box-shadow:inset 0 0 0 2px var(--accent-d);
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:10px;
  padding:11px 20px;
  border:3px solid var(--accent);
  border-radius:var(--radius-pill);
  background:var(--accent);
  color:var(--ink);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  transition:transform .16s var(--ease),background-color .16s var(--ease),border-color .16s var(--ease);
}
.nav-cta:hover{
  background:var(--warm);
  border-color:var(--warm);
  transform:translateY(-2px);
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  margin-left:auto;
  padding:10px 16px;
  border:2px solid var(--line);
  border-radius:var(--radius-pill);
  background:var(--raise);
  color:var(--text);
  font-size:var(--fs-xs);
  font-weight:600;
}
.nav-toggle:hover{border-color:var(--accent);color:var(--accent);}

.nav-toggle-bars{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  width:18px;
  flex:none;
}
.nav-toggle-bars i{
  display:block;
  height:2px;
  width:100%;
  border-radius:2px;
  background:var(--accent);
  transition:transform .18s var(--ease),opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

.nav-toggle-label{
  font-family:var(--font-num);
  letter-spacing:.1em;
}

.scroll-meter{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:3px;
  z-index:120;
  pointer-events:none;
}
.scroll-meter::after{
  content:"";
  display:block;
  height:100%;
  width:100%;
  background:var(--accent);
  transform:scaleX(var(--scroll-progress,0));
  transform-origin:0 50%;
  box-shadow:0 0 10px rgba(61,245,208,.55);
}

/* ---------- 8. 页脚 ---------- */
.site-footer{
  margin-top:clamp(56px,9vw,120px);
  border-top:var(--border);
  background:var(--surface);
}

.footer-shell{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding:clamp(32px,5vw,64px) var(--gutter) 28px;
}

.footer-top{
  display:grid;
  grid-template-columns:1.5fr repeat(3,1fr);
  gap:clamp(20px,3vw,44px);
}

.footer-brand{max-width:40ch;}

.footer-brand-name{
  font-family:var(--font-display);
  font-size:var(--fs-m);
  font-weight:900;
  letter-spacing:-.01em;
}

.footer-brand-tag{
  margin-top:6px;
  font-family:var(--font-num);
  font-size:12px;
  letter-spacing:.18em;
  color:var(--accent);
}

.footer-note{
  margin-top:14px;
  font-size:15px;
  line-height:1.75;
  color:var(--muted);
}

.footer-col-title{
  padding-bottom:10px;
  margin-bottom:14px;
  border-bottom:2px solid var(--line);
  font-family:var(--font-num);
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--muted);
}

.footer-list{display:flex;flex-direction:column;gap:10px;}

.footer-link{
  font-size:15px;
  color:var(--text);
  border-bottom:2px solid transparent;
  padding-bottom:2px;
  transition:color .16s var(--ease),border-color .16s var(--ease);
}
.footer-link:hover{color:var(--accent);border-bottom-color:var(--accent-d);}

.footer-contact{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:18px;
  margin-top:clamp(28px,4vw,48px);
  padding-top:24px;
  border-top:2px dashed var(--line);
}

.footer-contact-item{display:flex;flex-direction:column;gap:6px;}

.footer-contact-label{
  font-family:var(--font-num);
  font-size:12px;
  letter-spacing:.16em;
  color:var(--muted);
}

.footer-contact-value{
  font-size:15px;
  color:var(--text);
  word-break:break-word;
}

.footer-contact-note{
  grid-column:1/-1;
  padding-left:14px;
  border-left:3px solid var(--line);
  font-size:var(--fs-xs);
  line-height:1.75;
  color:var(--muted);
}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  margin-top:28px;
  padding-top:18px;
  border-top:var(--border);
  font-size:var(--fs-xs);
  color:var(--muted);
}

.footer-legal{
  font-family:var(--font-num);
  font-size:13px;
  color:var(--muted);
}

.footer-legal-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
}

.footer-copy{font-size:13px;}

/* ---------- 9. 响应式 ---------- */
@media (max-width:1080px){
  .nav-toggle{display:inline-flex;}

  .nav{
    position:absolute;
    left:-3px;
    right:-3px;
    top:calc(100% + 12px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:6px;
    padding:16px;
    max-height:min(72vh,540px);
    overflow-y:auto;
    background:var(--surface);
    border:var(--border);
    border-radius:22px;
    box-shadow:var(--shadow-hard-lg);
  }
  .nav[data-open]{display:flex;}

  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:2px;
  }

  .nav-link{
    padding:13px 16px;
    border-radius:14px;
    font-size:var(--fs-s);
    border-bottom:2px solid var(--line);
  }
  .nav-link:last-child{border-bottom:0;}
  .nav-link[aria-current="page"]{box-shadow:inset 4px 0 0 var(--accent);}

  .nav-cta{
    margin:10px 0 0;
    padding:14px 20px;
  }
}

@media (max-width:900px){
  .span-3,.span-4{grid-column:span 6;}
  .span-6,.span-8{grid-column:span 12;}

  .footer-top{grid-template-columns:1fr 1fr;}
  .footer-brand{grid-column:1/-1;max-width:52ch;}
}

@media (max-width:560px){
  .site-header{padding:10px 12px 0;}

  .nav-pill{padding:8px 10px 8px 12px;gap:8px;}

  .brand-mark{width:36px;height:36px;border-radius:10px;font-size:19px;}
  .brand-tag{display:none;}
  .brand-name{font-size:16px;}

  .span-3,.span-4,.span-6,.span-8,.span-12{grid-column:span 12;}

  .footer-top{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}

/* ---------- 10. 减弱动效偏好 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .panel:hover,
  .btn:hover,
  .nav-cta:hover{transform:none;}
}
