/* ============================================================
   医生在线预约系统 · 公共样式
   设计目标：手机优先 + 电脑宽屏自适应；医疗行业清爽配色
   ============================================================ */

:root {
  --brand: #0ea5a4;
  --brand-dark: #0d8f8e;
  --brand-light: #e6fbfa;
  --blue: #2563eb;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #f4f7fa;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
}

* { 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",
               "Helvetica Neue", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.hero {
  background: linear-gradient(135deg, #0ea5a4 0%, #0891b2 55%, #2563eb 100%);
  color: #fff;
  padding: 26px 0 62px;
  position: relative;
}
.hero h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.hero p { margin: 0; opacity: .9; font-size: 13px; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero .ghost-btn {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 999px; padding: 7px 15px; font-size: 13px;
  backdrop-filter: blur(6px); white-space: nowrap;
}
.hero .ghost-btn:hover { background: rgba(255,255,255,.3); }

.pull-up { margin-top: -44px; position: relative; z-index: 2; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
}
.card-title .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.card-title .sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: auto; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 10px; }
.grid-dept { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid-doc  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-slot { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-stat { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- 可选项 ---------- */
.opt {
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px; background: #fff; text-align: left;
  transition: .15s; position: relative;
}
.opt:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.opt.on { border-color: var(--brand); background: var(--brand-light); }
.opt.on::after {
  content: '✓'; position: absolute; top: 6px; right: 8px;
  color: var(--brand); font-weight: 700; font-size: 14px;
}
.opt .t { font-weight: 600; font-size: 15px; }
.opt .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }

.dept-opt { display: flex; align-items: center; gap: 10px; }
.dept-opt .ico { font-size: 24px; }

.doc-opt { display: flex; gap: 12px; }
.doc-opt .ava {
  width: 46px; height: 46px; border-radius: 12px; flex: none; overflow: hidden;
  background: var(--brand-light); display: flex; align-items: center;
  justify-content: center; font-size: 24px;
}
.doc-opt .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-opt .meta { min-width: 0; }
.doc-opt .name { font-weight: 700; }
.doc-opt .tag {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; margin-left: 6px; vertical-align: 1px;
}
.doc-opt .line { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.doc-opt .intro {
  font-size: 12px; color: var(--ink-2); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 顶部医生条 ---------- */
.hero-doc { padding: 22px 0 60px; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-doc-box { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hero-ava {
  width: 62px; height: 62px; border-radius: 50%; flex: none; overflow: hidden;
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.hero-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.hero-tags span {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.32);
}
.hero-btns { display: flex; gap: 8px; flex: none; }

/* ---------- 就诊地点卡片 ---------- */
.site-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  padding: 11px; margin-bottom: 10px; transition: .15s;
}
.site-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.site-card.on { border-color: var(--brand); background: var(--brand-light); }
.site-img {
  width: 62px; height: 62px; border-radius: 11px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #e6fbfa, #dbeafe);
  display: flex; align-items: center; justify-content: center;
}
.site-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-img .ph { font-size: 28px; }
.site-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-day {
  font-size: 11.5px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-light); border-radius: 999px; padding: 1px 8px;
}
.site-addr { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.site-desc { font-size: 11.5px; color: var(--ink-3); }
.site-go { color: var(--ink-3); font-size: 22px; flex: none; }
.site-nav {
  display: inline-flex; align-items: center; gap: 3px; align-self: flex-start;
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px;
  padding: 2px 10px; margin-top: 4px; cursor: pointer; transition: .15s;
}
.site-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 导航选择弹窗 ---------- */
.nav-list { display: flex; flex-direction: column; gap: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
  background: #fff; color: var(--ink); transition: .15s; text-decoration: none;
}
.nav-item:hover { border-color: var(--brand); background: var(--brand-light); transform: translateX(2px); }
.nav-item .ni-ico { font-size: 22px; flex: none; }
.nav-item .ni-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-item .ni-t b { font-size: 14.5px; }
.nav-item .ni-t i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.nav-item .ni-go { color: var(--ink-3); font-size: 20px; flex: none; }

/* ---------- 医生名片 ---------- */
.dr-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fcfefe; }
.dr-head { display: flex; gap: 14px; align-items: center; }
.dr-ava {
  width: 76px; height: 76px; border-radius: 14px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #e6fbfa, #dbeafe);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.dr-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-id { min-width: 0; }
.dr-name { font-size: 19px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dr-title { font-size: 12.5px; font-weight: 600; color: var(--brand-dark); background: var(--brand-light);
  border-radius: 999px; padding: 2px 9px; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dr-tags span { font-size: 11.5px; padding: 1.5px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.dr-rate { margin-top: 6px; font-size: 13px; }
.dr-rate b { font-size: 16px; color: #f59e0b; }
.dr-rate i { font-style: normal; font-size: 12px; color: var(--ink-3); }

.dr-sites { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 0; }
.dr-site {
  flex: 1; min-width: 158px; border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 8px; font-size: 12.5px; background: #fff; text-align: left;
  display: flex; align-items: center; gap: 9px; transition: .15s; position: relative;
}
.dr-site:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.dr-site.on { border-style: solid; border-color: var(--brand); background: var(--brand-light); }
.dr-site .ds-img {
  width: 46px; height: 46px; border-radius: 9px; flex: none; overflow: hidden;
  background: #f1f5f9; position: relative; cursor: zoom-in;
}
.dr-site .ds-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-site .ds-img::after {
  content: '🔍'; position: absolute; right: 1px; bottom: 1px; font-size: 10px;
  background: rgba(0,0,0,.45); border-radius: 5px; padding: 0 2px; line-height: 1.4;
}
.dr-site .ds-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-site .ds-txt b { font-size: 13.5px; }
.dr-site .ds-txt span { color: var(--ink-2); }
.dr-site .ds-tick {
  position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: var(--ink-3);
}
.dr-site.on .ds-tick { color: var(--brand-dark); font-weight: 700; }

/* 地点卡片上的放大角标 */
.site-img.has-img { position: relative; cursor: zoom-in; }
.site-img .zoom-badge {
  position: absolute; right: 2px; bottom: 2px; font-size: 11px; font-style: normal;
  background: rgba(0,0,0,.45); color: #fff; border-radius: 6px; padding: 0 3px; line-height: 1.5;
}

/* ---------- 大图预览 ---------- */
.photo-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200;
  display: flex; flex-direction: column;
}
.photo-bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff; flex: none;
}
.photo-title { min-width: 0; }
.photo-title b { display: block; font-size: 15px; }
.photo-title i { font-style: normal; font-size: 12px; opacity: .7; }
.photo-close {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.18); color: #fff; font-size: 16px; line-height: 1;
}
.photo-close:hover { background: rgba(255,255,255,.32); }
.photo-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 8px;
}
.photo-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in;
  transition: transform .25s cubic-bezier(.2,.8,.3,1);
  user-select: none; -webkit-user-drag: none; border-radius: 6px;
}
.photo-stage img.zoomed { cursor: grab; transition: none; }
.photo-stage img.zoomed:active { cursor: grabbing; }
.photo-tip {
  flex: none; text-align: center; color: rgba(255,255,255,.7);
  font-size: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}

.dr-intro {
  margin-top: 13px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2);
  background: #fff; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 10px 12px;
}
.dr-sp { margin-top: 11px; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.dr-sp-h {
  display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px;
  padding: 9px 12px; background: linear-gradient(90deg, var(--brand-light), #f8fafc); color: var(--brand-dark);
}
.dr-sp-h i { font-style: normal; font-size: 15px; }
.dr-sp-b { padding: 10px 12px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 日期条 ---------- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.dates::-webkit-scrollbar { height: 5px; }
.dates::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
.date-opt {
  flex: none; width: 68px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; padding: 8px 4px; text-align: center; transition: .15s;
}
.date-opt .wd { font-size: 11px; color: var(--ink-3); }
.date-opt .dd { font-size: 17px; font-weight: 700; line-height: 1.25; }
.date-opt .st { font-size: 10px; color: var(--ok); }
.date-opt.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.date-opt.on .wd, .date-opt.on .st { color: rgba(255,255,255,.9); }
.date-opt.off { opacity: .42; cursor: not-allowed; }
.date-opt.off .st { color: var(--ink-3); }

/* ---------- 时段 ---------- */
.slot {
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 10px 4px; text-align: center; transition: .15s;
}
.slot .tt { font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.slot .rr { font-size: 11.5px; color: var(--blue); margin-top: 2px; }
.slot.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot.on .rr { color: rgba(255,255,255,.9); }
.slot.off { opacity: .4; cursor: not-allowed; background: #f8fafc; }
.slot.off .rr { color: var(--ink-3); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; outline: none; transition: .15s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,164,.13);
}
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.radio-row { display: flex; gap: 8px; }
.radio-row button {
  flex: 1; padding: 9px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 10px; transition: .15s; color: var(--ink-2);
}
.radio-row button.on { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

/* 就诊人数选择 */
.party-row { display: flex; gap: 7px; flex-wrap: wrap; }
.party-row button {
  flex: 1; min-width: 62px; padding: 9px 4px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 10px; color: var(--ink-2); font-size: 14px; transition: .15s;
}
.party-row button:hover { border-color: var(--brand); }
.party-row button.on {
  border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border: none; border-radius: 11px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  transition: .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 13px; }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #dc2626; }
.btn.blue { background: var(--blue); }
.btn.green { background: var(--ok); }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.booked { background: #dbeafe; color: #1d4ed8; }
.badge.done { background: #dcfce7; color: #15803d; }
.badge.cancelled { background: #f1f5f9; color: #64748b; }
.badge.noshow { background: #fee2e2; color: #b91c1c; }

/* ---------- 提示条 ---------- */
.notice {
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 12px; padding: 10px 13px; font-size: 13px; line-height: 1.6;
}
.empty { text-align: center; padding: 34px 12px; color: var(--ink-3); font-size: 14px; }
.empty .ico { font-size: 40px; display: block; margin-bottom: 8px; opacity: .55; }

/* ---------- 汇总条 ---------- */
.summary {
  background: linear-gradient(135deg, #0ea5a4, #0891b2); color: #fff;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
}
.summary .row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.summary .row b { font-weight: 700; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.tbl th {
  text-align: left; padding: 10px 10px; background: #f8fafc; color: var(--ink-2);
  font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
}
table.tbl td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tbl tr:hover td { background: #f8fefe; }
table.tbl .nowrap { white-space: nowrap; }

/* ---------- 统计卡 ---------- */
.stat {
  background: #fff; border-radius: 14px; padding: 15px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
}
.stat .k { font-size: 12.5px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 800; line-height: 1.25; margin-top: 2px; }
.stat .x { font-size: 11.5px; color: var(--ink-3); }
.stat.blue { border-left-color: var(--blue); }
.stat.green { border-left-color: var(--ok); }
.stat.warn { border-left-color: var(--warn); }
.stat.red { border-left-color: var(--danger); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.tabs button {
  flex: none; padding: 9px 15px; border: none; background: transparent;
  color: var(--ink-2); font-size: 14px; font-weight: 600; border-radius: 10px; white-space: nowrap;
}
.tabs button.on { background: var(--brand); color: #fff; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 480px;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { margin: 0 0 14px; font-size: 17px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
  background: rgba(15,23,42,.92); color: #fff; padding: 11px 20px; border-radius: 11px;
  font-size: 14px; z-index: 999; display: none; max-width: 88vw; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
#toast.err { background: #dc2626; }
#toast.ok { background: #15803d; }

/* ---------- 图表 ---------- */
.chart-box { width: 100%; overflow-x: auto; }
.chart-box svg { display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }

.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.bar-row .nm { width: 80px; flex: none; text-align: right; color: var(--ink-2); }
.bar-row .bar { flex: 1; background: #f1f5f9; border-radius: 6px; height: 20px; overflow: hidden; }
.bar-row .bar i {
  display: block; height: 100%; background: linear-gradient(90deg, #0ea5a4, #2563eb); border-radius: 6px;
  transition: width .5s;
}
.bar-row .vl { width: 42px; flex: none; text-align: right; font-weight: 600; }

/* ---------- 后台：图片选择器 ---------- */
.img-pick { display: flex; gap: 12px; align-items: center; }
.img-prev {
  width: 84px; height: 84px; border-radius: 11px; flex: none; overflow: hidden;
  border: 1.5px dashed var(--line); background: #f8fafc;
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--ink-3);
}
.img-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 后台：地点行 / 医生行 ---------- */
.site-row, .dr-row {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-bottom: 10px; background: #fff;
}
.site-row:hover, .dr-row:hover { border-color: var(--brand); }
.dr-row-ava {
  width: 56px; height: 56px; border-radius: 12px; flex: none; overflow: hidden;
  background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.dr-row-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-row-sch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dr-row-sch span {
  font-size: 11.5px; background: #f1f5f9; border-radius: 7px; padding: 3px 8px; color: var(--ink-2);
}
.dr-row-sch span b { color: var(--ink); }

/* ---------- 后台：排班编辑器 ---------- */
.sch-blk { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fbfdfd; }
.sch-head { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; }
.sch-head select { flex: 1; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; }
.sch-wd { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.sch-wd button {
  padding: 6px 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; font-size: 13px; transition: .15s;
}
.sch-wd button.on { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 600; }
table.sch-tbl { width: 100%; border-collapse: collapse; }
table.sch-tbl th {
  font-size: 12px; color: var(--ink-3); font-weight: 600; text-align: left; padding: 2px 4px 5px;
}
table.sch-tbl td { padding: 3px 4px; }
table.sch-tbl input {
  width: 100%; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13.5px;
}
table.sch-tbl input:focus { border-color: var(--brand); outline: none; }
table.sch-tbl td:last-child { width: 46px; }

/* ---------- 后台：定位框 ---------- */
.geo-box { border: 1.5px dashed var(--line); border-radius: 11px; padding: 10px; background: #fbfdfd; }
.geo-msg { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.geo-msg.ok { color: var(--ok); }
.geo-msg.err { color: var(--danger); }
.geo-msg a { margin-right: 8px; }

/* ---------- 后台：路径提示框 ---------- */
.path-box {
  border: 2px solid var(--warn); border-radius: 12px; padding: 12px 14px;
  background: #fffbeb;
}
.path-title { font-weight: 700; color: #92400e; font-size: 13.5px; margin-bottom: 6px; }
.path-box code {
  display: block; font-size: 13px; background: #fff; border: 1px solid #fde68a;
  border-radius: 8px; padding: 7px 10px; word-break: break-all; color: var(--ink);
}
.path-sub { font-size: 12.5px; color: #92400e; margin-top: 8px; line-height: 1.85; font-family: monospace; }

/* ---------- 打印 ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- 手机适配 ---------- */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 12px; }
  .hero { padding: 20px 0 54px; }
  .hero h1 { font-size: 19px; }
  .card { padding: 15px; border-radius: 14px; }
  .grid-dept { grid-template-columns: repeat(2, 1fr); }
  .grid-doc { grid-template-columns: 1fr; }
  .grid-slot { grid-template-columns: repeat(2, 1fr); }
  .hero-doc-box { gap: 10px; }
  .hero-ava { width: 52px; height: 52px; font-size: 25px; }
  .hero-top { flex-direction: column; }
  .hero-btns { width: 100%; }
  .hero-btns .ghost-btn { flex: 1; }
  .site-img { width: 54px; height: 54px; }
  .dr-ava { width: 64px; height: 64px; font-size: 30px; }
  .dr-name { font-size: 17px; }
  .dr-site { min-width: 100%; }
  .photo-title b { font-size: 14px; }
  .grid-stat { grid-template-columns: repeat(2, 1fr); }
  .stat .v { font-size: 22px; }
  .bar-row .nm { width: 60px; font-size: 12px; }
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 1024px) {
  .two-col { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
  .sticky-side { position: sticky; top: 16px; }
}
