/* ===== 顶部导航（首页和工作台共用） ===== */
.topnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 18px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.topnav-links { display: flex; gap: 18px; font-size: 14px; }
.topnav-links a { color: var(--text); text-decoration: none; opacity: .75; }
.topnav-links a.on, .topnav-links a:hover { opacity: 1; color: var(--accent); }
.topnav .account-bar { margin: 0 0 0 auto; padding: 0; max-width: none; }

/* ===== 工作台：左菜单 / 中表单 / 右预览 ===== */
body.ws { background: var(--bg); }
.ws-grid { display: grid; grid-template-columns: 190px minmax(360px, 460px) minmax(0, 1fr); gap: 16px; max-width: 1440px; margin: 0 auto; padding: 16px; align-items: start; }
.ws-menu { position: sticky; top: 70px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; }
.ws-menu-group { margin: 2px 6px 8px; font-size: 12px; color: var(--muted); }
.ws-menu .modebar { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ws-menu .mode-btn { display: grid; grid-template-columns: 26px 1fr; column-gap: 6px; align-items: center; text-align: left; padding: 10px; border-width: 1px; font-size: 15px; }
.ws-menu .mode-btn .ico { grid-row: span 2; font-size: 18px; }
.ws-menu .mode-btn small { grid-column: 2; }
.ws-menu .mode-btn.active { background: color-mix(in srgb, var(--accent) 10%, var(--card)); border-color: var(--accent); color: var(--accent); }
.ws-form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 0; margin: 0; max-width: none; }
.tool-head h1 { font-size: 20px; margin: 0 0 4px; text-align: left; }
.tool-head p { margin: 0 0 12px; }
.ws-form .step { font-size: 15px; margin: 18px 0 10px; }
/* 2026-11-03 优秀案例：模板改成 3 列网格，默认只露 9 个，点「展开」看全部（原来是横向滚动条，106 个一次只能看 3 个） */
.ws-form .templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 6px; }
.ws-form .templates .template { min-width: 0; }
.ws-form .templates.collapsed .template.more { display: none; }
.tpl-more { display: block; width: 100%; margin: 4px 0 0; padding: 9px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.tpl-more:hover { border-color: var(--accent); color: var(--accent); }
.ws-form .upload-row { flex-direction: column; gap: 10px; }
.ws-form .modes { flex-direction: column; align-items: stretch; gap: 8px; }
.submit-bar { position: sticky; bottom: 0; background: var(--card); padding: 12px 0 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.submit-bar #submit { width: 100%; }
.ws-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.howto { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.howto h2 { margin: 0 0 12px; font-size: 18px; text-align: center; }
.howto-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; }
.howto-steps li { counter-increment: s; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.55; }
.howto-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; }
.side-preview { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.side-videos { display: flex; gap: 12px; justify-content: center; }
.side-videos figure { margin: 0; flex: 1; max-width: 300px; }
.side-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.side-videos figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ws-side .result, .ws-side .history { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; }
.ws-side .history .history-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1100px) {
  .ws-grid { grid-template-columns: 170px minmax(0, 1fr); }
  .ws-form, .ws-menu { min-width: 0; }
  .ws-side { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topnav { gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
  .topnav-links { gap: 12px; font-size: 13px; }
  .ws-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .ws-menu { position: static; padding: 8px; }
  .ws-menu-group { display: none; }
  .ws-menu .modebar { flex-direction: row; }
  .ws-menu .mode-btn { flex: 1; display: block; text-align: center; padding: 8px 4px; }
  .ws-menu .mode-btn small { display: none; }
  .ws-menu .mode-btn .ico { display: block; font-size: 20px; }
  .ws-form { padding: 14px 12px 0; }
  .howto-steps { grid-template-columns: 1fr; }
}

/* ===== 首页：大标语 + 卖点 + 功能卡 + 案例做同款 + 免费试用 ===== */
.home main { max-width: 1200px; margin: 0 auto; padding: 0 16px 80px; }
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; letter-spacing: .02em; }
.hero p { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.hero-points { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; font-size: 15px; }
.hero-points b { color: var(--accent); font-size: 22px; margin-right: 4px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn.big { padding: 14px 30px; font-size: 17px; border-radius: 999px; }
.section-title { text-align: center; font-size: 26px; margin: 46px 0 18px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tool-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); }
.tool-card .ba { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; background: var(--bg); padding: 12px; }
.tool-card .ba img, .tool-card .ba video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #ddd; }
.tool-card .ba .arrow { text-align: center; color: var(--accent); font-weight: 800; }
.tool-card .tc-body { padding: 12px 14px 16px; }
.tool-card h3 { margin: 0 0 4px; font-size: 17px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; }
.tabs-pill { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs-pill button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.tabs-pill button.on { background: var(--text); color: var(--card); border-color: var(--text); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.case { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.case video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case .inputs { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.case .inputs img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; background: #fff; }
.case .same { position: absolute; right: 8px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; text-decoration: none; }
.case .same:hover { background: var(--accent); }
.case .tag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.plan h3 { margin: 0 0 6px; }
.plan .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.plan ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.bottom-cta { text-align: center; margin: 56px 0 0; padding: 36px 16px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.bottom-cta h2 { margin: 0 0 16px; font-size: 24px; }
.float-cta { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.float-cta { opacity: 0; pointer-events: none; transition: opacity .25s; }
.float-cta.show { opacity: 1; pointer-events: auto; } /* 首屏已有大按钮，滚过首屏再浮出来，别压住演示视频 */
@media (max-width: 720px) {
  .hero { padding: 34px 0 18px; }
  .hero-points { gap: 14px; font-size: 13px; }
  .cases { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.ws-form, .ws-side, .ws-menu { min-width: 0; }
.topnav { max-width: 100vw; box-sizing: border-box; }
.buy-box { border-top: 1px dashed var(--line); padding-top: 8px; }
.buy-box p { margin: 4px 0; }
.buy-qr { width: 150px; border-radius: 8px; display: block; margin-top: 6px; }
.consent.attention { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
#catAuto { flex-basis: 100%; }
.error-text.hint { color: var(--muted); }

/* 示例图（新用户不用找图就能试） */
.try-samples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sample-list { display: flex; gap: 8px; }
.sample { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 3px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11px; color: var(--muted); }
.sample img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; }
.sample:hover { border-color: var(--accent); }
/* 模板上的「版型还原」标 */
.template .t-tag { position: absolute; left: 6px; bottom: 52px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; z-index: 1; }
body:not([data-mode="garment"]) .template .t-tag { display: none; }
/* 常见问题 */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq dt { font-weight: 600; margin-top: 10px; font-size: 14px; }
.faq dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.faq-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.faq-grid h3 { margin: 0 0 6px; font-size: 16px; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 我的模特 */
.my-models { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.my-model { position: relative; display: inline-block; }
.my-model .del { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.template .t-new { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 600; z-index: 1; }
.template .t-motion { display: none; } /* 标题已经是动作名，角标重复还压字 */
body:not([data-mode="photo"]) .template .t-motion { display: none; }
body[data-mode="photo"] .template .t-tag { display: none; }

/* 高端模特图 */
.lookbook { align-self: stretch; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
.lb-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.lb-body { display: flex; gap: 12px; align-items: flex-start; }
.lb-pick { width: 110px; flex: none; cursor: pointer; }
.lb-pick:hover .preview { border-color: var(--accent); }
.lb-opts { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.lb-opts .cat-row { flex-wrap: wrap; }
.lb-samples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#lbGo { align-self: flex-start; }

.lib-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lib-tab { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.lib-tab.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.lib-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.lib-model { flex: none; width: 72px; border: 2px solid transparent; border-radius: 10px; padding: 2px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11px; color: var(--muted); }
.lib-model img { width: 64px; height: 114px; object-fit: cover; object-position: top; border-radius: 8px; background: var(--line); }
.lib-model.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.fit-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; font-size: 14px; }
.fit-row button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.fit-row button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.template.rec { position: relative; }
.template.rec::after { content: '推荐'; position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; z-index: 2; }
.scene-row label { white-space: nowrap; }

/* 首页：模特库 / 动作库横向条 */
.section-sub { text-align: center; color: var(--muted); margin: -8px auto 14px; max-width: 720px; font-size: 14px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; margin-bottom: 28px; }
.strip a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); font-size: 12px; }
.strip img { width: 96px; height: 170px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--line); }
.strip-video video { width: 124px; height: 220px; object-fit: cover; border-radius: 10px; background: #000; }
.strip small { color: var(--muted); font-size: 11px; }

.audio-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; font-size: 14px; }
.audio-row > span { color: var(--muted); }
.audio-row small { flex-basis: 100%; }
#uploadBlock, #motionBlock { display: contents; }

/* 首屏：左文右真实成片 */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; text-align: left; }
.hero-split h1, .hero-split p, .hero-split .hero-points, .hero-split .hero-cta { text-align: left; justify-content: flex-start; }
.hero-demo { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-demo .hd-in, .hero-demo .hd-out { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.hero-demo img { width: 120px; height: 213px; object-fit: cover; border-radius: 12px; }
.hero-demo video { width: 200px; height: 356px; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.hd-arrow { font-size: 26px; color: var(--accent); }
.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 30px; }
.steps-strip div { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.steps-strip b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.tool-card h3 small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
@media (max-width: 760px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split h1, .hero-split p, .hero-split .hero-points, .hero-split .hero-cta { text-align: center; justify-content: center; }
  .steps-strip { grid-template-columns: 1fr; }
}

/* 新用户激活 */
.quickstart { position: relative; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.qs-close { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; }
.qs-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.qs-steps { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.qs-steps li { display: flex; align-items: center; gap: 8px; }
.qs-steps li.done { color: var(--muted); }
.qs-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
.qs-steps li.done .qs-n { background: #2bb673; }
.qs-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.qs-bar div { height: 100%; width: 0; background: #2bb673; transition: width .4s; }
#qsGo { margin-right: 10px; }
.history-empty { text-align: center; padding: 18px 12px; }
.history-empty p { margin: 6px 0 10px; }
.first-win { border: 1px solid #2bb673; background: color-mix(in srgb, #2bb673 8%, var(--bg)); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.first-win p { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.fw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent.attention { outline: 2px solid var(--accent); border-radius: 8px; animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { outline-color: transparent; } }
/* 向导式创作页 */
.stepnav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stepnav li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 14px; }
.stepnav li b { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.stepnav li.on { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); font-weight: 600; }
.stepnav li.on b { background: var(--accent); border-color: var(--accent); color: #fff; }
.ws-menu-note { margin: 12px 8px 0; line-height: 1.5; }
section.wz { margin: 0 0 18px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); scroll-margin-top: 76px; }
section.wz > .step, section.wz .step-row .step { margin-top: 0; }
#s1 .lookbook, #s3 .lookbook { border: 0; padding: 0; margin: 0; background: transparent; }
#s1 .lb-pick { width: 150px; }
#s3 .upload-row { gap: 16px; }
#s3 .pickers .picker { width: 190px; }
@media (max-width: 760px) { .stepnav { flex-direction: row; overflow-x: auto; } .stepnav li span { white-space: nowrap; } .ws-menu-note { display: none; } }

.voice-sel{margin-left:6px;padding:4px 8px;border-radius:8px;border:1px solid var(--line,#ddd);background:transparent;color:inherit;font-size:13px}
.scene-row{margin-top:10px}.scene-row #sceneChips{display:inline-flex;gap:6px;flex-wrap:wrap}

/* 进阶（可选）折叠块 */
details.adv { margin: 0 0 18px; }
details.adv > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
details.adv[open] > summary { border-radius: 14px 14px 0 0; border-bottom: 0; margin-bottom: 0; }
details.adv[open] > section.wz { border-radius: 0; margin-bottom: 0; }
details.adv[open] > section.wz:last-child { border-radius: 0 0 14px 14px; }
.swap-row { margin-top: 10px; }

/* ② 来源切换：爆款模板 / 我自己拍的视频 */
.src-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; margin-left: 12px; }
.src-switch button { border: 0; background: transparent; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.src-switch button.active { background: var(--accent); color: #fff; }
.own-panel { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 6px 0 10px; }
.own-body { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.own-body .picker { width: 150px; flex: none; }
.own-tips { flex: 1; min-width: 240px; }
.own-tips p { margin: 0 0 6px; }
.own-tips ul { margin: 0 0 10px 18px; padding: 0; line-height: 1.6; }
.own-more { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.own-more .sample-list img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin-right: 4px; }
.bg-row #bgChips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cast-row { margin: 0 0 10px; }
@media (max-width: 640px) { .src-switch { margin-left: 0; margin-top: 6px; } }
body.src-own #advanced, body.src-own #templates, body.src-own #fitRow, body.src-own .multi-toggle, body.src-own #sceneRow, body.src-own input[name="quality"][value="fine"] { display: none !important; }
body.src-own label:has(> input[name="quality"][value="fine"]) { display: none; }

/* 首屏上传框 */
.hero-drop { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; max-width: 520px; padding: 12px 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 14px; cursor: pointer; text-align: left; background: color-mix(in srgb, var(--accent) 6%, transparent); transition: border-color .2s, background .2s; }
.hero-drop:hover, .hero-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hero-drop.busy { opacity: .6; pointer-events: none; }
.hero-drop .hd-icon { font-size: 22px; color: var(--accent); }
.hero-drop .hd-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hero-drop .hd-text small { color: var(--muted); font-size: 12px; }
/* 商家评价 */
.voices .voice { display: flex; gap: 12px; align-items: flex-start; }
.voices .voice video { width: 90px; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.voices .voice p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.voices .voice small { color: var(--muted); }

/* 2026-11-02 走查修正 */
.template .t-meta { white-space: nowrap; overflow: hidden; }
.ws-form .templates { gap: 8px; }
@media (min-width: 721px) { .float-cta { display: none !important; } } /* 桌面首屏和底部都有大按钮，浮动钮只给手机 */
@media (max-width: 1100px) { .side-preview { display: none !important; } } /* 窄屏时侧栏在表单下面，参考视频没人看还自动下载 */
@media (max-width: 760px) {
  .hero-copy { display: contents; } /* 手机：标题 → 效果演示 → 按钮 → 卖点 → 上传框 */
  .hero-split h1 { order: 1; margin-bottom: 8px; }
  .hero-demo { order: 2; margin: 4px 0 14px; }
  .hero-split p { order: 3; font-size: 14px; }
  .hero-cta { order: 4; }
  .hero-points { order: 5; }
  .hero-drop { order: 6; }
  .hero-demo img { width: 96px; height: 170px; }
  .hero-demo video { width: 168px; height: 299px; }
}
.modes label { flex-wrap: wrap; }
.modes label small { flex-basis: 100%; order: 5; padding-left: 22px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.45; }

/* 2026-11-02 创作页简化：三步 + 高级选项折叠 */
.auto-line { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.auto-line b { color: var(--text); }
.auto-line .link { font-size: 13px; }
#swapRow:not(.reveal), #fitRow:not(.reveal) { display: none !important; }
details.adv > summary small { font-weight: 400; }
details.adv .adv-body { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
details.adv .adv-body > section.wz { margin: 0; }
details.adv .adv-body .copy-box { margin-top: 0; }
details.adv .adv-body .scene-row { margin: 0; }
.submit-bar #submit { font-size: 17px; padding: 14px; }
.consent-note { margin: 8px 0 0; text-align: center; line-height: 1.5; }
.consent-note a { color: inherit; }
.ws-side #result { order: -2; }
.ws-side #history, .ws-side #historyEmpty { order: -1; }

/* 2026-11-03 短剧带货：剧本和爆款动作一样是 3 列缩略图网格（封面 = 该场景的 AI 上身图，有示例的悬停播放、▶ 看有声示例） */
.drama-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.drama-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.drama-tabs button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.drama-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drama-card { position: relative; min-width: 0; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); overflow: hidden; cursor: pointer; font: inherit; text-align: center; transition: border-color .15s, box-shadow .15s; }
.drama-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.drama-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.drama-card video, .drama-card img, .drama-card .dc-ph { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.drama-card .dc-ph { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; background: linear-gradient(170deg, #2a2a2e, #141416); }
.drama-card .play { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; cursor: pointer; }
.drama-card .play:hover { background: var(--accent); }
.drama-card .dc-sound { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.drama-card .dc-title { display: block; padding: 6px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.drama-card .dc-meta { display: block; padding: 2px 6px 8px; font-size: 11px; color: var(--muted); }
.drama-card.active .dc-title { color: var(--accent); }
.drama-pick { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--bg)); font-size: 13px; line-height: 1.5; }
.drama-pick b { color: var(--accent); }
body[data-mode="drama"] #swapAuto, body[data-mode="drama"] #swapRow, body[data-mode="drama"] .lb-opts .cat-row.swap-row { display: none !important; }
@media (max-width: 720px) { .drama-grid { gap: 8px; } }
.side-preview .sp-sound { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 2026-11-03 首页短剧入口 */
.drama-promo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; max-width: 960px; margin: 36px auto 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.drama-promo .section-title, .drama-promo .section-sub { text-align: left; margin-left: 0; margin-right: 0; }
.drama-promo .section-sub { margin: 6px 0 12px; }
.dp-scripts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.dp-scripts span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--text); }
.dp-demo { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-size: 12px; color: var(--muted); }
.dp-demo video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; background: #000; }
.pricing { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 760px) { .drama-promo { grid-template-columns: 1fr; padding: 16px; margin: 24px 16px 0; } .dp-demo video { width: 200px; } }
/* 2026-11-03 我的作品挪到工作台底部，通栏 */
.ws-bottom { grid-column: 1 / -1; display: grid; gap: 12px; }
.ws-bottom .history { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; }
.ws-bottom .history .history-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 720px) { .ws-bottom .history { padding: 10px; } .ws-bottom .history .history-list { grid-template-columns: 1fr; } }

/* 2026-11-03 对镜自拍系列：模板网格里的分组标题（整行），hot = 排最前的主推系列 */
.ws-form .templates .t-group { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; margin: 6px 0 -2px; padding-left: 10px; border-left: 3px solid var(--line); min-width: 0; }
.ws-form .templates .t-group b { font-size: 14px; line-height: 1.3; }
.ws-form .templates .t-group small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ws-form .templates .t-group.hot { border-left-color: var(--accent); }
.ws-form .templates .t-group.hot b { color: var(--accent); }
.ws-form .templates .t-group:first-child { margin-top: 0; }
.ws-form .templates.collapsed .t-group.more { display: none; }

/* 2026-11-04 示例多版本切换 */
.ver-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.ver-chips button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.ver-chips button.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.drama-card .dc-vers { position: absolute; top: 34px; left: 6px; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }

.ver-chips .ver-dl { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--accent); text-decoration: none; }
.cmp-card .cmp-dl { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--accent); text-decoration: none; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; }
