:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#7a8598;--line:#e7ebf2;--primary:#2457e6;--primary-2:#1744c4;--danger:#d9363e;--success:#1e8e5a;--shadow:0 8px 30px rgba(25,40,72,.06)}*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:230px;background:#101728;color:#fff;padding:24px 18px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;gap:12px;align-items:center;padding:4px 8px 28px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#4f7cff,#2457e6);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;box-shadow:0 8px 20px rgba(36,87,230,.35)}.brand-mark.large{width:46px;height:46px;border-radius:14px}.brand strong{display:block;font-size:16px}.brand small,.login-brand small{display:block;color:#9da8bb;margin-top:3px}.side-nav{display:flex;flex-direction:column;gap:7px}.side-nav a{padding:12px 13px;border-radius:10px;color:#b9c2d4;display:flex;gap:11px;align-items:center}.side-nav a:hover,.side-nav a.active{background:#202b43;color:#fff}.side-nav span{width:18px;text-align:center}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.09);padding:18px 8px 0;display:flex;flex-direction:column;gap:8px}.sidebar-foot a{color:#cbd3e2}.small-muted{font-size:12px;color:#7f8ba1}.main-content{margin-left:230px;padding:24px 30px 100px;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.topbar h1{margin:0;font-size:25px}.topbar p{margin:7px 0 0;color:var(--muted)}.btn{border:1px solid #dfe4ed;background:#fff;color:#263247;border-radius:9px;padding:9px 14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.btn:hover{background:#f8fafc}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-2)}.btn.full{width:100%;padding:12px}.btn.small{padding:7px 10px;font-size:13px}.large-btn{padding:11px 20px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.panel-head h2{margin:0;font-size:17px}.panel-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow)}.stat-card span{display:block;color:var(--muted);font-size:13px}.stat-card strong{display:inline-block;font-size:25px;margin:8px 6px 4px 0}.stat-card small{color:var(--muted)}.filter-form{display:flex;gap:8px}.input,.select,.textarea{width:100%;border:1px solid #dce2ec;border-radius:8px;background:#fff;color:var(--text);padding:9px 11px;outline:none;transition:.15s}.input:focus,.select:focus,.textarea:focus{border-color:#80a2ff;box-shadow:0 0 0 3px rgba(36,87,230,.08)}.textarea{resize:vertical}.table-wrap,.product-table-wrap,.quote-table-wrap{overflow-x:auto}.data-table,.product-edit-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.data-table th{font-size:12px;color:#768196;background:#fafbfd;font-weight:600}.data-table tbody tr:hover{background:#fbfcff}.actions-col{min-width:240px}.row-actions{display:flex;gap:10px;align-items:center}.row-actions a,.row-actions button{font-size:13px;color:#315bd9;background:none;border:0;padding:0;cursor:pointer}.row-actions .link-danger{color:var(--danger)}.row-actions form{margin:0}.link-strong{font-weight:600;color:#244ecf}.money-strong{font-weight:700}.status-badge{font-size:12px;padding:4px 8px;border-radius:20px;background:#eef2f8;color:#607089}.status-已报价{background:#eef4ff;color:#2b5bd7}.status-已确认{background:#ecf8f1;color:#218554}.status-已失效{background:#f4f4f4;color:#7c8491}.empty-state{text-align:center;padding:45px;color:var(--muted)}.empty-state strong{display:block;color:#3d485c;margin-bottom:8px}.alert{padding:12px 14px;border-radius:9px;margin-bottom:16px}.alert.success{background:#eaf7f0;color:#18784b;border:1px solid #ccebdc}.alert.error{background:#fff0f0;color:#b62f35;border:1px solid #f5d4d5}.form-panel{margin-bottom:16px}.form-grid{display:grid;gap:14px;padding:20px}.form-grid.cols-2{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3{grid-template-columns:repeat(3,1fr)}.form-grid.cols-5{grid-template-columns:repeat(5,1fr)}.field{display:flex;flex-direction:column;gap:7px}.field>span{font-size:13px;color:#5a667a}.form-panel>.field{padding:20px}.required-note{font-size:12px;color:#e44c53}.product-edit-table th,.product-edit-table td{padding:10px;border-bottom:1px solid var(--line)}.product-edit-table th{font-size:12px;color:#6d788b;background:#fafbfd;text-align:left}.qty-col{width:110px}.remove-col{width:50px}.icon-btn{width:32px;height:32px;border-radius:8px;border:1px solid #e2e6ee;background:#fff;cursor:pointer;font-size:19px;line-height:1}.icon-btn.danger{color:var(--danger)}.icon-btn.danger:hover{background:#fff2f2}.live-total{color:var(--muted)}.live-total strong{font-size:20px;color:#1b2d50;margin-left:8px}.existing-images,.image-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:20px}.existing-image,.preview-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fafafa}.existing-image img,.preview-card img{width:100%;height:130px;object-fit:contain;background:#fff;display:block}.existing-image span,.preview-card span{display:block;padding:8px;font-size:12px;color:#69758a}.upload-box{margin:0 20px 20px;border:1.5px dashed #bcc7db;border-radius:12px;min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#516079;cursor:pointer;background:#fbfcff}.upload-box:hover{border-color:#7094f4;background:#f8faff}.upload-box input{display:none}.upload-box span{font-size:12px;color:var(--muted)}.image-preview-grid{padding-top:0}.sticky-savebar{position:fixed;left:230px;right:0;bottom:0;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:12px 30px;display:flex;justify-content:flex-end;gap:10px;align-items:center;z-index:20}.muted{color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.setting-card{margin-bottom:0}.wide-card{grid-column:1/-1}.setting-rows{padding:16px;display:flex;flex-direction:column;gap:9px}.setting-row{display:flex;gap:8px;align-items:center}.short-input{max-width:130px}.input-suffix{margin-left:-34px;margin-right:14px;color:var(--muted)}.detail-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.quote-sheet{background:#fff;border:1px solid #dfe4eb;box-shadow:0 12px 35px rgba(30,40,65,.08);max-width:1180px;margin:0 auto;padding:44px 46px 34px}.quote-sheet-head{text-align:center}.quote-kicker{font-size:12px;color:#7b8493;letter-spacing:.08em}.quote-sheet-head h2{font-size:26px;margin:8px 0 22px}.quote-meta-row{display:flex;justify-content:space-between;text-align:left;margin-bottom:16px;font-size:15px}.quote-table{width:100%;border-collapse:collapse;table-layout:fixed}.quote-table th,.quote-table td{border:1px solid #5d6470;padding:9px 7px;text-align:center;vertical-align:middle;word-break:break-word}.quote-table th{font-weight:600;background:#fafafa}.quote-table .narrow{width:52px}.quote-total-cell{font-weight:700;font-size:16px}.cell-sub{font-size:11px;color:#7c8493;margin-top:5px}.customer-info{display:flex;gap:50px;padding:24px 2px 8px;font-size:15px}.customer-info span{color:#687386}.quote-image-section{padding-top:14px}.quote-image-section h3{font-size:16px;margin:12px 0 14px}.quote-image-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.quote-image-card{border:1px solid #e4e7ed;border-radius:10px;overflow:hidden;min-height:220px;background:#fff;display:flex;align-items:center;justify-content:center}.quote-image-card img{width:100%;height:320px;object-fit:contain;display:block}.no-images{border:1px dashed #d6dbe4;color:#9aa3b2;padding:34px;text-align:center;border-radius:9px}.quote-note{margin-top:20px;padding:13px 15px;background:#fafbfc;border-radius:8px;color:#4e596b;line-height:1.7}.quote-footer{display:flex;justify-content:space-between;border-top:1px solid #e5e8ee;margin-top:24px;padding-top:14px;color:#8a93a1;font-size:12px}.export-tip{max-width:1180px;margin:12px auto;color:#8a93a1;font-size:12px}.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 15%,#eef3ff,transparent 35%),#f6f8fb;padding:20px}.login-card{width:420px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 60px rgba(31,49,85,.10);padding:34px}.login-brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}.login-brand strong{display:block;font-size:17px}.login-card h1{font-size:26px;margin:0 0 8px}.login-card .field-label{display:block;margin:22px 0 8px;color:#526078}.large-input{padding:12px;margin-bottom:12px}.login-tip{font-size:12px;color:#9aa3b2;text-align:center;margin:22px 0 0}@media(max-width:1100px){.form-grid.cols-5{grid-template-columns:repeat(3,1fr)}.form-grid.cols-3{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.wide-card{grid-column:auto}}@media(max-width:780px){.sidebar{position:static;width:100%;height:auto;padding:14px}.brand{padding-bottom:12px}.side-nav{flex-direction:row;overflow-x:auto}.sidebar-foot{display:none}.main-content{margin-left:0;padding:18px 14px 90px}.topbar{align-items:flex-start;gap:12px}.topbar p{display:none}.form-grid.cols-5,.form-grid.cols-3,.form-grid.cols-2{grid-template-columns:1fr}.sticky-savebar{left:0;padding:10px 14px}.panel-head{align-items:flex-start;flex-direction:column}.filter-form{width:100%;flex-wrap:wrap}.detail-toolbar{align-items:flex-start;flex-direction:column}.quote-sheet{padding:24px 16px}.quote-meta-row,.customer-info,.quote-footer{flex-direction:column;gap:8px}.quote-image-grid{grid-template-columns:1fr}.quote-image-card img{height:260px}.quote-table{min-width:900px}}
@media print{.sidebar,.topbar,.detail-toolbar,.export-tip,.sticky-savebar{display:none!important}.main-content{margin:0;padding:0}.quote-sheet{border:0;box-shadow:none;max-width:none;padding:12mm}.quote-image-card img{height:58mm}.quote-sheet{page-break-inside:auto}.quote-image-card{page-break-inside:avoid}}

