/* SailToWorld：中性画布、柠檬色创作入口、完整视频预览。 */
:root,body[data-app=true]{--bg:#101211;--surface:#1a1d1b;--raised:#252925;--ink:#f4f5f0;--muted:#a8ada6;--line:#414840;--accent:#ddf988;--error:#ffb7bc;--gutter:clamp(20px,3vw,48px)}
body{background:var(--bg)}
h1,h2,.brand{font-family:Onest,Arial,sans-serif;font-weight:600}
a{text-decoration-thickness:1px}
.header{max-width:1600px;min-height:78px;padding:16px var(--gutter);border-bottom:1px solid #ffffff10;gap:32px}
.brand,body[data-page=home] .brand{display:inline-flex;align-items:center;gap:10px;font-size:22px;font-weight:650;letter-spacing:-.8px;white-space:nowrap}
.brand-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--accent);color:#17200e;font-size:22px;transform:rotate(-8deg);font-style:italic;line-height:1}
.header nav{margin-right:auto;gap:6px;margin-left:24px}.header nav a,body[data-page=home] .header nav a{padding:10px 14px;font-size:14px;color:var(--muted);border-radius:6px}.header nav a:hover,.header nav a[aria-current=page]{background:#ffffff09;color:var(--ink);text-decoration:none}
.header nav a[aria-current=page]{color:var(--accent)}
.header-cta,.primary,.ink{background:var(--accent);color:#19220c}
.header-cta,body[data-page=home] .header-cta{font-size:14px;font-weight:600;padding:11px 18px;border-radius:7px}
.button{border-radius:7px;font-weight:600}.button:hover,.header-cta:hover{filter:brightness(1.06)}
.eyebrow{font-size:11px!important;font-weight:600;letter-spacing:.13em;color:var(--muted)}
.footer{border-top:1px solid #ffffff12}.footer .brand-symbol{width:24px;height:24px;font-size:18px}.footer .brand{font-size:18px}
.preview-notice{max-width:1504px;margin:16px auto 0;padding:10px 16px;border:1px solid #3a4333;background:#1a2116;border-radius:7px;color:#bfcbb4;font-size:13px;line-height:1.5}
.preview-notice span{display:inline-block;color:var(--accent);font-weight:600;margin-right:12px}
.discover-heading,.discover-gallery,.creation-strip{max-width:1600px;margin:auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.discover-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-top:42px;padding-bottom:30px}
.discover-heading h1{font-size:clamp(34px,3.3vw,50px);letter-spacing:-.05em;margin:10px 0 12px;line-height:1.05}
.discover-heading p:not(.eyebrow){font-size:16px;color:var(--muted);line-height:1.5}.discover-heading>.button{flex-shrink:0}
.discover-gallery{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(260px,.8fr);gap:24px}
.sample-card{min-width:0}.sample-screen{position:relative;overflow:hidden;border-radius:12px;background:#090b09;border:1px solid #ffffff12}
.sample-screen video{width:100%;height:clamp(390px,37vw,550px);object-fit:contain;background:#090b09}
.media-label{position:absolute;top:16px;left:16px;padding:7px 10px;background:#101510c9;backdrop-filter:blur(12px);border:1px solid #ffffff20;border-radius:5px;font-size:10px;letter-spacing:.09em;z-index:1;pointer-events:none;color:#fff}
.sample-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 10px}
.sample-caption h2{font-size:22px;letter-spacing:-.03em}.sample-caption p{font-size:14px;color:var(--muted);margin-top:6px}
.sample-caption>a{display:grid;place-items:center;text-decoration:none;width:40px;height:40px;border:1px solid #41483e;border-radius:50%;font-size:21px;flex-shrink:0}.sample-caption>a:hover{background:var(--accent);color:#111}
.sample-spec{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);line-height:1.6}.sample-spec>a{color:var(--ink);font-size:13px}
.discovery-tools{display:flex;flex-direction:column;gap:12px;min-width:0}.start-note{padding:28px 24px 32px;background:#20291b;border:1px solid #36452c;border-radius:12px}
.start-note h2{font-size:clamp(28px,2.6vw,38px);line-height:1.12;letter-spacing:-.045em;margin:22px 0;color:#e4f2d0}.start-note p{font-size:14px;color:#b3c3a6;line-height:1.6}.start-note .eyebrow{color:#bdcead}
.discovery-tools .creation-option{display:flex;align-items:center;gap:14px;border:1px solid #ffffff12;border-radius:9px;padding:16px;background:var(--surface)}
.discovery-tools .creation-option h3{font-size:16px;letter-spacing:-.02em;font-weight:550}.discovery-tools .creation-option p{font-size:12px;margin-top:5px}.discovery-tools .creation-option>span:last-child{margin-left:auto;color:var(--muted)}
.tool-symbol{font-size:22px;color:var(--accent);width:30px;text-align:center}.discovery-tools>.quiet{font-size:12px;margin:6px 0 0;line-height:1.7}.discovery-tools>.text-link{font-size:14px!important;padding:0}
.creation-strip{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:40px;margin-top:50px;padding-top:32px;padding-bottom:36px;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12}
.creation-strip h2{font-size:26px;margin-top:14px;letter-spacing:-.04em}.creation-strip strong{font-size:14px;font-weight:500}.creation-strip p{font-size:14px;margin-top:12px;color:var(--muted);line-height:1.6}
.launch-details{max-width:1600px;grid-template-columns:1fr 1.2fr;padding-top:64px;padding-bottom:64px;gap:100px}.launch-details h2{font-size:40px;margin-top:16px;letter-spacing:-.05em;line-height:1.1}.launch-details p{font-size:16px;color:var(--muted)}.launch-details dt{font-size:18px}.launch-details dd{font-size:15px}.launch-details dl{margin:0;gap:24px}
/* 账号、通知和工作区使用相同边界；关闭提示不覆盖表单或视频。 */
.account-bar{max-width:1600px;padding:10px var(--gutter);gap:12px;min-height:58px;font-size:12px;border-bottom:1px solid #ffffff0a;color:var(--muted)}
.account-bar .button{font-size:12px;min-height:34px;padding:8px 12px}.account-bar .text-button{font-size:12px;min-height:34px}.account-bar #credit-balance{color:var(--ink);font-variant-numeric:tabular-nums}
#payment-status{max-width:1504px;margin:14px auto 0;border:1px solid #5a373c;background:#2d2023;color:#ffd0d4}
.workspace{max-width:1600px;margin:24px auto 0;padding-bottom:44px}.workspace-title{margin-bottom:22px;align-items:center}.workspace-title h1{font-size:26px;letter-spacing:-.04em;font-weight:600}.workspace-title p{font-size:14px;margin-top:6px}.workspace-title>a{font-size:13px;color:var(--muted)}
.studio-grid{grid-template-columns:minmax(320px,410px) minmax(0,1fr);gap:24px;align-items:start}
.composer{padding:22px;border:1px solid #ffffff12;border-radius:12px;background:#1a1d1b}
.composer-title{display:flex;justify-content:space-between;align-items:center}.composer-title h2{margin:0;font-size:17px;font-weight:600}.composer-title>span{font-size:11px;color:var(--muted);padding:5px 7px;border:1px solid #ffffff16;border-radius:4px}
.composer label{font-size:12px;margin-top:16px;margin-bottom:7px}.composer label>span,.composer .quiet{font-size:11px}.composer textarea,.composer select{font-size:13px;border-color:#3b4139;border-radius:7px;background:#111411}.composer textarea{min-height:136px;line-height:1.65;padding:12px}.composer select{min-height:40px;padding:9px 10px}
.composer .draft-actions{gap:18px}.composer .draft-actions button{font-size:11px;min-height:32px;padding:6px 0}.composer #draft-status{font-size:10px;color:#9da696;line-height:1.5}.composer .upload-zone{padding:0;background:none}
.composer .reference-drop{display:flex;align-items:center;gap:12px;position:relative;padding:14px;border:1px dashed #525c49;border-radius:7px;background:#22281f;cursor:pointer;margin:0;overflow:hidden}
.reference-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.reference-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}.reference-drop strong{display:block;font-size:12px;font-weight:500;color:var(--ink)}.reference-drop small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}.reference-drop .upload-symbol{float:none;font-size:24px;color:var(--accent)}
.composer #reference-help{font-size:10px;margin-top:5px}.composer .form-row{gap:12px}.composer .form-row label{margin-top:12px}.composer .form-row select{margin-top:7px}
.composer .notice{padding:10px 12px;margin:14px 0;font-size:11px;background:#252b21;border:1px solid #ffffff0b;line-height:1.5}.composer #credit-quote{background:transparent;border:0;border-top:1px solid #ffffff14;border-bottom:1px solid #ffffff14;border-radius:0;padding:12px 0;margin:16px 0 12px;color:#d2dfc6;font-size:12px}
.composer .check-row{margin:12px 0;gap:9px;line-height:1.6}.composer .check-row span{font-size:10px;color:#aeb5a7}.composer .check-row input{min-width:15px;min-height:15px;margin-top:3px;accent-color:var(--accent)}.composer #capacity{color:#c4d0b8}.composer #generate{min-height:44px;font-size:14px;margin:0 0 12px}.composer .error{font-size:13px}.composer>.quiet:last-child{font-size:10px;line-height:1.6}
.studio-output{min-width:0}.result-panel{position:static;padding:20px;border:1px solid #ffffff12;border-radius:12px;background:#161916}.result-panel .form-heading{align-items:center;margin-bottom:16px}.result-panel .form-heading h2{margin:0;font-size:15px}.result-panel #job-state{font-size:11px;color:#b2bda7}
.empty-result:has(#studio-sample:not([hidden])){gap:12px}.preview-stage{width:100%;background:#0b0d0b;border-radius:7px;overflow:hidden;display:grid;place-items:center}.preview-stage:has(video[hidden]){display:none}
#studio-sample,.result-panel #result-video{height:480px;max-height:60vh;width:100%;object-fit:contain;aspect-ratio:auto;background:#0b0d0b}
.preview-info{display:flex;justify-content:space-between;align-items:center;gap:16px}.preview-info h3{font-size:15px;font-weight:500}.preview-info>span{font-size:10px;color:var(--muted)}.empty-result p{font-size:12px;line-height:1.6}.empty-result>a{font-size:12px;color:#d7e5ca;align-self:flex-start;padding:4px 0}.result-tip{padding-top:16px;font-size:10px;line-height:1.6;color:#939d8b}.result-panel #job-message{font-size:14px}.result-panel #job-id{font-size:11px}.result-panel #result-actions{font-size:13px}
.studio-output .history-header{margin:26px 0 12px}.studio-output .history-header h2{font-size:16px}.studio-output .history-header button{font-size:12px;min-height:32px}.studio-output .history{display:block;margin-bottom:12px}.history>p{font-size:13px}.studio-output .history:has(button){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.studio-output .history button{border:1px solid #ffffff12;font-size:13px}.studio-output .history strong{font-size:13px}.studio-output .history small{font-size:11px}.studio-output>.quiet{font-size:11px}
/* 可选统计保留默认关闭；页面底部可选，不再遮住视频和付费控制。 */
.consent,body[data-page=home] .consent{position:static;width:auto;max-width:1504px;margin:0 auto 24px;padding:18px 22px;border:1px solid #ffffff15;border-radius:8px;align-items:center;background:#1c211a;gap:12px}.consent>div{flex:1;min-width:230px}.consent strong{font-size:13px}.consent p{font-size:12px;margin-top:4px}.consent .button{font-size:12px;min-height:36px;padding:9px 14px}
@media(min-width:1600px){.preview-notice,#payment-status,.consent,body[data-page=home] .consent{max-width:1504px}}
@media(max-width:1599px){.preview-notice,#payment-status,.consent,body[data-page=home] .consent{margin-left:var(--gutter);margin-right:var(--gutter)}}
@media(max-width:1100px){.header{gap:18px}.header nav{margin-left:0}.header nav a{padding:10px}.discover-gallery{grid-template-columns:1fr 1fr}.discovery-tools{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.start-note{display:none}.discovery-tools>.quiet{grid-column:1/3}.discovery-tools>.text-link{justify-self:end;align-self:center}.sample-screen video{height:460px}.creation-strip{gap:24px;grid-template-columns:repeat(3,1fr)}.creation-strip>div:first-child{grid-column:1/-1}.creation-strip h2{margin-top:8px}.studio-grid{grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr);gap:16px}.composer,.result-panel{padding:18px}.preview-info{display:block}.preview-info>span{display:block;margin-top:7px}.launch-details{gap:40px}}
@media(max-width:700px){.header{padding:14px var(--gutter);min-height:0;gap:14px}.brand,body[data-page=home] .brand{font-size:19px}.brand-symbol{width:26px;height:26px;font-size:20px}.header nav{order:3;gap:0;justify-content:space-between;overflow:auto;white-space:nowrap;margin:0 -6px;width:calc(100% + 12px)}.header nav a,body[data-page=home] .header nav a{padding:9px 8px;font-size:12px}.header-cta,body[data-page=home] .header-cta{font-size:12px;padding:9px 12px;margin-left:auto}.discover-heading{padding-top:28px;padding-bottom:24px;display:block}.discover-heading h1{font-size:36px;max-width:13ch}.discover-heading p:not(.eyebrow){font-size:14px;max-width:28ch}.discover-heading>.button{margin-top:20px;font-size:14px;min-height:42px}.discover-gallery{gap:28px;grid-template-columns:1fr}.sample-screen video{height:440px;max-height:64vh}.sample-caption h2{font-size:21px}.sample-caption p{font-size:13px}.sample-spec{font-size:10px}.discovery-tools{grid-column:auto;display:flex;gap:10px}.discovery-tools>.text-link{align-self:flex-start;padding-top:6px}.creation-strip{grid-template-columns:1fr;gap:24px;margin-top:36px}.creation-strip>div:first-child{grid-column:auto}.creation-strip p{margin-top:7px;max-width:35ch}.launch-details{padding-top:40px;padding-bottom:40px;grid-template-columns:1fr;gap:32px}.launch-details h2{font-size:34px}.launch-details p,.launch-details dd{font-size:14px}.account-bar{gap:8px;padding-top:9px;padding-bottom:9px}.account-bar #account-status{width:auto;margin-right:auto;max-width:100%}.account-bar #credit-balance{margin-left:0}.account-bar #sign-out{margin-left:0}.account-bar .button{min-height:32px}.workspace{margin-top:20px}.workspace-title{display:block;margin-bottom:18px}.workspace-title h1{font-size:25px}.workspace-title p{font-size:13px}.workspace-title>a{display:inline-block;margin-top:10px}.studio-grid{display:flex;flex-direction:column;gap:24px}.studio-grid>*{width:100%}.studio-output{order:-1}.result-panel{padding:16px}.result-panel .form-heading{margin-bottom:12px}#studio-sample,.result-panel #result-video{height:320px;max-height:45vh}.preview-info{display:flex}.preview-info>span{font-size:9px;margin:0}.empty-result p{font-size:12px}.studio-output .history-header{margin-top:20px}.studio-output .history{margin-bottom:8px}.studio-output>.quiet{font-size:10px}.composer{padding:18px}.composer textarea{font-size:14px;min-height:150px}.composer select{font-size:14px}.composer .check-row span,.composer>.quiet:last-child{font-size:11px}.composer #draft-status{font-size:11px}.consent>div{min-width:100%}.preview-notice{font-size:12px}.footer{padding-top:32px;padding-bottom:32px}.footer nav{gap:6px 18px;font-size:12px}.footer p{margin:12px 0}}
.studio-jumps{display:none}
.preview-stage{padding:18px;background-color:#0d100d;background-image:radial-gradient(#293023 .6px,transparent .6px);background-size:12px 12px}
#studio-sample{width:auto;max-width:100%;border-radius:4px}
@media(max-width:700px){.studio-jumps{display:flex;gap:18px;margin-bottom:18px}.studio-jumps a{font-size:12px;color:#d5e6c6;padding:8px 0}.studio-output{display:contents}.studio-output .result-panel{order:-1}.studio-output .history-header{margin-top:0;margin-bottom:-12px}.studio-output .history{margin:0}.preview-stage{padding:12px}#generate-form{scroll-margin-top:16px}}
.header-cta{white-space:nowrap;flex-shrink:0}.header nav a{white-space:nowrap}
@media(min-width:701px) and (max-width:1000px){.header{flex-wrap:wrap;gap:12px}.header-cta{margin-left:auto}.header nav{order:3;width:100%;margin:0;justify-content:space-between}.header nav a{padding:8px 14px}}
@media(max-width:700px){.studio-output>.history-header,.studio-output>.history,.studio-output>.quiet{width:100%}}
