/* ==========================================================================
   完美体育赛场 · 全站共享样式  /assets/site.css
   夜间看板体系：夜空蓝底 + 电光青 / 荧光橙 / 金标黄强调
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root{
  --night:#0A1222;
  --arena:#121E33;
  --panel:#1B2A44;
  --cyan:#2BD9E4;
  --orange:#FF7A1A;
  --gold:#FFC93C;
  --mist:#E8EEF8;
  --steel:#7E92AE;
  --red:#FF4D5E;
  --green:#34D399;

  --cyan-08:rgba(43,217,228,.08);
  --cyan-12:rgba(43,217,228,.12);
  --cyan-32:rgba(43,217,228,.32);
  --orange-16:rgba(255,122,26,.16);
  --line:rgba(126,146,174,.2);
  --line-soft:rgba(126,146,174,.12);
  --line-strong:rgba(126,146,174,.38);

  --font-sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"JetBrains Mono","IBM Plex Mono","Courier New",monospace;

  --shell:1280px;
  --rail:88px;
  --r-card:14px;
  --r-big:22px;
  --r-pill:999px;

  --dur:.32s;
  --dur-fast:.18s;
}

/* ---------- 2. 重置与基础排版 ---------- */
*,
*::before,
*::after{ box-sizing:border-box; }

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

body{
  margin:0;
  min-height:100vh;
  background:var(--night);
  color:var(--mist);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4,h5{
  margin:0;
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.02em;
}

p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

ul,ol{ margin:0; padding:0; list-style:none; }

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

a{
  color:var(--cyan);
  text-decoration:none;
  transition:color var(--dur-fast) ease;
}
a:hover{ color:var(--mist); }

button{
  font:inherit;
  color:inherit;
  background:none;
  border:0;
  cursor:pointer;
}

table{ border-collapse:collapse; }

::selection{
  background:var(--cyan);
  color:var(--night);
}

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

/* ---------- 3. 文本工具类 ---------- */
.mono-label{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--steel);
}

.data-num{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:clamp(30px,4.6vw,54px);
  line-height:1;
  letter-spacing:-.03em;
  color:var(--gold);
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link{
  position:fixed;
  left:16px;
  top:-120px;
  z-index:1200;
  padding:11px 20px;
  border-radius:0 0 12px 12px;
  background:var(--cyan);
  color:var(--night);
  font-size:14px;
  font-weight:700;
  transition:top var(--dur-fast) ease;
}
.skip-link:focus{
  top:0;
  color:var(--night);
}

/* ---------- 5. 品牌轨道（桌面端 88px） ---------- */
@media (min-width:1024px){
  body{ padding-left:var(--rail); }

  body::before{
    content:"";
    position:fixed;
    inset:0 auto 0 0;
    width:var(--rail);
    background:linear-gradient(180deg,#0A1222 0%,#101C30 42%,#0A1222 100%);
    border-right:1px solid rgba(43,217,228,.16);
    z-index:1;
    pointer-events:none;
  }

  body::after{
    content:"完美体育赛场 · 赛场资料看板";
    position:fixed;
    left:0;
    top:0;
    width:var(--rail);
    height:100vh;
    display:grid;
    place-items:center;
    writing-mode:vertical-rl;
    letter-spacing:.34em;
    font-family:var(--font-mono);
    font-size:11px;
    color:rgba(126,146,174,.6);
    z-index:2;
    pointer-events:none;
  }
}

/* ---------- 6. 页头 ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:linear-gradient(180deg,rgba(10,18,34,.97),rgba(10,18,34,.9));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.header-grid{
  max-width:var(--shell);
  margin:0 auto;
  padding:20px 28px 10px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
}

.masthead__meta{ justify-self:start; }

.masthead__brand{
  justify-self:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:2px 24px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  color:var(--mist);
}
.masthead__brand:hover{ color:var(--mist); }

.masthead__logo{
  font-size:clamp(24px,2.9vw,38px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.05;
  color:var(--mist);
}

@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .masthead__logo{
    background-image:linear-gradient(100deg,var(--mist) 18%,var(--cyan) 54%,var(--orange) 92%);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
  }
}

.masthead__sub{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.22em;
  color:var(--steel);
  white-space:nowrap;
}

.masthead__utility{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.util-link{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.1em;
  color:var(--steel);
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:var(--r-pill);
  transition:color var(--dur-fast) ease,border-color var(--dur-fast) ease,background var(--dur-fast) ease;
}
.util-link:hover{
  color:var(--cyan);
  border-color:var(--cyan-32);
  background:var(--cyan-12);
}

/* ---------- 7. 主导航 ---------- */
.primary-nav{
  border-top:1px solid rgba(126,146,174,.14);
}

.nav-shell{
  position:relative;
  max-width:var(--shell);
  margin:0 auto;
  padding:12px 190px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.nav-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:4px;
}

.nav-list > li > a{
  display:block;
  padding:9px 15px;
  border-radius:var(--r-pill);
  border:1px solid transparent;
  font-size:15px;
  color:var(--steel);
  transition:color var(--dur-fast) ease,background var(--dur-fast) ease,border-color var(--dur-fast) ease;
}
.nav-list > li > a:hover{
  color:var(--mist);
  background:rgba(27,42,68,.75);
  border-color:var(--line-strong);
}
.nav-list > li > a[aria-current="page"]{
  color:var(--night);
  background:var(--cyan);
  border-color:var(--cyan);
  font-weight:700;
}
.nav-list > li > a[aria-current="page"]:hover{
  color:var(--night);
  background:#57E5EE;
}

.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-pill);
  background:rgba(27,42,68,.6);
  color:var(--mist);
  font-size:15px;
}
.nav-toggle__icon{
  display:inline-flex;
  flex-direction:column;
  gap:3px;
  width:16px;
}
.nav-toggle__icon i{
  display:block;
  height:2px;
  border-radius:2px;
  background:var(--cyan);
}
.nav-toggle__icon i:nth-child(2){
  width:70%;
  background:var(--orange);
}

