/* ==========================================================================
   Chengtian-001 · 橙霞天幕 / reset（重置 + 基础排版）
   --------------------------------------------------------------------------
   设计语系：晚霞米白 / 落日橙 / 暮云蓝 / 宋体标题 / 云层柔圆角 / 日轮圆章。
   ⚠️ 与其它模板的分界（改样式前先看这几条，避免不知不觉「长回现款」）：
     · 底色是**晚霞米白**，顶部压一层极淡的日出暖光（径向渐变），不是纯白
     · 主强调色**只有落日橙**；暮云蓝只出现在页脚深底与大图遮罩里
     · 标题一律**宋体衬线**（--oc-serif），正文/界面用无衬线（--oc-sans）
     · 圆角 4–16px（卡片 16px，主按钮药丸形），阴影为暖橙投影，不发黑
   ========================================================================== */

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

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

body {
    margin: 0;
    background-color: var(--oc-paper);
    background-image:
        radial-gradient(1180px 520px at 82% -14%, rgba(243, 171, 95, .26) 0%, rgba(243, 171, 95, 0) 64%),
        radial-gradient(880px 420px at 4% -20%, rgba(210, 102, 31, .10) 0%, rgba(210, 102, 31, 0) 62%),
        linear-gradient(180deg, #fdf2e4 0%, #fcf0e1 46%, #faeee0 100%);
    background-repeat: no-repeat;
    color: var(--oc-ink);
    font: var(--oc-fs-base)/var(--oc-lh) var(--oc-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: var(--oc-lh-tight); color: var(--oc-ink); }
h1 { font-size: var(--oc-fs-h1); font-family: var(--oc-serif); }
h2 { font-size: var(--oc-fs-lg); font-family: var(--oc-serif); }
h3 { font-size: var(--oc-fs-md); font-family: var(--oc-serif); }
h4 { font-size: var(--oc-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(--oc-accent-soft); color: var(--oc-ink); }

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

/* 视觉隐藏但保留语义（页头 h1 / 表格说明等） */
.oc-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;
}

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