/* ===== 变量 ===== */
:root {
  --primary: #2a7a66;
  --primary-dark: #1f5d4d;
  --accent: #c9763e;
  --accent-light: #f4e6d7;
  --text: #2b3330;
  --text-light: #5a6b66;
  --bg: #f8fbf9;
  --bg-white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(42, 90, 78, 0.10);
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(92%, var(--max-w));
  margin: 0 auto;
}

/* ===== 导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,90,78,0.08);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}
.brand span { color: var(--primary); font-weight: 800; }
.slogan {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 122, 102, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(42, 122, 102, 0.35); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-left: 12px;
}
.btn-large { padding: 16px 40px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  padding: 70px 0 60px;
  background: linear-gradient(135deg, #f1f8f5 0%, #e8f4ef 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-text { order: 1; }
.hero-image { order: 2; }
.hero-image img {
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(42, 122, 102, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  margin: 0 0 22px;
  font-weight: 800;
  color: #1a3a33;
}
.lead {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-actions { margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}
.hero-stats strong {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 700;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 通用板块 ===== */
.section {
  padding: 72px 0;
}
.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a3a33;
  margin: 0 0 14px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 0 36px;
}

/* ===== 医生 IP ===== */
.section-doctor { background: var(--bg-white); }
.doctor-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: start;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.doctor-photo img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.doctor-body h3 {
  font-size: 26px;
  margin: 0 0 8px;
  color: #1a3a33;
}
.doctor-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 14px;
}
.doctor-intro {
  font-size: 14px;
  line-height: 1.75;
  color: #4a5d56;
  background: #f0f7f4;
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 24px;
}
.doctor-points {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.doctor-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--text-light);
  font-size: 15px;
}
.doctor-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}
.note {
  font-size: 13px;
  color: #8a9a95;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 0;
}

/* ===== 知识科普 ===== */
.section-science { background: #eef6f2; }
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.science-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(42,90,78,0.06);
  transition: transform .2s, box-shadow .2s;
}
.science-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(42,90,78,0.12);
}
.science-card .icon {
  font-size: 34px;
  margin-bottom: 14px;
}
.science-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #1a3a33;
}
.science-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.science-tip {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.science-tip strong {
  color: var(--accent);
  font-size: 15px;
}
.science-tip p {
  margin: 0;
  color: var(--text-light);
  font-size: 15px;
}

/* ===== 问卷引流 ===== */
.section-assessments { background: var(--bg-white); }
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.assessment-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(42,90,78,0.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.assessment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(42,90,78,0.12);
  border-color: rgba(42, 122, 102, 0.15);
}
.assessment-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.assessment-icon.youth { background: #e8f4ef; }
.assessment-icon.child { background: #fff4e6; }
.assessment-icon.male { background: #e6f0ff; }
.assessment-icon.female { background: #fce8f0; }
.assessment-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1a3a33;
}
.assessment-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
}
.link-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ===== 服务领域 ===== */
.section-services { background: #eef6f2; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-item {
  background: var(--bg-white);
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(42,90,78,0.06);
  display: flex;
  flex-direction: column;
}
.service-item .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.service-item h4 {
  margin: 0 0 10px;
  font-size: 19px;
  color: #1a3a33;
}
.service-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 预约咨询 ===== */
.section-consult { background: var(--bg-white); }
.consult-card {
  background: linear-gradient(135deg, #e8f4ef 0%, #f4e6d7 100%);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.consult-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
}
.step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.consult-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.consult-qr img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: #fff;
  padding: 8px;
  object-fit: contain;
}
.consult-qr span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a3a33;
  color: #a8c4bd;
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}
.site-footer p { margin: 6px 0; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: 2; text-align: center; }
  .hero-image { order: 1; }
  .hero h1 { font-size: 34px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { display: flex; justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .doctor-card { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: repeat(2, 1fr); }
  .assessment-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-card { flex-direction: column; align-items: center; text-align: center; }
  .consult-steps { align-items: center; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(42,90,78,0.08);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .lead { font-size: 15px; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 18px; }
  .science-grid, .assessment-grid, .services-grid { grid-template-columns: 1fr; }
  .doctor-card { padding: 24px; }
  .consult-card { padding: 28px; }
  .section h2 { font-size: 24px; }
  .section { padding: 50px 0; }
}
