/* ============================================================================
   基础层：重置、排版、焦点、无障碍
   ============================================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:var(--bg);color:var(--ink);
  font:400 13.5px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;overflow:hidden;
}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}

/* 屏读专用（视觉上不可见，但不能用 display:none —— 那样读屏也读不到） */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* 跳转到主内容：键盘用户的第一个 Tab 就能跳到正文 */
.skip{
  position:fixed;left:8px;top:-60px;z-index:100;padding:9px 14px;border-radius:var(--r-sm);
  background:var(--brand);color:#fff;font-size:13px;font-weight:600;transition:top .15s var(--move);
}
.skip:focus{top:8px}

/* 骨架屏：数据没回来之前不留白，避免「闪一下才出现」的观感 */
.skel{background:var(--surface3);border-radius:5px;animation:pulse 1.3s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.55}}
.skel-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
.skel-row:last-child{border-bottom:0}
@media (prefers-reduced-motion:reduce){
  .skel{animation:none}
  *{scroll-behavior:auto !important}
}

/* 顶栏进度条：路由切换时的即时反馈（比转圈更轻） */
.progress{
  position:fixed;left:0;top:0;height:2px;background:var(--brand);z-index:90;
  width:0;opacity:0;transition:width .22s var(--move),opacity .3s linear;
}
.progress[data-on="true"]{opacity:1}

/* 滚动条：细一点，后台界面长时间用不刺眼 */
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background:rgba(127,127,127,.32);border-radius:6px;border:2px solid transparent;background-clip:content-box}
*::-webkit-scrollbar-thumb:hover{background:rgba(127,127,127,.5);background-clip:content-box}
*::-webkit-scrollbar-track{background:transparent}
