/* 试玩台增强：模板、新组件、平板预览、自定义配色 */
.sp-tpl{padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #e3ecf8}
.sp-tpl>div:last-child{display:flex;flex-wrap:wrap;gap:6px}
.sp-tpl button{border:1px solid #d6e4f7;background:#fff;color:#2f5da6;border-radius:20px;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;transition:.2s}
.sp-tpl button:hover{background:#2f7df4;color:#fff;border-color:#2f7df4}
.sf-editor-tools{flex-wrap:wrap;justify-content:flex-end}
.sp-custom{position:relative;width:22px;height:22px;border-radius:50%;overflow:hidden;cursor:pointer;background:conic-gradient(#ff7a45,#f5a524,#ec4f8b,#8b5cf6,#2f7df4,#00a6d6,#ff7a45);border:2px solid #fff;box-shadow:0 0 0 1px #d6e4f7}
.sp-custom input{position:absolute;inset:-6px;width:40px;height:40px;opacity:0;cursor:pointer}
.sp-insp-actions{display:flex;gap:8px;margin-top:10px}
.sf-inspector textarea{min-height:64px;resize:vertical}
.sp-hint{font-size:11px;color:#8798b0;margin:0;padding:10px}
/* 新组件预览（跟随主题色 --play-accent） */
.sp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.sp-stats div{background:#fff;border:1px solid #e3ecf8;border-radius:10px;padding:12px 8px;text-align:center}
.sp-stats b{display:block;font-size:20px;color:var(--play-accent,#2f7df4)}.sp-stats small{font-size:10px;color:#8798b0}
.sp-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.sp-feats div{background:#fff;border:1px solid #e3ecf8;border-radius:10px;padding:12px}
.sp-feats i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--play-accent,#2f7df4) 14%,#fff);color:var(--play-accent,#2f7df4);margin-bottom:8px}
.sp-feats i svg{width:14px;height:14px}.sp-feats b{display:block;font-size:11px;color:#16253b}.sp-feats small{display:block;font-size:9px;color:#8798b0;margin-top:3px;line-height:1.5}
.sp-faq{display:grid;gap:6px;margin-top:8px}.sp-faq details{background:#fff;border:1px solid #e3ecf8;border-radius:10px;padding:9px 12px}
.sp-faq summary{font-size:11px;font-weight:600;color:#16253b;cursor:pointer}.sp-faq p{font-size:10px;color:#5a6c85;margin:6px 0 0;line-height:1.6}
.sp-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px;border-radius:14px;background:linear-gradient(120deg,var(--play-accent,#2f7df4),color-mix(in srgb,var(--play-accent,#2f7df4) 55%,#fff));color:#fff}
.sp-banner h3{margin:0 0 4px;font-size:15px;color:#fff}.sp-banner p{margin:0;font-size:10px;opacity:.88}
.sp-banner span{display:inline-flex;align-items:center;gap:4px;background:#fff;color:var(--play-accent,#2f7df4);border-radius:8px;padding:7px 12px;font-size:10px;font-weight:700;white-space:nowrap}.sp-banner svg{width:11px;height:11px}
.sp-forum{display:grid;gap:6px;margin-top:8px}.sp-forum div{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e3ecf8;border-radius:10px;padding:8px 10px}
.sp-forum i{width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--play-accent,#2f7df4) 16%,#fff);color:var(--play-accent,#2f7df4);display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:700;flex:none}.sp-forum b{font-size:10px;color:#16253b}
/* 平板预览 */
.sf-device-tablet{max-width:720px;margin-inline:auto}
.sf-device-tablet .sp-feats{grid-template-columns:repeat(2,1fr)}
.sf-device-mobile .sp-feats,.sf-device-mobile .sp-stats{grid-template-columns:repeat(2,1fr)}
.sf-device-mobile .sp-banner{flex-direction:column;align-items:flex-start}
/* 组件变多后：左栏在固定高度内滚动，不再撑开网格 */
.sf-editor-body{grid-template-rows:minmax(0,1fr)}
.sf-editor-library{min-height:0}
.sp-tpl button{font-size:11px;padding:5px 10px}
.sf-editor-status{gap:12px}.sf-editor-status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
