﻿/* 首e陪诊 · 管理后台样式（设计规范见开发文档 1.1 / 1.5） */
:root {
  --c-primary: #FF7A45;
  --c-primary-dark: #E2601F;
  --c-primary-light: #FFF1E4;
  --c-price: #ff6b35;
  --c-warn: #ffb020;
  --c-danger: #ff4d4f;
  --c-info: #3b82f6;
  --c-text-1: #33291F;
  --c-sidebar: #2F2117;
  --c-text-2: #7A6A5C;
  --c-text-3: #A99788;
  --c-line: #F0E2D2;
  --c-bg: #FBF7F1;
  --c-card: #fff;
  --sidebar: 216px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
#root { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; color: var(--c-text-1); background: var(--c-bg);
}
a { color: var(--c-info); text-decoration: none; }
button { font-family: inherit; }

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #FFB272 0%, #FF7A45 45%, #E2601F 100%);
}
.login-card {
  width: 400px; background: #fff; border-radius: 14px; padding: 36px 36px 30px;
  box-shadow: 0 24px 60px rgba(6, 78, 59, 0.28);
}
.login-card h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: 1px; }
.login-card .sub { color: var(--c-text-3); font-size: 12px; margin-bottom: 26px; }
.login-logo {
  width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-light);
  color: var(--c-primary-dark); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px; overflow: hidden;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.agent-login-card { padding: 34px 34px 28px; }
