/* 青苗编辑器 · 界面样式
   颜色规矩：橙红 #E02500 只给「下载网站」和价格；荧光黄绿 #C7F902 只标「现在选中的东西」（logo 圆点除外）；
   黑 #111 / 雪白 #FDFDFF / 工作台暖灰 #F3F1EC；主要外框 2px 黑线 + 硬阴影。 */
:root {
  --ink: #111111; --snow: #FDFDFF; --paper: #F3F1EC; --lime: #C7F902; --lime-soft: #F6FCE0; --red: #E02500;
  --line: #E3E0D8; --line-2: #CFCAC0; --muted: #6B6862;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ic { flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 三栏骨架 ---------- */
.ed {
  display: grid; height: 100vh; height: 100dvh;
  grid-template-columns: 296px minmax(0, 1fr) 324px; grid-template-rows: 62px minmax(0, 1fr);
  grid-template-areas: "top top top" "left mid right";
}
.ed-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--snow); border-bottom: 2px solid var(--ink); min-width: 0; }
.ed-left { grid-area: left; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 2px solid var(--ink); }
.ed-mid {
  grid-area: mid; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background-color: var(--paper);
  background-image: linear-gradient(#E7E3DA 1px, transparent 1px), linear-gradient(90deg, #E7E3DA 1px, transparent 1px);
  background-size: 24px 24px;
}
.ed-right { grid-area: right; display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 2px solid var(--ink); }
.ed-tabs { display: none; }

/* ---------- 通用按钮 ---------- */
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .15s; }
.ed-btn:hover { background: var(--paper); }
.ed-btn--solid { background: var(--ink); color: #fff; }
.ed-btn--solid:hover { background: #333; }
.ed-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.ed-btn--ghost { border-color: var(--line-2); font-weight: 600; }
.ed-btn--wide { width: 100%; }
.ed-link { border: 0; background: none; padding: 6px 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 顶栏 ---------- */
.tb-l, .tb-c, .tb-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; letter-spacing: .04em; padding-right: 14px; border-right: 1.5px solid var(--line); white-space: nowrap; }
.tb-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.tb-page { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tb-page select { height: 34px; border: 0; background: transparent; font-size: 14px; font-weight: 800; color: var(--ink); cursor: pointer; max-width: 9em; }
.tb-style { height: 38px; border: 0; background: none; font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 4px; }
.tb-style u { margin-left: 6px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.tb-dev { display: flex; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.tb-dev button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; color: #444; white-space: nowrap; }
.tb-dev button[aria-pressed="true"] { background: var(--ink); color: var(--lime); font-weight: 800; }
.tb-ico { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
.tb-ico:hover:not(:disabled) { border-color: var(--ink); }
.tb-ico:disabled { opacity: .35; cursor: not-allowed; }
.tb-chip { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tb-chip i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink); }
.tb-chip span { font-weight: 500; color: var(--muted); }
.tb-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 800; }
.tb-btn:hover { background: var(--paper); }
.tb-dl { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--red); color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.tb-dl:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* ---------- 左栏 ---------- */
.lt-tabs { display: flex; padding: 8px 12px 0; border-bottom: 1.5px solid var(--line); flex: none; }
.lt-tabs button { flex: 1; height: 42px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 14px; color: var(--muted); }
.lt-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.lt-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.lt-pills::-webkit-scrollbar { display: none; }
.lt-pill { flex: none; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
.lt-pill:hover { border-color: var(--ink); }
.lt-pill[aria-pressed="true"] { background: var(--ink); color: var(--lime); border-color: var(--ink); font-weight: 800; }
.lt-pill--add { border-style: dashed; border-color: var(--ink); }
.lt-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 14px; }
.lt-head { display: flex; justify-content: space-between; gap: 8px; padding: 4px 2px 10px; font-size: 12px; color: var(--muted); }
.lt-list, .lt-pages { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 8px; }
.lt-item { border: 1.5px solid #DAD6CD; border-radius: 12px; background: #fff; transition: border-color .15s; }
.lt-item:hover { border-color: var(--ink); }
.lt-main { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; text-align: left; }
.lt-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); }
.lt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lt-txt b { font-size: 14px; }
.lt-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-tag { flex: none; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 800; white-space: nowrap; }
.lt-tag--ghost { background: #fff; border-color: var(--line-2); color: var(--muted); font-weight: 500; }
.lt-item.is-sel { border: 2.5px solid var(--ink); background: var(--lime-soft); box-shadow: 3px 3px 0 var(--ink); }
.lt-item.is-sel .lt-ico { background: var(--lime); }
.lt-item.is-hidden { border-style: dashed; background: #FAFAF8; }
.lt-item.is-hidden .lt-txt b { color: #8A877F; text-decoration: line-through; }
.lt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 10px; padding: 10px 0 12px; border-top: 1.5px dashed var(--line-2); }
.lt-acts button { display: flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 9px; background: #fff; font-size: 12.5px; font-weight: 700; }
.lt-acts button:hover:not(:disabled) { background: var(--paper); }
.lt-acts button:disabled { opacity: .3; cursor: not-allowed; }
.lt-acts .lt-edit { display: none; }
.lt-empty { margin: 24px 4px; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--muted); }
.lt-pg { display: grid; gap: 8px; padding: 10px; border: 1.5px solid #DAD6CD; border-radius: 12px; background: #fff; }
.lt-pg.is-sel { border: 2.5px solid var(--ink); background: var(--lime-soft); }
.lt-pg__name input { width: 100%; height: 38px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; font-weight: 800; }
.lt-pg__name input:focus { outline: none; border-color: var(--ink); }
.lt-pg__file { font-family: Menlo, Consolas, monospace; font-size: 11.5px; color: var(--muted); }
.lt-pg__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lt-pg__acts button { display: flex; align-items: center; height: 32px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 9px; background: #fff; font-size: 12.5px; font-weight: 700; }
.lt-pg__acts button:disabled { opacity: .3; cursor: not-allowed; }
.lt-note { margin: 12px 2px 0; font-size: 12px; color: var(--muted); }
.lt-foot { flex: none; padding: 12px 12px 10px; border-top: 1.5px solid var(--line); background: #fff; }
.lt-add { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.lt-add:hover { background: var(--paper); }
.lt-add:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.lt-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lt-save { display: flex; align-items: center; gap: 6px; }
.lt-save i { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; }
.lt-save.is-bad { color: var(--ink); font-weight: 800; }
.lt-save.is-bad i { background: var(--ink); }
.lt-io { white-space: nowrap; }
.lt-io button { padding: 6px 0; border: 0; background: none; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 中间预览 ---------- */
.pv-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 24px 0; font-size: 13px; color: var(--muted); }
.pv-size { margin-left: auto; white-space: nowrap; }
.pv-tag { padding: 3px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pv-stage { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 12px 24px 28px; overflow: hidden; }
.pv-frame { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); }
.pv-frame[data-dev="phone"] { border-radius: 22px; }
.pv-chrome { flex: none; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--ink); }
.pv-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #5A5A5A; }
.pv-chrome span { margin: 0 auto; padding: 2px 14px; border-radius: 999px; background: #2B2B2B; color: #BDBDBD; font-family: Menlo, Consolas, monospace; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.pv-viewport { position: relative; flex: none; transform-origin: 0 0; }
.pv-if { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; visibility: hidden; }
.pv-if.is-front { visibility: visible; }

/* ---------- 右栏设置 ---------- */
.st-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1.5px solid var(--line); }
.st-head b { display: block; font-size: 18px; font-weight: 900; }
.st-head small { font-size: 12px; color: var(--muted); }
.st-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; }
.st-close:hover { border-color: var(--ink); }
.st-tabs { flex: none; display: flex; gap: 20px; padding: 0 16px; border-bottom: 1.5px solid var(--line); }
.st-tabs button { height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 14px; color: var(--muted); }
.st-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.st-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.st-f { display: grid; gap: 6px; margin-bottom: 14px; }
.st-f label, .st-lab { font-size: 13px; font-weight: 800; }
.st-f input, .st-f textarea, .st-f select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; }
.st-f select { height: 42px; padding: 0 10px; }
.st-f textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.st-f input:focus, .st-f textarea:focus, .st-f select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.st-url.is-off { display: none; }
.st-img { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #FAFAF8; }
.st-thumb { flex: none; width: 76px; height: 58px; display: grid; place-items: center; border: 1.5px solid #DAD6CD; border-radius: 9px; background: #E9E6DF center / cover no-repeat; color: #8A877F; }
.st-img__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-img__btns small { width: 100%; font-size: 11.5px; color: var(--muted); }
.st-list { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.st-list legend { display: flex; gap: 8px; margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 800; }
.st-list legend span { font-weight: 500; color: var(--muted); }
.st-li { margin-bottom: 10px; padding: 10px 12px 0; border: 1.5px solid var(--line); border-radius: 12px; background: #FCFCFA; }
.st-li__head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.st-li__head b { margin-right: auto; font-size: 12px; color: var(--muted); }
.st-li__head button { min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 8px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 12px; }
.st-li__head button:hover:not(:disabled) { border-color: var(--ink); }
.st-li__head button:disabled { opacity: .3; cursor: not-allowed; }
.st-hint { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.st-sec { margin-bottom: 18px; }
.st-sec .st-lab { display: block; margin-bottom: 8px; }
.st-lays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-lay { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 12px; text-align: center; }
.st-lay:hover { border-color: var(--ink); }
.st-lay svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.st-lay.is-sel { border: 2.5px solid var(--ink); background: var(--lime-soft); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.st-tip { display: flex; gap: 10px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 13px; line-height: 1.65; color: #444; }
.st-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1.5px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- 提示条 ---------- */
.ed-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; line-height: 1.55; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.ed-toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ed-toast__act { flex: none; height: 32px; padding: 0 12px; border: 1.5px solid #fff; border-radius: 8px; background: none; color: #fff; font-weight: 800; }

/* ---------- 弹窗 ---------- */
#ed-modal { position: fixed; inset: 0; z-index: 60; display: none; }
#ed-modal.is-on { display: grid; place-items: center; padding: 24px; }
.md-back { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); }
.md { position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; border: 2px solid var(--ink); border-radius: 18px; background: var(--snow); box-shadow: 8px 8px 0 var(--ink); }
.md--sm { width: min(480px, 100%); }
.md--lib { width: min(1060px, 100%); }
.md--styles { width: min(1080px, 100%); }
.md--full { width: calc(100vw - 48px); height: calc(100vh - 48px); height: calc(100dvh - 48px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.md-x { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.md-x:hover { background: var(--paper); }
.md-h { margin: 0 0 6px; font-size: 24px; font-weight: 900; }
.md-p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: #555; }
.md-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: 13px; line-height: 1.7; color: #444; }
.md-acts { display: flex; justify-content: flex-end; margin-top: 16px; }
.fp-bar { flex: none; display: flex; align-items: baseline; gap: 12px; padding: 16px 72px 14px 20px; border-bottom: 2px solid var(--ink); }
.fp-bar b { font-size: 17px; font-weight: 900; }
.fp-bar span { font-size: 13px; color: var(--muted); }
.fp-if { flex: 1; width: 100%; border: 0; background: #fff; }

/* 下载弹窗的小票 */
.rc { margin-bottom: 14px; padding: 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.rc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rc-price { color: var(--red); font-size: 20px; font-weight: 900; white-space: nowrap; }
.rc-list { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.9; color: #444; }
.rc-cut { margin: 14px 0; border-top: 2px dashed var(--line-2); }

/* ---------- 加区块 ---------- */
.lb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-right: 56px; }
.lb-head .md-h { margin: 0; }
.lb-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-filter button { height: 34px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
.lb-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); font-weight: 800; }
.lb-where { margin: 10px 0 16px; font-size: 13px; color: var(--muted); }
.lb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lb-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid #DAD6CD; border-radius: 14px; background: #fff; transition: border-color .15s; }
.lb-card:hover { border-color: var(--ink); }
.lb-thumb svg { width: 100%; display: block; border-radius: 8px; }
.lb-info b { display: block; font-size: 15px; }
.lb-info small { display: block; min-height: 2.9em; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lb-card .ed-btn { align-self: flex-start; }
.lb-packs { display: grid; gap: 12px; margin-top: 24px; }
.lb-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.lb-plan b { font-size: 16px; }
.lb-plan span { flex: 1; min-width: 200px; font-size: 13px; color: #CFCFCF; }
.lb-plan .lb-price { flex: none; min-width: 0; padding: 4px 12px; border-radius: 8px; background: var(--red); color: #fff; font-size: 18px; font-weight: 900; transform: rotate(-3deg); }
.lb-pack { padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; }
.lb-pack__head { display: flex; align-items: center; gap: 10px; }
.lb-pack__head b { font-size: 15px; }
.lb-pack__head .lb-price { color: var(--red); font-weight: 900; }
.lb-soon { margin-left: auto; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 12px; }
.lb-pack__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lb-pack__list li { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: 13px; color: #555; }

/* ---------- 挑风格 ---------- */
.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-card { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.sp-card.is-sel { outline: 4px solid var(--lime); outline-offset: 0; }
.sp-shot { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper); }
.sp-shot iframe { position: absolute; left: 0; top: 0; width: 1200px; height: 960px; border: 0; transform-origin: 0 0; pointer-events: none; }
.sp-info { display: flex; gap: 12px; padding: 14px 16px 6px; }
.sp-info b { display: block; font-size: 20px; font-weight: 900; }
.sp-info small { display: block; font-size: 13px; line-height: 1.6; color: #555; }
.sp-plant { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; }
.sp-card .ed-btn { align-self: flex-start; margin: 8px 16px 16px; }
.sp-now { align-self: flex-start; margin: 8px 16px 16px; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 800; }
.sp-blank { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 20px; border: 2px dashed var(--ink); border-radius: 14px; background: #fff; text-align: left; }
.sp-blank:hover { background: var(--paper); }
.sp-blank b { font-size: 16px; white-space: nowrap; }
.sp-blank span { flex: 1; font-size: 14px; color: #555; }
.sp-warn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.sp-foot { margin: 14px 0 0; font-size: 13px; color: #555; }

/* ---------- 窄一点的电脑 ---------- */
@media (max-width: 1240px) {
  .ed { grid-template-columns: 264px minmax(0, 1fr) 300px; }
  .tb-page > span, .tb-btn span, .tb-chip span { display: none; }
  .tb-dev button { padding: 0 10px; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .tb-style, .tb-logo { display: none; }
  .ed { grid-template-columns: 240px minmax(0, 1fr) 280px; }
}

/* ---------- 手机编辑：底部「区块 / 设置 / 预览」 ---------- */
@media (max-width: 720px) {
  .ed { grid-template-columns: 100%; grid-template-rows: 56px minmax(0, 1fr) 62px; grid-template-areas: "top" "main" "tabs"; }
  .ed-left, .ed-mid, .ed-right { grid-area: main; display: none; border: 0; }
  body[data-mtab="blocks"] .ed-left, body[data-mtab="settings"] .ed-right, body[data-mtab="preview"] .ed-mid { display: flex; }
  .ed-tabs { grid-area: tabs; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); background: var(--snow); padding-bottom: env(safe-area-inset-bottom); }
  .ed-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font-size: 12px; color: var(--muted); }
  .ed-tabs button .ic { padding: 3px 16px; box-sizing: content-box; border-radius: 999px; }
  .ed-tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 800; }
  .ed-tabs button[aria-pressed="true"] .ic { background: var(--ink); color: var(--lime); }

  .ed-top { padding: 0 10px; gap: 8px; }
  .tb-logo { font-size: 17px; padding-right: 8px; border: 0; }
  .tb-c { gap: 6px; }
  .tb-page { height: 36px; padding-left: 8px; }
  .tb-page select { max-width: 5.5em; }
  .tb-style, .tb-dev, .tb-chip, .tb-btn { display: none; }
  .tb-ico { width: 36px; height: 36px; }
  .tb-dl { height: 38px; padding: 0 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
  .tb-dl .ic { display: none; }

  .lt-acts button { height: 40px; }
  .lt-acts .lt-edit { display: flex; background: var(--ink); color: #fff; }
  .pv-bar { padding: 8px 12px; min-height: 0; }
  .pv-hint, .pv-size { display: none; }
  .pv-stage { padding: 0; }
  .pv-frame { border: 0; border-radius: 0; box-shadow: none; }
  .pv-chrome { display: none; }

  #ed-modal.is-on { padding: 0; }
  .md { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: 20px 16px 28px; }
  .md--sm { height: auto; align-self: end; border-top: 2px solid var(--ink); border-radius: 18px 18px 0 0; }
  .md--full { width: 100%; height: 100vh; height: 100dvh; padding: 0; }
  .md-x { top: 12px; right: 12px; }
  .md-h { font-size: 21px; padding-right: 48px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-shot { aspect-ratio: 16 / 10; }
  .lb-head { padding-right: 48px; }
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lb-info small { min-height: 0; }
  .ed-toast { bottom: 76px; left: 12px; right: 12px; width: auto; max-width: none; transform: translateY(16px); }
  .ed-toast.is-on { transform: none; }
  body.is-touring .ed-toast { transform: translateY(-16px); }
}

/* ---------- 拖拽（第 2 版加的） ---------- */
.lt-tabs button { font-size: 13.5px; padding: 0 2px; }
.lt-row { display: flex; align-items: stretch; }
.lt-row .lt-main { padding-left: 4px; }
.lt-grip, .lt-lock { flex: none; width: 26px; display: grid; place-items: center; color: #B5B0A6; }
.lt-grip { cursor: grab; touch-action: none; border-radius: 12px 0 0 12px; }
.lt-item:hover .lt-grip { color: var(--ink); }
.lt-item[data-drag-id] .lt-main { cursor: grab; }
.lt-item.is-pinned { background: #FAFAF8; }
.lt-item.is-pinned.is-sel { background: var(--lime-soft); }
.lt-item.is-src { opacity: .35; border-style: dashed; box-shadow: none; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.is-dragging .pv-if { pointer-events: none; }
.is-dragging .pv-frame { outline: 3px dashed var(--ink); outline-offset: 5px; }
.dd-ghost { position: fixed; left: 0; top: 0; z-index: 95; display: none; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 4px 4px 0 var(--ink); font-size: 14px; font-weight: 800; white-space: nowrap; pointer-events: none; }
.dd-ghost.is-on { display: flex; }
.dd-line { position: fixed; left: 0; top: 0; z-index: 94; display: none; height: 4px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); pointer-events: none; }
.dd-line.is-on { display: block; }
.dd-line span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* 左栏「加区块」 */
.pl-tip { margin: 4px 2px 12px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.pl-tip b { color: var(--ink); }
.pl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-tile { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1.5px solid #DAD6CD; border-radius: 12px; background: #fff; text-align: left; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.pl-tile:hover:not(:disabled) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pl-tile svg { width: 100%; display: block; border-radius: 7px; pointer-events: none; }
.pl-tile b { font-size: 13px; }
.pl-tile small { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.pl-tile:disabled { opacity: .45; cursor: not-allowed; }
.pl-packs { display: grid; gap: 8px; margin-top: 16px; }
.pl-plan { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; }
.pl-plan b { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.pl-plan span:not(.pl-price) { color: #CFCFCF; line-height: 1.6; }
.pl-price { color: var(--red); font-weight: 900; }
.pl-price--tag { padding: 2px 9px; border-radius: 7px; background: var(--red); color: #fff; transform: rotate(-3deg); }
.pl-pack { padding: 10px 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 12.5px; }
.pl-pack__head { display: flex; align-items: center; gap: 8px; }
.pl-pack__head b { font-size: 13.5px; }
.pl-soon { margin-left: auto; padding: 1px 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 11.5px; }
.pl-pack p { margin: 6px 0 0; color: var(--muted); }

/* 右栏新手四步 */
.st-steps { margin: 4px 0 0; padding: 14px 14px 14px 34px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 13px; line-height: 1.6; color: #444; }
.st-steps li { margin-bottom: 8px; }
.st-steps li:last-child { margin-bottom: 0; }
.st-steps b { display: block; color: var(--ink); }

@media (max-width: 720px) {
  .lt-grip { width: 36px; }
  .pl-tile { cursor: pointer; }
  .lt-item[data-drag-id] .lt-main { cursor: pointer; }
}

/* 网格吸附开关（第 3 版：自由摆放） */
.pv-grid { flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; }
.pv-grid b { min-width: 1.2em; }
.pv-grid[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pv-grid[aria-pressed="true"] b { color: var(--lime); }
.st-free { padding: 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--lime-soft); }
.st-free .st-lab { margin-bottom: 4px; }
@media (max-width: 720px) { .pv-grid { display: none; } }

/* 修：窗口窄时预览顶部的提示被挤成一字一行（2026-11-25 JUN 反馈） */
.pv-bar { flex-wrap: nowrap; overflow: hidden; }
.pv-hint { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pv-editing, .pv-size, .pv-grid { flex: none; white-space: nowrap; }
.lt-tabs button, .lt-pill, .tb-chip, .tb-btn, .tb-dl { white-space: nowrap; }
@media (max-width: 1240px) { .pv-size { display: none; } .pv-grid { margin-left: auto; } }
@media (max-width: 1000px) {
  .pv-hint { display: none; }
  .pv-bar { padding: 10px 16px 0; }
  .lt-tabs { padding: 8px 6px 0; }
  .lt-tabs button { font-size: 12.5px; }
  .lt-head { flex-wrap: wrap; }
}
/* 修：区块说明文字太长把这一行撑宽，操作按钮被挤出去、列表出现横向滚动条 */
.lt-row .lt-main { flex: 1; min-width: 0; }
.lt-body { overflow-x: hidden; }
.lt-list, .lt-pages { grid-template-columns: minmax(0, 1fr); }
.pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lt-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) and (min-width: 721px) { .lt-main .lt-tag { display: none; } }
.lt-head > span:last-child { flex: none; white-space: nowrap; }

/* ---------- 自己画的下拉菜单（替换系统自带的 select） ---------- */
.dd-chev { flex: none; transition: transform .15s; }
[aria-expanded="true"] > .dd-chev { transform: rotate(180deg); }
.tb-page__btn { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 2px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; color: var(--ink); }
.tb-page__btn b { max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.tb-page:hover, .tb-page.is-open { border-color: var(--ink); }
.st-dd { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; text-align: left; }
.st-dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-dd:hover, .st-dd[aria-expanded="true"] { border-color: var(--ink); }
.st-dd[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.dd-menu { position: fixed; z-index: 97; margin: 0; padding: 6px; list-style: none; max-height: min(60vh, 360px); overflow-y: auto; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); font-size: 14px; outline: none; animation: dd-in .12s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-menu [role="option"] { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.dd-menu [role="option"] small { margin-left: auto; padding-left: 14px; font-size: 12px; color: var(--muted); }
.dd-menu [role="option"].is-active { background: var(--paper); }
.dd-menu [role="option"][aria-selected="true"] { background: var(--lime); font-weight: 800; }
.dd-menu [role="option"][aria-selected="true"] small { color: var(--ink); }
.dd-menu .dd-ic { flex: none; width: 16px; height: 16px; display: block; }
.dd-menu .dd-action { font-weight: 800; }
.dd-menu .dd-sep { height: 1.5px; margin: 6px 4px; background: var(--line); }
@media (max-width: 720px) { .tb-page__btn b { max-width: 5em; } .dd-menu [role="option"] { min-height: 44px; } }

/* ---------- 三端预览改版（Claude + 反重力讨论定的，2026-11-25） ----------
   电脑 1280×800 浏览器窗口 / 平板 768×1024 素白机身 / 手机 390×844 素白机身 + 状态条；
   等比放进中间区域并上下左右居中；切设备 0.22 秒过渡；窄窗口缩到 45% 以下给提示 +「全屏看大图」。 */
.pv-stage { position: relative; align-items: center; justify-content: center; padding: 18px 24px 22px; }
.pv-frame { position: relative; flex: none; display: flex; flex-direction: column; overflow: hidden; background: var(--snow); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); }
.pv-frame[data-dev] { border-radius: 12px; }
.pv-chrome { flex: none; height: 31.5px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F6F4EF; border-bottom: 1.5px solid var(--ink); }
.pv-chrome i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; }
.pv-chrome span { margin: 0 auto; padding: 2px 14px; border-radius: 999px; background: #E9E6DF; color: #5A5751; font-family: Menlo, Consolas, monospace; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.pv-screen { position: relative; flex: none; overflow: hidden; background: #fff; }
.pv-scaled { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pv-viewport { position: relative; flex: none; transform: none; }
.pv-status { display: none; height: 48px; align-items: center; justify-content: space-between; padding: 0 26px 0 34px; font: 600 15px/1 -apple-system, "PingFang SC", system-ui, sans-serif; }
.pv-island { width: 100px; height: 30px; border-radius: 20px; background: #111; }
.pv-frame[data-kind="tablet"] { padding: 16px 10px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.pv-frame[data-kind="tablet"]::before { content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.pv-frame[data-kind="tablet"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 3px; background: var(--line-2); }
.pv-frame[data-kind="phone"] { padding: 8px; border-radius: 30px; box-shadow: 4px 4px 0 var(--ink); }
.pv-frame[data-kind="tablet"] .pv-screen { border: 1.5px solid var(--ink); border-radius: 10px; }
.pv-frame[data-kind="phone"] .pv-screen { border: 1.5px solid var(--ink); border-radius: 22px; }
.pv-frame[data-kind="phone"] .pv-status { display: flex; }
.pv-frame[data-kind="phone"] .pv-screen::after { content: ""; position: absolute; z-index: 3; bottom: 5px; left: 50%; width: 34%; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(17, 17, 17, .8); pointer-events: none; }
.pv-frame:not([data-kind="browser"]) .pv-chrome { display: none; }
.pv-frame.is-switching, .pv-frame.is-switching .pv-screen { transition: width .22s ease-out, height .22s ease-out, padding .22s ease-out, border-radius .22s ease-out; }
.pv-frame.is-switching .pv-scaled { transition: transform .22s ease-out; }
.pv-tip { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 6px 6px 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12.5px; color: #444; white-space: nowrap; }
.pv-tip[hidden] { display: none; }
.pv-tip span { overflow: hidden; text-overflow: ellipsis; }
.pv-tip button { flex: none; height: 28px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
/* 网格吸附开关调轻：白底黑细线，开着时「开」字亮荧光绿 */
.pv-grid, .pv-grid[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pv-grid b { padding: 1px 7px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 11.5px; }
.pv-grid[aria-pressed="true"] b { background: var(--lime); color: var(--ink); }
/* 缩放比例一直显示（窄窗口把提示文字藏掉，比例留着） */
@media (max-width: 1240px) { .pv-size { display: inline; } .pv-hint { display: none; } .pv-grid { margin-left: 0; } .pv-size { margin-left: auto; } }
@media (max-width: 720px) {
  .pv-stage { padding: 0; align-items: stretch; }
  .pv-frame, .pv-frame[data-kind="mobile"] { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .pv-size { display: none; }
}

/* ---------- 收起 / 展开 左右栏（反重力建议，2026-11-25） ---------- */
.ed { --lw: 296px; --rw: 324px; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); transition: grid-template-columns .22s ease-out; }
@media (max-width: 1240px) { .ed { --lw: 264px; --rw: 300px; } }
@media (max-width: 1000px) and (min-width: 721px) { .ed { --lw: 240px; --rw: 280px; } }
body.hide-left .ed { --lw: 0px; }
body.hide-right .ed { --rw: 0px; }
body.hide-left .ed-left, body.hide-right .ed-right { visibility: hidden; overflow: hidden; border-width: 0; }
.pv-side { flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pv-side:hover { border-color: var(--ink); }
.pv-side[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pv-side[data-side="left"] { margin-right: 2px; }
.pv-tip button.is-light { background: #fff; color: var(--ink); }
@media (max-width: 1240px) { .pv-side span { display: none; } .pv-side { width: 34px; padding: 0; justify-content: center; } .pv-side[aria-pressed="true"] { width: auto; padding: 0 10px; } .pv-side[aria-pressed="true"] span { display: inline; } }
@media (max-width: 720px) {
  .ed { grid-template-columns: 100%; transition: none; }
  body.hide-left .ed-left, body.hide-right .ed-right { visibility: visible; border-width: 0; }
  .pv-side { display: none; }
}

/* ---------- 电脑预览改成 Shopify 式：实际大小铺满中间（2026-11-25 JUN） ---------- */
.pv-stage.is-full { padding: 8px 12px 12px; align-items: stretch; justify-content: stretch; }
.pv-frame[data-kind="full"] { border: 1.5px solid var(--line-2); border-radius: 10px; box-shadow: none; background: #fff; }
.pv-frame[data-kind="full"] .pv-chrome { display: none; }
.pv-stage.is-full .pv-tip { bottom: 6px; }

/* ---------- 窗口不够宽（721–1439）：像 Shopify 一样设置栏叠在左栏里，中间留给电脑预览 ---------- */
.st-back { display: none; flex: none; align-self: flex-start; align-items: center; gap: 6px; margin: 12px 16px 0; height: 34px; padding: 0 14px 0 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; }
.st-back:hover { background: var(--paper); }
.lt-site { display: none; margin-right: 10px; }
@media (min-width: 721px) and (max-width: 1439px) {
  .ed { --lw: 300px; --rw: 0px; }
  .ed-right { grid-area: left; z-index: 6; border-left: 0; border-right: 2px solid var(--ink); }
  body:not(.is-editing):not(.show-site) .ed-right { display: none; }
  body.hide-right .ed-right { visibility: visible; border-width: 0 2px 0 0; }
  body.hide-left.is-editing .ed, body.hide-left.show-site .ed { --lw: 300px; }
  body.hide-left.is-editing .ed-right, body.hide-left.show-site .ed-right { visibility: visible; }
  .st-back { display: flex; }
  .st-head .st-close { display: none; }
  .lt-site { display: inline; }
  .pv-side[data-side="right"] { display: none; }
}
@media (min-width: 721px) and (max-width: 1000px) { .ed { --lw: 280px; } }

/* ---------- 拖动分隔条改左右栏宽度（2026-11-25 JUN：像对话框一样随意拖） ---------- */
.ed { position: relative; --lw: var(--lw-u, 296px); --rw: var(--rw-u, 324px); }
@media (max-width: 1240px) { .ed { --lw: var(--lw-u, 264px); --rw: var(--rw-u, 300px); } }
@media (min-width: 721px) and (max-width: 1439px) { .ed { --lw: var(--lw-u, 300px); --rw: 0px; } }
@media (min-width: 721px) and (max-width: 1000px) { .ed { --lw: var(--lw-u, 280px); } }
body.hide-left .ed { --lw: 0px; }
body.hide-right .ed { --rw: 0px; }
@media (min-width: 721px) and (max-width: 1439px) { body.hide-left.is-editing .ed, body.hide-left.show-site .ed { --lw: var(--lw-u, 300px); } }
.ed-split { position: absolute; top: 62px; bottom: 0; z-index: 9; width: 12px; cursor: col-resize; touch-action: none; outline: none; }
.ed-split--l { left: calc(var(--lw) - 6px); }
.ed-split--r { right: calc(var(--rw) - 6px); }
.ed-split i { position: absolute; top: 50%; left: 50%; width: 6px; height: 44px; margin: -22px 0 0 -3px; border-radius: 6px; background: var(--ink); opacity: 0; transition: opacity .15s, height .15s; }
.ed-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; background: var(--ink); opacity: 0; transition: opacity .15s; }
.ed-split:hover i, .ed-split:focus-visible i, .ed-split.is-active i { opacity: 1; }
.ed-split:hover::before, .ed-split:focus-visible::before, .ed-split.is-active::before { opacity: .35; }
.ed-split.is-active i { height: 64px; margin-top: -32px; }
body.is-resizing, body.is-resizing * { cursor: col-resize !important; user-select: none !important; }
body.is-resizing .ed { transition: none; }
body.is-resizing .pv-if { pointer-events: none; }
body.hide-left:not(.is-editing):not(.show-site) .ed-split--l, body.hide-left .ed-split--l { display: none; }
@media (min-width: 721px) and (max-width: 1439px) {
  body.hide-left.is-editing .ed-split--l, body.hide-left.show-site .ed-split--l { display: block; }
  .ed-split--r { display: none; }
}
body.hide-right .ed-split--r { display: none; }
@media (max-width: 720px) { .ed-split { display: none !important; } }
.st-img.is-drop { border: 2px dashed var(--ink); background: var(--lime-soft); }

/* ---------- 顶栏「教程」 ---------- */
.tb-help { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tb-help:hover, .tb-help[aria-expanded="true"] { background: var(--paper); }
@media (max-width: 1240px) { .tb-help span { display: none; } .tb-help { width: 36px; padding: 0; justify-content: center; } }

/* ---------- 新手教程 ---------- */
.tour-spot { position: fixed; z-index: 110; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(17, 17, 17, .55); outline: 3px solid var(--lime); outline-offset: 0; pointer-events: none; transition: left .25s ease-out, top .25s ease-out, width .25s ease-out, height .25s ease-out; }
.tour-spot.is-center { outline: 0; }
.tour-b { position: fixed; z-index: 111; padding: 16px 18px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--snow); box-shadow: 6px 6px 0 var(--ink); font-size: 14px; line-height: 1.7; transition: left .25s ease-out, top .25s ease-out; }
.tour-b__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tour-b__step { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.tour-b__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.tour-b__bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.tour-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; }
.tour-x:hover { border-color: var(--ink); }
.tour-b__title { margin: 0 0 6px; font-size: 18px; font-weight: 900; line-height: 1.4; }
.tour-b__text { color: #333; }
.tour-b__text b { color: var(--ink); }
.tour-b__text i { color: var(--muted); font-style: normal; }
.tour-wait { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--paper); font-weight: 700; }
.tour-wait button { margin-left: auto; height: 32px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; }
.tour-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); animation: tour-pulse 1s ease-in-out infinite alternate; }
.tour-dot.is-ok { background: var(--lime); animation: none; }
@keyframes tour-pulse { to { background: var(--ink); } }
.tour-b__acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.tour-btn { height: 40px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.tour-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.tour-btn--ghost:hover { border-color: var(--ink); }
body.is-touring .ed-toast { z-index: 112; top: 16px; bottom: auto; transform: translate(-50%, -16px); }
body.is-touring .ed-toast.is-on { transform: translate(-50%, 0); }
@media (max-width: 720px) { body.is-touring .ed-toast { transform: translateY(-16px); } body.is-touring .ed-toast.is-on { transform: none; } }
/* 矮屏：选风格弹窗里的缩略图压扁一点，三张卡都放得下 */
@media (max-height: 700px) and (min-width: 721px) { .sp-shot { aspect-ratio: 16 / 9; } .sp-info { padding-top: 10px; } }

/* ---------- 使用说明 ---------- */
.md--help { width: min(720px, 100%); }
.hp-tour { margin-bottom: 18px; }
.hp-group { margin-top: 18px; }
.hp-group h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.hp-qa { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.hp-qa summary { cursor: pointer; list-style: none; position: relative; padding: 12px 40px 12px 14px; font-weight: 700; }
.hp-qa summary::-webkit-details-marker { display: none; }
.hp-qa summary::after { content: "+"; position: absolute; right: 14px; top: 8px; font-size: 20px; font-weight: 400; }
.hp-qa[open] { border-color: var(--ink); }
.hp-qa[open] summary::after { content: "−"; }
.hp-qa p { margin: 0; padding: 0 14px 14px; color: #444; line-height: 1.75; }

/* ---------- 代码模式 ---------- */
.st-code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-code-wrap .st-lab { display: block; margin: 10px 0 6px; }
.st-code-head .st-lab { margin: 0; }
.st-code { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #FBFAF7; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; tab-size: 2; resize: vertical; white-space: pre-wrap; word-break: break-all; }
.st-code:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.st-code-wrap .st-hint { margin-top: 10px; }
/* 教程进行时的透明挡板：别的地方点不了，点了说明框会抖一下 */
.tour-blk { position: fixed; z-index: 109; background: transparent; cursor: not-allowed; }
.tour-b.is-nudge { animation: tour-nudge .4s ease-in-out; }
@keyframes tour-nudge { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .tour-b.is-nudge { animation: none; } }

/* ---------- 反重力排查后的修正（2026-11-25） ---------- */
.tb-ico, .tb-help, .tb-btn, .tb-dl, .tb-chip { flex: none; }
.tb-chip:hover { background: var(--paper); }
.tb-style { border-radius: 8px; padding: 0 8px; }
.tb-style:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 860px) and (min-width: 721px) { .ed-top { gap: 6px; } .tb-l, .tb-c, .tb-r { gap: 6px; } .tb-chip { display: none; } .tb-dev button { padding: 0 8px; } }
.st-free { background: var(--paper); border-color: var(--line-2); }
.st-url-hint { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.st-url.is-off + .st-url-hint { display: none; }
@media (max-width: 720px) { .lt-site { display: inline; } }
/* 教程：绿框里的能点；点出弹窗时教程先让开；教程中拖区块，绿线和跟手的小卡在暗层上面 */
.tour-try { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
body.tour-paused .tour-spot, body.tour-paused .tour-b, body.tour-paused .tour-blk { display: none !important; }
body.is-touring .dd-ghost, body.is-touring .dd-line { z-index: 116; }
.tour-blk { cursor: default; }

/* 窄窗口：列表里选中的那块也有「改这一块」按钮（点了才打开设置） */
@media (min-width: 721px) and (max-width: 1439px) { .lt-acts .lt-edit { display: flex; background: var(--ink); color: #fff; } }

/* ---------- Windows：滚动条默认很宽很灰，改细；字体回落到微软雅黑 / Consolas ---------- */
.ed, .md, .dd-menu, .st-code { scrollbar-width: thin; scrollbar-color: #CFCAC0 transparent; }
.ed ::-webkit-scrollbar, .md::-webkit-scrollbar, .dd-menu::-webkit-scrollbar, .st-code::-webkit-scrollbar { width: 10px; height: 10px; }
.ed ::-webkit-scrollbar-thumb, .md::-webkit-scrollbar-thumb, .dd-menu::-webkit-scrollbar-thumb, .st-code::-webkit-scrollbar-thumb { background: #CFCAC0; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.ed ::-webkit-scrollbar-thumb:hover, .md::-webkit-scrollbar-thumb:hover { background-color: #A8A399; }
.ed ::-webkit-scrollbar-track, .md::-webkit-scrollbar-track, .dd-menu::-webkit-scrollbar-track { background: transparent; }
.st-code { font-family: "SF Mono", Menlo, Consolas, "Microsoft YaHei", monospace; }

/* ---------- 全站设置：主色、字体、圆角、小图标（2026-11-25） ---------- */
.st-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.st-sw { position: relative; width: 34px; height: 34px; padding: 0; border: 1.5px solid rgba(17,17,17,.25); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.st-sw:hover { border-color: var(--ink); transform: translateY(-1px); }
.st-sw.is-sel { border: 2.5px solid var(--ink); box-shadow: 0 0 0 3px var(--lime), 0 0 0 4.5px var(--ink); }
.st-sw--pick { background: #fff; border-style: dashed; overflow: hidden; }
.st-sw--pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-warn { display: block; margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--red); background: #FFF3EF; font-size: 12px; line-height: 1.55; color: #8A1A00; }
.st-opts { display: grid; gap: 8px; }
.st-opts--3 { grid-template-columns: repeat(3, 1fr); }
.st-opts--4 { grid-template-columns: repeat(4, 1fr); }
.st-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 12px; color: var(--ink); cursor: pointer; }
.st-opt:hover { border-color: var(--ink); }
.st-opt b { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.st-opt.is-sel { border: 2.5px solid var(--ink); background: var(--lime-soft); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.st-rad { display: block; width: 26px; height: 20px; margin-top: 2px; border: 2.5px solid var(--ink); border-bottom: 0; border-right: 0; }
.st-thumb--fav { width: 48px; height: 48px; }
.st-reset-theme { display: block; margin: -4px 0 18px; font-size: 12.5px; }

/* ---------- 激活码、下载网站（2026-11-25） ---------- */
.tb-chip.is-on { background: var(--lime-soft); }
.tb-chip.is-on i { background: var(--lime); }
.lc-form { margin: 6px 0 14px; }
.lc-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.lc-row { display: flex; gap: 8px; }
.lc-in { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 10px; font: 700 15px/1 Menlo, Consolas, "Microsoft YaHei", monospace; letter-spacing: .04em; text-transform: uppercase; background: #fff; }
.lc-in::placeholder { color: #B5B1A8; font-weight: 500; }
.lc-in:focus { outline: none; box-shadow: 0 0 0 3px var(--lime); }
.lc-row .ed-btn { flex: none; height: 44px; }
.lc-msg { min-height: 1.6em; margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.lc-msg.is-bad { color: #A11C00; }
.lc-msg.is-ok { color: #1F5D2A; font-weight: 800; }
.dl-or { margin: 16px 0 0; font-size: 13px; font-weight: 800; }
.dl-buy { display: flex; justify-content: center; text-decoration: none; }
.dl-soon { margin-top: 4px; }
.dl-files { margin: 0 0 14px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; list-style: none; }
.dl-files li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.dl-files li:last-child { border-bottom: 0; }
.dl-files code { font: 700 13px/1.5 Menlo, Consolas, monospace; }
.dl-files span { color: var(--muted); }
.dl-block { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--red); background: #FFF3EF; font-size: 13px; line-height: 1.7; }
.dl-block ul { margin: 6px 0 0; padding-left: 18px; max-height: 168px; overflow-y: auto; }
.dl-block li small { color: #6B5F59; }
.dl-acts { gap: 10px; align-items: center; margin: 0 0 14px; }
.dl-acts .tb-dl:disabled { opacity: .45; cursor: not-allowed; }
.dl-more { display: block; margin-top: 10px; }
.dl-block .ed-btn { margin-top: 8px; }

/* ---------- 加区块：基础区块 / 视觉展示 / 商业实用、扩展包（2026-11-25） ---------- */
.pl-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 2px 0 12px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.pl-cats button { height: 32px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pl-cats button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.pl-tile { position: relative; }
.pl-try { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); font-style: normal; font-size: 9.5px; line-height: 16px; font-weight: 800; }
.pl-pk { margin-top: 14px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; }
.pl-pk__head { display: flex; align-items: center; gap: 8px; }
.pl-pk__head b { font-size: 14px; }
.pl-pk__head .pl-price { margin-left: auto; }
.pl-own { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--lime-soft); border: 1.5px solid var(--ink); font-size: 11.5px; font-weight: 800; }
.pl-pk > p { margin: 6px 0 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.pl-pk.is-soon { border-style: dashed; border-color: var(--line-2); background: transparent; }
.pl-pk.is-soon > p { margin-bottom: 0; }
.pl-pk .pl-grid { margin: 0; }
.pl-plan { margin-top: 4px; }
.pl-code { width: 100%; margin-top: 14px; justify-content: center; }
.pl-tile .pl-try svg { width: 11px; height: 11px; border-radius: 0; flex: none; }
