/* ==========================================================================
   Folio 模板 · foundation（重置 + 设计令牌 + 基础排版）
   --------------------------------------------------------------------------
   设计语系：晴空映日 / 蓝天主色 + 日光金点缀 / 无衬线标题 / 积云圆角。
   ⚠️ 与站内其它模板的分界（改样式前先看这几条，避免不知不觉「长回现款」）：
     · 底色是**晴空蓝白**（冷天蓝相，不是纯白也不是暖米）
     · 主色**晴空蓝**，另以**日光金**点评分与太阳徽，暖红仅作错误态
     · 标题与正文一律**清爽无衬线**（--qs-serif/--qs-sans 同族）
     · 圆角为积云圆角（最大 16px），阴影是淡蓝晴空投影，靠 1px 线分面
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--qs-anchor-offset, 80px);
}

body {
    margin: 0;
    background: var(--qs-paper);
    color: var(--qs-ink);
    font: var(--qs-fs-base)/var(--qs-lh) var(--qs-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: var(--qs-lh-tight); color: var(--qs-ink); }
h1 { font-size: var(--qs-fs-h1); font-family: var(--qs-serif); }
h2 { font-size: var(--qs-fs-lg); font-family: var(--qs-serif); }
h3 { font-size: var(--qs-fs-md); font-family: var(--qs-serif); }
h4 { font-size: var(--qs-fs-base); }
p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
::selection { background: var(--qs-accent-soft); color: var(--qs-ink); }

/* 键盘可达性：只在键盘导航时出焦点环（鼠标点击不出，保证「纸面」干净） */
:focus-visible {
    outline: 2px solid var(--qs-accent);
    outline-offset: 2px;
    border-radius: var(--qs-r-xs);
}

/* 视觉隐藏但保留语义（页头 h1 / 表格说明等） */
.qs-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 图片/区块的骨架底色：加载期间不该是刺眼的纯白 */
.qs-ph { background: var(--qs-surface-3); }
