/* ==========================================================================
   Shanghai Tongyi Pediatric Clinic - global stylesheet
   - Responsive breakpoints: 1024px (tablet) / 768px (mobile)
   - Zero dependencies, handwritten CSS
   ========================================================================== */

:root {
  --primary: #2f9ad6;          /* 主色：亲和蓝 */
  --primary-dark: #1d7cae;
  --primary-light: #e8f5fc;
  --accent: #ff9f43;           /* 强调色：暖橙（CTA） */
  --accent-dark: #f28c1f;
  --teal: #3ec1b0;             /* 辅助色：青绿 */
  --text: #2d3a4a;
  --text-light: #6b7a8d;
  --border: #e3eaf1;
  --bg: #f6fafd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(45, 58, 74, 0.08);
  --shadow-hover: 0 8px 24px rgba(47, 154, 214, 0.18);
  --container: 1200px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Utilities */
.text-center { text-align: center; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 15px; }
.section-title .en { display: block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }

/* ==========================================================================
   顶部信息条
   ========================================================================== */
/* Inline SVG icon base sizing (prevents oversized icons) */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; flex-shrink: 0; }
.topbar .ic { width: 13px; height: 13px; vertical-align: -2px; }
.topbar {
  background: var(--primary-dark);
  color: #dceef9;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 12px;
}
.topbar a { color: #fff; }
.topbar .topbar-right { display: flex; gap: 18px; white-space: nowrap; }

/* ==========================================================================
   主导航（吸顶）
   ========================================================================== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
}
.logo-text .logo-name { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }

/* Menu */
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active { background: var(--primary-light); color: var(--primary-dark); }

.nav-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.35);
}
.nav-cta:hover { background: var(--accent-dark); }

/* Hamburger button (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 3px; border-radius: 2px;
  background: var(--text); transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   页面横幅（内页）
   ========================================================================== */
