/* 上海嘉乐宝儿科门诊部 官网样式 */
:root {
  --primary: #0f6e56;
  --primary-dark: #0b5242;
  --primary-light: #e9f5f0;
  --accent: #e8a23c;
  --bg: #f7f6f2;
  --ink: #22312c;
  --muted: #5c6b64;
  --line: #e5e4df;
  --white: #fff;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff;
  font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 42px;
}
.brand-text { font-size: 16px; font-weight: 700; line-height: 1.3; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.btn-nav {
  background: var(--primary); color: #fff !important; font-weight: 600; margin-left: 8px;
}
.btn-nav:hover { background: var(--primary-dark) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #eaf4ef 0%, #f3f8f2 55%, #fdf6ea 100%);
  padding: 72px 0 64px; border-bottom: 1px solid var(--line);
}
.hero .tag, .tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
  background: var(--primary-light); border: 1px solid #cfe8dd; border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
}
.hero h1 { font-size: 34px; line-height: 1.4; margin-bottom: 16px; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges span {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 8px;
}
.hero-badges svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }

/* ===== 通用 Section ===== */
.section { padding: 64px 0; }
.section.soft { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.section-title { font-size: 26px; margin: 6px 0 10px; }
.section-sub { color: var(--muted); margin-bottom: 32px; max-width: 720px; }

/* 面包屑 */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; color: #c9c7c0; }

/* ===== 资质卡片 ===== */
.qual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.qual {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.qual .q-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.qual h4 { font-size: 15.5px; margin-bottom: 6px; }
.qual p { font-size: 13.5px; color: var(--muted); }

/* ===== 服务/病种卡片 ===== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.svc-card .s-block { margin-top: 10px; }
.svc-card .s-block b { font-size: 14px; color: var(--primary); display: block; margin-bottom: 3px; }
.svc-card .s-block p { font-size: 14px; color: var(--muted); }

/* 服务入口卡（首页） */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.entry {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s, transform .15s;
}
.entry:hover { box-shadow: 0 6px 18px rgba(15,110,86,.12); transform: translateY(-2px); }
.entry .idx { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.entry h3 { font-size: 17px; margin-bottom: 6px; }
.entry p { font-size: 13.5px; color: var(--muted); }
.entry .go { display: inline-block; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===== 专家卡 ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-photo {
  height: 180px; background: linear-gradient(135deg, #dfeee8, #f2f7ee);
  display: flex; align-items: center; justify-content: center; color: #9db8ad; font-size: 14px;
}
.doc-body { padding: 20px 22px 24px; }
.doc-body h3 { font-size: 18px; }
.doc-body .doc-title { font-size: 13.5px; color: var(--primary); font-weight: 600; margin: 2px 0 12px; }
.doc-row { font-size: 14px; color: var(--muted); padding: 6px 0; border-top: 1px dashed var(--line); }
.doc-row b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ===== 时间线 ===== */
.timeline { border-left: 2px solid #d8e6df; padding-left: 24px; max-width: 720px; }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary); border: 3px solid #e9f5f0;
}
.tl-item .year { font-weight: 700; color: var(--primary); font-size: 15px; }
.tl-item p { font-size: 14.5px; color: var(--muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; }
.faq-item-f { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item-f summary {
  padding: 16px 20px; font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; gap: 10px;
}
.faq-item-f summary::-webkit-details-marker { display: none; }
.faq-item-f summary::before { content: "Q"; flex: 0 0 24px; height: 24px; background: var(--primary-light); color: var(--primary); border-radius: 6px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.faq-item-f .a { padding: 0 20px 18px 54px; font-size: 14.5px; color: var(--muted); }

/* ===== 案例卡 ===== */
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.case-card h3 { font-size: 18px; margin-bottom: 8px; }
.case-card .c-meta { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.case-card p { font-size: 14.5px; color: var(--muted); }
.case-card .c-quote { background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 16px; margin-top: 14px; font-size: 14px; color: var(--ink); }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-size: 18px; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { flex: 0 0 84px; color: var(--muted); font-size: 14px; }
.info-row .v { color: var(--ink); }
.steps-v { counter-reset: st; }
.steps-grid { counter-reset: st; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps-grid .sv { padding: 0 0 0 40px; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps-grid { grid-template-columns: 1fr; } }
.steps-v .sv { position: relative; padding: 0 0 18px 40px; }
.steps-v .sv::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps-v .sv h4 { font-size: 15.5px; }
.steps-v .sv p { font-size: 14px; color: var(--muted); }

/* ===== 提示框 ===== */
.notice {
  background: #fff8e8; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  padding: 14px 18px; font-size: 14px; color: #6b5a2a; margin: 18px 0;
}
.notice.green { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.ph { color: #b4472f; background: #fdf0ec; border-radius: 4px; padding: 0 5px; font-weight: 600; }

/* ===== CTA 带 ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius); padding: 36px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 22px; margin-bottom: 6px; }
.cta-band p { font-size: 14.5px; opacity: .85; max-width: 560px; }
.cta-band .btn { background: #fff; color: var(--primary); flex: 0 0 auto; }

/* ===== 页脚 ===== */
.site-footer { background: #123a30; color: #cfe0d8; margin-top: 64px; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.7fr 1.15fr; gap: 32px 56px; padding-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a, .site-footer p { display: block; font-size: 14px; color: #cfe0d8; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.fbrand { font-size: 17px; font-weight: 700; color: #fff; }
.f-logo { height: 48px; width: auto; display: block; margin-bottom: 16px; }
.footer-grid p { line-height: 1.9; }

/* 静态地图（左图右信息） */
.map-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: stretch; }
.map-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(15,110,86,.10); background: #e8efe9; }
.map-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-info { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.map-info h3 { font-size: 18px; margin-bottom: 8px; }
@media (max-width: 860px) { .map-split { grid-template-columns: 1fr; } .map-frame img { height: auto; } }
.footer-bottom { border-top: none; padding: 16px 0; font-size: 13px; text-align: center; color: #9db8ad; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-nav { text-align: center; margin: 8px 0 0; }
  .hero h1 { font-size: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
}

/* ===== 素材补充样式 ===== */
.brand-logo { height: 42px; width: auto; display: block; }

.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-photo img { width: 100%; border-radius: 16px; box-shadow: 0 14px 34px rgba(15,110,86,.16); display: block; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }

/* 背景图铺满型 Hero（全站通用） */
.hero-bg, .hero-page {
  position: relative;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero-bg { background-image: url('../images/photo-training.jpg'); }
.hero-bg::before, .hero-page::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(8,42,36,.90) 0%, rgba(8,42,36,.66) 52%, rgba(8,42,36,.30) 100%);
}
.hero-bg > .container, .hero-page > .container { position: relative; z-index: 1; }
.hero-bg .tag, .hero-page .tag { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.hero-bg h1, .hero-page h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero-bg .lead, .hero-page .lead { color: rgba(255,255,255,.93); max-width: 860px; }
.hero-bg .hero-badges span, .hero-page .hero-badges span { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); color: #fff; }
.hero-bg .hero-badges svg, .hero-page .hero-badges svg { stroke: #fff; }
.hero-bg .btn-outline, .hero-page .btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); color: #fff; }
.hero-bg .btn-outline:hover, .hero-page .btn-outline:hover { background: rgba(255,255,255,.2); }
@media (max-width: 860px) { .hero-bg, .hero-page { padding: 64px 0 56px; } }

/* 环境照片：整齐对称网格 */
.env-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px; }
.env-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--line); }
@media (max-width: 860px) { .env-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* 课程分类图文布局 */
.cat-split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; align-items: start; }
.cat-split .cat-photo { position: sticky; top: 90px; }
.cat-split .cat-photo img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 1020px) { .cat-split { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 860px) { .cat-split { grid-template-columns: 1fr; } .cat-split .cat-photo { position: static; } }

/* 老师横排卡片（左照片右介绍） */
.teacher-row { display: grid; grid-template-columns: 280px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.teacher-row + .teacher-row { margin-top: 20px; }
.teacher-row .t-photo { height: 360px; }
.teacher-row .t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.teacher-row .t-body { padding: 26px 34px; display: flex; flex-direction: column; justify-content: center; }
.teacher-row .t-body h3 { font-size: 21px; }
.teacher-row .t-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.teacher-row .t-tags span { font-size: 12.5px; color: var(--primary); background: var(--bg); border: 1px solid var(--primary-light); padding: 4px 13px; border-radius: 14px; }
@media (max-width: 860px) { .teacher-row { grid-template-columns: 1fr; } .teacher-row .t-photo { height: 320px; } }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--line); }
.photo-grid img.tall { height: 100%; }
@media (max-width: 680px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

.course-cat { margin-top: 40px; }
.course-cat > h3 { font-size: 19px; color: var(--primary); padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); margin-bottom: 14px; }
.course { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.course h4 { font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.course .c-form { font-size: 12.5px; color: #b07914; font-weight: 700; background: #fdf6ea; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.course p { font-size: 14px; color: var(--muted); margin-top: 6px; }

.price-band { background: linear-gradient(120deg, #fdf6ea, #fffdf8); border: 1px solid #f0dfc0; border-radius: var(--radius); padding: 22px 28px; display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.price-band .p-item .p-num { font-size: 24px; font-weight: 800; color: #b07914; }
.price-band .p-item .p-label { font-size: 13px; color: var(--muted); }

.case-card .case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 12px; }
.case-card .cf { background: var(--bg); border-radius: 10px; padding: 12px 15px; font-size: 13.5px; color: var(--muted); }
.case-card .cf b { display: block; color: var(--primary); font-size: 12.5px; margin-bottom: 3px; }
@media (max-width: 680px) { .case-card .case-facts { grid-template-columns: 1fr; } }

.faq-group-title { font-size: 17px; color: var(--primary); margin: 38px 0 14px; padding-left: 10px; border-left: 4px solid var(--primary); }
.anchor { position: relative; top: -90px; display: block; height: 0; }

/* ===== 文章分享 ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 6px 18px rgba(15,110,86,.12); transform: translateY(-2px); }
.post-card .p-meta { font-size: 12.5px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.post-card h3 { font-size: 17px; line-height: 1.55; margin-bottom: 8px; }
.post-card p { font-size: 13.5px; color: var(--muted); }
.post-card .go { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--primary); font-weight: 700; }

.article-wrap { max-width: 820px; }
.a-meta { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.article-body h2 { font-size: 20px; margin: 34px 0 12px; color: var(--primary); }
.article-body h3 { font-size: 16.5px; margin: 22px 0 8px; }
.article-body p, .article-body li { font-size: 15px; line-height: 1.9; color: #3d3d3a; margin-bottom: 12px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body strong { color: var(--primary); }
.a-quote { background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14.5px; color: var(--ink); margin: 18px 0; }
.article-body blockquote { background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14.5px; color: var(--ink); margin: 18px 0; }
@media (max-width: 860px) { .article-body h2 { font-size: 18px; } }
