@import url("../design-tokens.css");

/* ===== 帮剪AI · 手机创作页 统一样式（UI 调整版 v2）=====
   保留配色基调：#b8ef68 青柠主强调 / #253128 文字 / #fafbf8 页面浅底 / #eef1e9 外部背景 / #e8ece3 边线 / #7a8279 辅助
   字号体系：页面标题 22 / 分区 16 / 正文 15 / 辅助 13 / 最小标签 11-12；触控目标 ≥44 */
:root{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  color:#253128;background:#eef1e9;
  --green:var(--bj-brand-lime);--ink:#253128;--muted:#7a8279;--line:#e8ece3;--paper:#fafbf8;--bg:#eef1e9;
  --green-deep:#6f9a3d;--green-soft:#eef5e2;--green-line:#dce7cf;
  --radius-lg:18px;--radius-md:var(--bj-radius-control);--radius-sm:var(--bj-radius-list);
  --shadow-card:0 1px 2px rgba(37,49,40,.04),0 10px 26px rgba(37,49,40,.06);
  --shadow-float:var(--bj-shadow-overlay);
  font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0;font-size:var(--bj-text-body);line-height:1.6}
button,input,textarea,select{font:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer;border:0;color:inherit;background:none}
a{color:inherit;text-decoration:none}
button:disabled{opacity:.38;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #6a9e32;outline-offset:3px}
[hidden]{display:none!important}
.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}

