/* ============ 文章筛选栏 ============ */
.news-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px; justify-content: center;
}
.filter-item {
  padding: 8px 18px; border-radius: 20px;
  background: #fff; color: var(--text); font-size: 14px;
  border: 1px solid var(--border); transition: all .15s;
}
.filter-item:hover { border-color: var(--primary); color: var(--primary); }
.filter-item.is-active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============ 分页 ============ */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 40px; flex-wrap: wrap;
}
.page-link {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-size: 14px;
  transition: all .15s; min-width: 38px; text-align: center;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.is-active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============ 空状态 ============ */
.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 0; color: var(--text-light); font-size: 15px;
}



/* ============ 面包屑 ============ */

.breadcrumb {

  padding: 20px 0; font-size: 13px; color: var(--text-sub);

  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;

}

.breadcrumb a { color: var(--text-sub); }

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb .sep { margin: 0 6px; color: #ccc; }

.breadcrumb .current { color: var(--text); }



/* ============ 详情页布局 ============ */

.detail-layout {

  display: grid; grid-template-columns: 1fr 320px;

  gap: 40px; padding: 20px 0 60px;

}



/* ============ 文章主体 ============ */

.detail-header { margin-bottom: 24px; }

.detail-cat {

  display: inline-block; padding: 3px 10px; margin-bottom: 12px;

  background: var(--primary-light); color: var(--primary-dark);

  font-size: 12px; border-radius: 3px;

}

.detail-title {

  font-size: 28px; font-weight: bold; line-height: 1.4;

  color: var(--text); margin-bottom: 14px;

}

.detail-meta {

  display: flex; gap: 12px; flex-wrap: wrap;

  font-size: 13px; color: var(--text-light);

}

.detail-cover {

  margin: 24px 0; border-radius: 8px; overflow: hidden;

}

.detail-cover img { width: 100%; display: block; }

.detail-summary {

  padding: 18px 20px; margin-bottom: 28px;

  background: var(--primary-light); border-left: 4px solid var(--primary);

  color: var(--text-sub); font-size: 14px; line-height: 1.8; border-radius: 4px;

}



/* ============ 文章正文排版 ============ */

.article-content {

  font-size: 15px; line-height: 1.9; color: var(--text); word-wrap: break-word;

}

.article-content p { margin: 18px 0; }

.article-content h2 {

  font-size: 20px; font-weight: bold; color: var(--text);

  margin: 36px 0 16px; padding-bottom: 8px;

  border-bottom: 1px solid var(--border);

}

.article-content h3 {

  font-size: 17px; font-weight: bold; color: var(--text); margin: 28px 0 12px;

}

.article-content img {

  max-width: 100%; display: block; margin: 20px auto; border-radius: 4px;

}

.article-content ul, .article-content ol {

  padding-left: 24px; margin: 16px 0;

}

.article-content ul { list-style: disc; }

.article-content ol { list-style: decimal; }

.article-content li { margin: 8px 0; }

.article-content blockquote {

  margin: 20px 0; padding: 14px 20px;

  background: var(--bg); border-left: 4px solid var(--primary);

  color: var(--text-sub);

}

.article-content a { color: var(--primary); text-decoration: underline; }

.article-content table {

  width: 100%; margin: 20px 0; font-size: 14px;

}

.article-content th, .article-content td {

  padding: 10px 14px; border: 1px solid var(--border); text-align: left;

}

.article-content th { background: var(--bg); font-weight: bold; }



/* ============ 免责声明 ============ */

.article-footer { margin-top: 40px; }

.disclaimer {

  padding: 16px 20px; background: #fff8e6; border-radius: 4px;

  font-size: 13px; color: #8a6d3b; line-height: 1.7;

}



/* ============ 上一篇 / 下一篇 ============ */

.article-nav {

  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;

}

.nav-cell {

  padding: 18px; border: 1px solid var(--border); border-radius: 6px;

  transition: all .15s;

}

.nav-cell:hover { border-color: var(--primary); }

.nav-cell.next { text-align: right; }

.nav-label {

  display: block; font-size: 12px; color: var(--text-light); margin-bottom: 6px;

}

.nav-cell a { color: var(--text); font-size: 14px; }

.nav-cell a:hover { color: var(--primary); }

.nav-empty { color: var(--text-light); font-size: 13px; }



/* ============ 侧栏 ============ */

.detail-side { display: flex; flex-direction: column; gap: 20px; }

.side-box {

  padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 8px;

}

.side-box h3 {

  font-size: 15px; font-weight: bold; color: var(--text);

  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);

}

