/* =========================================================
   医械网 · 医院信息库 子站共享样式
   风格与主站 https://www.yixie.net 统一（品牌色 #00a1a3）
   所有页面共用本文件：hospital/css/style.css
   ========================================================= */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  background: #f6f6f6;
}
a { color: #0679D4; text-decoration: none; }
a:hover { color: #00a1a3; text-decoration: underline; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #222; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 容器 ---------- */
.container { width: 1200px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部条 ---------- */
.topbar { background: #024893; color: #cfe3ff; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #cfe3ff; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; align-items: center; }

/* ---------- 主头部 ---------- */
.header { background: #ffffff; border-bottom: 3px solid #00a1a3; }
.header .container { display: flex; align-items: center; padding: 18px 0; }
.logo { display: flex; align-items: center; }
.logo .logo-img { height: 42px; width: auto; display: block; margin-right: 12px; border-radius: 6px; }
.logo .logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, #00a1a3, #0679D4);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px;
}
.logo .logo-text { line-height: 1.2; }
.logo .logo-text .site-sub { font-size: 12px; color: #999; letter-spacing: 1px; }

/* 搜索框 */
.search { flex: 1; max-width: 520px; margin: 0 30px; position: relative; }
.search-form { display: flex; border: 2px solid #00a1a3; border-radius: 4px; overflow: hidden; }
.search input {
  flex: 1; border: 0; padding: 0 14px; height: 38px; font-size: 14px; outline: none;
}
.search button {
  border: 0; background: #00a1a3; color: #fff; padding: 0 26px;
  font-size: 15px; cursor: pointer;
}
.search button:hover { background: #00898b; }
.search-results {
  display: none; position: absolute; top: 46px; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 360px; overflow-y: auto;
}
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-results li a {
  display: block; padding: 9px 14px; border-bottom: 1px solid #f2f2f2; text-decoration: none;
}
.search-results li a:hover { background: #f3fbfb; }
.search-results .sr-name { display: block; color: #222; font-size: 15px; }
.search-results .sr-meta { display: block; color: #999; font-size: 12px; margin-top: 2px; }
.search-results .sr-empty { padding: 14px; color: #999; font-size: 13px; }

.header .header-link { color: #666; font-size: 14px; margin-left: 18px; }
.header .header-link:hover { color: #00a1a3; }

/* ---------- 主导航 ---------- */
.nav { background: #00a1a3; }
.nav .container { display: flex; }
.nav a {
  display: block; color: #e8ffff; padding: 0 22px; height: 44px;
  line-height: 44px; font-size: 15px;
}
.nav a:hover, .nav a.active { background: #00898b; color: #fff; text-decoration: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid #eee; font-size: 13px; color: #999; }
.breadcrumb .container { padding: 12px 0; }
.breadcrumb a { color: #0679D4; }
.breadcrumb span.sep { margin: 0 8px; color: #ccc; }

/* ---------- 主体布局 ---------- */
.main { padding: 24px 0 40px; }
.section { background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 22px; }
.section-hd {
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.section-hd h2 { font-size: 18px; color: #024893; position: relative; padding-left: 12px; }
.section-hd h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; background: #00a1a3; border-radius: 2px;
}
.section-bd { padding: 18px 20px; }

/* ---------- 首页：省份卡片 ---------- */
.province-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.province-card {
  width: calc(25% - 11px); border: 1px solid #eee; border-radius: 6px;
  padding: 14px 16px; background: #fafafa; transition: all .2s;
}
.province-card:hover { border-color: #00a1a3; box-shadow: 0 2px 10px rgba(0,161,163,.12); }
.province-card .p-name { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 8px; }
.province-card .p-cities { font-size: 13px; color: #666; line-height: 1.9; }
.province-card .p-cities a { margin-right: 10px; white-space: nowrap; }

/* ---------- 城市列表页：分类区块 ---------- */
.cat-group { margin-bottom: 26px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-title {
  font-size: 16px; font-weight: 700; color: #fff; background: #0679D4;
  display: inline-block; padding: 5px 16px; border-radius: 4px; margin-bottom: 14px;
}
.cat-sub-title {
  font-size: 15px; font-weight: 700; color: #00a1a3; margin: 14px 0 10px;
  padding-left: 10px; border-left: 3px solid #00a1a3;
}
.hospital-list { display: flex; flex-wrap: wrap; gap: 12px; }
.hospital-item {
  width: calc(33.333% - 8px); border: 1px solid #eee; border-radius: 6px;
  padding: 14px 16px; background: #fafafa; transition: all .2s;
}
.hospital-item:hover { border-color: #00a1a3; background: #f5fbfb; }
.hospital-item .h-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hospital-item .h-name a { color: #222; }
.hospital-item .h-name a:hover { color: #00a1a3; }
.hospital-item .h-meta { font-size: 12px; color: #999; }
.hospital-item .h-tag {
  display: inline-block; font-size: 12px; color: #00a1a3;
  background: #e6f7f7; border-radius: 3px; padding: 1px 8px; margin-top: 6px;
}
.empty-tip { color: #999; font-size: 13px; padding: 6px 0; }

/* ---------- 医院详情页 ---------- */
.hospital-header {
  background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 22px 24px; margin-bottom: 22px;
}
.hospital-header .h-title { font-size: 24px; color: #024893; margin-bottom: 6px; }
.hospital-header .h-level { font-size: 13px; color: #fff; background: #2BA245; padding: 2px 10px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
.hospital-header .h-level.private { background: #FF7300; }
.hospital-info { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 40px; }
.hospital-info .info-item { font-size: 14px; color: #555; }
.hospital-info .info-item b { color: #333; font-weight: 700; }
.detail-block { background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 22px; }
.detail-block .db-hd {
  padding: 14px 22px; border-bottom: 1px solid #f0f0f0; font-size: 17px; font-weight: 700;
  color: #024893; position: relative; padding-left: 34px;
}
.detail-block .db-hd::before {
  content: ""; position: absolute; left: 20px; top: 16px; bottom: 16px;
  width: 4px; background: #00a1a3; border-radius: 2px;
}
.detail-block .db-bd { padding: 18px 24px; font-size: 14px; color: #444; line-height: 1.9; }
.detail-block .db-bd p { margin-bottom: 12px; }
.detail-block .db-bd p:last-child { margin-bottom: 0; }

/* 特色科室 / 医生列表 */
.feature-list { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-card {
  width: calc(33.333% - 8px); border: 1px dashed #cfeeee; border-radius: 6px;
  padding: 14px 16px; background: #f7fdfd;
}
.feature-card .f-name { font-weight: 700; color: #00a1a3; margin-bottom: 6px; }
.feature-card .f-desc { font-size: 13px; color: #666; }
.person-list { display: flex; flex-wrap: wrap; gap: 14px; }
.person-card { width: calc(25% - 11px); text-align: center; border: 1px solid #eee; border-radius: 6px; padding: 16px 10px; background: #fafafa; }
.person-card .p-avatar {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px;
  background: #e6f7f7; color: #00a1a3; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.person-card .p-name { font-weight: 700; color: #222; }
.person-card .p-role { font-size: 12px; color: #999; margin: 4px 0 6px; }
.person-card .p-desc { font-size: 12px; color: #666; line-height: 1.6; }

/* ---------- 侧栏 ---------- */
.sidebar { width: 280px; float: right; }
.sidebar .side-box { background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 18px; }
.sidebar .side-hd { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-weight: 700; color: #024893; }
.sidebar .side-bd { padding: 12px 16px; }
.sidebar .side-bd a { display: block; padding: 5px 0; color: #555; font-size: 13px; }
.sidebar .side-bd a:hover { color: #00a1a3; }
.content-main { width: calc(100% - 300px); float: left; }

/* ---------- 分页/统计 ---------- */
.stat-bar { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 14px 20px; margin-bottom: 22px; color: #666; font-size: 13px; }
.stat-bar b { color: #00a1a3; }

/* ---------- 页脚 ---------- */
.footer { background: #1f2d3d; color: #9fb0c0; margin-top: 30px; }
.footer .container { padding: 30px 0 20px; text-align: center; }
.footer a { color: #9fb0c0; }
.footer a:hover { color: #fff; }
.footer .foot-links { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 18px; margin-bottom: 16px; font-size: 13px; width: 100%; }
.footer .foot-copy { font-size: 12px; color: #6b7c8c; border-top: 1px solid #2c3e50; padding-top: 16px; line-height: 1.9; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container { width: 100%; }
  .search { display: none; }
  .province-card, .hospital-item, .feature-card, .person-card,
  .content-main, .sidebar { width: 100%; float: none; }
  .nav .container { overflow-x: auto; }
}

/* ===================== 分类目录查询站 扩展样式 ===================== */
.section h2 { font-size: 18px; color: #024893; position: relative; padding-left: 12px; }
.section h2::before { content:""; position:absolute; left:0; top:3px; bottom:3px; width:4px; background:#00a1a3; border-radius:2px; }
.intro { color:#666; font-size:14px; line-height:1.9; }
.intro b { color:#00a1a3; }
/* 统计条 */
.stat-bar { background:#fff; border:1px solid #eee; border-radius:6px; padding:16px 20px; margin-bottom:22px; color:#555; font-size:14px; line-height:1.9; }
.stat-bar b { color:#00a1a3; font-size:16px; }
/* 筛选栏 */
.filter-bar { background:#fff; border:1px solid #eee; border-radius:6px; padding:18px 20px; margin-bottom:22px; }
.filter-row { display:flex; flex-wrap:wrap; gap:14px 22px; align-items:flex-end; }
.filter-item { display:flex; flex-direction:column; }
.filter-item label { font-size:13px; color:#888; margin-bottom:6px; }
.filter-item select, .filter-item input {
  height:38px; border:1px solid #ddd; border-radius:4px; padding:0 10px; font-size:14px;
  min-width:170px; background:#fff; color:#333; outline:none; }
.filter-item input { min-width:260px; }
.filter-item select:focus, .filter-item input:focus { border-color:#00a1a3; }
.filter-actions { display:flex; gap:10px; margin-left:auto; }
.btn {
  height:38px; padding:0 22px; border:0; border-radius:4px; font-size:14px; cursor:pointer;
  background:#00a1a3; color:#fff; }
.btn:hover { background:#00898b; }
.btn-ghost { background:#fff; color:#00a1a3; border:1px solid #00a1a3; }
.btn-ghost:hover { background:#f3fbfb; }
/* 结果表 */
.result-meta { color:#666; font-size:13px; margin-bottom:12px; }
.result-meta b { color:#00a1a3; }
.table-wrap { background:#fff; border:1px solid #eee; border-radius:6px; overflow:hidden; margin-bottom:22px; }
table.catalog { width:100%; border-collapse:collapse; font-size:13.5px; }
table.catalog th, table.catalog td { padding:11px 12px; border-bottom:1px solid #f0f0f0; text-align:left; }
table.catalog thead th { background:#024893; color:#fff; font-weight:600; position:sticky; top:0; white-space:nowrap; }
table.catalog tbody tr:hover { background:#f3fbfb; }
table.catalog td a { color:#0679D4; }
table.catalog td a:hover { color:#00a1a3; }
table.catalog .col-id { color:#999; font-family:Consolas,Menlo,monospace; white-space:nowrap; }
table.catalog .col-name { font-weight:600; color:#222; }
.table-scroll { width:100%; overflow-x:auto; }
/* 等级徽章 */
.lv { display:inline-block; min-width:34px; text-align:center; padding:2px 8px; border-radius:3px; font-size:12px; font-weight:700; white-space:nowrap; }
.lv-low  { background:#e8f7ec; color:#1a7f37; }
.lv-mid  { background:#e6f1fb; color:#0679D4; }
.lv-high { background:#fdeede; color:#c8740a; }
.lv-top  { background:#fde8e8; color:#c0392b; }
.lv-none { background:#f2f2f2; color:#bbb; }
/* 分页 */
.pager { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center; margin:18px 0 6px; }
.pager a, .pager span { display:inline-block; min-width:34px; height:34px; line-height:34px; text-align:center;
  border:1px solid #e3e3e3; border-radius:4px; color:#555; font-size:13px; padding:0 8px; }
.pager a:hover { border-color:#00a1a3; color:#00a1a3; text-decoration:none; }
.pager .cur { background:#00a1a3; color:#fff; border-color:#00a1a3; }
.pager .disabled { color:#ccc; }
/* 分类树 */
.cat-tree { background:#fff; border:1px solid #eee; border-radius:6px; padding:18px 22px; margin-bottom:22px; }
.cat-tree .sub-block { margin-bottom:18px; padding-bottom:14px; border-bottom:1px dashed #eee; }
.cat-tree .sub-block:last-child { border-bottom:0; margin-bottom:0; padding-bottom:0; }
.cat-tree .sub-title { font-size:16px; font-weight:700; color:#024893; margin-bottom:10px; }
.cat-tree .l1-group { margin-left:14px; margin-bottom:10px; }
.cat-tree .l1-title { font-size:14px; font-weight:700; color:#00a1a3; margin:8px 0 6px; }
.cat-tree .l2-links { display:flex; flex-wrap:wrap; gap:6px 10px; }
.cat-tree .l2-links a { font-size:13px; color:#555; background:#f6f6f6; border:1px solid #eee; border-radius:3px; padding:3px 9px; }
.cat-tree .l2-links a:hover { border-color:#00a1a3; color:#00a1a3; text-decoration:none; background:#f3fbfb; }
/* 详情页 */
.detail-sys { width:100%; border-collapse:collapse; font-size:14px; margin-bottom:8px; }
.detail-sys th, .detail-sys td { padding:12px 14px; border:1px solid #eef0f2; vertical-align:top; }
.detail-sys thead th { background:#024893; color:#fff; }
.detail-sys tbody th { background:#f7fafb; color:#024893; width:120px; white-space:nowrap; }
.detail-sys .rep { color:#1a7f37; }
.detail-sys .note { color:#888; font-size:13px; }
.kv { background:#fff; border:1px solid #eee; border-radius:6px; padding:16px 20px; margin-bottom:22px; font-size:14px; color:#444; line-height:1.9; }
.kv b { color:#333; }
.names-box { background:#f7fdfd; border:1px solid #cfeeee; border-radius:6px; padding:14px 18px; line-height:1.9; color:#444; }
@media (max-width:768px){
  .filter-item select, .filter-item input { min-width:140px; }
  .filter-item input { min-width:200px; }
  table.catalog { font-size:12.5px; }
}
