:root{--brand:#ef4c68;--ink:#1c2434;--muted:#89909d;--line:#e8ebf0;--bg:#f5f6f8;--blue:#4b7bec;--green:#22ad68;--orange:#f29d38}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Microsoft YaHei",system-ui,sans-serif}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}.admin-shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:22px 15px;background:#171d2b;color:#fff}.brand{display:flex;gap:11px;align-items:center;padding:0 8px 26px}.brand>span{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#ff6d83,#cf3854);font-weight:900;font-size:20px}.brand b,.brand small{display:block}.brand small{margin-top:3px;color:#8f98aa;font-size:11px}.sidebar nav p{margin:19px 11px 7px;color:#667083;font-size:11px}.sidebar nav button{display:flex;gap:12px;align-items:center;width:100%;margin:4px 0;padding:11px 13px;border-radius:8px;background:none;color:#adb5c5;text-align:left}.sidebar nav button i{width:18px;font-style:normal;font-size:17px}.sidebar nav button.active{background:linear-gradient(90deg,#ef4c6828,#ef4c6805);color:#fff;border-left:3px solid var(--brand)}.side-foot{position:absolute;left:22px;right:22px;bottom:22px;padding:12px;border:1px solid #2d3545;border-radius:8px}.side-foot span,.side-foot small{display:block}.side-foot span{color:#7de0a7;font-size:12px}.side-foot small{margin-top:4px;color:#747e91;font-size:10px}.content{min-width:0;padding:27px 30px 50px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.admin-header h1{margin:0;font-size:24px}.admin-header p,.panel-title p{margin:6px 0 0;color:var(--muted);font-size:12px}.operator{display:flex;align-items:center;gap:9px;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:9px}.operator>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff0f2;color:var(--brand);font-size:10px}.operator b,.operator small{display:block;font-size:12px}.operator small{margin-top:2px;color:var(--muted);font-size:10px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;margin-bottom:16px}.stat-grid article{display:flex;gap:13px;align-items:center;padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}.stat-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;font-weight:800}.pink{background:#fff0f2;color:var(--brand)}.blue{background:#eef3ff;color:var(--blue)}.orange{background:#fff5e8;color:var(--orange)}.green{background:#eaf9f2;color:var(--green)}.stat-grid small,.stat-grid b,.stat-grid em{display:block}.stat-grid small{color:var(--muted);font-size:11px}.stat-grid b{margin:3px 0;font-size:21px}.stat-grid em{color:#9aa0aa;font-size:10px;font-style:normal}.panel{margin-bottom:16px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}.panel-title,.toolbar,.filters{display:flex;justify-content:space-between;align-items:center}.panel-title h2{margin:0;font-size:17px}.text-btn{background:none;color:var(--brand);font-size:12px}.mini-orders>div{display:grid;grid-template-columns:44px 2fr 1fr 110px 80px 55px;gap:10px;align-items:center;padding:13px 0;border-top:1px solid var(--line);font-size:12px}.mini-orders>div:first-child{margin-top:13px}.mini-orders b small,.mini-orders span small{display:block;margin-top:4px;color:var(--muted);font-weight:400}.service-dot{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#27345f}.mini-orders strong{font-size:13px}.mini-orders button,.actions button{background:none;color:#506b9b;font-size:12px}.badge{display:inline-block;padding:4px 8px;border-radius:10px;background:#fff4da;color:#bf7b10;font-size:11px;font-style:normal;white-space:nowrap}.badge-服务中{background:#eaf2ff;color:#3973ce}.badge-已完成{background:#e9f8f0;color:#22945d}.badge-off{background:#f1f2f4;color:#777}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.quick-actions button{display:grid;grid-template-columns:42px 1fr;column-gap:11px;padding:15px;background:#f8f9fb;border:1px solid #eef0f3;border-radius:9px;text-align:left}.quick-actions i{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:#fff0f2;color:var(--brand);font-style:normal;font-size:19px}.quick-actions b{font-size:13px}.quick-actions small{color:var(--muted);font-size:10px}.primary{padding:9px 14px;border-radius:7px;background:var(--brand);color:#fff;font-size:12px;font-weight:700}.tabs{display:flex;gap:22px}.tabs button{position:relative;padding:8px 2px;background:none;color:#777}.tabs button.active{color:var(--brand);font-weight:700}.tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:2px;background:var(--brand)}.tabs sup{margin-left:4px;padding:1px 5px;border-radius:8px;background:#f0f1f3;color:#888}.filters{margin:20px 0 12px;padding:13px;background:#f8f9fb;border-radius:8px}.filters label{display:flex;gap:7px;align-items:center;width:330px;padding:8px 11px;background:#fff;border:1px solid #dfe3e8;border-radius:7px;color:#999}.filters input{width:100%;border:0;outline:0}.filters span{color:var(--muted);font-size:11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{padding:11px 10px;background:#f7f8fa;color:#747b88;text-align:left;font-weight:600}td{padding:13px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.product-cell{display:flex;align-items:center;gap:10px}.product-cell>span{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;background:#29365e;font-size:20px}.product-cell b,.product-cell small{display:block}.product-cell small{margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.block{display:block}.muted{margin-top:4px;color:var(--muted);font-size:10px}.danger{color:#e24747;font-weight:700}.actions{display:flex;gap:10px}.actions .advance{color:var(--brand)}.empty{padding:40px;color:var(--muted);text-align:center}.drawer-mask{position:fixed;inset:0;z-index:10;background:#1118}.drawer{position:absolute;right:0;top:0;width:min(520px,94vw);height:100%;overflow:auto;padding:24px;background:#fff;box-shadow:-12px 0 30px #0002}.drawer-head{display:flex;justify-content:space-between;align-items:start;padding-bottom:18px;border-bottom:1px solid var(--line)}.drawer-head h2{margin:0}.drawer-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.drawer-head>button{background:none;font-size:25px;color:#888}.drawer form{display:grid;gap:15px;padding-top:20px}.drawer label{display:grid;gap:7px;color:#555;font-size:12px}.drawer input,.drawer select,.drawer textarea{padding:10px;border:1px solid #dfe3e8;border-radius:7px;outline:none}.drawer textarea{min-height:90px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.drawer-actions{position:sticky;bottom:-24px;display:flex;justify-content:flex-end;gap:10px;margin:10px -24px -24px;padding:15px 24px;background:#fff;border-top:1px solid var(--line)}.drawer-actions button{padding:9px 17px;border-radius:7px}.detail-block{display:flex;justify-content:space-between;align-items:center;margin:20px 0;padding:15px;background:#f8f9fb;border-radius:8px}.detail-list p{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.detail-list span{color:var(--muted)}.detail-list b{text-align:right}.drawer-wide{width:100%;margin-top:20px;padding:12px}.toast{position:fixed;z-index:20;top:25px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:20px;background:#202838;color:#fff;font-size:12px}@media(max-width:900px){.admin-shell{grid-template-columns:76px 1fr}.sidebar{padding:18px 9px}.brand>div,.sidebar nav button:not(.active){font-size:0}.sidebar nav button{justify-content:center}.sidebar nav p,.side-foot{display:none}.content{padding:20px 14px}.stat-grid{grid-template-columns:1fr 1fr}.mini-orders>div{grid-template-columns:40px 1.8fr 90px 70px}.mini-orders>div>span:nth-of-type(2),.mini-orders strong{display:none}}@media(max-width:600px){.admin-shell{display:block}.sidebar{position:sticky;height:auto;z-index:5;padding:8px}.brand,.sidebar nav p,.side-foot{display:none}.sidebar nav{display:flex;overflow:auto}.sidebar nav button,.sidebar nav button:not(.active){justify-content:center;min-width:88px;padding:9px;font-size:11px}.admin-header{align-items:flex-start}.operator{display:none}.content{padding:16px 10px}.stat-grid{grid-template-columns:1fr 1fr}.stat-grid article{padding:13px}.stat-icon{display:none}.quick-actions{grid-template-columns:1fr}.filters{align-items:flex-start;gap:10px}.filters label{width:100%}.mini-orders>div{grid-template-columns:38px 1fr 70px 50px}.mini-orders>div>span:nth-of-type(2),.mini-orders strong{display:none}.form-grid{grid-template-columns:1fr}}
