/* 极光粒子流 · Canvas 2D 流场 */

:root{
  --bg:#07080c; --bg2:#0b0d14; --surface:#12141d; --fg:#f4f7fb; --muted:#98a2b6;
  --line:rgba(255 255 255,0.10); --line-2:rgba(255 255 255,0.24); --accent:hsl(188 92% 60%); --accent2:hsl(262 88% 70%);
  --accent-soft:hsl(188 92% 60% / .14); --accent2-soft:hsl(262 88% 70% / .14); --glow:hsl(188 92% 60% / .30);
  --veil:rgba(0,0,0,0.55); --radius:12px; --display:var(--title);
  --display-weight:700; --display-track:-.01em;
}
.h-stage .hero-media{background:radial-gradient(70% 90% at 68% 12%,var(--accent-soft),transparent 62%),
  radial-gradient(60% 80% at 12% 78%,var(--accent2-soft),transparent 60%),
  linear-gradient(170deg,#05060a 0%,var(--bg) 70%)}
.h-stage .display{text-shadow:0 30px 80px rgba(0,0,0,.55)}
.fx-mount{opacity:.95}

/* ===== 字体与排版：全部本地化（不引 CDN、不外链字体）=====
   汉字与西文数字都走自托管黑体 QK Sans SC（assets/fonts/ 下的 woff2 子集，@font-face 由程序在 <head> 内联输出
   并带 ?v= 版本号 + preload）；字体文件缺失时自动回落到下面的系统黑体栈，页面照常显示、不会空白。
   中文衬线 QK Serif SC 默认不启用（需自行放入 assets/fonts/qk-serif-sc.woff2）。 */
@font-face{font-family:"QK Serif SC";font-style:normal;font-weight:400 700;font-display:swap;
  src:local("Noto Serif SC"),local("Source Han Serif SC"),local("Songti SC"),url("../fonts/qk-serif-sc.woff2") format("woff2")}

:root{
  --fs-title:clamp(34px,3vw,40px); --fs-h2:clamp(24px,2.4vw,30px); --fs-h3:18px;
  --fs-sub:14px; --fs-tag:12.5px; --fs-foot:13.5px;
  --title:"QK Sans SC","PingFang SC","HarmonyOS Sans SC","HarmonyOS Sans","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:var(--title);
  --sans:"QK Sans SC","PingFang SC","HarmonyOS Sans SC","HarmonyOS Sans","Microsoft YaHei","Noto Sans SC",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --mono:"QK Sans SC",ui-monospace,"Cascadia Mono","SFMono-Regular",Consolas,"QK Sans SC",monospace;
  --display:var(--title);
  --display-weight:700;--display-track:-.01em;
  --fs-body:16px;--lh-body:1.7;--lh-title:1.2;
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;text-rendering:optimizeLegibility}
body{font-family:var(--sans);font-size:var(--fs-body);line-height:var(--lh-body);font-kerning:normal}
/* 中文一律不斜体、不做伪斜体；标题层级靠字重与字号拉开 */
em,i,cite,.display em,.h2 em,.sec-h em,.wordmark em{font-style:normal}
h1,h2,h3,h4,h5,h6,.display,.h2,.sec-h,.wordmark{font-family:var(--display);font-style:normal;transform:none;font-synthesis:none;font-weight:var(--fw-title)}
.h2,.sec-h{font-weight:var(--fw-title)}
.display{line-height:var(--lh-title);letter-spacing:var(--display-track)}
.h2,.sec-h,.wordmark{line-height:var(--lh-title);letter-spacing:var(--display-track)}
/* 正文：不小于 16px、行高 1.8（标签类小字与页脚署名除外） */
p:not(.legal):not(.mono):not(.stage-tag):not(.lede),li:not(.mono),dd,blockquote{font-size:var(--fs-foot);line-height:var(--lh-body)}
.lede{font-size:var(--fs-body);line-height:var(--lh-body)}
/* 首页主视觉画布（纵深环流）：铺满 stage、不吃指针事件、不遮挡角标小字 */
.stage{position:relative}
.stage > .qk-depth{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:0}
.stage > .stage-tag{z-index:2}

/* ===== 页脚署名：与版权同一行、整段不折行，宽屏字号比正文小一档，窄屏才整体居中折行 ===== */
.qk-credit-line{display:inline;white-space:nowrap;font-size:var(--fs-foot);line-height:var(--lh-body)}
.qk-credit-line a,.foot .qk-credit-line a,.foot-col .qk-credit-line a,.foot-legal .qk-credit-line a,
.legal .qk-credit-line a,footer .qk-credit-line a{display:inline;text-decoration:none;border-bottom:1px solid currentColor}
.qk-credit-sep{margin:0 .32em;opacity:.72}
.qk-credit{font-style:normal}
@media (max-width:640px){
  .qk-credit-line{display:block;white-space:normal;font-size:var(--fs-foot);line-height:var(--lh-body);text-align:center}
}

/* 中文衬线只在真放了字体文件时才启用（默认关闭，避免回落到系统宋体/伪斜体） */
html.qk-serif-ok h1,html.qk-serif-ok h2,html.qk-serif-ok h3,html.qk-serif-ok h4,html.qk-serif-ok .display,
html.qk-serif-ok .h2,html.qk-serif-ok .sec-h,html.qk-serif-ok .wordmark,html.qk-serif-ok .foot-brand{font-family:var(--serif)}

/* 衬线门控：默认 --serif 就是黑体；只有 <html class="qk-serif-ok">（服务端检测到 assets/fonts 下的子集文件才加）
   才把 --serif / --display 换成中文衬线，彻底杜绝回落到系统宋体。 */
html.qk-serif-ok{--serif:"QK Serif SC","Noto Serif SC","Source Han Serif SC","Songti SC",serif;--display:var(--serif)}
