#content{max-width:1800px}
#content #main.commerce2{margin-left:140px;padding:0 20px 30px;text-align:left;background:none}
.commerce2 *{box-sizing:border-box}
.commerce2 [hidden]{display:none!important}
.commerce2 .c2-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding:20px 0 10px 0}
.commerce2 h2{font-size:16px;margin:0 0 14px}
.commerce2 h3{font-size:16px;margin:8px 0 18px}
.commerce2 .c2-panel{padding:20px!important;margin-bottom:18px!important;box-sizing:border-box}
.commerce2 button{cursor:pointer}
.commerce2 button:disabled{opacity:.45;cursor:default}
.commerce2 button:focus-visible,.commerce2 a:focus-visible{outline:2px solid #ba91ff;outline-offset:3px}
.commerce2 .c2-muted,.commerce2 p,.commerce2 small{font-size:12px;color:#b0afbb;line-height:1.7}
.commerce2 .c2-product{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;padding:10px 14px;border-radius:8px;background:#2b2d31}
.commerce2 .c2-product-label{color:#fff;font-size:14px;font-weight:600}
.commerce2 .c2-product-name.pw-trigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;padding:6px 14px;border:1px solid #f5a623;border-radius:20px;background:#1e1f22;color:#f5a623;font-size:15px;font-weight:700;cursor:pointer}
.commerce2 .c2-product-name.pw-trigger:hover,.commerce2 .c2-product-name.pw-trigger.pw-active{background:#3a2f1c}
.commerce2 .c2-product-name.is-default{border-style:dashed;border-color:#ff6b6b;color:#ff9b9b}
.commerce2 .c2-product-value{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.commerce2 .c2-product-edit{font-size:13px;opacity:.8}
.commerce2 .c2-product-hint{color:#999;font-size:12px}
.commerce2 .c2-product-hint.is-warning{color:#ff9b9b}
.commerce2 .c2-selected-head{display:flex;align-items:center;gap:6px;color:#fff;font-size:13px;font-weight:600;line-height:1.6}
.commerce2 .c2-selected-head strong{color:#f5a623;font-size:15px}
.commerce2 #c2ClearTemplates{margin-left:6px;border:0;background:transparent;padding:0;color:#ddd;font-size:12px;font-weight:400;text-decoration:underline}
.commerce2 .c2-template-strip{display:flex;align-items:flex-start;gap:14px;min-width:0;max-width:100%}
.commerce2 #c2TemplateActions{flex:0 0 176px;padding-top:14px}
.commerce2 .c2-template-row{display:flex;flex:1 1 0;flex-wrap:nowrap;align-items:stretch;gap:14px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:12px 12px 12px 2px;margin-top:2px;scrollbar-width:thin;scrollbar-color:#000 transparent}
@media(max-width:600px){.commerce2 .c2-template-strip{flex-direction:column;gap:0}.commerce2 #c2TemplateActions{flex:none}.commerce2 .c2-template-row{flex:none;width:100%}}
.commerce2 .c2-template-row::-webkit-scrollbar{height:8px}
.commerce2 .c2-template-row::-webkit-scrollbar-track{background:transparent}
.commerce2 .c2-template-row::-webkit-scrollbar-thumb{background:#000;border-radius:4px}
.commerce2 .c2-template{position:relative;flex:0 0 200px;width:200px;height:68px;border:1px solid #fff;border-radius:6px;background:#1e1f22}
.commerce2 .c2-template.is-active{border-color:#f5a623;box-shadow:0 0 0 1px #f5a623;}
.commerce2 .c2-template.is-active .c2-template-main{background: #000; color:#fff;;}
.commerce2 .c2-template.is-active:after{content:'';position:absolute;left:50%;bottom:-8px;width:12px;height:12px;margin-left:-6px;background:#000;border-right:2px solid #f5a623;border-bottom:2px solid #f5a623;transform:rotate(45deg)}
.commerce2 .c2-template-main{display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:6px;border:0;border-radius:6px;background:#fff;color:#333;text-align:left;font-size:13px;font-weight:600}
.commerce2 .c2-template-preview{position:relative;flex:0 0 54px;width:54px;height:54px;border-radius:4px;overflow:hidden;background:#fff}
.commerce2 .c2-template-preview img{display:block;width:100%;height:100%;object-fit:cover}
.commerce2 .c2-template-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commerce2 .c2-template-remove{position:absolute;top:-9px;right:-9px;z-index:2;display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:#FF9900;color:#fff;font-size:15px;font-weight:700;line-height:1}
.commerce2 .c2-template-remove:hover{background:#f5a623;color:#000}
.commerce2 .c2-template-ai{display:flex;align-items:center;justify-content:center; color:#999;font-size:18px;font-weight:800;letter-spacing:1px}
.commerce2 .c2-template-add{display:flex;flex-direction:column;justify-content:center;gap:4px;flex:0 0 176px;width:176px;height:68px;padding:4px 8px;border-radius:6px;background:#1e1f22}
.commerce2 .c2-add-link{display:flex;align-items:center;gap:6px;width:100%;padding:3px 4px;border:0;border-radius:4px;background:transparent;color:#ddd;font-size:12px;text-align:left;white-space:nowrap}
.commerce2 .c2-add-recommendation{color:#f5a623}
.commerce2 .c2-add-link:hover:not(:disabled){background:#2b2d31;color:#f5a623}
.commerce2 .c2-add-link:disabled{opacity:.6;cursor:progress}
.commerce2 .c2-add-link[hidden]{display:none}
.commerce2 .c2-add-icon{display:flex;align-items:center;justify-content:center;flex:0 0 20px;height:20px;border:0;border-radius:4px;background:linear-gradient(135deg,#f5a623,#ff7a45);color:#fff;font-size:16px;font-weight:800;line-height:1}
.commerce2 .c2-add-icon.c2-add-ai{background:linear-gradient(135deg,#7b5cff,#c04dff);font-size:10px}
.commerce2 .c2-prompt-box{display:grid;gap:12px;padding:16px;border-radius:8px;background:#2b2d31}
.commerce2 .c2-prompt-box h3{margin:0;color:#fff;font-size:13px}
.commerce2 #c2Prompt{width:100%;min-height:110px;resize:vertical;padding:10px;border:1px solid #3b3e45;border-radius:6px;background:#1e1f22;color:#eee;font-size:13px;line-height:1.7}
.commerce2 .c2-prompt-view{min-height:110px;max-height:320px;overflow:auto;padding:15px; border-radius:6px;background:#000;color:#fff;font-size:14px;line-height:1.7;white-space:pre-wrap;word-break:break-word;cursor:text}
.commerce2 .c2-prompt-view:hover,.commerce2 .c2-prompt-view:focus{border-color:#f5a623;outline:0}
.commerce2 .c2-prompt-view.is-empty:before{content:attr(data-placeholder);color:#777}
.commerce2 .c2-prompt-view[aria-disabled="true"]{opacity:.55;cursor:default}
.commerce2 .c2-prompt-view[hidden],.commerce2 #c2Prompt[hidden]{display:none}
.commerce2 .c2-prompt-view span{font-weight:700}
.commerce2 .c2-hl-param{color:#c39bff}
.commerce2 .c2-hl-orange{color:#ff9a3c}
.commerce2 .c2-hl-yellow{color:#ffd84d}
.commerce2 .c2-hl-blue{color:#00ccff}
.commerce2 .c2-hl-green{color:#52c41a}
.commerce2 .c2-hl-red{color:#ff4d4f}
.commerce2 .c2-generate{display:grid;gap:14px;margin-top:4px;padding-top:16px;border-top:1px solid #3b3e45}
.commerce2 #c2Controls .c2-pill.pw-trigger{border-color:transparent;background:transparent}
.commerce2 #c2Controls .c2-pill.pw-trigger:hover,.commerce2 #c2Controls .c2-pill.pw-trigger.pw-active{border-color:#555;background:#1e1f22}
.commerce2 #c2Submit{width:100%;min-height:48px;padding:0 24px;background:#6d27f2;color:#fff;border:0;border-radius:6px;font-size:16px;font-weight:700}
.commerce2 #c2Submit:not(:disabled):hover{background:#7d3cff}
.commerce2 #c2Summary{margin:-6px 0 0;text-align:center;font-size:12px;color:#b9bec8;line-height:1.8}
#c2Picker{display:flex;flex-direction:column;width:100%;height:100%;background:#2b2d31;color:#fff;text-align:left}
#c2Picker h2{margin:0;padding:14px 16px;border-bottom:1px solid #555;font-size:18px;color:#fff}
#c2Picker .c2-picker-tabs{display:flex;flex-wrap:wrap;gap:12px;padding:22px 16px 0;border-bottom:1px solid #555}
#c2Picker .c2-picker-tabs button{min-width:110px;padding:9px 18px;border:0;border-radius:4px 4px 0 0;background:#44474e;color:#fff;font-size:14px;cursor:pointer}
#c2Picker .c2-picker-tabs button.is-active{background:#6d27f2}
#c2Picker #c2PickerStatus{margin:0;padding:0 16px;color:#ffcd9e;font-size:13px}
#c2Picker #c2PickerStatus:empty{display:none}
#c2Picker .c2-picker-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px;align-content:start;padding:20px 16px}
#c2Picker .c2-picker-item{display:flex;flex-direction:column;gap:8px;padding:0;border:0;background:transparent;color:#ddd;text-align:center;font-size:13px;cursor:pointer}
#c2Picker .c2-picker-preview{position:relative;display:block;aspect-ratio:1;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#fff}
#c2Picker .c2-picker-preview img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
#c2Picker .c2-picker-item:hover .c2-picker-preview{border-color:#6d27f2}
#c2Picker .c2-picker-item:hover img{transform:scale(1.04)}
#c2Picker .c2-picker-item.is-selected .c2-picker-preview{border-color:#f5a623}
#c2Picker .c2-picker-tag{position:absolute;top:6px;left:6px;padding:2px 6px;border-radius:3px;background:#17181b;color:#fff;font-size:11px}
#c2Picker .c2-picker-chosen{position:absolute;right:6px;top:6px;padding:2px 6px;border-radius:3px;background:#f5a623;color:#000;font-size:11px;font-weight:700}
#c2Picker .c2-picker-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#c2Picker button:focus-visible{outline:2px solid #ba91ff;outline-offset:3px}
.commerce2 #c2Prompt:disabled{opacity:.55}
.commerce2 #c2SubmitMessage{color:#969ba6;line-height:1.6;margin:10px 0 0; display:none}
.commerce2 .c2-control-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.commerce2 .c2-control-row:empty{display:none}
.commerce2 .c2-pill.pw-trigger{display:inline-flex;align-items:center;gap:5px;flex:0 1 auto;max-width:100%;min-width:0;padding:6px 14px;border:1px solid #41454c;border-radius:20px;background:#191a1e;color:#ccc;font-size:13px;white-space:nowrap}
.commerce2 .c2-pill.pw-trigger:hover,.commerce2 .c2-pill.pw-trigger.pw-active{border-color:#fff;background:#252525}
.commerce2 .c2-pill .pw-label{color:#999;font-size:13px}
.commerce2 .c2-pill .pw-value{max-width:220px;overflow:hidden;text-overflow:ellipsis;color:#fff;font-weight:600}
.commerce2 .c2-pill .pw-arrow{color:#777;font-size:10px}
.commerce2 #c2SubmitMessage:empty{display:none}
.pw-aihuihua .pr-popup-editor textarea{min-height:110px;resize:vertical;height:auto;padding:10px;color:#fff;background:#191a1e}
.pw-aihuihua .pr-popup-options .pw-list-item{width:100%;color:#fff;font-size:13px;text-align:left}
.commerce2 #actionBox{position:static;display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;min-height:300px;width:auto;max-width:none;margin:0;padding:0;border:0}
.commerce2 #actionBox em{width:255px;height:300px;position:relative;display:block;flex:0 0 255px;margin:0;background:#fff;border:0;border-radius:10px;text-align:center;font-style:normal;overflow:visible}
.commerce2 #actionBox em small{background:#fff;color:#000;padding:5px 10px;border-bottom-right-radius:5px;border-top-left-radius:5px;position:absolute;left:0;top:0;z-index:2;line-height:1.5}
.commerce2 #actionBox em .imga{display:inline-block;width:255px;height:255px}
.commerce2 #actionBox em .img{width:100%;height:100%;padding:5%;object-fit:contain;object-position:center;display:block;border-radius:10px}
.commerce2 #actionBox em .del{position:absolute;right:-10px;top:-10px;margin:0;padding:8px;background:#313338;border:0;border-radius:3px;z-index:4;line-height:0}
.commerce2 #actionBox em .del img{display:block;width:14px;height:14px}
.commerce2 #actionBox em .del:hover{box-shadow:1px 1px 1px 1px #000}
.commerce2 #actionBox em p{display:block;color:#000;margin:-5px 0 0;height:45px;padding:0 5px;overflow:hidden;text-align:center;line-height:1.7}
.commerce2 #actionBox em p a{color:#666;display:inline-block;margin:0 2px;text-decoration:none;font-size:12px;padding:1px 5px}
.commerce2 #actionBox em p a:hover{color:#f60;text-decoration:underline}
.commerce2 #actionBox em .edit-image-link,.commerce2 #actionBox em .drag-sort-btn{position:absolute;bottom:50px;color:#fff;background:rgba(0,0,0,.65);border:1px solid rgba(255,255,255,.45);border-radius:14px;padding:4px 10px;font-size:12px;line-height:1.2;text-decoration:none;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:3}
.commerce2 #actionBox em .edit-image-link{right:10px}
.commerce2 #actionBox em .drag-sort-btn{left:10px;cursor:move;user-select:none}
.commerce2 #actionBox em:hover .edit-image-link,.commerce2 #actionBox em:hover .drag-sort-btn,.commerce2 #actionBox em:focus-within .edit-image-link,.commerce2 #actionBox em:focus-within .drag-sort-btn{opacity:1;pointer-events:auto}
.commerce2 #actionBox em .edit-image-link:hover,.commerce2 #actionBox em .drag-sort-btn:hover{color:#f60;border-color:#f60}
.commerce2 #actionBox em .file{display:block;width:48px;height:48px;margin:90px auto 20px}
.commerce2 #actionBox em.c2-upload-add{border:2px dashed #fff;background:#fff;color:#b3b8bf;cursor:pointer}
.commerce2 #actionBox em.c2-upload-add[aria-disabled=true]{opacity:.45;cursor:default}
.commerce2 #actionBox em.c2-drag-over{box-shadow:0 3px 0 #f60}
.commerce2 #actionBox:after{display:none}
.commerce2 #c2Retry,.commerce2 #c2RetryRecords{padding:8px 12px;background:#292b31;color:#fff;border:1px solid #444850;border-radius:5px}
.commerce2 .c2-product-hint:empty{display:none}
.commerce2 .c2-history-board{margin-top:14px;background:#1E1F22;border-radius:10px;padding:18px 20px 22px}
.commerce2 .c2-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.commerce2 .c2-history-title{margin:0;font-size:18px;line-height:1.4;color:#f5f7fb;font-weight:normal}
.commerce2 .c2-history-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.commerce2 .c2-history-card{width:100%;background:#24262b;border-radius:10px;overflow:hidden}
.commerce2 .c2-history-card.is-pending{border:1px solid #4c3a20}
.commerce2 .c2-history-card.is-fail{border:1px solid #5b2327}
.commerce2 .c2-history-image-wrap{position:relative;width:100%;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer}
.commerce2 .c2-history-image-wrap.is-video{background:#000;cursor:default}
.commerce2 .c2-history-image-wrap img,.commerce2 .c2-history-image-wrap video{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .2s ease}
.commerce2 .c2-history-image-wrap video{object-fit:contain}
.commerce2 .c2-history-image-wrap:hover img{opacity:.8}
.commerce2 .c2-history-badges{position:absolute;top:10px;left:10px;display:flex;gap:8px;z-index:2}
.commerce2 .c2-history-badge{padding:4px 10px;border-radius:5px;background:rgba(37,40,47,.5);color:#fff;font-size:11px;line-height:1.3}
.commerce2 .c2-history-pending{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;text-align:center;background:linear-gradient(180deg,#f3f3f3 0%,#ececec 100%);color:#4c5462;font-size:14px}
.commerce2 .c2-history-spinner{width:26px;height:26px;border-radius:50%;border:3px solid rgba(109,39,242,.18);border-top-color:#6D27F2;animation:c2Spin .8s linear infinite}
@keyframes c2Spin{to{transform:rotate(360deg)}}
.commerce2 .c2-history-actions{position:absolute;left:20px;right:20px;bottom:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease;z-index:2}
.commerce2 .c2-history-image-wrap.is-video .c2-history-actions{bottom:56px}
.commerce2 .c2-history-image-wrap:hover .c2-history-actions,.commerce2 .c2-history-image-wrap:focus-within .c2-history-actions{opacity:1;transform:translateY(0)}
.commerce2 .c2-history-action{display:inline-flex;align-items:center;justify-content:center;height:38px;border-radius:10px;background:rgba(57,61,70,.92);color:#fff;font-size:14px;text-decoration:none}
.commerce2 .c2-history-action:hover{background:rgba(84,90,102,.96);color:#fff}
.commerce2 #c2RetryRecords{margin-top:14px}
.c2-toast{position:fixed;left:50%;top:80px;z-index:10000;max-width:min(560px,90vw);padding:10px 18px;border-radius:8px;background:rgba(30,31,34,.95);border:1px solid #f5a623;color:#ffcd9e;font-size:14px;line-height:1.6;box-shadow:0 8px 24px rgba(0,0,0,.35);transform:translate(-50%,-10px);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.c2-toast.is-show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1600px){.commerce2 .c2-history-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1280px){.commerce2 .c2-history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.commerce2 .c2-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.commerce2 .c2-history-grid{grid-template-columns:1fr}}
@media(max-width:1100px){#content #main.commerce2{margin-left:0;min-width:0}}
@media(max-width:600px){.commerce2 #c2Submit{min-width:0}#content #main.commerce2{padding:8px}.commerce2 .c2-panel{padding:12px!important}}
.commerce2 .c2-history-header small a{color:#ba91ff;text-decoration:underline}
.commerce2 .c2-history-header small a:hover{color:#fff}
/* 商品视频 TAB: the embedded /product/video/?type=1 form replaces the image workspace. */
.commerce2.is-video > section{display:none!important}
.commerce2 .c2-video-panel{padding-top:4px}
.commerce2 .c2-video-panel[hidden]{display:none}
