:root{--c-primary:#7bd0c0;--font:'Microsoft YaHei','PingFang SC',sans-serif;}
/* ===== 安心全科诊所 - 大圆角清新风 ===== */
:root {
  --mint: #7bd0c0;
  --mint-light: #bce8df;
  --mint-pale: #e8f7f3;
  --bg: #f4fbfa;
  --green: #3aa87a;
  --green-dark: #2c6e57;
  --white: #ffffff;
  --text: #3f5a50;
  --text-light: #8aa39a;
  --shadow: 0 10px 36px rgba(58,168,122,0.14);
  --shadow-soft: 0 6px 22px rgba(123,208,192,0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 90px 0; }

/* ---- 薄荷大圆弧过渡 ---- */
.arc-top { border-radius: 0 0 220px 220px; }
.arc-bottom { border-radius: 220px 220px 0 0; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(123,208,192,0.18);
  transition: all 0.35s ease;
}
.header.scrolled { box-shadow: 0 6px 26px rgba(58,168,122,0.18); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-pill {
  width: 50px; height: 50px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--mint), var(--green));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { color: var(--green-dark); font-size: 1.2rem; font-weight: 700; }
.logo-sub { color: var(--mint); font-size: 0.55rem; letter-spacing: 2px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.nav a:hover, .nav a.active { background: var(--mint-pale); color: var(--green); }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--mint), var(--green));
  padding: 11px 26px !important;
  border-radius: 30px !important;
  font-size: 0.88rem !important;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover { transform: translateY(-2px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 3px; border-radius: 3px; background: var(--green); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background: linear-gradient(170deg, var(--mint-pale) 0%, var(--bg) 50%, var(--mint-pale) 100%);
  overflow: hidden;
}
.hero-ribbon {
  position: absolute;
  top: -120px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(123,208,192,0.25), rgba(58,168,122,0.12));
}
.hero-ribbon::after {
  content: '🌿';
  position: absolute;
  bottom: 30px; left: 60px;
  font-size: 4rem;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 60px;
}
.hero-tag {
  display: inline-block;
  background: #fff;
  color: var(--green);
  border-radius: 40px;
  padding: 9px 24px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.hero-text h1 {
  font-size: 3rem;
  line-height: 1.3;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.hero-text h1 em { color: var(--green); font-style: normal; }
.hero-text p { color: var(--text-light); line-height: 2; font-size: 0.98rem; max-width: 520px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 16px; margin-bottom: 34px; }
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-green { background: linear-gradient(135deg, var(--mint), var(--green)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(58,168,122,0.35); }
.btn-soft { background: #fff; color: var(--green); box-shadow: var(--shadow-soft); }
.btn-soft:hover { transform: translateY(-3px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chips span {
  background: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 0 3px 12px rgba(123,208,192,0.15);
}
.hero-img-wrap { position: relative; }
.hero-img {
  height: 460px;
  border-radius: 60px 60px 60px 20px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 8px solid #fff;
}
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
  animation: floatY 4s ease-in-out infinite;
}
.f1 { top: 40px; left: -34px; }
.f2 { top: 50%; right: -30px; animation-delay: 1.2s; }
.f3 { bottom: 40px; left: 10px; animation-delay: 2.4s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Section head ---- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-title { font-size: 2.1rem; color: var(--green-dark); font-weight: 800; position: relative; display: inline-block; }
.section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  width: 60px; height: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--mint), var(--green));
}
.section-subtitle { color: var(--text-light); font-size: 0.95rem; margin-top: 28px; }

/* ---- 全科服务 ---- */
.service { background: var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative;
  background: #fff;
  border-radius: 36px 36px 36px 12px;
  padding: 40px 32px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(123,208,192,0.12);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--mint), var(--green));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-num {
  position: absolute;
  top: 24px; right: 30px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--mint-pale);
}
.service-icon { font-size: 2.4rem; margin-bottom: 16px; display: inline-block; }
.service-card h3 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.9; }

/* ---- 诊疗项目 ---- */
.project { background: #fff; }
.project-list { display: flex; flex-direction: column; gap: 18px; max-width: 960px; margin: 0 auto; }
.project-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  border-radius: 60px;
  padding: 20px 28px;
  transition: all 0.3s ease;
}
.project-pill:hover { background: var(--mint-pale); transform: translateX(10px); box-shadow: var(--shadow-soft); }
.pill-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--mint), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.pill-info { flex: 1; }
.pill-info h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 4px; }
.pill-info p { color: var(--text-light); font-size: 0.85rem; }
.pill-time { color: var(--green); font-size: 0.84rem; font-weight: 700; white-space: nowrap; }
.pill-btn {
  background: #fff;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.pill-btn:hover { background: var(--green); color: #fff; }

/* ---- 医生 ---- */
.doctors { background: linear-gradient(170deg, var(--bg), var(--mint-pale)); }
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card {
  background: #fff;
  border-radius: 40px 40px 20px 40px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.doctor-img { height: 270px; background-size: cover; background-position: center top; }
.doctor-body { padding: 26px 30px 30px; text-align: center; }
.doctor-body h3 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 6px; }
.doctor-title { color: var(--green); font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.doctor-desc { color: var(--text-light); font-size: 0.86rem; line-height: 1.9; }

/* ---- 动态 ---- */
.news { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: var(--bg);
  border-radius: 40px 40px 18px 40px;
  overflow: hidden;
  transition: all 0.35s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-body { padding: 26px 28px; }
.news-date { color: var(--green); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.news-body h3 { color: var(--green-dark); font-size: 1.08rem; line-height: 1.6; margin-bottom: 10px; }
.news-body p { color: var(--text-light); font-size: 0.86rem; line-height: 1.9; }

/* ---- 预约 ---- */
.appoint { background: var(--bg); }
.appoint-box {
  background: #fff;
  border-radius: 50px;
  padding: 56px 50px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--mint-pale);
}
.appoint-box h2 { color: var(--green-dark); font-size: 1.9rem; margin-bottom: 12px; }
.appoint-box > p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 30px; }
.appoint-form { max-width: 860px; margin: 0 auto; }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-row input, .form-row select {
  flex: 1;
  padding: 16px 22px;
  border-radius: 40px;
  border: 2px solid var(--mint-pale);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.form-row select { color: var(--text-light); }
.form-row input:focus, .form-row select:focus { border-color: var(--mint); background: #fff; }
.form-row button { padding: 16px 44px; }

/* ---- Footer ---- */
.footer { background: var(--mint-pale); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-about p { color: var(--text-light); font-size: 0.88rem; line-height: 1.9; margin-top: 16px; }
.footer h4 { color: var(--green-dark); font-size: 1rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-light); font-size: 0.88rem; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--green); padding-left: 6px; }
.footer-contact li { margin-bottom: 14px; font-size: 0.88rem; color: var(--text-light); }
.footer-contact .icon { color: var(--green); margin-right: 8px; }
.footer-bottom { border-top: 2px dashed rgba(123,208,192,0.4); padding: 20px 0; text-align: center; font-size: 0.8rem; color: var(--text-light); }

/* ---- Page banner ---- */
.page-banner {
  position: relative; overflow: hidden;
  padding: 160px 0 90px;
  text-align: center;
  background: linear-gradient(170deg, var(--mint-pale), var(--bg));
  border-radius: 0 0 120px 120px;
}
.page-banner h1 { font-size: 2.5rem; color: var(--green-dark); font-weight: 800; }
.page-banner p { color: var(--text-light); margin-top: 14px; font-size: 0.95rem; }
.breadcrumb { margin-top: 18px; font-size: 0.84rem; color: var(--green); font-weight: 700; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green); }

/* ---- About ---- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img { height: 430px; border-radius: 60px 60px 60px 20px; background-size: cover; background-position: center; box-shadow: var(--shadow); border: 8px solid #fff; }
.about-badge {
  position: absolute;
  bottom: -26px; right: 24px;
  background: linear-gradient(135deg, var(--mint), var(--green));
  color: #fff;
  border-radius: 40px;
  padding: 20px 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge span { display: block; font-size: 1.8rem; font-weight: 800; }
.about-badge em { font-style: normal; font-size: 0.82rem; opacity: 0.92; }
.about-text h2 { color: var(--green-dark); font-size: 1.9rem; margin-bottom: 20px; }
.about-text h2 em { color: var(--green); font-style: normal; }
.about-text p { color: var(--text-light); line-height: 2; font-size: 0.95rem; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.about-stat {
  background: var(--bg);
  border-radius: 30px;
  padding: 22px 12px;
  text-align: center;
}
.about-stat .num { color: var(--green); font-size: 1.7rem; font-weight: 800; }
.about-stat .label { color: var(--text-light); font-size: 0.82rem; margin-top: 4px; }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mission-card {
  background: #fff;
  border-radius: 40px 40px 16px 40px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
}
.mission-card:hover { transform: translateY(-8px); }
.mission-icon { font-size: 2.4rem; margin-bottom: 16px; }
.mission-card h3 { color: var(--green-dark); font-size: 1.15rem; margin-bottom: 12px; }
.mission-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.9; }

/* ---- Products ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff;
  border-radius: 44px 44px 18px 44px;
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  border: 3px solid transparent;
}
.product-card:hover { transform: translateY(-8px); border-color: var(--mint); box-shadow: var(--shadow); }
.product-card:nth-child(2n) { border-radius: 18px 44px 44px 44px; }
.product-icon { width: 70px; height: 70px; border-radius: 24px; background: linear-gradient(150deg, var(--mint-pale), var(--mint)); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 20px; }
.product-card h3 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 12px; }
.product-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.9; margin-bottom: 18px; }
.product-card a { color: var(--green); font-weight: 700; font-size: 0.86rem; }
.product-card a:hover { letter-spacing: 1px; }

/* ---- News page ---- */
.news-cats { display: flex; justify-content: center; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.news-cat {
  border: 2px solid var(--mint-pale);
  background: #fff;
  color: var(--text);
  padding: 10px 30px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.news-cat:hover, .news-cat.active { background: linear-gradient(135deg, var(--mint), var(--green)); border-color: transparent; color: #fff; }
.news-list { max-width: 960px; margin: 0 auto; }
.news-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}
.news-item:hover { transform: translateX(10px); }
.news-item-img { height: 180px; background-size: cover; background-position: center; }
.news-item-body { padding: 26px 30px; }
.news-item-body .news-date { color: var(--green); font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; }
.news-item-body h3 { color: var(--green-dark); font-size: 1.15rem; margin-bottom: 10px; }
.news-item-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.9; }
.news-item-body a { color: var(--green); font-size: 0.85rem; font-weight: 700; display: inline-block; margin-top: 12px; }

/* ---- Contact ---- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border-radius: 44px; padding: 42px 36px; box-shadow: var(--shadow-soft); }
.contact-card h3 { color: var(--green-dark); font-size: 1.3rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon {
  width: 54px; height: 54px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--mint-pale), var(--mint));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-item h4 { color: var(--green-dark); font-size: 0.92rem; margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 0.86rem; line-height: 1.7; }
.contact-map { height: 220px; border-radius: 36px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.86rem; border: 2px dashed var(--mint-light); }
.contact-form-card label { display: block; font-size: 0.86rem; color: var(--green-dark); font-weight: 700; margin-bottom: 8px; }
.contact-form-card .form-group { margin-bottom: 18px; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid var(--mint-pale);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.contact-form-card textarea { height: 120px; resize: vertical; border-radius: 24px; }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: var(--mint); background: #fff; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-btns, .hero-chips { justify-content: center; }
  .hero-img-wrap { margin-top: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .hero-float.f1 { left: 0; }
  .hero-float.f2 { right: 0; }
  .service-grid, .doctor-grid, .news-grid, .mission-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-text h1 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 26px 30px;
    transform: translateY(-130%);
    transition: transform 0.4s ease;
    border-bottom: 4px solid var(--mint);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  .nav.active { transform: translateY(0); }
  .nav a { padding: 12px 20px; width: 100%; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .service-grid, .doctor-grid, .news-grid, .mission-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .project-pill { flex-wrap: wrap; justify-content: center; text-align: center; }
  .pill-btn { width: 100%; text-align: center; }
  .news-item { grid-template-columns: 1fr; }
  .news-item-img { height: 200px; }
  .hero-text h1 { font-size: 2rem; }
  .appoint-box { padding: 40px 24px; border-radius: 36px; }
  .hero-img { height: 320px; }
}
