/* 即梦内容生成器 · 设计令牌(浅色,自动提取) */
:root{
  --alphanumeric-font-family: Montserrat,var(--font-family);
  --bg-block-primary-default: #0000000d;
  --bg-block-primary-hover: #00000012;
  --bg-block-primary-pressed: #0000001a;
  --bg-block-secondary-hover: #0000000d;
  --bg-block-secondary-pressed: #00000012;
  --brand-main-default: #00a1c2;
  --component-input-bg: #ffffffeb;
  --component-input-stroke: #0000000d;
  --component-primary-button-bg-default: #0f0f12;
  --component-primary-button-bg-disabled: #e1e3e5;
  --component-primary-button-text-default: #fff;
  --component-primary-button-text-disabled: #fff;
  --component-secondary-button-bg-default: #0000000d;
  --component-secondary-button-bg-disabled: #0000000d;
  --component-secondary-button-text-default: #0f1419;
  --component-secondary-button-text-disabled: #a5acb8;
  --component-secondary-text-button-default: #536471;
  --component-upload-button-default: #f0f0f0;
  --component-upload-button-hover: #e5e5e5;
  --content-generator-collapse-transition-duration: 350ms;
  --content-generator-collapse-transition-timing-function: cubic-bezier(0.15, 0.75, 0.3, 1);
  --content-generator-prompt-control-height: 96px;
  --content-generator-prompt-control-line-height: 24px;
  --font-family: CapCut Sans,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;
  --index-in-group: 0;
  --lv-arcoblue-3: 148,191,255;
  --lv-border-radius-circle: 50%;
  --lv-color-neutral-4: rgb(var(--lv-gray-4));
  --lv-gray-4: 201,205,212;
  --lv-primary-3: var(--lv-arcoblue-3);
  --lvv-border-radius-small: 8px;
  --lvv-color-fill-transparency-block: rgba(51,102,128,.08);
  --lvv-color-main-default: #00cae0;
  --lvv-color-text-content-primary: #fff;
  --lvv-color-text-disable: rgba(27,61,95,.2);
  --lvv-color-text-placeholder: rgba(24,51,78,.4);
  --lvv-color-text-primary: #090c14;
  --lvv-color-text-secondary: rgba(17,26,44,.7);
  --lvv-line-height-body-2: 20px;
  --lvv-size-body-1: 16px;
  --lvv-size-body-2: 14px;
  --reference-group-collapsed-scale: 0.65625;
  --reference-group-content-horizontal-padding: 8px;
  --reference-item-gap: 4px;
  --reference-item-width: 48px;
  --rotate: 8deg;
  --scrollbar-background-color: var(--bg-block-primary-pressed);
  --shadow-input-hover: 0px 4px 32px rgba(0,0,0,.04),0px 6px 24px rgba(0,0,0,.03);
  --stroke-secondary: #0000000d;
  --stroke-tertiary: #00000008;
  --text-placeholder: #536471a3;
  --text-primary: #0f1419;
  --text-secondary: #536471;
}


