/* ==========================================================================
   精医和生官网 - 全局样式
   主色参考 supremelife.cn logo 绿

   目录：
   1. 变量 / reset / 通用工具
   2. Header / Nav / 下拉菜单 / 移动端汉堡
   3. Banner 轮播
   4. 首页分区：快捷入口 / 介绍 / 专家轮播 / 新闻 / 科普 / 预约
   5. 内页：面包屑 / 标题 / 列表 / 详情 / 单页 / 专家详情 / 联系
   6. Footer / 右侧浮动栏
   7. 响应式（PC 小屏 / Pad / Mobile / 小屏手机）
   ========================================================================== */

/* 1. ================= 基础 ================= */
:root {
  --primary: #1a7a5f;
  --primary-dark: #145e49;
  --primary-light: #2fa37a;
  --primary-soft: #e8f5ef;
  --accent: #c89b55;
  --text: #2a2f30;
  --text-muted: #6b7684;
  --text-light: #98a2b3;
  --border: #e6ebf0;
  --bg-soft: #f6f9f7;
  --bg-gray: #f2f4f7;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text); line-height: 1.7; background: #fff;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }

.container { width: var(--container); max-width: 100%; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block; padding: 10px 28px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 14px; transition: background .2s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.more-link { text-align: center; margin-top: 30px; }

/* 2. ================= Header / Nav ================= */
.header { background: #fff; border-bottom: 1px solid var(--border); position: static; }
.header-top { padding: 14px 0; border-bottom: 1px solid var(--border); }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.header-logo { display: flex; align-items: center; gap: 14px; color: inherit; }
.header-logo img { height: 52px; }
.header-logo .slogan {
  font-size: 15px; color: var(--text-muted);
  border-left: 1px solid var(--border); padding-left: 14px;
}
.header-logo .slogan strong { color: var(--primary); font-weight: 600; }

.header-contact { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-muted); }
.header-contact .hotline { display: flex; align-items: center; gap: 8px; }
.header-contact .hotline .tel { color: var(--primary); font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.header-contact .qr-hover { position: relative; cursor: pointer; }
.header-contact .qr-hover > span { color: var(--primary); }

.qr-pop {
  position: absolute; top: 100%; right: 0; left: auto; transform: translateY(8px);
  width: 156px; box-sizing: content-box; text-align: center;
  background: #fff; border: 1px solid var(--border); padding: 8px;
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; z-index: 50;
}
/* 触发器与弹窗之间的不可见 hover 桥，避免鼠标移动到弹窗时丢失 hover 态 */
.qr-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.qr-hover:hover .qr-pop,
.qr-pop:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.qr-pop img { width: 156px; height: 156px; display: block; object-fit: contain; margin: 0 auto; }
.qr-pop .qr-tip { margin: 6px 0 2px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  font-size: 22px; color: var(--primary); padding: 6px 12px;
  background: var(--primary-soft); border-radius: var(--radius);
}

.nav { background: #fff; }
.nav .container { display: flex; justify-content: center; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; padding: 0 6px; }
.nav-menu > li > a {
  display: block; padding: 16px 26px; font-size: 16px; font-weight: 500; color: var(--text);
  position: relative;
}
.nav-menu > li > a::after {
  content: ''; position: absolute; left: 26px; right: 26px; bottom: 10px; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .25s;
}
.nav-menu > li:hover > a,
.nav-menu > li.active > a { color: var(--primary); }
.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }
.nav-menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* 下拉：顶部绿色短边 + 左对齐父菜单 */
.submenu {
  position: absolute; top: 100%; left: 6px; transform: translateY(8px);
  background: #fff; min-width: 100%; padding: 6px 0;
  border-top: 2px solid var(--primary); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .22s; z-index: 20;
}
.submenu li a {
  display: block; padding: 10px 26px; font-size: 14px; color: var(--text); white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.submenu li:last-child a { border-bottom: 0; }
.submenu li a:hover,
.submenu li a.is-active { background: var(--primary-soft); color: var(--primary); }

/* 3. ================= Banner 轮播 ================= */
/* slide 本身即点击热区：<a class="banner-slide"><img></a>
   图片按原始宽高比等比例完整显示：
   - max-width: 100% 防止放大失真；小于容器时居中。
   - height: auto 由浏览器按比例计算高度，不会被拉伸压缩。
   仅显示 .active 一张（display 切换），未启用淡入淡出。 */
.banner { position: relative; width: 100%; overflow: hidden; background: #000; text-align: center; }
.banner-track { position: relative; width: 100%; }
.banner-slide {
  position: relative; display: block;
  cursor: pointer;
}
.banner-slide:not(.active) { display: none; }
.banner-slide img {
  max-width: 100%; height: auto;
  display: block; margin: 0 auto;
}
.banner-dots {
  position: absolute; bottom: 24px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; z-index: 3;
}
.banner-dots span {
  width: 30px; height: 4px; background: rgba(255, 255, 255, .5); border-radius: 2px;
  cursor: pointer; transition: background .2s;
}
.banner-dots span.active { background: var(--primary-light); }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff; font-size: 22px; line-height: 46px; text-align: center;
  cursor: pointer; z-index: 3; transition: background .2s;
}
.banner-arrow:hover { background: var(--primary); }
.banner-arrow.prev { left: 40px; }
.banner-arrow.next { right: 40px; }

/* 4. ================= 首页分区 ================= */
.quicklinks { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.quicklinks ul { display: flex; flex-wrap: wrap; }
.quicklinks li {
  flex: 1; min-width: 140px; text-align: center; padding: 22px 10px; font-size: 17px;
  border-right: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: background .2s, color .2s;
}
.quicklinks li:last-child { border-right: 0; }
.quicklinks li .ico {
  display: inline-block; width: 26px; height: 26px; vertical-align: -6px; margin-right: 10px;
  background: var(--primary); border-radius: 50%; color: #fff; font-size: 14px; line-height: 26px;
}
.quicklinks li:hover { background: var(--primary); color: #fff; }
.quicklinks li:hover .ico { background: #fff; color: var(--primary); }

.section { padding: 70px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-size: 30px; letter-spacing: 1px; color: var(--text);
  display: inline-flex; align-items: center; gap: 16px;
}
.section-head h2::before, .section-head h2::after {
  content: ''; width: 40px; height: 2px; background: var(--primary);
}
.section-head p { margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }

/* 介绍 */
.intro { display: grid; grid-template-columns: 540px 1fr; gap: 50px; align-items: center; }
.intro .cover { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.intro h3 { font-size: 22px; margin-bottom: 16px; color: var(--primary-dark); }
.intro p { color: var(--text-muted); margin: 0 0 14px; }
.intro .meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 24px; }
.intro .meta li { font-size: 13px; color: var(--text-muted); }
.intro .meta li strong { display: block; font-size: 28px; color: var(--primary); font-weight: 700; }

/* 专家卡片（通用） */
.expert-card {
  display: block; color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.expert-card .photo {
  width: 100%; aspect-ratio: 3 / 4; background: var(--bg-gray);
  background-size: cover; background-position: center top;
}
.expert-card .info { padding: 18px 20px 22px; }
.expert-card .name { font-size: 18px; font-weight: 600; }
.expert-card .title { color: var(--primary); font-size: 13px; margin-top: 4px; }
.expert-card .specialty {
  margin-top: 10px; color: var(--text-muted); font-size: 13px; min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 专家轮播（首页） */
.expert-carousel { position: relative; padding: 0 60px; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.carousel-track.is-center { justify-content: center; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--primary); font-size: 22px; line-height: 44px; text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer; z-index: 2; transition: all .2s;
}
.carousel-arrow:hover { background: var(--primary); color: #fff; }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

/* 专家网格（专家页） */
.expert-list { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }

/* 新闻动态 */
.news-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.news-block h3 {
  font-size: 20px; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.news-block h3 .more { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.news-block h3 .more:hover { color: var(--primary); }
.news-item {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.news-item:last-child { border-bottom: 0; }
.news-item .thumb {
  flex-shrink: 0; width: 140px; height: 92px; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-gray);
}
.news-item .body { flex: 1; min-width: 0; }
.news-item .body h4 {
  font-size: 15px; margin-bottom: 6px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-item:hover .body h4 { color: var(--primary); }
.news-item .body p {
  margin: 0 0 6px; color: var(--text-muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .body .date { color: var(--text-light); font-size: 12px; }

/* 科普 / 膳食 */
.kxkt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.kxkt-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px; position: relative; overflow: hidden;
}
.kxkt-card::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%; background: var(--primary-soft);
}
.kxkt-card h3 { font-size: 22px; color: var(--primary-dark); position: relative; }
.kxkt-card ul { margin-top: 16px; position: relative; }
.kxkt-card ul li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kxkt-card ul li:last-child { border: 0; }
.kxkt-card ul li a { display: flex; justify-content: space-between; gap: 20px; }
.kxkt-card ul li a span:first-child {
  flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.kxkt-card ul li a .t { color: var(--text-light); font-size: 12px; flex-shrink: 0; }

/* 预约挂号 */
.appt-form {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 50px 0;
}
.appt-form .wrap { display: grid; grid-template-columns: 220px 1fr 140px; gap: 30px; align-items: center; }
.appt-form h2 { font-size: 26px; letter-spacing: 2px; }
.appt-form h2 span { display: block; font-size: 13px; font-weight: 400; opacity: .8; margin-top: 6px; letter-spacing: 0; }
.appt-form .fields { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.appt-form input, .appt-form textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius); border: 0;
  background: rgba(255, 255, 255, .95); color: var(--text);
}
.appt-form textarea { resize: none; height: 42px; }
.appt-form .submit-btn {
  width: 100%; padding: 12px 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 500;
}
.appt-form .submit-btn:hover { background: #b78a43; }

/* 5. ================= 内页 ================= */
.breadcrumb {
  background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 14px 0;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); }

.page-body { padding: 50px 0; }
.page-title { text-align: center; margin-bottom: 36px; }
.page-title h1 { font-size: 28px; color: var(--text); }
.page-title h1::after {
  content: ''; display: block; width: 40px; height: 3px; margin: 12px auto 0;
  background: var(--primary); border-radius: 2px;
}
.page-title p { color: var(--text-muted); font-size: 13px; margin-top: 6px; letter-spacing: 2px; }

/* Tab 栏（专家分组切换用） */
.tab-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.tab-nav a {
  padding: 10px 28px; font-size: 15px; color: var(--text);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-nav a:hover { color: var(--primary); }
.tab-nav a.is-active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* 列表 */
.list-item {
  display: grid; grid-template-columns: 240px 1fr auto; gap: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 20px; transition: all .25s;
}
.list-item:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.list-item .cover {
  width: 240px; height: 140px; object-fit: cover; border-radius: var(--radius); background: var(--bg-gray);
}
.list-item .info h4 { font-size: 18px; margin-bottom: 10px; }
.list-item:hover .info h4 { color: var(--primary); }
.list-item .info p {
  color: var(--text-muted); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-item .info .meta { color: var(--text-light); font-size: 12px; display: flex; gap: 18px; }
.list-item .date {
  align-self: center; text-align: center; padding: 18px 24px;
  border-left: 1px dashed var(--border);
}
.list-item .date .d { font-size: 32px; color: var(--primary); font-weight: 700; line-height: 1; }
.list-item .date .ym { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* 分页 */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 详情 */
.article { max-width: 880px; margin: 0 auto; }
.article-head { text-align: center; padding-bottom: 20px; border-bottom: 1px dashed var(--border); margin-bottom: 26px; }
.article-head h1 { font-size: 28px; margin-bottom: 14px; }
.article-head .meta { color: var(--text-muted); font-size: 13px; }
.article-head .meta span { margin: 0 8px; }
.article-body { font-size: 15px; line-height: 2; color: var(--text); }
.article-body p { margin: 0 0 16px; text-indent: 2em; }
.article-body img { margin: 20px auto; max-width: 100%; border-radius: var(--radius); }
.article-body h2 { font-size: 20px; margin: 24px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-nav {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 40px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1; padding: 14px 20px; background: var(--bg-soft); border-radius: var(--radius);
  font-size: 13px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.article-nav .label { color: var(--text-light); margin-right: 8px; }

/* 单页 */
.single { max-width: 880px; margin: 0 auto; }

/* 专家详情 */
.expert-detail { display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: start; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px dashed var(--border); }
.expert-detail .photo {
  width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius-lg);
  background: var(--bg-gray); background-size: cover; background-position: center top;
}
.expert-detail h2 { font-size: 28px; margin-bottom: 6px; }
.expert-detail .title { color: var(--primary); font-size: 15px; margin-bottom: 20px; }
.expert-detail .tag {
  display: inline-block; padding: 4px 12px; margin: 0 8px 8px 0;
  background: var(--primary-soft); color: var(--primary); font-size: 12px; border-radius: 12px;
}
.expert-list-title { margin-bottom: 20px; color: var(--primary-dark); font-size: 20px; }

/* 6. ================= Footer / 右侧浮动 ================= */
.footer { background: #1d2b2a; color: #a9b4b2; padding: 50px 0 20px; }
.footer .container { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.footer-brand img {
  height: 48px; margin-bottom: 20px;
  background: #fff; padding: 6px 10px; border-radius: 4px;
}
.footer-brand p { color: #c9d1d0; font-size: 13px; margin: 0; }
.footer-brand .qrs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.footer-brand .qrs li { text-align: center; font-size: 12px; }
.footer-brand .qrs img { width: 80px; height: 80px; background: #fff; border-radius: 4px; padding: 4px; }
.footer-brand .qrs span { display: block; margin-top: 6px; color: #c9d1d0; }
.footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-contact p { margin: 6px 0; font-size: 13px; }
.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px 18px;
}
.footer-contact h4 { grid-column: 1 / -1; margin-bottom: 4px; }
.footer-contact .branch-item { margin-bottom: 0; }
.footer-contact .branch-name { color: #fff; font-size: 14px; font-weight: 600; }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 18px;
  text-align: center; font-size: 12px; color: #7a8585;
}
.footer-copy a { color: inherit; }
.footer-copy a:hover { color: #fff; text-decoration: underline; }
.footer-copy .sep { margin: 0 6px; opacity: .6; }

.side-bar {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 80; width: 64px;
  background: var(--primary); border-radius: 32px; padding: 8px 0;
  box-shadow: var(--shadow-lg);
}
.side-bar .item {
  display: block;
  text-align: center; color: #fff; padding: 14px 0; cursor: pointer; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.side-bar .item:last-child { border-bottom: 0; }
.side-bar .item .ico {
  display: block; width: 26px; height: 26px; margin: 0 auto 4px;
  background: rgba(255, 255, 255, .15); border-radius: 50%; line-height: 26px; font-size: 13px;
}
.side-bar .item .label {
  font-size: 12px; writing-mode: vertical-rl; letter-spacing: 4px; margin: 4px auto 0;
}
.side-bar .item:hover { background: var(--primary-dark); }
.side-bar .item .pop {
  position: absolute; right: 100%; margin-right: 12px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--text); padding: 10px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); white-space: nowrap; font-size: 14px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
/* 不可见 hover 桥：让鼠标从条目滑到弹窗时不丢 hover 态 */
.side-bar .item .pop::after {
  content: ''; position: absolute; left: 100%; top: 0; bottom: 0; width: 14px;
}
.side-bar .item:hover .pop,
.side-bar .item .pop:hover { opacity: 1; visibility: visible; }
.side-bar .item .pop.qr {
  padding: 8px; width: 156px; box-sizing: content-box; white-space: normal; text-align: center;
}
.side-bar .item .pop.qr img { width: 156px; height: 156px; display: block; object-fit: contain; margin: 0 auto; }
.side-bar .item .pop.qr .qr-tip { margin: 6px 0 2px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* 7. ================= 响应式 ================= */
/* 7.1 PC 小屏 / Pad 横屏：992 - 1199 */
@media (max-width: 1199px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 30px; }
  .intro .cover { height: 280px; }
  .expert-list { grid-template-columns: repeat(3, 1fr); }
  .banner-caption h2 { font-size: 34px; }
  .banner-arrow.prev { left: 16px; }
  .banner-arrow.next { right: 16px; }
}

/* 7.2 Pad 竖屏：768 - 991 */
@media (max-width: 991px) {
  .header-contact .qr-hover { display: none; }
  .intro { grid-template-columns: 1fr; }
  .intro .cover { max-width: 540px; margin: 0 auto; height: 280px; }
  .expert-list { grid-template-columns: repeat(2, 1fr); }
  .news-wrap, .kxkt-wrap { grid-template-columns: 1fr; gap: 30px; }
  .appt-form .wrap { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .appt-form .fields { grid-template-columns: 1fr 1fr; }
  .appt-form .fields textarea { grid-column: span 2; }
  .expert-detail { grid-template-columns: 1fr; gap: 30px; }
  .expert-detail .photo { max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; }
  .footer .container { grid-template-columns: 1fr; gap: 30px; justify-items: start; }
  .footer-contact { grid-template-columns: 1fr; }
  .side-bar { width: 54px; }
  .side-bar .item { padding: 10px 0; }
  .side-bar .item .label { letter-spacing: 2px; }
}

/* 7.3 Mobile：< 768 */
@media (max-width: 767px) {
  .container { padding: 0 16px; }

  /* Header */
  .header-top { padding: 10px 0; }
  .header-logo img { height: 40px; }
  .header-logo .slogan { display: none; }
  .header-contact { gap: 10px; }
  .header-contact .hotline .label { display: none; }
  .header-contact .hotline .tel { font-size: 16px; }
  .nav-toggle { display: inline-block; }

  /* 移动端：隐藏主导航，汉堡按钮点击展开 */
  .nav { display: none; border-top: 1px solid var(--border); }
  .nav.is-open { display: block; }
  .nav .container { padding: 0; }
  .nav-menu { flex-direction: column; width: 100%; }
  .nav-menu > li { padding: 0; border-bottom: 1px solid var(--border); }
  .nav-menu > li > a { padding: 14px 20px; }
  .nav-menu > li > a::after { display: none; }
  /* 下拉改为点击一级菜单后展开 */
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0; background: var(--bg-soft); padding: 0;
    display: none;
  }
  .nav-menu > li.is-open .submenu { display: block; }
  .submenu li a { padding: 10px 40px; border-bottom: 1px solid var(--border); }

  /* Banner：全局策略已为高度自适应 + 整图完整显示，移动端仅调整指示点/箭头/标题 */
  .banner-dots { bottom: 8px; }
  .banner-dots span { width: 20px; height: 3px; }
  .banner-caption h2 { font-size: 22px; letter-spacing: 1px; }
  .banner-caption p { font-size: 14px; margin: 10px 0 18px; }
  .banner-arrow { display: none; }

  /* 快捷入口 */
  .quicklinks li {
    flex: 0 0 50%; min-width: 0; border-right: 0;
    border-bottom: 1px solid var(--border); padding: 14px 10px; font-size: 14px;
  }
  .quicklinks li:nth-child(odd) { border-right: 1px solid var(--border); }

  /* Section */
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 22px; }
  .section-head h2::before, .section-head h2::after { width: 20px; }

  /* Intro */
  .intro .cover { height: 220px; }
  .intro .meta { gap: 20px; }
  .intro .meta li strong { font-size: 22px; }

  /* 专家 */
  .expert-carousel { padding: 0 40px; }
  .carousel-arrow { width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
  .expert-list { grid-template-columns: 1fr; }

  /* News */
  .news-item .thumb { width: 110px; height: 74px; }

  /* Appt */
  .appt-form { padding: 30px 0; }
  .appt-form h2 { font-size: 22px; }
  .appt-form .fields { grid-template-columns: 1fr; }
  .appt-form .fields textarea { grid-column: auto; }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 0; font-size: 12px; }

  /* Page */
  .page-body { padding: 30px 0; }
  .page-title { margin-bottom: 24px; }
  .page-title h1 { font-size: 22px; }

  /* 列表 */
  .list-item { grid-template-columns: 1fr; padding: 16px; }
  .list-item .cover { width: 100%; height: 180px; }
  .list-item .date {
    border-left: 0; border-top: 1px dashed var(--border); padding: 12px 0 0;
    text-align: left; display: flex; align-items: baseline; gap: 8px;
  }
  .list-item .date .d { font-size: 18px; }

  /* 详情 */
  .article-head h1 { font-size: 22px; }
  .article-head .meta span { display: inline-block; margin: 2px 6px; }
  .article-body { font-size: 14px; line-height: 1.9; }
  .article-nav { flex-direction: column; gap: 10px; }

  /* Footer */
  .footer { padding: 36px 0 76px; }
  .footer-brand .qrs img { width: 70px; height: 70px; }
  .footer-brand .qrs li { font-size: 11px; }

  /* 右侧浮动栏 -> 改为底部横向 */
  body { padding-bottom: 60px; }
  .side-bar {
    position: fixed; inset: auto 0 0 0; top: auto; transform: none;
    width: 100%; max-width: 100vw; border-radius: 0; padding: 0; display: flex;
  }
  .side-bar .item {
    flex: 1; padding: 10px 0; border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .15);
    min-width: 0;
  }
  .side-bar .item:last-child { border-right: 0; }
  .side-bar .item .ico { margin-bottom: 2px; }
  .side-bar .item .label {
    writing-mode: horizontal-tb; margin: 0; letter-spacing: 1px; font-size: 12px;
  }
  .side-bar .item .pop {
    right: auto; top: auto; bottom: 100%; left: 50%;
    margin-right: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  /* 移动端把 hover 桥从右侧改到下侧（条目在弹窗下方） */
  .side-bar .item .pop::after {
    left: 0; right: 0; top: 100%; bottom: auto; width: auto; height: 14px;
  }
  .side-bar .item:hover .pop { transform: translateX(-50%) translateY(-8px); }
  .side-bar .item .pop { display: none; }
  /* 移动端点击弹出（由 JS 切换 .is-open） */
  .side-bar .item.is-open .pop {
    display: block; opacity: 1; visibility: visible;
    pointer-events: auto; padding: 14px 18px;
  }
  .side-bar .item.is-open .pop.qr { width: 176px; padding: 8px; }
  .side-bar .item.is-open .pop.qr img { width: 160px; height: 160px; object-fit: contain; }

  /* 边缘 item 的弹窗贴视口边显示，避免最后一项（预约挂号）右侧被遮挡 */
  .side-bar .item:first-child .pop {
    left: 8px; right: auto; transform: translateY(-8px);
  }
  .side-bar .item:first-child:hover .pop,
  .side-bar .item:first-child.is-open .pop {
    transform: translateY(-8px);
  }
  .side-bar .item:last-child .pop {
    left: auto; right: 8px; transform: translateY(-8px);
  }
  .side-bar .item:last-child:hover .pop,
  .side-bar .item:last-child.is-open .pop {
    transform: translateY(-8px);
  }
}

/* 侧边栏电话弹窗里的电话号码：点击调起手机拨号 */
.side-bar .item .pop .tel-link {
  color: var(--primary); font-weight: 600; text-decoration: none;
  font-size: 16px; letter-spacing: .3px;
}
.side-bar .item .pop .tel-link:hover { text-decoration: underline; }

/* 7.4 小屏手机：< 480 */
@media (max-width: 479px) {
  .header-logo img { height: 34px; }
  .banner-caption h2 { font-size: 18px; }
  .intro .cover { height: 180px; }
}

/* ========== 8. Toast 浮窗提示 ========== */
.toast-host {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 9999;
  min-width: 200px;
  max-width: 80vw;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background: rgba(50, 50, 50, .92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast-host.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast-host.is-success { background: rgba(40, 167, 69, .95); }
.toast-host.is-error   { background: rgba(220, 53, 69, .95); }
.toast-host.is-info    { background: rgba(50, 50, 50, .92); }
