:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6eaf0;
  --line-2: #eef1f6;
  --ink: #0f172a;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-soft: #eff4ff;
  --warn: #f79009;
  --warn-soft: #fffaeb;
  --ok: #12b76a;
  --ok-soft: #ecfdf3;
  --danger: #f04438;
  --danger-soft: #fef3f2;
  --side: #101828;
  --side-2: #0b1220;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --r: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

/* ============================================================
   客户 H5 页（/c/:code）
   ============================================================ */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }

.hero {
  background: linear-gradient(160deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  padding: 22px 16px 28px;
  border-radius: 0 0 24px 24px;
}
.hero .inner { max-width: 560px; margin: 0 auto; }
.hero h1 { font-size: 19px; margin: 0 0 4px; font-weight: 650; letter-spacing: .2px; }
.hero p { margin: 0; font-size: 13px; opacity: .85; }
.hero .who {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 5px 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; font-size: 13px;
}

.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 14px;
}
.card h2 {
  font-size: 15px; margin: 0 0 14px; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card h2 .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 图片上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 8px; }
.up-add {
  width: 78px; height: 78px; border: 1.5px dashed #d0d5dd; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #98a2b3; cursor: pointer; background: #fbfcfe; transition: .15s;
  font-size: 11px;
}
.up-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.up-add .plus { font-size: 24px; line-height: 1; }
.up-thumb {
  width: 78px; height: 78px; border-radius: 10px; overflow: hidden;
  position: relative; background: #eef1f6;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb .del {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 13px; line-height: 19px; text-align: center;
  cursor: pointer; border: 0; padding: 0; font-family: inherit;
}
.img-count { font-size: 12px; color: var(--ink-3); margin-left: 4px; }

/* 任务里的截图 */
.imgs { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.imgs a { display: block; line-height: 0; }
.imgs img {
  width: 66px; height: 66px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); display: block;
}
.imgs.big img { width: 96px; height: 96px; }
.pic-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: var(--brand); background: var(--brand-soft);
  padding: 1px 7px; border-radius: 5px; font-weight: 600;
}
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

