/* =========================================================
   乐鱼赛场 · 共享外壳样式 /assets/site.css
   夜间赛场指挥台：深海蓝底 + 荧光青刻度 + 暖橙动作色
   ========================================================= */

:root{
  /* 品牌色 */
  --c-deep:#071A2C;
  --c-stand:#0D2A42;
  --c-ink:#030B12;
  --c-cyan:#35F0D0;
  --c-cyan-soft:#B8FFF4;
  --c-orange:#FF8A3D;
  --c-orange-deep:#FF6B2C;
  --c-paper:#F2E6D2;
  --c-mist:#91A8BA;
  --c-home:#2D8CFF;
  --c-away:#FF5C35;
  --c-band-1:#4F7480;
  --c-band-2:#8A7650;
  --c-band-3:#557A68;
  --c-band-4:#6E6484;

  /* 文本 */
  --c-text:#DCE8F2;
  --c-title:#EAF4FB;

  /* 尺度 */
  --rail-w:264px;
  --gutter:clamp(16px,4vw,56px);
  --r-sm:12px;
  --r-md:16px;
  --r-lg:24px;
  --r-pill:999px;

  /* 字体 */
  --font-display:"Noto Sans SC","Source Han Sans SC","PingFang SC","Arial Narrow",system-ui,sans-serif;
  --font-serif:"Noto Serif SC","Songti SC","SimSun",Georgia,serif;
  --font-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --font-mono:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono","Courier New",monospace;
}

/* ---------- 1. reset ---------- */
*,
*::before,
*::after{box-sizing:border-box;}

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

