/* =========================================================
   威廉希尔赛场 · 共享样式表  /assets/site.css
   01 变量  02 重置  03 排版  04 容器
   05 头部  06 页脚  07 组件  08 响应式  09 动效偏好
   ========================================================= */

/* ---------- 01 设计变量 ---------- */
:root{
  --night-900:#040B16;
  --night-800:#08152A;
  --night-700:#0E2240;
  --night-600:#143055;

  --glass:rgba(255,255,255,.055);
  --glass-2:rgba(255,255,255,.10);

  --line:rgba(147,178,220,.18);
  --line-strong:rgba(147,178,220,.36);

  --text:#E9EFF9;
  --text-dim:#A9BBD6;
  --text-mute:#7B8EAD;

  --gold:#F2C455;
  --gold-2:#FFE29A;
  --gold-deep:#C79722;

  --green:#12E5A0;
  --orange:#FF7A33;

  --font-display:"Archivo Black","Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;

  --radius:16px;
  --radius-sm:10px;
  --shell:1300px;
  --pad:clamp(16px,4vw,40px);
  --header-h:120px;
  --shadow:0 26px 64px -32px rgba(0,0,0,.88);
}

/* ---------- 02 重置 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
}
body{
  margin:0;
  min-height:100vh;
  padding-top:var(--header-h);
  background-color:var(--night-800);
  background-image:
    radial-gradient(58vw 42vw at 88% -6%, rgba(242,196,85,.10), transparent 62%),
    radial-gradient(48vw 34vw at 2% 3%, rgba(18,229,160,.075), transparent 60%),
    radial-gradient(80vw 52vw at 50% 104%, rgba(255,122,51,.06), transparent 66%);
  background-repeat:no-repeat;
  color:var(--text);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
main{display:block}
img,svg,video{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0}
ul,ol{margin:0;padding:0;list-style:none}
a{color:inherit}
:focus-visible{
  outline:2px solid var(--gold-2);
  outline-offset:3px;
  border-radius:4px;
}
:target{scroll-margin-top:calc(var(--header-h) + 20px)}

/* ---------- 03 排版 ---------- */
h1,h2,h3,h4{
  margin:0;
  font-family:var(--font-display);
  font-weight:900;
  line-height:1.14;
  letter-spacing:.005em;
  color:var(--text);
}
h1{font-size:clamp(30px,5.4vw,64px)}
h2{font-size:clamp(24px,3.6vw,42px)}
h3{font-size:clamp(19px,2.2vw,26px)}
p{margin:0 0 .9em}
p:last-child{margin-bottom:0}
strong{font-weight:700;color:var(--text)}
small{font-size:13px}
.num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* ---------- 04 容器 ---------- */
.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--pad);
}
.section{padding-block:clamp(40px,6vw,84px)}
.section--tight{padding-block:clamp(22px,3.6vw,48px)}
.rule{
  height:1px;border:0;margin:clamp(28px,5vw,58px) 0;
  background:linear-gradient(90deg,var(--line-strong),var(--line),transparent);
}
.grid{display:grid;gap:clamp(16px,2vw,26px)}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

/* ---------- 05 头部 ---------- */
.skip-link{
  position:fixed;
  left:14px;top:-90px;z-index:300;
  padding:10px 20px;
  background:var(--gold);
  color:#08152A;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  border-radius:0 0 12px 12px;
  transition:top .2s ease;
}
.skip-link:focus{top:0}

.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:80;
  color:var(--text);
  background:linear-gradient(180deg,rgba(8,21,42,.97),rgba(8,21,42,.86));
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.site-header::after{
  content:"";
  position:absolute;
  left:0;bottom:-1px;
  width:clamp(96px,17vw,200px);
  height:2px;
  background:linear-gradient(90deg,var(--gold),rgba(242,196,85,0));
}
.header-inner{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--pad);
}
.header-bar{
  display:flex;
  align-items:center;
  gap:clamp(10px,2vw,28px);
  min-height:64px;
  padding-block:14px;
  transition:padding-block .22s ease;
}
.site-header.is-shrunk .header-bar{padding-block:7px}

