:root{--primary:#5b5ce8;--ink:#222536;--muted:#9396a7;--bg:#f5f6fa;--line:#eceef4;--green:#2bb485;--orange:#ff7b56}*{box-sizing:border-box}html,body{max-width:100%;overflow-x:hidden}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:28px 20px;color:#fff;background:radial-gradient(circle at 30% 100%,#38416c,transparent 42%),#242942}.brand{display:flex;align-items:center;gap:13px;padding:0 10px 30px}.brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#7678ff,#5556df);font-size:20px;font-weight:800;box-shadow:0 10px 24px #15182b}.brand strong,.brand span{display:block}.brand strong{font-size:18px}.brand span{margin-top:2px;color:#8f96ba;font-size:11px;letter-spacing:2px}.sidebar nav{display:grid;gap:7px}.nav-item{height:48px;padding:0 15px;border:0;border-radius:13px;color:#aeb3cc;background:transparent;text-align:left;font-size:14px;cursor:pointer}.nav-item span{display:inline-block;width:28px;font-size:18px}.nav-item:hover,.nav-item.active{color:#fff;background:linear-gradient(90deg,#595be0,#6668ef);box-shadow:0 10px 28px rgba(46,48,148,.28)}.station-card{position:absolute;left:20px;right:20px;bottom:24px;display:flex;align-items:center;gap:11px;padding:14px;border:1px solid #424966;border-radius:14px;background:#2c324f}.station-card strong,.station-card small{display:block}.station-card strong{font-size:12px}.station-card small{margin-top:3px;color:#8991b3;font-size:10px}.status-dot{width:9px;height:9px;border-radius:50%;background:#5dd6a5;box-shadow:0 0 0 6px rgba(93,214,165,.12)}main{margin-left:248px;width:calc(100% - 248px);min-width:0}header{height:90px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}header h1,header p{margin:0}header h1{font-size:22px}header p{color:var(--muted);font-size:12px;margin-top:4px}.header-actions{display:flex;align-items:center;gap:9px}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#74788d;position:relative}.icon-button i{position:absolute;right:7px;top:6px;width:6px;height:6px;border-radius:50%;background:#ff6e70}.admin-avatar{width:38px;height:38px;margin-left:7px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#7879f4,#5455db);font-weight:800}.header-actions strong,.header-actions span{display:block}.header-actions strong{font-size:12px}.header-actions span{color:var(--muted);font-size:10px}.page{display:none;padding:30px 36px}.page.active{display:block}.welcome{min-height:154px;padding:30px 34px;border-radius:22px;color:#fff;background:radial-gradient(circle at 85% 10%,rgba(100,222,183,.32),transparent 25%),linear-gradient(120deg,#353c70,#5960a2);display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 38px rgba(44,51,107,.16)}.welcome span{font-size:10px;letter-spacing:4px;color:#b7bde6}.welcome h2{margin:8px 0 5px;font-size:25px}.welcome p{margin:0;color:#c6cae1}.welcome button,.primary{border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#6c6ef3,#5556df);padding:12px 20px;font-weight:700;cursor:pointer;box-shadow:0 10px 22px rgba(61,62,181,.2)}.welcome button{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);box-shadow:none}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:22px}.stat-grid article{display:flex;align-items:center;gap:15px;padding:20px;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(42,45,78,.05)}.stat-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#fff;font-weight:800}.indigo{background:#6567e9}.green{background:#31b98b}.orange{background:#ff825d}.purple{background:#9a66dc}.stat-grid span,.stat-grid strong,.stat-grid em{display:block}.stat-grid span{color:var(--muted);font-size:11px}.stat-grid strong{font-size:24px;margin:1px 0}.stat-grid em{color:var(--green);font-size:10px;font-style:normal}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:22px}.panel{padding:23px;border-radius:19px;background:#fff;box-shadow:0 8px 28px rgba(43,46,77,.05)}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-title h3,.panel-title p{margin:0}.panel-title h3{font-size:16px}.panel-title p{color:var(--muted);font-size:11px;margin-top:4px}.panel-title>span{color:var(--muted);font-size:11px}.chart{height:180px;display:flex;align-items:flex-end;gap:7%;padding:18px 20px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(0deg,#f4f5f8 0,#f4f5f8 1px,transparent 1px,transparent 44px)}.chart div{flex:1;max-width:32px;border-radius:8px 8px 0 0;background:linear-gradient(#7375ef,#5557df)}.chart-labels{display:flex;justify-content:space-around;color:var(--muted);font-size:10px;margin-top:9px}.quick>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick button{border:1px solid var(--line);border-radius:14px;background:#fafbfc;padding:13px;text-align:left;display:flex;gap:10px;align-items:center;cursor:pointer}.quick b{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;color:var(--primary);background:#eeefff}.quick span,.quick small{display:block}.quick span{font-weight:700;font-size:12px}.quick small{color:var(--muted);font-weight:400;font-size:9px}.toolbar{display:flex;gap:12px;margin-bottom:18px}.search{width:320px;height:42px;padding:0 13px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;background:#fff}.search input{flex:1;border:0;outline:0;background:transparent}.toolbar select,label select,label input,label textarea{border:1px solid #e2e4eb;border-radius:11px;background:#fff;outline:0}.toolbar select{padding:0 14px}.toolbar .primary{margin-left:auto}.table-panel{padding:0;overflow:hidden}.table-panel .panel-title{padding:22px 24px 0}table{width:100%;border-collapse:collapse}th,td{padding:15px 22px;text-align:left;border-top:1px solid var(--line)}th{color:#9093a3;background:#fafbfc;font-size:11px;font-weight:600}td{font-size:12px}.product-cell{display:flex;align-items:center;gap:11px}.product-thumb{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#eef0ff;font-size:20px}.product-cell strong,.product-cell span{display:block}.product-cell span{color:var(--muted);font-size:9px}.state{display:inline-flex;padding:5px 9px;border-radius:99px;color:#209a70;background:#e7f7f1;font-size:10px}.state.off{color:#8c8e99;background:#f0f1f4}.action-link{border:0;background:transparent;color:var(--primary);cursor:pointer;margin-right:8px}.danger{color:#e66667}.two-column{display:grid;grid-template-columns:1fr 1.25fr;gap:20px}.form-panel label{display:block;color:#555869;font-size:11px;margin-top:15px}.form-panel label input,.form-panel label select,.form-panel label textarea{display:block;width:100%;margin-top:7px;padding:11px 12px}.form-panel textarea{height:130px;resize:vertical}.wide{width:100%;margin-top:20px}.switch-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.switch-row strong,.switch-row span{display:block}.switch-row strong{font-size:12px}.switch-row span{color:var(--muted);font-size:9px}.switch input{display:none!important}.switch i{display:block;width:40px;height:22px;border-radius:99px;background:#ccd0d9;position:relative}.switch i::after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+i{background:var(--primary)}.switch input:checked+i::after{left:21px}.admin-info-list{display:grid;gap:10px}.admin-info{padding:14px;border:1px solid var(--line);border-radius:13px}.admin-info div{display:flex;align-items:center;justify-content:space-between}.admin-info strong{font-size:12px}.admin-info p{color:var(--muted);font-size:10px;margin:7px 0 0}.label{display:inline-flex;padding:4px 7px;border-radius:6px;color:var(--primary);background:#eeefff;font-size:9px}.banner-grid{grid-template-columns:420px 1fr}.upload-tip{color:var(--muted);font-size:9px;margin-top:5px}.preview-label{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:4px 0 12px}.preview-label em{font-style:normal}.phone{width:390px;margin:auto;padding:15px;border:8px solid #25283b;border-radius:38px;background:#f5f6fa;box-shadow:0 22px 50px rgba(31,34,68,.2)}.phone-bar{display:flex;justify-content:space-between;padding:2px 11px 12px;font-size:10px;font-weight:700}.phone-location{font-size:11px;font-weight:700;padding:8px 6px 14px}.banner-preview{height:185px;border-radius:20px;overflow:hidden;position:relative}.banner-preview img{width:100%;height:100%;object-fit:cover}.banner-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(26,34,94,.9),rgba(35,44,105,.6),transparent)}.banner-copy{position:absolute;left:18px;top:24px;color:#fff}.banner-copy small,.banner-copy strong,.banner-copy span{display:block}.banner-copy small{font-size:7px;letter-spacing:2px;color:#bdc3ff}.banner-copy strong{font-size:21px;margin-top:7px}.banner-copy span{font-size:9px;color:#d7daf0;margin-top:3px}.banner-copy button{margin-top:13px;padding:7px 11px;border:1px solid rgba(255,255,255,.3);border-radius:99px;color:#fff;background:rgba(255,255,255,.14);font-size:8px}.phone-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.phone-cards i{height:55px;border-radius:13px;background:#e9eaff}.phone-cards i:nth-child(2){background:#e5f6ef}.phone-cards i:nth-child(3){background:#fff0e8}.phone-cards i:nth-child(4){background:#f1e9fb}.tab-buttons{display:flex;padding:4px;border-radius:13px;background:#e9ebf1}.tab-buttons button{padding:9px 15px;border:0;border-radius:10px;background:transparent;color:#777a8c}.tab-buttons button.active{background:#fff;color:var(--primary);box-shadow:0 4px 12px rgba(48,51,82,.08)}.tab-buttons b{display:inline-grid;place-items:center;min-width:16px;height:16px;border-radius:8px;color:#fff;background:#ff6d68;font-size:9px}.modal{display:none;position:fixed;inset:0;z-index:20;background:rgba(20,23,45,.48);align-items:center;justify-content:center}.modal.open{display:flex}.modal-card{width:540px;padding:24px;border-radius:20px;background:#fff;box-shadow:0 25px 70px rgba(15,18,43,.25)}.modal-head{display:flex;justify-content:space-between}.modal-head h3,.modal-head p{margin:0}.modal-head h3{font-size:18px}.modal-head p{color:var(--muted);font-size:10px;margin-top:3px}.modal-head button{border:0;background:transparent;font-size:25px;color:#888}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.form-grid label{color:#555869;font-size:11px}.form-grid input,.form-grid select{display:block;width:100%;padding:10px;margin-top:6px}.form-grid .full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.modal-actions>button{padding:10px 20px;border:0;border-radius:10px}.modal-actions>button:first-child{background:#f0f1f5;color:#66697a}#toast{position:fixed;left:50%;bottom:38px;z-index:30;transform:translateX(-50%) translateY(30px);padding:11px 18px;border-radius:99px;color:#fff;background:#24273c;opacity:0;transition:.25s;pointer-events:none}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:1100px){.stat-grid{grid-template-columns:1fr 1fr}.dashboard-grid,.two-column{grid-template-columns:1fr}.banner-grid{grid-template-columns:1fr}.phone{margin-top:20px}}

/* ==== 送达时段管理 ==== */
.slot-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.slot-checks label{display:flex;align-items:center;gap:8px;background:#f6f7fb;border-radius:8px;padding:9px 12px;font-size:13px;color:#3a3d4e;cursor:pointer}
.slot-checks input{accent-color:#6668eb}
.slot-group h4{margin:0 0 8px;font-size:13px;color:#5a5d6e}


/* ==== 商超闭店开关（统一 switch-row 风格） ==== */
.store-closed-row{background:#fff;border:1px solid #e7e8f0;border-radius:12px;padding:14px 18px;margin:0 0 14px}
