:root{--bg:#0e1117;--panel:#171c26;--panel2:#202735;--line:#30394a;--ink:#f5f7fb;--muted:#9da8bb;--accent:#9d7aff;--accent2:#54d2c2;--phone:#f3f5f8;--phone-ink:#18202c;--phone-muted:#6c7686;--shadow:0 24px 80px #0008}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% 0,#26203d 0,#10131b 44%,#0b0e14 100%);color:var(--ink);font:14px/1.55 "Microsoft YaHei UI","Segoe UI",sans-serif;min-height:100vh}.app-shell{max-width:1440px;margin:auto;padding:30px 42px 50px}.topbar{display:flex;align-items:center;gap:13px;margin-bottom:28px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#9d7aff,#5d49c7);font-size:22px;font-weight:800;box-shadow:0 10px 25px #7658e755}.brand-title{font-size:18px;font-weight:750;letter-spacing:.5px}.brand-subtitle{color:var(--muted);font-size:12px;margin-top:1px}.connection-pill{margin-left:auto;border:1px solid #334157;background:#1a2130;border-radius:20px;padding:7px 12px;color:#cbd4e4;font-size:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#54d2c2;margin-right:6px;box-shadow:0 0 10px #54d2c2}.workspace{display:grid;grid-template-columns:minmax(390px,560px) minmax(350px,1fr);gap:66px;align-items:start}.phone-column{display:flex;justify-content:center}.phone-frame{position:relative;background:#090b10;border:7px solid #05060a;border-radius:42px;padding:10px;box-shadow:var(--shadow),inset 0 0 0 1px #444;width:390px;min-height:790px}.phone-speaker{position:absolute;top:12px;left:50%;transform:translateX(-50%);height:24px;width:120px;background:#05060a;border-radius:0 0 18px 18px;z-index:3}.phone-screen{background:var(--phone);color:var(--phone-ink);border-radius:31px;overflow:hidden;min-height:760px}.mobile-status{height:31px;padding:9px 19px 0;display:flex;justify-content:space-between;font-size:10px;color:#566173;font-weight:700}.mobile-titlebar{display:flex;justify-content:space-between;align-items:center;padding:13px 19px 12px;font-size:17px;font-weight:800;border-bottom:1px solid #e1e5ea;background:#f8fafc}.icon-button{border:0;background:transparent;color:#758093;font-size:12px}.mobile-scroll{padding:15px 13px 24px;max-height:690px;overflow:auto}.card{background:#fff;border:1px solid #e3e7ec;border-radius:16px;padding:16px 15px;margin-bottom:12px;box-shadow:0 5px 18px #1b2a3a0b}.section-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px}.section-heading>span:first-child{color:#8d6ff5;font-size:11px;font-weight:800;background:#f0ebff;border-radius:6px;padding:3px 5px}.section-heading h2{font-size:15px;margin:0;font-weight:800}.result-state{margin-left:auto;font-size:11px;color:#2c9c89}.text-input,.source-input{width:100%;border:1px solid #dce2ea;background:#fbfcfd;border-radius:10px;padding:11px 12px;font:13px inherit;color:var(--phone-ink);outline:none}.text-input:focus,.source-input:focus{border-color:#9a80ee;box-shadow:0 0 0 3px #a28af122}.source-input{height:145px;resize:vertical;line-height:1.7;margin-top:9px}.input-footer{display:flex;justify-content:space-between;align-items:center;color:var(--phone-muted);font-size:11px;margin-top:7px}.text-button{border:0;background:transparent;color:#7257da;padding:5px 0;font-weight:700;cursor:pointer}.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:13px}.mode-button{border:1px solid #e0e5ed;border-radius:9px;background:#fbfcfd;color:#707b8c;padding:9px 5px;font-size:12px;cursor:pointer}.mode-button.active{border-color:#8f74e8;color:#6547ca;background:#f3efff;font-weight:800}.field-label{display:block;font-size:11px;color:#717d8f;margin:10px 0 5px}.hint{font-size:10px;color:#8a94a3;margin:5px 1px}.primary-button{border:0;width:100%;border-radius:12px;padding:13px;background:linear-gradient(135deg,#8e70ee,#6253c7);color:#fff;font-weight:800;letter-spacing:.3px;cursor:pointer;box-shadow:0 8px 18px #735de044}.primary-button:hover{filter:brightness(1.05)}.primary-button.small{margin-top:5px;padding:12px}.spark{font-size:17px;vertical-align:-1px;margin-right:4px}.head-preview-wrap{position:relative;background:#151922;border-radius:12px;overflow:hidden;margin-bottom:14px}.head-preview-wrap canvas{display:block;width:100%;height:auto}.image-download{position:absolute;right:9px;bottom:9px;border:1px solid #ffffff55;background:#111827dd;color:#fff;border-radius:7px;padding:6px 9px;font-size:11px;cursor:pointer}.result-block{border-top:1px solid #edf0f4;padding-top:12px;margin-top:12px}.block-label{color:#748092;font-size:11px;font-weight:800;margin-bottom:6px}.result-block pre{white-space:pre-wrap;font:12px/1.75 inherit;color:#303a49;max-height:210px;overflow:auto;margin:0;background:#fafbfc;border-radius:9px;padding:10px}.secondary-button{margin-top:8px;border:1px solid #ddd6f7;background:#f7f4ff;color:#6751c5;border-radius:8px;padding:8px 10px;font-weight:700;cursor:pointer}.bgm-name{font-weight:800;font-size:13px;margin-bottom:3px}.bgm-block a{display:block;color:#6854c8;font-size:11px;word-break:break-all;text-decoration:none;line-height:1.5}.tag-line{margin:14px 0 3px;color:#6c59c5;font-size:12px;font-weight:700}.observer-panel{padding-top:15px;max-width:580px}.observer-header{display:flex;align-items:flex-start;justify-content:space-between}.eyebrow{font-size:10px;letter-spacing:2px;color:#8f7af0;font-weight:800;margin-bottom:8px}.observer-header h1{margin:0;font-size:30px;letter-spacing:-.6px}.live-badge{border:1px solid #31544f;color:#76e1d1;background:#122522;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:800}.live-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#54d2c2;margin-right:5px}.observer-intro{color:var(--muted);line-height:1.8;max-width:490px;margin:15px 0 24px}.observer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.metric{background:linear-gradient(145deg,#1b2230,#141923);border:1px solid var(--line);border-radius:13px;padding:14px}.metric span{display:block;color:#8894a8;font-size:11px;margin-bottom:8px}.metric strong{font-size:18px}.observer-section{margin-top:25px}.observer-section-title{font-weight:800;font-size:12px;color:#dce3ee;margin-bottom:9px}.log-list{border-left:2px solid #3b4560;padding-left:13px;max-height:170px;overflow:auto}.log-item{font-size:12px;color:#c1cada;padding:5px 0}.log-item time{color:#7c89a0;margin-right:9px}.log-item.muted{color:#778399}.output-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.output-list div{display:flex;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #2b3444;font-size:12px}.output-list div:last-child{border:0}.output-list span{color:#8d99ac}.output-list b{color:#75d9c9;font-weight:700}.observer-note{margin-top:24px;border:1px dashed #454d62;border-radius:12px;padding:13px;color:#8e9aae;font-size:11px;line-height:1.7}@media(max-width:900px){.app-shell{padding:18px 14px 30px}.topbar{margin-bottom:16px}.workspace{display:block}.observer-panel{display:none}.phone-frame{width:min(100%,390px);min-height:auto}.phone-screen{min-height:0}.mobile-scroll{max-height:none}.phone-column{display:block}.connection-pill{display:none}}@media(min-width:901px){.phone-frame{transform:rotate(-1deg);margin-top:12px}.phone-frame:hover{transform:rotate(0)}}
 .stage-bar{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;background:#f8fafc;border-bottom:1px solid #e1e5ea;color:#9aa4b2;font-size:10px;font-weight:800}.stage-bar i{height:1px;width:24px;background:#d8dee7}.stage.active{color:#6751c5}.stage.active::before{content:'●';margin-right:4px;color:#8f74e8}.step-help{font-size:11px;line-height:1.7;color:#7a8595;margin:-4px 0 14px}.range-input{width:100%;accent-color:#8067e5;margin:4px 0 8px}.hook-input,.body-input,.library-input{width:100%;border:1px solid #dce2ea;background:#fbfcfd;border-radius:10px;padding:10px 11px;font:12px/1.7 inherit;color:var(--phone-ink);resize:vertical;outline:none}.hook-input{height:128px}.body-input{height:220px}.library-input{height:100px;margin-top:5px}.advanced-card summary{cursor:pointer;font-weight:800;font-size:13px;color:#465166}.advanced-card[open] summary{margin-bottom:12px}.button-row{display:flex;gap:8px;margin-bottom:12px}.wide{flex:1;margin-top:0}.style-row{display:flex;gap:8px;margin:0 0 12px}.style-row label{display:flex;align-items:center;gap:5px;color:#748092;font-size:11px}.style-row select,.bgm-select{border:1px solid #dce2ea;background:#fbfcfd;border-radius:8px;padding:7px 9px;color:#303a49;font:12px inherit}.bgm-select{display:block;width:100%;margin-bottom:7px}.result-card{margin-bottom:0}.result-block{margin-bottom:3px}

.hook-detect-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.detect-note{color:#627087;font-size:11px;line-height:1.5}.hook-detect-row .text-button{flex:none;font-size:11px}.format-summary{background:#f3f0ff;color:#6751c5;border-radius:8px;padding:9px 10px;margin-bottom:10px;font-size:11px;font-weight:700}.formatted-body-input{width:100%;height:330px;border:1px solid #dce2ea;background:#fbfcfd;border-radius:10px;padding:10px 11px;font:12px/1.75 "Microsoft YaHei UI",sans-serif;color:var(--phone-ink);resize:vertical;outline:none}.formatted-body-input:focus,.hook-input:focus,.body-input:focus,.library-input:focus{border-color:#9a80ee;box-shadow:0 0 0 3px #a28af122}.primary-button,.secondary-button,.icon-button,.text-button,.image-download{touch-action:manipulation}.step[hidden]{display:none}
@media(max-width:600px){body{background:#f3f5f8;color:#18202c}.app-shell{padding:0;max-width:none}.topbar{background:#151a25;margin:0;padding:10px 16px}.brand-mark{width:34px;height:34px;font-size:18px;border-radius:10px}.brand-title{font-size:14px}.brand-subtitle{font-size:10px}.phone-frame{width:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;margin:0}.phone-speaker,.mobile-status{display:none}.phone-screen{border-radius:0;min-height:calc(100dvh - 54px)}.mobile-scroll{padding:14px 12px calc(26px + env(safe-area-inset-bottom));max-height:none}.stage-bar{gap:5px;padding:10px 8px}.stage-bar i{width:12px}.button-row{gap:7px}.primary-button,.secondary-button{min-height:44px}}

.head-preview-wrap img{display:block;width:100%;height:auto;-webkit-user-select:auto;user-select:auto}.head-preview-wrap canvas[hidden]{display:none}.caption-output{display:block;width:100%;height:260px;margin-top:10px;border:1px solid #e3e7ec;background:#fafbfc;border-radius:9px;padding:10px;color:#303a49;font:12px/1.75 "Microsoft YaHei UI",sans-serif;resize:vertical;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.caption-output:focus{outline:2px solid #a28af1}.result-block .text-input{margin-top:0}.bgm-block .secondary-button{margin-left:12px}