/* 即梦内容生成器 · 组件规则(自动提取) */
.credit-price-display-s0z8q6{align-items:center;color:var(--text-secondary);display:inline-flex;font-family:var(--alphanumeric-font-family);font-weight:500;gap:4px;line-height:1;vertical-align:middle}
.actual-credits-BC_95z{align-items:center;display:inline-flex;line-height:inherit}
.commercial-button-content-PtZYAV{align-items:center;color:var(--component-secondary-text-button-default);cursor:pointer;display:flex;font-family:var(--alphanumeric-font-family);font-size:12px;font-weight:500;justify-content:center}
.layout-iOu90r{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;height:100%;justify-content:space-between;overflow:hidden;padding:14px 16px 16px;width:100%}
.content-GSXqDa{align-items:flex-start;display:flex;gap:12px}
.dimension-layout-Z2jMN6{-webkit-backdrop-filter:blur(80px);backdrop-filter:blur(80px);background:var(--component-input-bg);border-radius:24px;display:flex;flex-direction:column;outline:.5px solid var(--stroke-tertiary);overflow:hidden;width:100%;z-index:2}
.dimension-layout-Z2jMN6:hover{box-shadow:var(--shadow-input-hover)}
.default-layout-tFQ9le{margin:0 auto;max-width:924px;min-width:622px;position:-webkit-sticky;position:sticky;width:100%}
.default-layout-tFQ9le{border:1px solid var(--component-input-stroke);bottom:20px;display:flex;justify-content:center;transition:max-width var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),height var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),box-shadow var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),opacity var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),transform var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function);will-change:max-width,height,box-shadow,opacity,transform}
.default-layout-tFQ9le .collapsed-submit-button-container-HfAx_K{bottom:16px;display:flex;gap:12px;position:absolute;right:16px;transition:transform var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function);visibility:hidden;will-change:transform}
.main-content-7elCW2{flex:1 1;margin-right:-8px;position:relative}
.button-wlwylC.lv-btn{align-items:center;display:flex;flex-shrink:0;font-family:var(--alphanumeric-font-family);font-weight:400;justify-content:center}
.button-wlwylC.lv-btn-primary{font-weight:500}
.button-wlwylC.lv-btn-icon-only, .button-wlwylC>svg{flex-shrink:0;font-size:16px}
.button-wlwylC.lv-btn-size-default{font-size:12px}
.button-wlwylC.lv-btn-size-default:not(.lv-btn-icon-only):not(.lv-btn-shape-circle){padding:0 14px}
.button-wlwylC.lv-btn-size-default:not(.lv-btn-icon-only):not(.lv-btn-shape-circle):has(>svg:first-child){padding-left:12px}
.button-wlwylC.lv-btn-size-default:not(.lv-btn-icon-only):not(.lv-btn-shape-circle):has(>svg:last-child){padding-right:12px}
.button-wlwylC.lv-btn-size-default.lv-btn-icon-only{height:36px;width:36px}
.button-wlwylC.lv-btn-icon-only{padding:0}
.button-wlwylC>svg{min-width:1em}
.button-wlwylC>span+svg, .button-wlwylC>svg+span{margin-left:4px}
.container-uXHpNF{position:relative}
.content-ptbs6p{overflow:auto}
.toolbar-ejS5ZW{align-items:center;display:flex;gap:12px;height:36px;justify-content:space-between;margin-top:0;max-width:100%;transition:margin-top var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),opacity var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),transform var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function);width:100%;will-change:margin-top,opacity,transform}
.toolbar-settings-CQFOuA{flex:1 1;overflow:scroll hidden}
.toolbar-settings-content-CLBVMF{display:flex;gap:4px;padding:8px 0}
.toolbar-actions-MEjVOW{display:flex;flex-shrink:0;gap:8px}
.toolbar-button-ohoEaK.lv-btn.lv-btn-secondary{font-weight:450}
.toolbar-button-ohoEaK.lv-btn.lv-btn-secondary:not(.lv-btn-disabled){background:transparent;border:1px solid var(--stroke-secondary)}
.toolbar-button-ohoEaK.lv-btn.lv-btn-secondary.lv-btn-size-default.lv-btn-disabled{background:transparent;border:1px solid var(--stroke-secondary)}
.reference-upload-MpsT4v{align-items:center;background-color:var(--bg-block-primary-default);border:1px dotted var(--stroke-secondary);border-radius:2px;bottom:0;box-sizing:border-box;color:var(--text-placeholder);cursor:pointer;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center;pointer-events:auto;position:absolute;right:0;transform:rotate(var(--rotate));transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),border-radius .3s cubic-bezier(.4,0,.2,1),color .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1);width:100%;will-change:width,height,border-radius,opacity,transform}
.reference-upload-MpsT4v .icon-HOk0XW{transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform}
.reference-upload-MpsT4v .label-RZ17xd{color:var(--text-placeholder);font-size:10px;font-weight:400;line-height:14px;margin-top:4px;max-width:40px;overflow:hidden;text-align:center;transition:margin .3s cubic-bezier(.4,0,.2,1),color .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1);white-space:nowrap;will-change:width,height,margin,opacity,transform}
.reference-upload-MpsT4v:not(.light-zkMNK_){background-color:var(--component-upload-button-default)}
.reference-upload-MpsT4v:hover{background-color:var(--bg-block-primary-hover)}
.reference-upload-MpsT4v:hover:not(.light-zkMNK_){background-color:var(--component-upload-button-hover)}
.file-input-l4R8n2{display:none}
.references-mV5KUN{align-items:center;display:flex;gap:8px;height:80px;margin-bottom:16px;max-width:100%;position:relative;transition:height var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function);will-change:height}
.reference-item-O5Wk_j{height:64px;left:8px;min-width:var(--reference-item-width);position:absolute;top:22px;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1);width:var(--reference-item-width);will-change:opacity,transform}
.reference-item-O5Wk_j.expanded-bOfxTf{transform:translateX(calc((var(--reference-item-width) + var(--reference-item-gap))*var(--index-in-group)))}
.reference-group-ZbZ3AX{--reference-group-content-horizontal-padding:8px;--reference-group-content-horizontal-total-padding:calc(var(--reference-group-content-horizontal-padding)*2);--reference-group-collapsed-scale:0.65625;--reference-group-collapsed-margin-compensation-factor:calc(var(--reference-group-collapsed-scale) - 1);--reference-item-rotation-compensation-width:12px;position:relative;z-index:1}
.reference-group-background-bvvCGR{background:linear-gradient(90deg,rgba(37,38,46,.6) 82.41%,rgba(37,38,46,0) 98.03%);-webkit-filter:blur(12px);filter:blur(12px);height:64px;left:8px;opacity:0;position:absolute;top:4px;transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1);width:48px;will-change:width,height,opacity,transform}
body[lv-theme=light] .reference-group-background-bvvCGR{background:linear-gradient(90deg,hsla(0,0%,96%,.6) 82.41%,hsla(0,0%,96%,0) 98.03%)}
.reference-group-hover-trigger-ECCfeY{height:92px;left:0;position:absolute;top:-12px;width:64px}
.reference-group-content-KNT8rd{height:64px;margin:-12px 0;padding:22px var(--reference-group-content-horizontal-padding);position:relative}
.submit-button-hqUula{overflow:hidden}
.submit-button-hqUula.lv-btn.lv-btn-primary{font-size:12px;font-weight:600;line-height:20px}
.submit-button-hqUula.lv-btn.lv-btn-primary.lv-btn-icon-only, .submit-button-hqUula.lv-btn.lv-btn-primary>svg{font-size:20px}
.home-header-content-generator-XW8cMR{max-width:unset!important;pointer-events:auto;width:100%}
.ellipsis-text-kMWIFS{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-mUUh8V{font-family:var(--alphanumeric-font-family);font-weight:400;width:auto}
.select-mUUh8V.lv-select .lv-select-suffix:has(svg){margin-left:4px}
.select-mUUh8V.lv-select .lv-select-suffix:not(:has(svg)){display:none}
.select-mUUh8V.lv-select.lv-select-single .lv-select-view{font-size:12px}
.select-mUUh8V.lv-select-single .lv-select-view-value{gap:4px}
.select-mUUh8V.lv-select-single .lv-select-view-value:after{display:none}
.select-mUUh8V.lv-select-single .lv-select-view-value .select-option-icon-yOSbUq{display:flex;font-size:16px}
.select-mUUh8V .lv-select-arrow-icon{align-items:center;display:flex;justify-content:center}
.select-mUUh8V.lv-select.lv-select-single .lv-select-arrow-icon{font-size:inherit}
.select-mUUh8V.lv-select-single .lv-select-view-selector{overflow:visible}
.select-option-icon-yOSbUq{align-items:center;display:flex;justify-content:center}
.toolbar-select-PAPX4T.lv-select .lv-select-view{background-color:transparent;border:1px solid var(--stroke-secondary)}
.toolbar-select-PAPX4T.lv-select:focus-visible .lv-select-view, .toolbar-select-PAPX4T.lv-select:hover .lv-select-view{background-color:var(--bg-block-secondary-hover)}
.toolbar-select-PAPX4T.lv-select.lv-select-open .lv-select-view, .toolbar-select-PAPX4T.lv-select:active .lv-select-view{background-color:var(--bg-block-secondary-pressed)}
.toolbar-select-PAPX4T.lv-select-size-default.lv-select-single .lv-select-view{font-weight:450}
.prompt-editor-container-j3OR0W{overflow:hidden;position:relative;--content-generator-prompt-prefix-placeholder-scroll-top:0px}
.prompt-editor-oJ_H28 .tiptap, .prompt-editor-sizer-rkDuYA .tiptap{background-color:transparent;box-sizing:border-box;caret-color:var(--brand-main-default);color:var(--text-primary);line-height:var(--content-generator-prompt-control-line-height);overflow-wrap:break-word;overflow-y:scroll;padding-right:4px;scrollbar-width:auto;white-space:pre-wrap;word-break:break-all}
.prompt-editor-oJ_H28 .tiptap:hover, .prompt-editor-sizer-rkDuYA .tiptap:hover{--scrollbar-background-color:var(--bg-block-primary-pressed)}
.prompt-editor-oJ_H28 .tiptap:hover::-webkit-scrollbar-thumb, .prompt-editor-sizer-rkDuYA .tiptap:hover::-webkit-scrollbar-thumb{background:var(--scrollbar-background-color)}
.prompt-editor-oJ_H28 .tiptap::-webkit-scrollbar, .prompt-editor-sizer-rkDuYA .tiptap::-webkit-scrollbar{width:4px}
.prompt-editor-oJ_H28 .tiptap::-webkit-scrollbar-thumb, .prompt-editor-oJ_H28 .tiptap::-webkit-scrollbar-track, .prompt-editor-sizer-rkDuYA .tiptap::-webkit-scrollbar-thumb, .prompt-editor-sizer-rkDuYA .tiptap::-webkit-scrollbar-track{cursor:default}
.prompt-editor-oJ_H28 .tiptap::-webkit-input-placeholder, .prompt-editor-sizer-rkDuYA .tiptap::-webkit-input-placeholder{color:var(--text-placeholder);-webkit-text-fill-color:var(--text-placeholder)}
.prompt-editor-oJ_H28 .tiptap::-ms-input-placeholder, .prompt-editor-sizer-rkDuYA .tiptap::-ms-input-placeholder{color:var(--text-placeholder);-webkit-text-fill-color:var(--text-placeholder)}
.prompt-editor-oJ_H28 .tiptap::placeholder, .prompt-editor-sizer-rkDuYA .tiptap::placeholder{color:var(--text-placeholder);-webkit-text-fill-color:var(--text-placeholder)}
.prompt-editor-oJ_H28 .tiptap p, .prompt-editor-sizer-rkDuYA .tiptap p{margin:0}
.prompt-editor-oJ_H28 .tiptap p[data-placeholder].is-editor-empty:first-child:after, .prompt-editor-sizer-rkDuYA .tiptap p[data-placeholder].is-editor-empty:first-child:after{color:var(--text-placeholder);content:attr(data-placeholder);pointer-events:none}
.prompt-editor-oJ_H28 .tiptap p[data-placeholder].is-editor-empty:first-child .ProseMirror-trailingBreak, .prompt-editor-sizer-rkDuYA .tiptap p[data-placeholder].is-editor-empty:first-child .ProseMirror-trailingBreak{display:none}
.prompt-editor-oJ_H28 .tiptap p[data-paragraph-placeholder]:after, .prompt-editor-sizer-rkDuYA .tiptap p[data-paragraph-placeholder]:after{color:var(--text-placeholder);content:attr(data-paragraph-placeholder);pointer-events:none}
.prompt-editor-oJ_H28 .tiptap p[data-paragraph-placeholder] .ProseMirror-trailingBreak, .prompt-editor-sizer-rkDuYA .tiptap p[data-paragraph-placeholder] .ProseMirror-trailingBreak{display:none}
.prompt-editor-oJ_H28 .tiptap p[data-rich-placeholder], .prompt-editor-sizer-rkDuYA .tiptap p[data-rich-placeholder]{color:var(--text-placeholder);cursor:text}
.prompt-editor-oJ_H28 .tiptap p[data-rich-placeholder] .rich-placeholder-widget, .prompt-editor-sizer-rkDuYA .tiptap p[data-rich-placeholder] .rich-placeholder-widget{pointer-events:none}
.prompt-editor-oJ_H28 .tiptap p[data-rich-placeholder] .rich-placeholder-widget>*, .prompt-editor-sizer-rkDuYA .tiptap p[data-rich-placeholder] .rich-placeholder-widget>*{display:inline-flex;margin:0 4px;pointer-events:auto;vertical-align:bottom}
.prompt-editor-oJ_H28 .tiptap p[data-rich-placeholder] .ProseMirror-trailingBreak, .prompt-editor-sizer-rkDuYA .tiptap p[data-rich-placeholder] .ProseMirror-trailingBreak{display:none}
.prompt-editor-sizer-rkDuYA{left:0;position:absolute;top:0;visibility:hidden;width:100%}
.prompt-editor-oJ_H28 .tiptap{height:var(--content-generator-prompt-control-height);transition:height var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function),padding-top var(--content-generator-collapse-transition-duration) var(--content-generator-collapse-transition-timing-function);will-change:height,padding-top}
.button-text-VnX_cW{align-items:center;display:flex}
.option-content-k5qS0n{align-items:center;display:flex;gap:8px;min-width:0;overflow:visible;width:100%}
.option-content-k5qS0n>span{max-width:100%}
.option-label-fXoF8q{box-sizing:border-box;display:block;flex:1 1;line-height:36px;min-width:0;overflow:hidden;padding-right:8px;text-overflow:ellipsis}
.feature-select-EjlZ_c{position:relative}
.lv-select .lv-select-view{background-color:var(--lvv-color-fill-transparency-block);border:1px solid transparent;color:var(--lvv-color-text-primary)}
.lv-select.lv-select-focused .lv-select-view, .lv-select:hover .lv-select-view{background-color:initial;border-color:var(--lvv-color-main-default)}
.lv-select.lv-select-focused .lv-select-view{box-shadow:0 0 0 2px rgba(31,196,217,.2);color:var(--lvv-color-text-primary)}
.lv-select .lv-select-arrow-icon{color:var(--lvv-color-text-secondary)}
.lv-select-size-default.lv-select-single .lv-select-view{font-size:var(--lvv-size-body-2);font-weight:400;height:36px;line-height:var(--lvv-line-height-body-2);padding:0 12px}
.lv-select-size-default.lv-select-single input{font-size:var(--lvv-size-body-2)}
.lv-select-size-default.lv-select-single .lv-select-arrow-icon{font-size:var(--lvv-size-body-1)}
.lv-select{cursor:pointer;display:inline-block}
.lv-select, .lv-select-view{box-sizing:border-box;position:relative;width:100%}
.lv-select-view{border-radius:var(--lvv-border-radius-small);display:flex;outline:none;text-align:left;transition:all .1s linear,padding 0s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.lv-select-view input{color:inherit;cursor:inherit}
.lv-select-view input::-webkit-input-placeholder{color:var(--lvv-color-text-placeholder)}
.lv-select-view input::-ms-input-placeholder{color:var(--lvv-color-text-placeholder)}
.lv-select-view input::placeholder{color:var(--lvv-color-text-placeholder)}
.lv-select-single .lv-select-view-input{background:transparent;border:none;box-sizing:border-box;outline:none;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;width:100%}
.lv-select-single .lv-select-view-selector{box-sizing:border-box;display:inline-flex;overflow:hidden;position:relative;width:100%}
.lv-select-single .lv-select-view-selector .lv-select-view-input{left:0;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}
.lv-select-single .lv-select-view-value{align-items:center;box-sizing:border-box;display:inline-flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
.lv-select-single .lv-select-view-value:after{content:".";line-height:0;visibility:hidden}
.lv-select-single .lv-select-view .lv-select-hidden{position:absolute;width:0!important}
.lv-select-suffix{align-items:center;display:flex;margin-left:8px}
.lv-select-arrow-icon{font-size:var(--lvv-size-body-1)}
.lv-select-open .lv-select-arrow-icon svg{transform:rotate(180deg)}
.lv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-weight:600;line-height:1.5715;outline:none;position:relative;transition:all .1s linear;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}
.lv-btn>a:only-child{color:currentColor}
.lv-btn:active{transition:none}
.lv-btn:empty{display:inline-block;vertical-align:bottom}
a.lv-btn-icon-only{align-items:center;display:inline-flex;justify-content:center;vertical-align:top}
.lv-btn-primary:not(.lv-btn-disabled){background-color:var(--lvv-color-main-default);border:1px solid transparent;color:var(--lvv-color-text-content-primary)}
.lv-btn-primary:not(.lv-btn-disabled):focus-visible{box-shadow:0 0 0 2px rgb(var(--lv-primary-3))}
.lv-btn-primary.lv-btn-disabled{background-color:var(--lvv-color-text-disable);border:1px solid transparent;color:var(--lvv-color-text-disable);cursor:not-allowed}
.lv-btn-secondary:not(.lv-btn-disabled){background-color:var(--lvv-color-fill-transparency-block);border:1px solid transparent;color:var(--lvv-color-text-primary)}
.lv-btn-secondary:not(.lv-btn-disabled):focus-visible{box-shadow:0 0 0 2px var(--lv-color-neutral-4)}
.lv-btn-secondary.lv-btn-disabled{background-color:var(--lvv-color-fill-transparency-block);border:1px solid transparent;color:var(--lvv-color-text-disable);cursor:not-allowed}
.lv-btn-size-default{border-radius:8px;font-size:14px;height:36px;padding:0 16px}
.lv-btn-size-default>span+svg, .lv-btn-size-default>svg+span{margin-left:8px}
.lv-btn-size-default svg{vertical-align:-2px}
.lv-btn-size-default.lv-btn-icon-only{height:28px;padding:0;width:28px}
.lv-btn-size-default.lv-btn-shape-circle{border-radius:var(--lv-border-radius-circle);height:32px;padding:0;text-align:center;width:32px}
body[lv-theme=dark] .lv-btn-primary.lv-btn-disabled{color:hsla(0,0%,100%,.3)}
:root .lv-btn.lv-btn-shape-square{border-radius:8px}
:root .lv-btn-primary:not(.lv-btn-disabled){background:var(--component-primary-button-bg-default);border:none;color:var(--component-primary-button-text-default)}
:root .lv-btn.lv-btn-primary.lv-btn-disabled{background:var(--component-primary-button-bg-disabled);border:none;color:var(--component-primary-button-text-disabled)}
:root .lv-btn-secondary:not(.lv-btn-disabled){background:var(--component-secondary-button-bg-default);border:none;color:var(--component-secondary-button-text-default)}
:root .lv-btn.lv-btn-secondary.lv-btn-disabled{background:var(--component-secondary-button-bg-disabled);border:none;color:var(--component-secondary-button-text-disabled)}
:root .lv-select .lv-select-view{background-color:var(--bg-block-primary-default);border:none;color:var(--text-primary)}
:root .lv-select:focus-visible .lv-select-view, :root .lv-select:hover .lv-select-view{background-color:var(--bg-block-primary-hover);box-shadow:none;color:var(--text-primary)}
:root .lv-select.lv-select-focused .lv-select-view{box-shadow:none}
:root .lv-select.lv-select-open .lv-select-view, :root .lv-select:active .lv-select-view{background-color:var(--bg-block-primary-pressed);color:var(--text-primary)}
:root .lv-select .lv-select-arrow-icon svg{transition:transform .1s linear;will-change:transform}


/* ============================================================
   复刻补充层(浅色主题):页面骨架 / 登录 / 队列 / 参考 chips / 下拉
   + 工具条选择器尺寸与弹层修复
   ============================================================ */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;color:var(--text-primary);
  font:14px/1.6 var(--font-family);
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(0,161,194,.06), transparent 60%),
    radial-gradient(900px 560px at 88% 2%, rgba(0,120,255,.05), transparent 55%),
    #f3f4f6;
  min-height:100%;display:flex;justify-content:center;padding:26px 16px 110px;
}
::selection{background:rgba(0,161,194,.22)}
a{color:var(--brand-main-default);word-break:break-all}
.hidden{display:none!important}
main{width:100%;max-width:924px}