.nav-cta{
  position:absolute;
  right:28px;
  top:50%;
  transform:translateY(-50%);
  white-space:nowrap;
}

/* ---------- 8. 按钮 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 22px;
  border:1px solid transparent;
  border-radius:var(--r-pill);
  font-family:var(--font-sans);
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  text-decoration:none;
  cursor:pointer;
  transition:transform var(--dur-fast) ease,background var(--dur) ease,color var(--dur) ease,border-color var(--dur) ease,box-shadow var(--dur) ease;
}
.btn:active{ transform:translateY(1px); }

.btn--cta{
  background:var(--orange);
  color:#1A0C02;
  box-shadow:0 0 0 1px rgba(255,122,26,.42),0 10px 26px -14px rgba(255,122,26,.95);
}
.btn--cta:hover{
  background:#FF9345;
  color:#1A0C02;
  transform:translateY(-1px);
}

.btn--primary{
  background:var(--cyan);
  color:var(--night);
}
.btn--primary:hover{
  background:#5BE6EE;
  color:var(--night);
}

.btn--ghost{
  background:rgba(27,42,68,.5);
  border-color:var(--line-strong);
  color:var(--mist);
}
.btn--ghost:hover{
  border-color:var(--cyan);
  background:var(--cyan-12);
  color:var(--cyan);
}

.btn--sm{
  padding:8px 16px;
  font-size:13px;
}

/* ---------- 9. 布局容器与编号章节 ---------- */
.wrap{
  max-width:var(--shell);
  margin:0 auto;
  padding:0 28px;
}

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

.section__head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:start;
  margin-bottom:28px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.section__index{
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--orange);
  padding-top:6px;
  white-space:nowrap;
}

.section__title{
  font-size:clamp(24px,3vw,36px);
  color:var(--mist);
}

.section__lead{
  margin-top:10px;
  max-width:36em;
  font-size:18px;
  font-weight:500;
  color:var(--steel);
  line-height:1.7;
}

/* ---------- 10. 面包屑 ---------- */
.crumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:20px 0 0;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.1em;
  color:var(--steel);
}
.crumbs a{ color:var(--steel); }
.crumbs a:hover{ color:var(--cyan); }
.crumbs [aria-current="page"]{ color:var(--mist); }
.crumbs__sep{ color:rgba(126,146,174,.5); }

