:root {
  --ink: #17243d;
  --muted: #65728a;
  --line: #dfe5ee;
  --line-strong: #cbd5e3;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --page: #eef3f8;
  --navy: #183b5b;
  --teal: #087f7a;
  --teal-soft: #e5f5f3;
  --blue: #3978d4;
  --blue-soft: #eaf1fc;
  --amber: #b76b16;
  --amber-soft: #fff2df;
  --danger: #b42318;
  --shadow: 0 12px 30px rgba(23, 36, 61, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button, input, select { font: inherit; }
button, a, input, select { outline-color: var(--teal); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { min-height: 100vh; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(118deg, #16344f 0%, #1a5264 58%, #0b726e 100%);
  box-shadow: 0 4px 20px rgba(21, 47, 70, .18);
}

.brand, .data-status, .page-heading, .panel-heading, .section-heading,
.doctor-row, .hospital-card-head, .hospital-meta, .dialog-title { display: flex; align-items: center; }
.brand { gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 12px;
  background: rgba(255,255,255,.12); font-weight: 600;
}
.brand strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.eyebrow { margin: 0 0 3px; font-size: 10px; letter-spacing: .16em; color: inherit; opacity: .72; }
.data-status { gap: 9px; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #72e1b8; box-shadow: 0 0 0 4px rgba(114,225,184,.14); }
.privacy-badge, .platform-badge, .title-badge {
  display: inline-flex; align-items: center; width: fit-content; white-space: nowrap;
  padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 500;
}
.profile-state, .verified-badge {
  display: inline-flex; align-items: center; width: fit-content; white-space: nowrap;
  padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 500;
}
.content-state {
  display: inline-flex; align-items: center; width: fit-content; white-space: nowrap;
  padding: 4px 8px; border-radius: 999px; color: #8b2942; background: #fff0f3;
  font-size: 10px; font-weight: 500;
}
.profile-state.is-complete { color: #075e59; background: var(--teal-soft); }
.profile-state.is-pending { color: var(--amber); background: var(--amber-soft); }
.profile-state.is-blocked { color: #8a4b0f; background: #ffead0; }
.profile-state.is-unavailable { color: var(--muted); background: var(--surface-soft); }
.verified-badge { color: #285eaa; background: var(--blue-soft); }
.privacy-badge { color: #d9fff5; background: rgba(255,255,255,.12); }

.button { border: 0; border-radius: 9px; padding: 9px 13px; cursor: pointer; font-weight: 500; }
.button-secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.button-secondary:hover { background: var(--surface-soft); }
.topbar .button-secondary { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); }
.topbar .button-secondary:hover { background: rgba(255,255,255,.18); }
.text-button { padding: 4px 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-weight: 500; }

.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1540px; margin: 0 auto; }
.sidebar {
  min-height: calc(100vh - 76px); padding: 30px 24px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.sidebar-heading { display: flex; justify-content: space-between; margin-bottom: 22px; font-weight: 500; }
.field-label, .filter-group legend { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.search-box { position: relative; margin-bottom: 26px; }
.search-box svg { position: absolute; left: 11px; top: 11px; width: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input, select {
  width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--ink); background: var(--surface); padding: 9px 10px;
}
.search-box input { padding-left: 37px; }
.search-box input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,122,.1); }
.search-stack { margin-bottom: 26px; }
.search-stack .field-label { margin-top: 12px; margin-bottom: 6px; }
.search-stack .field-label:first-child { margin-top: 0; }
.search-stack .search-box { margin-bottom: 0; }
.filter-group { margin: 0 0 26px; padding: 0; border: 0; }
.snapshot-picker { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.snapshot-picker select { margin-bottom: 10px; background: var(--surface); }
.snapshot-picker .field-label { margin-top: 2px; margin-bottom: 5px; }
.snapshot-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.snapshot-heading small { max-width: 120px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.snapshot-help { display: block; color: var(--muted); font-size: 10px; line-height: 1.55; }
.radio-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; min-height: 36px; cursor: pointer; }
.radio-row input { accent-color: var(--teal); }
.radio-row b { color: var(--muted); font-size: 12px; font-weight: 400; }
.scope-note { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin-top: 34px; padding: 13px; color: var(--muted); background: var(--surface-soft); border-radius: 10px; }
.scope-note svg { width: 18px; fill: none; stroke: var(--teal); stroke-width: 1.8; }
.scope-note p { margin: 0; font-size: 11px; line-height: 1.65; }

.main-content { min-width: 0; padding: 34px clamp(24px, 4vw, 52px) 60px; }
.page-heading { justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-heading .eyebrow, .section-kicker { color: var(--teal); opacity: 1; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
h2 { margin-bottom: 0; font-size: 18px; font-weight: 500; }
h3 { font-size: 15px; font-weight: 500; }
#page-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.view-tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.tab-button { border: 0; border-radius: 8px; padding: 8px 13px; color: var(--muted); background: transparent; cursor: pointer; }
.tab-button.is-active { color: #fff; background: var(--navy); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card, .panel, .hospital-card, .doctor-card, .table-shell {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.metric-card { position: relative; overflow: hidden; min-height: 126px; padding: 20px; }
.metric-card::after { content: ""; position: absolute; right: -20px; bottom: -28px; width: 92px; height: 92px; border-radius: 50%; background: var(--teal-soft); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { display: block; margin: 10px 0 4px; font-size: 31px; font-weight: 500; letter-spacing: -.03em; }
.metric-context { color: var(--muted); font-size: 11px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 22px; }
.panel-heading, .section-heading { justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-kicker { margin-bottom: 4px; font-size: 10px; letter-spacing: .14em; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend-department { background: var(--teal); }
.legend-doctor { background: var(--blue); }
.coverage-chart { display: grid; gap: 22px; }
.coverage-row { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; align-items: center; }
.coverage-label strong { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 500; }
.coverage-label span { color: var(--muted); font-size: 11px; }
.bar-stack { display: grid; gap: 8px; }
.bar-line { display: grid; grid-template-columns: minmax(0,1fr) 32px; gap: 8px; align-items: center; }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e9eef4; }
.bar-fill { min-width: 2px; height: 100%; border-radius: inherit; }
.bar-fill.department { background: var(--teal); }
.bar-fill.doctor { background: var(--blue); }
.bar-value { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }

.coverage-table { display: grid; gap: 2px; }
.coverage-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.coverage-item:last-child { border-bottom: 0; }
.coverage-item strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.coverage-item span { color: var(--muted); font-size: 11px; }
.coverage-numbers { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.coverage-numbers b { color: var(--ink); font-size: 14px; font-weight: 500; }
.zero-warning { color: var(--amber) !important; }

.doctor-preview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.doctor-mini { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); cursor: pointer; }
.doctor-mini:hover { border-color: var(--teal); }
.mini-top, .dialog-badges, .doctor-state-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mini-top { justify-content: space-between; }
.mini-identity { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.doctor-mini h3 { margin: 0; }
.doctor-mini p { min-height: 36px; margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.platform-badge.haodf { color: #075e59; background: var(--teal-soft); }
.platform-badge.chunyu { color: #285eaa; background: var(--blue-soft); }
.title-badge { color: var(--amber); background: var(--amber-soft); }

.section-heading { margin-top: 4px; }
.result-count { color: var(--muted); font-size: 12px; }
.hospital-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.hospital-card { padding: 22px; }
.hospital-card-head { justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.hospital-card h3 { margin-bottom: 7px; font-size: 18px; }
.hospital-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.hospital-description { min-height: 64px; }
.hospital-meta { flex-wrap: wrap; gap: 9px 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.hospital-meta b { color: var(--ink); font-size: 15px; font-weight: 500; }
.hospital-contact { display: grid; gap: 8px; margin-top: 14px; }
.contact-line { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.contact-line svg { width: 15px; fill: none; stroke: var(--teal); stroke-width: 1.8; }

.table-shell { overflow: hidden; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; vertical-align: top; }
th { color: var(--muted); background: var(--surface-soft); font-weight: 500; white-space: nowrap; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafcfe; }
.load-more { display: block; margin: 16px auto; }

.doctor-list { display: grid; gap: 10px; }
.doctor-card { padding: 0; overflow: hidden; cursor: pointer; }
.doctor-card:hover { border-color: var(--teal); }
.doctor-row { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(190px,1fr) minmax(240px,1.5fr) auto; gap: 18px; padding: 17px 19px; }
.doctor-identity { display: flex; align-items: center; gap: 12px; }
.doctor-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--navy); font-weight: 500; }
.doctor-avatar.has-image { position: relative; overflow: hidden; }
.doctor-avatar.has-image img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-soft); }
.doctor-avatar.has-image span { position: absolute; z-index: -1; }
.doctor-name { margin-bottom: 4px; font-weight: 500; }
.doctor-state-row { margin-top: 6px; }
.doctor-secondary, .specialty-preview { color: var(--muted); font-size: 11px; line-height: 1.55; }
.doctor-affiliation { align-self: center; }
.doctor-affiliation strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.specialty-preview { align-self: center; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.doctor-score { align-self: center; text-align: right; min-width: 80px; }
.doctor-score b { display: block; font-size: 16px; font-weight: 500; }
.doctor-score span { color: var(--muted); font-size: 10px; }

.doctor-dialog { width: min(900px, calc(100% - 28px)); max-height: 90vh; overflow: auto; padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(17,34,51,.3); }
.doctor-dialog::backdrop { background: rgba(18, 31, 47, .55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 16px; top: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 24px; }
.dialog-content { padding: 30px; }
.dialog-title { gap: 16px; padding-right: 42px; margin-bottom: 18px; }
.dialog-title .doctor-avatar { width: 66px; height: 66px; flex-basis: 66px; border-radius: 16px; }
.dialog-title h2 { margin: 7px 0 3px; font-size: 23px; }
.dialog-title p { margin: 0; color: var(--muted); font-size: 12px; }
.affiliation-band { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; padding: 14px 16px; border-radius: 11px; background: var(--surface-soft); }
.affiliation-band strong { font-size: 13px; font-weight: 500; }
.affiliation-band > span { color: var(--muted); font-size: 12px; }
.affiliation-band .tag-list { width: 100%; }
.profile-notice { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--amber); color: var(--amber); background: var(--amber-soft); font-size: 12px; line-height: 1.65; }
.profile-notice.is-unavailable { border-left-color: var(--muted); color: var(--muted); background: var(--surface-soft); }
.profile-notice.is-blocked { border-left-color: #d97706; color: #8a4b0f; background: #fff4e5; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 10px; margin: 18px 0 22px; }
.detail-cell { padding: 13px; border-radius: 10px; background: var(--surface-soft); }
.detail-cell span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.detail-cell strong { font-size: 12px; font-weight: 500; }
.detail-section { margin-top: 20px; }
.detail-section h3 { margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.detail-section p { margin-bottom: 0; font-size: 13px; line-height: 1.8; }
.detail-section ul { margin: 0; padding-left: 20px; }
.detail-section li { margin: 6px 0; font-size: 13px; line-height: 1.7; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list > span { padding: 5px 9px; border-radius: 999px; color: var(--ink); background: var(--blue-soft); font-size: 11px; }
.tag-list.subtle { margin-bottom: 6px; }
.tag-list.subtle > span { color: var(--muted); background: var(--surface-soft); }
.service-link-list { display: flex; flex-wrap: wrap; gap: 9px; }
.service-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 170px; padding: 11px 13px; border: 1px solid #c8ddec; border-radius: 10px;
  color: var(--ink); background: #f7fbfe; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.service-link strong { font-size: 12px; font-weight: 600; }
.service-link small { color: var(--blue); font-size: 10px; white-space: nowrap; }
.service-link:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(25, 72, 108, .1); transform: translateY(-1px); }
.service-link.is-static { border-color: var(--line); background: var(--surface-soft); }
.service-link.is-static small { color: var(--muted); }
.schedule-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 9px; }
.schedule-entry { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.schedule-entry strong { font-size: 12px; font-weight: 500; }
.schedule-entry span, .schedule-entry small { color: var(--muted); font-size: 11px; }
.collection-meta { padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-source { display: inline-flex; margin-top: 24px; }

.error-banner { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #f2bbb6; border-radius: 10px; color: var(--danger); background: #fff1ef; font-size: 12px; }
.collection-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 18px; padding: 14px 17px; border: 1px solid #d8e4ed;
  border-left: 4px solid var(--teal); border-radius: 11px; background: #f8fbfd;
}
.collection-banner strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.collection-banner span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.collection-breakdown { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.collection-breakdown span { padding: 5px 9px; border-radius: 999px; background: var(--surface); }
.collection-breakdown .is-good { color: #075e59; background: var(--teal-soft); }
.collection-breakdown .is-warning { color: #8a4b0f; background: #ffead0; }
.collection-breakdown .is-content { color: #8b2942; background: #fff0f3; }

.content-metrics {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px;
}
.content-metrics > div {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.content-metrics span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.content-metrics strong { font-size: 24px; font-weight: 500; }
.content-metrics small { display: block; margin-top: 5px; color: var(--amber); font-size: 9px; }
.content-toolbar {
  display: grid; gap: 14px; margin-bottom: 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
}
.content-search-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.content-filter-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto 118px auto; align-items: end; gap: 14px; }
.content-toolbar label > span, .content-platform-control > span {
  display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 500;
}
.content-toolbar input[type="search"] {
  width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: var(--surface);
}
.content-toolbar input[type="search"]:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,122,.1); }
.content-segments { display: flex; min-height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-soft); }
.content-segments button { flex: 1; padding: 7px 9px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.content-segments button.is-active { color: #fff; background: var(--navy); }
.content-check-control { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 3px; cursor: pointer; white-space: nowrap; }
.content-check-control > span { margin: 0 !important; color: var(--ink) !important; font-size: 11px !important; }
.content-check-control input { accent-color: var(--teal); }
.content-size-control select { min-height: 40px; }
.content-clear-button { min-height: 40px; white-space: nowrap; }
.content-list { min-width: 0; }
.content-explorer {
  display: grid; grid-template-columns: minmax(230px, 285px) minmax(0,1fr); overflow: hidden;
  min-height: 620px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.content-doctor-browser { min-width: 0; padding: 16px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.content-browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; margin-bottom: 11px; }
.content-browser-heading strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; }
.content-browser-heading span { display: block; color: var(--muted); font-size: 9px; }
.content-pager { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.content-pager button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; }
.content-pager button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.content-pager button:disabled { cursor: not-allowed; opacity: .4; }
.content-pager > span, .pager-summary { color: var(--muted); font-size: 9px; white-space: nowrap; }
.content-doctor-choices { display: grid; gap: 7px; }
.content-doctor-choice { display: grid; width: 100%; gap: 4px; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.content-doctor-choice:hover { border-color: var(--line-strong); background: var(--surface); }
.content-doctor-choice.is-active { border-color: rgba(8,127,122,.32); background: var(--surface); box-shadow: 0 6px 18px rgba(23,36,61,.07); }
.content-doctor-choice.is-active::before { content: ""; position: absolute; }
.doctor-choice-name { font-size: 13px; font-weight: 600; }
.doctor-choice-place { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.doctor-choice-count { margin-top: 3px; color: #8b2942; font-size: 9px; }
.content-doctor-detail { min-width: 0; }
.selected-doctor-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.selected-doctor-header > div:first-child > span { color: var(--teal); font-size: 9px; letter-spacing: .12em; }
.selected-doctor-header h3 { margin: 4px 0; font-size: 19px; }
.selected-doctor-header p { margin: 0; color: var(--muted); font-size: 10px; }
.selected-doctor-total { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 3px 7px; padding: 10px 13px; border-radius: 10px; background: var(--surface-soft); }
.selected-doctor-total strong { color: var(--teal); font-size: 17px; font-weight: 500; text-align: right; }
.selected-doctor-total span { color: var(--muted); font-size: 9px; }
.content-article-browser { padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.content-article-choices { display: grid; grid-template-columns: repeat(5, minmax(120px,1fr)); gap: 8px; }
.content-article-choice { display: flex; min-width: 0; min-height: 92px; flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); cursor: pointer; text-align: left; }
.content-article-choice:hover { border-color: var(--teal); }
.content-article-choice.is-active { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f8fffe; }
.content-article-choice.is-pending { border-style: dashed; background: #fffdf7; }
.content-article-choice.is-pending .article-choice-platform { color: #8a4b0f; }
.article-choice-platform { color: #8b2942; font-size: 9px; }
.content-article-choice strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; font-weight: 500; line-height: 1.45; }
.content-article-choice small { margin-top: auto; color: var(--muted); font-size: 8px; }
.content-article-detail { padding: 20px 22px 24px; }
.article-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.article-detail-header h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.5; }
.article-detail-header a { flex: 0 0 auto; font-size: 10px; }
.article-platform-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; color: #8b2942; background: #fff0f3; font-size: 9px; }
.article-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.article-detail-meta span { padding: 4px 7px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.article-detail-meta span.is-warning { color: #8a4b0f; background: var(--amber-soft); }
.article-copy-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 2px 8px; }
.article-copy-heading strong { display: block; margin-bottom: 3px; font-size: 11px; }
.article-copy-heading span { color: var(--muted); font-size: 9px; }
.article-copy-heading button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: var(--surface); cursor: pointer; font-size: 9px; }
.article-copy { max-height: 260px; overflow: auto; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.article-copy.is-expanded { max-height: none; overflow: visible; }
.article-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.article-copy.is-empty { color: var(--muted); font-size: 10px; }
.comment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 0 2px 10px; }
.comment-section-heading strong { display: block; margin-bottom: 3px; font-size: 12px; }
.comment-section-heading > div > span { color: var(--muted); font-size: 9px; }
.comment-section-footer { display: flex; justify-content: flex-end; padding-top: 11px; }
.content-empty-state { display: grid; min-height: 320px; place-content: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); text-align: center; }
.content-empty-state strong { color: var(--ink); font-size: 14px; }
.content-empty-state span { font-size: 11px; }
.content-more-hint { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 10px !important; }
.content-doctor-group {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.content-doctor-group > header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft);
}
.content-doctor-group h3 { margin-bottom: 4px; }
.content-doctor-group header p { margin: 0; color: var(--muted); font-size: 11px; }
.content-doctor-group header > strong { color: #8b2942; font-size: 12px; font-weight: 500; white-space: nowrap; }
.content-doctor-group > div, .doctor-content-notes { display: grid; gap: 10px; padding: 14px; }
.content-note { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.content-note summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; cursor: pointer; list-style-position: inside;
}
.content-note summary:hover { background: var(--surface-soft); }
.content-note summary > div { min-width: 0; }
.content-note summary strong {
  display: -webkit-box; overflow: hidden;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;   /* 最多 3 行，超出才省略 */
  font-size: 12px; font-weight: 500; line-height: 1.5;
}
.content-note summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.content-note summary a { flex: 0 0 auto; font-size: 11px; }
.note-description { margin: 0; padding: 13px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.75; }
.comment-list { border-top: 1px solid var(--line); }
.comment-row { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.comment-row.is-reply { margin-left: 30px; border-left: 3px solid rgba(13, 148, 136, .24); background: rgba(13, 148, 136, .025); }
.comment-row:last-child { border-bottom: 0; }
.comment-meta { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.comment-avatar { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #e8f4f3; color: #087d76; font-size: 11px; font-weight: 600; }
.comment-meta strong { display: block; overflow: hidden; margin-bottom: 4px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; }
.comment-meta small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.comment-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.comment-label { padding: 2px 6px; border-radius: 999px; background: #eef2f5; color: var(--muted); font-size: 9px; }
.comment-label.is-author { background: #fff0e6; color: #b45309; }
.comment-body { min-width: 0; }
.comment-row p { margin: 0; font-size: 12px; line-height: 1.75; }
.comment-actions { display: flex; gap: 12px; min-height: 14px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.comment-actions .comment-liked-by-author { color: var(--accent, #e8590c); font-weight: 600; }
.content-empty-comments { padding: 14px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.content-empty-comments.is-warning { color: #8a4b0f; background: var(--amber-soft); line-height: 1.65; }
.content-section-summary { color: var(--muted); font-size: 11px !important; }
.doctor-content-section { padding-top: 18px; border-top: 1px solid var(--line); }
.doctor-content-section .doctor-content-notes { padding: 10px 0 0; }
.content-jump-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; }
.content-jump-button { cursor: pointer; }
.content-jump-row .content-more-hint { padding: 0; border-top: 0; background: none; }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 230px minmax(0,1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .doctor-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doctor-row { grid-template-columns: minmax(150px,.8fr) minmax(170px,1fr) minmax(220px,1.3fr); }
  .doctor-score { display: none; }
  .content-search-grid { grid-template-columns: repeat(2, minmax(220px,1fr)); }
  .content-filter-row { grid-template-columns: minmax(240px,1fr) auto 118px; }
  .content-clear-button { grid-column: 1 / -1; width: fit-content; }
  .content-article-choices { grid-template-columns: repeat(3, minmax(120px,1fr)); }
}

@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .data-status { flex-wrap: wrap; }
  .workspace { display: block; }
  .sidebar { min-height: 0; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading, .scope-note { display: none; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .search-box, .filter-group { margin: 0; }
  fieldset.filter-group { grid-column: 1 / -1; }
  fieldset.filter-group .radio-row { display: inline-grid; grid-template-columns: 18px auto auto; margin-right: 14px; }
  .main-content { padding: 24px 18px 44px; }
  .collection-banner { align-items: flex-start; flex-direction: column; }
  .collection-breakdown { justify-content: flex-start; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .view-tabs { overflow-x: auto; }
  .tab-button { flex: 1; }
  .hospital-list { grid-template-columns: 1fr; }
  .doctor-row { grid-template-columns: 1fr; gap: 10px; }
  .specialty-preview { -webkit-line-clamp: 3; }
  .content-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-search-grid, .content-filter-row { grid-template-columns: 1fr; }
  .content-clear-button { width: 100%; }
  .content-explorer { grid-template-columns: 1fr; }
  .content-doctor-browser { border-right: 0; border-bottom: 1px solid var(--line); }
  .content-doctor-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-article-choices { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .content-article-choice { flex: 0 0 180px; }
  .comment-row { grid-template-columns: 1fr; gap: 9px; }
  .comment-row.is-reply { margin-left: 12px; }
}

@media (max-width: 520px) {
  .topbar { padding: 14px 16px; }
  .data-status .button { width: 100%; }
  .sidebar { grid-template-columns: 1fr; }
  fieldset.filter-group { grid-column: auto; }
  fieldset.filter-group .radio-row { display: grid; margin-right: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 112px; padding: 16px; }
  .metric-value { font-size: 26px; }
  .doctor-preview { grid-template-columns: 1fr; }
  .coverage-row { grid-template-columns: 74px minmax(0,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .dialog-content { padding: 24px 20px; }
  .content-doctor-group > header, .content-note summary { align-items: flex-start; flex-direction: column; }
  .content-doctor-choices { grid-template-columns: 1fr; }
  .selected-doctor-header, .article-detail-header, .comment-section-heading { align-items: flex-start; flex-direction: column; }
  .content-article-detail { padding: 18px 15px 22px; }
}

/* ============ 医院 / 科室富化详情 ============ */

.hospital-card { cursor: pointer; }
.hospital-card:hover { border-color: var(--teal); box-shadow: 0 14px 34px rgba(23, 36, 61, .12); }
.hospital-card-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hospital-card-head h3 { margin: 0; font-size: 18px; }
.hospital-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.fact-badge {
  padding: 4px 9px; border-radius: 999px; color: #5a3d8f; background: #f3edfc;
  font-size: 11px; font-weight: 500;
}
.fact-badge:nth-child(2) { color: #075e59; background: var(--teal-soft); }
.fact-badge:nth-child(3) { color: #285eaa; background: var(--blue-soft); }
.card-open-hint { margin: 12px 0 0 !important; color: var(--teal) !important; font-size: 11px !important; }
.contact-line { align-items: baseline; }
.contact-line small { color: var(--muted); }

.cell-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.row-source { white-space: nowrap; }
.muted { color: var(--muted); }
.preserve { white-space: pre-wrap; word-break: break-word; }
.preserve.subtle { color: var(--muted); }
.section-hint { margin-top: 8px !important; color: var(--muted) !important; font-size: 11px !important; }

#department-table-body tr { cursor: pointer; }
#department-table-body tr:hover { background: #fbfcff; }
#department-table-body tr a { cursor: pointer; }

.hospital-avatar { background: linear-gradient(135deg, #0b726e, #1a5264) !important; }

.dialog-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.dialog-foot .dialog-source { margin-top: 0; }

.dept-count-badge { color: var(--amber); background: var(--amber-soft); }

.campus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.campus-cell {
  display: grid; gap: 4px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft);
}
.campus-cell strong { font-size: 12px; font-weight: 500; }
.campus-cell span { color: var(--muted); font-size: 11px; line-height: 1.6; }

.faculty-table { min-width: 480px; }
.faculty-table thead th { font-size: 10px; }
.faculty-group-row td {
  padding: 9px 12px !important; color: var(--muted); background: var(--surface-soft);
  font-size: 10px; letter-spacing: .06em;
}
.faculty-leaf-row { cursor: pointer; }
.faculty-leaf-row:hover { background: #fbfcff; }
.faculty-leaf-row td { padding: 7px 12px; }
.faculty-leaf-name strong { font-size: 12px; font-weight: 500; }
.faculty-leaf-go { width: 60px; color: var(--teal); font-size: 10px; text-align: right; }

.review-samples { display: grid; gap: 9px; margin-top: 10px; }
.review-sample { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.review-sample-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.review-sample-meta strong { font-size: 12px; font-weight: 500; }
.review-sample-meta span { color: var(--muted); font-size: 10px; }
.review-sample p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }

.stop-list { display: grid; gap: 8px; }
.stop-group { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.stop-group > strong { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; }
.stop-rows { display: grid; gap: 4px; }
.stop-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stop-name { color: var(--ink); font-weight: 500; white-space: nowrap; }

.summary-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.summary-chip {
  display: grid; gap: 2px; padding: 10px 13px; min-width: 92px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft);
}
.summary-chip strong { font-size: 15px; font-weight: 500; }
.summary-chip span { color: var(--muted); font-size: 10px; }

.notice-list { display: grid; gap: 10px; margin-top: 8px; }
.notice-row { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.notice-row strong { font-size: 11px; font-weight: 500; }
.notice-row p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.fold { margin-top: 6px; }
.fold summary { cursor: pointer; color: var(--teal); font-size: 12px; }

.doc-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: var(--surface); font: inherit; text-align: left; line-height: 1.4;
}
a.doc-chip { cursor: pointer; }
.doc-chip small { color: var(--muted); font-size: 10px; }
.doc-chip em { color: var(--blue); font-style: normal; font-size: 10px; }
.doc-chip.has-record { border-color: rgba(8, 127, 122, .4); color: #075e59; cursor: pointer; background: var(--teal-soft); }
.doc-chip.is-static { background: var(--surface-soft); }
.doc-chip.has-record:hover { border-color: var(--teal); }

.rec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rec-doctor {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft);
}
.rec-doctor strong { font-size: 12px; font-weight: 500; }
.rec-doctor .is-link { color: #075e59; cursor: pointer; }
.rec-doctor .is-link:hover { text-decoration: underline; }
.rec-doctor small { color: var(--muted); font-size: 10px; }
.rec-rank { margin-left: auto; color: var(--teal); font-size: 10px; white-space: nowrap; }

.preview-list { display: grid; gap: 8px; }
.preview-row { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.preview-row p { margin: 0 0 6px; font-size: 12px; line-height: 1.6; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.preview-meta span { color: var(--muted); font-size: 10px; }

/* Doctor detail extras: slogan, credentials, affiliations, consult records, articles, meta */
.doctor-slogan {
  margin: 0 0 14px; padding: 10px 14px;
  border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0;
  color: var(--muted); background: var(--surface-soft); font-size: 13px; line-height: 1.7;
}
.doctor-cred-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-bottom: 14px; }
.cred-chip {
  padding: 4px 10px; border-radius: 999px; color: #075e59;
  background: var(--teal-soft); font-size: 11px; font-weight: 500;
}
.cred-chip.is-muted { color: var(--muted); background: var(--surface-soft); font-weight: 400; }
.cred-note { color: var(--muted); font-size: 11px; }

.aff-list { display: grid; gap: 8px; }
.aff-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft);
}
.aff-row strong { grid-column: 1 / -1; font-size: 12px; font-weight: 500; }
.aff-row span { color: var(--muted); font-size: 11px; }
.aff-row a { font-size: 11px; }

.consult-rec-list { display: grid; gap: 8px; }
.consult-rec { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.consult-rec-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.consult-rec-meta span { color: var(--muted); font-size: 10px; }
.consult-rec-link { margin-left: auto; font-size: 10px; }
.consult-rec p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.7; }

.art-list { display: grid; gap: 6px; }
.art-row { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.art-row strong { font-size: 12px; font-weight: 500; }
.art-row a strong { color: var(--blue); }
.art-meta { margin-top: 4px; color: var(--muted); font-size: 10px; }

.detail-section .meta-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; }
.detail-section .meta-line span { color: var(--muted); font-size: 11px; }

tr[data-department-id]:focus-visible,
.hospital-card[data-hospital-id]:focus-visible,
.faculty-leaf-row:focus-visible,
.doc-chip.has-record:focus-visible,
.rec-doctor .is-link:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

/* ============ 全局搜索与医院搜索 ============ */
.global-search { position: relative; max-width: 760px; margin-bottom: 24px; }
.global-search-field {
  display: flex; align-items: center; gap: 11px; min-height: 52px;
  padding: 0 14px 0 16px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.global-search-field svg { width: 19px; flex: 0 0 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.global-search-field input {
  flex: 1 1 auto; min-width: 0; padding: 0; border: 0; outline: 0;
  color: var(--ink); background: transparent; font-size: 14px;
}
.global-search-field input::placeholder { color: var(--muted); opacity: .95; }
.global-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.global-search-kbd {
  flex: 0 0 auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); background: var(--surface-soft); font-size: 10px;
}
.global-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  overflow: hidden auto; max-height: 440px; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: 0 24px 50px rgba(23, 36, 61, .18);
}
.global-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 10px 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em;
}
.global-group-head small { color: var(--muted); font-size: 9px; letter-spacing: 0; }
.global-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 9px;
  color: var(--ink); background: transparent; cursor: pointer; font: inherit; text-align: left;
}
.global-row:hover { background: var(--surface-soft); }
.global-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.global-mark {
  display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px;
  color: #fff; background: var(--navy); font-size: 13px; font-weight: 500;
}
.global-row-main { min-width: 0; }
.global-row-main strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 500;
}
.global-row-main small {
  display: block; overflow: hidden; margin-top: 2px; color: var(--muted);
  font-size: 10px; text-overflow: ellipsis; white-space: nowrap;
}
.global-row-tag {
  flex: 0 0 auto; padding: 3px 8px; border-radius: 999px;
  color: var(--muted); background: var(--surface-soft); font-size: 9px; white-space: nowrap;
}
.global-row-tag.is-hospital { color: #5a3d8f; background: #f3edfc; }
.global-row-tag.is-directory, .global-row-tag.is-doctor { color: #075e59; background: var(--teal-soft); }
.global-row-tag.is-department { color: #285eaa; background: var(--blue-soft); }
.global-empty { padding: 22px 14px; color: var(--muted); font-size: 12px; text-align: center; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 14px; }

@media (max-width: 780px) {
  .global-search { max-width: none; }
  .global-search-kbd { display: none; }
}

.honor-head { margin: 0 0 10px; color: var(--text, #243447); }
.honor-head strong { color: #c8860d; font-size: 1.15em; }

/* =====================================================================
   详情弹窗视觉优化（医院 / 科室 / 医生共用）
   目标：粘性标题、区块卡片化、标题强调条、更清晰的信息层级
   ===================================================================== */
.dialog-content { padding: 0 30px 30px; }

.dialog-title {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -30px 20px;
  padding: 26px 30px 16px;
  background: linear-gradient(180deg, #fff 78%, rgba(255, 255, 255, .92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.dialog-title h2 { font-size: 24px; letter-spacing: -.01em; }
.dialog-title p { font-size: 12.5px; }

/* 区块卡片化 */
.detail-section {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 36, 61, .035);
}
.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.detail-section h3::before {
  content: "";
  width: 3px;
  height: 15px;
  flex: 0 0 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}
.detail-section p { font-size: 13px; line-height: 1.85; }
.detail-section li { font-size: 13px; line-height: 1.75; }
.detail-section.collection-meta {
  background: var(--surface-soft);
  border-style: dashed;
  box-shadow: none;
}
.detail-section.collection-meta h3::before { background: var(--line-strong); }

/* 指标格：更大数字、更柔和的底色 */
.detail-grid { gap: 11px; margin: 4px 0 6px; }
.detail-cell {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
}
.detail-cell span { font-size: 10.5px; margin-bottom: 6px; }
.detail-cell strong { font-size: 16px; font-weight: 600; color: var(--navy); }

/* 标签与胶囊 */
.tag-list { gap: 8px; }
.tag-list > span { padding: 5px 11px; font-size: 11.5px; }

/* 内部小卡：去掉双层边框感 */
.schedule-entry,
.review-sample,
.campus-cell,
.summary-chip,
.preview-row,
.stop-group,
.notice-row,
.rec-doctor {
  border-color: transparent;
  background: var(--surface-soft);
}
.schedule-entry { border: 1px solid var(--line); background: #fff; }
.campus-cell { border: 1px solid var(--line); background: #fff; }

/* 出诊排班：日期分组 + 时段徽标 */
.schedule-group { margin-bottom: 14px; }
.schedule-group:last-child { margin-bottom: 0; }
.schedule-group-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
}
.schedule-group-head strong { font-size: 13px; font-weight: 600; }
.schedule-group-head span { color: var(--muted); font-size: 11px; }
.schedule-entry { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 13px; }
.schedule-period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.schedule-period.is-morning { color: #1a5c9e; background: #e8f1fd; }
.schedule-period.is-afternoon { color: #9a6a00; background: #fff4e0; }
.schedule-period.is-evening { color: #5a3d8f; background: #f1ecfc; }
.schedule-period.is-other { color: var(--muted); background: var(--surface-soft); }
.schedule-main { display: grid; gap: 3px; min-width: 0; }
.schedule-main strong { font-size: 12.5px; font-weight: 600; }
.schedule-main span { color: var(--muted); font-size: 11px; }

/* 患者评价卡：满意度色条 */
.review {
  padding: 13px 15px;
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  margin-bottom: 9px;
}
.review:last-child { margin-bottom: 0; }
.review.is-good { border-left-color: #1f9d5b; }
.review.is-mid { border-left-color: #d99a1f; }
.review.is-bad { border-left-color: #d64545; }
.review .meta { gap: 6px 10px; margin-bottom: 7px; }
.review .meta span {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .85);
  font-size: 10.5px;
}
.review .body { font-size: 13px; line-height: 1.8; }

/* 长列表折叠 */
.list-fold { margin-top: 10px; }
.list-fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--teal);
  background: var(--surface);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  list-style: none;
}
.list-fold > summary::-webkit-details-marker { display: none; }
.list-fold > summary::after { content: "▾"; font-size: 10px; }
.list-fold[open] > summary::after { content: "▴"; }
.list-fold > summary:hover { border-color: var(--teal); background: var(--teal-soft); }
.list-fold[open] > summary { margin-bottom: 10px; }

/* 推荐专家列表更紧凑 */
.rec-list { gap: 6px; }
.rec-doctor { padding: 8px 12px; }

/* 底部按钮区 */
.dialog-foot { margin-top: 22px; padding-top: 18px; }

.detail-section p + p { margin-top: 10px; }
.detail-section .table-responsive { max-height: 420px; overflow: auto; border-radius: 10px; }
.list-fold > summary { user-select: none; }

.today-tag {
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}
