:root{--ink:#17211c;--muted:#718078;--brand:#176b4a;--brand2:#e8f4ed;--paper:#fff;--bg:#f4f6f2;--line:#e5e9e5;--warn:#e89828;--danger:#c54d46;--shadow:0 10px 35px rgba(29,54,42,.08)}*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei",system-ui,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.side{background:#143d2e;color:#dce9e2;padding:28px 18px;position:fixed;inset:0 auto 0 0;width:236px}.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:19px;padding:0 10px 28px}.mark{width:36px;height:36px;border-radius:11px;background:#f0b95a;color:#143d2e;display:grid;place-items:center}.nav{display:grid;gap:7px}.nav button{border:0;background:transparent;color:#bad0c4;padding:12px 14px;border-radius:10px;text-align:left}.nav button.active,.nav button:hover{background:#275644;color:#fff}.nav i{font-style:normal;margin-right:10px}.side-foot{position:absolute;bottom:22px;left:18px;right:18px;padding:14px;background:#204b3a;border-radius:12px;font-size:12px}.main{grid-column:2;padding:26px 32px 70px;max-width:1500px;width:100%}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.top h1{font-size:24px;margin:0}.top p{margin:5px 0 0;color:var(--muted);font-size:13px}.user-switch{border:1px solid var(--line);background:white;padding:9px 12px;border-radius:10px;color:var(--ink)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.card{padding:20px}.card small{color:var(--muted)}.metric{font-size:27px;font-weight:800;margin-top:12px}.trend{font-size:12px;color:var(--brand);margin-top:6px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:18px}.panel{padding:20px}.panel-head,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel h2{font-size:16px;margin:0}.btn{border:0;border-radius:9px;padding:10px 15px;background:var(--brand);color:#fff}.btn.secondary{background:var(--brand2);color:var(--brand)}.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.danger{background:#fdeeed;color:var(--danger)}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);font-weight:500;padding:11px 9px;border-bottom:1px solid var(--line)}td{padding:13px 9px;border-bottom:1px solid #eff2ef}.status{padding:5px 9px;border-radius:20px;font-size:11px;white-space:nowrap}.s-pending_review{background:#fff2d9;color:#9a6418}.s-pending_push{background:#e9ecff;color:#4b55a7}.s-awaiting_shipment{background:#e2f3ff;color:#247199}.s-shipped{background:#e5f5eb;color:#267046}.bar-list{display:grid;gap:18px}.bar-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}.bar{height:9px;border-radius:9px;background:#edf0ed;overflow:hidden}.bar span{display:block;height:100%;background:linear-gradient(90deg,#1a6e4d,#62a77e);border-radius:9px}.page-actions{display:flex;gap:10px}.search{padding:10px 13px;border:1px solid var(--line);border-radius:9px;min-width:240px;background:#fff}.customer-grid,.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.customer,.product{padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--brand2);color:var(--brand);font-weight:700}.customer-top{display:flex;gap:12px;align-items:center}.customer h3,.product h3{font-size:15px;margin:0}.sub{font-size:12px;color:var(--muted);margin-top:4px}.tags{display:flex;gap:6px;margin-top:13px;flex-wrap:wrap}.tag{font-size:11px;padding:4px 7px;background:#f0f2ef;border-radius:5px}.sku{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.money{font-weight:700}.empty{text-align:center;color:var(--muted);padding:60px}.modal-wrap{position:fixed;inset:0;background:rgba(9,25,17,.5);display:grid;place-items:center;padding:20px;z-index:10}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.2)}.modal.wide{width:min(860px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0}.close{border:0;background:#f1f3f1;width:34px;height:34px;border-radius:50%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:7px;font-size:13px}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{padding:11px;border:1px solid #dce2dd;border-radius:9px;background:#fff}.order-line{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:12px;padding:12px;background:#f7f8f6;border-radius:11px}.total-box{margin:18px 0 0;background:#edf7f1;border-radius:12px;padding:16px;display:flex;justify-content:space-between;font-weight:700}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.detail-top{padding:16px;background:#f7f8f6;border-radius:12px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:15px}.timeline{border-left:2px solid #dce7df;padding-left:18px;margin:18px 0 0 7px}.event{position:relative;margin-bottom:17px;font-size:13px}.event:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:var(--brand);left:-24px;top:4px}.toast{position:fixed;right:25px;bottom:25px;background:#172b21;color:#fff;padding:13px 17px;border-radius:10px;z-index:20}.mobile-nav{display:none}
@media(max-width:900px){.app{display:block}.side{display:none}.main{padding:18px 15px 86px}.top{align-items:flex-start}.top h1{font-size:21px}.user-switch{max-width:130px}.cards{grid-template-columns:1fr 1fr;gap:10px}.card{padding:15px}.metric{font-size:22px}.grid2{grid-template-columns:1fr}.customer-grid,.product-grid{grid-template-columns:1fr}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:5;padding:7px 4px env(safe-area-inset-bottom)}.mobile-nav button{border:0;background:white;font-size:10px;color:var(--muted);display:grid;gap:3px;justify-items:center}.mobile-nav b{font-size:18px}.mobile-nav .active{color:var(--brand)}.table-wrap{overflow:auto}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.order-line{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.search{min-width:0;width:100%}}
.category-filter-panel{background:#fff;border:1px solid #e2ebe6;border-radius:16px;padding:18px;margin:0 0 18px}.category-filter-title{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}.category-filter-title b{font-size:18px}.category-filter-title span{color:#71827c;font-size:13px}.category-filter-tabs{display:flex;gap:10px;flex-wrap:wrap}.category-filter-tabs button{border:1px solid #d8e4de;background:#f7faf8;color:#315348;border-radius:12px;padding:10px 14px;cursor:pointer}.category-filter-tabs button small{margin-left:8px;background:#e4eee9;border-radius:12px;padding:2px 7px}.category-filter-tabs button.active{background:#166b4e;border-color:#166b4e;color:#fff}.category-filter-tabs button.active small{background:#ffffff30}@media(max-width:680px){.category-filter-panel{padding:14px}.category-filter-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.category-filter-tabs button{white-space:nowrap}}
.category-filter-title{justify-content:space-between}.category-filter-title>div:first-child{display:flex;align-items:baseline;gap:12px}.category-actions{display:flex;gap:8px}.bigcat-wrap{display:inline-flex;gap:4px}.delete-bigcat{position:static;border:1px solid #f0d3d0;background:#fff7f6;color:#b42318;border-radius:10px;font-size:17px;padding:8px 11px;cursor:pointer}.product-category-actions{display:flex;justify-content:flex-end;margin-top:10px}.product-category-actions .btn{font-size:13px}@media(max-width:680px){.category-filter-title{align-items:flex-start;flex-direction:column}.category-actions{width:100%}.category-actions .btn{flex:1}}
.product-basic,.product-specs{border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:16px}.product-basic h3,.product-specs h3{margin:0 0 14px;font-size:16px}.product-spec-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.product-spec-title h3{margin:0}.product-spec-title span{font-size:12px;color:var(--muted)}.custom-spec-row{background:#f7f9f7;border:1px solid #e3e9e5;border-radius:11px;padding:14px;margin-top:10px}.spec-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.remove-spec{border:0;background:#fdeeed;color:var(--danger);border-radius:8px;padding:6px 10px}@media(max-width:680px){.product-spec-title{align-items:flex-start;gap:10px}.product-basic,.product-specs{padding:12px}.modal{padding:16px}}
.order-check{width:42px;text-align:center}.order-check input{width:17px;height:17px}.page-actions .btn.danger{background:#fdeeed;color:var(--danger)}
.sku-generate{display:grid;grid-template-columns:1fr auto;gap:8px}.sku-generate .btn{white-space:nowrap}.product-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.product-toolbar .page-actions{flex-wrap:wrap}@media(max-width:680px){.sku-generate{grid-template-columns:1fr}.product-toolbar .page-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}}
.sales-ranking{margin-top:18px}.rank-list{display:grid;gap:8px}.rank-list>div{display:grid;grid-template-columns:42px 1fr auto;align-items:center;padding:12px;background:#f7f9f7;border-radius:10px}.rank-no{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--brand2);color:var(--brand)}
.category-filter-title .category-actions{display:none!important}
.history-panel{margin-top:18px}.history-filter{display:flex;align-items:center;gap:8px}.history-filter input{border:1px solid var(--line);border-radius:8px;padding:9px}.history-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:16px}.history-cards>div{display:grid;gap:7px;background:#f7f9f7;border-radius:10px;padding:14px}.history-cards span{font-size:12px;color:var(--muted)}.history-cards b{font-size:18px}@media(max-width:900px){.history-cards{grid-template-columns:1fr 1fr}.history-panel .panel-head,.history-filter{align-items:stretch;flex-direction:column}}
.order-filter-row{display:flex;gap:8px;flex:1}.order-filter-row select{border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px}.mobile-latest-list{display:grid;gap:10px}.mobile-order-card{display:grid;grid-template-columns:1fr auto;gap:6px 12px;width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px;text-align:left;color:var(--ink)}.mobile-order-card>div{display:flex;align-items:center;gap:8px}.mobile-order-card>strong{font-size:18px}.mobile-order-card p{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px;line-height:1.55}.mobile-order-card small{grid-column:1/-1;color:var(--muted)}@media(max-width:700px){.order-filter-row{display:grid;width:100%}.order-filter-row select{min-height:44px}.grid2>.panel:first-child{padding:14px}.mobile-latest-list .status{font-size:10px;padding:4px 7px}}
