/* ==========================================================================
   乐竞体育主站 · 共享样式 /assets/site.css
   深海蓝底 + 活力橙行动信号 + 电光青数据脉冲
   ========================================================================== */

:root{
  --deep:#0A1F3C;
  --deep-2:#081729;
  --tactic:#123A6B;
  --signal:#1B6FCB;
  --orange:#FF6B1A;
  --orange-soft:#FF9A4D;
  --cyan:#00E0C6;
  --cyan-data:#16A8C7;
  --scale:#8A97A8;
  --ice:#F4F7FB;
  --amber:#FFC24B;
  --ink:#0B1118;

  --line:rgba(138,151,168,.22);
  --line-soft:rgba(138,151,168,.14);
  --line-strong:rgba(138,151,168,.44);

  --shell:1200px;
  --gutter:24px;

  --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","JetBrains Mono",Menlo,Consolas,"Courier New",monospace;

  --r-lg:22px;
  --r-md:14px;
  --r-sm:8px;

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

/* ---------------------------------------------------------------- reset -- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:130px}
body,h1,h2,h3,h4,h5,p,ul,ol,figure,blockquote,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
img,svg,video{display:block;max-width:100%;height:auto}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
table{border-collapse:collapse;width:100%}

body{
  background:var(--deep);
  color:var(--ice);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.8;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

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

#main-content{display:block;scroll-margin-top:130px}

/* -------------------------------------------------------------- helpers -- */
.shell{
  width:min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline:auto;
}

.visually-hidden{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}

.index{
  font-family:var(--font-mono);
  font-size:12px;
  line-height:1.6;
  letter-spacing:.2em;
  color:var(--scale);
  text-transform:uppercase;
}

.data{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 11px;
  border-radius:999px;
  border:1px solid rgba(0,224,198,.28);
  background:rgba(0,224,198,.12);
  color:var(--cyan);
  font-size:12px;
  letter-spacing:.1em;
  line-height:1.6;
}
.tag--amber{
  border-color:rgba(255,194,75,.32);
  background:rgba(255,194,75,.14);
  color:var(--amber);
}

/* -------------------------------------------------------------- skip link */
.skip-link{
  position:fixed;
  top:0;left:50%;
  z-index:200;
  transform:translate(-50%,-130%);
  padding:12px 24px;
  border-radius:0 0 12px 12px;
  background:var(--orange);
  color:#08131F;
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
  transition:transform .22s var(--ease);
}
.skip-link:focus{transform:translate(-50%,0)}

/* ================================================================ header */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  color:var(--ice);
  background:linear-gradient(180deg,rgba(10,31,60,.975) 0%,rgba(10,31,60,.92) 100%);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s var(--ease);
}
.site-header.is-compact{
  box-shadow:0 16px 34px -28px rgba(0,0,0,.95);
}

/* 顶部实时刻度条 */
.header-ticker{
  height:36px;
  overflow:hidden;
  border-bottom:1px solid var(--line-soft);
  transition:height .3s var(--ease),opacity .3s var(--ease),border-color .3s var(--ease);
}
.ticker-row{
  display:flex;
  align-items:center;
  gap:28px;
  height:36px;
}
.ticker-item{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  letter-spacing:.16em;
  color:var(--scale);
  white-space:nowrap;
}
.ticker-item--data{
  font-family:var(--font-mono);
  letter-spacing:.08em;
  color:var(--cyan);
}
.ticker-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--cyan);
  animation:pulse 2s var(--ease) infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(0,224,198,.55)}
  70%{box-shadow:0 0 0 9px rgba(0,224,198,0)}
  100%{box-shadow:0 0 0 0 rgba(0,224,198,0)}
}
.site-header.is-compact .header-ticker{
  height:0;
  opacity:0;
  border-color:transparent;
}

