:root {
  --primary: #48D4A3;
  --primary-dark: #33b886;
  --primary-soft: #d9f5ea;
  --gray-bg: #f9fbfa;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-light: #effff9;
  --card-shadow: 0 12px 28px -8px rgba(138, 138, 138, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #fefefc;
  color: #1e2a2a;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Bootstrap 兼容性修复 */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* ========== 按钮样式 ========== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(72, 212, 163, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px rgba(72, 212, 163, 0.4);
  color: #ffffff;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary-dark);
}

/* ========== 悬浮按钮 & 咨询弹窗 ========== */
.floating-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.consult-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.consult-modal.active {
  opacity: 1;
  visibility: visible;
}

.consult-form-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.consult-modal.active .consult-form-container {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: #333;
}

.consult-form-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* ========== 头部导航（桌面版） ========== */
header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo img {
  width: 30%;
}

.logo h1 {
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  color: #33B886;
  margin-bottom: 0;
}

.nav-links {
  margin-bottom: 0;
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #2c423b;
  transition: 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  font-weight: 600;
}

/* 移动端汉堡菜单基础样式（桌面端隐藏） */
.menu-toggle {
  display: none;
}

/* ========== 通用章节样式 ========== */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #014B2E;
  letter-spacing: -0.3px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px auto;
  font-size: 1rem;
}

.text-icon {
  color: #F88C0E;
}

/* ========== Banner ========== */
.hero {
  background-image: url('../images/banner_1.jpg');
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1.2;
}

.hero-text .badge {
  background: var(--primary-soft);
  color: #1b6e56;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}

.hero-text h2 {
  font-size: 45px;
  font-weight: 800;
  line-height: 1.6;
  color: #1d3d33;
  margin-bottom: 40px;
}

.hero-text h2 span {
  color: var(--primary-dark);
}

.hero-stats {
  display: flex;
  margin-top: 24px;
}

.stat {
  text-align: left;
  min-width: 150px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ========== 首页 - 诊所简介 ========== */
.about-card {
  background: white;
  border-radius: 36px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.about-highlight {
  margin-top: 28px;
}

.highlight-item {
  background: var(--gray-bg);
  padding: 20px;
  border-radius: 28px;
  text-align: center;
  height: 100%;
}

.highlight-item img {
  width: 10%;
}

.highlight-item p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ========== 首页 - 医师介绍 ========== */
.doctors-grid {
  margin-top: 20px;
}

.doctor-card {
  background: #333;
  border-radius: 32px;
  height: 600px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
}

.doctor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.doctor-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
}

.doctor-info h3 {
  color: var(--text-dark);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.doctor-title {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.doctor-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  z-index: 2;
}

/* ========== 首页 - 药品介绍 ========== */
.drug-card {
  text-align: center;
  background: white;
  border-radius: 150px;
  height: 380px;
  box-shadow: var(--card-shadow);
  padding: 40px 24px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  width: 100%;
}

.drug-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(72, 212, 163, 0.2);
}

.drug-card img {
  width: 50%;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.drug-card:hover img {
  transform: scale(1.05);
}

.drug-card h4 {
  font-size: 1.4rem;
  color: #1b4e3f;
  margin: 12px 0 8px;
}

.drug-code {
  font-size: 0.75rem;
  color: var(--primary-dark);
  font-family: monospace;
  background: var(--primary-soft);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
}

.drug-desc {
  margin-top: 12px;
  color: var(--text-muted);
}

/* ========== 首页 - 咨询表单 ========== */
.forms-wrapper {
  text-align: center;
  margin: 0 auto;
}

.form-card {
  width: 50%;
  background: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  margin: 0 auto;
}

.form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #1d4e3f;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d0e2da;
  border-radius: 60px;
  font-family: inherit;
  background: #fff;
  transition: 0.2s;
  font-size: 0.9rem;
}

.form-group textarea {
  border-radius: 24px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(72, 212, 163, 0.2);
}

.row-2cols {
  display: flex;
  gap: 16px;
}

.row-2cols>div {
  flex: 1;
}

/* ========== 首页 - 健康科普 ========== */
.article-card {
  background: white;
  border-radius: 28px;
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(72, 212, 163, 0.15);
}

.article-card img {
  width: 10%;
  padding-bottom: 10px;
}

.article-card i {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ========== 首页 - 引流二维码 ========== */
.qrcode-area {
  text-align: center;
}

.qr-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
}

.qr-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.qr-item:hover {
  transform: translateY(-5px);
}

.qr-box {
  background: white;
  padding: 20px 30px;
  border-radius: 28px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

/* ========== 底部 ========== */
footer {
  background: #EEF5F2;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.copyright {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: #668178;
}

/* ========== 二级页面公共样式 ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.page-header h1 span {
  font-size: 30px;
  vertical-align: top;
  display: inline-block;
}

.page-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.about-detail-card {
  background: white;
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.about-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -12px rgba(72, 212, 163, 0.15);
}

.about-detail-card h3 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

@media (max-width: 768px) {
  .about-detail-card h3 {
    font-size: 1.5rem;
  }

  .about-detail-card {
    padding: 24px;
  }
}

.honor-badge {
  background: var(--gray-bg);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: 0.2s;
}

.honor-badge i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.honor-badge h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ========== 医师介绍页面 ========== */
.doctor-profile-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.doctor-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 35px -12px rgba(72, 212, 163, 0.25);
}

.doctor-avatar {
  background: linear-gradient(135deg, #e0f7ef 0%, #c8f0e3 100%);
  padding: 30px 0 20px;
  text-align: center;
  position: relative;
}

.doctor-avatar i {
  font-size: 90px;
  color: var(--primary-dark);
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.1));
}

.doctor-avatar img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.doctor-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-info-detail {
  padding: 24px 24px 20px;
  flex: 1;
}

.doctor-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1b4e3f;
  margin-bottom: 6px;
}

