/* ==========================================================
   清源系列工具集 · 站点外壳（与主站一致）
   顶部导航 / 分析子导航 / 页脚
   只负责外壳，页面内容样式仍由各页自身 <style> 提供
   ========================================================== */
:root{
  --ink:#0b1c33;
  --ink-2:#42556f;
  --ink-3:#7688a1;
  --brand:#2563eb;
  --brand-d:#1a47bd;
  --brand-dk:#0d2a63;
  --brand-tint:#edf3ff;
  --brand-line:#d9e6fd;
  --bg:#f4f8ff;
  --bg-soft:#fbfdff;
  --line:#e0e8f6;
  --line-strong:#cfdcf0;
  --sh-1:0 1px 2px rgba(16,38,74,.05),0 2px 10px -4px rgba(16,38,74,.08);
  --sh-2:0 10px 28px -12px rgba(16,38,74,.22),0 2px 6px -2px rgba(16,38,74,.06);
  --serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --sans:-apple-system,"Segoe UI Variable Text","Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --radius:16px;
}
*,*::before,*::after{box-sizing:border-box;}

/* ---------- 顶部导航 ---------- */
.site-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
.site-header .container{width:100%;max-width:1120px;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;height:60px;gap:12px;}
.site-header .brand{display:flex;align-items:center;gap:9px;min-width:0;text-decoration:none;color:inherit;}
.site-header .brand-logo{height:30px;width:auto;flex:none;display:block;}
.site-header .brand-name{font-family:var(--serif);font-weight:900;font-size:18px;color:var(--brand-dk);white-space:nowrap;letter-spacing:.02em;}
.site-header .brand-sub{font-size:12px;color:var(--ink-3);white-space:nowrap;padding-left:10px;margin-left:2px;border-left:1px solid var(--line-strong);}
.site-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:none;border:1px solid var(--line);border-radius:10px;cursor:pointer;color:var(--ink);padding:0;}
.site-header .menu-toggle svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;}
.site-header .site-nav{display:none;}
.site-header .site-nav.open{display:flex;position:absolute;top:60px;left:0;right:0;flex-direction:column;gap:2px;background:#fff;padding:12px 18px 18px;border-bottom:1px solid var(--line);box-shadow:var(--sh-2);}
.site-header .site-nav a{padding:12px 10px;border-radius:9px;font-size:14.5px;color:var(--ink-2);font-weight:500;text-decoration:none;}
.site-header .site-nav a:hover{background:var(--brand-tint);color:var(--brand);}
.site-header .site-nav a[aria-current="page"]{color:var(--brand-d);background:var(--brand-tint);font-weight:700;}

/* ---------- 分析子导航 ---------- */
.subnav{background:#fff;border-bottom:1px solid var(--line);}
.subnav .container{width:100%;max-width:1120px;margin:0 auto;padding:8px 18px;display:flex;align-items:center;gap:4px;flex-wrap:wrap;}
.subnav a{font-size:13px;color:var(--ink-2);padding:7px 11px;border-radius:8px;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s;}
.subnav a:hover{background:var(--brand-tint);color:var(--brand-d);}
.subnav a[aria-current="page"]{color:var(--brand-d);background:var(--brand-tint);font-weight:600;}
.subnav a.subnav-home{margin-left:auto;border:1px solid var(--line-strong);color:var(--brand-d);font-weight:600;}

/* ---------- 页脚 ---------- */
.site-footer{background:linear-gradient(180deg,#0a1f3f 0%,#0d2a5c 100%);color:#a9bcda;padding:36px 0 26px;position:relative;}
.site-footer::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--brand),#5b8cff 55%,#8f7bec);}
.site-footer .container{width:100%;max-width:1120px;margin:0 auto;padding:0 18px;}
.site-footer .foot-grid{display:grid;grid-template-columns:1fr;gap:26px;}
.site-footer .foot-brandcol{min-width:0;}
.site-footer .foot-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.site-footer .foot-mark{width:26px;height:26px;border-radius:8px;background:rgba(90,140,255,.2);display:flex;align-items:center;justify-content:center;}
.site-footer .foot-mark svg{width:15px;height:15px;stroke:#bcd4ff;stroke-width:2;fill:none;}
.site-footer .foot-brand strong{font-family:var(--serif);font-size:16px;color:#e8f0ff;font-weight:700;}
.site-footer .foot-tagline{font-size:12.5px;color:#8ea6c9;margin:0 0 14px;line-height:1.75;max-width:22em;}
.site-footer .foot-contact{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#8ea6c9;line-height:1.65;}
.site-footer .foot-contact a{color:#bcd4ff;text-decoration:none;transition:color .2s;}
.site-footer .foot-contact a:hover{color:#e6f0ff;}
.site-footer .foot-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;align-content:start;}
.site-footer .foot-title{grid-column:1/-1;position:relative;padding-left:9px;font-size:12.5px;font-weight:700;color:#dbe8ff;margin:0 0 3px;letter-spacing:.04em;}
.site-footer .foot-title::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:12px;border-radius:2px;background:#5b8cff;}
.site-footer .foot-col a{font-size:12.5px;color:#a9bcda;transition:color .2s;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;}
.site-footer .foot-col a:hover{color:#e6f0ff;}
.site-footer .foot-meta{margin-top:26px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);font-size:12px;color:#8699ba;line-height:1.9;text-align:center;}
.site-footer .foot-meta a{color:#a9bcda;text-decoration:none;}
.site-footer .foot-meta a:hover{color:#e6f0ff;}
.site-footer .foot-note{margin:14px auto 0;max-width:760px;font-size:11.5px;line-height:1.8;color:#7f92b3;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:11px 14px;text-align:left;}

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .site-header .container{height:72px;}
  .site-header .brand-logo{height:34px;}
  .site-header .brand-name{font-size:21px;}
  .site-header .brand-sub{font-size:13px;}
  .site-header .menu-toggle{display:none;}
  .site-header .site-nav{display:flex;gap:2px;position:static;flex-direction:row;padding:0;border:none;box-shadow:none;background:none;}
  .site-header .site-nav a{padding:8px 12px;font-size:13.5px;}
  .site-footer{padding:48px 0 30px;}
  .site-footer .foot-grid{grid-template-columns:1.55fr .9fr 1.1fr .95fr;gap:34px;}
  .site-footer .foot-col{grid-template-columns:1fr;gap:8px;}
  .site-footer .foot-note{margin-top:20px;}
}
@media (max-width:599px){
  .subnav a{font-size:12.5px;padding:6px 9px;}
  .subnav a.subnav-home{margin-left:0;}
}