.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }

.side-list li:last-child { border-bottom: none; }

.side-list a { color: var(--text); font-size: 14px; line-height: 1.5; display: block; }

.side-list a:hover { color: var(--primary); }

.side-date {

  display: block; font-size: 12px; color: var(--text-light); margin-top: 4px;

}

.side-mp { text-align: center; }

.side-mp-qr {

  width: 140px; height: 140px; margin: 0 auto 12px;

  background: var(--primary-light); border-radius: 8px;

  display: flex; align-items: center; justify-content: center;

  color: var(--text-light); font-size: 13px;

}

.side-mp p { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }

.side-btn { display: inline-block; }

.side-contact p { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; line-height: 1.6; }

.side-contact a { color: var(--primary); font-weight: bold; }



/* ============ 响应式 ============ */

@media (max-width: 960px) {

  .detail-layout { grid-template-columns: 1fr; gap: 24px; }

  .detail-title { font-size: 22px; }

  .detail-side { order: -1; }

  .article-nav { grid-template-columns: 1fr; }

  .nav-cell.next { text-align: left; }

}




/* ============ 科室详情页 ============ */

.dept-detail-wrap { padding: 10px 0 60px; }

.dept-detail-head {

  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;

  align-items: center; margin-bottom: 40px;

  padding: 32px; background: var(--primary-light); border-radius: 12px;

}

.dept-detail-cover { border-radius: 8px; overflow: hidden; }

.dept-detail-cover img { width: 100%; display: block; }

.dept-detail-meta h1 {

  font-size: 30px; font-weight: bold; color: var(--primary-dark);

  margin-bottom: 16px;

}

.dept-detail-intro {

  font-size: 15px; line-height: 1.9; color: var(--text-sub);

}

@media (max-width: 960px) {

  .dept-detail-head { grid-template-columns: 1fr; gap: 20px; padding: 20px; }

  .dept-detail-meta h1 { font-size: 22px; }

}




/* ============ 医生/专家详情页 ============ */

.doctor-detail-wrap { padding: 10px 0 60px; }

.doctor-detail-head {

  display: grid; grid-template-columns: 220px 1fr; gap: 40px;

  align-items: center; padding: 32px;

  background: linear-gradient(135deg, var(--primary-light) 0%, #f0faf8 100%);

  border-radius: 12px; margin-bottom: 40px;

}

.doctor-detail-avatar {

  width: 220px; height: 220px; border-radius: 12px; overflow: hidden;

  background: #fff; box-shadow: 0 4px 20px rgba(86,176,167,.15);

}

.doctor-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }

.doctor-detail-meta h1 {

  font-size: 32px; font-weight: bold; color: var(--primary-dark);

  margin-bottom: 8px;

}

.doctor-detail-title {

  font-size: 17px; color: var(--primary); font-weight: 500; margin-bottom: 12px;

}

.doctor-detail-dept { font-size: 15px; color: var(--text-sub); margin-bottom: 8px; }

.doctor-detail-dept a { color: var(--primary); }

.doctor-detail-time { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }

.doctor-detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }



.btn-outline {

  background: #fff; color: var(--primary);

  border: 1px solid var(--primary);

}