/* 品牌字标 */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  text-decoration:none;
  color:inherit;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  flex:0 0 auto;
  border-radius:11px;
  font-family:var(--font-display);
  font-size:16px;
  letter-spacing:.02em;
  color:#0A1526;
  background:linear-gradient(145deg,var(--gold-2),var(--gold) 48%,var(--gold-deep));
  box-shadow:0 0 0 1px rgba(242,196,85,.4),0 12px 26px -14px rgba(242,196,85,.75);
}
.brand-text{display:flex;flex-direction:column;line-height:1.18;min-width:0}
.brand-name{
  font-family:var(--font-display);
  font-size:clamp(17px,1.7vw,20px);
  letter-spacing:.03em;
  color:var(--text);
}
.brand-domain{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.05em;
  color:var(--text-mute);
  white-space:nowrap;
}

/* 联赛切换 */
.league-nav{flex:1 1 auto;min-width:0}
.league-list{
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
}
.league-list::-webkit-scrollbar{display:none}
.league-btn{
  flex:0 0 auto;
  padding:7px 13px;
  border:1px solid transparent;
  border-radius:999px;
  font-family:var(--font-body);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--text-dim);
  cursor:pointer;
  white-space:nowrap;
  transition:color .18s ease,background .18s ease,border-color .18s ease;
}
.league-btn:hover{color:var(--text);background:var(--glass)}
.league-btn[aria-pressed="true"]{
  color:#08152A;
  border-color:rgba(242,196,85,.6);
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  box-shadow:0 10px 22px -14px rgba(242,196,85,.9);
}

/* 头部工具区 */
.header-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.tool-link{
  display:inline-flex;
  align-items:center;
  padding:8px 15px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--text-dim);
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.tool-link:hover{color:var(--gold-2);border-color:rgba(242,196,85,.55);background:rgba(242,196,85,.08)}
.tool-link--gold{
  color:var(--gold-2);
  border-color:rgba(242,196,85,.45);
  background:rgba(242,196,85,.08);
}
.tool-link--gold:hover{background:rgba(242,196,85,.18)}

.nav-toggle{
  display:none;
  align-items:center;
  gap:9px;
  padding:9px 15px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--glass);
  color:var(--text);
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.08em;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.nav-toggle::before{
  content:"";
  width:14px;height:2px;
  border-radius:2px;
  background:currentColor;
  box-shadow:0 -5px 0 currentColor,0 5px 0 currentColor;
}
.nav-toggle[aria-expanded="true"]{
  color:var(--gold-2);
  border-color:rgba(242,196,85,.55);
  background:rgba(242,196,85,.15);
}

/* 主导航 */
.site-nav{border-top:1px solid var(--line)}
.site-nav-list{display:flex;flex-wrap:wrap;gap:2px}
.nav-link{
  display:inline-block;
  padding:11px 17px;
  border-bottom:2px solid transparent;
  font-size:14.5px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--text-dim);
  text-decoration:none;
  transition:color .18s ease,background .18s ease,border-color .18s ease;
}
.nav-link:hover{color:var(--text);background:var(--glass)}
.nav-link[aria-current="page"]{
  color:var(--gold-2);
  border-bottom-color:var(--gold);
  background:linear-gradient(180deg,rgba(242,196,85,.12),rgba(242,196,85,0));
}

