/* ========================================
   石家庄健胃中医院 - 官网模板
   浅色素雅风格 · SEO优化
   ======================================== */

:root {
  --primary: #2c8c6e;
  --primary-light: #3aa07f;
  --primary-dark: #1e6b53;
  --accent: #d4a853;
  --accent-light: #e8c87a;
  --bg: #f8f9f6;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --border: #e8ece4;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a { color: #fff; font-size: 13px; }
.header-top a:hover { color: var(--accent-light); }
.header-top .tel { font-weight: 600; letter-spacing: 1px; }

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 50px; }
.logo-text h1 {
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 700;
}
.logo-text span {
  font-size: 13px;
  color: var(--text-light);
  display: block;
}

.nav { display: flex; gap: 5px; }
.nav a {
  padding: 8px 18px;
  color: var(--text);
  font-size: 15px;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(44,140,110,0.06);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  padding: 5px;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0ec 0%, #f0f5f2 50%, #e8f0ec 100%);
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-content {
  flex: 1;
  padding: 60px 0;
}
.banner-content h2 {
  font-size: 42px;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-weight: 700;
}
.banner-content p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 25px;
  line-height: 1.8;
}
.banner-content .btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
}
.banner-content .btn:hover { background: var(--primary-dark); color: #fff; }
.banner-image {
  flex: 1;
  text-align: center;
}
.banner-image img {
  max-height: 380px;
  border-radius: var(--radius);
}

.banner-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-lighter);
  cursor: pointer;
  transition: var(--transition);
}
.banner-dots span.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  margin-top: 10px;
  font-size: 16px;
}
.section-bg { background: #fff; }

/* ===== Features / 医院特色 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.feature-card .icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #fff;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== About / 关于我们 ===== */
.about-wrap {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.about-content { flex: 1; }
.about-content h3 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 2;
}
.about-content .btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-size: 15px;
  margin-top: 10px;
}
.about-content .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Departments / 科室介绍 ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.dept-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.dept-card:hover { box-shadow: var(--shadow-hover); }
.dept-card .dept-icon {
  width: 50px;
  height: 50px;
  background: rgba(44,140,110,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary);
}
.dept-card h3 { font-size: 18px; margin-bottom: 8px; }
.dept-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== Doctors / 医生团队 ===== */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.doctor-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}
.doctor-card:hover { box-shadow: var(--shadow-hover); }
.doctor-card .photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f0f5f2;
}
.doctor-card .info { padding: 20px; }
.doctor-card .info h3 { font-size: 17px; margin-bottom: 4px; }
.doctor-card .info .title {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.doctor-card .info p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== News / 新闻动态 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-card .thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f5f2;
}
.news-card .info { padding: 20px; }
.news-card .info .date {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 8px;
}
.news-card .info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .info p {
  font-size: 14px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Contact / 联系我们 ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.contact-info .item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info .item .icon {
  width: 40px;
  height: 40px;
  background: rgba(44,140,110,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info .item .text h4 { font-size: 15px; margin-bottom: 3px; }
.contact-info .item .text p { color: var(--text-light); font-size: 14px; }

.contact-form h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,140,110,0.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-submit {
  padding: 12px 35px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.form-submit:hover { background: var(--primary-dark); }

/* ===== Map ===== */
.map-wrap {
  margin-top: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
  background: #e8ece4;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: linear-gradient(135deg, #e8f0ec, #f0f5f2);
  padding: 50px 0 40px;
  text-align: center;
}
.breadcrumb h2 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.breadcrumb .path {
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb .path a { color: var(--primary); }
.breadcrumb .path span { color: var(--text-lighter); }

/* ===== Page Content ===== */
.page-content {
  padding: 60px 0;
}
.page-content h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin: 30px 0 15px;
}
.page-content h3:first-child { margin-top: 0; }
.page-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 2;
}
.page-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}
.page-content ul li {
  list-style: disc;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
}
.footer-about p { font-size: 14px; line-height: 1.8; }
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { height: 400px; }
  .banner-content h2 { font-size: 32px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 15px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav a.active::after { display: none; }
  .header-top .container { flex-direction: column; gap: 5px; }
  .features-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner { height: auto; padding: 40px 0; }
  .banner-slide { position: relative; opacity: 1; }
  .banner-content { padding: 0; }
  .banner-content h2 { font-size: 26px; }
  .banner-image { display: none; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-lighter); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }