/* Global reset */
html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* CSS 变量 */
:root {
  --primary: #1a5a8a;
  --primary-light: #2c7fb8;
  --secondary: #4CAF50;
  --accent: #FF6B6B;
  --light: #f8f9fa;
  --dark: #2c3e50;
  --gray: #6c757d;
  --text: #333333;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 20px 0 30px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #1a5a8a;
  position: relative;
  font-weight: 600;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  margin: 15px auto 30px;
  border-radius: 2px;
}



/* 关于我们 */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: all 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* 就医环境 */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.department-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 251px;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.department-image {
  height: 100%;
  overflow: hidden;
}

.department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.department-card:hover .department-image img {
  transform: scale(1.1);
}

/* 特色诊疗 */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.treatment-item {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.treatment-item h3 {
  color: #1a5a8a;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* 专家团队 */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.doctor-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-10px);
}

.doctor-image {
  overflow: hidden;
  position: relative;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-position: center;
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.1);
}

.doctor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
  transform: translateY(0);
}

.doctor-info {
  padding: 20px;
  height: 125px;
}

.doctor-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a5a8a;
}

/* 健康科普 */
.health-tabs {
  margin-top: 30px;
}

.tab-buttons {
  display: flex;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button.active {
  border-bottom-color: #1a5a8a;
  color: #1a5a8a;
  font-weight: bold;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.article-item {
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
}

.article-img {
  height: 206px;
  width: 100%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-info {
  padding: 15px;
}

.article-info h3 {
  color: #1a5a8a;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1a5a8a;
}

/* 新闻动态 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.news-grid_2 {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.news-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #1a5a8a;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-left-color: #2c7fb8;
}

.news-item a {
  display: block;
  text-decoration: none;
  padding: 20px;
  height: 100%;
}

.news-item h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.news-item:hover h3 {
  color: #1a5a8a;
}

.news-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
}

/* 联系我们 */
.contact-content {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  gap: 30px;
}

.contact-map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e9eef3;
  box-shadow: 0 4px 14px rgba(26, 90, 138, 0.08);
  z-index: 0;
}

.hospital-marker {
  display: block;
}

.hospital-marker-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #1a5a8a, #2c7fb8);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(26, 90, 138, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -18px;
  top: -36px;
}

.hospital-marker-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 14px;
}

.hospital-marker-label {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 90, 138, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1a5a8a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 1.4;
}

.poi-marker {
  display: block;
}

.poi-marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e63946;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: absolute;
  left: -7px;
  top: -7px;
}

.poi-marker-pin i {
  display: none;
}

.poi-marker-label {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  line-height: 1.4;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(26, 90, 138, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 90, 138, 0.14);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5a8a, #2c7fb8);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(44, 127, 184, 0.35);
}

.contact-item div {
  flex: 1;
  padding-left: 0;
  text-align: left;
}

.contact-item h4 {
  color: #1a5a8a;
  margin: 0 0 6px;
  font-size: 1.05rem;
  text-align: left;
}

.contact-item p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  font-size: 0.92rem;
  text-align: left;
}

.contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 26px 24px;
  border-radius: 10px;
  border: 1px solid #e9eef3;
  box-shadow: 0 4px 14px rgba(26, 90, 138, 0.08);
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #dde5ec;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #2c7fb8;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: #1a5a8a;
  box-shadow: 0 0 0 2px rgba(44, 127, 184, 0.2);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 127, 184, 0.2);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 127, 184, 0.3);
}

/* 更多按钮 */
.more-container {
  text-align: center;
  margin-top: 40px;
}

.more-container_2 {
  text-align: center;
  margin-top: 40px;
}

.more-btn, .more-btn_2 {
  display: inline-block;
  background: transparent;
  color: #1a5a8a;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid #1a5a8a;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.more-btn:hover, .more-btn_2:hover {
  background: #1a5a8a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(44, 127, 184, 0.3);
}

.more-btn i, .more-btn_2 i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.more-btn:hover i, .more-btn_2:hover i {
  transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .doctors-grid, .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .treatment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 20px 0;
  }
  
  .doctors-grid, .article-grid, .video-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-form {
    width: 100%;
  }

  .contact-map {
    width: 100%;
    height: 320px;
  }
  
  .department-card {
    height: 200px;
  }
  
  .article-img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