input[type="text"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: #fbfcfe; color: var(--ink); outline: none; transition: .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px; background: #fbfcfe; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 14px;
}
.switch-row .t { font-size: 14px; }
.switch-row .d { font-size: 12px; color: var(--ink-3); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #d0d5dd; border-radius: 999px; transition: .18s; cursor: pointer; }
.switch i::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--brand-d); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--brand-d); border: 1px solid #c7d7fe; }
.btn.ghost:hover { background: var(--brand-soft); border-color: #a9c2fd; color: var(--brand-d); }
.btn.ok { background: var(--brand); }
.btn.ok:hover { background: var(--brand-d); }
.btn.gray { background: var(--brand-soft); color: var(--brand-d); }
.btn.gray:hover { background: #dbe6ff; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #d92d20; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn.link { background: none; color: var(--brand); padding: 4px 6px; font-weight: 500; }
.btn.link:hover { background: var(--brand-soft); }

.task { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; background: #fff; position: relative; overflow: hidden; }
.task:last-child { margin-bottom: 0; }
.task::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-3); }
.task[data-s="pending"]::before { background: var(--warn); }
.task[data-s="doing"]::before { background: var(--brand); }
.task[data-s="done"]::before { background: var(--ok); }
.task[data-s="cancelled"]::before { background: #d0d5dd; }
.task .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.task .svc { font-weight: 600; font-size: 14.5px; }
.task .body { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.task .meta { font-size: 12px; color: var(--ink-3); margin-top: 7px; display: flex; gap: 10px; flex-wrap: wrap; }
.task .acts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }

.badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; font-weight: 600; flex: none; white-space: nowrap; }
.s-pending { background: var(--warn-soft); color: #b54708; }
.s-doing { background: var(--brand-soft); color: var(--brand-d); }
.s-done { background: var(--ok-soft); color: #027a48; }
.s-cancelled { background: #f2f4f7; color: #667085; }
.urgent { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: var(--danger-soft); color: #b42318; font-weight: 600; }

.empty { text-align: center; padding: 34px 10px; color: var(--ink-3); font-size: 13.5px; }
.empty .ico { font-size: 28px; display: block; margin-bottom: 8px; opacity: .5; }

.livebar { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); margin: 16px 2px 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 183, 106, .15); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #101828; color: #fff; font-size: 13.5px;
  padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 999; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   后台布局
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 216px; flex: none;
  background: #ffffff;
  color: #475467;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid #eaecf0;
}
.side .brand {
  padding: 18px 18px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #f2f4f7;
}
.side .brand .logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.side .brand b { color: #101828; font-size: 13.5px; font-weight: 650; display: block; line-height: 1.3; }
.side .brand small { color: #98a2b3; font-size: 11px; }

.side nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 2px;
  color: #475467; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: .12s; position: relative;
}
.side nav a:hover { background: #f2f4f7; color: #101828; }
.side nav a.on {
  background: var(--brand-soft); color: var(--brand-d); font-weight: 650;
}
.side nav a.on::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.side nav a .ic { width: 17px; height: 17px; flex: none; display: flex; align-items: center; justify-content: center; opacity: .9; }
.side nav a .ic svg { width: 16px; height: 16px; display: block; }
.side nav a.on .ic { opacity: 1; }
.side nav a .num {
  margin-left: auto; font-size: 11px; background: var(--warn); color: #fff;
  padding: 1px 6px; border-radius: 999px; font-weight: 700;
}

.side .foot { padding: 12px 14px; border-top: 1px solid #f2f4f7; font-size: 12px; }
.side .foot .who { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.side .foot .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand-d);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.side .foot .who b { color: #101828; font-size: 13px; display: block; line-height: 1.3; }
.side .foot .who small { color: #98a2b3; font-size: 11px; }
.side .foot button {
  width: 100%; background: #f8fafc; border: 1px solid #eaecf0; color: #475467;
  padding: 7px; border-radius: 7px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.side .foot button:hover { background: #f2f4f7; color: #101828; border-color: #d0d5dd; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 未接提醒条 */
.alert-bar {
  background: #fff5f4;
  color: #b42318;
  border-bottom: 1px solid #fee4e2;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
}
.alert-bar.show { display: flex; }
.alert-bar .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #f04438;
  animation: pulse 1.1s infinite; flex: none;
}
.alert-bar .txt {
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.alert-bar .cnt {
  background: #fee4e2; color: #b42318; padding: 1px 9px;
  border-radius: 999px; font-size: 12px; flex: none;
}
.alert-bar button {
  background: #fff; border: 1px solid #fda29b; color: #b42318;
  padding: 6px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.alert-bar button:hover { background: #fff0ee; border-color: #f97066; }

.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink-2); padding: 0; }
.topbar h2 { font-size: 16px; margin: 0; font-weight: 650; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }

.content { padding: 20px 22px 48px; flex: 1; }
.content.narrow { max-width: 860px; }

/* 统计卡 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  background: #fff; border-radius: 12px; padding: 15px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.stat .lb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.stat b { font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.stat .sb { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.stat b small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.stat.w b { color: var(--warn); }
.stat.b b { color: var(--brand); }
.stat.g b { color: var(--ok); }

/* 通用面板 */
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line-2); margin-bottom: 16px; }
.panel .hd {
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.panel .hd h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.panel .hd .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel .bd { padding: 16px 18px; }
.panel .bd.flush { padding: 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* 表格 */
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tb th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
  background: #fcfdff;
}
table.tb td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tb tr:last-child td { border-bottom: 0; }
table.tb tr:hover td { background: #fbfcfe; }
table.tb td .sub { font-size: 12px; color: var(--ink-3); }
table.tb .num { font-variant-numeric: tabular-nums; }

.tbl-wrap { overflow-x: auto; }

/* 列表行 */
.row-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
}
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .ttl { font-size: 13.5px; font-weight: 550; }
.row-item .sub { font-size: 12px; color: var(--ink-3); }

/* 筛选条 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; min-width: 120px; padding: 7px 11px; font-size: 13px; }
.tabs { display: flex; gap: 4px; background: #f2f4f7; padding: 3px; border-radius: 9px; }
.tabs button {
  border: 0; background: none; padding: 6px 13px; border-radius: 7px;
  font-size: 12.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 200; backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 460px;
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .2);
}
.modal .mh { padding: 18px 20px 0; display: flex; align-items: start; gap: 10px; }
.modal .mh h3 { margin: 0; font-size: 16px; font-weight: 650; flex: 1; }
.modal .mh .x { background: none; border: 0; font-size: 20px; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 0 2px; }
.modal .mb { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal .mf { padding: 0 20px 18px; display: flex; gap: 9px; }
.modal .mf .btn { flex: 1; }

/* 登录 */
.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #eff2f7;
}
.auth .box { width: 100%; max-width: 380px; }
.auth .logo-row { text-align: center; margin-bottom: 22px; }
.auth .logo-row .lg {
  width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.auth .logo-row h1 { color: #101828; font-size: 20px; margin: 0 0 5px; font-weight: 650; }
.auth .logo-row p { color: #667085; font-size: 13px; margin: 0; }
.auth .pane {
  background: #fff; border-radius: 16px; padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  border: 1px solid #eaecf0;
}
.auth .err { color: var(--danger); font-size: 13px; margin-top: 10px; }
.auth .foot-tip { text-align: center; color: #98a2b3; font-size: 12px; margin-top: 18px; }

/* 图表 */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
.chart .bar { width: 100%; max-width: 34px; background: var(--brand); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; transition: .3s; }
.chart .bar span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); }
.chart .lb { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.bars { display: flex; flex-direction: column; gap: 11px; }
.bars .b { display: flex; align-items: center; gap: 10px; font-size: 13px; transition: .12s; }
.bars .b:hover { background: #f8fafc; border-radius: 8px; }
.bars .b .nm { width: 84px; flex: none; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .b .track { flex: 1; height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bars .b .fill { height: 100%; background: var(--brand); border-radius: 999px; }
.bars .b .vl { width: 82px; text-align: right; flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* 二维码 */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.qr-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px; text-align: center; background: #fff; transition: .15s; }
.qr-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(37, 99, 235, .1); }
.qr-item img { width: 100%; max-width: 130px; aspect-ratio: 1; display: block; margin: 0 auto 9px; border-radius: 6px; }
.qr-item .nm { font-weight: 600; font-size: 13.5px; }
.qr-item .cd { font-size: 11.5px; color: var(--ink-3); font-family: ui-monospace, monospace; }
.qr-item .lk { font-size: 10.5px; color: var(--brand); word-break: break-all; margin-top: 6px; display: block; text-decoration: none; line-height: 1.4; }
.qr-item .ops { display: flex; gap: 6px; margin-top: 9px; }
.qr-item .ops .btn { flex: 1; font-size: 11.5px; padding: 5px 4px; border-radius: 7px; }

/* 小工具 */
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.row.auto > * { flex: none; }
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.mt12 { margin-top: 12px; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: 11.5px; }
.hr { height: 1px; background: var(--line-2); margin: 14px 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 响应式 */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%); transition: .22s; height: 100dvh;
    box-shadow: 8px 0 30px rgba(0, 0, 0, .25);
  }
  .side.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 99; }
  .topbar .burger { display: block; }
  .topbar { padding: 0 14px; }
  .content { padding: 14px 14px 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat b { font-size: 21px; }
  .panel .bd { padding: 14px; }
  .panel .hd { padding: 12px 14px; }
  .row-item { padding: 11px 14px; }
  table.tb th, table.tb td { padding: 9px 11px; }
}


/* 问题回复台账 */
.qa {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; margin-bottom: 12px; background: #fff;
  cursor: pointer; transition: .15s;
}
.qa:hover { border-color: #c7d7fe; box-shadow: 0 4px 14px rgba(37, 99, 235, .08); }
.qa:last-child { margin-bottom: 0; }
.qa .qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.qa .qname { font-weight: 650; font-size: 14px; }
.qa .qbody {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.qa .answer {
  margin-top: 12px; padding: 12px 14px;
  background: #f6fef9; border: 1px solid #d1fadf; border-radius: 10px;
}
.qa .answer .lb {
  font-size: 11.5px; color: #05603a; font-weight: 700;
  margin-bottom: 6px; display: flex; align-items: center; gap: 5px;
}
.qa .answer .tx { font-size: 13.5px; color: #054f31; white-space: pre-wrap; line-height: 1.7; word-break: break-word; }
.qa .noanswer {
  margin-top: 12px; padding: 11px 14px;
  background: #fffaeb; border: 1px dashed #fedf89; border-radius: 10px;
  font-size: 12.5px; color: #93370d;
}

/* 客户端看到我们的回复 */
.answer-box {
  margin-top: 10px; padding: 11px 13px;
  background: #f6fef9; border: 1px solid #d1fadf; border-radius: 10px;
}
.answer-box .ab { font-size: 11.5px; color: #05603a; font-weight: 700; margin-bottom: 5px; }
.answer-box .at { font-size: 13.5px; color: #054f31; white-space: pre-wrap; line-height: 1.7; word-break: break-word; }


/* 回复模板 */
.tpl-box {
  border: 1px solid #e6eaf0; border-radius: 10px; margin-bottom: 9px;
  max-height: 210px; overflow-y: auto; background: #fbfcfe;
}
.tpl-item { padding: 10px 12px; border-bottom: 1px solid #eef1f6; cursor: pointer; }
.tpl-item:last-child { border-bottom: 0; }
.tpl-item:hover { background: var(--brand-soft); }
.tpl-item .tt { font-size: 13px; font-weight: 600; color: #101828; }
.tpl-item .tc { font-size: 12px; color: #98a2b3; margin-top: 3px; line-height: 1.5; }

.tpl-row {
  display: flex; align-items: start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.tpl-row:last-child { border-bottom: 0; }
.tpl-row .grow { flex: 1; min-width: 0; }
.tpl-row .tt { font-size: 13.5px; font-weight: 600; }
.tpl-row .tc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }


/* 回复里的图片 */
.rp-add {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border: 1px dashed #d0d5dd; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; background: #fbfcfe;
  transition: .15s;
}
.rp-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.rp-item {
  width: 54px; height: 54px; border-radius: 8px; overflow: hidden;
  position: relative; display: block; background: #eef1f6; line-height: 0;
}
.rp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-item .del {
  position: absolute; top: 2px; right: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; line-height: 17px; text-align: center;
  border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