.doctor-title {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 30px;
}

.doctor-specialty {
  margin: 16px 0;
  border-top: 1px dashed #e0eae6;
  padding-top: 14px;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #445f57;
}

.specialty-item i {
  width: 22px;
  color: var(--primary);
  font-size: 0.9rem;
}

.doctor-desc {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 16px 0;
  font-size: 0.9rem;
}

.consult-doctor-btn {
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 40px;
  padding: 8px 0;
  width: 100%;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 12px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.consult-doctor-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.team-feature {
  background: var(--gray-bg);
  border-radius: 28px;
  padding: 32px;
  margin: 48px 0 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.expert-quote {
  background: white;
  border-left: 4px solid var(--primary);
  padding: 20px 28px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  margin: 32px 0;
}

/* ========== 药品介绍页面 ========== */
.drug-detail-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.drug-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(72, 212, 163, 0.2);
}

.drug-img {
  background: var(--gray-bg);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.drug-img img {
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.drug-detail-card:hover .drug-img img {
  transform: scale(1.05);
}

.drug-info {
  padding: 24px 24px 28px;
  flex: 1;
}

.drug-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b4e3f;
  margin-bottom: 8px;
}

.drug-code {
  font-family: monospace;
  background: var(--primary-soft);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.drug-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.drug-features li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.drug-features li i {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 3px;
}

.btn-drug-consult {
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 40px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.btn-drug-consult:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cert-badge {
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.cert-badge i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .drug-info h3 {
    font-size: 1.3rem;
  }

  .drug-img img {
    max-height: 200px;
  }
}

/* ========== 健康科普页面 ========== */
.article-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  color: var(--primary-dark);
  text-decoration: none;
}

.article-card .read-more:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 8px;
  display: flex;
  gap: 12px;
}


/* ============= 健康科普详情 ========== */
.article-detail-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3e3a;
}
.article-detail-content h3 {
  margin: 1.5rem 0 1rem;
  color: var(--primary-dark);
}
.article-detail-content p {
  margin-bottom: 1.2rem;
}
.article-meta-detail {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e0f0ea;
  margin-bottom: 24px;
  color: #7a9e93;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover {
  text-decoration: underline;
}

/* .collapse-button {
  color: #EEF5F2 !important;
  background-color: #11BE80 !important;
} */

/* ========== 响应式设计（含移动端菜单） ========== */
@media (max-width: 991px) {
  .hero {
    min-height: 500px;
    padding-top: 60px;
    background-size: cover;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .doctor-card {
    height: 500px;
    width: 100%;
    max-width: 500px;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {

  /* 移动端导航菜单 */
  .navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    order: 2;
    z-index: 1002;
    transition: all 0.3s ease;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* 导航菜单面板 */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 28px 40px;
    gap: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1001;
    overflow-y: auto;
    margin: 0;
    list-style: none;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(72, 212, 163, 0.2);
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: block;
    padding: 16px 0 16px 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c423b;
    transition: all 0.2s;
    position: relative;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-dark);
    padding-left: 20px;
    background: rgba(72, 212, 163, 0.08);
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.2s;
  }

  .nav-links a.active::before,
  .nav-links a:hover::before {
    height: 24px;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* 页面元素响应式调整 */
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: 400px;
    padding-top: 40px;
    background-size: cover;
    background-position: center;
  }

  .hero-text h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .hero-text .badge {
    font-size: 12px;
    padding: 4px 16px;
    margin-bottom: 20px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }

  .about-card {
    padding: 24px;
    border-radius: 24px;
  }

  .about-highlight {
    gap: 16px;
  }

  .highlight-item {
    padding: 16px;
    border-radius: 20px;
  }

  .highlight-item img {
    width: 10%;
    padding-bottom: 10px;
  }

  .doctor-card {
    height: 400px;
    width: 100%;
    max-width: 100%;
  }

  .doctor-info h3 {
    font-size: 1.3rem;
  }

  .doctor-description {
    padding: 30px 16px 16px;
  }

  .drug-card {
    height: auto;
    padding: 30px 20px;
    border-radius: 100px;
  }

  .drug-card img {
    width: 60%;
  }

  .drug-card h4 {
    font-size: 1.2rem;
  }

  .form-card {
    width: 100%;
    padding: 24px;
    border-radius: 24px;
  }

  .form-card h3 {
    font-size: 1.3rem;
  }

  .article-card {
    padding: 20px;
    border-radius: 20px;
  }

  .article-card h4 {
    font-size: 1.1rem;
  }

  .article-card img {
    width: 5%;
    padding-bottom: 10px;
  }

  .qr-item {
    width: 180px;
  }

  .floating-btn {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 20px;
  }

  .consult-form-container {
    padding: 24px;
    width: 95%;
  }

  .doctor-name {
    font-size: 1.3rem;
  }

  .doctor-avatar i {
    font-size: 70px;
  }

  .team-feature {
    padding: 24px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .hero {
    min-height: 350px;
    padding-top: 30px;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-sub {
    font-size: 0.85rem;
  }

  .about-card {
    padding: 20px;
  }

  .highlight-item img {
    width: 20%;
  }

  .doctor-card {
    height: 350px;
  }

  .drug-card {
    padding: 24px 16px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
  }

  .qr-item {
    width: 160px;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* ========== 触摸优化 ========== */
@media (hover: none) and (pointer: coarse) {

  .btn-primary,
  .btn-outline,
  button {
    min-height: 44px;
    touch-action: manipulation;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .floating-btn {
    -webkit-tap-highlight-color: transparent;
  }

  a,
  button {
    -webkit-tap-highlight-color: rgba(72, 212, 163, 0.2);
  }
}

/* ========== 防止内容溢出 ========== */
img {
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ========== 桌面端优化 ========== */
@media (min-width: 992px) {
  .doctor-card {
    max-width: none;
  }

  .highlight-item {
    min-height: 120px;
  }

  .article-card {
    min-height: 280px;
  }
}

/*=============================*/
/* 医师卡片特有样式 */
 .doctor-showcase {
   margin-bottom: 60px;
 }
.doctor-card-horizontal {
  background: white;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .doctor-card-horizontal {
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
  }
}
.doctor-photo {
  flex: 0 0 280px;
  background: #eef2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.doctor-card-horizontal:hover .doctor-photo img {
  transform: scale(1.02);
}
.doctor-details {
  padding: 32px 36px;
}
.doctor-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1d4e3f;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.doctor-title {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.doctor-bio {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.doctor-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.expertise-tag {
  background: #f5f7f6;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: #2c5a4a;
  font-weight: 500;
}
.doctor-contact {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
}
.btn-consult-sm {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-consult-sm:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}
.doctor-meta {
  color: #8ba89e;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctor-meta i {
  color: var(--primary-dark);
}

/* 响应式微调 */
@media (max-width: 768px) {
  .doctor-photo {
    flex: 0 0 240px;
    min-height: 260px;
  }
  .doctor-details {
    padding: 28px 24px;
  }
  .doctor-name {
    font-size: 1.6rem;
  }
}
@media (max-width: 576px) {
  .doctor-photo {
    flex: 0 0 200px;
    min-height: 220px;
  }
  .doctor-details {
    padding: 20px;
  }
  .doctor-name {
    font-size: 1.4rem;
  }
  .doctor-title {
    font-size: 0.75rem;
  }
}

/* 分页的样式 */
.pagination .page-item.active .page-link {
  background-color: #48d4a3;
  border-color: #48d4a3;
}

.pagination .page-item .page-link:hover {
  color: #28a745;
}

.page-link {
  position: relative;
  display: block;
  padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
  font-size: var(--bs-pagination-font-size);
  color: #0C0C0C;
  text-decoration: none;
  background-color: var(--bs-pagination-bg);
  border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}