/* =========================================================
   医械网 · 医院信息库 子站共享样式
   风格与主站 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; }
}