/* ---------- 06 页脚 ---------- */
.site-footer{
  position:relative;
  margin-top:clamp(56px,8vw,112px);
  overflow:hidden;
  border-top:1px solid var(--line);
  background:
    linear-gradient(180deg,rgba(4,11,22,.35),rgba(4,11,22,.97) 46%),
    var(--night-900);
  color:var(--text-dim);
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(242,196,85,.75),rgba(18,229,160,.5),transparent);
}
.footer-inner{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,2.35fr);
  align-items:start;
  gap:clamp(28px,4vw,56px);
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding:clamp(38px,5vw,66px) var(--pad) clamp(24px,3vw,38px);
}
.footer-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
}
.footer-brand .brand-mark{width:44px;height:44px;font-size:17px}
.footer-tagline{
  max-width:32ch;
  margin:0;
  font-size:15px;
  line-height:1.7;
  color:var(--text-dim);
}
.footer-chips{display:flex;flex-wrap:wrap;gap:7px}
.footer-chip{
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  color:var(--text-mute);
}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:clamp(22px,3vw,40px);
}
.footer-col-title{
  margin:0 0 14px;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold);
}
.footer-list{display:flex;flex-direction:column;gap:9px}
.footer-list a{
  display:inline-block;
  font-size:14.5px;
  color:var(--text-dim);
  text-decoration:none;
  transition:color .16s ease,transform .16s ease;
}
.footer-list a::before{
  content:"›";
  margin-right:8px;
  color:rgba(242,196,85,.55);
}
.footer-list a:hover{color:var(--gold-2);transform:translateX(2px)}
.footer-contact{display:flex;flex-direction:column;gap:10px;font-size:14.5px}
.footer-contact-row{display:block;line-height:1.65;word-break:break-word}
.footer-contact-row strong{
  display:block;
  margin-bottom:2px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-mute);
}
.footer-note{
  margin:14px 0 0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--text-mute);
}
.footer-legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 24px;
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding:18px var(--pad) clamp(22px,3vw,34px);
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--text-mute);
}
.footer-legal-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.footer-legal-links a{color:var(--text-dim);text-decoration:none}
.footer-legal-links a:hover{color:var(--gold-2)}
.footer-legal-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.footer-icp{font-family:var(--font-mono);letter-spacing:.04em}
.footer-copy{letter-spacing:.02em}

/* ---------- 07 通用组件 ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
}
.eyebrow::before{
  content:"";
  width:24px;height:2px;
  background:var(--gold);
  flex:0 0 auto;
}
.section-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px 32px;
  margin-bottom:clamp(20px,3vw,34px);
}
.section-title{font-size:clamp(23px,3.4vw,40px)}
.section-desc{
  max-width:54ch;
  margin:0;
  font-size:15.5px;
  line-height:1.75;
  color:var(--text-dim);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 24px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--glass);
  color:var(--text);
  font-size:15px;
  font-weight:700;
  letter-spacing:.05em;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.btn:hover{transform:translateY(-1px);background:var(--glass-2)}
.btn--gold{
  border-color:transparent;
  color:#08152A;
  background:linear-gradient(135deg,var(--gold-2),var(--gold) 58%,var(--gold-deep));
}
.btn--gold:hover{color:#08152A;filter:brightness(1.05)}
.btn--ghost{background:transparent}

.card{
  position:relative;
  padding:clamp(18px,2.4vw,28px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--glass);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.card--solid{
  background:var(--night-700);
  border-color:rgba(20,48,85,.95);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.card--gold-edge{border-color:rgba(242,196,85,.42)}

.stat{display:flex;flex-direction:column;gap:6px}
.stat-num{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-weight:700;
  font-size:clamp(30px,5vw,52px);
  line-height:1;
  letter-spacing:-.02em;
  color:#fff;
}
.stat-num--gold{color:var(--gold-2)}
.stat-num--green{color:var(--green)}
.stat-num--orange{color:var(--orange)}
.stat-label{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-mute);
}

.data-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:rgba(255,255,255,.07);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.07em;
  color:var(--text-dim);
  white-space:nowrap;
}
.data-tag--gold{color:var(--gold-2);border-color:rgba(242,196,85,.38);background:rgba(242,196,85,.09)}
.data-tag--green{color:var(--green);border-color:rgba(18,229,160,.36);background:rgba(18,229,160,.09)}
.data-tag--orange{color:var(--orange);border-color:rgba(255,122,51,.38);background:rgba(255,122,51,.09)}

/* 图片容器：页面阶段放入 <img> 即可 */
.media-frame{
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(150deg,var(--night-700),var(--night-900));
}
.media-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.media-frame::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(8,21,42,0) 36%,rgba(8,21,42,.88) 100%);
}
.media-frame--wide{aspect-ratio:16/9}
.media-frame--square{aspect-ratio:1/1}
.media-frame--tall{aspect-ratio:3/4}
.media-frame__caption{
  position:absolute;
  right:14px;bottom:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 11px;
  border:1px solid rgba(242,196,85,.34);
  border-radius:7px;
  background:rgba(4,11,22,.62);
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  color:var(--gold-2);
}
.media-frame__caption::before{
  content:"";
  width:7px;height:7px;
  border-radius:2px;
  background:var(--gold);
  flex:0 0 auto;
}