.btn-outline:hover { background: var(--primary); color: #fff; }



.doctor-section { padding: 10px 0 20px; }

.doctor-section h2 {

  font-size: 20px; font-weight: bold; color: var(--text);

  padding-bottom: 10px; margin-bottom: 20px;

  border-bottom: 2px solid var(--primary);

  display: inline-block;

}

.doctor-intro-content {

  font-size: 15px; line-height: 1.9; color: var(--text);

}

.doctor-intro-content p { margin: 12px 0; }

.doctor-intro-content img { max-width: 100%; margin: 16px 0; border-radius: 4px; }



.doctor-tips {

  padding: 16px 20px; background: #fff8e6; border-radius: 6px;

  font-size: 13px; color: #8a6d3b; line-height: 1.7; margin: 30px 0;

}



.doctor-time {

  font-size: 12px; color: var(--text-light); margin-top: 4px;

}



@media (max-width: 960px) {

  .doctor-detail-head { grid-template-columns: 1fr; gap: 20px; padding: 20px; text-align: center; }

  .doctor-detail-avatar { width: 160px; height: 160px; margin: 0 auto; }

  .doctor-detail-meta h1 { font-size: 24px; }

  .doctor-detail-actions { justify-content: center; }

}




/* ============ 医生/专家详情页 ============ */

.doctor-detail-wrap { padding: 10px 0 60px; }

.doctor-detail-head {

  display: grid; grid-template-columns: 220px 1fr; gap: 40px;

  align-items: center; padding: 32px;

  background: linear-gradient(135deg, var(--primary-light) 0%, #f0faf8 100%);

  border-radius: 12px; margin-bottom: 40px;

}

.doctor-detail-avatar {

  width: 220px; height: 220px; border-radius: 12px; overflow: hidden;

  background: #fff; box-shadow: 0 4px 20px rgba(86,176,167,.15);

}

.doctor-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }

.doctor-detail-meta h1 {

  font-size: 32px; font-weight: bold; color: var(--primary-dark);

  margin-bottom: 8px;

}

.doctor-detail-title {

  font-size: 17px; color: var(--primary); font-weight: 500; margin-bottom: 12px;

}

.doctor-detail-dept { font-size: 15px; color: var(--text-sub); margin-bottom: 8px; }

.doctor-detail-dept a { color: var(--primary); }

.doctor-detail-time { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }

.doctor-detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }



.btn-outline {

  background: #fff; color: var(--primary);

  border: 1px solid var(--primary);

}

