/* 贵州睿德迩妇产医院 — 官网改版高保真原型样式 */
/* 设计定位：专业、可信赖、温暖、AI/GEO友好 */
/* 主色调：蜜桃粉橙 #F2A1A8（母婴粉系）| 辅助：暖橙 #F7C59F | 背景：浅香槟粉 #FFF8F5 */

:root {
  --brand: #F2A1A8;
  --brand-dark: #D97E86;
  --brand-light: #FBD0D6;
  --accent: #F7C59F;
  --accent-light: #FCEBD8;
  --warm: #FFF8F5;
  --warm-2: #FCE9EA;
  --ink: #1F2937;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --muted: #9CA3AF;
  --line: #F6DBD7;
  --bg: #FFFFFF;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(242, 161, 168, 0.16);
  --shadow-lg: 0 16px 48px rgba(242, 161, 168, 0.20);
  --max-w: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 72px 0; }
.section-warm { background: var(--warm); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.section-title .subtitle { color: var(--ink-3); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-title p { max-width: 640px; margin: 12px auto 0; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--brand); color: #7A2E3C; }
.btn-primary:hover { background: var(--brand-dark); color: #5E2330; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #7A4A22; }
.btn-accent:hover { background: #F0A868; color: #7A4A22; text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #7A2E3C; text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; max-width: 280px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul, .nav .menu, .nav .sub-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav li { margin: 0; padding: 0; }
.nav a { padding: 8px 14px; color: var(--ink-2); font-size: 15px; border-radius: 8px; transition: background .15s, color .15s; display: block; text-decoration: none; }
.nav a:hover, .nav a.active, .nav .current-menu-item > a { background: var(--warm); color: var(--brand); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-dark); font-size: 17px; }
.header-phone svg { width: 20px; height: 20px; }

.mobile-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }

/* Hero Banner */
.hero { position: relative; background: linear-gradient(105deg, var(--warm) 0%, #fff 55%, #FCE9EA 100%); padding: 72px 0 84px; overflow: hidden; }
.hero-has-banner { background-size: cover; background-position: center; background-repeat: no-repeat; padding: 100px 0 90px; }
.hero-has-banner .hero-grid { position: relative; z-index: 2; }
/* QA only（左侧内容关闭）：卡片靠右 */
.hero-qa-only .hero-grid { grid-template-columns: 1fr; justify-items: end; }
.hero-qa-only .hero-card { max-width: 480px; }
/* 仅内容（QA关闭）：单列全宽 */
.hero-content-only .hero-grid { grid-template-columns: 1fr; }
/* 全部关闭：只留背景 */
.hero-empty .hero-grid { display: block; min-height: 200px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.25; margin: 0 0 16px; }
.hero h1 strong { color: var(--brand); }
.hero-desc { font-size: 18px; color: var(--ink-2); margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; margin: 32px 0; }
.stat { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--ink-3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.hero-card h3 { margin: 0 0 16px; font-size: 18px; }
.ai-bubble { background: var(--warm-2); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.ai-bubble p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ai-bubble .q { font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.hero-card .btn { width: 100%; }

/* Search / keywords */
.search-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.search-row span { color: var(--ink-3); font-size: 14px; }
.tag { display: inline-flex; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.tag:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Cards */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card-text { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Service grid */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-grid-5 { grid-template-columns: repeat(5, 1fr); }
.service-card { padding: 28px 22px; text-align: center; }
.service-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--warm); border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.service-icon svg { width: 32px; height: 32px; }

/* Process */
.process-list { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.process-step { text-align: center; padding: 18px 8px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.process-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin: 0 auto 10px; }
.process-step .label { font-size: 13px; color: var(--ink); font-weight: 600; }
.process-therapy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.therapy-step { background: #fff; border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--brand); }
.therapy-step h4 { margin: 0 0 8px; font-size: 17px; }
.therapy-step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Doctors */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doctor-card { display: flex; gap: 18px; align-items: center; padding: 22px; }
.doctor-card img { width: 110px; height: 140px; object-fit: cover; border-radius: 10px; }
.doctor-card .info { flex: 1; }
.doctor-card .name { font-size: 20px; font-weight: 700; margin: 0; }
.doctor-card .title { color: var(--brand-dark); font-size: 14px; font-weight: 600; margin: 4px 0 10px; }
.doctor-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.doctor-card .tags span { font-size: 12px; background: var(--warm); color: var(--ink-2); padding: 3px 10px; border-radius: 999px; }

/* Doctor list page */
.doctor-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doctor-list-card { text-align: center; padding: 28px 22px; }
.doctor-list-card .avatar { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%; background: var(--warm-2); display: grid; place-items: center; color: var(--brand); font-size: 52px; font-weight: 700; overflow: hidden; }
.doctor-list-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.doctor-list-card .name { font-size: 22px; margin: 0 0 4px; }
.doctor-list-card .role { color: var(--brand-dark); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.doctor-list-card .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.doctor-list-card .tags span { font-size: 12px; background: var(--warm); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--line); }
.trust-item svg { width: 40px; height: 40px; color: var(--brand); margin: 0 auto 10px; }
.trust-item h4 { margin: 0 0 6px; font-size: 16px; }
.trust-item p { margin: 0; font-size: 13px; color: var(--ink-3); }

/* News */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.news-feature-link { display: block; text-decoration: none; color: inherit; }
.news-feature { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: box-shadow .25s, transform .25s; }
.news-feature:hover { box-shadow: 0 8px 24px rgba(242,161,168,.2); transform: translateY(-3px); }
.news-feature-img { height: 180px; overflow: hidden; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-feature:hover .news-feature-img img { transform: scale(1.04); }
.news-feature-body { padding: 16px 18px; }
.news-feature-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-feature-meta time { font-size: 12px; color: var(--ink-3); }
.news-cat { font-size: 11px; background: var(--brand-light); color: var(--brand-dark); padding: 1px 8px; border-radius: 8px; font-weight: 600; }
.news-feature h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); line-height: 1.45; font-weight: 700; }
.news-feature-body p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-row { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.news-row .date { flex: none; min-width: 42px; font-size: 12px; color: var(--brand-dark); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-row-body { flex: 1; min-width: 0; }
.news-row h4 { font-size: 14px; margin: 0 0 4px; color: var(--ink); line-height: 1.45; font-weight: 600; }
.news-row-body p { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-row:hover { transform: translateX(4px); border-color: var(--brand); box-shadow: 0 4px 14px rgba(242,161,168,.15); }
.news-row:hover h4 { color: var(--brand-dark); }

/* Environment */
.env-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.env-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }
.env-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.env-item:hover img { transform: scale(1.05); }
.env-item span { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 14px; }

/* 医院资质 / 荣誉资质 图片墙 */
/* 资质图片：单行横向滚动（左右滑动），图片等高、宽度自适应不裁切 */
.cert-gallery { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cert-gallery::-webkit-scrollbar { height: 6px; }
.cert-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cert-gallery::-webkit-scrollbar-track { background: transparent; }
.cert-item { flex: 0 0 auto; scroll-snap-align: start; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.cert-item img { display: block; height: 220px; width: auto; max-width: none; }
.cert-item:hover { box-shadow: 0 6px 20px rgba(242,161,168,.2); transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: none; border: none; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.faq-q:hover { color: var(--brand); }
.faq-q .chevron { transition: transform .2s; color: var(--ink-3); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a > div { padding: 0 22px 18px; color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.contact-info { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-row svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.contact-row strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-row p { margin: 0; font-size: 14px; color: var(--ink-2); }
.contact-map { background: var(--warm-2); border-radius: var(--radius-lg); min-height: 320px; display: block; position: relative; overflow: hidden; }
.contact-map iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-open { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--brand); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.map-open:hover { background: var(--brand); color: #fff; text-decoration: none; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-card iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.8); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* Service page detail */
.page-hero { background: linear-gradient(105deg, var(--warm) 0%, #fff 55%, #FCE9EA 100%); padding: 52px 0 60px; }
.page-hero h1 { font-size: 34px; margin: 0 0 12px; }
.page-hero p { font-size: 17px; color: var(--ink-2);  margin: 0; }
.breadcrumb { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); }

.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 48px 0; }
.main-content section { margin-bottom: 42px; }
.main-content h2 { font-size: 24px; font-weight: 700; margin: 0 0 14px; color: var(--brand-dark); }
.main-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.main-content p { color: var(--ink-2); margin: 0 0 14px; }
.main-content ul, .main-content ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 16px; }
.main-content li { margin-bottom: 6px; }

.answer-box { background: #FDF2F3; border-left: 4px solid var(--brand); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 18px; }
.answer-box p { color: var(--ink); font-weight: 500; margin: 0; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.info-table th { background: var(--warm); font-weight: 600; color: var(--brand-dark); }

.sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.sidebar-card h4 { margin: 0 0 14px; font-size: 16px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card a { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.sidebar-card a:hover { color: var(--brand); }

/* Knowledge hub */
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.knowledge-card { padding: 24px; }
.knowledge-card .k-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--warm); display: grid; place-items: center; color: var(--brand); margin-bottom: 14px; }
.knowledge-card ul { padding-left: 18px; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

/* Article list */
.article-list { display: grid; gap: 18px; }
.list-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.article-count { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn { min-width: 42px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }
.article-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 0; }
.article-card img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.article-card .body { padding: 22px; }
.article-card .meta { display: flex; gap: 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.article-card .meta .cat { color: var(--brand); font-weight: 600; }
.article-card h3 { margin: 0 0 10px; font-size: 18px; }
.article-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-bar a { padding: 8px 16px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.filter-bar a:hover, .filter-bar a.active { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }

/* Doctor profile */
.profile-hero { background: var(--warm); padding: 52px 0; }
.profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 36px; background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.profile-card img { width: 220px; height: 280px; object-fit: cover; border-radius: var(--radius); }
.profile-meta h1 { margin: 0 0 8px; font-size: 32px; }
.profile-meta .role { color: var(--brand); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.profile-meta .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.profile-meta .tag-list span { background: var(--warm); padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand); }
.timeline-item .year { font-size: 14px; color: var(--brand); font-weight: 700; margin-bottom: 4px; }
.timeline-item h3 { margin: 0 0 6px; font-size: 18px; }
.timeline-item p { margin: 0; color: var(--ink-2); }

/* Values / culture */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { text-align: center; padding: 32px 24px; }
.value-card .icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--warm); border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.value-card h3 { margin: 0 0 10px; font-size: 18px; }
.value-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Mobile */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .service-grid, .service-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(5, 1fr); }
  .process-therapy { grid-template-columns: repeat(3, 1fr); }
  .doctor-grid, .doctor-list-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .env-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card { grid-template-columns: 160px 1fr; }
  .profile-card img { width: 160px; height: 200px; }
  .article-card { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav ul, .nav .menu { flex-direction: column; width: 100%; gap: 4px; }
  .nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: 28px; }
  .section-title h2 { font-size: 24px; }
  .service-grid, .service-grid-5, .doctor-grid, .doctor-list-grid, .trust-grid, .process-list, .process-therapy, .env-grid, .knowledge-grid, .footer-grid, .value-grid { grid-template-columns: 1fr; }
  .cert-item img { height: 160px; }
  .hero-stats { gap: 18px; }
  /* 服务卡：移动端横向滑动一行，避免纵向平铺拉长页面 */
  .service-grid-5 { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(50% - 50vw); padding: 4px 4vw 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); }
  .service-grid-5::-webkit-scrollbar { display: none; }
  .service-grid-5 .service-card { flex: 0 0 44%; scroll-snap-align: start; padding: 22px 16px; }
  .service-grid-5 .service-icon { width: 52px; height: 52px; margin-bottom: 12px; }
  .service-grid-5 .service-icon svg { width: 26px; height: 26px; }
  /* 新闻区：移动端压缩 */
  .news-feature-img { height: 140px; }
  .news-list { gap: 8px; }
  .news-row { padding: 10px 12px; gap: 8px; }
  .news-row .date { min-width: 36px; }
  /* 首页其余模块：移动端一律横向滑动一行，避免纵向平铺拉长页面 */
  .home .process-list, .home .process-therapy, .home .doctor-grid, .home .trust-grid, .home .knowledge-grid, .home .env-grid {
    display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(50% - 50vw); padding: 4px 4vw 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent);
  }
  .home .process-list::-webkit-scrollbar, .home .process-therapy::-webkit-scrollbar, .home .doctor-grid::-webkit-scrollbar, .home .trust-grid::-webkit-scrollbar, .home .knowledge-grid::-webkit-scrollbar, .home .env-grid::-webkit-scrollbar { display: none; }
  .home .process-step { flex: 0 0 auto; scroll-snap-align: start; min-width: 86px; }
  .home .therapy-step { flex: 0 0 72%; scroll-snap-align: start; }
  .home .doctor-card { flex: 0 0 78%; scroll-snap-align: start; }
  .home .trust-item { flex: 0 0 70%; scroll-snap-align: start; }
  .home .knowledge-card { flex: 0 0 78%; scroll-snap-align: start; }
  .home .env-item { flex: 0 0 70%; scroll-snap-align: start; }
  /* 页脚：移动端诊疗服务/关于医院/帮助中心一行三列 */
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-card img { margin: 0 auto; }
  .timeline { padding-left: 22px; }
}

/* ══════════════════════════════════════
 * 文章详情页
 * ══════════════════════════════════════ */
.single-article { flex: 1; min-width: 0; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.35; margin: 0 0 12px; }
.article-meta { display: flex; align-items: center; gap: 16px; color: var(--ink-3); font-size: 14px; }
.article-cat { background: var(--brand-light); color: var(--brand-dark); padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.article-thumb { margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
.article-thumb img { width: 100%; height: auto; display: block; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.article-content p { margin-bottom: 20px; }
.article-content h3 { font-size: 20px; color: var(--ink); margin: 32px 0 16px; font-weight: 700; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-content blockquote { border-left: 4px solid var(--brand); padding: 16px 20px; background: var(--warm); border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; }

.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-nav a { padding: 16px; background: var(--warm); border-radius: 10px; text-decoration: none; transition: box-shadow .2s; }
.article-nav a:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.nav-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.nav-title { display: block; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.nav-next { text-align: right; }

.article-sidebar { width: 280px; flex-shrink: 0; }
.article-sidebar h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.related-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .2s; }
.related-item:hover { background: var(--warm); }
.related-item time { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.related-item span { font-size: 14px; color: var(--ink); line-height: 1.5; }

@media (max-width: 768px) {
  .article-header h1 { font-size: 22px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-sidebar { width: 100%; margin-top: 32px; }
}
