/* 内容替换页：版式沿用爆款复刻（replicate.css 的 rp-*），这里只放不同的部分 */
.rp-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin: 0 0 22px; }
.rp-entries .rp-entry { margin: 0; }
.cr-entry { background: linear-gradient(110deg, rgba(45, 212, 191, .14), rgba(96, 165, 250, .12)); }
.cr-entry .rp-entry-ic { background: rgba(45, 212, 191, .18); color: var(--accent); }

.cr-top { position: relative; justify-content: space-between; }
.cr-top h1 { position: absolute; left: 50%; transform: translateX(-50%); }
.cr-pts { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line2); color: #fbbf24; font-size: 13px; }
.cr-pts:empty { display: none; }
.cr-pts span { color: var(--mute); font-size: 12px; }

.cr-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.cr-head b { font-size: 16px; }
.cr-sec { border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); padding: 12px 14px; }
.cr-sh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; font-size: 14px; }
.cr-sh > span { color: var(--mute); font-size: 12px; }
.cr-sh .grow { flex: 1; }
.cr-sh .btn em { font-style: normal; font-weight: 400; opacity: .8; font-size: 11px; margin-left: 2px; }
.cr-sh .spinner { width: 12px; height: 12px; border-width: 2px; }
.cr-red { color: #f87171 !important; }
.cr-hint { margin: 8px 0 0; color: var(--mute); font-size: 12px; line-height: 1.6; }
.cr-drop { padding: 16px 12px; }
.cr-del { color: var(--danger); }
.cr-del:hover { border-color: var(--danger); }
.cr-vcard video { width: 170px; }
.cr-img { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.cr-img img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: var(--bg2); flex: none; }
.cr-img span { min-width: 0; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-x { position: absolute; top: 4px; left: 84px; display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--danger); color: #fff; }

.cr-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); }
.cr-seg button { height: 36px; border: 0; border-radius: 8px; background: none; color: var(--dim); font-size: 14px; }
.cr-seg button.on { background: var(--accent); color: #062420; font-weight: 600; }
.cr-ta { min-height: 110px; resize: vertical; font-size: 13px; line-height: 1.65; }

.cr-set { padding: 0; }
.cr-set-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; font-size: 14px; }
.cr-set-h span { flex: 1; text-align: right; color: var(--mute); font-size: 12px; }
.cr-set-h svg { transition: transform .15s; }
.cr-set.open .cr-set-h svg { transform: rotate(180deg); }
.cr-set-b { padding: 0 14px 14px; }
.cr-lbl { display: flex; justify-content: space-between; margin: 12px 0 8px; font-size: 13px; color: var(--dim); }
.cr-lbl:first-child { margin-top: 0; }
.cr-lbl b { color: var(--accent); font-weight: 600; }
.cr-ratios { grid-template-columns: repeat(5, 1fr); }
.cr-set-b input[type=range] { width: 100%; accent-color: var(--accent); }
.cr-model { max-width: none; width: 100%; height: 38px; }
.cr-model span { flex: 1; }

.cr-bar { justify-content: flex-end; }
.cr-go { flex: 1; height: 44px; font-size: 15px; }
.cr-go em { font-style: normal; font-weight: 400; opacity: .85; font-size: 12px; margin-left: 6px; }
.cr-go:disabled { background: var(--panel2); border-color: var(--line2); color: var(--mute); opacity: 1; }
.cr-q { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); color: var(--mute); font-size: 12px; cursor: help; flex: none; }