.agent-login-logo {
  width: 168px; height: 96px; border-radius: 12px; margin: 0 auto 14px;
  background: #fff;
}
.agent-login-logo img { border-radius: 10px; mix-blend-mode: multiply; }
.agent-login-card h1 { text-align: center; font-size: 26px; margin: 0 0 8px; }
.reset-title {
  font-size: 17px; font-weight: 600; color: var(--c-text-1);
  margin: 8px 0 14px; text-align: center;
}
.login-card input {
  width: 100%; height: 44px; border: 1px solid var(--c-line); background: #fafbfc;
  border-radius: 8px; padding: 0 14px; font-size: 14px; margin-bottom: 14px; outline: none;
}
.login-field { position: relative; }
.login-field input { padding-left: 42px; margin-bottom: 0; }
.login-field + .login-field { margin-top: 14px; }
.login-field .login-ico {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px;
  transform: translateY(-50%); color: #9AA3AD; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.login-card .login-field + .btn { margin-top: 20px; }
.login-card input:focus { border-color: var(--c-primary); background: #fff; }
.login-card .btn { width: 100%; height: 44px; margin-top: 6px; }
.login-hint { font-size: 12px; color: var(--c-text-3); margin-top: 18px; line-height: 1.7; }
.login-hint b { color: var(--c-text-2); font-weight: 500; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100%; }
.sidebar {
  width: var(--sidebar); background:
    radial-gradient(circle at 100% 0, rgba(255, 122, 69, 0.12), transparent 42%),
    linear-gradient(180deg, #372619 0%, var(--c-sidebar) 100%);
  flex: 0 0 var(--sidebar);
  display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.side-head { flex: 0 0 auto; }
.brand {
  min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: #fff; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex: 0 0 auto;
}
.brand i {
  width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #FF9A62, #FF6B35);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-style: normal; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.brand img { width: auto; height: 38px; max-width: 150px; border-radius: 8px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 10px; color: rgba(255, 255, 255, 0.42); letter-spacing: 1px; margin-top: 2px; }
.menu-search { position: relative; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.menu-search .ms-ic {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: #8a7a6b; width: 15px; height: 15px; pointer-events: none; display: flex;
}
.menu-search .ms-ic .svg-ic { width: 15px; height: 15px; }
.menu-search input {
  width: 100%; height: 36px; box-sizing: border-box; padding: 0 10px 0 32px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055); color: #fff; font-size: 12px; outline: none;
}
.menu-search input::placeholder { color: #8a7a6b; }
.menu-search input:focus { border-color: rgba(255, 122, 69, 0.7); background: rgba(255, 255, 255, 0.09); }
.menu-sort-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 2px 0; color: #8a7a6b; font-size: 10px; letter-spacing: .2px;
}
.menu-sort-tip button {
  border: 0; background: none; color: #c9a58a; font-size: 10px; cursor: pointer; padding: 2px 4px;
}
.menu-sort-tip button:hover { color: #ffb083; }
.menu-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 14px; }
.menu-list::-webkit-scrollbar { width: 5px; }
.menu-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 4px; }
.menu-empty { display: none; padding: 22px 16px; color: #8a7a6b; font-size: 12px; text-align: center; }
.menu-group { padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.menu-group:first-child { border-top: none; }
.menu-group[data-open="0"] .g-body { display: none; }
.menu-group.pinned { border-top: none; padding-bottom: 4px; }
.menu-group.pinned > .g-title { color: #f0ddc8; }
.menu-group > .g-title {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px;
  color: #9c8977; font-size: 11px; letter-spacing: 1px; cursor: pointer; user-select: none;
  border-radius: 8px;
}
.menu-group > .g-title:hover { color: #d7c3ad; background: rgba(255, 255, 255, 0.035); }
.menu-group > .g-title .g-count {
  min-width: 18px; height: 17px; line-height: 17px; padding: 0 5px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.07); color: #a18d7c; font-size: 10px; text-align: center; letter-spacing: 0;
}
.menu-group > .g-title .g-arrow { margin-left: auto; font-size: 10px; opacity: 0.5; transition: transform 0.18s; }
.menu-group[data-open="0"] > .g-title .g-arrow { transform: rotate(-90deg); }
.menu-item {
  position: relative;
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 9px; margin: 1px 0;
  color: #c9b7a6; font-size: 13px; cursor: pointer; border-radius: 9px;
  white-space: nowrap; transition: background 0.15s, color 0.15s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
}
.menu-item .mt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-item .drag-grip {
  flex: none; width: 12px; color: #8a7a6b; font-size: 11px; letter-spacing: -2px;
  opacity: 0; transition: opacity .15s;
}
.menu-item:hover .drag-grip { opacity: .55; }
.menu-item.dragging {
  background: rgba(255, 122, 69, 0.22); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  z-index: 5; cursor: grabbing; transition: none;
}
.menu-item.drag-source { opacity: .46; border: 1px dashed rgba(255, 176, 131, .55); }
.menu-sorting .menu-item { cursor: grabbing; }
.menu-sorting .g-body { user-select: none; }
.menu-item:hover { background: rgba(255, 255, 255, 0.055); color: #fff; }
.menu-item.active {
  background: linear-gradient(90deg, rgba(255, 122, 69, 0.2), rgba(255, 122, 69, 0.08));
  color: #fff; box-shadow: inset 3px 0 0 var(--c-primary);
}
.menu-item .ic {
  width: 25px; height: 25px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.055); color: #b9a391; flex: none;
}
.menu-item .ic .svg-ic { width: 14px; height: 14px; }
.menu-item.active .ic { background: rgba(255, 122, 69, 0.22); color: #ffb083; }
.menu-item.active .ic .svg-ic { stroke-width: 1.9; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex: 0 0 auto;
}
.crumb { font-size: 14px; color: var(--c-text-1); display: flex; align-items: center; gap: 9px; }
.crumb .crumb-ic {
  width: 30px; height: 30px; border-radius: 9px; background: var(--c-primary-light); color: var(--c-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.crumb .crumb-ic .svg-ic { width: 16px; height: 16px; }
.crumb b { color: var(--c-text-1); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--c-text-2); }
.role-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-primary-light); color: var(--c-primary-dark); border-radius: 20px;
  padding: 4px 10px; font-size: 12px;
}
.role-pill .svg-ic { width: 13px; height: 13px; }
.who { display: inline-flex; align-items: center; gap: 7px; }
.who i {
  width: 26px; height: 26px; border-radius: 50%; background: #F4E6D8; color: #9A5B33;
  font-style: normal; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.content { flex: 1; overflow-y: auto; padding: 20px 24px 44px; }
.content > * { max-width: 100%; }

/* ---------- 卡片 / 区块 ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 0 2px 16px;
}
.page-kicker { font-size: 11px; letter-spacing: 2px; color: var(--c-primary-dark); font-weight: 600; text-transform: uppercase; }
.page-head h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.3px; }
.page-head p { margin: 6px 0 0; font-size: 12px; color: var(--c-text-3); }
.page-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 2px; }
.page-actions .btn .ic { width: 15px; height: 15px; display: flex; }
.page-actions .btn .ic .svg-ic { width: 15px; height: 15px; }

.card {
  background: #fff; border-radius: 13px; padding: 20px;
  border: 1px solid #F4E7D8;
  box-shadow: 0 6px 22px rgba(90, 56, 29, 0.055);
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: 0.2px; }
.card-head .tools { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--c-text-3); font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1200px) { .grid-dash { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-dash { grid-template-columns: 1fr; } .stat .num { font-size: 24px; } .page-head { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } .fld { min-width: 0; } }

/* 统计卡 */
.stat {
  background: #fff; border-radius: 13px; padding: 17px 18px 15px;
  border: 1px solid #F4E7D8; box-shadow: 0 6px 22px rgba(90, 56, 29, 0.055);
  position: relative; overflow: hidden; min-height: 116px;
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #FFA46E, #FF6B35); opacity: 0.75;
}
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat .label { font-size: 12px; color: var(--c-text-2); }
.stat .stat-ic {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #FFF3E8; color: var(--c-primary-dark); flex: none;
}
.stat .stat-ic .svg-ic { width: 17px; height: 17px; }
.stat .num { font-size: 28px; font-weight: 700; margin: 8px 0 5px; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.stat .num small { font-size: 14px; font-weight: 500; margin-left: 3px; color: var(--c-text-2); }
.stat .growth { font-size: 12px; color: var(--c-text-3); position: relative; z-index: 1; }
.stat .growth em { font-style: normal; font-weight: 600; }
.stat .up { color: #E2601F; }
.stat .down { color: var(--c-danger); }
.stat::after {
  content: ""; position: absolute; right: -20px; bottom: -24px; width: 88px; height: 88px;
  border-radius: 50%; background: radial-gradient(circle, #FFF0E2 0%, rgba(255, 240, 226, 0) 68%);
  opacity: 0.9;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #EADCCB;
  background: #fff; color: var(--c-text-1); font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: 0.15s;
}
.btn:hover { border-color: #DCC5AE; background: #FFFAF5; }
.btn.primary {
  background: linear-gradient(135deg, #FF8B54, #FF6B35); border-color: #FF7A45; color: #fff;
  box-shadow: 0 6px 14px rgba(255, 107, 53, 0.22);
}
.btn.primary:hover { background: linear-gradient(135deg, #F77C43, #E2601F); border-color: #E2601F; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--c-primary-dark); padding: 0 6px; }
.btn.ghost:hover { background: var(--c-primary-light); }
.btn.danger { color: var(--c-danger); border-color: #ffd7d8; background: #fff6f6; }
.btn.warn { color: #b45309; border-color: #ffe1ae; background: #fffaec; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.svg-ic { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- 表单控件 ---------- */
input, select, textarea {
  font-family: inherit; font-size: 13px; color: var(--c-text-1); outline: none;
}
.fld { display: block; }
.fld > label { display: block; font-size: 12px; color: var(--c-text-2); margin-bottom: 6px; }
.fld > label b { color: var(--c-danger); font-weight: 400; margin-right: 2px; }
.fld input[type="text"], .fld input[type="number"], .fld input[type="date"], .fld input[type="password"],
.fld select, .fld textarea {
  width: 100%; height: 38px; border: 1px solid #EADCCB; border-radius: 8px; padding: 0 11px;
  background: #FFFDFA; transition: 0.15s;
}
.fld textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.13); }
.fld .hint { font-size: 11px; color: var(--c-text-3); margin-top: 5px; line-height: 1.5; }
/* 图片上传预览：统一压成小缩略图，避免弹窗被大图撑高 */
.img-picker .img-pv {
  width: 100%; max-width: 260px; height: 120px;
  border: 1px dashed #EADCCB; border-radius: 8px;
  background: #FFFDFA; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-picker .img-pv img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.img-picker .img-pv .muted { font-size: 12px; }
/* 多图上传：小方图平铺，不再按原图大小铺满整行 */
.img-multi .img-mlist { display: flex; flex-wrap: wrap; gap: 8px; }
.img-multi .img-mitem {
  position: relative; width: 90px; height: 90px; flex: 0 0 90px;
  border: 1px solid #EADCCB; border-radius: 8px; overflow: hidden; background: #FFFDFA;
}
.img-multi .img-mitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-multi .img-mdel {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0;
  border: none; border-radius: 50%; background: rgba(30, 20, 12, 0.66); color: #fff;
  font-size: 14px; line-height: 20px; text-align: center; cursor: pointer;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.switch .track {
  width: 40px; height: 20px; border-radius: 20px; background: #E4D9CC; position: relative; transition: 0.2s;
}
.switch .track::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: 0.2s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}
.switch.on .track { background: var(--c-primary); }
.switch.on .track::after { left: 22px; }

/* ---------- 筛选条 ---------- */
.filter {
  display: flex; flex-direction: row; align-items: flex-end; justify-content: flex-end; gap: 12px;
  padding: 0 0 10px; background: transparent; border-radius: 0; margin-bottom: 10px;
  border: none; box-shadow: none;
}
.filter-grid {
  width: auto;
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 14px;
}
.filter .f { display: flex; flex-direction: column; gap: 5px; min-width: 0; width: 200px; max-width: 200px; flex: 0 0 200px; }
.filter .f > span { font-size: 12px; color: var(--c-text-3); }
.filter input, .filter select {
  width: 100%; height: 34px; border: 1px solid #EADCCB; border-radius: 8px; padding: 0 10px; min-width: 0; background: #FFFDFA;
}
.filter input:focus, .filter select:focus { border-color: var(--c-primary); background: #fff; }
.filter-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; flex: 0 0 auto; }
.filter-actions .btn, .filter-actions .switch { flex: none; }
.page-size { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: 12px; color: var(--c-text-2); }
.page-size select {
  width: auto; height: 32px; padding: 0 26px 0 9px; border: 1px solid #EADCCB; border-radius: 8px;
  background: #FFFDFA; color: var(--c-text-1); font-size: 12px;
}
.page-size select:focus { border-color: var(--c-primary); background: #fff; }
.filter .spacer { flex: 1; }

/* ---------- 分类快捷条 ---------- */
.subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.chip-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.chip-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding-bottom: 2px; }
.chip-tabs::-webkit-scrollbar { height: 4px; }
.chip-tabs::-webkit-scrollbar-thumb { background: #E4D2BE; border-radius: 4px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px;
  background: #fff; border: 1px solid #EADCCB; color: var(--c-text-2); font-size: 12px;
  white-space: nowrap; cursor: pointer; transition: 0.15s;
}
.chip:hover { border-color: #F0B58C; color: var(--c-primary-dark); }
.chip.on { background: var(--c-primary-light); border-color: #FFC8A3; color: var(--c-primary-dark); font-weight: 600; }

/* ---------- 表格 ---------- */
.tbl-wrap { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #F4E7D8; }
table.tbl { width: 100%; border-collapse: collapse; table-layout: auto; }
.tbl thead th {
  background: #FFF9F2; color: var(--c-text-2); font-size: 12px; font-weight: 500;
  text-align: left; padding: 0 12px; height: 44px; border-bottom: 1px solid var(--c-line); white-space: nowrap;
}
.tbl tbody td {
  height: 50px; padding: 8px 12px; border-bottom: 1px solid #F8EFE4; font-size: 13px; vertical-align: middle;
}
.tbl tbody td:first-child b { text-wrap: balance; }
.tbl tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
.tbl tbody tr:hover { background: #FFE2C7; box-shadow: inset 0 0 0 1px #F3BE90; }
.tbl tbody tr:hover td { border-color: #EFC9A8; }
.tbl tbody tr:hover td:first-child { box-shadow: inset 5px 0 0 #E85D18; }
.tbl tbody tr:hover td:first-child b { color: #A84310; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.tbl .ell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 46px 0; text-align: center; color: var(--c-text-3); font-size: 13px; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: 0.5; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--c-line); background: #fff; font-size: 13px; color: var(--c-text-2); }
.pager .pages { display: flex; gap: 6px; }
.pager .pg { min-width: 30px; height: 28px; border: 1px solid var(--c-line); border-radius: 5px; background: #fff; cursor: pointer; font-size: 12px; }
.pager .pg.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px;
  font-size: 12px; white-space: nowrap;
}
.tag.gray { background: #f2f4f7; color: var(--c-text-2); }
.tag.green { background: var(--c-primary-light); color: var(--c-primary-dark); }
.tag.orange { background: #fff4ec; color: var(--c-price); }
.stat-row { display: flex; gap: 12px; margin-top: 4px; }
.stat-box { flex: 1; background: linear-gradient(135deg,#FFF8F1,#FFF1E4); border: 1px solid #F4E3D2; border-radius: 12px; padding: 14px 16px; }
.stat-num { font-size: 24px; line-height: 1.1; font-weight: 800; color: #C2410C; }
.stat-label { font-size: 12px; color: #9A7C66; margin-top: 4px; }
.jt-name { display: flex; align-items: center; gap: 10px; }
.jt-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#FB923C,#EA580C); color: #fff; font-size: 14px; font-weight: 800; }
.tag-line { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-line .tag { margin: 0; }
.manual-sec { padding: 18px 20px; }
.manual-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.manual-head h3 { margin: 0; font-size: 16px; }
.manual-no { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#FB923C,#EA580C); color: #fff; font-size: 12px; font-weight: 700; }
.manual-p { font-size: 13px; line-height: 1.85; color: #5F5145; }
.manual-ul { margin: 8px 0 0; padding-left: 18px; color: #7A6856; font-size: 12.5px; line-height: 1.85; }
.manual-ul li { margin: 3px 0; }
.manual-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.manual-tab { border: 1px solid var(--c-line); background: #fff; color: #7A6856; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; }
.manual-tab.on { background: linear-gradient(135deg,#FFB27A,#FF7A45); border-color: transparent; color: #fff; font-weight: 700; }
.mn-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.mn-sec { border: 1px solid #F1E2D2; border-radius: 12px; padding: 14px; background: #FFFDF9; }
.mn-sec-head { display: flex; align-items: center; gap: 10px; }
.mn-sec-head .mn-t { flex: 1; border: 1px solid #E8D8C6; background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 700; color: #3F342B; }
.mn-sec textarea { width: 100%; box-sizing: border-box; border: 1px solid #E8D8C6; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.7; background: #fff; }
.mn-sec .fld label { font-size: 12px; color: #8A7563; margin-bottom: 4px; display: block; }
.tag.warn { background: #fff7e6; color: #d48806; }
.tag.blue { background: #eff5ff; color: var(--c-info); }
.tag.red { background: #fff1f0; color: var(--c-danger); }
.tag.grey { background: #f4f5f7; color: var(--c-text-3); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- 弹窗 / 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 80; display: flex; align-items: center; justify-content: center; }
.mask.drawer-mask { justify-content: flex-end; align-items: stretch; }
.modal { background: #fff; border-radius: 10px; width: 560px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3); }
.modal.wide { width: 720px; }
.modal.narrow { width: 440px; }
.modal-head { padding: 18px 22px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--c-line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .x { border: none; background: none; font-size: 20px; color: var(--c-text-3); cursor: pointer; line-height: 1; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--c-line); display: flex; justify-content: flex-end; gap: 10px; }
.drawer { width: 640px; background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(15, 23, 42, 0.16); }
.drawer .modal-body { flex: 1; background: var(--c-bg); }
.drawer .modal-head { flex: 0 0 auto; }
.drawer .modal-foot { flex: 0 0 auto; background: #fff; }

/* 详情区块 */
.sec { background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid #F4E7D8; }
.sec h4 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.sec h4::before { content: ""; width: 3px; height: 14px; background: var(--c-primary); border-radius: 2px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 13px; }
.kv .k { color: var(--c-text-3); }
.kv .v { color: var(--c-text-1); word-break: break-all; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs .ph {
  width: 80px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, #FFF1E4, #FFE4CE);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--c-primary-dark);
  border: 1px solid #F4D9BF;
}
/* 证书缩略图（审核抽屉 / 审核弹窗共用） */
.certs { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-cell { width: 96px; flex: none; }
.certimg {
  position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden;
  border: 1px solid #E8DCD0; background: #FFF7EF;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.certimg.zoomable { cursor: zoom-in; }
.certimg.locked { cursor: default; }
.certimg.no-save { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.certimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cert-bg { position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.certimg > span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; text-align: center;
  font-size: 10px; color: #fff; background: linear-gradient(180deg, rgba(40,22,10,0), rgba(40,22,10,.7));
  z-index: 2;
}
.certimg.ph > span { position: static; background: none; color: var(--c-primary-dark); font-size: 11px; }
.certimg.ph em { font-style: normal; font-size: 9px; color: var(--c-text-muted); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-badge {
  position: absolute; top: 4px; right: 4px; z-index: 3; font-style: normal; font-size: 9px;
  color: #fff; background: rgba(194, 65, 12, .88); border-radius: 4px; padding: 1px 4px;
}
.cert-ops { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cert-op {
  border: 1px solid #F1D7C2; background: #FFF7EF; color: #C2410C; font-size: 10px;
  line-height: 1.5; padding: 2px 6px; border-radius: 5px; cursor: pointer; white-space: nowrap;
}
.cert-op:hover { background: #FFEBDC; }
.cert-op.save { background: #fff; border-color: #E7D8CA; color: #8A5A3B; }
.cert-op.locked { border-color: #E5E7EB; background: #F9FAFB; color: #9CA3AF; cursor: default; }
.modal.photo { width: 860px; }
.photo-viewer {
  position: relative; width: 100%; height: min(68vh, 640px); border-radius: 10px; overflow: auto;
  background: #211812; display: flex; align-items: center; justify-content: center; cursor: zoom-in;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.photo-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .18s ease; }
.photo-viewer-img { width: 100%; height: 100%; flex: none; background-position: center; background-size: contain; background-repeat: no-repeat; }
.photo-viewer.zoomed { cursor: zoom-out; display: block; }
.photo-viewer.zoomed img { max-width: none; max-height: none; width: 180%; height: auto; object-fit: contain; }
.photo-viewer.zoomed .photo-viewer-img { width: 180%; height: 180%; background-size: contain; }
.photo-watermark {
  position: absolute; right: 14px; bottom: 12px; pointer-events: none; color: rgba(255,255,255,.66);
  font-size: 11px; letter-spacing: .3px; background: rgba(0,0,0,.35); padding: 3px 7px; border-radius: 5px;
}
.photo-tip { position: absolute; left: 14px; top: 12px; color: rgba(255,255,255,.55); font-size: 11px; pointer-events: none; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--c-line); }
.tl-item { position: relative; padding: 0 0 16px 14px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary); }
.tl-item:last-child::before { background: var(--c-primary); }
.tl-item .t1 { font-size: 13px; font-weight: 500; }
.tl-item .t2 { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }

/* toast */
.toasts { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #fff; border-radius: 8px; padding: 10px 18px; font-size: 13px; box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
  border-left: 3px solid var(--c-primary); animation: tin 0.2s ease;
}
.toast.err { border-left-color: var(--c-danger); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* 图表 */
.chart { width: 100%; height: 220px; }
.chart-tabs { display: flex; gap: 6px; }
.chart-tabs .b {
  height: 26px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--c-line); background: #fff;
  font-size: 12px; color: var(--c-text-2); cursor: pointer;
}
.chart-tabs .b.on { background: var(--c-primary-light); border-color: #cdeedf; color: var(--c-primary-dark); }
.rank-row { display: grid; grid-template-columns: 1.3fr 60px 90px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: 13px; }
.rank-row:last-child { border-bottom: none; }
.bar { height: 6px; background: #f0f3f7; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #FFB272, #FF7A45); border-radius: 4px; }

.todo-chip { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--c-line); font-size: 13px; cursor: pointer; }
.todo-chip b { font-size: 16px; color: var(--c-price); }
.todo-chip:hover { border-color: #cdeedf; background: #fbfefc; }
.covers { width: 46px; height: 46px; border-radius: 6px; background: linear-gradient(135deg, #FFF1E4, #cdeddd); display: flex; align-items: center; justify-content: center; color: #E2601F; font-size: 12px; }
.covers.img { padding: 0; overflow: hidden; }
.covers.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary-light); color: var(--c-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.flex { display: flex; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--c-line); margin-bottom: 14px; }
.tabs .t { padding: 8px 0 10px; font-size: 13px; color: var(--c-text-2); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs .t.on { color: var(--c-primary-dark); font-weight: 600; border-bottom-color: var(--c-primary); }
.spec-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 60px; gap: 8px; margin-bottom: 8px; }
.spec-row input { height: 34px; border: 1px solid #e3e8ef; border-radius: 6px; padding: 0 8px; width: 100%; }
.perm-matrix td, .perm-matrix th { font-size: 12px; }

/* 宽表：横向滚动，避免长文案被挤成竖排 */
.tbl-scroll { overflow-x: auto; margin: 0 -4px; }
.tbl.wide { min-width: 1280px; }
.tbl.wide td { white-space: normal; word-break: normal; overflow-wrap: break-word; }

/* 运营区列表：完整铺满卡片，不横向滚动 */
.agent-tbl { width: 100%; min-width: 0; font-size: 12px; }
.agent-tbl th, .agent-tbl td { padding: 9px 7px; white-space: normal; overflow-wrap: break-word; vertical-align: middle; }
.agent-tbl th { font-size: 11.5px; white-space: nowrap; }
.agent-tbl .actions { white-space: nowrap; text-align: right; }
.agent-tbl .actions .btn { padding: 4px 8px; }

.tbl .actions .btn { flex: 0 0 auto; white-space: nowrap; }

/* 后台新订单播报 */
.alert-toggle { border: 1px solid #E8D3BB; background: #FFF9F1; color: #8A5426; font-weight: 600; white-space: nowrap; }
.alert-toggle.off { border-color: #DED5CB; background: #F5F2EE; color: #9B8A78; }
.order-alert-banner { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: min(420px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #FFF9F1 0%, #FFEFE1 100%); border: 1px solid #F2D6BE; box-shadow: 0 14px 40px rgba(92, 57, 28, 0.22); cursor: pointer; animation: oaIn .28s ease-out; }
.order-alert-banner .oa-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #FFE3CC; }
.order-alert-banner.alert-brand .oa-ic { background: #E2F1E8; }
.order-alert-banner.alert-staff .oa-ic { background: #E8EDF7; }
.order-alert-banner.alert-mall .oa-ic { background: #FFF0CC; }
.order-alert-banner.alert-mall .oa-go { color: #B8740E; }
.order-alert-banner .oa-main { flex: 1; min-width: 0; }
.order-alert-banner .oa-main b { display: block; color: #3B2A1D; font-size: 15px; }
.order-alert-banner .oa-main span { display: block; margin-top: 3px; color: #8A7764; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-alert-banner .oa-go { flex: none; color: #C36A2E; font-size: 12px; font-weight: 700; }
@keyframes oaIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* 财务：分账汇总条 */
.split-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.subbar.split-head { display: block; }
.split-sum-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid #F0E2D2; border-radius: 10px; background: linear-gradient(180deg, #FFFDFA 0%, #FFF9F2 100%); min-width: 0; }
.split-sum-item span { color: #8A7764; font-size: 12px; white-space: nowrap; }
.split-sum-item b { color: #3B2A1D; font-size: 18px; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .split-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split-sum-item { flex-direction: column; align-items: flex-start; gap: 2px; } .split-sum-item b { font-size: 16px; } }


/* 服务分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.cat-card { border: 1px solid #F0E2D2; border-radius: 12px; background: linear-gradient(180deg, #FFFDFA 0%, #FFF9F2 100%); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cat-ic { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; border: 1px solid #F1E4D4; background: #fff; flex: none; }
.cat-ic-text { display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #C98A54; background: #FFF1E4; }
.cat-title { flex: 1; min-width: 0; }
.cat-title b { display: block; font-size: 14px; color: #3B2A1D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45; }
.cat-title span { display: block; font-size: 11px; color: #9B8A78; line-height: 1.4; }
.cat-sub { font-size: 12px; color: #7B6A59; line-height: 1.5; min-height: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #9B8A78; }
.cat-foot { display: flex; justify-content: flex-end; gap: 4px; border-top: 1px dashed #F1E4D4; padding-top: 8px; margin-top: auto; }
.cat-foot .btn { padding: 3px 8px; }


@media (max-width: 960px) {
  .page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-actions { padding-top: 2px; }
}

.chart-empty { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #B8A695; font-size: 12px; background: #FFFDFA; border: 1px dashed #F0E2D2; border-radius: 10px; }

/* 窄屏配置表单：单列，避免地址输入框被挤成窄条无法选择 */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .fld { min-width: 0; }
  .fld input, .fld select, .fld textarea { min-width: 0; }
}

.chart-empty b { font-size: 14px; color: #8C7A68; font-weight: 600; }

/* 合并模块页签：沿用最初的实际 UI，只增加页签导航 */
.topbar { backdrop-filter: none; }
.hub-bar {
  position: sticky; top: -20px; z-index: 15; margin: -4px 0 16px;
  padding: 9px 10px; background: rgba(251, 247, 241, 0.96);
  border-bottom: 1px solid #F0E2D2;
}
.hub-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.hub-tabs::-webkit-scrollbar { height: 4px; }
.hub-tabs::-webkit-scrollbar-thumb { background: #E4D2BE; border-radius: 3px; }
.hub-tab {
  flex: none; height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #7A6A5C; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: 0.15s;
}
.hub-tab:hover { color: #E2601F; background: #FFFDFA; border-color: #F4D9BF; }
.hub-tab.on { color: #fff; background: #FF7A45; border-color: #FF7A45; font-weight: 500; }

.card-head { gap: 12px 16px; flex-wrap: wrap; }
.card-head h3 { white-space: nowrap; flex: none; }
.card-head .tools { flex-wrap: wrap; min-width: 0; }
.mask { z-index: 110; }

/* 窄屏：侧栏抽屉，内容保持完整宽度 */
.hamburger {
  display: none; width: 32px; height: 32px; margin-right: 10px; padding: 0;
  border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; flex: none;
}
.hamburger span { display: block; width: 18px; height: 2px; background: #7A6A5C; border-radius: 2px; }
.sidebar-mask {
  display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 95;
}
.sidebar-mask.show { display: block; }
@media (max-width: 900px) {
  .app { display: block; }
  .sidebar {
    position: fixed; left: calc(-1 * var(--sidebar) - 10px); top: 0; bottom: 0; z-index: 100;
    transition: left 0.25s ease; box-shadow: 4px 0 18px rgba(80, 45, 20, 0.18);
  }
  .sidebar.open { left: 0; }
  .main { width: 100%; }
  .hamburger { display: inline-flex; }
  .topbar { height: 54px; padding: 0 14px; gap: 8px; }
  .topbar .crumb { flex: 1; min-width: 0; }
  .content { padding: 14px 14px 40px; }
  .hub-bar { top: -14px; margin: -6px -14px 14px; padding: 8px 12px; }
  .hub-tabs { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .hub-tab { height: 30px; padding: 0 11px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head h2 { font-size: 18px; }
  .grid-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { min-height: 100px; padding: 14px; }
  .stat .num { font-size: 22px; }
  .filter { padding: 0 0 10px; }
  .card-head { flex-direction: column; align-items: flex-start; }
  .card-head .tools { width: 100%; }
  .card-head .tools input { flex: 1 1 180px; width: auto !important; min-width: 0; }
  .card-head .tools .btn { flex: none; }
  .modal, .modal.wide, .modal.narrow { width: calc(100vw - 24px); max-width: 820px; max-height: 90vh; }
}


/* 分账明细摘要 */
.split-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.split-chips span {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  background: #FFF3E8; color: #B45309; font-size: 12px; white-space: nowrap;
}
/* 手动打款大开关 */
.pay-gate {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 12px 0 14px; padding: 16px 18px; border: 2px solid #EADCCB;
  border-radius: 14px; background: #FCF8F2; cursor: pointer; user-select: none;
  transition: all .2s ease;
}
.pay-gate.on { border-color: #FF7A45; background: #FFF3E8; box-shadow: 0 6px 18px rgba(255,122,69,.14); }
.pay-gate-txt b { display: block; font-size: 16px; color: #3D2C1E; }
.pay-gate-txt span { display: block; margin-top: 3px; font-size: 12px; color: #8C7B6B; }
.pay-switch { width: 58px; height: 32px; border-radius: 18px; background: #D9CDBF; position: relative; flex: none; transition: background .2s; }
.pay-switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: left .2s; }
.pay-gate.on .pay-switch { background: #FF7A45; }
.pay-gate.on .pay-switch i { left: 30px; }
.pay-gate .pay-state { font-size: 12px; color: #8C7B6B; margin-right: 4px; }
.pay-amt { font-size: 22px !important; font-weight: 700; color: #FF6B35; letter-spacing: .5px; }

.menu-group.single { padding: 6px 0 2px; }

.menu-group.pinned > .g-title { cursor: default; }
.menu-group.pinned > .g-title .g-arrow { display: none; }

/* 附件管理 */
.att-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.att-tools input[type="search"] { width: 240px; }
.att-tools select { width: 130px; }
.att-tools .muted { margin-left: auto; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.att-card { border: 1px solid #EADCCB; border-radius: 12px; background: #FFFDF9; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.att-pv { height: 136px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: #F6F0E7; background-image: linear-gradient(45deg, #EFE6DA 25%, transparent 25%, transparent 75%, #EFE6DA 75%), linear-gradient(45deg, #EFE6DA 25%, transparent 25%, transparent 75%, #EFE6DA 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.att-pv img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.att-pdf { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #FFF3E8; color: #B45309; font-weight: 700; letter-spacing: 1px; }
.att-name { font-size: 13px; color: #3D2C1E; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-meta { font-size: 11px; color: #8C7B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.att-actions .btn { padding: 4px 8px; font-size: 12px; }
@media (max-width: 640px) {
  .att-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .att-pv { height: 112px; }
  .att-tools input[type="search"] { width: 100%; }
  .att-tools select { width: 100%; }
  .att-tools .muted { margin-left: 0; }
}

/* 附件库选择弹窗 */
.att-pick-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 54vh; overflow: auto; padding: 4px; }
.att-pick-card { cursor: pointer; position: relative; }
.att-pick-card .att-pv { height: 104px; }
.att-pick-card.att-selected { border-color: #FF7A45; box-shadow: 0 0 0 2px rgba(255,122,69,.18); background: #FFF7F0; }
.att-check { position: absolute; top: 7px; right: 7px; background: #FF7A45; color: #fff; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 10px; }

/* 附近商家 / 健康好物 */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.biz-card { border: 1px solid #F0E2D2; border-radius: 14px; background: #FFFDFA; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.biz-card:hover { box-shadow: 0 10px 24px rgba(160, 100, 50, .10); transform: translateY(-1px); }
.biz-card.off { background: #FAF7F3; }
.biz-card.off .biz-cover img { filter: grayscale(.55); opacity: .82; }
.biz-cover { position: relative; height: 132px; background: #F5EDE3; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-cover.goods { height: 160px; background: #FFF; }
.biz-cover.goods img { object-fit: contain; padding: 8px; }
.biz-badge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.94); border-radius: 6px; padding: 2px 4px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.biz-main { padding: 12px 14px 10px; flex: 1; min-width: 0; }
.biz-title { font-size: 15px; font-weight: 700; color: #3B2A1D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-sub { font-size: 12px; color: #8A7462; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: #9B8A78; }
.biz-meta .price { color: #E2601F; font-weight: 700; font-size: 15px; }
.biz-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.biz-tags span { font-size: 10px; color: #B27A4A; background: #FFF3E6; border-radius: 4px; padding: 2px 6px; }
.biz-count { font-size: 11px; color: #9B8A78; margin-top: 9px; }
.biz-foot { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; border-top: 1px dashed #F1E4D4; padding: 8px 10px; background: #FFFBF6; }
.biz-tbl td { height: 64px; }
.biz-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.biz-thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; overflow: hidden; background: #FFF6EC; border: 1px solid #F3E2D1; display: flex; align-items: center; justify-content: center; color: #C49163; font-size: 16px; font-weight: 700; }
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-name-txt { min-width: 0; }
.biz-name-txt b { display: block; max-width: 440px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.biz-name-txt .muted { margin-top: 4px; font-size: 12px; }
.biz-detail-hero { display: flex; gap: 14px; align-items: center; padding: 14px; background: #FFFBF6; border: 1px solid #F4E4D3; border-radius: 12px; }
.biz-detail-cover { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 10px; overflow: hidden; background: #F7EEE3; display: flex; align-items: center; justify-content: center; color: #B99370; font-size: 13px; }
.biz-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-detail-title { min-width: 0; }
.biz-detail-title h3 { margin: 0 0 6px; font-size: 18px; color: #33241A; }
.biz-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.biz-detail-item { background: #fff; border: 1px solid #F4E7D8; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.biz-detail-item label { display: block; font-size: 11px; color: #A28972; margin-bottom: 5px; }
.biz-detail-item div { font-size: 13px; color: #3C2B1E; word-break: break-all; }
.biz-detail-note { margin-top: 12px; padding: 12px; border-radius: 10px; background: #FFF9F2; border: 1px solid #F5E6D6; font-size: 13px; line-height: 1.7; }
.biz-detail-note.red { background: #FFF8F8; border-color: #F6C9C9; color: #C0392B; }
.biz-detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media(max-width:900px){ .biz-detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .biz-name-txt b { max-width: 200px; } }
.biz-sheet-tip { font-size: 12px; line-height: 1.6; color: #8A6247; background: #FFF7EE; border: 1px solid #F6E3CF; border-radius: 8px; padding: 9px 11px; margin-bottom: 12px; }
.biz-cat { margin-bottom: 14px; }
.biz-cat-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: #3B2A1D; padding: 6px 2px 8px; border-bottom: 1px solid #F3E5D6; }
.biz-cat-h span { font-size: 11px; color: #9B8A78; font-weight: 400; }
.biz-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed #F5EADD; }
.biz-row:last-child { border-bottom: 0; }
.biz-row-main { flex: 1; min-width: 0; }
.biz-row-main b { display: block; font-size: 13px; color: #3B2A1D; font-weight: 600; }
.biz-row-main span { display: block; font-size: 11px; color: #9B8A78; margin-top: 2px; }

/* 师傅类型管理 */
.jt-edit, .jt-add { display: flex; align-items: center; gap: 8px; }
.jt-edit input, .jt-add input { width: 220px; height: 34px; border: 1px solid var(--c-line); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--c-text-1); outline: none; }
.jt-edit input:focus, .jt-add input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,122,69,.1); }

/* 附近商家 / 健康好物 · 上传与审核 */
.biz-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 14px; }
.biz-filter .b { border: 1px solid #EADCCB; background: #FFFDFA; color: #7A6653; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.biz-filter .b.on { background: #FFF0E2; border-color: #F4B183; color: #C36A2E; font-weight: 600; }
.biz-account-row { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 12px; align-items: center; border-bottom: 1px dashed #F1E4D4; padding: 11px 2px; }
.biz-account-row:last-child { border-bottom: 0; }
.biz-account-row > div:nth-child(2) { min-width: 0; }
.biz-review-cat { padding: 8px 0; border-bottom: 1px dashed #F1E4D4; }
.biz-review-cat:last-child { border-bottom: 0; }
.biz-review-cat b { display: block; margin-bottom: 4px; color: #3B2A1D; }
.biz-edit-cat input, .biz-edit-cat select { height: 34px; border: 1px solid #EADCCB; border-radius: 8px; padding: 0 9px; background: #fff; color: #3B2A1D; }
@media (max-width: 720px) {
  .biz-account-row { grid-template-columns: 1fr; }
  .biz-edit-item { grid-template-columns: 1fr 1fr !important; }
}

/* 1.7.38 附近商家/商城表单窄屏修正 */
.biz-edit-cat, .biz-edit-item, .biz-edit-cat [data-items] { min-width: 0; box-sizing: border-box; }
.biz-edit-item > input, .biz-edit-item > select { min-width: 0; width: 100%; box-sizing: border-box; }
.modal-body .form-grid { min-width: 0; }
.modal-body .fld, .modal-body .fld input, .modal-body .fld select, .modal-body .fld textarea { min-width: 0; box-sizing: border-box; }
@media (max-width: 720px) {
  .biz-edit-item { grid-template-columns: 1fr 1fr !important; }
  .biz-edit-item > select { grid-column: 1 / 2; }
  #biz-split > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
}
.fld input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) { width: 100%; height: 38px; border: 1px solid #EADCCB; border-radius: 8px; padding: 0 11px; background: #FFFDFA; box-sizing: border-box; }
.fld input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,122,69,.13); }
