/* =========================================================
   LiteBox v5 · base.css — Reset 与全局基础
   全文件仅以下两处允许强制优先级（任务规定的唯一例外）：
   1) [hidden]  2) prefers-reduced-motion 降级
   ========================================================= */
*{margin:0;padding:0;box-sizing:border-box}
img,svg,video{max-width:100%;display:block}
html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--head-h) + var(--nav-h) + 16px);
  -webkit-text-size-adjust:100%;
}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;
  line-height:1.65;
  min-height:100vh;
  padding-bottom:calc(80px + var(--safe-bottom)); /* Step 5E：任务指定 80px + 安全区（原 54+22=76px，统一收口，防导航遮内容） */
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
}
/* 双渐变光斑背景（纯装饰，不产生交互） */
body::before,body::after{
  content:'';position:fixed;z-index:-1;pointer-events:none;
  filter:blur(90px);border-radius:50%;
}
body::before{width:46vw;height:46vw;left:-12vw;top:-16vh;background:var(--glow1)}
body::after{width:42vw;height:42vw;right:-10vw;bottom:-14vh;background:var(--glow2)}
::selection{background:var(--sel-bg)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}

/* 允许的强制声明之一：hidden 属性优先级最高 */
[hidden]{display:none!important}

/* 允许的强制声明之二：无障碍减弱动效降级 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}