/* ---------- 11. 研究板 / 卡片 ---------- */
.board{
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:var(--r-card);
  background:linear-gradient(180deg,rgba(18,30,51,.95),rgba(12,21,38,.95));
  transition:border-color var(--dur) ease,background var(--dur) ease;
}
.board:hover{
  border-color:var(--cyan-32);
  background:linear-gradient(180deg,rgba(21,35,58,.98),rgba(12,21,38,.98));
}

/* ---------- 12. 图片容器（页面阶段放图） ---------- */
.media-frame{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  aspect-ratio:16 / 10;
  border:1px solid var(--line);
  border-radius:20px 6px 20px 6px;
  background:
    radial-gradient(120% 88% at 15% 0%,rgba(43,217,228,.22),transparent 62%),
    radial-gradient(100% 80% at 92% 100%,rgba(255,122,26,.18),transparent 60%),
    linear-gradient(160deg,#16243C 0%,#0B1424 72%);
}
.media-frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:repeating-linear-gradient(115deg,rgba(232,238,248,.05) 0 1px,transparent 1px 17px);
}
.media-frame:has(> img)::after{ display:none; }
.media-frame > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-frame--wide{ aspect-ratio:21 / 9; }
.media-frame--tall{ aspect-ratio:3 / 4; }
.media-frame--square{ aspect-ratio:1 / 1; }

.media-frame__cap{
  display:block;
  margin-top:10px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.08em;
  color:var(--steel);
}

/* ---------- 13. 标签与表格 ---------- */
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 11px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-pill);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--steel);
}
.tag--live{
  color:var(--green);
  border-color:rgba(52,211,153,.45);
  background:rgba(52,211,153,.1);
}
.tag--hot{
  color:var(--orange);
  border-color:rgba(255,122,26,.45);
  background:var(--orange-16);
}
.tag--info{
  color:var(--cyan);
  border-color:var(--cyan-32);
  background:var(--cyan-12);
}

.table{
  width:100%;
  font-size:15px;
}
.table th{
  padding:10px 12px;
  border-bottom:1px solid var(--line-strong);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-align:left;
  color:var(--steel);
}
.table td{
  padding:12px;
  border-bottom:1px solid var(--line-soft);
  vertical-align:top;
}
.table tbody tr:nth-child(even){ background:rgba(27,42,68,.45); }
.table tbody tr:hover{ background:rgba(43,217,228,.07); }

/* ---------- 14. 页脚 ---------- */
.site-footer{
  margin-top:80px;
  background:linear-gradient(180deg,#0C1526 0%,#070D18 100%);
  border-top:1px solid var(--line);
}

.footer-shell{
  max-width:var(--shell);
  margin:0 auto;
  padding:56px 28px 34px;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.7fr;
  gap:34px;
}

.footer-brand__name{
  display:block;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--mist);
}
.footer-brand__tag{
  display:block;
  margin-top:9px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  color:var(--orange);
}
.footer-brand__meta{
  margin-top:14px;
  max-width:30em;
  font-size:14px;
  line-height:1.65;
  color:var(--steel);
}

.footer-col__title{
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(43,217,228,.24);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--cyan);
}

.footer-col ul{
  display:grid;
  gap:9px;
}
.footer-col a{
  font-size:15px;
  color:var(--steel);
  transition:color var(--dur-fast) ease;
}
.footer-col a:hover{ color:var(--cyan); }

.footer-contact__row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
  font-size:14px;
  color:var(--mist);
}
.footer-contact__mail{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--mist);
  word-break:break-all;
}

.copy-btn{
  padding:5px 11px;
  border:1px solid var(--line-strong);
  border-radius:var(--r-pill);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  color:var(--steel);
  transition:color var(--dur-fast) ease,border-color var(--dur-fast) ease,background var(--dur-fast) ease;
}
.copy-btn:hover{
  color:var(--cyan);
  border-color:var(--cyan-32);
  background:var(--cyan-12);
}
.copy-btn[data-copied="true"]{
  color:var(--green);
  border-color:rgba(52,211,153,.5);
  background:rgba(52,211,153,.1);
}

.footer-legal{
  border-top:1px solid rgba(126,146,174,.16);
}
.footer-legal__inner{
  max-width:var(--shell);
  margin:0 auto;
  padding:18px 28px 30px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 22px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
  color:var(--steel);
}
.footer-legal__icp{
  color:var(--mist);
}
.footer-legal__note{
  max-width:62ch;
  color:rgba(126,146,174,.85);
}