/* 顶栏 */
.cg-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.cg-brand{display:flex;align-items:center;gap:10px}
.cg-brand .dot{width:26px;height:26px;border-radius:8px;
  background:conic-gradient(from 130deg,var(--brand-main-default),#0078ff,var(--brand-main-default));
  box-shadow:0 0 18px rgba(0,161,194,.35)}
.cg-brand h1{font-size:16px;font-weight:600;margin:0}
.cg-brand .sub{font-size:12px;color:var(--text-secondary)}
.cg-ghost{cursor:pointer;font:inherit;color:var(--text-secondary);
  background:var(--bg-block-primary-default);border:1px solid var(--stroke-secondary);
  border-radius:999px;padding:6px 14px;transition:.15s}
.cg-ghost:hover{color:var(--text-primary);background:var(--bg-block-primary-hover)}

/* 登录面板 */
.cg-panel{background:var(--component-input-bg);-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);
  border:1px solid var(--stroke-secondary);border-radius:20px;padding:22px;margin-bottom:18px;
  box-shadow:0 8px 30px rgba(0,0,0,.06)}
.cg-panel h2{font-size:15px;margin:0 0 4px}
.cg-panel .hint{font-size:12.5px;color:var(--text-secondary);margin:8px 0;line-height:1.7}
.cg-panel code{background:var(--bg-block-primary-default);border:1px solid var(--stroke-secondary);border-radius:5px;padding:1px 6px}
.cg-panel input[type=text]{width:100%;font:inherit;color:var(--text-primary);background:#fff;
  border:1px solid var(--stroke-secondary);border-radius:12px;padding:11px 13px;margin-top:6px}