/* 刊头 */
.masthead-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
  padding:16px 0 12px;
  transition:padding .3s var(--ease);
}
.masthead-meta{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.16em;
  color:var(--scale);
}
.masthead-meta::before{
  content:"";
  width:22px;height:1px;
  background:var(--orange);
  flex:0 0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  justify-self:center;
  color:var(--ice);
}
.brand-mark{
  display:grid;
  place-items:center;
  width:42px;height:42px;
  border-radius:13px;
  background:linear-gradient(140deg,var(--orange) 0%,var(--orange-soft) 100%);
  color:#061527;
  font-size:16px;
  font-weight:800;
  letter-spacing:.04em;
  box-shadow:0 8px 20px -12px rgba(255,107,26,.95);
  transition:width .3s var(--ease),height .3s var(--ease),font-size .3s var(--ease);
}
.brand-text{display:flex;flex-direction:column;line-height:1.14}
.brand-name{
  font-size:23px;
  font-weight:800;
  letter-spacing:.12em;
  transition:font-size .3s var(--ease);
}
.brand-tag{
  font-size:11px;
  letter-spacing:.24em;
  color:var(--scale);
}
.site-header.is-compact .masthead-grid{padding:9px 0 7px}
.site-header.is-compact .brand-mark{width:34px;height:34px;font-size:14px;border-radius:10px}
.site-header.is-compact .brand-name{font-size:19px}
.site-header.is-compact .brand-tag{display:none}

.masthead-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.action-switch{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  background:rgba(18,58,107,.45);
  color:rgba(244,247,251,.86);
  font-size:13px;
  letter-spacing:.1em;
  cursor:pointer;
  transition:border-color .2s var(--ease),background-color .2s var(--ease),color .2s var(--ease);
}
.action-switch:hover{
  border-color:var(--cyan);
  color:var(--ice);
  background:rgba(18,58,107,.7);
}
.action-switch-dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--amber);
  flex:0 0 auto;
  transition:background-color .2s var(--ease),box-shadow .2s var(--ease);
}
.action-switch[aria-pressed="true"] .action-switch-dot{
  background:var(--cyan);
  box-shadow:0 0 9px rgba(0,224,198,.9);
}

.nav-toggle{
  display:none;
  width:44px;height:44px;
  padding:0;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:rgba(18,58,107,.55);
  color:var(--ice);
  cursor:pointer;
  place-items:center;
}
.nav-toggle span{
  display:block;
  width:18px;height:2px;
  margin:3px auto;
  background:currentColor;
  transition:transform .22s var(--ease),opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* 导航 */
.site-nav{
  border-top:1px solid var(--line-soft);
}
.nav-list{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}
.nav-list > li > a{
  position:relative;
  display:block;
  padding:14px 18px 16px;
  font-size:15px;
  letter-spacing:.1em;
  color:rgba(244,247,251,.8);
  transition:color .2s var(--ease);
}
.nav-list > li > a::after{
  content:"";
  position:absolute;
  left:18px;right:18px;bottom:8px;
  height:2px;
  background:var(--orange);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .24s var(--ease),background-color .24s var(--ease);
}
.nav-list > li > a:hover{color:#fff}
.nav-list > li > a:hover::after{transform:scaleX(1)}
.nav-list > li > a[aria-current="page"]{color:#fff;font-weight:600}
.nav-list > li > a[aria-current="page"]::after{
  transform:scaleX(1);
  background:var(--cyan);
}
.nav-cta{display:none}

/* 阅读进度 */
.read-progress{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:rgba(255,107,26,.1);
  pointer-events:none;
}
.read-progress-bar{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--orange) 0%,var(--amber) 100%);
  transition:width .12s linear;
}

/* ================================================================ footer */
.site-footer{
  position:relative;
  margin-top:96px;
  background:linear-gradient(180deg,var(--deep) 0%,var(--deep-2) 100%);
  border-top:1px solid var(--line);
  color:var(--ice);
}
.footer-ruler{
  height:12px;
  border-bottom:1px solid var(--line-soft);
  background-image:repeating-linear-gradient(90deg,rgba(138,151,168,.55) 0 1px,transparent 1px 48px);
}
.footer-main{padding:64px 0 48px}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(230px,1fr) minmax(0,2.2fr);
  gap:56px;
  align-items:start;
}
.footer-identity{display:flex;flex-direction:column;gap:20px}
.brand--footer{justify-self:start}
.footer-closing{
  font-size:15px;
  letter-spacing:.14em;
  color:var(--cyan);
}
.footer-facts{
  display:grid;
  grid-template-columns:auto;
  gap:2px;
  font-size:13px;
  line-height:1.7;
}
.footer-facts dt{
  font-size:11px;
  letter-spacing:.18em;
  color:var(--scale);
  margin-top:10px;
}
.footer-facts dd{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  color:rgba(244,247,251,.82);
  word-break:break-word;
}