/* ---------- 15. 浮标与滚动进度 ---------- */
.to-top{
  position:fixed;
  right:22px;
  bottom:26px;
  z-index:200;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  border-radius:50%;
  background:rgba(18,30,51,.92);
  color:var(--cyan);
  font-size:18px;
  line-height:1;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity var(--dur) ease,transform var(--dur) ease,visibility var(--dur) ease,border-color var(--dur-fast) ease,background var(--dur-fast) ease;
}
.to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:none;
}
.to-top:hover{
  border-color:var(--cyan);
  background:rgba(43,217,228,.14);
}

.scroll-progress{
  position:fixed;
  left:0;
  top:0;
  z-index:300;
  height:3px;
  width:0;
  pointer-events:none;
  background:linear-gradient(90deg,var(--cyan) 0%,var(--gold) 55%,var(--orange) 100%);
  transition:width .1s linear;
}

/* ---------- 16. 进场与脉冲 ---------- */
.js-on [data-reveal]{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .6s ease,transform .6s ease;
}
.js-on [data-reveal].is-in{
  opacity:1;
  transform:none;
}

@keyframes node-pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(43,217,228,.45); }
  50%{ box-shadow:0 0 0 8px rgba(43,217,228,0); }
}
[data-pulse]{ animation:node-pulse 2.4s ease-in-out infinite; }

/* ---------- 17. 响应式 ---------- */
@media (max-width:1180px){
  .nav-shell{ padding-left:150px; padding-right:150px; }
  .nav-list > li > a{ padding:8px 11px; font-size:14px; }
}

@media (max-width:1023px){
  body::before,
  body::after{ content:none; }
}

@media (max-width:900px){
  .header-grid{
    grid-template-columns:1fr;
    gap:10px;
    padding:16px 18px 10px;
  }
  .masthead__meta{ display:none; }
  .masthead__brand{
    justify-self:center;
    padding:0;
    border-left:0;
    border-right:0;
  }
  .masthead__utility{ justify-self:center; }

  .nav-shell{
    display:block;
    padding:0 18px 14px;
  }
  .nav-toggle{ display:inline-flex; }
  .nav-list{
    display:none;
    margin-top:10px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .nav-list > li > a{
    padding:12px 14px;
    border-radius:10px;
    border-color:rgba(126,146,174,.16);
    background:rgba(18,30,51,.6);
    font-size:16px;
  }
  .nav-cta{
    position:static;
    transform:none;
    display:none;
  }
  .primary-nav[data-open="true"] .nav-list{ display:flex; }
  .primary-nav[data-open="true"] .nav-cta{
    display:inline-flex;
    width:100%;
    margin-top:10px;
  }

  .section{ padding:46px 0; }

  .footer-shell{
    grid-template-columns:1fr 1fr;
    gap:28px;
    padding:44px 20px 28px;
  }
  .footer-brand{ grid-column:1 / -1; }
  .footer-contact{ grid-column:1 / -1; }
  .footer-legal__inner{
    padding:16px 20px 26px;
    justify-content:flex-start;
  }
}

@media (max-width:640px){
  body{ font-size:16px; }

  .header-grid{ padding:14px 16px 8px; }
  .masthead__logo{ font-size:26px; }
  .masthead__sub{ font-size:10px; letter-spacing:.16em; }

  .nav-shell{ padding:0 16px 12px; }

  .wrap{ padding:0 18px; }

  .section__head{
    grid-template-columns:1fr;
    gap:6px;
  }
  .section__index{ padding-top:0; }
  .section__lead{ font-size:16px; }

  .footer-shell{
    grid-template-columns:1fr;
    gap:26px;
    padding:38px 18px 24px;
  }
  .footer-legal__inner{
    padding:16px 18px 24px;
    font-size:11px;
  }

  .to-top{
    right:14px;
    bottom:18px;
    width:44px;
    height:44px;
  }
}

/* ---------- 18. 减少动态效果 ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }

  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }

  .js-on [data-reveal]{
    transform:none;
    transition:opacity .3s ease;
  }

  [data-pulse]{ animation:none; }
}
