:root{color:#1f2937;background:#f5f8fb;font-family:Inter,Microsoft YaHei,PingFang SC,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:8px;background:#3478b9;color:#fff;padding:10px 14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:disabled{opacity:.6;cursor:not-allowed}.ghost{background:#e8f1f9;color:#2c628f}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(180deg,#fff,#e8f3fb)}.login-card{width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #dce8f2;border-radius:8px;padding:36px;box-shadow:0 20px 60px #1f4e7924}.login-card h1{margin:12px 0 28px;color:#245f96;text-align:center}.brand-mark{width:70px;height:70px;margin:0 auto;border-radius:50%;border:2px solid #d5b76a;background:radial-gradient(circle at 32% 20%,#ffffff61 0 11%,#fff0 18%),linear-gradient(180deg,#1b6eaa,#5fb3de 48%,#d8edf3 58%,#4f8f50 59%,#1f5f38);color:#fff;display:grid;place-items:center;position:relative;overflow:hidden;box-shadow:0 16px 28px #1753793d,0 0 0 3px #d5b76a1f,inset 0 3px 6px #ffffff47,inset 0 -10px 16px #14472b42}.badge-sun{position:absolute;right:14px;top:14px;width:19px;height:19px;border-radius:50%;background:radial-gradient(circle,#fff1b8 0 28%,#e9bd54 29% 62%,#e9bd5400 70%);box-shadow:0 0 14px #e9bd5480;z-index:1}.badge-grass{position:absolute;left:-10%;right:-10%;bottom:-11%;height:45%;border-radius:50% 50% 0 0;background:radial-gradient(ellipse at 50% 0%,#ffffff29 0 12%,#fff0 35%),linear-gradient(180deg,#5f9d52,#2f733f 55%,#17482f);z-index:1}.badge-horizon{position:absolute;left:14px;right:14px;top:39px;height:2px;border-radius:999px;background:linear-gradient(90deg,#d5b76a00,#ffe18ed1,#d5b76a00);z-index:1}.brand-word{position:relative;z-index:2;font-size:30px;font-weight:900;line-height:1;text-shadow:0 2px 3px rgba(6,38,28,.5),0 0 10px rgba(255,255,255,.22)}.brand-mark.small{width:42px;height:42px;margin:0;border-width:1px;box-shadow:0 8px 14px #1f4e7933,0 0 0 2px #d5b76a1a,inset 0 2px 4px #ffffff57,inset 0 -6px 10px #14472b3d}.brand-mark.small .badge-sun{right:8px;top:8px;width:10px;height:10px}.brand-mark.small .badge-horizon{display:none}.brand-mark.small .brand-word{font-size:18px}label{display:grid;gap:8px;color:#456;font-size:14px}input,select,textarea{width:100%;border:1px solid #cfdae5;border-radius:8px;background:#fff;color:#1f2937;padding:10px 12px}textarea{min-height:90px;resize:vertical}form{display:grid;gap:18px}.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #dce8f2;padding:22px 16px;display:flex;flex-direction:column;gap:22px}.logo-row{display:flex;align-items:center;gap:12px;padding:4px 6px 18px;border-bottom:1px solid #e5eef6}.logo-row strong,.logo-row span{display:block}.logo-row span{color:#7a8b99;font-size:12px}nav{display:grid;gap:8px}nav button,.logout{justify-content:flex-start;background:transparent;color:#526579;text-align:left}nav button.active{background:#e8f1f9;color:#245f96}.logout{margin-top:auto}.member-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:0 0 14px}.member-row{grid-template-columns:1.1fr 1.2fr 1fr;align-items:center}.member-contact,.member-metrics,.member-times{display:grid;gap:4px}.member-times{justify-self:end;text-align:right}.member-times span{color:#6b7b8a;font-size:13px}.content{padding:28px;min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.topbar h1{margin:0;color:#1f2937}.topbar p{margin:6px 0 0;color:#7a8b99}.panel,.metric{background:#fff;border:1px solid #dce8f2;border-radius:8px;padding:18px}.panel-title{display:flex;align-items:center;gap:8px;color:#245f96;font-weight:700;margin-bottom:16px}.grid.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:18px}.dashboard-layout{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px}.dashboard-layout .grid.cards{margin-bottom:0}.metric span{color:#7a8b99}.metric strong{display:block;margin-top:8px;font-size:28px;color:#245f96}.refund-metric strong{color:#b45309}.two-column{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;align-items:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-media-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.product-media-row label,.product-media-row .image-url-field{min-width:0}.product-media-row select,.image-input-row input{min-height:42px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.image-url-field{display:grid;gap:8px;min-width:0}.image-url-field>span{font-weight:500;color:#334155;font-size:14px;line-height:normal}.image-input-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}.image-input-row input{min-width:0}.image-upload-button{height:38px;width:132px;min-width:132px;padding:0 12px;white-space:nowrap}.field-error{color:#b42318;font-size:12px}.image-preview{display:inline-flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:8px;border:1px solid #dce8f2;border-radius:8px;background:#fbfdff;color:#66788a;font-size:12px}.image-preview img{width:56px;height:56px;border-radius:6px;object-fit:cover;background:#edf2f7}.actions{display:flex;gap:10px;flex-wrap:wrap}.spec-editor{display:grid;gap:12px;margin:16px 0}.spec-list{display:grid;gap:10px}.spec-row{display:grid;grid-template-columns:minmax(120px,1.2fr) minmax(90px,.8fr) minmax(80px,.7fr) 42px;gap:10px;align-items:end;padding:10px;border:1px solid #e4edf5;border-radius:8px;background:#fbfdff}.icon-button{height:38px;min-width:38px;padding:0;display:inline-grid;place-items:center}.icon-button:disabled{opacity:.45;cursor:not-allowed}.add-spec{justify-self:start}.switch{display:inline-flex;align-items:center;gap:8px}.switch input{width:auto}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.category-chip,.category-badge{--category-bg: #edf2f7;--category-border: #cfdae5;--category-text: #526579;border:1px solid var(--category-border);background:var(--category-bg);color:var(--category-text);font-weight:700}.category-chip{border-radius:8px;padding:8px 14px;min-height:38px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.category-chip:hover{transform:translateY(-1px);box-shadow:0 6px 14px #2a5b871a}.category-chip.active{border-color:currentColor;box-shadow:0 0 0 2px #3478b929,0 8px 18px #2a5b8724}.category-badge{display:inline-flex!important;align-items:center;width:fit-content;border-radius:999px;padding:3px 9px;font-size:12px}.category-all{--category-bg: #e8f1f9;--category-border: #bad7ef;--category-text: #245f96}.category-tone-0{--category-bg: #eef7ed;--category-border: #b8dfb6;--category-text: #226b32}.category-tone-1{--category-bg: #fff7e6;--category-border: #ffd591;--category-text: #9a5b00}.category-tone-2{--category-bg: #e8f1ff;--category-border: #b9d3ff;--category-text: #2454a6}.category-tone-3{--category-bg: #f4ecff;--category-border: #d8c0ff;--category-text: #6741a3}.category-tone-4{--category-bg: #e6fffb;--category-border: #87e8de;--category-text: #006d75}.category-tone-5{--category-bg: #fff0f6;--category-border: #ffadd2;--category-text: #a61d55}.category-tone-6{--category-bg: #fff1f0;--category-border: #ffa39e;--category-text: #a8071a}.category-tone-7{--category-bg: #f5f0e8;--category-border: #dfc8a5;--category-text: #7a4b18}.chips span,.pill{border-radius:999px;background:#edf2f7;color:#526579;padding:5px 10px;font-size:12px}.pill.ok{background:#e6f7ec;color:#177245}.table{display:grid;gap:10px}.table-row{display:grid;align-items:center;gap:12px;padding:12px;border:1px solid #e4edf5;border-radius:8px;background:#fbfdff}.product-row{grid-template-columns:58px minmax(170px,1.5fr) 100px 90px 80px 150px}.product-row img{width:58px;height:58px;border-radius:8px;object-fit:cover}.table-row strong,.table-row span{display:block}.table-row span{color:#6b7b8a;font-size:13px}.product-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;margin-top:4px}.product-meta span{display:inline-flex!important}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.danger{color:#b42318;background:#fff1f0}.danger:hover{background:#ffe4e2}.order-row{grid-template-columns:1.1fr 1.4fr 1fr 150px 90px}.order-time-list{display:grid!important;gap:3px;margin-top:5px}.order-time-list span{color:#6b7b8a!important;font-size:12px!important;line-height:1.35}.order-time-list .order-time-danger{color:#b45309!important;font-weight:700}.address-label{color:#245f96!important;font-weight:700;margin-bottom:4px}.map-panel{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch;min-height:720px}.map-panel>div{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.china-map{width:100%;height:100%;min-height:680px}.city-ranking{border-left:1px solid #e5eef6;padding-left:18px;display:grid;align-content:start;gap:10px}.city-ranking strong{color:#245f96}.city-rank-row{display:grid;grid-template-columns:1fr auto auto auto;gap:10px;align-items:center;border-bottom:1px solid #edf2f7;padding-bottom:10px;color:#526579;font-size:13px}.city-rank-row span:first-child{color:#1f2937;font-weight:700}.muted{color:#7a8b99;margin:0}.title-with-icon{display:inline-flex;align-items:center;gap:8px}.order-panel-title{justify-content:space-between;align-items:center;gap:14px}.status-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;font-weight:400}.status-pill,.refund-badge{border-radius:999px;padding:5px 10px;font-size:12px}.status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:62px;min-height:30px;border:1px solid transparent;font-weight:800;line-height:1;white-space:nowrap}.legend-dot{width:14px;height:14px;border-radius:999px;border:1px solid transparent;display:inline-block;cursor:help}.status-pending{background:#fff7e6!important;color:#9a5b00!important;border-color:#ffd591!important}.status-paid{background:#e6f7ec!important;color:#177245!important;border-color:#a7e3bf!important}.status-shipping{background:#eef2ff!important;color:#4338ca!important;border-color:#c7d2fe!important}.status-completed{background:#e6fffb!important;color:#006d75!important;border-color:#87e8de!important}.status-cancelled{background:#f3f4f6!important;color:#6b7280!important;border-color:#d1d5db!important}.status-select,.status-filter-select{border-width:1px;font-weight:700}.status-filter-select.status-pending,.status-filter-select.status-paid,.status-filter-select.status-shipping,.status-filter-select.status-completed,.status-filter-select.status-cancelled{background-image:none}.status-option{font-weight:700}.status-option.status-all{background:#fff!important;color:#1f2937!important}.status-select:disabled{cursor:not-allowed;opacity:.85}.refund-badge{display:inline-block!important;width:fit-content;margin-top:6px;background:#fff7e6;color:#9a5b00!important;border:1px solid #ffd591}.refund-badge.refund-approved{background:#fff1f2;color:#be123c!important;border-color:#fecdd3}.refund-badge.refund-rejected{background:#f3f4f6;color:#4b5563!important;border-color:#d1d5db}.refund-panel{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;border:1px solid #ffd591;border-radius:8px;background:#fffaf0;padding:12px}.shipping-panel{grid-column:1 / -1;border:1px solid #c7d2fe;border-radius:8px;background:#f5f7ff;color:#43518f;overflow:hidden}.shipping-panel.expanded{background:#f8faff}.shipping-summary{width:100%;display:grid;grid-template-columns:120px repeat(3,minmax(0,1fr)) 110px;gap:10px;align-items:center;border:0;border-radius:0;background:transparent;color:#43518f;padding:12px;text-align:left}.shipping-summary:hover{background:#eef3ff}.shipping-panel strong{color:#4338ca}.shipping-panel span,.shipping-panel p{color:#526579;font-size:13px}.shipping-toggle{justify-self:end;color:#245f96!important;font-weight:700}.admin-logistics-detail{border-top:1px solid #dbe5ff;padding:12px 16px 14px;display:grid;gap:10px}.delivered-line{color:#177245!important;font-weight:700}.logistics-error{color:#b42318!important}.admin-logistics-timeline{display:grid;gap:0}.admin-track-item{position:relative;display:grid;grid-template-columns:18px 1fr;gap:12px;padding:0 0 14px}.admin-track-item:before{content:"";position:absolute;left:7px;top:18px;bottom:-2px;width:2px;background:#d8e5f2}.admin-track-item:last-child{padding-bottom:0}.admin-track-item:last-child:before{display:none}.admin-track-dot{width:14px;height:14px;margin-top:4px;border-radius:999px;background:#9eb6cc;border:3px solid #eef6ff;z-index:1}.admin-track-item.latest .admin-track-dot{background:#3478b9;border-color:#dcecff}.admin-track-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-track-head strong{color:#1f4f7c}.admin-track-head span,.admin-track-location{color:#7c8da0!important}.admin-track-item p{margin:4px 0;color:#526579}.refund-panel strong,.refund-panel span{display:block}.refund-panel strong{color:#9a5b00;margin-bottom:4px}.refund-panel.settled{justify-content:flex-start;background:#f8fafc;border-color:#dce8f2}.danger{background:#fff1f2;color:#be123c}.reject-reason-form{width:100%;border-top:1px solid #ffd591;padding-top:12px;display:grid;gap:10px}.reject-reason-form textarea{min-height:78px}.reject-reason-form>span{text-align:right;color:#7a8b99!important}.order-filters{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto auto;gap:12px;margin-bottom:14px}.select-visible-ship-button,.bulk-ship-button{white-space:nowrap}.select-visible-ship-button{background:#e8f1f9;color:#245f96}.order-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap}.ship-select{width:30px;height:30px;border:1px solid #bad7ef;border-radius:8px;background:#f4f9fd;display:inline-flex;align-items:center;justify-content:center}.ship-select input{width:16px;height:16px;margin:0;accent-color:#3478b9}.ship-button{min-width:82px}.shipment-form{grid-column:1 / -1;display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto;gap:12px;align-items:end;border:1px solid #bad7ef;border-radius:8px;background:#f4f9fd;padding:12px}.shipment-form .actions{align-items:end}.empty-row{border:1px dashed #cfdae5;border-radius:8px;padding:18px;color:#7a8b99;text-align:center}.toast{border:1px solid #bad7ef;background:#e9f4fd;color:#245f96;padding:10px 12px;border-radius:8px}.error{color:#b42318}.toast.error{border-color:#ffd5d0;background:#fff1ef}@media(max-width:960px){.content{min-height:auto;display:block}.dashboard-layout{display:block}.dashboard-layout .grid.cards{margin-bottom:18px}.shell,.two-column{grid-template-columns:1fr}.sidebar{position:static}.product-row,.order-row,.map-panel,.spec-row,.product-media-row,.member-row{grid-template-columns:1fr}.member-times{justify-self:start;text-align:left}.image-input-row{grid-template-columns:1fr}.image-upload-button,.image-preview{width:100%}.map-panel{min-height:0}.map-panel>div{display:block}.china-map{height:auto;min-height:460px}.city-ranking{border-left:0;border-top:1px solid #e5eef6;padding-left:0;padding-top:16px}.shipping-panel,.shipping-summary{grid-template-columns:1fr}.shipping-toggle{justify-self:flex-start}.form-grid{grid-template-columns:1fr}.order-panel-title,.status-legend{justify-content:flex-start}.refund-panel{align-items:flex-start;flex-direction:column}.order-filters{grid-template-columns:1fr}.order-status-actions{justify-content:flex-start}.shipment-form{grid-template-columns:1fr}}