.footer-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
}
.footer-col-title{
  margin-bottom:16px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.2em;
  color:var(--scale);
}
.footer-col-title::before{
  content:"";
  display:block;
  width:20px;height:2px;
  margin-bottom:10px;
  background:var(--orange);
}
.footer-col li + li{margin-top:2px}
.footer-col a{
  display:inline-block;
  padding:5px 0;
  font-size:15px;
  color:rgba(244,247,251,.78);
  transition:color .2s var(--ease),transform .2s var(--ease);
}
.footer-col a:hover{color:var(--cyan);transform:translateX(3px)}

.footer-legal{
  padding:26px 0 44px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.legal-line{
  font-size:13px;
  letter-spacing:.04em;
  color:var(--scale);
  line-height:1.9;
}
.legal-note{
  font-size:13px;
  color:rgba(244,247,251,.6);
}
.legal-copy{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.1em;
  color:var(--scale);
}

@media (min-width:901px){
  .footer-cols .footer-col:nth-child(1){transform:translateY(0)}
  .footer-cols .footer-col:nth-child(2){transform:translateY(14px)}
  .footer-cols .footer-col:nth-child(3){transform:translateY(28px)}
  .footer-cols .footer-col:nth-child(4){transform:translateY(42px)}
  .footer-main{padding-bottom:78px}
}

/* ============================================================ components */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  font-size:15px;
  font-weight:600;
  letter-spacing:.08em;
  line-height:1.2;
  cursor:pointer;
  transition:transform .2s var(--ease),background-color .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease);
}
.btn--primary{background:var(--orange);color:#08131F}
.btn--primary:hover{background:var(--orange-soft);transform:translateY(-2px)}
.btn--ghost{
  background:rgba(0,224,198,.08);
  border-color:rgba(0,224,198,.42);
  color:var(--cyan);
}
.btn--ghost:hover{background:rgba(0,224,198,.18)}
.btn--outline{
  border-color:var(--line-strong);
  color:var(--ice);
}
.btn--outline:hover{border-color:var(--cyan);color:var(--cyan)}
.btn--sm{min-height:38px;padding:0 16px;font-size:14px}
.btn--block{width:100%}

.breadcrumb{padding:26px 0 0}
.breadcrumb ol{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.12em;
  color:var(--scale);
}
.breadcrumb li{display:inline-flex;align-items:center;gap:8px}
.breadcrumb li + li::before{
  content:"/";
  color:rgba(138,151,168,.6);
}
.breadcrumb a{color:var(--scale);transition:color .2s var(--ease)}
.breadcrumb a:hover{color:var(--cyan)}
.breadcrumb [aria-current="page"]{color:var(--ice)}

.prose{
  max-width:68ch;
  font-size:17px;
  line-height:1.85;
  color:rgba(244,247,251,.82);
}
.prose > * + *{margin-top:1.1em}
.prose h2{
  font-size:clamp(24px,3vw,32px);
  font-weight:600;
  line-height:1.36;
  color:var(--ice);
}
.prose h3{
  font-size:20px;
  font-weight:600;
  color:var(--ice);
}
.prose strong{color:var(--ice);font-weight:600}
.prose a{
  color:var(--cyan);
  text-decoration:underline;
  text-underline-offset:4px;
}
.prose ul > li{
  position:relative;
  padding-left:22px;
}
.prose ul > li + li{margin-top:.55em}
.prose ul > li::before{
  content:"";
  position:absolute;
  left:0;top:.82em;
  width:9px;height:2px;
  background:var(--orange);
}
.prose ol{
  list-style:none;
  counter-reset:step;
}
.prose ol > li{
  position:relative;
  padding-left:34px;
  counter-increment:step;
}
.prose ol > li + li{margin-top:.6em}
.prose ol > li::before{
  content:counter(step,decimal-leading-zero);
  position:absolute;
  left:0;top:.1em;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.08em;
  color:var(--cyan);
}
.prose blockquote{
  padding:6px 0 6px 20px;
  border-left:2px solid var(--orange);
  color:rgba(244,247,251,.9);
}

.grid{display:grid;gap:24px}
.grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid--sidebar{grid-template-columns:minmax(0,2fr) minmax(240px,1fr)}

.card{
  position:relative;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:linear-gradient(165deg,rgba(18,58,107,.88) 0%,rgba(10,31,60,.94) 100%);
}
.card--soft{background:rgba(244,247,251,.045)}
.card--accent{
  border-color:rgba(0,224,198,.34);
  background:linear-gradient(165deg,rgba(0,224,198,.1) 0%,rgba(10,31,60,.92) 100%);
}

.media-frame{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  aspect-ratio:16 / 9;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:linear-gradient(150deg,var(--tactic) 0%,var(--deep) 100%);
}
.media-frame > img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-frame::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.55;
  background-image:
    repeating-linear-gradient(90deg,rgba(138,151,168,.16) 0 1px,transparent 1px 56px),
    repeating-linear-gradient(0deg,rgba(138,151,168,.16) 0 1px,transparent 1px 56px);
}
.media-frame--wide{aspect-ratio:21 / 9}
.media-frame--tall{aspect-ratio:3 / 4}
.media-frame--square{aspect-ratio:1 / 1}
.media-frame-cap{
  margin-top:12px;
  font-size:12px;
  letter-spacing:.1em;
  color:var(--scale);
}