.btn-outline:hover { background: var(--primary); color: #fff; }



.doctor-section { padding: 10px 0 20px; }

.doctor-section h2 {

  font-size: 20px; font-weight: bold; color: var(--text);

  padding-bottom: 10px; margin-bottom: 20px;

  border-bottom: 2px solid var(--primary);

  display: inline-block;

}

.doctor-intro-content {

  font-size: 15px; line-height: 1.9; color: var(--text);

}

.doctor-intro-content p { margin: 12px 0; }

.doctor-intro-content img { max-width: 100%; margin: 16px 0; border-radius: 4px; }



.doctor-tips {

  padding: 16px 20px; background: #fff8e6; border-radius: 6px;

  font-size: 13px; color: #8a6d3b; line-height: 1.7; margin: 30px 0;

}



.doctor-time {

  font-size: 12px; color: var(--text-light); margin-top: 4px;

}



@media (max-width: 960px) {

  .doctor-detail-head { grid-template-columns: 1fr; gap: 20px; padding: 20px; text-align: center; }

  .doctor-detail-avatar { width: 160px; height: 160px; margin: 0 auto; }

  .doctor-detail-meta h1 { font-size: 24px; }

  .doctor-detail-actions { justify-content: center; }

}




/* ============ 来院导航页 ============ */

.navigate-info {

  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;

  margin-bottom: 40px;

}

.info-card {

  display: flex; gap: 16px; padding: 24px;

  background: #fff; border: 1px solid var(--border); border-radius: 8px;

}

.info-icon { font-size: 28px; flex-shrink: 0; }

.info-body h3 { font-size: 15px; color: var(--text); margin-bottom: 8px; font-weight: bold; }

.info-body p { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

.phone-big { font-size: 18px !important; font-weight: bold; }

.phone-big a { color: var(--primary); }

.map-actions {

  display: flex; gap: 12px; justify-content: center; margin-bottom: 40px;

}

.route-section {

  padding: 28px; background: var(--bg); border-radius: 8px; margin-bottom: 40px;

}

.route-section h3 {

  font-size: 18px; font-weight: bold; color: var(--text); margin-bottom: 16px;

}

.route-list { padding-left: 4px; }

.route-list li {

  padding: 8px 0; font-size: 14px; color: var(--text-sub); line-height: 1.8;

}

.route-list strong { color: var(--text); }

.route-tip { font-size: 13px; color: var(--text-light); margin-top: 12px; }



.mp-guide {

  display: grid; grid-template-columns: 1fr 200px; gap: 40px;

  align-items: center; padding: 32px;

  background: linear-gradient(135deg, var(--primary-light) 0%, #f0faf8 100%);

  border-radius: 12px;

}

.mp-guide-text h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 12px; }

.mp-guide-text p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

.mp-guide-qr { text-align: center; }

.mp-qr-placeholder {

  width: 180px; height: 180px; background: #fff; border-radius: 8px;

  display: flex; align-items: center; justify-content: center;

  color: var(--text-light); font-size: 14px;

  box-shadow: 0 4px 20px rgba(86,176,167,.15);

}



/* ============ 医院简介页 ============ */

.about-wrap { padding: 10px 0 60px; }

.about-hero {

  text-align: center; padding: 60px 20px;

  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

  border-radius: 12px; margin-bottom: 50px; color: #fff;

}

.about-hero h1 { font-size: 36px; font-weight: bold; margin-bottom: 12px; }

.about-hero-sub { font-size: 16px; opacity: .9; }

.about-section { margin-bottom: 50px; }

.about-section h2 {

  font-size: 22px; font-weight: bold; color: var(--text);

  margin-bottom: 24px; padding-bottom: 10px;

  border-bottom: 2px solid var(--primary);

  display: inline-block;

}

.about-text { font-size: 15px; line-height: 2; color: var(--text-sub); }

.about-text p { margin-bottom: 16px; text-indent: 2em; }

.about-stats {

  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;

}

.stat-item {

  text-align: center; padding: 30px 20px;

  background: var(--primary-light); border-radius: 8px;

}

.stat-num {

  font-size: 36px; font-weight: bold; color: var(--primary-dark);

  margin-bottom: 8px; line-height: 1;

}

.stat-label { font-size: 14px; color: var(--text-sub); }

.about-values {

  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;

}

.value-card {

  padding: 28px; background: #fff; border: 1px solid var(--border);

  border-radius: 8px; text-align: center;

}

.value-icon { font-size: 40px; margin-bottom: 16px; }

.value-card h4 { font-size: 16px; color: var(--text); margin-bottom: 12px; }

.value-card p { font-size: 13px; color: var(--text-sub); line-height: 1.8; }

.about-contact {

  padding: 28px; background: var(--bg); border-radius: 8px;

}

.contact-row {

  display: flex; padding: 10px 0; font-size: 14px;

  border-bottom: 1px dashed var(--border);

}

.contact-row:last-child { border-bottom: none; }

.contact-label { width: 80px; color: var(--text-light); flex-shrink: 0; }

.contact-value { color: var(--text); }

.contact-value a { color: var(--primary); }



@media (max-width: 960px) {

  .navigate-info { grid-template-columns: 1fr; }

  .mp-guide { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  .mp-qr-placeholder { width: 140px; height: 140px; margin: 0 auto; }

  .about-hero { padding: 40px 20px; }

  .about-hero h1 { font-size: 26px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .about-values { grid-template-columns: 1fr; }

  .map-actions { flex-direction: column; }

}




/* ============ 搜索页 ============ */

.search-form {

  display: flex; gap: 12px; max-width: 640px;

  margin: 0 auto 40px;

}

.search-input {

  flex: 1; padding: 12px 18px; border: 1px solid var(--border);

  border-radius: 6px; font-size: 15px; transition: border-color .15s;

}

.search-input:focus { border-color: var(--primary); outline: none; }

.search-section { margin-bottom: 40px; }

.search-section h3 {

  font-size: 18px; font-weight: bold; color: var(--text);

  margin-bottom: 20px; padding-bottom: 10px;

  border-bottom: 1px solid var(--border);

}

.search-count { font-size: 13px; color: var(--text-light); font-weight: normal; }

.search-empty {

  text-align: center; padding: 60px 20px; color: var(--text-sub);

}

.search-empty p { font-size: 15px; line-height: 2; }

.search-empty .small { font-size: 13px; color: var(--text-light); margin-top: 12px; }

.search-empty a { color: var(--primary); }



/* ============ 错误页 ============ */

.error-page {

  text-align: center; padding: 60px 20px; max-width: 640px; margin: 0 auto;

}

.error-code {

  font-size: 100px; font-weight: bold; line-height: 1;

  color: var(--primary); margin-bottom: 20px;

  opacity: 0.35;

}

.error-page h1 {

  font-size: 24px; font-weight: bold; color: var(--text); margin-bottom: 16px;

}

.error-page p {

  font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 30px;

}

.error-actions {

  display: flex; gap: 12px; justify-content: center;

  flex-wrap: wrap; margin-bottom: 30px;

}

.error-search { max-width: 480px; }



@media (max-width: 960px) {

  .search-form { flex-direction: column; }

  .error-code { font-size: 72px; }

  .error-page h1 { font-size: 20px; }

}

