/* ============================================================
   医院影像信息查询页样式（暗蓝 + 奶油金，与主页一致）
   ============================================================ */
:root {
  --bg: #070d1d;
  --bg-2: #04070f;
  --panel: rgba(16, 25, 48, 0.72);
  --panel-2: rgba(7, 12, 26, 0.82);
  --gold: #faf5cb;
  --gold-bright: #fffef9;
  --gold-deep: #e6d69f;
  --gold-glow: rgba(250, 245, 203, 0.55);
  --line: rgba(236, 224, 173, 0.18);
  --line-strong: rgba(236, 224, 173, 0.4);
  --text: #e8ecf6;
  --faint: #8a93ad;
  --ok: #5fd6a0;
  --ok-bg: rgba(95, 214, 160, 0.12);
  --no: #79839e;
  --no-bg: rgba(121, 131, 158, 0.1);
  --accent: #6ea8ff;
  --font-kai: "Ma Shan Zheng", "STXingkai", "KaiTi", "楷体", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px circle at 50% -10%, rgba(250, 245, 203, 0.08), transparent 60%),
    radial-gradient(800px circle at 80% 110%, rgba(79, 127, 212, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.hosp-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- 头部 ---------- */
.hosp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.hosp-brand { display: flex; align-items: center; gap: 14px; }
.hosp-tai { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(250,245,203,.35)); }
.hosp-brand-txt h1 {
  margin: 0; font-size: 24px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold); text-shadow: 0 0 18px var(--gold-glow);
}
.hosp-brand-txt p { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.hosp-back {
  text-decoration: none; color: var(--gold-deep); font-size: 14px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: all .25s; white-space: nowrap;
}
.hosp-back:hover { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }

/* ---------- 查询条件 ---------- */
.hosp-search {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 18px; margin-bottom: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.hosp-search-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.hosp-field { display: flex; flex-direction: column; gap: 7px; }
.hosp-field > span {
  font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.12em;
}
.hosp-field input, .hosp-field select {
  width: 100%; padding: 11px 13px; font-size: 14.5px; color: var(--text);
  background: rgba(4, 8, 18, 0.7); border: 1px solid var(--line); border-radius: 10px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.hosp-field input::placeholder { color: #5a637c; }
.hosp-field input:focus, .hosp-field select:focus {
  border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(236,224,173,.12);
}
.hosp-field select option { background: #0b1224; color: var(--text); }
.hosp-search-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hosp-btn {
  cursor: pointer; font-family: inherit; font-size: 14.5px; letter-spacing: 0.06em;
  padding: 10px 26px; border-radius: 10px; border: 1px solid transparent; transition: all .22s;
}
.hosp-btn.primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1407; font-weight: 600;
  box-shadow: 0 8px 22px rgba(236,224,173,.25);
}
.hosp-btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hosp-btn.ghost { background: transparent; color: var(--gold-deep); border-color: var(--line); }
.hosp-btn.ghost:hover { background: rgba(236,224,173,.08); border-color: var(--line-strong); }
.hosp-count { margin-left: auto; font-size: 13px; color: var(--faint); }
.hosp-count b { color: var(--gold); font-weight: 600; }

/* ---------- 结果区 ---------- */
.hosp-results { display: flex; flex-direction: column; gap: 20px; }
.hosp-hint, .hosp-empty, .hosp-error {
  text-align: center; color: var(--faint); font-size: 15px; padding: 60px 20px;
  border: 1px dashed var(--line); border-radius: 16px; background: rgba(7,12,26,.4);
}
.hosp-error { color: #ff9b9b; border-color: rgba(255,120,120,.3); }
.hosp-loading { text-align: center; padding: 50px 20px; color: var(--gold-deep); font-size: 15px; }
.hosp-loading::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%;
  animation: hospSpin .8s linear infinite; vertical-align: -2px;
}
@keyframes hospSpin { to { transform: rotate(360deg); } }

/* ---------- 医院卡片 ---------- */
.hosp-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}
.hosp-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.hosp-card-head h2 {
  margin: 0; font-size: 20px; font-weight: 600; color: var(--gold-bright);
  letter-spacing: 0.04em; text-shadow: 0 0 14px var(--gold-glow);
}
.hosp-level {
  font-size: 12px; color: #1a1407; font-weight: 600; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}
.hosp-tag {
  font-size: 11.5px; color: var(--faint); padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(236,224,173,.05);
}

/* ---------- 三块通用：主题色（A 通史金 #d8b56a / B 系统青 #4fc3f7 / C 硬件青绿 #5fb3a1） ---------- */
.hosp-block { --b-accent:#d8b56a; --b-soft:rgba(216,181,106,.14); }
.hosp-block.block-a { --b-accent:#d8b56a; --b-soft:rgba(216,181,106,.14); }
.hosp-block.block-b { --b-accent:#4fc3f7; --b-soft:rgba(79,195,247,.14); }
.hosp-block.block-c { --b-accent:#5fb3a1; --b-soft:rgba(95,179,161,.14); }
.hosp-block {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--b-accent);
  background: linear-gradient(95deg, var(--b-soft), transparent 72%);
}
.hosp-block:first-of-type { margin-top: 4px; }
.hosp-block-title {
  display: flex; align-items: center; gap: 9px; margin-bottom: 13px;
  font-size: 14px; color: var(--b-accent); letter-spacing: 0.1em; font-weight: 600;
  cursor: pointer; user-select: none;
}
.hosp-block-title:hover { filter: brightness(1.08); }
/* 序号徽标：与首页「零壹贰」印章同源（楷体 + 方印 + 内圈描边），正立不旋转 */
/* 光学居中：楷体墨迹天然偏下偏左，用内边距做亚像素补偿（像素实测 ΔV/ΔH 归零） */
.hosp-block-title .idx {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px;
  font-family: var(--font-kai); font-size: 15px; line-height: 1;
  padding-left: 1.4px; padding-bottom: 0.75px;
  color: #0a1020; background: var(--b-accent);
  box-shadow: 0 0 12px var(--b-soft), inset 0 0 0 1px rgba(250, 245, 203, 0.45);
  flex-shrink: 0;
}
.hosp-block-title .en { color: var(--faint); font-size: 11px; letter-spacing: 0.18em; font-weight: 400; }
/* 展开/收起小三角：默认朝下（展开），收起时旋转朝右 */
.hosp-toggle {
  margin-left: auto; width: 0; height: 0; flex-shrink: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid var(--b-accent);
  transition: transform .25s ease;
}
.hosp-block.collapsed { margin-bottom: 0; }
.hosp-block.collapsed .hosp-toggle { transform: rotate(-90deg); }
.hosp-block.collapsed .hosp-block-body { display: none; }

/* ---------- A 基本信息（通史金） ---------- */
.hosp-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px;
}
.hosp-info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hosp-info-item .k { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.hosp-info-item .v { font-size: 14.5px; color: var(--text); word-break: break-word; line-height: 1.5; }
.hosp-info-item .v.empty { color: #55607a; font-style: italic; }
.hosp-info-item .v .u { color: var(--b-accent); margin-left: 3px; font-size: 12px; }
.hosp-info-item .v a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(110,168,255,.5); }
.hosp-info-item .v a:hover { color: #a9ccff; }
.hosp-block.block-a .hosp-info-item .v a { color: var(--b-accent); border-bottom-color: var(--b-soft); }
.hosp-block.block-a .hosp-info-item .v a:hover { color: #f0d79a; }
.hosp-span-2 { grid-column: 1 / -1; }

/* 医院简介（官网抓取回填） */
.hosp-intro { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.12); }
.hosp-intro .k { display: block; font-size: 12px; color: var(--faint); letter-spacing: 0.08em; margin-bottom: 6px; }
.hosp-intro .v { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.7; word-break: break-word;
  opacity: .92; max-height: 120px; overflow: hidden; position: relative; }
.hosp-intro .v::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: linear-gradient(transparent, rgba(7, 12, 26, 0.9)); pointer-events: none; }

/* ---------- B 影像系统（系统青） ---------- */
.hosp-sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hosp-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(4,8,18,.45); font-size: 13.5px;
}
.hosp-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.hosp-chip .nm { color: var(--text); }
.hosp-chip .st { margin-left: auto; font-size: 11.5px; letter-spacing: 0.04em; }
.hosp-chip.off { border-color: rgba(121,131,158,.25); background: var(--no-bg); }
.hosp-chip.off .dot { color: var(--no); background: var(--no); }
.hosp-chip.off .st  { color: var(--no); }
.hosp-block.block-b .hosp-chip.on { border-color: rgba(79,195,247,.45); background: rgba(79,195,247,.12); }
.hosp-block.block-b .hosp-chip.on .dot { color: var(--b-accent); background: var(--b-accent); }
.hosp-block.block-b .hosp-chip.on .st  { color: var(--b-accent); }
/* 有历史：可点击，状态显示当前厂家名 */
.hosp-chip.has-hist { cursor: pointer; }
.hosp-chip.has-hist:hover { border-color: var(--b-accent); box-shadow: 0 0 14px rgba(79,195,247,.25); }
.hosp-chip.has-hist .st { color: #ffe6a3; font-weight: 600; }
.hosp-chip.has-hist::after { content: '›'; margin-left: 4px; color: var(--b-accent); opacity: .7; }

/* ---------- 影像系统历史时间轴弹窗 ---------- */
.hosp-tl-mask {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 14, 0.66); backdrop-filter: blur(3px); padding: 24px;
}
.hosp-tl-modal {
  width: min(560px, 94vw); max-height: 80vh; overflow: auto; border-radius: 16px;
  background: rgba(10, 16, 32, 0.92); border: 1px solid rgba(79,195,247,.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(79,195,247,.12); color: var(--text);
}
.hosp-tl-head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(10, 16, 32, 0.96); backdrop-filter: blur(4px);
}
.hosp-tl-title { font-size: 16px; font-weight: 600; letter-spacing: .04em; color: #cfe6ff; }
.hosp-tl-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: transparent; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer;
}
.hosp-tl-close:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.hosp-tl-body { padding: 18px 24px 24px; }
.hosp-tl-loading, .hosp-tl-empty { color: var(--faint); font-size: 13.5px; line-height: 1.8; text-align: center; padding: 24px 0; }
.hosp-tl-list { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.hosp-tl-list::before {
  content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(rgba(79,195,247,.7), rgba(79,195,247,.15));
}
.hosp-tl-item { position: relative; padding: 0 0 22px 34px; }
.hosp-tl-item:last-child { padding-bottom: 4px; }
.hosp-tl-dot {
  position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--b-accent); box-shadow: 0 0 0 4px rgba(79,195,247,.18);
}
.hosp-tl-time { font-size: 12.5px; color: var(--faint); letter-spacing: .03em; }
.hosp-tl-vendor { font-size: 15px; font-weight: 600; color: #ffe6a3; margin-top: 2px; }
.hosp-tl-amount {
  display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  color: #b9ffd8; background: rgba(95,214,160,.14); border: 1px solid rgba(95,214,160,.3);
}
.hosp-tl-talent { font-size: 12.5px; color: var(--text); opacity: .82; margin-top: 4px; line-height: 1.6; }

/* ---------- C 设备信息（硬件青绿） ---------- */
.hosp-eq-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hosp-eq {
  text-align: center; padding: 14px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(16,25,48,.6), rgba(7,12,26,.6));
}
.hosp-eq .nm { font-size: 12.5px; color: var(--faint); letter-spacing: 0.05em; }
.hosp-eq .num { font-size: 22px; font-weight: 700; color: var(--gold); margin-top: 4px; line-height: 1; }
.hosp-eq .unit { font-size: 11px; color: var(--gold-deep); margin-top: 2px; }
.hosp-block.block-c .hosp-eq .num { color: var(--b-accent); }
.hosp-block.block-c .hosp-eq .unit { color: var(--b-accent); opacity: .9; }
/* 设备未收集时显示“未更新” */
.hosp-eq.no-data { border-style: dashed; border-color: rgba(255,255,255,.08); background: rgba(8,12,24,.4); }
.hosp-eq .num-uncollected { font-size: 15px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }

/* 时间轴弹窗隐藏兜底（避免 CSS display 覆盖 [hidden]） */
.hosp-tl-mask[hidden] { display: none !important; }

/* ---------- 分页 ---------- */
.hosp-pager {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px;
}
.hosp-page-btn {
  cursor: pointer; font-family: inherit; font-size: 14px; color: var(--gold-deep);
  padding: 9px 22px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  transition: all .22s;
}
.hosp-page-btn:hover:not(:disabled) { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }
.hosp-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.hosp-page-info { font-size: 13.5px; color: var(--faint); }
.hosp-page-info b { color: var(--gold); }

.hosp-foot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: #5d6b86; line-height: 1.7; text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hosp-shell { padding: 20px 14px 40px; }
  .hosp-search-row { grid-template-columns: 1fr; }
  .hosp-info-grid { grid-template-columns: 1fr; }
  .hosp-sys-grid { grid-template-columns: repeat(2, 1fr); }
  .hosp-eq-grid { grid-template-columns: repeat(3, 1fr); }
  .hosp-card-head h2 { font-size: 18px; }
}
@media (max-width: 420px) {
  .hosp-sys-grid { grid-template-columns: 1fr; }
  .hosp-eq-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 详情聚焦返回链接 ---------- */
.hosp-backlink {
  color: var(--gold-deep); text-decoration: none; font-size: 14px;
  border-bottom: 1px dashed rgba(230, 214, 159, 0.5);
}
.hosp-backlink:hover { color: var(--gold-bright); }