.cg-panel input:focus{outline:none;border-color:var(--brand-main-default)}
.cg-primary{cursor:pointer;font:inherit;font-weight:600;color:var(--component-primary-button-text-default);
  background:var(--component-primary-button-bg-default);border:none;border-radius:10px;padding:10px 18px;margin-top:12px;transition:.15s}
.cg-primary:hover{filter:brightness(1.12)}
.warn{color:#e0a400}
.err{color:#e5484d;white-space:pre-wrap;font-size:13px;margin:10px 2px 0}

/* 生成栏外壳 */
.cg-generator{position:sticky;bottom:16px;z-index:5}
.dimension-layout-Z2jMN6{box-shadow:0 10px 40px rgba(0,0,0,.08)}

/* 提示词:contenteditable 还原 tiptap/ProseMirror 外观 */
.cg-prompt{display:block;width:100%;border:none;outline:none;background:transparent;
  color:var(--text-primary);caret-color:var(--brand-main-default);white-space:pre-wrap;word-break:break-word;
  font:15px/var(--content-generator-prompt-control-line-height) var(--font-family);
  min-height:var(--content-generator-prompt-control-line-height);
  max-height:var(--content-generator-prompt-control-height);height:auto;
  padding:2px 4px 0 0;overflow-y:auto;scrollbar-width:thin}
.cg-prompt:empty:before{content:attr(data-placeholder);color:var(--text-placeholder);pointer-events:none}
/* 归一化:无论文本来源(粘贴/应用历史),编辑器内字号/字体/行高一致,
   防止出现某个 @标签或文字比其它大/小;chip 的颜色/粗细/底色仍由 .cg-mention 决定 */
.cg-prompt *{font-size:15px!important;font-family:inherit!important;
  line-height:var(--content-generator-prompt-control-line-height)!important}
/* contenteditable 内若产生块级换行,去掉默认外边距,避免行距异常 */
.cg-prompt>div,.cg-prompt>p{margin:0}
.cg-prompt::-webkit-scrollbar{width:4px}
.cg-prompt::-webkit-scrollbar-thumb{background:var(--bg-block-primary-pressed);border-radius:4px}
/* @ 引用的素材在文本框内显示为特殊高亮 chip(整体删除由 contenteditable=false 保证) */
.cg-mention{display:inline;border-radius:5px;padding:0 3px;margin:0 1px;white-space:nowrap;cursor:default;
  color:var(--brand-main-default);background:color-mix(in srgb,var(--brand-main-default) 12%,transparent);
  font-weight:500;-webkit-user-select:all;user-select:all}
.cg-mention:hover{background:color-mix(in srgb,var(--brand-main-default) 20%,transparent)}

/* —— 参考素材区(还原即梦:常驻于 prompt 左侧的瓦片行) —— */
.references-mV5KUN{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:none;height:auto;margin:0;
  position:relative;max-width:55%;overflow:visible}
/* 每个瓦片(缩略图 / 上传)48x64,hover 抬起放大,贴近即梦 reference-item */
.cg-ref-tile,.references-mV5KUN .cg-upload-tile{width:48px;height:64px;flex:none;position:relative;
  transition:transform .25s cubic-bezier(.4,0,.2,1)}
.cg-ref-tile:hover,.references-mV5KUN .cg-upload-tile:hover{transform:translateY(-6px) scale(1.1);z-index:3}
/* 缩略图:浅色描边 + 柔和阴影(不再用黑底黑边) */
.cg-ref-thumb{width:100%;height:100%;border-radius:8px;overflow:hidden;background:var(--bg-block-primary-default);
  border:1px solid var(--stroke-tertiary);box-shadow:0 1px 4px rgba(0,0,0,.06)}
.cg-ref-thumb img,.cg-ref-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.cg-ref-thumb .aud{width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#3a78ff,#9a5cff);color:#fff}
.cg-ref-thumb .aud svg{width:22px;height:22px}
.cg-ref-tile .cg-tag{position:absolute;left:3px;bottom:3px;font-size:8px;line-height:1;background:rgba(0,0,0,.6);
  color:#fff;padding:2px 5px;border-radius:5px;pointer-events:none}
.cg-ref-tile .cg-rm{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;border:1.5px solid #fff;
  cursor:pointer;background:#15161a;color:#fff;font-size:11px;line-height:1;padding:0;
  display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.cg-ref-tile:hover .cg-rm{opacity:1}
.cg-ref-tile .cg-rm:hover{background:#e5484d}
/* "+参考内容"上传瓦片:沿用即梦 reference-upload-MpsT4v 视觉,仅修正定位/尺寸/圆角 */
.references-mV5KUN .cg-upload-tile{position:relative;inset:auto;border-radius:8px;
  border:1px dashed var(--stroke-secondary);transform:none}
.references-mV5KUN .cg-upload-tile:hover{transform:translateY(-6px) scale(1.1)}
.references-mV5KUN .cg-upload-tile .icon-HOk0XW{width:18px;height:18px}
/* —— 参考素材放大预览(复刻即梦 reference-tag-preview / popover-ZZ27zE) —— */
.cg-ref-preview{position:fixed;z-index:1200;width:200px;border-radius:12px;overflow:hidden;pointer-events:none;
  background:var(--bg-block-primary-default);border:1px solid var(--stroke-secondary);
  box-shadow:0 16px 48px rgba(0,0,0,.22);animation:cgpop .12s ease}
.cg-ref-preview img,.cg-ref-preview video{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;background:#000}
.cg-ref-preview-aud{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 16px;
  color:#fff;background:linear-gradient(135deg,#3a78ff,#9a5cff)}
.cg-ref-preview-aud svg{width:34px;height:34px}
.cg-ref-preview-aud span{font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* —— @ 快速引用参考素材 —— */
.cg-at-btn{flex:none;height:34px;min-width:34px;padding:0 11px;border-radius:8px;cursor:pointer;
  background:transparent;border:1px solid var(--stroke-secondary);color:var(--text-secondary);
  font:600 15px/1 var(--font-family);transition:background-color .15s,border-color .15s,color .15s}
.cg-at-btn:hover{background:var(--bg-block-primary-hover);color:var(--brand-main-default)}
.cg-at-popup{position:fixed;z-index:1100;min-width:236px;max-width:330px;
  background:var(--component-input-bg);-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);
  border:1px solid var(--stroke-secondary);border-radius:12px;padding:6px;
  box-shadow:0 12px 40px rgba(0,0,0,.16);max-height:280px;overflow:auto;animation:cgpop .12s ease}
.cg-at-title{font-size:12px;color:var(--text-placeholder);padding:6px 8px 4px}
.cg-at-empty{font-size:12px;color:var(--text-placeholder);padding:10px 8px;text-align:center}
.cg-at-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;cursor:pointer}
.cg-at-item:hover,.cg-at-item.active{background:var(--bg-block-primary-hover)}
.cg-at-thumb{width:34px;height:34px;border-radius:7px;overflow:hidden;flex:none;background:#000;border:1px solid var(--stroke-secondary)}
.cg-at-thumb img,.cg-at-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.cg-at-thumb .cg-at-aud{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3a78ff,#9a5cff);color:#fff}
.cg-at-thumb .cg-at-aud svg{width:16px;height:16px}
.cg-at-meta{display:flex;flex-direction:column;min-width:0}
.cg-at-name{font-size:13px;color:var(--text-primary);font-weight:500}
.cg-at-sub{font-size:11px;color:var(--text-placeholder);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}

/* —— 工具条选择器:修复宽度(覆盖 lv-select 基础 width:100%),按内容收缩 —— */
.toolbar-settings-content-CLBVMF .lv-select,
.toolbar-settings-content-CLBVMF .lv-select .lv-select-view,
.toolbar-settings-content-CLBVMF .lv-select .lv-select-view-selector,
.toolbar-settings-content-CLBVMF .lv-select .lv-select-view-value{width:auto}
.toolbar-settings-content-CLBVMF .lv-select{flex:none}
/* 隐藏工具条横向滚动条(原站 overflow:scroll 会常驻一条) */
.toolbar-settings-CQFOuA{overflow-x:auto;overflow-y:visible;scrollbar-width:none}
.toolbar-settings-CQFOuA::-webkit-scrollbar{height:0;width:0}
.select-option-icon-yOSbUq svg{width:1em;height:1em}
.lv-select-arrow-icon svg{width:1em;height:1em}
.lv-select-view{cursor:pointer}
.toolbar-actions-MEjVOW>div{display:flex}
.submit-button-hqUula svg{width:1em;height:1em}
.submit-button-hqUula:not(.lv-btn-disabled){cursor:pointer}

/* —— 下拉弹层:渲染到 body(position:fixed,JS 定位),避开祖先 overflow:hidden 裁剪 —— */
.lv-select-popup{position:fixed;z-index:1000;
  background:var(--component-input-bg);-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);
  border:1px solid var(--stroke-secondary);border-radius:10px;padding:4px;
  box-shadow:0 10px 34px rgba(0,0,0,.14);white-space:nowrap;max-height:300px;overflow:auto;animation:cgpop .12s ease}
@keyframes cgpop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.lv-select-popup .opt{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:8px;
  font-size:13px;color:var(--text-primary);cursor:pointer}
.lv-select-popup .opt:not(:last-child){margin-bottom:4px}
.lv-select-popup .opt:hover{background:var(--bg-block-primary-hover)}
.lv-select-popup .opt.sel{background:var(--bg-block-primary-default);color:var(--brand-main-default)}
.lv-select-popup .opt .ic{display:inline-flex;color:var(--brand-main-default);font-size:16px}
.lv-select-popup .opt .ic svg{width:1em;height:1em}

/* —— "选择比例"弹层:复刻即梦(标题 + 灰底分段,每项按比例缩放的圆角形状 + 标签) —— */
.cg-ratio-popup{padding:14px;border-radius:16px;white-space:normal;overflow:visible}
.cg-ratio-title{font-size:13px;color:var(--text-secondary);padding:0 4px 10px}
.cg-ratio-grid{display:flex;gap:2px;background:var(--bg-block-primary-default);border-radius:12px;padding:4px}
.cg-ratio-item{flex:1 0 50px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;
  padding:10px 0 8px;border-radius:9px;cursor:pointer;transition:background-color .12s,box-shadow .12s}
.cg-ratio-item:hover{background:var(--bg-block-primary-hover)}
.cg-ratio-item.sel{background:var(--component-input-bg);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.cg-ratio-box{height:22px;display:flex;align-items:center;justify-content:center}
.cg-ratio-box i{display:block;box-sizing:border-box;border:1.6px solid var(--text-secondary);border-radius:3px}
.cg-ratio-item.sel .cg-ratio-box i{border-color:var(--text-primary)}
.cg-ratio-lbl{font-size:13px;color:var(--text-secondary);font-family:var(--alphanumeric-font-family,var(--font-family))}
.cg-ratio-item.sel .cg-ratio-lbl{color:var(--text-primary);font-weight:500}

/* 任务队列 */
.cg-jobs-head{display:flex;justify-content:space-between;align-items:center;margin:34px 4px 14px}
.cg-jobs-head b{font-size:14px;font-weight:600}
.cg-jobs-head .jmeta{color:var(--text-placeholder);font-weight:400;font-size:12.5px;margin-left:6px}
.cg-jobs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:14px}
.cg-job{background:var(--component-input-bg);border:1px solid var(--stroke-secondary);border-radius:16px;padding:12px;overflow:hidden;
  box-shadow:0 6px 22px rgba(0,0,0,.05)}
.cg-job .jhead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.cg-job .jmeta2{font-size:11.5px;color:var(--text-placeholder)}
.cg-job .jprompt{font-size:13px;margin:0;color:var(--text-secondary);word-break:break-word;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.badge{font-size:11px;padding:3px 9px;border-radius:999px;white-space:nowrap}
.b-run{background:rgba(0,161,194,.14);color:var(--brand-main-default)}
.b-ok{background:rgba(0,168,104,.14);color:#00a868}
.b-err{background:rgba(229,72,77,.12);color:#e5484d}
.cg-job video{width:100%;border-radius:10px;margin-top:10px;background:#000;display:block}
/* 图标按钮(应用 / 删除):lucide 线性图标 */
.cg-job .jicon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:none;
  cursor:pointer;background:transparent;border:none;border-radius:7px;color:var(--text-placeholder);
  font-size:15px;transition:background-color .15s,color .15s}
.cg-job .jicon svg{width:1em;height:1em}
.cg-job .jicon:hover{background:var(--bg-block-primary-hover);color:var(--text-primary)}
.cg-job .jicon:last-child:hover{color:#e5484d}
/* 右下角完成时间 */
.cg-job .jfoot{display:flex;justify-content:flex-end;min-height:0}
.cg-job .jfoot span{font-size:11px;color:var(--text-placeholder)}
.cg-job .jfoot span:not(:empty){margin-top:8px}
.cg-job .x{cursor:pointer;background:transparent;border:1px solid var(--stroke-secondary);color:var(--text-placeholder);
  border-radius:8px;padding:3px 9px;font-size:11.5px;transition:.15s}
.cg-job .x:hover{color:var(--text-primary)}
.cg-job .retry{margin-top:8px}
#jobsEmpty{color:var(--text-placeholder);font-size:13px;text-align:center;padding:26px 0}
