/* ==========================================================================
   app.css — 便民服务后台管理 · 全局样式
   纯手写 CSS（无框架），主题色通过 CSS 变量定义，断点 768px：
     桌面 = 左侧固定菜单；移动 = 顶部标题栏 + 底部 tab 栏。
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
  --brand: #e8734a;          /* 主色：暖橙，适合生活服务类 */
  --brand-dark: #cf5c35;
  --brand-soft: #fdeee7;
  --brand-ring: rgba(232, 115, 74, 0.28);

  --green: #2f9e6b;
  --green-soft: #e6f5ed;
  --blue: #3b7dd8;
  --blue-soft: #e8f0fc;
  --amber: #d99022;
  --amber-soft: #fdf3e0;
  --red: #d9534f;
  --red-soft: #fdecec;
  --gray: #7b8794;
  --gray-soft: #f0f2f5;

  --text: #23282f;
  --text-2: #5b6472;
  --text-3: #8b95a3;
  --line: #e6e8ec;
  --bg: #f5f6f8;
  --card: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.18);

  --sidebar-w: 208px;
  --topbar-h: 56px;
  --tabbar-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 启动占位 ---------- */
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
}
.boot-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   登录页
   ========================================================================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1000px 400px at 50% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 18px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #f0a24b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}
.login-card .sub {
  margin: 6px 0 22px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ==========================================================================
   布局：管理框架
   ========================================================================== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* 左侧菜单（仅桌面） */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 16px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #f0a24b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: none;
}
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: var(--gray-soft); color: var(--text); }
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; }
.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}
.sidebar-foot button {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.sidebar-foot button:hover { background: var(--gray-soft); color: var(--red); }

/* 主内容 */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: none;
  height: var(--topbar-h);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h2 { margin: 0; font-size: 16px; }
.topbar .avatar-btn {
  margin-left: auto;
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}
.content {
  flex: 1;
  padding: 20px 24px 40px;
  width: 100%;
  /* 不限制最大宽度，宽屏下表格可以铺满整个右侧区域 */
}

/* 底部 tab 栏（仅移动） */
.tabbar { display: none; }

/* ==========================================================================
   通用组件
   ========================================================================== */
.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-head h2 { margin: 0; font-size: 19px; }
.page-head .spacer { flex: 1; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card + .card { margin-top: 16px; }
.card-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .spacer { flex: 1; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--gray-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--red); border-color: #f2c9c8; background: var(--red-soft); }
.btn-danger:hover { background: #fbdcdc; }
.btn-ok { color: var(--green); border-color: #bfe3d1; background: var(--green-soft); }
.btn-ok:hover { background: #d7efe2; }
/* 次要/中性操作（如「取消」）：与红色的危险操作「拒绝」区分开 */
.btn-muted { color: var(--text-2); border-color: var(--line); background: var(--gray-soft); }
.btn-muted:hover { background: #e5e8ec; color: var(--text); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--gray-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 16px; }

/* 表单 */
.field { margin-bottom: 14px; }
.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.field .hint { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.input, .textarea, select.input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.input[type="date"] { min-height: 38px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--brand); }

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat .label { color: var(--text-3); font-size: 13px; }
.stat .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.stat .value small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.stat .bar {
  margin-top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-soft);
  overflow: hidden;
}
.stat .bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.stat.s-green .value { color: var(--green); }
.stat.s-blue .value { color: var(--blue); }
.stat.s-amber .value { color: var(--brand-dark); }

/* 表格（桌面） */
.table-wrap { overflow-x: auto; }
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  background: #fafbfc;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: #fcfcfd; }
.td-strong { font-weight: 600; }
.td-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.money { font-weight: 600; }
.money .cur { font-size: 12px; margin-right: 1px; }
.paid-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--green-soft);
  color: var(--green);
  vertical-align: middle;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-confirmed { background: var(--blue-soft); color: var(--blue); }
.badge-ongoing { background: var(--brand-soft); color: var(--brand-dark); }
.badge-done { background: var(--green-soft); color: var(--green); }
.badge-rejected, .badge-canceled { background: var(--gray-soft); color: var(--gray); }

/* 状态筛选 tab */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}
.tab .cnt { opacity: 0.7; font-size: 12px; margin-left: 3px; }

/* 工具条 */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.search .input { padding-left: 32px; }
.search::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.55;
  pointer-events: none;
}

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pager .info { color: var(--text-3); font-size: 13px; margin-right: auto; }

/* 状态：加载 / 空 / 错误 */
.state {
  padding: 44px 20px;
  text-align: center;
  color: var(--text-3);
}
.state .icon { font-size: 30px; margin-bottom: 10px; }
.state .title { color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.state .retry { margin-top: 14px; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-3); }
.loading-row .sp {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.skeleton {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f2f4 25%, #e8eaee 37%, #f1f2f4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 移动端卡片流（桌面隐藏） */
.card-list { display: none; }
.appt-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}
.appt-card .ac-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.appt-card .ac-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.appt-card .ac-phone { font-size: 14px; color: var(--text-2); margin-top: 3px; letter-spacing: 0.3px; }
.appt-card .ac-quick { margin-left: auto; display: flex; gap: 8px; flex: none; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-btn.primary { background: var(--brand-soft); border-color: #f6d6c7; color: var(--brand-dark); }
.icon-btn:active { transform: scale(0.96); }
.appt-card .ac-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13.5px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.appt-card .ac-meta dt { color: var(--text-3); }
.appt-card .ac-meta dd { margin: 0; }
.appt-card .ac-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.appt-card .ac-foot .money { margin-right: auto; font-size: 17px; }

/* 服务列表项 */
.svc-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.svc-item:last-child { border-bottom: none; }
.svc-cover {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-soft);
  border: 1px solid var(--line);
}
.svc-cover-ph {
  width: 84px; height: 84px; flex: none;
  border-radius: var(--radius-sm);
  background: var(--gray-soft);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.svc-main { flex: 1; min-width: 0; }
.svc-title { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-price { color: var(--brand-dark); font-weight: 700; margin-top: 4px; font-size: 15px; }
.svc-desc {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
}
.svc-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag-off { background: var(--gray-soft); color: var(--gray); }

/* 详情展示 */
.detail-list { margin: 0; }
.detail-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-row dt { flex: 0 0 88px; color: var(--text-3); font-size: 13px; }
.detail-row dd { margin: 0; flex: 1; min-width: 0; word-break: break-word; }
.detail-row dd.empty { color: var(--text-3); }

/* 图片上传 */
.uploader { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uploader .preview {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--gray-soft);
}
.uploader .preview-ph {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  background: var(--gray-soft);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* 头像（大） */
.avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
  background: var(--gray-soft);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-root {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 420px;
}
.toast {
  background: rgba(35, 40, 47, 0.94);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease;
  max-width: 100%;
  word-break: break-word;
}
.toast.ok { background: rgba(47, 158, 107, 0.95); }
.toast.err { background: rgba(217, 83, 79, 0.95); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   弹窗
   ========================================================================== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--gray-soft); color: var(--text); }
.modal-body { padding: 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.modal-foot .left { margin-right: auto; }
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 760px; }
.modal .wangeditor-holder { border-radius: var(--radius-sm); overflow: hidden; }
.modal .wxe-text-container { background: var(--card); color: var(--text); }

/* ==========================================================================
   响应式：移动端
   ========================================================================== */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .sidebar { display: none; }
  .topbar { display: flex; }
  .content {
    padding: 14px 12px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
  }

  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    flex: 1;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-3);
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
    padding: 6px 0;
  }
  .tabbar button .ico { font-size: 19px; line-height: 1; }
  .tabbar button.active { color: var(--brand); font-weight: 600; }

  /* 桌面表格隐藏，卡片流显示 */
  .desktop-only { display: none !important; }
  .card-list { display: block; }

  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 24px; }

  .card { padding: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 17px; }

  .search { max-width: none; }
  .toolbar .btn { flex: 1; }

  /* 弹窗 → 底部抽屉 */
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    animation: sheet-in 0.22s ease;
  }
  @keyframes sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
  }
  .modal-body { padding: 16px 14px; }
  .modal-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; height: 44px; }

  /* 触控目标不小于 44px */
  .btn { height: 40px; }
  .btn-sm { height: 36px; min-width: 44px; }
  .nav-item, .tab { min-height: 40px; }
  .input, .textarea, select.input { min-height: 44px; font-size: 16px; }
  .input[type="date"] { min-height: 44px; }

  .detail-row { flex-direction: column; gap: 2px; }
  .detail-row dt { flex: none; }
  .detail-row dd { width: 100%; }

  .svc-cover, .svc-cover-ph { width: 64px; height: 64px; }
  .pager .info { width: 100%; margin-right: 0; text-align: center; }
}

@media (max-width: 360px) {
  .stat-grid { grid-template-columns: 1fr; }
  .appt-card .ac-name { font-size: 17px; }
}

/* 打印：导出/查看详情时不需要外壳 */
@media print {
  .sidebar, .tabbar, .topbar, .toolbar, .pager { display: none !important; }
}