.section{padding:72px 0}
.section--tactic{background:var(--tactic)}
.section--ice{background:var(--ice);color:var(--ink)}
.section-head{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:40px;
}
.section-index{color:var(--scale)}
.section-title{
  font-size:clamp(28px,4vw,46px);
  font-weight:300;
  line-height:1.24;
  letter-spacing:-.01em;
  color:var(--ice);
}
.section--ice .section-title{color:var(--ink)}
.section--ice .prose{color:#20304a}
.section--ice .index,
.section--ice .media-frame-cap{color:#5A6B80}

/* =============================================================== mobile */
@media (max-width:900px){
  :root{--gutter:20px}
  .masthead-grid{
    grid-template-columns:1fr auto;
    gap:12px;
    padding:12px 0 10px;
  }
  .masthead-meta{display:none}
  .brand{justify-self:start}
  .nav-toggle{display:grid}
  .masthead-actions .btn--primary{display:none}

  .site-nav{
    position:absolute;
    left:0;right:0;top:100%;
    border-top:1px solid var(--line);
    background:linear-gradient(180deg,rgba(8,23,41,.99) 0%,rgba(10,31,60,.99) 100%);
    max-height:0;
    overflow:hidden;
    transition:max-height .32s var(--ease);
  }
  .site-nav[data-open="true"]{
    max-height:min(72vh,560px);
    overflow-y:auto;
    box-shadow:0 26px 40px -30px rgba(0,0,0,.95);
  }
  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:10px 0 18px;
  }
  .nav-list > li > a{
    padding:16px 4px;
    font-size:16px;
    border-bottom:1px solid var(--line-soft);
  }
  .nav-list > li > a::after{display:none}
  .nav-list > li > a[aria-current="page"]{
    background:rgba(0,224,198,.09);
    box-shadow:inset 3px 0 0 var(--cyan);
    padding-left:14px;
  }
  .nav-cta{display:block;margin-top:18px}
  .nav-cta .btn{border-radius:999px}

  .footer-grid{grid-template-columns:1fr;gap:44px}
  .footer-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px}
  .footer-main{padding:48px 0 36px}
  .site-footer{margin-top:64px}
  .section{padding:56px 0}
}

@media (max-width:620px){
  body{font-size:16px}
  .header-ticker .ticker-item:nth-child(n+3){display:none}
  .action-switch{padding:0 12px;font-size:12px}
  .grid--2,.grid--3,.grid--sidebar{grid-template-columns:1fr}
  .section-title{font-size:clamp(26px,8vw,34px)}
  .card{padding:20px}
}

@media (max-width:460px){
  .header-ticker .ticker-item:nth-child(n+2){display:none}
  .brand-mark{width:36px;height:36px;font-size:14px;border-radius:11px}
  .brand-name{font-size:19px}
  .action-switch-label{display:none}
  .action-switch{padding:0 11px}
}

/* ========================================================== preferences */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .ticker-dot{animation:none}
  .btn:hover{transform:none}
}
