/* ============================================================
   影像专家查询页样式（暗蓝 + 奶油金，与主页一致）
   三块主题色沿用医院页：零 基本信息=通史金 #d8b56a / 壹 专家专长=系统青 #4fc3f7 / 贰 联系专家=硬件青绿 #5fb3a1
   ============================================================ */
: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;
  --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(192, 202, 51, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.exp-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- 头部 ---------- */
.exp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.exp-brand { display: flex; align-items: center; gap: 14px; }
.exp-tai { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(250,245,203,.35)); }
.exp-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);
}
.exp-brand-txt p { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.exp-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;
}
.exp-back:hover { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }

/* ---------- 查询条件 ---------- */
.exp-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);
}
.exp-search-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.exp-field { display: flex; flex-direction: column; gap: 7px; }
.exp-field > span { font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.12em; }
.exp-field input, .exp-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;
}
.exp-field input::placeholder { color: #5a637c; }
.exp-field input:focus, .exp-field select:focus {
  border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(236,224,173,.12);
}
.exp-field select option { background: #0b1224; color: var(--text); }
.exp-search-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.exp-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;
}
.exp-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);
}
.exp-btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.exp-btn.ghost { background: transparent; color: var(--gold-deep); border-color: var(--line); }
.exp-btn.ghost:hover { background: rgba(236,224,173,.08); border-color: var(--line-strong); }
.exp-count { margin-left: auto; font-size: 13px; color: var(--faint); }
.exp-count b { color: var(--gold); font-weight: 600; }

/* ---------- 结果区 ---------- */
.exp-results { display: flex; flex-direction: column; gap: 20px; }
.exp-hint, .exp-empty, .exp-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);
}
.exp-error { color: #ff9b9b; border-color: rgba(255,120,120,.3); }
.exp-loading { text-align: center; padding: 50px 20px; color: var(--gold-deep); font-size: 15px; }
.exp-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: expSpin .8s linear infinite; vertical-align: -2px;
}
@keyframes expSpin { to { transform: rotate(360deg); } }

/* ---------- 专家卡片 ---------- */
.exp-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);
}
.exp-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.exp-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);
}
.exp-cat {
  font-size: 12px; color: #1a1407; font-weight: 600; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}
.exp-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);
}

/* ---------- 三块通用：主题色 + 小三角（默认朝下展开，收起旋转朝右） ---------- */
.exp-block { --b-accent:#d8b56a; --b-soft:rgba(216,181,106,.14); }
.exp-block.block-a { --b-accent:#d8b56a; --b-soft:rgba(216,181,106,.14); }
.exp-block.block-b { --b-accent:#4fc3f7; --b-soft:rgba(79,195,247,.14); }
.exp-block.block-c { --b-accent:#5fb3a1; --b-soft:rgba(95,179,161,.14); }
.exp-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%);
}
.exp-block:first-of-type { margin-top: 4px; }
.exp-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;
}
.exp-block-title:hover { filter: brightness(1.08); }
/* 序号徽标：与首页「零壹贰」印章同源（楷体 + 方印 + 内圈描边），正立不旋转 */
/* 光学居中：楷体墨迹天然偏下偏左，用内边距做亚像素补偿（像素实测 ΔV/ΔH 归零） */
.exp-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;
}
.exp-block-title .en { color: var(--faint); font-size: 11px; letter-spacing: 0.18em; font-weight: 400; }
.exp-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;
}
.exp-block.collapsed { margin-bottom: 0; }
.exp-block.collapsed .exp-toggle { transform: rotate(-90deg); }
.exp-block.collapsed .exp-block-body { display: none; }

/* ---------- A 专家基本信息（通史金） ---------- */
.exp-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.exp-info-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exp-info-item .k { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.exp-info-item .v { font-size: 14.5px; color: var(--text); word-break: break-word; line-height: 1.5; }
.exp-info-item .v.empty { color: #55607a; font-style: italic; }
.exp-span-2 { grid-column: 1 / -1; }

/* ---------- B 专家专长（系统青） ---------- */
.exp-spec { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.exp-spec .chip {
  font-size: 12.5px; color: var(--b-accent); padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--b-soft); background: rgba(79,195,247,.10);
}
.exp-bio {
  font-size: 13.5px; line-height: 1.9; color: var(--text);
  white-space: pre-wrap; word-break: break-word; text-align: justify;
}
.exp-bio.empty { color: #55607a; font-style: italic; }

/* ---------- C 联系专家（硬件青绿） ---------- */
.exp-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.exp-contact-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exp-contact-item .k { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.exp-contact-item .v { font-size: 14.5px; color: var(--text); word-break: break-all; line-height: 1.5; }
.exp-contact-item .v a { color: var(--b-accent); text-decoration: none; border-bottom: 1px dashed var(--b-soft); }
.exp-contact-item .v a:hover { filter: brightness(1.15); }
.exp-contact-fallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--ink-dim, #c3cadd); line-height: 1.7;
}
.exp-contact-mail {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 13.5px; letter-spacing: 0.04em; color: #0a1020; font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--b-accent), color-mix(in srgb, var(--b-accent) 70%, #123));
  box-shadow: 0 6px 18px var(--b-soft); transition: filter .25s, transform .2s;
}
.exp-contact-mail:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- 分页 ---------- */
.exp-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.exp-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;
}
.exp-page-btn:hover:not(:disabled) { background: rgba(236,224,173,.1); border-color: var(--line-strong); color: var(--gold-bright); }
.exp-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.exp-page-info { font-size: 13.5px; color: var(--faint); }
.exp-page-info b { color: var(--gold); }

.exp-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;
}
.exp-foot a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px dashed var(--line); }
.exp-foot a:hover { color: var(--gold-bright); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .exp-shell { padding: 20px 14px 40px; }
  .exp-search-row { grid-template-columns: 1fr; }
  .exp-info-grid { grid-template-columns: 1fr; }
  .exp-contact-grid { grid-template-columns: 1fr; }
  .exp-card-head h2 { font-size: 18px; }
}
@media (max-width: 420px) {
  .exp-search-actions { flex-wrap: wrap; }
  .exp-count { margin-left: 0; width: 100%; }
}