.cr-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cr-ex-i { display: flex; flex-direction: column; gap: 8px; }
.cr-ex-i > span { text-align: center; color: var(--dim); font-size: 13px; }
.cr-ex-v { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.cr-ex-v video { width: 100%; height: 100%; object-fit: cover; }

#home[data-theme="light"] .cr-seg button.on { color: #fff; }
#home[data-theme="light"] .cr-pts { background: #fff; color: #b45309; }

/* ---------- 视频创作 / 探店视频（vtool.js、create.js、storevisit.js），版式沿用 rp-* / cr-* ---------- */
.vs-topr { display: inline-flex; align-items: center; gap: 8px; }
.vs-topr .rp-tm { margin-left: 0; }
.vs .cr-sh .btn em { font-style: normal; font-weight: 400; opacity: .8; font-size: 11px; margin-left: 2px; }
.vs-main { display: flex; flex-direction: column; padding: 10px 12px; }
.vs-main:focus-within { border-color: var(--accent); }
.vs-ta { width: 100%; min-height: 300px; resize: vertical; border: 0; outline: 0; background: transparent; line-height: 1.7; font-size: 13px; color: var(--text); }
.vs-ta-f { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.vs-ta-f .grow { flex: 1; }
.vs-ta-f .rp-count { position: static; }
.vs-store { min-height: 150px; }
.vs-script { min-height: 200px; }
.vs .rp-ta { min-height: 90px; }
.vs .btn .spinner { width: 12px; height: 12px; border-width: 2px; }
.vs .rp-busy.flat { margin: 0 0 8px; }

/* 代为撰写弹窗 */
.vs-wzm .modal-body { padding-top: 6px; }
.vs-wz { display: flex; flex-direction: column; max-height: 76vh; }
.vs-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 14px; font-size: 13px; color: var(--mute); }
.vs-steps span { display: inline-flex; align-items: center; gap: 6px; }
.vs-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; border: 1px solid var(--line2); }
.vs-steps span.on { color: var(--text); font-weight: 600; }
.vs-steps span.on i { background: var(--accent); border-color: var(--accent); color: #062420; }
.vs-steps span.done { color: var(--accent); }
.vs-steps span.done i { border-color: var(--accent); }
.vs-steps b { width: 48px; height: 1px; background: var(--line2); }
.vs-wz-b { flex: 1; min-height: 0; overflow: auto; padding: 2px 2px 8px; display: flex; flex-direction: column; gap: 12px; }
.vs-wz-f { margin-top: 8px; }
.vs-wz-f .btn em { font-style: normal; font-weight: 400; opacity: .8; font-size: 11px; margin-left: 3px; }
.vs-blk { border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); padding: 12px 14px; }
.vs-blk-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.vs-blk-h span { color: var(--mute); font-size: 12px; }
.vs-mat { display: flex; flex-direction: column; gap: 10px; }
.vs-opt > b { display: block; margin-bottom: 8px; font-size: 13px; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-chips button { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--dim); font-size: 13px; }
.vs-chips button:hover { border-color: var(--accent); }
.vs-chips button.on { border-color: var(--accent); color: var(--accent); background: rgba(45, 212, 191, .1); font-weight: 600; }
.vs-ref { display: flex; flex-direction: column; gap: 4px; }
.vs-ref .rp-vcard video { width: 120px; max-height: 180px; }
.vs-prev-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vs-prev-h > span { display: flex; align-items: center; gap: 6px; color: #34d399; }
.vs-prev-h em { font-style: normal; color: var(--mute); font-size: 12px; }
.vs-edit { min-height: 50vh; }

/* Markdown 预览 */
.vs-md { padding: 12px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--dim); }
.vs-md h2, .vs-md h3, .vs-md h4 { margin: 14px 0 6px; color: var(--text); }
.vs-md h2 { font-size: 15px; } .vs-md h3 { font-size: 14px; } .vs-md h4 { font-size: 13px; }
.vs-md > :first-child { margin-top: 0; }
.vs-md p { margin: 2px 0; }
.vs-md .vs-li { padding-left: 14px; position: relative; }
.vs-md .vs-li::before { content: ''; position: absolute; left: 4px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.vs-md b { color: var(--text); }
.vs-md em.vs-at { font-style: normal; color: var(--accent); }
.vs-tbl td:nth-child(-n+2) { white-space: nowrap; }
/* 视频制作页：4 张大卡片，封面并排播放两个示例视频 */
.tl-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 1100px) { .tl-big { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-big { grid-template-columns: 1fr; } }
.tl-bcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); background: var(--panel); transition: transform .18s, border-color .18s, box-shadow .18s; }
.tl-bcard:hover { transform: translateY(-3px); border-color: hsla(var(--h), 70%, 58%, .75); box-shadow: 0 14px 34px -14px hsla(var(--h), 80%, 50%, .55); }
.tl-bcover { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 10px; color: hsl(var(--h), 70%, 70%);
  background: radial-gradient(circle at 20% 15%, hsla(var(--h), 80%, 60%, .45), transparent 60%), radial-gradient(circle at 85% 95%, hsla(calc(var(--h) + 60), 80%, 60%, .35), transparent 55%), var(--bg2); }