.page-banner {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--teal) 100%);
  color: #fff;
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner .breadcrumb { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.page-banner .breadcrumb a { color: #fff; }

/* ==========================================================================
   首页 Hero
   ========================================================================== */
.hero {
  background: linear-gradient(120deg, #e8f5fc 0%, #f2fbf9 100%);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 40px; line-height: 1.35; margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary); }
.hero .lead { color: var(--text-light); font-size: 17px; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(47, 154, 214, 0.35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 159, 67, 0.35); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }

/* Hero right visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}
.hero-card .hero-card-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hero-card .hero-card-title svg { width: 18px; height: 18px; color: var(--primary); }
.hero-card ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.hero-card .dot.am { background: var(--primary); }
.hero-card .dot.pm { background: var(--accent); }
.hero-blob {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, rgba(62, 193, 176, 0.18), rgba(47, 154, 214, 0.18));
}
.hero-blob.b1 { width: 120px; height: 120px; top: -30px; right: 6%; }
.hero-blob.b2 { width: 70px; height: 70px; bottom: -20px; left: 4%; }

/* ==========================================================================
   快捷服务
   ========================================================================== */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-link {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  display: block;
}
.quick-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.quick-link .q-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  background: var(--primary-light);
}
.quick-link .q-icon svg { width: 30px; height: 30px; }
.quick-link h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.quick-link p { font-size: 13px; color: var(--text-light); }

/* ==========================================================================
   专家卡片
   ========================================================================== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.expert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.expert-photo {
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(135deg, var(--primary-light), #d4f0ec);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
/* 专家真实照片 */
.expert-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* 无照片时的姓氏占位头像 */
.expert-photo .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: var(--primary);
  box-shadow: 0 4px 12px rgba(47, 154, 214, 0.2);
}
.expert-photo .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.expert-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.expert-name { font-size: 18px; font-weight: 700; }
.expert-title { color: var(--primary-dark); font-size: 14px; margin: 2px 0 10px; }
.expert-dept { color: var(--text-light); font-size: 14px; flex: 1; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.expert-tags span {
  font-size: 12px; color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 10px; border-radius: 999px;
}
.expert-info .more { margin-top: 14px; font-size: 14px; font-weight: 600; }

/* ==========================================================================
   出诊表
   ========================================================================== */
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.schedule-note { font-size: 13px; color: var(--text-light); }
.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.day-tab {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.day-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.day-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.schedule-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.schedule-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.schedule-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}
.schedule-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:hover td { background: #fafdff; }
.schedule-table .doc-name { font-weight: 600; }
.status { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.status.on { background: #e6f9f0; color: #0da36f; }
.status.off { background: #f1f4f7; color: #9aa7b5; }
.status.full { background: #fdeee3; color: #e07b1f; }

/* ==========================================================================
   新闻卡片
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-light), #d4f0ec);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.news-thumb svg { width: 46px; height: 46px; }
.news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--primary-dark); }
.news-body p { font-size: 14px; color: var(--text-light); flex: 1; }

/* ==========================================================================
   通用内容页（指南/关于）
   ========================================================================== */
.page-content { background: var(--white); }
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 36px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #4a5a6d; margin-bottom: 12px; }
.prose ul { padding-left: 4px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: "•"; position: absolute; left: 6px; color: var(--primary); }

/* Step flow */
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.step-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  position: relative;
}
.step-item .step-no {
  width: 40px; height: 40px; margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: 15px; margin-bottom: 4px; }
.step-item p { font-size: 13px; color: var(--text-light); }

/* Info boxes */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: #33586e;
  margin: 20px 0;
}
.info-box.warn { background: #fdf3e7; border-color: var(--accent); color: #8a5a1d; }

/* ==========================================================================
   专家详情页
   ========================================================================== */
.expert-detail { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.expert-side {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.expert-side .avatar-lg {
  width: 150px; height: 150px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #d4f0ec);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700; color: var(--primary);
}
.expert-side h2 { font-size: 22px; }
.expert-side .side-title { color: var(--primary-dark); margin-bottom: 12px; }
.expert-side .btn { width: 100%; margin-top: 16px; }
.expert-main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
}
.expert-main h3 { font-size: 19px; margin: 26px 0 10px; color: var(--primary-dark); }
.expert-main h3:first-child { margin-top: 0; }

/* ==========================================================================
   特色诊疗病种宫格（真实病种图标）
   ========================================================================== */
.cate-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cate-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 10px 16px;
  text-align: center;
  transition: all 0.25s;
  display: block;
}
.cate-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cate-item img { width: 56px; height: 56px; margin: 0 auto 10px; object-fit: contain; }
.cate-item .cate-name { font-size: 15px; font-weight: 600; color: var(--text); }

/* Expert affiliation label */
.expert-from {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}
.expert-fee {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-dark);
  background: #fdf3e7;
  padding: 3px 12px;
  border-radius: 999px;
}

/* Hero banner image */
.hero-banner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.hero-banner img { width: 100%; display: block; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { background: #22344a; color: #b9c6d4; margin-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 56px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: #b9c6d4; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 13px; margin-top: 14px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .fc-icon { flex-shrink: 0; color: #8fa2b5; margin-top: 4px; }
.footer-contact .fc-icon svg { width: 14px; height: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}
.footer-bottom a { color: #8fa2b5; }

/* Back to top */
.back-top {
  position: fixed; right: 24px; bottom: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; border: 0;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(47, 154, 214, 0.4);
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }

/* ==========================================================================
/* Expert card expandable details (single-page team section) */
.expert-more { margin-top: 12px; }
.expert-more summary {
  cursor: pointer; list-style: none;
  color: var(--primary-dark); font-weight: 600; font-size: 14px;
  padding: 6px 0;
}
.expert-more summary::-webkit-details-marker { display: none; }
.expert-more summary::after { content: "展开"; font-size: 12px; margin-left: 6px; }
.expert-more[open] summary::after { content: "收起"; }
.expert-more[open] summary { margin-bottom: 8px; }
.detail-body {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  font-size: 14px;
  color: #4a5a6d;
}
.detail-body h4 { margin: 10px 0 4px; color: var(--primary-dark); font-size: 14px; }
.detail-body p { margin-bottom: 8px; }

/* Card CTA row */
.card-cta { display: flex; gap: 10px; margin-top: 14px; }
.btn-sm { padding: 9px 18px; font-size: 14px; flex: 1; text-align: center; }

/* Contact cards */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.contact-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; padding: 30px 20px;
}
.big-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-light); color: var(--primary-dark);
  margin-bottom: 12px;
}
.ic-big { width: 26px; height: 26px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* Anchor offset below sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 46px); }

@media (max-width: 768px) {
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .card-cta .btn-sm { padding: 10px 12px; }
}


/* Doctor compact cards */
.doc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.doc-photo {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover; object-position: top center;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 4px 14px rgba(47, 154, 214, 0.18);
}
.doc-name { font-size: 18px; color: var(--text); }
.doc-title { color: var(--primary-dark); font-size: 13px; margin-top: 2px; }
.doc-affil { font-size: 12px; color: var(--text-light); margin-top: 8px; line-height: 1.6; }
.doc-skill {
  font-size: 13px; color: #4a5a6d; margin-top: 10px;
  text-align: left;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .step-flow { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cate-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 24px; }

  /* Mobile utilities */
  .hide-sm { display: none !important; }

  /* Top bar: 手机上仅保留电话，居中单行 */
  .topbar { font-size: 13px; }
  .topbar .container { justify-content: center; min-height: 38px; }

  /* Filter tabs: 单行横向滑动 */
  .day-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { white-space: nowrap; flex-shrink: 0; padding: 7px 14px; font-size: 13px; }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(45, 58, 74, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 4px; }
  .main-nav a { padding: 12px 16px; border-radius: 10px; }
  .nav-wrap .nav-cta { display: none; }

  /* Hero */
  .hero { padding: 40px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 15px; margin-bottom: 24px; }
  .hero-actions { flex-direction: row; gap: 10px; }
  .hero-actions .btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 13px 8px;
    font-size: 14px;
  }

  .page-banner { padding: 36px 0; }
  .page-banner h1 { font-size: 24px; }

  .expert-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 就诊流程：小屏两列紧凑 */
  .step-flow { grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 28px; }
  .step-item { padding: 16px 8px; }
  .step-item .step-no { width: 30px; height: 30px; font-size: 14px; margin-bottom: 6px; }
  .step-item h4 { font-size: 13px; }
  .step-item p { font-size: 11px; line-height: 1.5; }
  .cate-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Two-column to single-column */
  .expert-detail { grid-template-columns: 1fr; }
  .expert-side { position: static; }
  .expert-main { padding: 24px 20px; }

  /* Schedule table to card layout */
  .schedule-table { min-width: 0; }
  .schedule-wrap { overflow: visible; background: transparent; box-shadow: none; }
  .schedule-table thead { display: none; }
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; width: 100%; }
  .schedule-table tr {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    padding: 6px 0;
    overflow: hidden;
  }
  .schedule-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-bottom: 1px dashed var(--border);
    padding: 10px 18px;
  }
  .schedule-table td:last-child { border-bottom: 0; }
  .schedule-table td::before {
    content: attr(data-label);
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Footer: 品牌与联系方式通栏，中间两列并排 */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 14px;
    padding: 34px 0 22px;
  }
  .footer-grid > .footer-brand,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer h4 { font-size: 14px; margin-bottom: 10px; }
  .site-footer h4::after { content: ""; display: block; width: 18px; height: 2px; margin-top: 6px; background: var(--primary); border-radius: 1px; }
  .site-footer ul li { margin-bottom: 7px; font-size: 13px; }
  .footer-brand p { font-size: 12px; margin-top: 10px; }
  .footer-contact li { line-height: 1.7; }
  .back-top { right: 14px; bottom: 20px; }
}

@media (max-width: 480px) {
  /* 紧凑名片卡：小屏保持两列 */
  .expert-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .doc-card { padding: 14px 8px 16px; }
  .doc-photo { width: 84px; height: 84px; }
  .doc-name { font-size: 15px; }
  .doc-title { font-size: 11px; }
  .doc-affil { font-size: 11px; margin-top: 5px; }
  .doc-skill { font-size: 12px; -webkit-line-clamp: 2; }
  /* 快捷入口：小屏两列两行 */
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-link { padding: 18px 8px 14px; }
  .quick-link .q-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 10px; }
  .quick-link .q-icon svg { width: 22px; height: 22px; }
  .quick-link h3 { font-size: 14px; margin-bottom: 3px; }
  .quick-link p { font-size: 11px; line-height: 1.5; }
  .topbar .topbar-right { gap: 10px; }
}
