/* V6.5 去冗余：原此处声明的 --th-section-pad-top/bottom 中间变量，
 * 全库没有任何消费方（前台 padding 直接读 :root 的 --blk-pad-*），已删除。
 * 后台间距参数现在由 global-style.php 的字段注册表统一定义。
 */

/* Global-style admin preview. The panel itself announces its true canvas width;
   it is an inspection sample rather than a fake desktop rendering. */
.style-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; color:#667085; font-size:12px; }
.style-meta span { padding:3px 7px; border-radius:999px; background:#F2F4F7; }
.style-field { align-items:flex-start; }
.style-field > span { min-width:112px; }
.style-field code { display:block; margin-top:3px; color:#667085; font-size:10px; }
.style-field output { align-self:center; min-width:62px; text-align:right; color:#344054; font-size:11px; font-variant-numeric:tabular-nums; }
.style-preview { overflow:hidden; background:var(--bg-soft); border-radius:var(--radius); color:var(--ink); }
.pv-canvas-note { margin:0; padding:10px 13px; background:color-mix(in srgb, var(--card-bg) 82%, var(--bg-soft)); color:var(--ink-soft); border-bottom:1px solid var(--line); font:11px/1.5 var(--font-body); }
.pv-canvas-note strong { color:var(--ink); }
.pv-section { padding:18px; border-bottom:1px solid var(--line); }
.pv-section:last-child { border-bottom:0; }
.pv-kicker { display:block; color:var(--link); font:700 10px/1.4 var(--font-sub); letter-spacing:.14em; }
.pv-section h1,.pv-section h2,.pv-section h3,.pv-section p { margin:0; }
.pv-section h1 { margin-top:8px; font-size:28px; line-height:1.22; }
.pv-section h2 { margin-top:14px; font-size:20px; line-height:1.3; }
.pv-section h3 { margin-top:12px; font-size:15px; line-height:1.4; }
.pv-copy { margin-top:10px!important; }
.pv-muted { display:block; margin-top:9px; color:var(--ink-soft); font-size:12px; }
.pv-link { display:inline-block; margin-top:10px; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.pv-button-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; align-items:center; }
.pv-button-row .btn { display:inline-flex; align-items:center; justify-content:center; padding:0 14px; text-decoration:none; border:1px solid transparent; cursor:default; }
.pv-card { margin-top:14px; padding:14px; background:var(--card-bg); border:1px solid var(--line); border-radius:var(--radius); }
.pv-card b { display:block; font-family:var(--font-sub); color:var(--heading); font-size:14px; }
.pv-card small { display:block; margin-top:4px; color:var(--ink-soft); font-size:11px; }
.pv-rule { margin:15px 0; border:0; border-top:1px solid var(--line); }
.pv-width { margin-top:12px; padding:8px; border:1px dashed var(--line); border-radius:calc(var(--radius) / 1.5); background:color-mix(in srgb, var(--card-bg) 72%, transparent); }
.pv-width__measure { width:var(--pv-maxw-ratio,83.33%); height:9px; max-width:100%; border-radius:999px; background:var(--heading); }
.pv-width small { display:block; margin-top:7px; color:var(--ink-soft); font-size:10px; line-height:1.45; }
.pv-spacing { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pv-space { min-width:0; background:var(--card-bg); border:1px solid var(--line); border-radius:calc(var(--radius) / 1.5); overflow:hidden; }
.pv-space__band { display:block; min-height:22px; padding:6px 8px; background:color-mix(in srgb, var(--bg-soft) 72%, var(--card-bg)); color:var(--ink-soft); font-size:10px; line-height:1.35; }
.pv-space--blk-top .pv-space__band { padding-top:var(--blk-pad-top); }
.pv-space--blk-bottom .pv-space__band { padding-bottom:var(--blk-pad-bottom); }
.pv-space__content { display:block; padding:7px 8px; border-top:1px solid var(--line); color:var(--heading); font:600 11px/1.35 var(--font-sub); }
.pv-space__value { display:block; margin-top:3px; color:var(--ink-soft); font:10px/1.35 var(--font-body); }
@media (max-width:1050px) { .style-preview-col { position:static!important; } }
@media (max-width:640px) { .pv-spacing { grid-template-columns:1fr; } .style-field output { min-width:50px; } }

/* 正文和行高必须在样例内实际变化；后台自己的 rem 不作为前台基准。 */
.style-preview .pv-copy { font-size:var(--base-fs); line-height:var(--base-lh); }
.style-preview .pv-section[data-preview-id="pv-section-bg"] { background:var(--bg-soft); }
