:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#252a2a;background:#f5f7f6;font-size:14px;line-height:1.6;letter-spacing:0;--green:#187c60;--border:#e2e7e4;--muted:#77817c;--red:#ba4343}
.spinner{display:inline-flex}.spinner>.lucide,.is-spinning>.lucide{animation:market-spin 1s linear infinite}@keyframes market-spin{to{transform:rotate(360deg)}}.stock-progress{display:flex;align-items:center;gap:10px}.stock-progress span:not(.spinner){display:block;margin-top:3px}.channel-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}.channel-modes label{display:flex;flex-direction:row;align-items:center;gap:7px;padding:10px 8px;border:1px solid var(--border);border-radius:4px;color:inherit;cursor:pointer}.channel-modes label:has(input:checked){border-color:var(--green);background:#edf5f0}.channel-modes input{width:16px;height:16px;min-height:16px;margin:0;flex-shrink:0;accent-color:var(--green)}#channel-own{border:0;margin:0;padding:0;min-width:0}#channel-own[hidden],#channel-platform[hidden]{display:none}#stock-operations td.break{min-width:180px;max-width:440px}@media(max-width:420px){.channel-modes{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){.spinner>.lucide,.is-spinning>.lucide{animation-duration:2s}}
input[type=radio][data-stock-select]{width:16px;height:16px;min-height:16px;padding:0;accent-color:var(--green);vertical-align:middle}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;letter-spacing:0}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:var(--green);text-decoration:none}button{border:1px solid var(--border);background:white;color:inherit;border-radius:5px;min-height:36px;padding:6px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover{background:#f0f5f2;border-color:#bccac2}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#12654e}button.danger{color:var(--red)}button.icon{width:35px;height:35px;padding:8px;flex-shrink:0}.lucide{width:17px;height:17px;stroke-width:1.8;flex-shrink:0}.boot{padding:48px;text-align:center;color:var(--muted)}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#202b27;color:#c8d3cd;padding:26px 17px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:21px;font-weight:700;padding:0 11px 25px}.brand .mark{display:grid;place-items:center;width:34px;height:34px;background:#b7d4b7;color:#23372c;border-radius:5px}.brand small{display:block;font-size:10px;font-weight:400;color:#a7b7af;line-height:1.2;margin-top:2px}.nav-label{color:#8fa299;font-size:11px;padding:15px 12px 7px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav{justify-content:flex-start;border:0;color:#bfcfc6;background:transparent;width:100%;gap:12px;height:40px;padding:8px 12px;font-size:13px}.nav:hover{background:#2d3b34;color:#fff}.nav.active{background:#354b3e;color:#e5f1e8}.side-bottom{margin-top:auto;border-top:1px solid #3b4941;padding:17px 9px 0;display:flex;align-items:center;gap:9px}.avatar{height:32px;width:32px;display:grid;place-items:center;background:#e8eee9;border-radius:5px;color:#405e4b;font-size:14px;font-weight:700;flex-shrink:0}.side-user{min-width:0;flex:1;font-size:12px}.side-user span{display:block;color:#95a99d;font-size:10px}.side-user b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-bottom button{border:0;background:transparent;color:#bfcfc6}.main{min-width:0}.topbar{height:65px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 31px;gap:15px}.crumb{font-size:12px;color:var(--muted)}.crumb strong{color:#2a342d;margin-left:10px;font-weight:500}.top-right{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;background:#399367;border-radius:50%;margin-right:6px}.demo-bar{padding:7px 30px;background:#fff6d9;border-bottom:1px solid #eadcae;color:#826922;font-size:11px;display:flex;align-items:center;gap:8px}.content{padding:28px 31px 40px;max-width:1680px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.page-heading h1{margin:0;font-size:22px;font-weight:650}.page-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:white;margin-bottom:29px}.metric{padding:21px 23px;min-height:116px}.metric+.metric{border-left:1px solid var(--border)}.metric-label{font-size:12px;color:#77827b;display:flex;justify-content:space-between;align-items:center}.metric-label .lucide{color:#899b8c}.metric-value{font-size:29px;line-height:1.3;margin:7px 0 2px;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.metric-foot{font-size:10px;color:#8a948d}.metric-value .currency{font-size:16px;margin-right:3px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:21px 0 12px;gap:12px}.section-title h2{font-size:15px;font-weight:600;margin:0}.section-title span,.section-title a{font-size:11px;color:var(--muted)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:15px}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search{position:relative}.search .lucide{position:absolute;left:10px;top:11px;color:#8b9990;width:15px;height:15px}.search input{padding-left:33px;width:260px}.table-wrap{width:100%;overflow:auto;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:white}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{height:43px;text-align:left;font-size:11px;font-weight:500;color:#78857b;background:#f7f9f7}td{height:69px;border-top:1px solid #edf0ed}th,td{padding:10px 16px}tbody tr:hover{background:#fbfdfb}td small{display:block;color:#8b958e;font-size:10px;margin-top:2px}.mono{font-family:Consolas,monospace;font-size:11px}.product{display:flex;align-items:center;gap:11px}.product img{width:38px;height:38px;object-fit:contain;background:#edece3;border:1px solid #dedfd4;border-radius:4px;flex-shrink:0}.product b{font-weight:500;display:block;max-width:210px;white-space:normal}.amount{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;font-weight:600;font-size:14px}.badge{padding:3px 7px;border-radius:3px;font-size:10px;background:#edf2ee;color:#667b6a;display:inline-block;line-height:1.5}.badge.green{background:#e5f3e9;color:#28734a}.badge.amber{background:#fbefd5;color:#9a772a}.badge.red{background:#fbeaea;color:#ad4c4c}.badge.blue{background:#e9eff7;color:#50759d}.row-actions{display:flex;align-items:center;gap:5px}.row-actions button{min-height:29px;height:29px;font-size:11px;padding:4px 8px}.row-actions .icon{width:29px}.empty{padding:52px 20px;text-align:center;color:var(--muted);font-size:13px}.empty .lucide{display:block;width:29px;height:29px;margin:0 auto 10px;color:#acb9ae}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;padding:15px 0}.pagination .actions button{min-height:30px}.notice{padding:11px 14px;font-size:12px;border-left:3px solid #b0c8b6;background:#edf3ef;color:#50665a;margin:14px 0}.notice.warn{border-color:#d8b862;background:#fff8e7;color:#806a37}.notice.error{background:#fff0f0;border-color:#cd8282;color:#975353}.split{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:28px}.activity{background:white;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:5px 18px}.activity-row{padding:15px 0;border-bottom:1px solid #eef1ee;font-size:12px;display:flex;align-items:flex-start;gap:10px}.activity-row:last-child{border:0}.activity-row .lucide{color:#6e8c78;margin-top:3px}.activity-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}input,select,textarea{border:1px solid #d9e1da;border-radius:4px;background:white;color:inherit;min-height:37px;padding:7px 10px;max-width:100%}input:focus,select:focus,textarea:focus{border-color:#5c9470;outline:2px solid #187c6020}textarea{resize:vertical;min-height:88px}label{font-size:12px;color:#536459;display:flex;flex-direction:column;gap:6px}label.check{flex-direction:row;align-items:center;gap:8px;min-height:36px}input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--green)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field-grid .wide{grid-column:1/-1}.form-stack{display:grid;gap:16px}.auth-layout{min-height:100vh;display:grid;place-items:center;padding:28px;background:#f0f4f0}.auth-box{width:420px;max-width:100%;background:white;border:1px solid var(--border);border-radius:7px;padding:34px}.auth-box .brand{color:#263a2d;padding:0 0 24px}.auth-box .brand small{color:var(--muted)}.auth-box h1{font-size:20px;margin:0 0 23px}.auth-box button.primary{width:100%;margin-top:4px}.auth-footer{margin-top:20px;font-size:12px;display:flex;justify-content:space-between;color:var(--muted)}.auth-footer button{border:0;min-height:0;padding:0;color:var(--green);background:transparent}.demo-credentials{font-size:11px;color:#6c766f;border-top:1px solid var(--border);padding-top:15px;margin-top:20px;overflow-wrap:anywhere}.form-error{color:var(--red);font-size:12px;min-height:0}.form-error:empty{display:none}.loading{opacity:.55;pointer-events:none}dialog{border:1px solid #d8e0d9;border-radius:7px;padding:0;max-width:560px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 20px 80px #12201830}dialog::backdrop{background:#17251b66}dialog form{padding:23px;overflow:auto;max-height:88vh}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}.modal-head h2{font-size:17px;margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#243e2e;color:white;border-radius:5px;padding:11px 19px;font-size:12px;box-shadow:0 4px 22px #14241d33;z-index:20;max-width:90vw}.toast.error{background:#904646}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;font-size:12px}.detail-grid dt{color:var(--muted);font-size:11px;margin-bottom:4px}.detail-grid dd{margin:0;overflow-wrap:anywhere;white-space:normal}.code-box{font-family:Consolas,monospace;background:#f3f6f3;padding:14px;text-align:center;font-size:23px;border:1px solid var(--border);overflow-wrap:anywhere}.toggle-row{display:flex;justify-content:space-between;gap:20px;padding:21px 0;border-bottom:1px solid var(--border)}.toggle-row h3{font-size:14px;margin:0}.toggle-row p{font-size:12px;color:var(--muted);margin:3px 0}.toggle{width:40px;height:23px;min-height:23px;border-radius:20px;padding:2px;border:0;background:#c4cec7;justify-content:flex-start}.toggle span{width:19px;height:19px;border-radius:50%;background:white;display:block}.toggle.on{background:#34855a;justify-content:flex-end}.security-form{max-width:500px;background:white;padding:22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.buyer-head{background:#202b27;color:white;padding:20px max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px}.buyer-head .brand{padding:0;color:white}.buyer-head .buyer-identity{font-size:12px;color:#c5d5ca}.buyer-main{max-width:1210px;margin:auto;padding:28px 25px}.buyer-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border);margin-bottom:25px}.buyer-tabs button{background:transparent;border:0;border-radius:0;border-bottom:2px solid transparent;font-size:13px;padding:10px 0}.buyer-tabs button.active{color:var(--green);border-bottom-color:var(--green)}.checkout-shell{max-width:810px;margin:42px auto;padding:0 22px}.checkout-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.checkout-top .brand{padding:0;color:#23362a;font-size:21px}.checkout-body{background:white;border-top:3px solid #378162;padding:25px 30px;border-bottom:1px solid var(--border)}.checkout-product{display:flex;gap:15px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--border)}.checkout-product img{width:58px;height:58px;object-fit:contain;background:#eeeede;border-radius:5px}.checkout-product h1{font-size:18px;margin:0 0 5px}.checkout-product p{font-size:12px;color:var(--muted);margin:0}.checkout-amount{text-align:center;padding:22px}.checkout-amount .amount{font-size:34px;color:#285139}.payment-options{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.payment-option{min-width:115px;min-height:43px}.payment-option.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);color:var(--green)}.qr-area{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;margin:20px auto;text-align:center;max-width:350px}.qr-area canvas{width:200px;height:200px;image-rendering:pixelated}.checkout-state{text-align:center;padding:18px;color:#2c7950}.checkout-state>.lucide{width:40px;height:40px;margin-bottom:12px}.checkout-state h2{font-size:20px;margin:0 0 8px}.checkout-state p{font-size:12px;color:var(--muted)}.break{overflow-wrap:anywhere;white-space:normal;word-break:break-word}.menu-button{display:none}.order-status-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 0;color:var(--muted);font-size:11px}.export-note{font-size:11px;color:var(--muted)}
.auth-layout{grid-template-columns:minmax(0,1fr)}.auth-box{width:min(420px,100%);min-width:0}
.stock-quantity{width:92px;min-width:70px}.stock-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--border)}.stock-state{font-size:12px;color:var(--muted)}#stock-role{max-width:100%;min-width:220px}.toolbar>label{min-width:0;max-width:100%}
.goods-symbol{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid #dce2df;background:#f0f3f1;border-radius:4px;color:#4d7262}.goods-symbol .lucide{width:22px;height:22px}
.price-filter{width:106px}.goods-list{margin:16px 0}.goods-entry{padding:13px 0;border-top:1px solid var(--border)}.goods-title{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;font-size:13px;overflow-wrap:anywhere}.goods-title strong{min-width:0}.goods-title span{flex-shrink:0;color:var(--muted);font-size:12px}.goods-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:10px 0 0;font-size:12px}.goods-stats div{min-width:0}.goods-stats dt{color:var(--muted);font-size:11px}.goods-stats dd{margin:0;overflow-wrap:anywhere}.goods-entry small{color:var(--red)}.filters{max-width:100%}.checkout-product>div{min-width:0}.checkout-product h1{overflow-wrap:anywhere}.buyer-identity{overflow-wrap:anywhere}
.goods-image{width:38px;height:38px;flex:0 0 auto;display:inline-grid;place-items:center}.goods-image img,.goods-image .goods-symbol{width:100%;height:100%;object-fit:contain}.goods-image [hidden]{display:none!important}.checkout-product>.goods-image{width:64px;height:64px}.product>div{min-width:0}.goods-entry .product b{max-width:none;overflow-wrap:anywhere}.goods-entry .product small{color:var(--muted)}@media(max-width:700px){.checkout-product>.goods-image{width:48px;height:48px}}
@media(max-width:480px){.goods-stats{grid-template-columns:minmax(0,1fr)}.filters .search{flex-basis:100%}.filters select{flex:1;min-width:120px}.price-filter{width:calc(50% - 24px)}.goods-title{flex-wrap:wrap}}
@media(min-width:1550px){.content{padding-top:35px}.metric{padding:24px 28px}td{height:74px}}
@media(max-width:1050px){.shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:23px 10px}.content{padding:24px 22px}.topbar{padding:0 22px}.metric{padding:17px 15px}.metric-value{font-size:25px}.split{grid-template-columns:1fr;gap:5px}.top-right .date-label{display:none}.search input{width:220px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;z-index:10;width:218px;transform:translateX(-100%);transition:transform .15s}.shell.menu-open .sidebar{transform:translateX(0)}.menu-button{display:inline-flex}.topbar{height:57px;padding:0 16px}.crumb{display:flex;align-items:center;gap:8px}.crumb strong{margin:0}.content{padding:21px 15px}.demo-bar{padding:7px 16px}.page-heading h1{font-size:20px}.page-heading p{font-size:11px}.page-heading{align-items:flex-start}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:21px}.metric{padding:16px;min-height:102px}.metric:nth-child(3){border-left:0;border-top:1px solid var(--border)}.metric:nth-child(4){border-top:1px solid var(--border)}.metric-value{font-size:25px}.top-right{gap:8px}.field-grid,.detail-grid{grid-template-columns:1fr}.field-grid .wide{grid-column:auto}.search{flex:1}.search input{width:100%;min-width:120px}.filters{width:100%}.toolbar{align-items:stretch}.buyer-head{padding:18px 16px;align-items:flex-start}.buyer-head .brand{font-size:18px}.buyer-identity{max-width:160px;text-align:right}.buyer-main{padding:22px 15px}.checkout-shell{margin:23px auto;padding:0 14px}.checkout-body{padding:20px 17px}.checkout-top .brand{font-size:18px}.checkout-product h1{font-size:16px}.checkout-product img{width:48px;height:48px}.auth-box{padding:27px 23px}.auth-layout{padding:18px}.pagination{align-items:center}.page-heading .actions .button-label{display:none}.section-title span{max-width:45%;text-align:right}.toggle-row{padding:17px 0}th,td{padding:10px 13px}}
.checkout-basket .order-status-line { gap: 12px; padding: 12px 0; border-bottom: 1px solid #dbe4df; }
.checkout-basket small { display: block; margin-top: 4px; }

.review-notice{display:flex;align-items:center;gap:16px;border-left:4px solid #c44820;background:#fff1dc;padding:18px 20px;margin:0 0 22px;color:#6e2b13}
.review-notice>svg{width:28px;height:28px;flex:none}
.review-notice>div{flex:1;min-width:0}
.review-notice strong{display:block;font-size:20px;line-height:1.4}
.review-notice span{display:block;margin-top:4px;font-size:14px}
.review-badge{display:inline-block;background:#b33b16;color:#fff;font-size:17px;font-weight:700;line-height:1.5;padding:5px 12px;border-radius:4px;white-space:nowrap}
.merchant-review-row{background:#fff7e9}
.nav-count{margin-left:auto;min-width:24px;padding:2px 6px;background:#b33b16;color:#fff;border-radius:4px;text-align:center;font-weight:700}
@media(max-width:600px){.review-notice{padding:14px 12px;gap:10px;flex-wrap:wrap}.review-notice strong{font-size:18px}.review-notice>button{margin-left:38px}}

.zone-picker{display:flex;align-items:center;gap:8px;white-space:nowrap}.zone-picker select{padding:7px 12px;border:1px solid #dbe2ea;border-radius:6px;background:#fff;color:#152438}
@media(max-width:620px){.top-right{gap:8px;flex-wrap:wrap}.zone-picker{font-size:12px}.zone-picker select{padding:5px 8px}}