/* v1.1 图片上传修复 */
.upload-box{position:relative;overflow:hidden;transition:border-color .18s,background .18s,box-shadow .18s}
.upload-box input[type="file"]{display:block!important;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:3}
.upload-box.dragging{border-color:var(--primary);background:#f1f5ff;box-shadow:0 0 0 4px rgba(36,87,230,.08)}
.upload-icon{display:flex!important;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#eef3ff;color:var(--primary)!important;font-size:22px!important;line-height:1}
.upload-warning{margin:18px 20px 0;padding:12px 14px;border:1px solid #f0d89c;background:#fff9e9;border-radius:10px;color:#7d5b08;font-size:12px;line-height:1.7}
.upload-warning strong{display:block;margin-bottom:2px;color:#664a06}
.preview-card{position:relative}
.preview-card .preview-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 34px 8px 8px}
.preview-card .preview-name{padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.preview-card .preview-meta small{color:var(--muted);white-space:nowrap}
.preview-remove{position:absolute;right:6px;top:6px;width:26px;height:26px;border:1px solid #e2e6ee;border-radius:50%;background:rgba(255,255,255,.94);color:var(--danger);font-size:18px;line-height:22px;cursor:pointer;z-index:4}
.preview-remove:hover{background:#fff2f2}

/* v1.2 多礼盒报价 */
.gift-boxes-section{margin-bottom:16px}.gift-boxes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 14px}.gift-boxes-toolbar h2{margin:0;font-size:20px}.gift-boxes-toolbar p{margin:6px 0 0;color:var(--muted);font-size:13px}.gift-box-card{margin-bottom:18px;overflow:hidden;border-color:#dce3ef}.gift-box-card-head{padding:16px 20px;background:linear-gradient(180deg,#fbfcff,#f7f9fd);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.gift-box-title-wrap{display:flex;align-items:center;gap:12px}.gift-box-number{width:34px;height:34px;border-radius:10px;background:#e8efff;color:#2457e6;display:inline-flex;align-items:center;justify-content:center;font-weight:800}.gift-box-title{margin:0;font-size:17px}.gift-box-title-wrap p{margin:3px 0 0;color:var(--muted);font-size:12px}.btn.danger-outline{border-color:#f0c8ca;color:#bb3c43;background:#fff}.btn.danger-outline:hover{background:#fff4f4}.gift-box-block{padding:18px 20px;border-bottom:1px solid var(--line)}.gift-box-block:last-child{border-bottom:0}.block-title{font-size:14px;font-weight:700;color:#344057;margin-bottom:12px}.block-subtitle{font-size:12px;color:var(--muted);margin-top:-7px;margin-bottom:12px}.block-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.block-title-row .block-title{margin-bottom:8px}.block-title-row .block-subtitle{margin:0}.compact-grid{padding:0}.gift-box-block .product-table-wrap{border:1px solid var(--line);border-radius:10px;overflow-x:auto}.gift-box-block .product-edit-table tr:last-child td{border-bottom:0}.gift-images-block .existing-images{padding:4px 0 14px}.gift-images-block .upload-box{margin:12px 0 14px}.gift-images-block .image-preview-grid{padding:0}.quote-sum-card{background:#17233a;color:#fff;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}.quote-sum-card span{color:#b9c4d7}.quote-sum-card strong{color:#fff;font-size:18px;margin-left:6px}.quote-main-note{margin:20px;width:calc(100% - 40px)}.gift-summary-cell{min-width:260px;white-space:normal!important}.gift-summary-item{display:flex;flex-direction:column;gap:2px;padding:3px 0}.gift-summary-item+ .gift-summary-item{border-top:1px dashed #e3e7ee;margin-top:4px;padding-top:7px}.gift-summary-item strong{font-size:13px}.gift-summary-item span,.gift-summary-more{font-size:11px;color:var(--muted)}.count-pill{display:inline-flex;padding:4px 8px;border-radius:20px;background:#eef3ff;color:#315bd9;font-size:12px;font-weight:600}.multi-gift-quote-table{min-width:1080px}.multi-gift-quote-table .gift-row-start td{border-top-width:1.5px}.gift-image-group{margin-bottom:22px}.gift-image-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 10px;padding:8px 10px;background:#f7f9fc;border-radius:7px}.gift-image-group-title span{font-size:12px;color:var(--muted)}
@media(max-width:780px){.gift-boxes-toolbar,.gift-box-card-head,.block-title-row,.quote-sum-card{align-items:flex-start;flex-direction:column}.gift-boxes-toolbar .btn,.gift-box-card-head .btn{width:100%}.gift-box-block{padding:16px 14px}.quote-main-note{margin:16px;width:calc(100% - 32px)}}
@media print{.quote-sum-card{display:none!important}.gift-image-group{page-break-inside:avoid}.multi-gift-quote-table{min-width:0}}

/* v1.3：复制礼盒 / 复制整份报价 / 自动保存 */
.gift-box-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gift-box-head-actions .btn{white-space:nowrap}.copy-mode-banner{margin:0 0 16px;padding:13px 16px;border:1px solid #cfdcff;background:#f5f8ff;border-radius:10px;display:flex;gap:10px;align-items:center;color:#395071}.copy-mode-banner strong{color:#2457e6}.copy-mode-banner span{font-size:13px}.existing-image-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px}.existing-image-foot span{padding:0}.mini-link,.mini-link-danger{border:0;background:transparent;padding:0;cursor:pointer;font-size:12px}.mini-link{color:#5f6f87}.mini-link:hover{color:#2457e6}.mini-link-danger{color:#c8444b}.mini-link-danger:hover{text-decoration:underline}.copy-source-image{position:relative}.copy-source-image:after{content:'副本来源';position:absolute;left:7px;top:7px;padding:3px 6px;border-radius:5px;background:rgba(36,87,230,.88);color:#fff;font-size:10px}.autosave-restore-banner{margin:0 0 16px;padding:12px 14px;border:1px solid #d8e4cf;background:#f7fbf4;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:14px}.autosave-restore-banner[hidden]{display:none!important}.autosave-restore-banner>div{display:flex;flex-direction:column;gap:3px}.autosave-restore-banner strong{font-size:13px;color:#42633b}.autosave-restore-banner span{font-size:12px;color:#6e7d68}.sticky-savebar{justify-content:space-between}.autosave-bar-left{display:flex;align-items:center;gap:8px;font-size:12px;color:#6f7a8c;min-width:0}.autosave-dot{width:8px;height:8px;border-radius:50%;background:#8ba2ca;flex:0 0 auto}.autosave-dot.saving{background:#d3a037;box-shadow:0 0 0 3px rgba(211,160,55,.14)}.autosave-dot.saved{background:#4c9b61}.autosave-dot.error{background:#d4545a}.sticky-save-actions{display:flex;align-items:center;gap:10px}.row-actions a[href*="copy="]{font-weight:600}.copy-quote-link{font-weight:600!important}
@media(max-width:780px){.gift-box-head-actions{width:100%}.gift-box-head-actions .btn{width:auto!important;flex:1}.copy-mode-banner,.autosave-restore-banner{align-items:flex-start;flex-direction:column}.sticky-savebar{gap:8px}.autosave-bar-left{max-width:48%;overflow:hidden}.autosave-bar-left #autosaveStatus{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sticky-save-actions{margin-left:auto}.sticky-save-actions .btn{padding-left:12px;padding-right:12px}.autosave-bar-left .mini-link{display:none}}

/* v1.4 产品资料库 */
.product-library-panel{overflow:hidden}.product-library-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;border-bottom:1px solid var(--line)}.product-library-top h2{margin:0;font-size:18px}.product-library-top p{margin:6px 0 0;color:var(--muted);font-size:13px}.product-library-actions,.gift-box-toolbar-actions,.block-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-tabs{display:flex;gap:8px;padding:14px 20px 0}.library-tab{padding:9px 13px;border-radius:9px;color:#5d687c;font-weight:600}.library-tab span{display:inline-flex;min-width:22px;justify-content:center;margin-left:5px;padding:2px 6px;border-radius:20px;background:#eef2f8;font-size:11px}.library-tab.active{background:#eef3ff;color:#2457e6}.library-tab.active span{background:#dce7ff}.library-filter{display:flex;gap:8px;padding:14px 20px 18px;border-bottom:1px solid var(--line)}.library-filter .input{max-width:420px}.library-filter .select{max-width:190px}.btn.ghost{background:transparent}.btn.primary-soft{background:#eef3ff;border-color:#d7e3ff;color:#2457e6}.btn.primary-soft:hover{background:#e5edff}.library-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;padding:20px}.library-card{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 5px 18px rgba(25,40,72,.04)}.library-card-media{height:180px;background:#f7f9fc;position:relative;display:flex;align-items:center;justify-content:center}.library-card-media img{width:100%;height:100%;object-fit:contain;background:#fff}.library-card-placeholder,.picker-card-placeholder{width:58px;height:58px;border-radius:16px;background:#eaf0ff;color:#315bd9;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800}.library-type-badge{position:absolute;left:10px;top:10px;padding:4px 8px;border-radius:20px;background:rgba(23,35,58,.82);color:#fff;font-size:11px}.library-card-body{padding:15px 16px;flex:1}.library-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.library-card-title-row h3{margin:0;font-size:17px;min-width:0}.soft-tag{padding:4px 8px;border-radius:20px;background:#f2f5f9;color:#667287;font-size:11px;white-space:nowrap}.library-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.library-meta-grid div{padding:9px 10px;border-radius:9px;background:#f8fafc;min-width:0}.library-meta-grid span{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.library-meta-grid strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-note{margin:12px 0 0;color:#6c778a;font-size:12px;line-height:1.55}.library-set-items{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.library-set-items span{font-size:11px;padding:4px 7px;border-radius:6px;background:#f4f6fa;color:#5c687b}.library-card-actions{display:flex;gap:8px;align-items:center;padding:12px 16px;border-top:1px solid var(--line);background:#fbfcfe}.library-card-actions form{margin-left:auto}.library-empty{padding:58px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--muted)}.library-empty strong{font-size:17px;color:#3e495d}.library-empty .btn{margin-top:8px}.set-builder-panel .product-table-wrap{margin:20px;border:1px solid var(--line);border-radius:10px}.library-source-col{min-width:190px}.library-set-table{min-width:920px}.library-existing-images{padding:0 20px 16px}.library-upload-box{margin-top:4px}.library-preset-banner{border-color:#d9e6d0;background:#f7fbf4}.library-preset-banner strong{color:#4b7c41}.product-stats{margin-bottom:18px}

body.modal-open{overflow:hidden}.library-picker-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.library-picker-modal[hidden]{display:none!important}.library-picker-backdrop{position:absolute;inset:0;background:rgba(11,18,32,.46)}.library-picker-dialog{position:relative;width:min(900px,96vw);max-height:min(760px,88vh);background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(13,24,45,.22);display:flex;flex-direction:column;overflow:hidden}.library-picker-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px}.library-picker-head h3{margin:0;font-size:18px}.library-picker-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.modal-close{border:0;background:#f2f5f9;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:22px;color:#596579}.library-picker-tools{padding:12px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.library-picker-tools .input{flex:1}.picker-image-option{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#5e6a7e}.library-picker-results{padding:14px 20px;overflow:auto;display:flex;flex-direction:column;gap:10px}.picker-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:13px;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fff}.picker-card:hover{border-color:#cbd9fb;background:#fcfdff}.picker-card-media{width:76px;height:66px;border-radius:9px;background:#f7f9fc;overflow:hidden;display:flex;align-items:center;justify-content:center}.picker-card-media img{width:100%;height:100%;object-fit:contain;background:#fff}.picker-card-placeholder{width:42px;height:42px;border-radius:12px;font-size:18px}.picker-card-main{min-width:0}.picker-card-title{display:flex;gap:8px;align-items:center;min-width:0}.picker-card-title strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-card-title span{font-size:10px;padding:3px 6px;background:#f1f4f8;border-radius:20px;color:#657186}.picker-card-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:7px;color:#6f7b8e;font-size:11px}.picker-set-summary{margin-top:7px;color:#8a94a4;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-empty{padding:44px;text-align:center;color:var(--muted)}.library-picker-foot{padding:12px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.library-source-image:after{content:'资料库';background:rgba(36,87,230,.88)}

@media(max-width:780px){.product-library-top,.library-filter,.library-picker-tools{align-items:stretch;flex-direction:column}.product-library-actions,.gift-box-toolbar-actions,.block-actions{width:100%}.product-library-actions .btn,.gift-box-toolbar-actions .btn,.block-actions .btn{flex:1}.library-filter .input,.library-filter .select{max-width:none}.library-card-grid{grid-template-columns:1fr;padding:14px}.library-picker-modal{padding:10px}.library-picker-dialog{max-height:92vh}.picker-card{grid-template-columns:62px minmax(0,1fr)}.picker-card-media{width:62px;height:58px}.picker-card>.btn{grid-column:1/-1}.library-picker-tools{gap:8px}.library-picker-foot{gap:12px}.library-set-table{min-width:880px}}

/* v1.4.2 产品资料库：材质 / 工艺可输入下拉框 */
.smart-combo{position:relative;display:flex;align-items:stretch;width:100%;min-width:0}.smart-combo .smart-combo-input{padding-right:38px;width:100%}.smart-combo-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:34px;border:0;border-left:1px solid var(--line);border-radius:0 8px 8px 0;background:#f8fafc;color:#647188;font-size:18px;line-height:1;cursor:pointer}.smart-combo-toggle:hover{background:#eef3ff;color:var(--primary)}.smart-combo-input:focus+.smart-combo-toggle{border-left-color:#c8d6fb}.table-smart-combo{min-width:145px}.smart-combo-menu{position:fixed;z-index:1000;overflow:auto;padding:6px;background:#fff;border:1px solid #dce3ee;border-radius:10px;box-shadow:0 14px 38px rgba(25,40,72,.16)}.smart-combo-menu[hidden]{display:none!important}.smart-combo-option{display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;color:#263248;font:inherit;cursor:pointer;white-space:normal}.smart-combo-option:hover,.smart-combo-option.active{background:#eef3ff;color:#2457e6}.smart-combo-empty{padding:12px 10px;color:var(--muted);font-size:12px;line-height:1.5}.library-set-table td .smart-combo .input{min-width:0}
@media(max-width:780px){.smart-combo-menu{max-width:calc(100vw - 16px)!important}.table-smart-combo{min-width:150px}}


/* v1.4.3 报价单视觉升级：页面显示 / PNG导出 / 打印同步 */
.quote-sheet-v143{position:relative;max-width:1220px;padding:38px 42px 30px;border:1px solid #dce4ee;border-radius:4px;box-shadow:0 18px 50px rgba(26,46,77,.10);overflow:hidden}
.quote-sheet-v143:before{content:'';position:absolute;left:0;right:0;top:0;height:6px;background:#244f78}
.quote-sheet-head-v143{text-align:left}
.quote-brandline{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:4px;color:#244f78}
.quote-company-name{font-size:15px;font-weight:700;letter-spacing:.02em}
.quote-no-pill{font-size:11px;color:#607288;background:#f1f5f9;border:1px solid #dce5ee;border-radius:999px;padding:6px 11px;white-space:nowrap}
.quote-title-block{text-align:center;padding:20px 0 22px}
.quote-title-en{font-size:10px;letter-spacing:.28em;color:#96a3b2;font-weight:600;margin-bottom:5px}
.quote-title-block h2{margin:0;color:#172b4d;font-size:28px;letter-spacing:.08em;font-weight:700}
.quote-title-line{width:42px;height:3px;background:#244f78;border-radius:2px;margin:13px auto 0}
.quote-info-grid{display:grid;grid-template-columns:1.35fr 1.35fr 1fr .8fr;border:1px solid #dce4ed;background:#f8fafc;margin-bottom:22px}
.quote-info-item{min-width:0;padding:11px 13px;border-right:1px solid #dce4ed}
.quote-info-item:last-child{border-right:0}
.quote-info-item span{display:block;color:#7a8797;font-size:11px;margin-bottom:5px}
.quote-info-item strong{display:block;color:#253858;font-size:13px;line-height:1.45;word-break:break-word}
.quote-section-head{display:flex;align-items:baseline;gap:9px;margin:24px 0 10px;color:#244f78;font-weight:700;font-size:15px}
.quote-section-head small{font-size:9px;letter-spacing:.12em;color:#9aa6b4;font-weight:500}
.quote-section-head-table{margin-top:0}
.quote-table-wrap-v143{border:1px solid #9eafc0;border-radius:2px;overflow:hidden}
.quote-table-v143{border-collapse:separate;border-spacing:0}
.quote-table-v143 th,.quote-table-v143 td{border:0;border-right:1px solid #b9c5d1;border-bottom:1px solid #c8d1db;padding:9px 7px;font-size:12.5px;line-height:1.45}
.quote-table-v143 th:last-child,.quote-table-v143 td:last-child{border-right:0}
.quote-table-v143 tbody tr:last-child td{border-bottom:0}
.quote-table-v143 thead tr:first-child th{background:#244f78;color:#fff;border-color:#7890a8;font-size:12px;font-weight:700}
.quote-table-v143 thead tr:nth-child(2) th{background:#eaf0f6;color:#32465a;border-color:#c6d1dc;font-size:11.5px}
.quote-table-v143 tbody tr.gift-row-start:not(:first-child) td{border-top:2px solid #8fa4b8}
.quote-table-v143 tbody tr:nth-child(even) td{background:#fbfcfd}
.quote-seq-cell{font-weight:700;color:#244f78;background:#f4f7fa!important}
.quote-gift-cell strong{font-size:13px;color:#1f3550}
.quote-table-v143 .cell-sub{color:#7d8998;font-size:10.5px;line-height:1.45;margin-top:5px}
.quote-price-cell{font-weight:600;color:#2c4158}
.quote-table-v143 .quote-total-cell{font-size:14px;color:#173f6a;background:#f3f7fb!important}
.quote-remark-block{display:grid;grid-template-columns:105px 1fr;border:1px solid #d6e0ea;border-top:0;min-height:52px;background:#fff}
.quote-remark-label{display:flex;align-items:flex-start;justify-content:center;padding:13px 10px;background:#eef3f8;color:#244f78;font-size:12.5px;font-weight:700;letter-spacing:.02em}
.quote-remark-content{padding:12px 14px;color:#4f5f70;font-size:12.5px;line-height:1.7;word-break:break-word}
.quote-remark-empty{color:#b0bac5}
.quote-image-section-v143{padding-top:0}
.gift-image-group-v143{margin-bottom:18px;padding:12px 12px 14px;background:#fafbfd;border:1px solid #e2e8ef;border-radius:8px}
.gift-image-group-v143 .gift-image-group-title{margin:0 0 10px;padding:0 2px;display:flex;align-items:center;gap:9px;color:#31475f}
.gift-image-group-v143 .gift-image-group-title strong{font-size:13px}
.gift-image-group-v143 .gift-image-group-title span{font-size:10.5px;color:#788799;background:#eef2f6;border-radius:999px;padding:3px 7px}
.quote-sheet-v143 .quote-image-grid{gap:12px}
.quote-sheet-v143 .quote-image-card{border:1px solid #e0e6ed;border-radius:6px;box-shadow:none;background:#fff;min-height:320px;padding:10px}
.quote-sheet-v143 .no-images{border:1px dashed #d5dde6;background:#fafbfd;color:#99a4b1;border-radius:6px;padding:28px}
.quote-footer-v143{margin-top:24px;padding-top:12px;border-top:1px solid #dfe5ec;color:#8b97a5;font-size:10.5px}
.quote-footer-v143 span:first-child{color:#687789;font-weight:600}
@media(max-width:980px){.quote-info-grid{grid-template-columns:repeat(2,1fr)}.quote-info-item:nth-child(2){border-right:0}.quote-info-item:nth-child(-n+2){border-bottom:1px solid #dce4ed}.quote-sheet-v143{padding:30px 26px 26px}}
@media(max-width:780px){.quote-brandline{align-items:flex-start;flex-direction:column}.quote-title-block h2{font-size:23px}.quote-info-grid{grid-template-columns:1fr}.quote-info-item{border-right:0;border-bottom:1px solid #dce4ed!important}.quote-info-item:last-child{border-bottom:0!important}.quote-remark-block{grid-template-columns:82px 1fr}.quote-sheet-v143{padding:24px 14px 22px}.quote-sheet-v143 .quote-image-card{min-height:260px}}
@media print{.quote-sheet-v143{padding:10mm!important;border:0!important;border-radius:0!important;box-shadow:none!important}.quote-sheet-v143:before{height:2mm}.quote-brandline{padding-top:2mm}.quote-title-block{padding:5mm 0}.quote-title-block h2{font-size:20pt}.quote-info-grid{grid-template-columns:1.35fr 1.35fr 1fr .8fr}.quote-info-item{border-right:1px solid #dce4ed!important;border-bottom:0!important}.quote-table-v143 th,.quote-table-v143 td{font-size:8.5pt;padding:5px 4px}.quote-remark-content,.quote-remark-label{font-size:8.5pt}.quote-sheet-v143 .quote-image-card{min-height:58mm;padding:3mm}.quote-footer-v143{font-size:7.5pt}}

/* v1.5.0 产品资料库：客户产品介绍 / MOQ */
.panel-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.field small{color:var(--muted);font-size:11px;line-height:1.45}.form-grid .span-2{grid-column:span 2}.form-grid .span-3{grid-column:1/-1}.customer-intro-editor .textarea{min-height:98px;line-height:1.65}.product-intro-toolbar{max-width:1220px;margin-left:auto;margin-right:auto}
.product-intro-sheet{position:relative;max-width:1220px;margin:0 auto;background:#fff;border:1px solid #dce4ee;box-shadow:0 18px 50px rgba(26,46,77,.10);padding:42px 46px 30px;overflow:hidden}.product-intro-sheet:before{content:'';position:absolute;left:0;right:0;top:0;height:6px;background:#244f78}.product-intro-head{padding-top:2px}.product-intro-brandline{display:flex;align-items:center;justify-content:space-between;gap:16px}.product-intro-company{font-size:15px;font-weight:700;color:#244f78}.product-intro-type{font-size:10px;letter-spacing:.18em;color:#6c7c8e;border:1px solid #dce5ee;background:#f5f8fb;border-radius:999px;padding:6px 10px;font-weight:700}.product-intro-kicker{margin-top:26px;font-size:10px;letter-spacing:.25em;color:#99a6b4;font-weight:600}.product-intro-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:7px;padding-bottom:18px;border-bottom:1px solid #e3e9ef}.product-intro-title-row h2{margin:5px 0 0;font-size:31px;line-height:1.25;color:#182c48;letter-spacing:.02em}.product-intro-category{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf3f8;color:#536b84;font-size:11px}.product-intro-moq{min-width:150px;text-align:right}.product-intro-moq span{display:block;font-size:10px;letter-spacing:.14em;color:#98a5b4}.product-intro-moq strong{display:block;margin-top:5px;font-size:20px;color:#244f78}.product-intro-summary{max-width:900px;margin-top:16px;color:#56677a;font-size:13px;line-height:1.85;word-break:break-word}.product-intro-hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;margin-top:24px}.product-intro-hero-media{min-height:430px;border:1px solid #e0e7ee;background:#fafbfd;display:flex;align-items:center;justify-content:center;padding:16px}.product-intro-hero-media img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:430px;object-fit:contain}.product-intro-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#98a4b2}.product-intro-placeholder span{width:72px;height:72px;border-radius:22px;background:#edf3f8;color:#244f78;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800}.product-intro-placeholder strong{font-size:13px}.product-intro-spec-panel{border:1px solid #dce5ee;background:#f8fafc;padding:20px 20px 18px}.product-intro-section-label{display:flex;align-items:baseline;gap:9px;color:#244f78;font-size:15px;font-weight:700;margin-bottom:12px}.product-intro-section-label small{color:#9ca8b5;font-size:9px;letter-spacing:.14em;font-weight:600}.product-intro-spec-list{border-top:1px solid #dfe6ed}.product-intro-spec-row{display:grid;grid-template-columns:88px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8ee}.product-intro-spec-row span{color:#8794a3;font-size:11px}.product-intro-spec-row strong{font-size:12.5px;line-height:1.55;color:#30475f;word-break:break-word}.product-intro-custom{margin-top:14px;padding:12px 13px;background:#fff;border:1px solid #e0e7ed}.product-intro-custom span{display:block;color:#8794a3;font-size:10.5px;margin-bottom:5px}.product-intro-custom p{margin:0;color:#4d6074;font-size:12px;line-height:1.65}.product-intro-description{margin-top:14px;padding:14px 14px 15px;background:#fff;border:1px solid #dce5ed;border-left:3px solid #244f78}.product-intro-description-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}.product-intro-description-title span{color:#53677c;font-size:11px;font-weight:700}.product-intro-description-title small{color:#a2adba;font-size:8.5px;letter-spacing:.10em;font-weight:600}.product-intro-description p{margin:0;color:#40566c;font-size:12px;line-height:1.8;word-break:break-word;text-align:justify}.product-intro-section{margin-top:28px}.product-intro-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-intro-point{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:10px;padding:13px 14px;background:#f7f9fb;border:1px solid #e2e8ee;min-height:58px}.product-intro-point b{color:#244f78;font-size:11px;letter-spacing:.08em}.product-intro-point span{font-size:12.5px;color:#42576c;line-height:1.55}.product-intro-set-table-wrap{border:1px solid #9eafc0;overflow:hidden}.product-intro-set-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.product-intro-set-table th,.product-intro-set-table td{padding:10px 9px;border-right:1px solid #c4ced8;border-bottom:1px solid #d2dae2;text-align:center;font-size:12px;line-height:1.45;word-break:break-word}.product-intro-set-table th{background:#244f78;color:#fff;font-weight:700}.product-intro-set-table th:first-child{width:64px}.product-intro-set-table th:last-child{width:80px}.product-intro-set-table th:last-child,.product-intro-set-table td:last-child{border-right:0}.product-intro-set-table tbody tr:last-child td{border-bottom:0}.product-intro-set-table tbody tr:nth-child(even) td{background:#fbfcfd}.product-intro-set-table td:nth-child(2){text-align:left}.product-intro-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-intro-gallery.count-1{grid-template-columns:1fr}.product-intro-gallery-card{min-height:300px;border:1px solid #e0e7ee;background:#fafbfd;display:flex;align-items:center;justify-content:center;padding:12px}.product-intro-gallery-card img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:300px;object-fit:contain}.product-intro-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:13px;border-top:1px solid #e0e6ec;color:#8d99a6;font-size:10.5px}.product-intro-footer span:first-child{font-weight:600;color:#69788a}
@media(max-width:980px){.product-intro-sheet{padding:34px 28px 26px}.product-intro-hero-grid{grid-template-columns:1fr}.product-intro-hero-media{min-height:360px}.product-intro-hero-media img{max-height:360px}.product-intro-spec-panel{padding:18px}.product-intro-points{grid-template-columns:1fr}}
@media(max-width:780px){.panel-head-actions{width:100%}.panel-head-actions .btn{flex:1}.form-grid .span-2,.form-grid .span-3{grid-column:auto}.product-intro-title-row{align-items:flex-start;flex-direction:column}.product-intro-moq{text-align:left;min-width:0}.product-intro-title-row h2{font-size:25px}.product-intro-sheet{padding:26px 14px 22px}.product-intro-hero-media{min-height:280px}.product-intro-hero-media img{max-height:280px}.product-intro-gallery{grid-template-columns:1fr}.product-intro-gallery-card{min-height:260px}.product-intro-gallery-card img{max-height:260px}.product-intro-footer{align-items:flex-start;flex-direction:column}}
@media print{.product-intro-sheet{max-width:none;padding:9mm!important;border:0!important;box-shadow:none!important}.product-intro-sheet:before{height:2mm}.product-intro-head{padding-top:2mm}.product-intro-kicker{margin-top:5mm}.product-intro-title-row h2{font-size:22pt}.product-intro-summary{font-size:9pt}.product-intro-hero-grid{grid-template-columns:1.45fr .75fr;gap:5mm;page-break-inside:avoid}.product-intro-hero-media{min-height:85mm;padding:3mm}.product-intro-hero-media img{max-height:82mm}.product-intro-spec-panel{padding:4mm}.product-intro-section{page-break-inside:avoid;margin-top:6mm}.product-intro-gallery-card{min-height:58mm;padding:3mm}.product-intro-gallery-card img{max-height:55mm}.product-intro-footer{font-size:7.5pt}}

/* v1.5.1 产品介绍：打样 / 大货信息提醒 */
.product-intro-production-section{margin-top:22px;padding:18px 20px;border:1px solid #d9e3ec;background:#f8fafc}.product-intro-production-section .product-intro-section-label{margin-bottom:13px}.product-intro-production-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-intro-production-card{position:relative;min-height:88px;padding:13px 14px 14px;border:1px solid #dfe6ed;background:#fff;overflow:hidden}.product-intro-production-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#7b91a8}.product-intro-production-card.is-sample:before{background:#6d8fc6}.product-intro-production-card.is-bulk:before{background:#2f6f68}.product-intro-production-card span{display:block;color:#8694a4;font-size:10.5px;margin-bottom:7px}.product-intro-production-card strong{display:block;color:#31485f;font-size:12.5px;line-height:1.65;font-weight:650;word-break:break-word}.customer-intro-editor .field small{min-height:0}
@media(max-width:1100px){.product-intro-production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.product-intro-production-section{padding:15px 14px}.product-intro-production-grid{grid-template-columns:1fr}.product-intro-production-card{min-height:0}}
@media print{.product-intro-production-section{margin-top:5mm;padding:4mm;page-break-inside:avoid}.product-intro-production-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2.5mm}.product-intro-production-card{min-height:20mm;padding:3mm}.product-intro-production-card span{font-size:7.5pt}.product-intro-production-card strong{font-size:8.5pt;line-height:1.5}}


/* V1.5.3 产品介绍图片文字水印 */
.product-intro-image{position:relative;overflow:hidden}
.product-intro-image>img{position:relative;z-index:1}
.product-intro-watermark-layer{--product-watermark-opacity:.12;position:absolute;inset:0;z-index:4;pointer-events:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));align-items:center;justify-items:center;overflow:hidden;padding:8px 0}
.product-intro-watermark-layer span{display:block;max-width:170%;color:#2f465e;opacity:var(--product-watermark-opacity);font-size:14px;font-weight:700;line-height:1;letter-spacing:.09em;white-space:nowrap;transform:rotate(-27deg);transform-origin:center;text-shadow:0 1px 1px rgba(255,255,255,.9);user-select:none}
.product-intro-hero-media .product-intro-watermark-layer span{font-size:15px}
.watermark-settings-panel{margin-top:18px}
.watermark-settings-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:24px;align-items:stretch}
.watermark-setting-fields{display:flex;flex-direction:column;gap:16px}
.watermark-switch-row{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid #dce5ee;background:#f8fafc;border-radius:8px;cursor:pointer}
.watermark-switch-row input{width:18px;height:18px;margin-top:1px;accent-color:#244f78;flex:0 0 auto}
.watermark-switch-row span{display:flex;flex-direction:column;gap:3px}.watermark-switch-row strong{font-size:13px;color:#30475f}.watermark-switch-row small,.field-help{display:block;color:#8a98a7;font-size:11px;line-height:1.55;font-weight:400}
.watermark-opacity-range{width:100%;accent-color:#244f78;cursor:pointer}.field>span b{font-weight:700;color:#244f78;margin-left:5px}
.watermark-preview-card{border:1px solid #dce5ee;background:#f8fafc;border-radius:10px;padding:14px;display:flex;flex-direction:column}
.watermark-preview-label{font-size:11px;color:#7f8d9c;font-weight:700;margin-bottom:9px}
.watermark-preview-art{position:relative;overflow:hidden;min-height:220px;border:1px solid #e0e7ee;background:linear-gradient(135deg,#eef3f7 0%,#fff 47%,#e7edf3 100%);display:flex;align-items:center;justify-content:center;border-radius:7px}
.watermark-preview-product{position:relative;z-index:1;width:58%;aspect-ratio:1.15/1;border-radius:24px;background:linear-gradient(145deg,#d5dee8,#f8fafc);border:1px solid #cbd6e1;box-shadow:0 18px 32px rgba(43,64,88,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#66798d}.watermark-preview-product span{font-size:9px;letter-spacing:.22em}.watermark-preview-product strong{font-size:14px;color:#40566c}.watermark-preview-card>p{margin:10px 2px 0;color:#8b98a6;font-size:10.5px;line-height:1.55}.watermark-preview-layer{border-radius:7px}
@media(max-width:900px){.watermark-settings-grid{grid-template-columns:1fr}.watermark-preview-art{min-height:190px}}
@media print{.product-intro-watermark-layer{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* ===== V1.6.0 用户管理 / 权限 ===== */
.login-password-label{display:block;margin-top:16px}
.access-denied-card h1{margin-bottom:8px}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:12px 0 14px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.1)}
.sidebar-user-avatar,.user-list-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:12px;font-weight:800}
.sidebar-user-avatar{width:36px;height:36px;background:rgba(255,255,255,.13);color:#fff}
.sidebar-user span:last-child{display:flex;flex-direction:column;min-width:0}
.sidebar-user strong{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user small{font-size:11px;color:rgba(255,255,255,.58);margin-top:2px}
.settings-user-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;margin-bottom:18px;background:linear-gradient(135deg,#f7fbff 0%,#fff 72%);border-color:#dbe9f7}
.settings-user-entry>div{display:flex;align-items:center;gap:14px}
.settings-user-entry h2{margin:0 0 4px;font-size:17px}.settings-user-entry p{margin:0;color:#6d7682;font-size:13px}
.settings-user-icon{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#eaf4ff;font-size:21px}
.user-management-hero{background:linear-gradient(135deg,#f8fbff 0%,#fff 72%)}
.user-security-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-top:12px;background:#f7f9fb;border:1px solid #edf0f4;border-radius:12px;font-size:12px;color:#68717c}
.user-security-note strong{color:#2d3642;white-space:nowrap}
.users-table td{vertical-align:middle}
.user-cell{display:flex;align-items:center;gap:10px;min-width:150px}
.user-list-avatar{width:38px;height:38px;background:#edf4fb;color:#315f8b;border:1px solid #dce9f5}
.user-cell>span:last-child{display:flex;flex-direction:column}.user-cell small{color:#939ba5;margin-top:2px}
.role-badge,.account-status,.scope-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:12px;white-space:nowrap}
.role-badge.admin{background:#eaf3ff;color:#245c93}.role-badge.user{background:#f2f4f7;color:#626c78}
.account-status.enabled{background:#eaf8ef;color:#31774a}.account-status.disabled{background:#fff0f0;color:#b84c4c}
.scope-pill.all{background:#eef4ff;color:#496b9e}.scope-pill.own{background:#fff6e8;color:#9b6823}
.permission-summary{max-width:310px;line-height:1.65;color:#59636e;font-size:12px}.permission-summary span{color:#8d96a1}
.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.permission-card{display:flex;align-items:flex-start;gap:11px;padding:15px 14px;border:1px solid #e6eaf0;border-radius:13px;background:#fff;cursor:pointer;transition:.15s ease}
.permission-card:hover{border-color:#c9d9e9;background:#fbfdff}.permission-card input{margin-top:3px;width:16px;height:16px;accent-color:#2f6fa6}
.permission-card span{display:flex;flex-direction:column;gap:5px}.permission-card strong{font-size:13px;color:#26313d}.permission-card small{font-size:12px;line-height:1.55;color:#7a8490}
.permission-scope-card{background:#fffaf2;border-color:#f0e3cc}
.permission-tip{margin-top:14px;padding:12px 14px;border-radius:11px;background:#f7f9fc;color:#6d7681;font-size:12px;line-height:1.65}
.permission-editor.permissions-disabled{opacity:.62}.permission-editor.permissions-disabled .permission-grid{pointer-events:none;filter:grayscale(.2)}
.permission-editor.permissions-disabled:after{content:'管理员拥有全部权限，无需单独勾选';display:block;margin-top:12px;color:#76818d;font-size:12px}
@media(max-width:1100px){.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.permission-grid{grid-template-columns:1fr}.settings-user-entry{align-items:flex-start;flex-direction:column}.users-table{min-width:900px}}
