:root{--brand:#ff6a00;--brand2:#ff9d2e;--bg:#f5f7fb;--card:#fff;--text:#111827;--muted:#64748b;--line:#e5e7eb;--green:#16a34a;--red:#dc2626;--orange:#ea580c;--blue:#2563eb;--soft:#fff7ed;--shadow:0 12px 32px rgba(15,23,42,.065)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.hero{background:linear-gradient(135deg,#111827 0,#1f2937 48%,#9a3412 100%);color:#fff;padding:0 24px 42px}.topnav{max-width:1480px;margin:auto;height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-size:16px}.brand span{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;font-size:20px;font-weight:950}.nav-actions{display:flex;gap:10px;align-items:center}.nav-actions a{padding:9px 13px;border-radius:10px;color:#e5e7eb;font-size:13px;font-weight:800}.nav-actions a:hover{background:rgba(255,255,255,.1)}.hero-inner{max-width:1480px;margin:20px auto 0;display:flex;align-items:flex-end;justify-content:space-between;gap:30px}.hero h1{font-size:40px;line-height:1.2;margin:10px 0 12px}.hero p{max-width:800px;color:#e2e8f0;line-height:1.8;margin:0}.eyebrow,.step-label{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:900}.hero-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.hero-badges span{white-space:nowrap;padding:8px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);font-size:12px;font-weight:800}.page{max-width:1480px;margin:-20px auto 60px;padding:0 20px}.workflow{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px;padding:10px;margin-bottom:18px}.workflow div{padding:14px 16px;display:flex;align-items:center;gap:10px;border-right:1px solid var(--line)}.workflow div:last-child{border-right:0}.workflow b{width:30px;height:30px;border-radius:10px;background:var(--soft);color:#c2410c;display:grid;place-items:center}.workflow span{font-size:13px;font-weight:800;color:#475569}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:20px;margin-bottom:18px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h2{margin:7px 0 5px;font-size:22px}.section-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}.step-label{background:var(--soft);color:#c2410c}.save-state{font-size:12px;color:var(--muted);padding:8px 11px;background:#f8fafc;border-radius:999px}.settings-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px}.settings-grid label,.editor-toolbar label{display:block;font-size:12px;font-weight:900;color:#475569}.settings-grid input,.settings-grid select,.editor-toolbar select{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 11px;margin-top:6px;outline:none;color:var(--text)}.settings-grid input:focus,.settings-grid select:focus,.template-card select:focus,.editor-toolbar select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,106,0,.1)}.settings-grid label{position:relative}.settings-grid label small{position:absolute;right:9px;bottom:12px;color:#94a3b8}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.template-card{border:1px solid var(--line);border-radius:17px;padding:16px;background:linear-gradient(180deg,#fff,#f8fafc)}.template-card>div{display:flex;align-items:center;gap:9px;margin-bottom:12px}.template-card span{font-size:11px;font-weight:900;color:#c2410c;background:#ffedd5;padding:4px 7px;border-radius:999px}.template-card h3{margin:0;font-size:16px}.template-card select{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 10px}.template-card button{margin-top:10px;border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:900;padding:0}.template-card small{display:block;min-height:36px;margin-top:9px;color:var(--muted);line-height:1.5}.btn{border:0;border-radius:11px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;padding:10px 14px;font-size:13px;font-weight:950;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.btn.secondary{background:#eff6ff;color:#1d4ed8}.btn.subtle{background:#f1f5f9;color:#334155}.btn.danger{background:#fee2e2;color:#b91c1c}.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.file-btn{position:relative;overflow:hidden}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.summary-grid div{padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}.summary-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.summary-grid b{font-size:22px}.green{color:var(--green)}.orange{color:var(--orange)}.red{color:var(--red)}.filterbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.filter-tabs{display:flex;gap:7px;flex-wrap:wrap}.filter-tabs button{border:0;background:#f1f5f9;color:#475569;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:900}.filter-tabs button.active{background:var(--soft);color:#c2410c}.legend{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-left:6px}.dot.ready{background:var(--green)}.dot.missing{background:var(--orange)}.dot.error{background:var(--red)}.table-wrap{border:1px solid var(--line);border-radius:16px;overflow:auto;max-height:650px;background:#fff}.product-table{border-collapse:separate;border-spacing:0;min-width:1640px;width:100%}.product-table th,.product-table td{border-bottom:1px solid var(--line);border-right:1px solid #f1f5f9;padding:8px;text-align:left;font-size:12px;white-space:nowrap;background:#fff}.product-table th{position:sticky;top:0;z-index:4;background:#f8fafc;color:#475569;font-weight:950;padding:11px 8px}.product-table tr:last-child td{border-bottom:0}.product-table tr.row-missing td{background:#fffaf0}.product-table tr.row-error td{background:#fff5f5}.product-table input,.product-table select{width:92px;height:36px;border:1px solid #dbe1e8;border-radius:8px;padding:0 8px;background:#fff;outline:none}.product-table input:focus,.product-table select:focus{border-color:var(--brand);box-shadow:0 0 0 2px rgba(255,106,0,.1)}.product-table input[data-field="sku"]{width:110px}.product-table input[data-field="name"]{width:180px}.product-table select[data-field="costCurrency"]{width:75px}.product-table .sticky-col{position:sticky;z-index:3}.product-table th.sticky-col{z-index:6}.action-col{left:0;min-width:62px}.sku-col{left:62px;min-width:126px}.name-col{left:188px;min-width:196px}.row-delete{border:0;background:#fee2e2;color:#b91c1c;width:34px;height:34px;border-radius:9px;font-weight:950}.money{font-weight:950}.status-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:950}.status-badge.ready{background:#dcfce7;color:#166534}.status-badge.missing{background:#ffedd5;color:#9a3412}.status-badge.error{background:#fee2e2;color:#991b1b}.detail-btn{border:0;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:900}.table-tip{color:var(--muted);font-size:12px;margin:10px 2px 0}.modal{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;padding:18px;z-index:100}.modal.show{display:flex}.modal-panel{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 28px 80px rgba(15,23,42,.3);padding:20px}.modal-panel.wide{width:min(920px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.modal-head h2{margin:0 0 5px}.modal-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.icon-btn{border:0;background:#f1f5f9;width:36px;height:36px;border-radius:10px;font-size:23px;color:#64748b}.paste-example{padding:10px 12px;background:#f8fafc;border:1px solid var(--line);border-radius:11px;color:#475569;font-size:12px;white-space:nowrap;overflow:auto}.paste-box,.quick-tier textarea{width:100%;min-height:240px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px;font:13px/1.7 Consolas,"Microsoft YaHei",monospace;outline:none}.paste-box:focus,.quick-tier textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(255,106,0,.1)}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px}.modal-actions select{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px}.modal-actions span{margin-right:auto;color:var(--muted);font-size:12px}.editor-toolbar{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px}.editor-toolbar label{flex:1}.editor-grid{grid-template-columns:repeat(3,1fr)}.tier-head{display:flex;align-items:flex-end;justify-content:space-between;margin:18px 0 10px}.tier-head h3{margin:0 0 3px}.tier-head p{margin:0;color:var(--muted);font-size:12px}.tier-table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto}.tier-table{border-collapse:collapse;width:100%}.tier-table th,.tier-table td{padding:9px;border-bottom:1px solid var(--line);font-size:12px;text-align:left}.tier-table th{background:#f8fafc}.tier-table tr:last-child td{border-bottom:0}.tier-table input{width:100%;height:38px;border:1px solid var(--line);border-radius:8px;padding:0 9px}.tier-table button{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;padding:7px 9px}.quick-tier{margin-top:14px;border:1px solid var(--line);border-radius:12px;padding:11px}.quick-tier summary{font-weight:900;cursor:pointer}.quick-tier p{font-size:12px;color:var(--muted)}.quick-tier textarea{min-height:100px}.detail-list{display:grid;gap:9px}.detail-item{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:11px 12px;border:1px solid var(--line);border-radius:11px}.detail-item span{color:var(--muted);font-size:12px;line-height:1.6}.detail-item b{text-align:right}.detail-total{background:var(--soft);border-color:#fed7aa}.detail-note{margin-top:13px;padding:12px;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:12px;line-height:1.7}.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;border-radius:12px;padding:12px 15px;box-shadow:var(--shadow);font-size:13px;z-index:200;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}
.editable-tip,.edit-notice{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:12px}.editable-tip b,.edit-notice b{white-space:nowrap}.editable-tip span,.edit-notice span{color:#7c2d12}.field-help{display:block;margin-top:5px;color:#64748b;font-size:11px;font-style:normal;font-weight:500;line-height:1.45}.product-table input,.product-table select{border-color:#fdba74;background:#fffdf8}.product-table input:hover,.product-table select:hover{border-color:#fb923c}.product-table input:focus,.product-table select:focus{background:#fff}.editor-grid input,.editor-grid select,.tier-table input{border-color:#fdba74;background:#fffdf8}.editor-grid input:hover,.editor-grid select:hover,.tier-table input:hover{border-color:#fb923c}.btn:disabled,.editor-toolbar select:disabled{cursor:not-allowed;opacity:.55}
.batch-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:#475569;font-size:12px}.batch-toolbar label{display:flex;align-items:center;gap:6px;font-weight:900}.batch-toolbar button{border:0;border-radius:8px;background:#e0e7ff;color:#3730a3;padding:7px 10px;font-size:12px;font-weight:900}.batch-toolbar .danger-link{background:#fee2e2;color:#b91c1c}.row-select{width:16px!important;height:16px!important;margin-right:5px;vertical-align:middle}.action-col{min-width:96px}.sku-col{left:96px}.name-col{left:222px}.library-controls{display:grid;grid-template-columns:minmax(220px,1fr) 190px auto;align-items:center;gap:10px;margin-bottom:12px}.library-controls input,.library-controls select{height:42px;border:1px solid var(--line);border-radius:10px;padding:0 11px;background:#fff}.library-controls span{font-size:12px;color:var(--muted)}.library-list{max-height:480px;overflow:auto;border:1px solid var(--line);border-radius:13px}.library-row{display:grid;grid-template-columns:34px minmax(180px,1.6fr) minmax(110px,1fr) 120px 110px minmax(150px,1fr);align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px}.library-row:last-child{border-bottom:0}.library-row.header{position:sticky;top:0;z-index:2;background:#f8fafc;color:#475569;font-weight:950}.library-row.disabled{opacity:.55;background:#f8fafc}.library-row small{display:block;color:var(--muted);margin-top:3px}.library-empty{padding:30px;text-align:center;color:var(--muted)}.inline-link{color:var(--blue);font-weight:900;text-decoration:underline}.batch-field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.batch-field-grid label{padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;font-size:13px;font-weight:800}.mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:10px;margin-bottom:16px}.mapping-item{padding:10px;border:1px solid var(--line);border-radius:11px;background:#f8fafc}.mapping-item b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin-bottom:7px}.mapping-item select{width:100%;height:38px;border:1px solid #fdba74;border-radius:8px;background:#fffdf8;padding:0 8px}.preview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12px;color:var(--muted)}.import-preview-wrap{max-height:280px}.import-preview-table{border-collapse:collapse;width:100%;min-width:700px}.import-preview-table th,.import-preview-table td{padding:8px;border:1px solid var(--line);font-size:12px;text-align:left;white-space:nowrap}.import-preview-table th{background:#f8fafc}.import-preview-table td.ignored{color:#94a3b8;background:#f8fafc}.import-review-panel{width:min(1100px,100%)}
@media(max-width:1100px){.settings-grid{grid-template-columns:repeat(3,1fr)}.workflow{grid-template-columns:repeat(2,1fr)}.workflow div:nth-child(2){border-right:0}.workflow div:nth-child(-n+2){border-bottom:1px solid var(--line)}.mapping-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.library-row{grid-template-columns:34px minmax(180px,1.5fr) 110px 110px}.library-row>*:nth-child(5),.library-row>*:nth-child(6){display:none}}
@media(max-width:760px){.hero{padding:0 16px 34px}.topnav{height:auto;padding:14px 0}.nav-actions a:first-child{display:none}.hero-inner,.section-head,.filterbar{align-items:flex-start;flex-direction:column}.hero h1{font-size:30px}.hero-badges{justify-content:flex-start}.page{padding:0 10px}.workflow{grid-template-columns:1fr}.workflow div{border-right:0;border-bottom:1px solid var(--line)}.workflow div:last-child{border-bottom:0}.settings-grid,.editor-grid,.template-grid,.summary-grid{grid-template-columns:1fr}.actions{justify-content:flex-start}.actions .btn{flex:1 1 auto}.card{padding:15px;border-radius:17px}.editor-toolbar{align-items:stretch;flex-direction:column}.modal{padding:8px}.modal-panel{border-radius:16px;padding:15px}.legend{display:none}}
@media(max-width:760px){.mapping-grid,.batch-field-grid,.library-controls{grid-template-columns:1fr}.library-row{grid-template-columns:30px minmax(170px,1fr) 100px}.library-row>*:nth-child(4),.library-row>*:nth-child(5),.library-row>*:nth-child(6){display:none}.batch-toolbar button{flex:1 1 auto}}

.pricing-core-settings{grid-template-columns:repeat(3,minmax(160px,1fr));max-width:760px}.pricing-advanced-settings{margin-top:14px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.pricing-advanced-settings>summary{cursor:pointer;padding:13px 14px;font-size:13px;font-weight:900;color:#475569}.pricing-advanced-settings[open]>summary{border-bottom:1px solid var(--line);background:#fff}.pricing-advanced-settings .settings-grid{padding:14px}@media(max-width:760px){.pricing-core-settings{grid-template-columns:1fr}}