body{
  margin:0;
  min-height:100vh;
  padding-top:64px;
  background-color:var(--c-deep);
  background-image:
    radial-gradient(120% 80% at 100% 0%,rgba(53,240,208,.08),transparent 62%),
    radial-gradient(90% 60% at 0% 100%,rgba(45,140,255,.08),transparent 62%);
  color:var(--c-text);
  font-family:var(--font-body);
  font-size:clamp(15px,.55vw + 13.4px,17px);
  line-height:1.75;
  letter-spacing:.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg,video{display:block;max-width:100%;}
button,input,select,textarea{font:inherit;color:inherit;}
ul,ol{margin:0;}

/* ---------- 2. 中文排版 ---------- */
h1,h2,h3,h4,h5,h6{
  margin:0 0 .55em;
  font-family:var(--font-display);
  font-weight:900;
  line-height:1.04;
  letter-spacing:-.02em;
  color:var(--c-title);
  text-wrap:balance;
}
h1{font-size:clamp(2.4rem,5vw,5.8rem);line-height:.95;letter-spacing:-.03em;}
h2{font-size:clamp(1.85rem,3.4vw,3.2rem);}
h3{font-size:clamp(1.22rem,1.8vw,1.6rem);line-height:1.16;}
h4{font-size:clamp(1.02rem,1.3vw,1.18rem);line-height:1.32;}

p{margin:0 0 1em;max-width:68ch;}

a{
  color:var(--c-cyan);
  text-decoration-color:rgba(53,240,208,.42);
  text-underline-offset:.22em;
}
a:hover{color:var(--c-cyan-soft);}

strong{font-weight:700;color:#F2FBFF;}

:where(a,button,summary,[tabindex]):focus-visible{
  outline:2px solid var(--c-cyan);
  outline-offset:3px;
  border-radius:6px;
}

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

/* ---------- 3. 通用工具 ---------- */
.visually-hidden{
  position:absolute!important;
  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;
}

.container{
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.container--wide{max-width:1440px;}

.section{
  position:relative;
  padding-block:clamp(48px,7vw,96px);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  font-family:var(--font-mono);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--c-cyan);
}
.eyebrow::before{
  content:"";
  width:22px;height:1px;
  background:currentColor;
  opacity:.72;
}

.serif-note{
  font-family:var(--font-serif);
  font-weight:600;
  color:var(--c-mist);
}

.num{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  font-weight:500;
  letter-spacing:-.01em;
}

.lede{
  max-width:62ch;
  font-size:clamp(1.02rem,1.4vw,1.2rem);
  line-height:1.8;
  color:#BBD0DF;
}

/* ---------- 4. 按钮与标签 ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:.72em 1.35em;
  border:1px solid transparent;
  border-radius:var(--r-pill);
  font-family:var(--font-body);
  font-size:.95rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(0);}

.btn--primary{
  background:linear-gradient(120deg,var(--c-orange),var(--c-orange-deep));
  color:#160A02;
  box-shadow:0 12px 28px -16px rgba(255,138,61,.95);
}
.btn--primary:hover{box-shadow:0 16px 32px -16px rgba(255,138,61,1);}

.btn--ghost{
  background:transparent;
  border-color:rgba(53,240,208,.45);
  color:var(--c-cyan-soft);
}
.btn--ghost:hover{background:rgba(53,240,208,.12);}

.btn--solid{
  background:var(--c-cyan);
  color:#04121E;
}
.btn--solid:hover{background:var(--c-cyan-soft);}

.btn--paper{
  background:var(--c-paper);
  color:#0F1D28;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:.26em .8em;
  border:1px solid rgba(53,240,208,.3);
  border-radius:var(--r-pill);
  background:rgba(53,240,208,.12);
  color:var(--c-cyan);
  font-family:var(--font-mono);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.1em;
  white-space:nowrap;
}
.pill--home{
  background:rgba(45,140,255,.16);
  border-color:rgba(45,140,255,.45);
  color:#9FD0FF;
}
.pill--away{
  background:rgba(255,92,53,.16);
  border-color:rgba(255,92,53,.45);
  color:#FFB49E;
}

.band{
  display:inline-block;
  flex:none;
  width:4px;
  align-self:stretch;
  min-height:1.2em;
  border-radius:2px;
  background:var(--c-band-1);
}
.band--2{background:var(--c-band-2);}
.band--3{background:var(--c-band-3);}
.band--4{background:var(--c-band-4);}

/* ---------- 5. 面包屑 ---------- */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  padding-block:16px 0;
  font-family:var(--font-mono);
  font-size:.74rem;
  letter-spacing:.08em;
  color:var(--c-mist);
}
.breadcrumbs ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  list-style:none;
  padding:0;
}
.breadcrumbs li{display:flex;align-items:center;gap:6px;}
.breadcrumbs li + li::before{
  content:"/";
  color:rgba(145,168,186,.5);
}
.breadcrumbs a{color:inherit;text-decoration:none;}
.breadcrumbs a:hover{color:var(--c-cyan);}
.breadcrumbs [aria-current="page"]{color:var(--c-cyan-soft);}

/* ---------- 6. 正文与面板 ---------- */
.prose{
  max-width:68ch;
  font-size:1rem;
  line-height:1.85;
}
.prose > * + *{margin-top:1.1em;}
.prose h2,.prose h3{margin-top:1.9em;}
.prose ul,.prose ol{padding-left:1.3em;}
.prose li + li{margin-top:.42em;}

.panel{
  position:relative;
  overflow:hidden;
  padding:clamp(20px,3vw,34px);
  border:1px solid rgba(53,240,208,.14);
  border-radius:var(--r-lg);
  background:var(--c-stand);
  background-image:linear-gradient(160deg,rgba(53,240,208,.06),transparent 55%);
}
.panel--paper{
  background:var(--c-paper);
  background-image:none;
  border-color:rgba(27,20,8,.12);
  color:#1B1408;
}
.panel--paper h2,
.panel--paper h3,
.panel--paper h4{color:#0F1D28;}
.panel--paper p{color:#2E2618;}
.panel--ink{
  background:var(--c-ink);
  border-color:rgba(53,240,208,.1);
}
.panel--accent{
  border-left:3px solid var(--c-cyan);
  border-radius:0 var(--r-lg) var(--r-lg) 0;
}

/* ---------- 7. 栅格 ---------- */
.grid{
  display:grid;
  gap:clamp(16px,2.4vw,28px);
}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(178px,1fr));}

