* { box-sizing: border-box; margin: 0; }
:root {
  --navy: #101828;
  --bg: #F4F6FA;
  --line: #E8ECF2;
  --text: #1F2937;
  --muted: #8A94A6;
  --yellow: #FFD100;
  --green: #00B578;
  --blue: #2F6BFF;
  --red: #FF4D4F;
  --purple: #7C4DFF;
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
.layout { display: flex; min-height: 100vh; }

/* ---------- 侧栏 ---------- */
.sidebar { width: 232px; background: var(--navy); color: #CBD3E1; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; }
.logo { display: flex; align-items: center; gap: 12px; padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.logo .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #FFD100, #FFB300); color: #332600; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.logo b { display: block; color: #fff; font-size: 15px; letter-spacing: .5px; }
.logo small { color: rgba(255,255,255,.35); font-size: 10px; }
nav { padding: 10px 12px 16px; flex: 1; overflow-y: auto; }
nav::-webkit-scrollbar { width: 0; }
.nav-group { font-size: 9px; color: rgba(255,255,255,.3); letter-spacing: 1px; padding: 12px 14px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; font-size: 13px; cursor: pointer; margin-bottom: 2px; color: #A8B3C5; position: relative; white-space: nowrap; }
.nav-item span:first-child { font-size: 15px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.on { background: rgba(255,209,0,.12); color: var(--yellow); font-weight: 600; }
.nav-item .n { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; background: var(--red); color: #fff; font-size: 10px; border-radius: 999px; display: none; align-items: center; justify-content: center; }
.nav-item .n.show { display: flex; }
.side-foot { font-size: 10px; color: rgba(255,255,255,.25); padding: 16px 22px; flex-shrink: 0; }

/* ---------- 顶栏 ---------- */
.main { margin-left: 232px; flex: 1; min-width: 0; }
.topbar { height: 76px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 18px; font-weight: 700; }
.topbar p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.top-right { display: flex; align-items: center; gap: 18px; }
.search { display: flex; align-items: center; gap: 8px; background: #F4F6FA; border: 1px solid var(--line); height: 36px; width: 250px; border-radius: 9px; padding: 0 12px; }
.search input { border: 0; background: transparent; outline: none; font-size: 12px; width: 100%; }
.bell { position: relative; font-size: 17px; }
.bell .dot { position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: none; }
.bell .dot.show { display: block; }
.admin { display: flex; align-items: center; gap: 9px; }
.admin .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7C4DFF, #4C3A8F); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.admin b { display: block; font-size: 12px; }
.admin small { color: var(--muted); font-size: 10px; }
.view { padding: 24px 28px 50px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.kpi .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 8px; }
.kpi .d { font-size: 11px; margin-top: 4px; color: var(--green); }
.kpi .ic { width: 30px; height: 30px; border-radius: 9px; background: #FFF6E5; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.kpi.sub { padding: 14px 16px; }
.kpi.sub .v { font-size: 20px; }
.kpi.sub.blue .ic { background: #EAF2FF; }
.kpi.sub.green .ic { background: #E8F8F2; }
.kpi.sub.purple .ic { background: #F3EDFF; }
.kpi.sub.orange .ic { background: #FFF1E8; }

/* ---------- 布局 ---------- */
.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
.panel h3 { font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3 small { color: var(--muted); font-weight: 400; font-size: 11px; }
.panel h3 .btn, .panel h3 .link-btn { margin-left: auto; }
.link-btn { font-size: 11px; color: var(--blue); cursor: pointer; font-weight: 400; }

/* ---------- 图表 ---------- */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding: 8px 4px 0; }
.chart-sm { height: 145px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #FFD100, #FFB300); min-height: 8px; }
.chart .col.hi .bar { background: linear-gradient(180deg, #7C4DFF, #5B33D6); }
.chart .lb { font-size: 10px; color: var(--muted); }
.chart .vv { font-size: 10px; color: var(--text); }
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 6px 0 10px; }
.donut { width: 136px; height: 136px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut-hole { position: absolute; inset: 26px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-hole b { font-size: 22px; }
.donut-hole span { font-size: 9px; color: var(--muted); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.dl { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #555; }
.dl i { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.dl b { margin-left: auto; }
.dl em { font-style: normal; color: var(--muted); width: 34px; text-align: right; }
.todo-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #F5F7FA; font-size: 12px; }
.todo-row:last-of-type { border-bottom: 0; }
.todo-row b { margin-right: 2px; }
.warn-text { color: #D48806; }
.ok-text { color: var(--green); }
.quick-box { display: flex; gap: 8px; margin-top: 12px; }
.qb { flex: 1; text-align: center; font-size: 11px; background: #F7F9FC; border: 1px solid var(--line); border-radius: 8px; padding: 9px 4px; cursor: pointer; color: #475467; }
.qb:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-size: 12px; padding: 12px 10px; border-bottom: 1px solid #F5F7FA; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFD; }
.shop-cell { display: flex; align-items: center; gap: 8px; }
.shop-cell .lg { width: 30px; height: 30px; border-radius: 8px; background: #FFF6E5; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sub { color: var(--muted); font-size: 10px; margin-top: 2px; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.desc-cell { max-width: 220px; line-height: 1.5; }

/* ---------- 维修价目 ---------- */
.repair-svc-table td { padding: 16px 12px; }
.repair-svc-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.repair-svc-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.repair-svc-emoji {
  width: 46px; height: 46px; border-radius: 10px; background: #F5F3FF;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
}
.repair-svc-info b { font-size: 13px; }
.repair-spec-chip {
  display: inline-block; background: #F5F3FF; color: #5B33D6; border: 1px solid #E4DAFF;
  border-radius: 999px; padding: 3px 10px; font-size: 11px; margin: 2px 6px 2px 0; white-space: nowrap;
}
.repair-spec-editor { display: flex; flex-direction: column; gap: 8px; }
.repair-spec-row { display: flex; gap: 8px; align-items: center; }
.repair-icon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.repair-icon-preview {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F5F3FF; font-size: 22px;
}

/* ---------- 状态 ---------- */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st-new { background: #FFECEC; color: #E5484D; }
.st-cooking { background: #FFF6E5; color: #D48806; }
.st-ready { background: #EAF2FF; color: #2F6BFF; }
.st-delivering { background: #E8F8F2; color: #00A878; }
.st-accepted { background: #EAF2FF; color: #2F6BFF; }
.st-picked { background: #E8F8F2; color: #00A878; }
.st-visiting { background: #FFF6E5; color: #D48806; }
.st-repairing { background: #F3EDFF; color: #7C4DFF; }
.st-done { background: #F2F4F7; color: #98A2B3; }
.st-canceled { background: #F7F7F7; color: #B0B7C3; }
.st-pending { background: #FFF6E5; color: #D48806; }
.st-approved { background: #E8F8F2; color: #00A878; }
.st-rejected { background: #F2F4F7; color: #98A2B3; }
.biz-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; font-weight: 500; }

/* ---------- 按钮/表单 ---------- */
.btn { border: 1px solid var(--line); background: #fff; color: #555; border-radius: 7px; font-size: 11px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #ccd3de; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.green { background: var(--green); color: #fff; border-color: var(--green); }
.btn.red { background: #FFF1F1; color: var(--red); border-color: #FFD6D6; }
.btn.yellow { background: var(--yellow); color: #332600; border-color: var(--yellow); font-weight: 600; }
.btn.small { padding: 4px 9px; font-size: 10px; }
.btn + .btn { margin-left: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 14px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font-size: 12px; color: #667085; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge { font-size: 10px; color: var(--muted); }
.inline { display: flex; align-items: center; gap: 8px; }
.input, .select { height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; font-size: 12px; outline: none; background: #fff; }
.input:focus { border-color: var(--purple); }
.input.mini { width: 66px; height: 30px; text-align: center; padding: 0 6px; }
.input.area { height: 80px; padding: 8px 10px; resize: vertical; width: 100%; font-family: inherit; }
.form-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #F5F7FA; font-size: 13px; gap: 12px; }
.form-row:last-child { border-bottom: 0; }
.form-row .lbl { color: #475467; }
.form-row .desc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.form-row .input { width: 190px; }
.form-row .input.mini { width: 70px; }
.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 14px; }
.form-col { margin-bottom: 12px; }
.form-col label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.form-col .input { width: 100%; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: #D0D5DD; position: relative; cursor: pointer; flex-shrink: 0; }
.switch.on { background: var(--green); }
.switch i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on i { left: 20px; }

/* ---------- 审核 ---------- */
.audit-list { display: flex; flex-direction: column; gap: 12px; }
.audit-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 16px; }
.audit-card .ic { width: 42px; height: 42px; border-radius: 11px; background: #F4F6FA; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.audit-card .body { flex: 1; }
.audit-card .name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.audit-card .info { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.audit-card .acts { display: flex; align-items: center; gap: 6px; }

/* ---------- 业务页 ---------- */
.station-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F5F7FA; }
.station-row:last-child { border-bottom: 0; }
.station-ic { width: 34px; height: 34px; border-radius: 9px; background: #EAF2FF; display: flex; align-items: center; justify-content: center; }
.station-main { flex: 1; min-width: 0; }
.station-main b { font-size: 12px; }
.station-stat { text-align: right; margin-right: 8px; }
.station-stat b { display: block; font-size: 13px; }
.station-stat span { font-size: 9px; color: var(--muted); }
.person-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F5F7FA; }
.person-row:last-child { border-bottom: 0; }
.avatar.sm { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#7C4DFF,#4C3A8F); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.person-main { flex: 1; }
.person-main b { font-size: 12px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.activity { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #FAFBFD; }
.activity.on { background: #FFFDF4; border-color: #FFE9A8; }
.activity b { font-size: 12px; }
.activity p { font-size: 11px; color: #555; margin: 8px 0 5px; line-height: 1.5; }
.activity > span { font-size: 9px; color: var(--muted); }

/* ---------- 评价 ---------- */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.review-card.hidden { opacity: .55; }
.review-head { display: flex; align-items: center; gap: 9px; }
.review-meta { flex: 1; }
.review-meta b { display: block; font-size: 12px; }
.review-meta span { font-size: 10px; color: var(--muted); }
.stars { color: #FFB300; font-size: 13px; letter-spacing: 1px; }
.review-stars { color: #FFB300; }
.review-tags { font-size: 10px; color: #FF6A00; margin: 9px 0 4px; }
.review-card p { font-size: 12px; color: #444; line-height: 1.6; }
.review-reply { margin-top: 9px; background: #F7F9FC; border-radius: 7px; padding: 8px 10px; font-size: 11px; color: #555; }
.review-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.rank { width: 20px; height: 20px; border-radius: 6px; background: #F2F4F7; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #888; }
.rank.top { background: #FFF3D1; color: #8A5A00; font-weight: 700; }

/* ---------- 小票 ---------- */
.receipt-box { background: #FAFAFA; border: 1px dashed #ddd; border-radius: 8px; padding: 14px; font-family: "Courier New", monospace; font-size: 12px; line-height: 1.7; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 60; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; width: 560px; max-width: calc(100vw - 40px); border-radius: 14px; overflow: hidden; }
.modal .m-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal .m-head b { font-size: 15px; }
.modal .m-head .x { cursor: pointer; color: var(--muted); font-size: 18px; }
.modal .m-body { padding: 18px 22px; max-height: 66vh; overflow: auto; }
.modal .m-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; font-size: 12px; }
.kv .k { color: var(--muted); flex-shrink: 0; }
.kv span:last-child { text-align: right; }
.price { color: #FF4D2D; }
.detail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.detail-title { font-size: 13px; font-weight: 700; }
.timeline { display: flex; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.tl-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 9px; color: #b0b7c3; }
.tl-item i { width: 14px; height: 14px; border-radius: 50%; background: #E8ECF2; display: block; z-index: 1; }
.tl-item.done i { background: var(--yellow); }
.tl-item.on i { background: var(--purple); box-shadow: 0 0 0 4px #F0E9FF; }
.tl-item.on { color: var(--text); font-weight: 600; }
.tl-item + .tl-item::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: #E8ECF2; z-index: 0; }
.tl-item.done + .tl-item::before { background: #FFE58A; }

/* ---------- 其他 ---------- */
.empty { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 0; }
.toast { position: fixed; right: 26px; top: 90px; background: rgba(16,24,40,.92); color: #fff; font-size: 12px; padding: 10px 16px; border-radius: 8px; z-index: 100; opacity: 0; transform: translateY(-6px); transition: all .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 优惠设置 / 广告招商 ---------- */
.promo-status { padding: 12px 14px; border-radius: 9px; font-size: 12px; margin-bottom: 8px; }
.promo-status.on { background: #E8F8F2; color: #00875A; }
.promo-status.off { background: #FFF6E5; color: #B26A00; }
.join-card { margin-top: 16px; background: linear-gradient(135deg,#101828,#2C2355); color: #fff; border-radius: 12px; padding: 16px; }
.join-title { font-size: 15px; font-weight: 800; }
.join-sub { font-size: 11px; opacity: .65; margin-top: 5px; line-height: 1.5; }
.join-points { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.join-points span { font-size: 10px; background: rgba(255,209,0,.15); color: #FFD100; border-radius: 999px; padding: 4px 8px; }
.join-actions { display: flex; gap: 8px; }
.lead-note { background: #FAFBFD; border-left: 3px solid #FFD100; border-radius: 6px; padding: 10px 12px; font-size: 12px; color: #555; line-height: 1.6; margin: 10px 0; }
.promo-tip { font-size: 11px; color: #8A94A6; line-height: 1.6; margin-top: 10px; }

/* ---------- 卫生审核 / 校区 ---------- */
.hygiene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hygiene-card-admin { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.hygiene-photos-admin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.hygiene-photos-admin .hp { text-align: center; min-width: 0; }
.hygiene-photos-admin img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; background: #F4F6FA; display: block; }
.hygiene-photos-admin span { font-size: 10px; color: #667085; display: block; margin-top: 4px; }
.reject-reason { margin-top: 10px; background: #FFF1F1; color: #B42318; padding: 8px 10px; border-radius: 7px; font-size: 11px; line-height: 1.5; }
.tip-box { margin-top: 14px; background: #F7F9FC; border-radius: 8px; padding: 12px; font-size: 11px; color: #667085; line-height: 1.7; }
.poster-preview { background: linear-gradient(140deg, #101828, #2C2355); color: #fff; border-radius: 12px; padding: 26px 20px; text-align: center; }
.poster-brand { font-size: 12px; color: #FFD100; letter-spacing: 3px; }
.poster-title { font-size: 22px; font-weight: 800; margin-top: 10px; }
.poster-points { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 12px; line-height: 1.8; }
.poster-cats { font-size: 11px; color: #FFD100; margin-top: 8px; }
.poster-phone { font-size: 13px; font-weight: 700; margin-top: 16px; }
.flow-grid { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.flow-item { flex: 1; min-width: 120px; background: #F7F9FC; border-radius: 10px; padding: 14px; border: 1px solid var(--line); }
.flow-item span { display: block; font-size: 10px; color: var(--muted); }
.flow-item b { display: block; font-size: 18px; margin-top: 6px; }
.flow-arrow { display: flex; align-items: center; color: var(--muted); font-size: 18px; }
@media (max-width: 1200px) { .hygiene-grid { grid-template-columns: 1fr; } }
.ad-slot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ad-slot-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FAFBFD; }
.asc-head { display: flex; align-items: center; justify-content: space-between; }
.asc-head b { font-size: 12px; }
.asc-head span { font-size: 10px; color: var(--muted); }
.asc-desc { font-size: 10px; color: var(--muted); line-height: 1.5; margin: 6px 0 8px; min-height: 30px; }
.asc-demo { background: linear-gradient(120deg,#4A9BFF,#1565C0); color: #fff; border-radius: 8px; padding: 9px; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.asc-demo span { font-size: 18px; }
@media (max-width: 1200px) { .ad-slot-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { width: 76px; }
  .logo div, .nav-group { display: none; }
  .nav-item { font-size: 0; justify-content: center; padding: 11px; }
  .nav-item span:first-child { font-size: 17px; }
  .nav-item .n { position: absolute; top: 4px; right: 8px; display: none !important; }
  .side-foot { display: none; }
  .main { margin-left: 76px; }
}

/* ---------- 手机端 ---------- */
.topbar-left { display: flex; align-items: center; min-width: 0; }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 18px; cursor: pointer; margin-right: 12px; flex-shrink: 0; }
.sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .chart { gap: 8px; }
  .chart .col { min-width: 0; }
  .chart .vv, .chart .lb { font-size: 9px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .sidebar { width: 232px; transform: translateX(-100%); transition: transform .22s ease; z-index: 60; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-mask { display: block; }
  .logo div, .nav-group { display: block; }
  .nav-item { font-size: 13px; justify-content: flex-start; padding: 10px 14px; }
  .nav-item span:first-child { font-size: 15px; }
  .nav-item .n { position: static; }
  .nav-item .n.show { display: flex !important; }
  .side-foot { display: block; }
  .main { margin-left: 0; }
  .topbar { height: 62px; padding: 0 12px; }
  .topbar h1 { font-size: 16px; }
  .topbar p { display: none; }
  .top-right { gap: 10px; }
  .search { display: none; }
  .admin div { display: none; }
  .admin .avatar { width: 32px; height: 32px; }
  .view { padding: 14px 12px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px; min-width: 0; }
  .panel { min-width: 0; max-width: 100%; }
  .kpi .v { font-size: 21px; }
  .kpi .k { font-size: 11px; }
  .panel { padding: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }
  th, td { padding: 9px 8px; }
  .grid-2 { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .ad-slot-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 20px); }
  .modal .m-body { max-height: 62vh; }
}