.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 22px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.1em;
  color:var(--text-mute);
}
.breadcrumb a{color:var(--text-dim);text-decoration:none}
.breadcrumb a:hover{color:var(--gold-2)}
.breadcrumb li:not(:last-child)::after{
  content:"/";
  margin-left:8px;
  color:var(--line-strong);
}

.prose{
  max-width:72ch;
  font-size:17px;
  line-height:1.8;
  color:var(--text-dim);
}
.prose h2{font-size:clamp(21px,2.7vw,29px);margin:1.9em 0 .6em;color:var(--text)}
.prose h3{font-size:19px;margin:1.6em 0 .5em;color:var(--text)}
.prose a{
  color:var(--gold-2);
  text-decoration:underline;
  text-underline-offset:3px;
}
.prose-lead{
  font-size:clamp(18px,1.6vw,21px);
  line-height:1.72;
  color:var(--text);
}

.toc{position:relative}
.toc-list{display:flex;flex-direction:column;gap:2px}
.toc-link{
  display:block;
  padding:8px 12px;
  border-left:2px solid var(--line);
  font-size:14px;
  color:var(--text-mute);
  text-decoration:none;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.toc-link:hover{color:var(--text);border-left-color:var(--line-strong)}
.toc-link[aria-current="location"]{
  color:var(--gold-2);
  border-left-color:var(--gold);
  background:rgba(242,196,85,.08);
}

.reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .38s ease,transform .38s ease;
}
.reveal.is-visible{opacity:1;transform:none}

.scroll-progress{
  position:fixed;
  top:0;left:0;
  z-index:120;
  width:0;
  height:2px;
  background:linear-gradient(90deg,var(--green),var(--gold),var(--orange));
}
.to-top{
  position:fixed;
  right:clamp(14px,3vw,30px);
  bottom:clamp(14px,3vw,30px);
  z-index:90;
  display:grid;
  place-items:center;
  width:46px;height:46px;
  border:1px solid rgba(242,196,85,.45);
  border-radius:14px;
  background:rgba(8,21,42,.84);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:var(--gold-2);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  opacity:0;
  transform:translateY(14px);
  pointer-events:none;
  transition:opacity .24s ease,transform .24s ease,background .2s ease;
}
.to-top.is-visible{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:rgba(242,196,85,.18)}

/* ---------- 08 响应式 ---------- */
@media (max-width:1024px){
  .tool-link--gold{display:none}
}
@media (max-width:960px){
  :root{--header-h:108px;--shell:100%}

  .header-bar{
    flex-wrap:wrap;
    align-items:center;
    gap:8px 10px;
    padding-block:10px 8px;
  }
  .brand{flex:1 1 auto;min-width:0;order:1}
  .header-tools{order:2}
  .brand-domain{font-size:10px}

  .league-nav{
    order:3;
    flex:1 1 100%;
    margin-inline:calc(var(--pad) * -1);
    padding:6px var(--pad);
    border-top:1px solid var(--line);
  }
  .league-list{gap:2px}
  .league-btn{padding:6px 11px;font-size:12.5px}

  .tool-link{display:none}
  .nav-toggle{display:inline-flex}

  .site-nav{
    display:grid;
    grid-template-rows:0fr;
    border-top:0;
    transition:grid-template-rows .3s ease;
  }
  .site-nav[data-open]{
    grid-template-rows:1fr;
    border-top:1px solid var(--line);
  }
  .site-nav-list{
    display:block;
    overflow:hidden;
    min-height:0;
  }
  .nav-link{
    display:block;
    padding:13px 4px;
    border-bottom:1px solid var(--line);
  }
  .nav-link[aria-current="page"]{
    border-bottom-color:var(--gold);
    background:linear-gradient(90deg,rgba(242,196,85,.12),transparent);
  }

  .site-footer{margin-top:clamp(40px,10vw,72px)}
  .footer-inner{grid-template-columns:1fr;gap:30px}
  .footer-cols{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .footer-legal{flex-direction:column;align-items:flex-start}
}
@media (max-width:600px){
  body{font-size:16px}
  .brand-mark{width:36px;height:36px;font-size:14px;border-radius:10px}
  .footer-inner{padding-top:32px}
  .footer-cols{grid-template-columns:1fr}
  .btn{width:100%}
}

/* ---------- 09 动效偏好 ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .reveal{opacity:1;transform:none}
  .to-top{transition:none}
}