.tl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; height: 100%; }
.tl-pair.one { grid-template-columns: 1fr; }
.tl-v { position: relative; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.tl-v video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tl-bcard:hover .tl-v video { transform: scale(1.04); }
.tl-v i { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; font-style: normal; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.tl-binfo { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tl-binfo b { font-size: 17px; }
.tl-binfo em { font-style: normal; color: var(--mute); font-size: 12.5px; line-height: 1.55; min-height: 3.1em; }
.tl-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; color: hsl(var(--h), 75%, 68%); }
.tl-go svg { transition: transform .18s; }
.tl-bcard:hover .tl-go svg { transform: translateX(3px); }
#home[data-theme="light"] .tl-bcover, #home[data-theme="light"] .tl-go { color: hsl(var(--h), 60%, 40%); }
.vs-tbl { overflow: auto; margin: 8px 0; }
.vs-tbl table { border-collapse: collapse; min-width: 100%; font-size: 12px; }
.vs-tbl th, .vs-tbl td { border: 1px solid var(--line2); padding: 6px 8px; vertical-align: top; text-align: left; }
.vs-tbl th { background: var(--panel2); color: var(--text); white-space: nowrap; }

#home[data-theme="light"] .vs-steps span.on i { color: #fff; }
#home[data-theme="light"] .vs-chips button { background: #fff; }

/* ---------- 数字人（human.js）：上面页签，下面卡片网格 ---------- */
.dh { display: flex; flex-direction: column; height: 100%; }
.dh-tabs { margin: 0 24px 12px; align-self: flex-start; }
.dh-body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 24px; }
.dh-panel { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 60vh; }
.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; align-items: start; }
.dh-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.dh-h { display: flex; align-items: center; gap: 8px; }
.dh-h i { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(45, 212, 191, .15); color: var(--accent); }
.dh-h b { font-size: 15px; }
.dh-h span { color: var(--mute); font-size: 12px; }
.dh-row { display: flex; align-items: center; gap: 10px; }
.dh-row > em, .dh-f2 em, .dh-l em { font-style: normal; color: var(--dim); font-size: 12px; white-space: nowrap; }
.dh-row > em { width: 56px; }
.dh-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.dh-f2 label, .dh-l { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dh-f2 em b { color: var(--accent); font-weight: 600; margin-left: 4px; }
.dh-f2 input[type=range] { width: 100%; accent-color: var(--accent); }
.dh-f2 .input, .dh-l .input { height: 34px; font-size: 13px; }
.dh-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dh-acts .btn em { font-style: normal; font-weight: 400; opacity: .85; font-size: 11px; margin-left: 4px; }
.dh-acts .spinner, .dh-steps .spinner { width: 12px; height: 12px; border-width: 2px; }
.dh-tip { color: var(--mute); font-size: 12px; line-height: 1.6; margin: 0; }
.dh-sub { margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--line2); }
.dh-text { min-height: 150px; }
.dh-seg { margin-bottom: 2px; }
.dh-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.dh-chk.sm { font-size: 12px; color: var(--dim); }
.dh-chk input { accent-color: var(--accent); width: 15px; height: 15px; }
.dh-auds { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; }
.dh-aud { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.dh-aud.on { border-color: var(--accent); }
.dh-aud audio { height: 30px; flex: 1; min-width: 0; }
.dh-aud > span { color: var(--dim); font-size: 12px; white-space: nowrap; }
.dh-pick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--dim); flex: none; }
.dh-aud.on .dh-pick { background: var(--accent); border-color: var(--accent); color: #062420; }
.dh-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; flex: none; }
.dh-av { display: flex; gap: 12px; align-items: flex-start; }
.dh-vid { position: relative; width: 120px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); flex: none; }
.dh-vid video { width: 100%; height: 100%; object-fit: cover; }
.dh-vid .dh-x { position: absolute; top: 4px; right: 4px; }
.dh-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--bg2); color: var(--mute); padding: 6px; text-align: center; }
.dh-ph em { font-style: normal; font-size: 11px; }
.dh-avb { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dh-res { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dh-res video { width: 200px; max-height: 360px; border-radius: 10px; background: #000; }
.dh-res.final video { width: 240px; max-height: 430px; }
.dh-res > span { color: var(--dim); font-size: 12px; }
.dh-resb { display: flex; gap: 8px; }
.dh-meta { display: grid; grid-template-columns: 56px 1fr; gap: 8px 10px; align-items: start; font-size: 13px; }
.dh-meta > em { font-style: normal; color: var(--mute); font-size: 12px; padding-top: 3px; }
.dh-title { margin: 0; font-weight: 600; line-height: 1.6; }
.dh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dh-tags span { padding: 2px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.dh-tags.kw span { cursor: pointer; }
.dh-tags.kw span:hover { border-color: #fbbf24; color: #fbbf24; }
.dh-music { display: flex; align-items: center; gap: 8px; min-width: 0; align-self: end; }
.dh-music audio { height: 30px; width: 160px; }
.dh-music span { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mute); }
.dh-steps span { display: inline-flex; align-items: center; gap: 5px; }
.dh-steps span > i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line2); }
.dh-steps span.ok { color: #34d399; }
.dh-steps span.run { color: var(--accent); font-weight: 600; }
.dh-err { position: static; margin: 0; }
.dh-auto { border-color: rgba(45, 212, 191, .35); background: linear-gradient(140deg, rgba(45, 212, 191, .08), var(--panel) 60%); }
.dh-avm { display: flex; flex-direction: column; gap: 12px; }
.dh-avm-p { display: flex; align-items: center; gap: 10px; }
.dh-add { width: 96px; height: 96px; }
.cr-ex-v { position: relative; }
.cr-ex-src { position: absolute; left: 6px; top: 6px; width: 34%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.rp-work-v audio { width: 92%; }
@media (max-width: 700px) { .dh-grid { grid-template-columns: 1fr; } .dh-f2 { grid-template-columns: 1fr; } }
#home[data-theme="light"] .dh-aud.on .dh-pick { color: #fff; }

/* ---------- AI 视频工坊 / AI 图片工坊 / AI 商品套图（workshop.js）---------- */
.tl-head2 { margin-top: 34px; }
.ws { margin-bottom: 10px; }
.ws-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.ws-title svg { color: var(--accent); }
.ws-title b { font-size: 22px; }
.ws-title span { color: var(--mute); font-size: 13px; }
.ws-page > [data-ls] { margin-top: 34px; }
.tp-head2 { margin-top: 30px; }
.ws-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ws-tabs button { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 13px; }
.ws-tabs button:hover { color: var(--text); border-color: var(--line2); }
.ws-tabs button.on { color: #062420; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.ws-tabs-d { margin-left: 6px; color: var(--mute); font-size: 12px; }
.ws-box { position: relative; padding: 12px 14px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .04), 0 18px 40px rgba(0, 0, 0, .25); transition: border-color .15s; }
.ws-box:focus-within { border-color: rgba(45, 212, 191, .55); }
.ws-box.drag { border-color: var(--accent); border-style: dashed; background: rgba(45, 212, 191, .05); }
.ws-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-refs:empty { display: none; }
.ws-ref { position: relative; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line2); flex: none; }
.ws-ref img, .ws-ref video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-ref-a { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--c-audio); }
.ws-ref em { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0; font: 10px/14px sans-serif; font-style: normal; text-align: center; color: #fff; background: rgba(0, 0, 0, .6); }
.ws-ref button { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; opacity: 0; transition: opacity .12s; }
.ws-ref:hover button { opacity: 1; }
.ws-add { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px dashed var(--line2); background: var(--bg2); color: var(--dim); flex: none; }
.ws-add:hover { color: var(--accent); border-color: var(--accent); }
.ws-ta { display: block; width: 100%; min-height: 92px; max-height: 260px; margin-top: 8px; padding: 4px 30px 4px 2px; resize: vertical; border: 0; outline: none; background: transparent;
  color: var(--text); font: 14px/1.65 inherit; font-family: inherit; }
.ws-ta::placeholder { color: var(--mute); }
.ws-expand { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--mute); }
.ws-expand:hover { color: var(--text); background: var(--panel2); }
.ws-image .ws-refs:not(:empty) ~ .ws-expand { top: 76px; }
.ws-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ws-bar .grow, .ws-hh .grow, .ws-vc-r .grow, .ls-sh .grow { flex: 1; }
.ws-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.ws-chip:hover { color: var(--text); border-color: #4a5260; }
.ws-chip svg:last-child { opacity: .6; }
.ws-tog.on { color: var(--accent); border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .08); }
.ws-at { width: 32px; justify-content: center; padding: 0; font-weight: 700; font-size: 14px; }
.ws-note { color: #fbbf24; font-size: 12px; }
.ws-cost { display: inline-flex; align-items: center; gap: 4px; color: #fbbf24; font-size: 13px; font-weight: 600; padding: 0 4px; }
.ws-send { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #062420; }
.ws-send:hover:not(:disabled) { background: #5eead4; }
.ws-send:disabled { background: var(--line2); color: var(--mute); cursor: not-allowed; }
.ws-pop { position: fixed; z-index: 950; width: 320px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.ws-pop .rp-pop-t em { font-style: normal; color: var(--mute); font-size: 11px; }
.ws-pop input[type=range] { width: 100%; accent-color: var(--accent); }
.ws-pop .rp-res { grid-template-columns: repeat(4, 1fr); }
.ws-pop .rp-ratios button { padding: 6px 0; }
.ws-pop .rp-res button:disabled { opacity: .35; cursor: not-allowed; }
.ws-pop-n { margin: 10px 0 0; color: var(--mute); font-size: 11.5px; line-height: 1.6; }
.ws-rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ws-rgrid button { padding: 7px 0; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); font-size: 12px; }
.ws-rgrid button.on { border-color: var(--accent); color: var(--accent); background: rgba(45, 212, 191, .08); }
.ws-insp { width: 420px; max-width: calc(100vw - 16px); }
.ws-insp-l { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 360px; overflow: auto; padding-right: 2px; }
.ws-insp-l button { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; text-align: left; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); }
.ws-insp-l button:hover { border-color: var(--accent); }
.ws-insp-l b { font-size: 13px; font-weight: 600; }
.ws-insp-l span { color: var(--mute); font-size: 11px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ws-hist { margin-top: 18px; }
.ws-hh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ws-hh b { font-size: 14px; }
.ws-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-fchip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 12px; }
.ws-fchip:hover { color: var(--text); }
.ws-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 10px; border-radius: 14px; border: 1px dashed var(--line2); color: var(--mute); text-align: center; }
.ws-empty b { color: var(--dim); font-size: 14px; font-weight: 600; }
.ws-empty p { margin: 0; font-size: 12px; }
.ws-t { color: var(--mute); font-size: 11.5px; white-space: nowrap; }
.ws-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ws-vc { border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.ws-vc-m { aspect-ratio: 16 / 10; background: #000; }
.ws-vc-m video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ws-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--mute); background: var(--bg2); }
.ws-ph em { font-style: normal; font-size: 12px; }
.ws-vc-i { padding: 9px 11px 10px; }
.ws-vc-r { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.ws-vc-i p { margin: 6px 0 8px; font-size: 12.5px; color: var(--dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.9em; }
.ws-vc-a { display: flex; gap: 6px; }
.ws-vc-a button, .ws-mini { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line2); background: var(--bg2); color: var(--dim); font-size: 12px; }
.ws-vc-a button:hover, .ws-mini:hover { color: var(--accent); border-color: var(--accent); }
.ws-ic { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.ws-ic-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ws-ic-p { flex: 1; min-width: 0; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-ic-g { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-img { width: 168px; height: 168px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.ws-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ws-img:hover img { transform: scale(1.04); }
.ws-mini { width: 26px; justify-content: center; padding: 0; }
/* 商品套图 */
.ls-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.ls-left { display: flex; flex-direction: column; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.ls-scroll { padding: 4px 16px 6px; }
.ls-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ls-sec:last-child { border-bottom: 0; }
.ls-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ls-sh b { font-size: 13.5px; }
.ls-sh > span { color: var(--mute); font-size: 11.5px; }
.ls-drop { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line2); background: var(--bg2); cursor: pointer; }
.ls-drop.drag { border-color: var(--accent); background: rgba(45, 212, 191, .06); }
.ls-drop:not(.has) { justify-content: center; }
.ls-drop-i { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--mute); text-align: center; font-size: 12px; }
.ls-drop:not(.has) .ls-drop-i { padding: 6px 0; }
.ls-drop-i b { color: var(--dim); font-size: 13px; }
.ls-drop.has .ls-drop-i { justify-content: center; }
.ls-drop-b { display: flex; gap: 6px; margin-top: 4px; }
.ls-drop.has .ls-drop-b { flex-direction: column; margin: 0; }
.ls-sel { height: 34px; padding: 0 8px; font-size: 13px; }
.ls-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ls-2 label { display: flex; flex-direction: column; gap: 5px; color: var(--mute); font-size: 12px; }
.ls-ai { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .08); color: var(--accent); font-size: 12px; }
.ls-ai em { font-style: normal; color: var(--mute); font-size: 11px; }
.ls-ai:hover:not(:disabled) { background: rgba(45, 212, 191, .16); }
.ls-ai:disabled, .ls-link:disabled { opacity: .5; cursor: wait; }
.ls-ai.big { height: 34px; padding: 0 14px; font-size: 13px; }
.spinner.sm { width: 12px; height: 12px; border-width: 2px; }
.ls-pt { border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); }
.ls-pt:focus-within { border-color: var(--accent); }
.ls-ta { min-height: 128px; resize: vertical; border: 0; background: transparent; font-size: 13px; line-height: 1.6; }
.ls-ta.sm { min-height: 84px; border: 1px solid var(--line2); background: var(--bg2); }
.ls-pt-b { display: flex; justify-content: space-between; padding: 4px 8px 6px; }
.ls-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border: 0; background: none; color: var(--dim); font-size: 12px; }
.ls-link:hover:not(:disabled) { color: var(--accent); }
.ls-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 10px; }
.ls-seg button { padding: 6px 0; border: 0; border-radius: 7px; background: none; color: var(--dim); font-size: 12.5px; }
.ls-seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ls-style { padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.ls-style p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.ls-style.ph { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; }
.ls-style.ph span { color: var(--mute); font-size: 11.5px; }
.ls-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ls-tpls button { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; text-align: left; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); }
.ls-tpls button.on { border-color: var(--accent); background: rgba(45, 212, 191, .08); }
.ls-tpls b { font-size: 12.5px; }
.ls-tpls span { color: var(--mute); font-size: 11px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ls-opt { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 7px; padding: 10px 12px; text-align: left; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.ls-opt > span { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ls-opt b { font-size: 13px; }
.ls-opt em { font-style: normal; color: var(--mute); font-size: 11.5px; line-height: 1.45; }
.ls-opt i { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 5px; border: 1.5px solid var(--line2); color: transparent; flex: none; }
.ls-opt.on { border-color: rgba(45, 212, 191, .55); }
.ls-opt.on i { background: var(--accent); border-color: var(--accent); color: #062420; }
.ls-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ls-picks label { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--dim); cursor: pointer; }
.ls-picks label.on { color: var(--text); border-color: rgba(45, 212, 191, .45); }
.ls-picks input { accent-color: var(--accent); margin: 0; }
.ls-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--bg2); }
.ls-fm { display: flex; gap: 6px; margin-bottom: 9px; }
.ls-go { width: 100%; height: 42px; justify-content: center; gap: 6px; font-size: 14px; }
.ls-go em { font-style: normal; font-weight: 400; font-size: 12px; opacity: .8; }
.ls-go:disabled { opacity: .5; cursor: not-allowed; }
.ls-why { margin: 7px 0 0; text-align: center; color: var(--mute); font-size: 11.5px; }
.ls-right { min-height: 560px; padding: 14px 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ls-rtabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.ls-rtabs button { padding: 5px 16px; border: 0; border-radius: 7px; background: none; color: var(--dim); font-size: 12.5px; }
.ls-rtabs button.on { background: var(--panel2); color: var(--text); }
.ls-panel { margin-top: 14px; }
.ls-intro { text-align: center; margin: 18px 0 20px; }
.ls-intro h2 { margin: 0 0 6px; font-size: 22px; }
.ls-intro p { margin: 0; color: var(--dim); font-size: 13px; }
.ls-exg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 820px; margin: 0 auto; }
.ls-exg.sm { max-width: none; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ls-ex { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.ls-ex img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ls-ex.ph { background: linear-gradient(145deg, hsl(var(--h, 30), 35%, 22%), hsl(calc(var(--h, 30) + 40), 30%, 12%)); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .35); }
.ls-ex.ph.run { flex-direction: column; gap: 8px; background: var(--bg2); color: var(--mute); }
.ls-ex.ph.run em { position: static; background: none; color: var(--mute); }
.ls-ex em { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-set { padding: 4px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ls-set-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ls-set-h b { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.ls-assets button { aspect-ratio: 1; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; background: var(--bg2); }
.ls-assets button.on { border-color: var(--accent); }
.ls-assets img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-acnt { flex: 1; color: var(--mute); font-size: 12px; }
@media (max-width: 960px) { .ls-body { grid-template-columns: 1fr; } .ls-exg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ws-img { width: calc(50% - 4px); height: auto; aspect-ratio: 1; } .ws-insp-l { grid-template-columns: 1fr; } .ws-tabs-d { display: none; } }
#home[data-theme="light"] .ws-box { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
#home[data-theme="light"] .ws-tabs button.on, #home[data-theme="light"] .ws-send:not(:disabled), #home[data-theme="light"] .ls-opt.on i { color: #fff; }
#home[data-theme="light"] .ls-ex.ph { color: rgba(255, 255, 255, .7); }
.ws-ic-h .wk-st, .ws-vc .wk-st { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  .ws-bar { gap: 5px; }
  .ws-chip { height: 30px; padding: 0 8px; font-size: 12px; gap: 4px; }
  .ws-ic-h { flex-wrap: wrap; }
  .ws-ic-h .ws-ic-p { flex: 1 1 60%; min-width: 0; }
  .ws-ic-h .ws-t { font-size: 11px; }
}

/* 工坊大标题：居中 + 旋转光环 */
@property --wsa { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.ws-hero { text-align: center; margin: 6px 0 26px; }
.ws-hero p { color: var(--mute); font-size: 14px; margin: 14px 0 0; }
.ws-halo { position: relative; display: inline-block; margin: 0; padding: 14px 44px; border-radius: 999px; isolation: isolate;
  font-size: 40px; font-weight: 800; letter-spacing: 2px; line-height: 1.2; }
.ws-halo span { background: linear-gradient(90deg, #fff 0%, #a5f3fc 40%, #c4b5fd 70%, #fff 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wsShine 6s linear infinite; }
.ws-halo::before, .ws-halo i { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--wsa), transparent 0deg, #2dd4bf 60deg, #818cf8 120deg, transparent 180deg, transparent 200deg, #f472b6 260deg, #2dd4bf 320deg, transparent 360deg);
  animation: wsSpin 4s linear infinite; }
/* 细光圈：只留 1.5px 边 */
.ws-halo::before { padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* 外发光 */
.ws-halo i { inset: -6px; filter: blur(18px); opacity: .55; z-index: -2; }
.ws-halo::after { content: ''; position: absolute; inset: 1.5px; border-radius: inherit; z-index: -1; background: rgba(10, 14, 22, .82); }
@keyframes wsSpin { to { --wsa: 360deg; } }
@keyframes wsShine { to { background-position: -200% 0; } }
@media (max-width: 560px) {
  .ws-halo { font-size: 28px; padding: 10px 28px; letter-spacing: 1px; }
  .ws-hero p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ws-halo::before, .ws-halo i, .ws-halo span { animation: none; } }
#home[data-theme="light"] .ws-halo::after { background: rgba(255, 255, 255, .92); }
#home[data-theme="light"] .ws-halo span { background-image: linear-gradient(90deg, #0f766e 0%, #4f46e5 45%, #db2777 75%, #0f766e 100%); }
#home[data-theme="light"] .ws-halo i { opacity: .35; }

/* 首页大标题光环（复用 wsSpin 动画） */
.hm-hero h1.hm-halo { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto 26px; padding: 12px 52px 18px; border-radius: 999px; isolation: isolate; }
.hm-halo::before, .hm-halo > i { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--wsa), transparent 0deg, #6ea8ff 60deg, #a78bfa 120deg, transparent 180deg, transparent 200deg, #f1d9ab 260deg, #6ea8ff 320deg, transparent 360deg);
  animation: wsSpin 5s linear infinite; }
.hm-halo::before { padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hm-halo > i { inset: -8px; filter: blur(22px); opacity: .55; z-index: -2; }
.hm-halo::after { content: ''; position: absolute; inset: 2px; border-radius: inherit; z-index: -1; background: rgba(8, 10, 16, .55); backdrop-filter: blur(6px); }
#home[data-theme="light"] .hm-halo::after { background: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .hm-hero h1.hm-halo { padding: 10px 16px 14px; border-radius: 26px; font-size: clamp(20px, 6.6vw, 30px); white-space: nowrap; letter-spacing: -.02em; margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .hm-halo::before, .hm-halo > i { animation: none; } }
