/* ============ 重庆十一车展 · 试驾排程管理系统 ============ */
/* 极氪品牌色规范：月白/纸黄主体、星辰紫深色打底、曙光橙仅作高亮 */
:root {
  --brand: #FF5841;
  --brand-red: #EA512A;
  --brand-energy: #F76400;
  --purple: #31041B;
  --purple-2: #4A0B2A;
  --bg: #FFFBF3;
  --bg-soft: #FFF4E2;
  --card: #FFFFFF;
  --line: #DDDDDD;
  --line-warm: #D9C5B7;
  --muted: #9DA2A5;
  --text: #232323;
  --brown: #69514B;
  --brown-mid: #B9A6A0;
  /* 状态色：试驾中 / 等待 / 已结束 */
  --st-ok: #2E9E6B;
  --st-warn: #D9912B;
  --st-done: #9DA2A5;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(49, 4, 27, .07);
  --shadow-lg: 0 12px 36px rgba(49, 4, 27, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }
.hidden { display: none !important; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px; flex: 0 0 216px;
  background: linear-gradient(170deg, var(--purple) 0%, var(--purple-2) 100%);
  color: rgba(255, 255, 255, .78);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 16px; }
.brand-logo {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  background: rgba(255, 88, 65, .16); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-logo svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.brand-text b { color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 11.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 10px; color: #fff; align-items: center; justify-content: center; }
.nav-toggle .ico-close { display: none; }
.nav-toggle.active .ico-menu { display: none; }
.nav-toggle.active .ico-close { display: block; }
.nav-toggle span { display: block; }

.sidebar-nav { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .78); font-size: 14px; text-align: left;
  transition: background .16s, color .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: rgba(255, 88, 65, .20); color: #fff; font-weight: 500; }
.nav-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { display: block; }
.sidebar-foot {
  padding: 14px 18px; font-size: 11.5px; color: rgba(255, 255, 255, .38);
  display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-foot svg { display: block; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: rgba(255, 251, 243, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-warm);
  position: sticky; top: 0; z-index: 40;
}
.topbar h1 { font-size: 17px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; }
.btn-topbar {
  width: 36px; height: 36px; border-radius: 10px; color: var(--brown);
  background: var(--card); border: 1px solid var(--line-warm);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-topbar:hover { background: var(--bg-soft); color: var(--brand); }
.btn-topbar.spin svg { animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.topbar-user {
  font-size: 12.5px; color: var(--brown); background: var(--card);
  border: 1px solid var(--line-warm); border-radius: 20px; padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 5px; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-user:empty { display: none; }

#main-content { padding: 20px 24px 60px; flex: 1; }

/* ---------- 通用：按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--card); color: var(--brown); border: 1px solid var(--line-warm);
  transition: background .16s, border-color .16s, color .16s, opacity .16s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-soft); border-color: var(--brown-mid); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-red); border-color: var(--brand-red); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #C0392B; border-color: #C0392B; color: #fff; }
.btn-danger:hover { background: #a83224; border-color: #a83224; }
.btn-danger-ghost { color: #B03A2E; }
.btn-danger-ghost:hover { background: rgba(192, 57, 43, .08); border-color: #C0392B; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn .i-ico, .btn-topbar .i-ico { margin-right: 0; }
.i-ico { display: inline-flex; align-items: center; vertical-align: -0.18em; margin-right: 5px; }
.i-ico:last-child { margin-right: 0; }
.i-ico svg { display: block; }

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-ok { background: rgba(46, 158, 107, .13); color: var(--st-ok); }
.badge-warn { background: rgba(217, 145, 43, .14); color: #B87A1C; }
.badge-done { background: rgba(157, 162, 165, .16); color: #6F7377; }
.badge-off { background: rgba(46, 158, 107, .13); color: var(--st-ok); }
.badge-gray { background: rgba(157, 162, 165, .16); color: #6F7377; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border-radius: 20px; font-size: 12.5px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line-warm); color: var(--brown);
}
.pill svg { display: block; }
.pill-ok { color: var(--st-ok); border-color: rgba(46, 158, 107, .3); background: rgba(46, 158, 107, .06); }
.pill-warn { color: #B87A1C; border-color: rgba(217, 145, 43, .32); background: rgba(217, 145, 43, .07); }
.pill-done { color: #6F7377; border-color: var(--line); background: rgba(157, 162, 165, .08); }
.stat-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 排程筛选条（车型 / 状态） ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -6px 0 16px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line-warm); border-radius: 12px;
  transition: border-color .16s, background .16s;
}
.filter-bar.on { border-color: rgba(255, 88, 65, .34); background: rgba(255, 88, 65, .035); }
.fb-title { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--brown); }
.fb-title svg { color: var(--brand); }
.fb-item { position: relative; }
.filter-bar .fb-model { width: 208px; }
.filter-bar .fb-status { width: 166px; }
.filter-bar .cs-btn { padding: 8px 11px; font-size: 13px; }
.fb-clear {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 11px; border-radius: 9px; font-size: 12.5px;
  color: var(--brand); background: rgba(255, 88, 65, .08);
  border: 1px solid rgba(255, 88, 65, .26);
  transition: background .16s, border-color .16s;
}
.fb-clear:hover { background: rgba(255, 88, 65, .15); border-color: var(--brand); }
.fb-count { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- 页面工具条 ---------- */
.page-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.date-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; min-width: 54px; padding: 5px 11px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line-warm); color: var(--brown);
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.chip i { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.chip:hover { border-color: var(--brown-mid); background: var(--bg-soft); }
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip.on i { color: rgba(255, 255, 255, .6); }
.chip-ghost { flex-direction: row; gap: 4px; font-weight: 500; font-size: 12.5px; }
.chip-ghost svg { display: block; }

/* ---------- 排程分组 ---------- */
.grp { margin-bottom: 26px; }
.grp-head {
  display: flex; align-items: centers; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 12px; align-items: center;
}
.grp-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grp-title h2 { font-size: 16.5px; font-weight: 600; }
.grp-meta { font-size: 12.5px; color: var(--muted); }
.car-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.car-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 8px; font-size: 12.5px; background: var(--card);
  border: 1px solid var(--line-warm); color: var(--brown);
}
.car-tag i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.car-tag.idle i { background: var(--st-done); }
.car-tag.busy i { background: var(--st-ok); box-shadow: 0 0 0 3px rgba(46, 158, 107, .16); }
.car-tag em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.grp-empty {
  padding: 22px; text-align: center; color: var(--muted); font-size: 13px;
  background: rgba(255, 255, 255, .5); border: 1px dashed var(--line-warm); border-radius: var(--radius);
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ---------- 已结束的排程：默认折起来 ---------- */
.fin-fold { margin-top: 14px; }
.fin-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px;
  color: var(--muted); background: rgba(255, 255, 255, .62);
  border: 1px dashed var(--line-warm);
  transition: border-color .16s, background .16s, color .16s;
}
.fin-chev { display: inline-flex; color: var(--brown-mid); transition: transform .2s; }
.fin-fold.open .fin-chev { transform: rotate(180deg); }
.fin-label { color: var(--brown); font-weight: 500; }
.fin-hint { font-size: 11.5px; color: var(--muted); }
.fin-body { display: none; margin-top: 12px; }
.fin-fold.open .fin-body { display: grid; }
.fin-body .scard { opacity: .84; }
@media (hover: hover) { .fin-toggle:hover { border-color: var(--brown-mid); background: #fff; } }
.fin-toggle:active { border-color: var(--brown-mid); background: rgba(255, 255, 255, .9); }

/* ---------- 排程卡片 ---------- */
.scard {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line-warm); border-left: 5px solid var(--st-done);
  padding: 14px 16px 12px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .18s, transform .18s;
}
.scard:hover { box-shadow: 0 6px 20px rgba(49, 4, 27, .10); }
.scard.st-ok { border-left-color: var(--st-ok); }
.scard.st-warn { border-left-color: var(--st-warn); }
.scard.st-done { border-left-color: var(--st-done); background: rgba(255, 255, 255, .72); }

.scard-top { display: flex; align-items: flex-start; gap: 10px; }
.scard-plate { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.scard-plate b { font-size: 15.5px; font-weight: 600; letter-spacing: .2px; }
.scard-plate span { font-size: 12px; color: var(--muted); }
.scard-top .badge { margin-left: auto; margin-top: 2px; }

.scard-kv { display: flex; flex-direction: column; gap: 5px; }
.kv { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); flex-wrap: wrap; }
.kv svg { display: block; color: var(--brown-mid); flex: 0 0 auto; }
.kv em { font-style: normal; color: var(--muted); font-size: 12px; }
.kv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.kv-live svg { display: block; }
.kv-live b { font-weight: 600; font-variant-numeric: tabular-nums; }
.kv-live.ok { color: var(--st-ok); }
.kv-live.warn { color: #B87A1C; }
.kv-live.done { color: #6F7377; }
.kv-live em { font-style: normal; font-size: 11.5px; opacity: .75; }

.scard-remark {
  font-size: 12.5px; color: var(--brown); background: var(--bg-soft);
  padding: 6px 10px; border-radius: 8px; display: flex; align-items: flex-start; gap: 6px;
}
.scard-remark svg { flex: 0 0 auto; margin-top: 2px; color: var(--brown-mid); }

.scard-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }

/* ---------- 试驾车卡片 ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.car-grid.dim { opacity: .58; }
.ccard {
  background: var(--card); border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: 15px 16px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px;
}
.ccard.is-off { background: rgba(255, 255, 255, .6); }
.ccard-top { display: flex; align-items: flex-start; gap: 10px; }
.ccard-name { display: flex; flex-direction: column; line-height: 1.3; }
.ccard-name b { font-size: 15.5px; font-weight: 600; }
.ccard-name span { font-size: 12px; color: var(--muted); }
.ccard-top .badge { margin-left: auto; }
.ccard-plate {
  font-size: 14px; font-weight: 600; color: var(--purple);
  background: var(--bg-soft); border-radius: 8px; padding: 5px 11px; align-self: flex-start;
  letter-spacing: .3px;
}
.ccard-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.ccard-kv span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--brown); }
.ccard-kv span.wide { grid-column: 1 / -1; }
.ccard-kv svg { display: block; color: var(--brown-mid); flex: 0 0 auto; }
.ccard-remark { font-size: 12.5px; color: var(--muted); }
.ccard-foot { display: flex; gap: 7px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }

.sec-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.sec-head h3 { font-size: 14.5px; font-weight: 600; color: var(--muted); }

/* ---------- 看板 ---------- */
.board-toolbar { justify-content: space-between; }
.board-gen { font-size: 12.5px; color: var(--muted); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--card); border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: 15px 17px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow);
}
.kpi-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--brown);
}
.kpi-ico svg { display: block; }
.kpi-body { display: flex; flex-direction: column; line-height: 1.25; }
.kpi-body b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-body span { font-size: 12.5px; color: var(--muted); }
.kpi-total .kpi-ico { background: rgba(49, 4, 27, .07); color: var(--purple); }
.kpi-driving .kpi-ico { background: rgba(255, 88, 65, .12); color: var(--brand); }
.kpi-driving .kpi-body b { color: var(--brand); }
.kpi-waiting .kpi-ico { background: rgba(217, 145, 43, .14); color: #B87A1C; }
.kpi-finished .kpi-ico { background: rgba(46, 158, 107, .13); color: var(--st-ok); }
.kpi-finished .kpi-body b { color: var(--st-ok); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line-warm); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.two-col .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h3 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; }
.panel-head h3 svg { color: var(--brand); }
.panel-sub { font-size: 12px; color: var(--muted); }
.panel-sub.ok { color: var(--st-ok); }
.panel-sub.warn { color: #B87A1C; }
.panel-foot { margin-top: 14px; display: flex; justify-content: flex-end; }
.box-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.model-list { display: flex; flex-direction: column; gap: 12px; }
.model-row { display: grid; grid-template-columns: 116px 1fr; gap: 8px 14px; align-items: center; }
.model-name { display: flex; flex-direction: column; line-height: 1.3; }
.model-name b { font-size: 13.5px; font-weight: 600; }
.model-name span { font-size: 11.5px; color: var(--muted); }
.model-bar { height: 8px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; }
.model-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brown-mid), var(--brand)); transition: width .4s; }
.model-nums { grid-column: 2; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.model-nums .mn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mn.total b { color: var(--purple); font-size: 13px; }
.mn.ok { color: var(--st-ok); }
.mn.warn { color: #B87A1C; }
.mn.done { color: #6F7377; }

.car-live { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; }
.clr { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: rgba(255, 255, 255, .6); }
.clr.busy { border-color: rgba(46, 158, 107, .3); background: rgba(46, 158, 107, .04); }
.clr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.clr-plate { font-size: 13.5px; font-weight: 600; }
.clr-model { font-size: 12px; color: var(--muted); }
.clr-head .badge { margin-left: auto; }
.clr-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 3px 0 3px 2px; }
.clr-line .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.clr-line.ok .dot { background: var(--st-ok); }
.clr-line.warn .dot { background: var(--st-warn); }
.clr-line b { font-weight: 600; }
.clr-line em { font-style: normal; color: var(--muted); font-size: 12px; }
.clr-time { margin-left: auto; color: var(--brown); font-variant-numeric: tabular-nums; }
.clr-time b { font-weight: 600; }
.clr-empty { font-size: 12.5px; color: var(--muted); padding-left: 2px; }

/* ---------- 推送区 ---------- */
.push-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.push-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: rgba(255, 255, 255, .55); display: flex; flex-direction: column; }
.push-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.push-box-head b { font-size: 13px; font-weight: 600; display: flex; align-items: center; color: var(--brown); }
.push-text {
  width: 100%; min-height: 250px; resize: vertical;
  border: 1px solid var(--line-warm); border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.75; color: var(--text); background: var(--bg);
  font-family: "SF Mono", Menlo, Consolas, "PingFang SC", monospace;
}
.push-text:focus { outline: none; border-color: var(--brand); background: #fff; }
.push-hint { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.push-img-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: var(--bg-soft); border-radius: 10px; padding: 12px; min-height: 250px; overflow: auto;
}
.board-img { width: 100%; max-width: 300px; border-radius: 10px; box-shadow: 0 6px 20px rgba(49, 4, 27, .16); display: block; }
.board-meta { font-size: 11px; color: var(--muted); margin-top: 9px; }
.push-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.push-note { font-size: 12.5px; color: var(--brown); display: flex; align-items: center; }
.push-note svg { color: var(--brand); }
.push-btns { display: flex; gap: 10px; }

.loading, .empty, .empty-sm, .loading-sm {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); padding: 60px 20px; font-size: 13px;
}
.loading svg, .loading-sm svg { animation: spin 1.1s linear infinite; }
.empty svg, .empty-sm svg, .loading-sm svg { color: var(--brown-mid); }
.empty p, .empty-sm span { color: var(--text); font-size: 14px; }
.empty span { font-size: 12.5px; color: var(--muted); }
.loading-sm { padding: 40px 10px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 15px; }
.form-grid .fld:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-label { font-size: 12.5px; color: var(--brown); font-weight: 500; }
.fld-label i { font-style: normal; color: var(--brand); }
.fld-hint { font-size: 11.5px; color: var(--muted); }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-warm); border-radius: 10px;
  background: var(--bg); color: var(--text); font-size: 13.5px; transition: border-color .16s, background .16s;
}
.fld input:focus, .fld select:focus { outline: none; border-color: var(--brand); background: #fff; }
/* 增强过的下拉一律隐藏原生 select（不限弹窗 .fld 内，页面筛选条同样生效） */
select.cs-native { display: none; }

/* 字段少的表单（如新增排程）用大号控件，现场手指点得准、看着不挤 */
.form-grid.lg { gap: 16px 18px; }
.form-grid.lg .fld { gap: 8px; }
.form-grid.lg .fld-label { font-size: 13.5px; }
.form-grid.lg .fld input,
.form-grid.lg .fld textarea,
.form-grid.lg .cs-btn { padding: 13px 14px; font-size: 15px; border-radius: 11px; }
.form-grid.lg .cs-opt { padding: 11px 12px; font-size: 15px; }
.form-grid.lg .cs-sub,
.form-grid.lg .fld-hint { font-size: 12.5px; }
.form-grid.lg .fld input::placeholder { color: #B8BCBF; }
/* 整行字段：给选项最多的下拉（试驾车）留足宽度，避免选项文字被截断 */
.fld-wide { grid-column: 1 / -1; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; align-items: flex-start; }
.form-tip svg { color: var(--brown-mid); flex: 0 0 auto; margin-top: 2px; }
.form-tip.tip-brand {
  color: var(--brand); background: rgba(255, 88, 65, .07);
  border: 1px solid rgba(255, 88, 65, .2); border-radius: 9px;
  padding: 8px 11px; line-height: 1.55; font-size: 12.5px;
}
.form-tip.tip-brand svg { color: var(--brand); margin-right: 5px; margin-top: 1px; }

.quick-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.quick-row > span { font-size: 12px; color: var(--muted); }
.chip-mini {
  padding: 4px 11px; border-radius: 20px; font-size: 12.5px;
  background: var(--bg-soft); color: var(--brown); border: 1px solid transparent;
}
.chip-mini:hover { border-color: var(--brown-mid); }
.chip-mini.on { background: var(--purple); color: #fff; }

/* ---------- 自定义下拉 ---------- */
.cs { position: relative; width: 100%; }
.cs-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line-warm); border-radius: 10px;
  background: var(--bg); font-size: 13.5px; color: var(--text); text-align: left;
}
.cs-btn:hover { border-color: var(--brown-mid); }
.cs.open .cs-btn { border-color: var(--brand); background: #fff; }
.cs-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-val.cs-ph { color: var(--muted); }
.cs-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cs-arrow { color: var(--brown-mid); display: inline-flex; transition: transform .18s; }
.cs-arrow svg { display: block; }
.cs.open .cs-arrow { transform: rotate(180deg); }
.cs-pop {
  display: none; position: absolute; z-index: 60; top: calc(100% + 5px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line-warm); border-radius: 11px;
  box-shadow: var(--shadow-lg); max-height: 246px; overflow-y: auto; padding: 5px;
}
.cs.open .cs-pop { display: block; animation: csDrop .14s ease-out; }
.cs-pop.up { top: auto; bottom: calc(100% + 5px); }
.cs.open .cs-pop.up { animation-name: csDropUp; }
@keyframes csDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes csDropUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cs-opt {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 11px; border-radius: 8px; font-size: 13.5px; color: var(--text);
}
.cs-opt:hover { background: var(--bg-soft); }
.cs-opt.on { background: rgba(255, 88, 65, .1); color: var(--brand); font-weight: 500; }
.cs-opt:disabled { opacity: .42; cursor: not-allowed; }
.cs-opt-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-opt-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cs-empty { padding: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- 开关 ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.sw-track {
  width: 44px; height: 25px; border-radius: 20px; background: var(--line);
  position: relative; transition: background .2s; flex: 0 0 44px;
}
.sw-dot {
  position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.switch input:checked + .sw-track { background: var(--st-ok); }
.switch input:checked + .sw-track .sw-dot { transform: translateX(19px); }
.sw-label { font-size: 13.5px; font-weight: 500; }
.row-btns { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- 门店列表 ---------- */
.store-list { display: flex; flex-direction: column; gap: 9px; }
.store-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .6);
}
.store-row.is-off { opacity: .6; }
.store-ico { color: var(--brown-mid); display: inline-flex; }
.store-ico svg { display: block; }
.store-name { font-size: 13.5px; font-weight: 500; flex: 1; min-width: 0; }
.store-row .row-btns { margin-left: auto; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(35, 5, 20, .42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; }
.modal {
  width: 100%; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .22s;
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal-mask.show .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 17px 20px 13px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15.5px; font-weight: 600; flex: 1; display: flex; align-items: center; }
.modal-head h3 svg { color: var(--brand); }
.modal-close {
  width: 32px; height: 32px; border-radius: 9px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 13px 20px 17px; border-top: 1px solid var(--line);
}
.confirm-msg { font-size: 13.5px; line-height: 1.7; color: var(--brown); }

/* ---------- toast ---------- */
#toast-wrap {
  position: fixed; z-index: 200; left: 50%; top: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none;
  width: max-content; max-width: min(92vw, 460px);
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 17px; border-radius: 11px; font-size: 13.5px; font-weight: 500;
  background: var(--card); color: var(--text);
  box-shadow: 0 8px 26px rgba(49, 4, 27, .18); border: 1px solid var(--line-warm);
  opacity: 0; transform: translateY(-10px); transition: opacity .22s, transform .22s;
}
.toast svg { display: block; flex: 0 0 auto; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(46, 158, 107, .4); color: var(--st-ok); }
.toast-error { border-color: rgba(192, 57, 43, .4); color: #B03A2E; }

/* ---------- 登录页 ---------- */
.login-mask {
  position: fixed; inset: 0; z-index: 300; padding: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(158deg, #31041B 0%, #4A0B2A 58%, #26030F 100%);
  opacity: 0; transition: opacity .26s;
}
.login-mask.show { opacity: 1; }
.login-card {
  width: 100%; max-width: 372px; background: var(--card);
  border-radius: 20px; padding: 28px 26px 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46);
  transform: translateY(12px) scale(.985); transition: transform .26s;
}
.login-mask.show .login-card { transform: translateY(0) scale(1); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.login-logo {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  background: rgba(255, 88, 65, .13); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.login-logo svg { display: block; }
.login-brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.login-brand-text b { font-size: 16px; font-weight: 600; }
.login-brand-text span { font-size: 12px; color: var(--muted); }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-btn { width: 100%; margin-top: 4px; padding: 11px 16px; font-size: 14.5px; }
.login-err { font-size: 12.5px; color: #B03A2E; min-height: 17px; margin-top: -4px; }
.login-tip { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 16px; text-align: center; }
.login-tip b { color: var(--brand); font-weight: 600; }

/* ---------- 车型图上传 ---------- */
.img-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.img-row { display: flex; gap: 13px; align-items: flex-start; }
.img-box {
  width: 142px; height: 92px; flex: 0 0 142px; border-radius: 11px;
  border: 1px dashed var(--line-warm); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--brown-mid); position: relative;
  transition: border-color .16s, background .16s;
}
.img-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.img-box.drop { border-color: var(--brand); background: rgba(255, 88, 65, .07); }
.img-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.img-acts .fld-hint { line-height: 1.6; }
.ccard-thumb {
  width: 86px; height: 58px; flex: 0 0 86px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--brown-mid);
}
.ccard-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ccard-thumb svg { display: block; opacity: .45; }

/* ---------- 批量导入 ---------- */
.badge-new { background: rgba(46, 158, 107, .13); color: var(--st-ok); }
.badge-upd { background: rgba(255, 88, 65, .12); color: var(--brand); }
.badge-skip { background: rgba(157, 162, 165, .16); color: #6F7377; }
.badge-err { background: rgba(192, 57, 43, .12); color: #B03A2E; }

.imp { display: flex; flex-direction: column; gap: 14px; }
.imp-top { display: flex; flex-direction: column; gap: 9px; }
.imp-ta {
  width: 100%; min-height: 118px; max-height: 240px; resize: vertical;
  border: 1px solid var(--line-warm); border-radius: 11px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.75; color: var(--text); background: var(--bg);
  font-family: "SF Mono", Menlo, Consolas, "PingFang SC", monospace;
  transition: border-color .16s, background .16s;
}
.imp-ta:focus { outline: none; border-color: var(--brand); background: #fff; }
.imp-ta.drop { border-color: var(--brand); background: rgba(255, 88, 65, .06); }
.imp-ta::placeholder { color: var(--muted); line-height: 1.85; }
.imp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.imp-foot .btn { padding: 6px 11px; }
.imp-file { font-size: 11.5px; color: var(--brown); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-check, .imp-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--brown); cursor: pointer; white-space: nowrap; }
.imp-check { margin-left: auto; }
.imp-check input, .imp-switch input { width: 15px; height: 15px; accent-color: var(--brand); margin: 0; cursor: pointer; }

.imp-panel { border-top: 1px dashed var(--line-warm); padding-top: 13px; }
.imp-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 16px 0 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.imp-empty svg { color: var(--brown-mid); }
.imp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.imp-stat { display: flex; gap: 11px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.imp-stat b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.imp-stat .ok b { color: var(--st-ok); }
.imp-stat .up b { color: var(--brand); }
.imp-stat .gk b { color: #6F7377; }
.imp-stat .er b { color: #B03A2E; }
.imp-mode { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.imp-tbl-wrap { max-height: 264px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.imp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.imp-tbl th, .imp-tbl td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.imp-tbl th { position: sticky; top: 0; z-index: 1; background: var(--bg-soft); color: var(--brown); font-weight: 600; }
.imp-tbl tbody tr:last-child td { border-bottom: none; }
.imp-tbl tbody tr.r-new { background: rgba(46, 158, 107, .035); }
.imp-tbl tbody tr.r-skip { color: var(--muted); }
.imp-tbl tbody tr.r-error { background: rgba(192, 57, 43, .05); }
.imp-tbl .c-line { color: var(--muted); font-variant-numeric: tabular-nums; }
.imp-tbl .c-note { color: var(--brown); }
.imp-tbl .c-note.c-warn { color: #B87A1C; }
.imp-tbl .c-dim { color: var(--line-warm); }
.imp-more { font-size: 11.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.imp-alert, .imp-warn {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.65;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 10px;
}
.imp-alert { background: rgba(192, 57, 43, .07); color: #B03A2E; }
.imp-warn { background: rgba(217, 145, 43, .1); color: #B87A1C; }
.imp-alert svg, .imp-warn svg { flex: 0 0 auto; margin-top: 2px; }
.imp-guide { background: var(--bg-soft); border-radius: 11px; padding: 11px 13px; margin-bottom: 11px; }
.imp-guide p { font-size: 12px; color: var(--brown); margin-bottom: 8px; }
.imp-guide-tip { margin-bottom: 0 !important; color: var(--muted) !important; line-height: 1.7; }
.imp-cols { display: flex; gap: 7px; flex-wrap: wrap; }
.imp-col {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line-warm); font-size: 12px; color: var(--text);
}
.imp-col i { font-style: normal; font-size: 10.5px; color: var(--brand); }
.imp-col em { font-style: normal; color: var(--muted); font-size: 11px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .push-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    position: sticky; top: 0; z-index: 60; height: auto; width: 100%; flex: 0 0 auto;
    flex-direction: row; align-items: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
  }
  .layout { flex-direction: column; }
  .sidebar-brand { padding: 9px 14px; flex: 1; }
  .brand-logo { width: 32px; height: 32px; flex: 0 0 32px; }
  .nav-toggle { display: flex; }
  .sidebar-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: 68vh; overflow-y: auto; padding: 10px 12px 14px;
    background: linear-gradient(170deg, var(--purple) 0%, var(--purple-2) 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .32);
  }
  .sidebar.nav-open .sidebar-nav { display: flex; }
  .sidebar-foot { display: none; }
  .nav-item { padding: 13px 14px; font-size: 14.5px; }

  .topbar { position: static; padding: 12px 15px; }
  .topbar h1 { font-size: 16px; }
  #main-content { padding: 15px 15px 70px; }

  .page-toolbar { gap: 10px; }
  .toolbar-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .date-chips { gap: 6px; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; width: 100%; }
  .chip { min-width: 50px; padding: 5px 9px; flex: 0 0 auto; }

  .card-grid { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi { padding: 12px 13px; gap: 10px; }
  .kpi-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; }
  .kpi-body b { font-size: 22px; }

  .grp-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .model-row { grid-template-columns: 96px 1fr; }
  .model-nums { grid-column: 1 / -1; gap: 11px; }
  .car-live { max-height: none; }

  .form-grid { grid-template-columns: 1fr; }
  .push-text { min-height: 210px; }
  .push-foot { flex-direction: column; align-items: stretch; }
  .push-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .push-btns .btn { width: 100%; }
  .store-row { flex-wrap: wrap; }
  .store-row .row-btns { margin-left: 0; width: 100%; }

  /* 批量导入：手机上列一行放不下，工具条各占一行，预览表横向滚动 */
  .imp-check { margin-left: 0; }
  .imp-ta { min-height: 96px; font-size: 12px; }
  .imp-file { max-width: 100%; }
  .imp-bar { align-items: flex-start; }
  .imp-mode { margin-left: 0; width: 100%; }
  .imp-tbl-wrap { max-height: 320px; }
  .imp-tbl { font-size: 12px; }
  .imp-tbl th, .imp-tbl td { padding: 6px 9px; }

  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { max-width: 100% !important; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-body { padding: 15px 16px; }
  .modal-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  #toast-wrap { top: 12px; }
}

@media (max-width: 380px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .model-row { grid-template-columns: 1fr; }
  .model-nums { grid-column: 1 / -1; }
}

/* ============ 触屏手感：点完不留焦点圈、不残留 hover、页面不跟着动 ============ */
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;      /* 去掉双击缩放与 300ms 延迟，页面不会被点“放大” */
}
body { overscroll-behavior-y: none; }

/* 鼠标/触摸点出来的焦点不画圈；键盘 Tab 仍然可见（无障碍保留） */
button:focus, .btn:focus, .cs-btn:focus, .cs-opt:focus,
input:focus, select:focus, textarea:focus, [tabindex]:focus {
  outline: none;
  box-shadow: none;
}
button:focus-visible, .btn:focus-visible, .cs-btn:focus-visible, .cs-opt:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 触屏设备不保留 :hover —— 否则点一下按钮/卡片，高亮会一直挂着，像“被聚焦了” */
@media (hover: none) {
  .btn:hover { background: var(--card); border-color: var(--line-warm); }
  .btn-ghost:hover { background: transparent; border-color: var(--line-warm); }
  .btn-primary:hover { background: var(--brand); border-color: var(--brand); }
  .btn-danger:hover { background: #C0392B; border-color: #C0392B; }
  .btn-danger-ghost:hover { background: transparent; border-color: var(--line-warm); }
  .btn-topbar:hover { background: transparent; color: var(--brown); }
  .nav-item:hover { background: transparent; color: rgba(255, 255, 255, .78); }
  .nav-item.active:hover { background: var(--brand); color: #fff; }
  .chip:hover { background: var(--card); border-color: var(--line-warm); }
  .chip-mini:hover { border-color: var(--line-warm); }
  .chip-mini.on:hover { border-color: var(--brand); }
  .scard:hover { box-shadow: var(--shadow); }
  .cs-btn:hover { border-color: var(--line-warm); }
  .cs.open .cs-btn:hover { border-color: var(--brand); }
  .cs-opt:hover { background: transparent; }
  .cs-opt.on:hover { background: rgba(255, 88, 65, .1); }
  .modal-close:hover { background: var(--bg-soft); color: var(--muted); }
  .grp-quick:hover { background: rgba(255, 88, 65, .08); border-color: rgba(255, 88, 65, .28); }
  .grp-empty:hover { border-color: var(--line-warm); background: rgba(255, 255, 255, .5); }
  .grp-empty:hover b, .grp-empty:hover svg { color: var(--brand); }
}

/* 弹层内部滚动到底后不要带动背后的页面 */
.modal-body, .cs-pop, .car-live, .imp-tbl-wrap, .push-img-wrap, .board-img-wrap { overscroll-behavior: contain; }

/* 快速排程：车型版块头部的按钮 + 虚线框整块可点 */
.grp-quick {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 500;
  color: var(--brand); background: rgba(255, 88, 65, .08);
  border: 1px solid rgba(255, 88, 65, .28);
  transition: background .16s, border-color .16s;
}
.grp-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.grp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.grp-empty b { font-weight: 500; color: var(--brand); font-size: 13px; }
.grp-empty svg { color: var(--brown-mid); }

/* 只在真有 hover 能力的设备上做悬停高亮（触屏上用 :active 给按下反馈） */
@media (hover: hover) {
  .grp-quick:hover { background: rgba(255, 88, 65, .14); border-color: var(--brand); }
  .grp-empty:hover { border-color: var(--brand); background: rgba(255, 88, 65, .05); }
  .grp-empty:hover svg { color: var(--brand); }
}
.grp-quick:active { background: rgba(255, 88, 65, .2); border-color: var(--brand); }
.grp-empty:active { border-color: var(--brand); background: rgba(255, 88, 65, .09); }

@media (max-width: 768px) {
  .grp-head-right { width: 100%; justify-content: space-between; }
  .grp-quick { padding: 8px 14px; font-size: 13px; }
  .grp-empty { padding: 26px 18px; }
  /* 筛选条：标题独占一行，两个下拉并排占满，清除与计数各占一行 */
  .filter-bar { gap: 8px; padding: 10px 11px; }
  .fb-title { width: 100%; }
  .filter-bar .fb-item { flex: 1 1 0; min-width: 0; }
  .filter-bar .fb-model, .filter-bar .fb-status { width: auto; }
  .filter-bar .cs-btn { padding: 10px 11px; font-size: 13.5px; }
  .fb-clear { flex: 1 1 100%; justify-content: center; padding: 9px 11px; }
  .fb-count { width: 100%; margin-left: 0; }
  /* 手机上列表别顶到屏幕外，选项也放大一点好点 */
  .cs-pop { max-height: 40vh; }
  .cs-opt { padding: 11px 12px; font-size: 14px; }
  .cs-btn { padding: 11px 12px; }

  /* 大号表单在手机上再放宽一点，16px 同时避免 iOS 聚焦自动放大 */
  .form-grid.lg .fld input,
  .form-grid.lg .fld textarea,
  .form-grid.lg .cs-btn { padding: 14px; font-size: 16px; }
  .form-grid.lg .cs-opt { font-size: 16px; padding: 13px 14px; }
}