/* ---------- 8. 图片容器基础规则 ---------- */
.img-frame{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border:1px solid rgba(53,240,208,.18);
  border-radius:var(--r-lg);
  background-color:var(--c-stand);
  background-image:
    linear-gradient(rgba(53,240,208,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(53,240,208,.12) 1px,transparent 1px),
    radial-gradient(120% 90% at 20% 0%,rgba(53,240,208,.18),transparent 62%),
    linear-gradient(160deg,#0D2A42,#061525 72%);
  background-size:32px 32px,32px 32px,auto,auto;
}
.img-frame > img,
.img-frame > picture,
.img-frame > picture > img,
.img-frame > video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.img-frame::after{
  content:"";
  position:absolute;
  right:12px;
  bottom:12px;
  width:26px;
  height:26px;
  border-right:2px solid rgba(53,240,208,.62);
  border-bottom:2px solid rgba(53,240,208,.62);
  border-radius:0 0 6px 0;
  pointer-events:none;
}
.img-frame--wide{aspect-ratio:21 / 9;}
.img-frame--square{aspect-ratio:1 / 1;}
.img-frame--portrait{aspect-ratio:4 / 5;}
.img-frame--field{border-radius:var(--r-md);}

/* ---------- 9. 跳转链接与阅读进度 ---------- */
.skip-link{
  position:fixed;
  top:10px;
  left:10px;
  z-index:999;
  padding:10px 20px;
  border-radius:var(--r-pill);
  background:var(--c-cyan);
  color:#04121E;
  font-weight:700;
  text-decoration:none;
  transform:translateY(calc(-100% - 18px));
  transition:transform .2s ease;
}
.skip-link:hover{color:#04121E;}
.skip-link:focus-visible{transform:translateY(0);}

.read-progress{
  position:fixed;
  top:0;left:0;right:0;
  z-index:200;
  height:3px;
  background:rgba(53,240,208,.1);
  pointer-events:none;
}
.read-progress-bar{
  display:block;
  width:100%;
  height:100%;
  transform:scaleX(0);
  transform-origin:0 50%;
  background:linear-gradient(90deg,var(--c-cyan),var(--c-orange));
  transition:transform .12s linear;
}

/* ---------- 10. 头部 ---------- */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:120;
  display:flex;
  align-items:center;
  gap:12px;
  height:64px;
  padding:0 14px;
  color:var(--c-cyan-soft);
  background:linear-gradient(90deg,#0A2338 0%,#061525 65%,#030B12 100%);
  border-bottom:1px solid rgba(53,240,208,.18);
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.brand-mark{
  position:relative;
  flex:none;
  width:30px;
  height:30px;
  border:2px solid var(--c-cyan);
  border-radius:10px;
  background:
    radial-gradient(circle at 72% 28%,rgba(53,240,208,.55),transparent 62%),
    #0A2338;
  box-shadow:0 0 0 4px rgba(53,240,208,.08),inset 0 0 12px rgba(53,240,208,.32);
}
.brand-mark::before{
  content:"";
  position:absolute;
  inset:5px;
  border:1px solid rgba(184,255,244,.5);
  border-right-color:transparent;
  border-bottom-color:transparent;
  border-radius:4px;
}
.brand-mark::after{
  content:"";
  position:absolute;
  right:6px;
  bottom:6px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--c-orange);
  box-shadow:0 0 9px rgba(255,138,61,.95);
}
.brand-text{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.brand-name{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.02em;
  color:#F4FCFF;
}
.brand-sub{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.16em;
  color:rgba(184,255,244,.62);
  white-space:nowrap;
}
.brand:hover .brand-name{color:var(--c-cyan);}

.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(53,240,208,.4);
  border-radius:14px;
  background:rgba(53,240,208,.1);
  color:var(--c-cyan-soft);
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.nav-toggle:hover{background:rgba(53,240,208,.2);}
.nav-toggle-box{
  position:relative;
  display:block;
  width:18px;
  height:14px;
  background:
    linear-gradient(currentColor,currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor,currentColor) 0 100% / 100% 2px no-repeat;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box{background:none;}
.nav-toggle[aria-expanded="true"] .nav-toggle-box::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after{
  content:"";
  position:absolute;
  left:0;
  top:calc(50% - 1px);
  width:100%;
  height:2px;
  border-radius:2px;
  background:currentColor;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box::before{transform:rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after{transform:rotate(-45deg);}

.site-nav{
  position:fixed;
  top:64px;
  right:0;
  bottom:0;
  z-index:130;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(84vw,320px);
  padding:22px 16px 30px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:linear-gradient(180deg,#0B2740 0%,#05101B 100%);
  border-left:1px solid rgba(53,240,208,.2);
  box-shadow:-24px 0 60px -30px #000;
  transform:translateX(102%);
  visibility:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1),visibility .3s;
}
.site-nav[data-open]{
  transform:translateX(0);
  visibility:visible;
}

.nav-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:0;
  list-style:none;
}
.nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:var(--r-sm);
  color:var(--c-mist);
  font-size:15px;
  font-weight:500;
  text-decoration:none;
  transition:background .18s ease,color .18s ease;
}
.nav-link::before{
  content:"";
  flex:none;
  width:12px;
  height:2px;
  background:currentColor;
  opacity:.5;
  transition:width .18s ease,opacity .18s ease;
}
.nav-link:hover,
.nav-link:focus-visible{
  color:var(--c-cyan-soft);
  background:rgba(53,240,208,.08);
}
.nav-link:hover::before{width:20px;opacity:1;}
.nav-link[aria-current="page"]{
  background:var(--c-cyan);
  color:#04121E;
  font-weight:700;
}
.nav-link[aria-current="page"]::before{
  width:20px;
  opacity:1;
  background:#04121E;
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:auto;
  padding:12px 18px;
  border-radius:var(--r-pill);
  background:linear-gradient(120deg,var(--c-orange),var(--c-orange-deep));
  color:#160A02;
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  text-decoration:none;
  box-shadow:0 12px 28px -16px rgba(255,138,61,.95),0 0 0 1px rgba(255,138,61,.32);
  transition:transform .18s ease,box-shadow .18s ease;
}
.nav-cta:hover{
  color:#160A02;
  transform:translateY(-1px);
  box-shadow:0 16px 32px -14px rgba(255,138,61,1);
}

.rail-scale{display:none;}

/* ---------- 11. 页脚 ---------- */
.site-footer{
  position:relative;
  padding-top:56px;
  background:var(--c-ink);
  border-top:1px solid rgba(53,240,208,.16);
  color:#C6D8E6;
}
.site-footer::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:14px;
  background:repeating-linear-gradient(90deg,rgba(53,240,208,.34) 0 1px,transparent 1px 16px);
  pointer-events:none;
}

.footer-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(26px,4vw,52px);
  max-width:1320px;
  margin-inline:auto;
  padding:clamp(22px,4vw,44px) var(--gutter) 38px;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.footer-logo{
  width:fit-content;
  font-family:var(--font-display);
  font-size:22px;
  font-weight:900;
  letter-spacing:.02em;
  color:#F4FCFF;
  text-decoration:none;
}
.footer-logo:hover{color:var(--c-cyan);}
.footer-tagline{
  margin:0;
  max-width:32ch;
  font-size:14px;
  line-height:1.72;
  color:var(--c-mist);
}
.footer-meta{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:12.5px;
  color:var(--c-mist);
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.footer-heading{
  margin:0 0 2px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--c-cyan);
  max-width:none;
}
.footer-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0;
  list-style:none;
}
.footer-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  font-size:14.5px;
  color:#C6D8E6;
  text-decoration:none;
  transition:color .18s ease,gap .18s ease;
}
.footer-link::before{
  content:"";
  width:6px;
  height:1px;
  background:currentColor;
  opacity:.5;
  transition:width .18s ease;
}
.footer-link:hover{color:var(--c-cyan);gap:10px;}
.footer-link:hover::before{width:12px;opacity:1;}

.footer-line{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:6px 10px;
  margin:0 0 8px;
  font-size:14px;
  line-height:1.62;
  color:#C6D8E6;
  max-width:none;
}
.footer-key{
  flex:none;
  align-self:center;
  padding:1px 9px;
  border:1px solid rgba(53,240,208,.28);
  border-radius:var(--r-pill);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  color:rgba(184,255,244,.88);
}
.footer-note{
  margin:10px 0 0;
  max-width:34ch;
  font-size:12.5px;
  line-height:1.7;
  color:rgba(145,168,186,.8);
}

.footer-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 24px;
  max-width:1320px;
  margin-inline:auto;
  padding:18px var(--gutter) 30px;
  border-top:1px solid rgba(53,240,208,.12);
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
  color:rgba(145,168,186,.82);
}
.footer-base p{margin:0;max-width:none;}
.footer-icp{
  padding:2px 12px;
  border:1px solid rgba(53,240,208,.24);
  border-radius:var(--r-pill);
  color:rgba(184,255,244,.88);
  font-variant-numeric:tabular-nums;
}

/* ---------- 12. 平板 ---------- */
@media (min-width:720px){
  .footer-inner{grid-template-columns:1fr 1fr;}
}

/* ---------- 13. 桌面：左侧坐标轨道 ---------- */
@media (min-width:1024px){
  body{
    padding-top:0;
    padding-left:var(--rail-w);
  }

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

  .site-header{
    top:0;
    left:0;
    right:auto;
    bottom:0;
    width:var(--rail-w);
    height:auto;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:26px 18px 24px;
    overflow-y:auto;
    overscroll-behavior:contain;
    border-right:1px solid rgba(53,240,208,.16);
    border-bottom:0;
    background:linear-gradient(180deg,#0B2740 0%,#061525 55%,#030B12 100%);
  }
  .site-header::after{
    content:"";
    position:absolute;
    top:0;right:0;bottom:0;
    width:6px;
    background:repeating-linear-gradient(180deg,rgba(53,240,208,.48) 0 1px,transparent 1px 14px);
    opacity:.5;
    pointer-events:none;
  }

  .brand{padding:2px 4px 0;}
  .brand-mark{width:34px;height:34px;border-radius:11px;}
  .brand-name{font-size:19px;}
  .brand-sub{font-size:10.5px;}

  .nav-toggle{display:none;}

  .site-nav{
    position:static;
    width:auto;
    flex:1 1 auto;
    margin-top:28px;
    padding:0;
    overflow:visible;
    background:none;
    border:0;
    box-shadow:none;
    transform:none;
    visibility:visible;
    transition:none;
  }
  .nav-link{padding:11px 14px;}
  .nav-cta{margin-top:18px;}

  .rail-scale{
    display:block;
    flex:none;
    height:16px;
    margin-top:auto;
    padding-top:0;
    border-radius:2px;
    background:repeating-linear-gradient(90deg,rgba(53,240,208,.45) 0 2px,transparent 2px 12px);
    opacity:.6;
  }
}

@media (min-width:1100px){
  .footer-inner{grid-template-columns:1.4fr .8fr .9fr 1.25fr;}
}

/* ---------- 14. 减少动效 ---------- */
@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;
  }
  .read-progress-bar{transition:none;}
}