/* ===== 桌面审阅栏 ===== */
.review-rail{position:fixed;left:max(5vw,calc((100vw - 1200px)/2));top:46px;width:310px;bottom:35px;display:flex;flex-direction:column}
.wordmark{display:flex;align-items:center;gap:5px;font-size:22px;font-weight:800;letter-spacing:-.5px}
.wordmark>span:last-child{color:#719d41}
.logo{width:34px;height:36px;background:var(--green);display:grid;place-items:center;border-radius:11px;font-size:21px;margin-right:5px;transform:rotate(-4deg)}
.rail-intro{margin:56px 0 26px}
.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:600;color:#7b8b71}
.rail-intro h1{font-size:28px;font-weight:600;line-height:1.6;letter-spacing:.5px;margin:14px 0}
.rail-intro p{color:#83907d;font-size:14px;line-height:1.9}
.review-rail nav{display:grid;gap:10px}
.review-step{display:flex;align-items:center;gap:14px;color:#929c8c;font-size:13px}
.review-step span{font-size:11px;width:27px;height:27px;border:1px solid #d5ddcc;display:grid;place-items:center;border-radius:50%}
.review-step.active{color:#3c592d}
.review-step.active span{background:var(--green);border-color:var(--green)}
.rail-foot{margin-top:auto;padding-top:24px;font-size:12px;color:#73836b}
.preview-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7fa451;margin-right:5px}
.rail-foot p{line-height:1.8;font-size:12px;max-width:265px;color:#8b9684}
.rail-foot a{display:inline-block;margin-top:5px;border-bottom:1px solid #b5c2a7;padding-bottom:4px}

/* ===== 手机壳与预览条 ===== */
:root{--preview-height:calc(100dvh - 64px)}
:root{
  --layout-safe-top:env(safe-area-inset-top,0px);
  --layout-safe-right:env(safe-area-inset-right,0px);
  --layout-safe-bottom:env(safe-area-inset-bottom,0px);
  --layout-safe-left:env(safe-area-inset-left,0px);
}
:root[data-native-window]{--layout-safe-top:0px;--layout-safe-right:0px;--layout-safe-bottom:0px;--layout-safe-left:0px}
:root[data-native-window] .review-rail{display:none}
:root[data-native-window] .phone{width:100%;max-width:none;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}
.phone{position:relative;max-width:430px;min-height:calc(100dvh - 64px);height:var(--preview-height);background:var(--paper);margin:32px auto 32px calc(50% - 35px);border:1px solid #dde3d5;border-radius:26px;box-shadow:0 20px 70px #42532d12;overflow:clip}
.preview-strip{height:29px;display:flex;align-items:center;gap:10px;padding:0 20px;background:#e8edde;font-size:10px;color:#6d7c60;letter-spacing:1px}
.preview-strip span{margin-left:auto;letter-spacing:0}
.preview-strip button{font-size:10px;text-decoration:underline;padding:5px 0 5px 6px}

/* ===== 顶部导航 ===== */
.app-header{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:8px;background:var(--paper);position:sticky;top:0;z-index:8}
.app-header .wordmark{font-size:20px}
.app-header .logo{width:28px;height:30px;font-size:17px;border-radius:9px}
.app-header>.icon-button{margin-left:-8px}
.header-title{font-size:16px;font-weight:600;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.version-pill{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e1e6da;border-radius:20px;padding:10px 12px;font-size:12px;font-weight:500;white-space:nowrap;min-height:40px;box-shadow:0 1px 3px rgba(37,49,40,.05)}
.version-pill .icon{width:13px;height:13px;margin-left:2px;color:#7a8279}
.merchant-dot,.personal-dot{width:7px;height:7px;border-radius:50%;background:#8eae53;flex-shrink:0}
.personal-dot{background:#a89ac8}
.icon-button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;color:#56643f}

/* ===== 页面骨架 ===== */
#app{height:calc(100% - 29px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
#app::-webkit-scrollbar{display:none}
.page{padding:14px 20px 120px}
.page-title{margin:6px 0 22px}
.page-title h1{font-size:var(--bj-text-page-title);line-height:1.45;letter-spacing:-.2px;font-weight:600;margin:8px 0}
.page-title p{font-size:var(--bj-text-secondary);line-height:1.75;color:var(--muted);margin:6px 0}
.flow-steps{display:flex;padding:0 20px 16px;gap:0;border-bottom:1px solid var(--line);position:sticky;top:56px;z-index:7;background:var(--paper)}
.flow-steps>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#a6ada1;flex:1;white-space:nowrap;overflow:hidden}
.flow-steps>span:last-child{flex:0 0 auto}
.flow-steps b,.flow-steps .icon{font-size:11px;width:20px;height:20px;border:1px solid #e0e4da;border-radius:50%;display:grid;place-items:center;font-weight:400;flex-shrink:0}
.flow-steps .current{color:#537339;font-weight:500}
.flow-steps .current b{background:#dfefca;border-color:#dfefca}
.flow-steps .done{color:#6a8c48}
.flow-steps .done .icon{background:#eef5e5;border:0}

/* ===== 按钮 ===== */
.button{width:100%;min-height:var(--bj-mobile-primary-height);border-radius:var(--bj-radius-control);display:flex;align-items:center;justify-content:center;gap:8px;font-size:var(--bj-text-body);font-weight:600;padding:var(--bj-space-list) var(--bj-space-card);text-align:center;transition:transform .06s,background .15s}
.button:active{transform:scale(.985)}
.button .icon{width:19px;height:19px}
.primary{background:var(--green);color:#293b1c}
.primary:hover{background:#aee15f}
.secondary{border:1px solid #dce2d5;background:#fff;color:#4d5f3c}
.secondary:hover{background:#f7f9f3}
.white{background:#fff;color:#273326;width:auto}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#556c3e;font-size:var(--bj-text-secondary);font-weight:500;min-height:var(--bj-touch-target);padding:6px 4px;border-radius:var(--bj-radius-list)}
.text-button .icon{width:15px;height:15px}
.inline-link{color:#648347;font-size:13px;font-weight:500;padding:8px 4px;min-height:40px;display:inline-flex;align-items:center;gap:3px}
.inline-link .icon{width:14px;height:14px}
.muted{font-size:13px;color:var(--muted);line-height:1.75}
.center{text-align:center}
.full{width:100%}

/* ===== 表单 ===== */
.field{display:flex;flex-direction:column;gap:8px;margin:20px 0;font-size:15px;font-weight:500}
.field small{font-size:12px;color:#929988;font-weight:400}
.field>span small{float:right}
.field input,.field textarea,.trim-fields input{width:100%;background:#fff;border:1px solid #dfe5d7;border-radius:12px;padding:14px;color:var(--ink);font-size:16px;line-height:1.7;min-width:0}
.field textarea{resize:vertical;min-height:132px}
.field input::placeholder,.field textarea::placeholder{color:#a5ad9d;font-size:14px}
.scene-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.scene-option{border:1px solid #e2e7db;border-radius:12px;background:#fff;min-height:56px;text-align:left;display:flex;align-items:center;gap:9px;padding:12px;font-size:14px}
.scene-option>.icon:first-child{color:#849371;width:20px;height:20px}
.scene-option>.icon:last-child:not(:first-child){width:14px;height:14px;margin-left:auto;color:#66863d}
.scene-option.selected{border-color:#97bd6b;background:#f1f8e9}
.notice{display:flex;align-items:flex-start;gap:9px;background:#f0f4e9;color:#66775a;font-size:13px;line-height:1.7;border-radius:12px;padding:12px 14px;margin:16px 0}
.notice>.icon{width:17px;height:17px;margin-top:2px;flex-shrink:0}
.notice.warning{color:#9a7048;background:#faf0e3}
.suggestion{margin-top:-11px;display:flex;align-items:center;justify-content:space-between;font-size:12px}
.suggestion>span{color:#8e9a83;display:flex;align-items:center;gap:5px}
.suggestion .icon{width:15px;height:15px}

/* ===== 首页（App 式：问候 + 主入口 + 资料/偏好 + 最近项目）===== */
.home-page{padding-top:8px;padding-bottom:110px}
.home-topbar{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:8px 2px 14px}
.greeting{font-size:14px;font-weight:600;color:#3f4a37;display:flex;align-items:center;gap:8px}
.home-status{display:flex;align-items:center;gap:10px;font-size:12px;color:#8d9980;white-space:nowrap}
.home-status b{color:#667a53;font-weight:600;margin-left:3px}
.create-entry{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:linear-gradient(135deg,#f4fae9,#eaf5dc);border:1px solid #dbe9cb;border-radius:var(--radius-lg);padding:16px 16px;margin:2px 0 12px;box-shadow:var(--shadow-card)}
.create-entry .create-icon{width:48px;height:48px;border-radius:14px;background:var(--green);display:grid;place-items:center;color:#293b1c;flex-shrink:0}
.create-entry .create-icon .icon{width:26px;height:26px}
.create-entry .create-text{flex:1;min-width:0;display:grid;gap:3px}
.create-entry .create-text b{font-size:17px;font-weight:600;color:#2c3b20}
.create-entry .create-text small{font-size:12px;color:#7c9172;line-height:1.6}
.create-entry .create-arrow{width:34px;height:34px;border-radius:50%;background:#fff;display:grid;place-items:center;color:#6f8a4c;flex-shrink:0;font-size:16px}
.create-entry.entry-secondary{background:#fff;border-color:#e2e9da}
.create-entry.entry-secondary .create-icon{background:#eef2e6;color:#6c7b55}
.create-entry.entry-secondary .create-icon.purple{background:#ece7f4;color:#9783b3}
.hero-scene{height:140px;border-radius:16px;position:relative;overflow:hidden;background:#d5decb}
.hero-scene>.scene-art{width:100%;height:100%;object-fit:cover}
.scene-art{width:100%;height:100%;display:block}
.scene-caption{position:absolute;bottom:12px;left:16px;z-index:1;color:#fff;display:grid;gap:4px}
.scene-caption span{font-size:14px;font-weight:500}
.scene-caption b{font-size:8px;font-weight:400;letter-spacing:2px;opacity:.6}
.floating-label{position:absolute;top:12px;right:12px;border:1px solid #ffffff6b;background:#ffffffe0;backdrop-filter:blur(8px);border-radius:18px;display:flex;align-items:center;gap:5px;font-size:10px;padding:6px 10px}
.floating-label .icon{width:13px;height:13px}
.home-title{font-size:26px;line-height:1.55;font-weight:600;letter-spacing:.2px;margin:12px 0 6px}
.home-desc{font-size:13px;color:#8b9583;margin:0 0 18px}
.home-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8d9980;padding:12px 1px}
.home-meta b{color:#667a53;font-weight:600;margin-left:5px}
.home-meta .icon{width:13px;height:13px}
.light-status{display:flex;gap:6px;align-items:center;font-size:12px;color:#89927f;padding:9px 0 15px;border-bottom:1px solid var(--line)}
.light-status>.icon{width:14px;height:14px;flex-shrink:0}
.light-status .inline-link{margin-left:auto;font-size:12px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}
.section-heading h2{font-size:16px;font-weight:600;margin:0;color:#2e3a27}
.section-heading .muted{font-size:12px}
.empty-state{border:1px dashed #dce4d2;border-radius:14px;padding:22px 16px;display:flex;gap:13px;align-items:center;background:#fcfdf9}
.empty-state>.icon{color:#a6b493;width:28px;height:28px;flex-shrink:0}
.empty-state strong{font-size:14px;font-weight:600;color:#4a5740}
.empty-state p{font-size:13px;color:#9aa48f;margin:6px 0 0}
.inspiration{display:flex;justify-content:space-between;align-items:center;background:#f0f3e9;border-radius:14px;padding:13px 15px;margin-top:20px;gap:10px}
.inspiration .eyebrow{font-size:10px;letter-spacing:1px}
.inspiration h3{font-size:14px;font-weight:500;line-height:1.7;margin:7px 0 0}
.inspiration>div:last-child{width:64px;flex-shrink:0;overflow:hidden;border-radius:9px;height:84px}
.inspiration .text-button{font-size:12px}

/* ===== 底部导航 ===== */
.bottom-nav{position:sticky;bottom:0;background:#fffffff8;backdrop-filter:blur(14px);border-top:1px solid var(--line);display:flex;padding:10px 12px 14px;z-index:4;margin-top:-78px}
.bottom-nav button{width:25%;display:flex;align-items:center;flex-direction:column;gap:4px;color:#9aa29a;font-size:12px;min-height:48px;border-radius:12px}
.bottom-nav button .icon{width:23px;height:23px}
.bottom-nav .active{color:#4d6a33;font-weight:500}
.bottom-nav .active .icon{stroke-width:2}

/* ===== 首页最近项目 ===== */
.recent-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:11px 2px;border-bottom:1px solid var(--line)}
.recent-art{width:56px;height:68px;border-radius:8px;overflow:hidden;flex-shrink:0}
.recent-card h3{font-size:14px;font-weight:500;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 6px;color:#33402c}
.recent-card p{font-size:12px;color:#8d9883;margin:0}
.recent-card>.icon{width:16px;height:16px;margin-left:auto;color:#a7b09d}

/* ===== 聊天/文案页 ===== */
.copy-context{border-left:2px solid #b5cf94;padding:1px 0 1px 12px;margin-bottom:20px}
.copy-context>span{font-size:12px;color:#8b9a79}
.copy-context p{font-size:14px;color:#6b7960;line-height:1.7;margin:7px 0}
.copy-card{border:1px solid #dfe7d5;border-radius:16px;background:#fff;overflow:hidden;box-shadow:var(--shadow-card)}
.card-label{display:flex;gap:7px;align-items:center;border-bottom:1px solid var(--line);padding:13px 15px;font-size:13px;color:#5f7a44;font-weight:500}
.card-label .icon{width:17px;height:17px}
.card-label span{margin-left:auto;font-size:12px;color:#a2ab99;font-weight:400}
.copy-card textarea{display:block;border:0;background:transparent;padding:16px;width:100%;font-size:17px;line-height:2;resize:vertical;color:#35422d;min-height:260px}
.copy-meta{display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-top:1px solid var(--line);font-size:12px;color:#9ba58f}
.copy-meta .text-button{font-size:12px}
.reading-hint{font-size:13px;color:#7d8b72;display:flex;align-items:center;gap:7px;margin:18px 0}
.reading-hint .icon{width:17px;height:17px}
.loading-card{padding:70px 10px;text-align:center;color:#8d9a81}
.loading-card h3{font-size:15px;font-weight:500;color:#4f5c46}
.loading-card p{font-size:13px}
.spinner{width:30px;height:30px;border:2px solid #e0e8d7;border-top-color:#7caa47;border-radius:50%;margin:0 auto 20px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* ===== 声音选择 ===== */
.voice-card{position:relative;display:block;text-align:left;border:1px solid #e0e5d8;background:#fff;border-radius:var(--radius-lg);padding:18px;width:100%;margin:13px 0;box-shadow:var(--shadow-card)}
.voice-card.selected{border-color:#9cbf77;background:#f5f9ee}
.voice-top{display:flex;justify-content:space-between;align-items:center}
.choice-icon{display:grid;place-items:center;width:42px;height:42px;background:#e5efda;border-radius:13px;color:#749354}
.choice-icon.purple{background:#ede8f4;color:#9986b2}
.tag{font-size:11px;color:#769250;border:1px solid #d9e6ca;border-radius:10px;padding:4px 9px}
.voice-card h2,.version-card h2{font-size:18px;font-weight:600;margin:13px 0 6px}
.voice-card p,.version-card p{font-size:13px;color:#8b9680;line-height:1.75;margin:0 0 11px}
.voice-card small,.version-card small{font-size:12px;color:#9ca68f;line-height:1.75}
.radio-mark{position:absolute;right:18px;bottom:18px;width:22px;height:22px;border:1px solid #dbe2d2;border-radius:50%;display:grid;place-items:center;background:#fff}
.radio-mark .icon{width:14px;height:14px}
.selected .radio-mark{background:#b8df87;border-color:#b8df87;color:#4f6c2e}
.mini-prompter{background:#e5ebdb;border-radius:12px;padding:14px 16px;margin:14px 0;display:grid;gap:4px;font-size:16px}
.mini-prompter span{color:#a6b396}
.mini-prompter b{color:#6d8655;font-weight:500}
.mini-prompter i{font-size:12px;letter-spacing:.5px;color:#8fa37a;font-style:normal;margin-top:6px}
.voice-row{background:#fff;border:1px solid #e2e7da;border-radius:14px;display:flex;align-items:center;margin:11px 0;padding:7px}
.voice-row.selected{border-color:#a0c17b;background:#f3f8ec}
.voice-select{display:flex;align-items:center;gap:12px;text-align:left;flex:1;padding:6px;min-height:48px}
.voice-select>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}
.voice-select b{font-size:14px;font-weight:500;color:#3a4632}
.voice-select small{font-size:12px;color:#95a086}
.voice-select>.icon{width:16px;height:16px;color:#789852}
.voice-avatar{width:38px;height:44px;background:#e4e6d8;border-radius:15px;display:grid;place-items:center;color:#929879;flex-shrink:0}
.v1{background:#e4e8ec;color:#83929a}
.v2{background:#f2e4d5;color:#b29679}
.v3{background:#e7e3ed;color:#a79bb6}

/* ===== 录制页 ===== */
.record-page{background:#1e261f;color:#f9fbf5;min-height:100%}
.camera-stage{height:clamp(300px,44dvh,420px);position:relative;background:#27352b;overflow:hidden}
.camera-stage>video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.camera-placeholder{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 20%,#415541,#253328 75%);display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;padding:0 30px}
.camera-placeholder>.icon{width:46px;height:46px;color:#b9cca5}
.camera-placeholder h2{font-size:18px;font-weight:500;margin:18px 0 5px}
.camera-placeholder p{color:#a4b79c;font-size:13px;line-height:1.85;text-align:center;margin-bottom:24px}
.camera-badge{position:absolute;top:16px;left:18px;display:flex;gap:6px;align-items:center;font-size:12px;padding:7px 10px;border-radius:8px;background:#16201766;color:#e2ecd9}
.camera-badge .icon{width:14px;height:14px}
.camera-flip{position:absolute;top:14px;right:16px;z-index:3;border-radius:8px;background:#12201985;border:1px solid #a0b49344;color:#d1e2c3;padding:8px 12px;font-size:12px;min-height:36px}
.prompter-viewport{position:absolute;top:60px;left:18px;right:18px;height:150px;background:#0d150d7a;border-radius:14px;overflow:hidden;padding:16px 18px;pointer-events:none;mask-image:linear-gradient(transparent,black 10%,black 85%,transparent)}
#prompter{font-size:24px;line-height:1.9;font-weight:500;white-space:pre-wrap;color:#e9f4cf}
.record-status{position:absolute;bottom:16px;left:20px;right:20px;text-align:center;font-size:13px;min-height:20px;color:#d6e3cc}
.record-tools{padding:20px 22px 20px;text-align:center}
.record-tools>label{display:flex;align-items:center;gap:8px;font-size:13px;color:#b6c5aa;flex-wrap:wrap;text-align:left;min-height:44px}
.record-tools>label>.icon{width:16px;height:16px}
.record-tools label span{margin-left:auto;font-size:13px}
.record-tools input{width:100%;accent-color:var(--green);margin:8px 0}
.record-buttons{display:flex;align-items:center;justify-content:space-around;margin-top:16px}
.record-side{display:grid;justify-items:center;gap:6px;font-size:12px;min-width:56px;min-height:56px;color:#e1e9d9}
.record-side .icon{width:24px;height:24px}
.record-main{width:74px;height:74px;border:2px solid #bbc9ae;border-radius:50%;display:grid;place-items:center}
.record-main>span{width:54px;height:54px;background:#d7efb3;border-radius:50%;transition:.2s}
.record-main.recording>span{width:30px;height:30px;border-radius:8px;background:#e7a38d}
.record-help{font-size:12px;color:#9cac91;margin:16px 0 8px}
.record-tools>.text-button{color:#c7dfa9;font-size:12px}
.record-tools .muted{color:#71816c;font-size:12px}

/* ===== 素材/预览 ===== */
.portrait-player{position:relative;aspect-ratio:9/12.5;max-height:470px;background:#d5deca;border-radius:16px;overflow:hidden;margin:0 auto}
.portrait-player>img,.portrait-player>video,.portrait-player>.scene-art{width:100%;height:100%;object-fit:cover}
.demo-label{position:absolute;top:14px;left:14px;font-size:11px;color:#fff;background:#24341f9c;border-radius:8px;padding:7px 10px}
.media-summary{display:flex;justify-content:space-between;color:#859775;font-size:13px;padding:16px 0 24px}
.media-summary .icon{width:17px;height:17px}
.button-row{display:flex;gap:11px}
.button-row>.button{flex:1;font-size:14px;padding-left:10px;padding-right:10px}
.asset-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#7e8b72}
.asset-toolbar b{color:#597d35;margin:0 3px}
.asset-toolbar .text-button{font-size:13px}
.asset-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin:14px 0 24px}
.asset-card{text-align:left;padding:0;min-width:0}
.asset-picture{aspect-ratio:1;position:relative;border:2px solid transparent;border-radius:14px;overflow:hidden;background:#e7eddf}
.asset-picture>.scene-art,.asset-picture>img,.asset-picture>video{width:100%;height:100%;object-fit:cover}
.asset-card.selected .asset-picture{border-color:#96b96c}
.asset-kind{position:absolute;left:7px;bottom:8px;display:flex;gap:4px;align-items:center;background:#20311c6e;color:#fff;padding:5px 7px;border-radius:6px;font-size:11px}
.asset-kind .icon{width:13px;height:13px}
.asset-number{position:absolute;right:8px;top:8px;width:24px;height:24px;background:#ffffffc9;border:1px solid #ffffffbd;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#4c5a3e}
.selected .asset-number{background:var(--green);border-color:var(--green)}
.asset-card>strong{display:block;font-weight:500;font-size:13px;margin:9px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#39442f}
.asset-card>small{font-size:12px;color:#9aa48d}
.selected-row{display:flex;align-items:center;border-bottom:1px solid var(--line);min-height:52px}
.order-index{font-size:12px;color:#a0ae91;width:30px}
.selected-name{flex:1;text-align:left;display:flex;align-items:center;gap:5px;font-size:13px;padding:10px 0;min-width:0;overflow-wrap:anywhere}
.selected-name .icon{width:13px;height:13px;flex-shrink:0;color:#a7b29b}
.selected-row .icon-button{width:40px;height:44px}
.selected-row .icon-button .icon{width:18px;height:18px}
.trim-fields{display:flex;gap:14px}
.trim-fields .field{flex:1;min-width:0}
.short-player{aspect-ratio:1}

/* ===== 剪辑工作台 ===== */
.editor-page{padding-top:16px}
.editor-preview{position:relative;aspect-ratio:9/11;max-height:340px;margin:auto;overflow:hidden;border-radius:14px;background:#dfe5d6;width:75%}
.editor-preview>img,.editor-preview>video,.editor-preview>.scene-art{width:100%;height:100%;object-fit:cover}
.preview-top-label{position:absolute;left:10px;top:10px;color:#f5faee;background:#243a1f66;border-radius:6px;padding:5px 9px;font-size:10px}
.preview-subtitle{position:absolute;bottom:20px;left:14px;right:14px;text-align:center;font-size:15px;color:white;text-shadow:0 1px 5px #000;line-height:1.7;white-space:pre-wrap}
.preview-play{position:absolute;top:45%;left:calc(50% - 23px);width:46px;height:46px;border:1px solid #ffffff80;background:#23371f3b;border-radius:50%;display:grid;place-items:center;color:#fff}
.editor-playbar{display:flex;justify-content:space-between;margin:14px 0;font-size:12px;color:#5f7054}
.editor-playbar i{font-style:normal;color:#b0b9a6;margin-left:5px}
.timeline{border:1px solid #e2e7da;border-radius:14px;padding:12px 10px;background:#fff;box-shadow:var(--shadow-card)}
.ruler{display:flex;justify-content:space-between;margin-left:44px;font-size:11px;color:#adb6a1;border-bottom:1px dashed #e4e9dc;padding-bottom:7px;margin-bottom:8px}
.timeline-row{display:flex;align-items:center;gap:8px;margin:8px 0;min-width:0}
.timeline-row>label{font-size:11px;color:#9ca88e;width:32px;flex-shrink:0}
.clips{display:flex;gap:4px;flex:1;overflow:hidden}
.clips>button{height:56px;flex:1;position:relative;min-width:0;overflow:hidden;padding:0;border-radius:6px}
.clips>button>svg,.clips>button>video,.clips>button>img{height:100%;width:100%;object-fit:cover}
.clips span{font-size:10px;position:absolute;bottom:3px;left:4px;right:4px;color:#fff;text-shadow:0 0 4px #17200f;overflow:hidden;white-space:nowrap}
.audio-track{height:32px;flex:1;background:#eaf2dd;color:#7a9655;border-radius:6px;display:flex;align-items:center;gap:5px;font-size:12px;padding:6px;overflow:hidden}
.audio-track>.icon{width:14px;height:14px;flex-shrink:0}
.waveform{color:#bed19e;white-space:nowrap;overflow:hidden;letter-spacing:2px;margin-left:4px;font-size:11px}
.subtitle-track{flex:1;background:#f3efdf;color:#a89a5f;height:30px;border-radius:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;padding:6px 8px}
.edit-options{display:flex;gap:10px;margin-top:16px}
.edit-options>label{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #e1e7d9;border-radius:11px;background:#fff;padding:12px 11px;flex:1;font-size:13px;min-width:0}
.edit-options input{accent-color:#85a955;width:18px;height:18px}
.edit-options select{font-size:13px;border:0;background:none;color:#6d7f58;max-width:100px;padding:4px 0}
.editor-link-row{display:flex;justify-content:space-between}
.editor-link-row .text-button{font-size:13px}
.editor-page>.notice{margin:10px 0}
.editor-page>.muted{font-size:12px}
.background-track-row{display:flex;align-items:center;gap:6px;background:#eeeaf5;border-radius:9px;color:#9e91b5;font-size:12px;padding:9px 11px;margin-top:12px}
.background-track-row>.icon{width:14px;height:14px}
.background-track-row .inline-link{margin-left:auto;font-size:12px}

/* ===== 生成进度 ===== */
.render-page{text-align:center;padding-top:34px}
.render-emblem{height:74px;width:74px;background:#edf4e1;border:1px solid #dfeace;border-radius:24px;display:grid;place-items:center;color:#8aab5f;margin:10px auto 26px;transform:rotate(-5deg)}
.render-emblem>.icon{width:33px;height:33px}
.render-emblem.failed{background:#f7eddf;color:#b99b74;border-color:#eee2d1}
.render-page .page-title h1{font-size:21px}
.render-page .page-title p{font-size:13px}
.progress-track{height:7px;background:#e9eede;border-radius:4px;overflow:hidden;margin-top:28px}
.progress-track>div{height:100%;background:#a6d370;border-radius:4px;transition:width .3s}
.progress-value{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#91a17e;margin-top:9px}
.progress-value b{font-weight:600}
.render-stages{padding:22px 0;text-align:left}
.render-stages>div{display:flex;align-items:center;gap:13px;min-height:72px}
.render-stages>div>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dce5d1;border-radius:50%;color:#acb99b;font-size:12px}
.render-stages b{font-size:13px;font-weight:500;color:#7e8f6a}
.render-stages small{display:block;font-size:12px;color:#b0bba1;margin-top:5px}
.render-stages i{margin-left:auto;display:none;color:#81a15b}
.render-stages i .icon{width:17px;height:17px}
.render-stages .complete i{display:block}
.render-stages .complete>span{background:#e5f1d5;border-color:#e5f1d5;color:#7e9e56}
.render-stages .active b{color:#4d702f}
.render-stages .active>span{border-color:#90b66a;color:#6f9449}

/* ===== 成片结果 ===== */
.success-line{display:flex;gap:6px;align-items:center;font-size:13px;color:#6f8f4e;margin:8px 0 18px}
.success-line>.icon{width:18px;height:18px;background:#e5efdb;border-radius:50%;padding:2px}
.result-page .page-title{margin-bottom:18px}
.result-page .page-title h1{font-size:21px}
.result-page .page-title p{font-size:13px}
.result-poster{max-height:350px;aspect-ratio:9/11;width:80%}
.result-facts{display:flex;justify-content:center;gap:14px;color:#97a38b;font-size:12px;margin:16px 0 22px}
.result-facts span+span:before{content:"·";margin-right:14px}
.window-card{display:flex;align-items:flex-start;gap:11px;background:#eef4e5;border-radius:14px;padding:14px 15px;margin:14px 0 20px}
.window-card>.icon{color:#8ba667;width:24px;height:24px;flex-shrink:0;margin-top:1px}
.window-card strong{font-size:14px;font-weight:600;color:#5f7647}
.window-card p{font-size:12px;color:#93a581;margin:6px 0 0;line-height:1.7}
.window-card p b{font-weight:600;color:#6f8c4b}
.result-page>.full{margin-top:13px}

/* ===== 登录 / 欢迎 / 版本 ===== */
.login-page{padding-top:32px}
.login-mark{width:56px;height:56px;background:#e2efce;border-radius:17px;display:grid;place-items:center;color:#739b46;margin:8px 0 26px}
.login-mark .icon{width:30px;height:30px}
.login-page .page-title h1{font-size:23px}
.input-action{display:flex;border:1px solid #dfe5d7;border-radius:12px;background:#fff;align-items:center;padding-right:10px}
.input-action input{border:0;flex:1;min-width:0}
.input-action .text-button{font-size:12px;white-space:nowrap}
.consent{display:flex;gap:7px;align-items:flex-start;font-size:12px;color:#909d82;line-height:1.7;margin:26px 0 18px}
.consent input{accent-color:#8faf5e;margin-top:5px;width:17px;height:17px;flex-shrink:0}
.consent .inline-link{font-size:12px;padding:3px}
.login-page>.muted{margin-top:18px}
.version-card{position:relative;text-align:left;background:#fff;border:1px solid #dfe7d5;border-radius:16px;width:100%;padding:18px;margin:10px 0;box-shadow:var(--shadow-card)}
.version-card.chosen{background:#f2f8e9;border-color:#9cbd78}
.chips{display:flex;gap:6px;margin:13px 0}
.chips span{font-size:11px;border:1px solid #dce6d2;color:#8b9f76;padding:4px 9px;border-radius:7px}

/* ===== 弹窗 / 提示 ===== */
dialog{border:1px solid #dce4d1;border-radius:22px;background:#fafcf6;color:var(--ink);width:min(400px,calc(100vw - 28px));padding:24px;max-height:85dvh;box-shadow:var(--shadow-float)}
dialog::backdrop{background:#1d29195c;backdrop-filter:blur(3px)}
dialog h2{font-size:20px;font-weight:600;margin:6px 0 12px}
dialog h3{font-size:15px;font-weight:500}
dialog p{color:#78876b;line-height:1.85;font-size:14px}
dialog .button{margin-top:12px;font-size:14px}
dialog .modal-close{float:right;width:34px;height:34px;display:grid;place-items:center;color:#98a68d;border-radius:10px}
dialog .version-choice{width:100%;border:1px solid #e1e8d7;border-radius:13px;margin:8px 0;padding:15px;text-align:left;background:#fff;font-size:14px;min-height:60px}
dialog .version-choice small{display:block;color:#99a88c;font-size:12px;line-height:1.7;margin-top:6px}
dialog .version-choice.selected{border-color:#9ec17a;background:#f0f7e7}
.modal-list{display:grid;gap:7px;margin:12px 0}
.modal-list>button{border:1px solid #e2e9d8;border-radius:10px;background:white;text-align:left;padding:13px;font-size:13px;line-height:1.7;overflow-wrap:anywhere;min-height:44px}
.modal-list small{display:block;color:#99a98b;font-size:12px}
.modal-list p{font-size:13px}
.settings-field{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin:16px 0;gap:10px}
.settings-field select,.settings-field input{padding:9px;border:1px solid #dce5d2;border-radius:9px;background:#fff;color:#6d8654;max-width:170px;font-size:14px}
.settings-field input[type=number]{width:110px}
#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#293d27ed;color:white;max-width:min(90vw,400px);padding:13px 20px;border-radius:13px;font-size:14px;line-height:1.7;z-index:30;text-align:center;box-shadow:0 4px 20px #16231422}

/* ===== 宽屏适配（桌面审阅） ===== */
@media(min-width:1450px){.phone{margin-left:calc(50% - 100px)}.review-rail{left:calc(50% - 570px)}}
@media(max-width:960px){.review-rail{width:240px;left:4vw}.rail-intro h1{font-size:24px}.phone{margin-left:calc(50% - 60px)}}
@media(max-width:740px),(orientation:landscape) and (max-height:500px){
  body{background:var(--paper)}
  .review-rail{display:none}
  .phone{margin:0 auto;min-height:100dvh;border:0;border-radius:0;max-width:480px;box-shadow:none;
    padding:var(--layout-safe-top) var(--layout-safe-right) var(--layout-safe-bottom) var(--layout-safe-left)}
  :root{--preview-height:100dvh}
  .flow-steps{top:56px}
  .page{padding-left:20px;padding-right:20px}
  .action-footer{padding-left:20px;padding-right:20px}
  .camera-stage{height:clamp(280px,40dvh,380px)}
  #toast{bottom:calc(120px + var(--layout-safe-bottom))}
}
@media(orientation:landscape) and (max-height:500px){.phone{max-width:none}}
body[data-preview-merchant] #modal{
  position:fixed;inset:var(--layout-safe-top) var(--layout-safe-right) var(--layout-safe-bottom) var(--layout-safe-left);
  max-width:calc(100% - var(--layout-safe-left) - var(--layout-safe-right) - 24px);
  max-height:calc(100dvh - var(--layout-safe-top) - var(--layout-safe-bottom) - 20px);
}
body[data-preview-merchant] #modal .modal-close{width:44px;height:44px}
@media(max-width:360px){
  .page{padding-left:16px;padding-right:16px}
  .app-header{padding-left:14px;padding-right:14px}
  .page-title h1{font-size:20px}
  .flow-steps{padding-left:16px;padding-right:16px}
  .flow-steps>span{font-size:11px;gap:3px}
  .flow-steps b,.flow-steps .icon{width:18px;height:18px}
  .camera-stage{height:330px}
  .create-entry .create-text b{font-size:16px}
  .recent-card h3{max-width:195px}
  .home-status{font-size:11px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.brand-slogan{margin:0;padding:0 18px 4px;font-size:12px;line-height:1.5;color:#64735a}

/* 商家页面演示：精简登录，只保留必要操作。 */
.merchant-login{padding-top:64px}.login-brand{display:flex;align-items:center;justify-content:center;gap:10px;font-size:29px;line-height:1.2}.login-brand .logo{width:44px;height:46px;font-size:26px;margin:0}.login-brand strong span{color:#719d41}.login-slogan{text-align:center;color:#64735a;margin:14px 0 48px;font-size:14px}.login-fields .field{margin-bottom:20px}.login-fields .consent{margin:24px 0;font-size:13px}.login-fields .button{margin-top:8px}.login-fields .input-action .text-button{font-size:13px;min-height:44px;white-space:nowrap}@media(max-height:720px){.merchant-login{padding-top:28px}.login-slogan{margin-bottom:28px}}

.wordmark .brand-lockup,.login-brand .brand-lockup{display:block;width:auto;max-width:100%;object-fit:contain}
.wordmark .brand-lockup{height:27px}
.app-header .wordmark{min-height:44px}
.app-header .brand-lockup{height:25px}
.login-brand .brand-lockup{height:56px}
