/* ========================================
   石家庄健胃中医院 - 官网模板
   浅色素雅风格 · 基于 0311jianwei.com 风格
   ======================================== */

: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;
}

/* ===== 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); }

/* ===== 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; }

/* ===== 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;
}
.page-content .content-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 25px 0;
  box-shadow: var(--shadow);
}
.page-content .content-img img {
  width: 100%;
  display: block;
}

/* ===== About / 关于我们 ===== */
.about-wrap {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.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;
}

/* ===== 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; }

/* ===== Departments ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.dept-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.dept-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.dept-card .dept-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f5f2;
}
.dept-card .dept-body { padding: 25px; }
.dept-card .dept-body .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; }
.dept-card .dept-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dept-card .dept-tags span {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(44,140,110,0.08);
  color: var(--primary);
  border-radius: 20px;
}

/* ===== Environment Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.gallery-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.gallery-item .caption {
  padding: 15px 20px;
  text-align: center;
}
.gallery-item .caption h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.gallery-item .caption p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== Guide Steps ===== */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.step-card .step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 15px;
}
.step-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.step-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Guide content blocks */
.guide-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.guide-block h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.guide-block ul li {
  list-style: none;
  padding: 8px 0 8px 25px;
  position: relative;
  color: var(--text-light);
  line-height: 1.8;
}
.guide-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.guide-block .notice {
  background: rgba(212,168,83,0.1);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 15px;
}
.guide-block .notice p {
  color: var(--text);
  font-size: 14px;
}

/* ===== Route / Map ===== */
.route-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.route-info h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.route-info .item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.route-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;
  font-size: 18px;
}
.route-info .item .text h4 { font-size: 15px; margin-bottom: 3px; }
.route-info .item .text p { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.route-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.route-map img {
  width: 100%;
  display: block;
}

/* ===== 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; }

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--primary-dark); color: #fff; }

.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;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Info Cards (for hospital intro) ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.info-card .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}
.info-card .label {
  font-size: 15px;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item details {
  padding: 0;
}
.faq-item summary {
  padding: 18px 25px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  transition: var(--transition);
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 25px 18px;
  color: var(--text-light);
  font-size: 14px;
  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);
}

/* ===== Floating Contact Bar ===== */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
  padding: 12px 0;
  z-index: 999;
  display: none;
}
.float-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.float-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  gap: 2px;
}
.float-bar a.tel-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  flex-direction: row;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .about-wrap { flex-direction: column; }
  .route-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@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; }
  .gallery-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  .breadcrumb h2 { font-size: 26px; }
  .float-bar { display: block; }
}

/* ===== 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); }
