/* =========================================================
   乐清附大医院 - 前台样式
   主色 #4b9a7b（医疗绿），参考原站视觉风格
   ========================================================= */
:root {
  --c-primary: #4b9a7b;
  --c-primary-dark: #3c7f65;
  --c-primary-light: #eef7f3;
  --c-text: #333;
  --c-text2: #666;
  --c-text3: #999;
  --c-line: #ededed;
  --c-bg: #f5f5f5;
  --w: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font: 16px/1.7 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; }
em, i { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
.w1280 { width: var(--w); max-width: 96%; margin: 0 auto; }
.hidden { display: none !important; }
.empty { text-align: center; color: var(--c-text3); padding: 40px 0; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; }
.logo span { font-size: 30px; font-weight: 700; color: var(--c-primary); letter-spacing: 2px; }
.header-right { display: flex; align-items: center; gap: 28px; }
.top-links { display: flex; gap: 18px; align-items: center; }
.top-links a { font-size: 14px; color: var(--c-text2); padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 20px; }
.top-links a:hover { color: var(--c-primary); border-color: var(--c-primary); }
.top-search { display: flex; align-items: center; }
.top-search input { width: 170px; border: 1px solid var(--c-line); border-right: 0; border-radius: 16px 0 0 16px; padding: 6px 14px; font-size: 13px; }
.top-search input:focus { outline: 0; border-color: var(--c-primary); }
.top-search button { border: 1px solid var(--c-primary); background: var(--c-primary); color: #fff; border-radius: 0 16px 16px 0; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.hotline { display: flex; align-items: center; gap: 8px; color: var(--c-primary); }
.hotline em { display: block; font-size: 12px; color: var(--c-text3); }
.hotline strong { font-size: 20px; font-family: Arial, sans-serif; }
.clinic-hours { display: flex; align-items: center; gap: 8px; color: var(--c-primary-dark); }
.clinic-hours svg { flex-shrink: 0; color: var(--c-primary); }
.clinic-hours strong { display: block; font-size: 15px; }
.clinic-hours span { display: block; font-size: 12.5px; color: var(--c-text2); margin-top: 2px; }

.main-nav { background: var(--c-primary); }
.main-nav > .w1280 > ul { display: flex; }
.main-nav li { position: relative; }
.main-nav li > a { display: block; padding: 0 26px; line-height: 56px; color: #fff; font-size: 17px; }
.main-nav li:hover > a, .main-nav li.on > a { background: var(--c-primary-dark); }
.main-nav .sub {
  position: absolute; left: 50%; top: 56px; transform: translateX(-50%);
  min-width: 100%; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 50; white-space: nowrap;
}
.main-nav li:hover .sub { opacity: 1; visibility: visible; }
.main-nav .sub a { display: block; line-height: 44px; padding: 0 20px; color: var(--c-text); font-size: 15px; text-align: center; }
.main-nav .sub a:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; background: var(--c-primary-light); }
.banner-track { position: relative; height: 460px; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
/* 关键：非活跃幻灯片只是透明但仍叠在最上层，会挡住活跃幻灯片上的链接点击，必须禁掉其指针事件 */
.banner-slide.active { opacity: 1; pointer-events: auto; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; }
.banner-dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); margin: 0 5px; cursor: pointer; transition: .3s; }
.banner-dots span.on { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- 快捷入口 ---------- */
.quick-links { margin-top: -60px; position: relative; z-index: 10; }
.quick-links ul { display: flex; background: #fff; box-shadow: 0 12px 40px rgba(75,154,123,.16); border-radius: 8px; }
.quick-links li { flex: 1; border-right: 1px solid var(--c-line); }
.quick-links li:last-child { border-right: 0; }
.quick-links a { display: block; text-align: center; padding: 26px 10px; position: relative; overflow: hidden; }
.quick-links a:hover { background: var(--c-primary-light); }
.qico { display: inline-flex; width: 62px; height: 62px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; }
.qico-1 { background: linear-gradient(135deg,#4b9a7b,#6db69a); }
.qico-2 { background: linear-gradient(135deg,#54a3a8,#7cc3c8); }
.qico-3 { background: linear-gradient(135deg,#e0955c,#f0b88a); }
.qico-4 { background: linear-gradient(135deg,#7f8fd0,#a5b2e4); }
.qico-5 { background: linear-gradient(135deg,#d67b7b,#eb9f9f); }
.qico-consult { background: linear-gradient(135deg,#e05c5c,#f08a8a); }
.qico.qico-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.quick-links strong { display: block; font-size: 18px; }
.quick-links em { display: block; font-size: 11px; color: var(--c-text3); letter-spacing: 1px; margin-top: 4px; text-transform: uppercase; }
.quick-links .num { position: absolute; right: 10px; top: 8px; font-size: 30px; font-weight: 700; color: rgba(75,154,123,.08); }

/* ---------- 通用标题 ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.sec-head h2 { font-size: 30px; position: relative; padding-left: 16px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px; background: var(--c-primary); border-radius: 3px; }
.sec-head.center { justify-content: center; }
.sec-head.center h2 { padding-left: 0; }
.sec-head.center h2::before { display: none; }
.sec-head .more { font-size: 14px; color: var(--c-text3); }
.sec-head .more:hover { color: var(--c-primary); }

/* ---------- 首页公告 ---------- */
.home-notice { margin: 60px auto; }
.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.notice-col { border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; transition: box-shadow .3s; }
.notice-col:hover { box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.nc-head { background: var(--c-primary-light); }
.nc-head a { display: block; padding: 14px 18px; font-size: 19px; font-weight: 700; color: var(--c-primary); position: relative; }
.jia { display: inline-block; width: 16px; height: 16px; position: relative; margin-right: 10px; }
.jia::before, .jia::after { content: ""; position: absolute; background: var(--c-primary); }
.jia::before { left: 7px; top: 2px; width: 2px; height: 12px; }
.jia::after { left: 2px; top: 7px; width: 12px; height: 2px; }
.notice-col ul { padding: 10px 18px 16px; }
.notice-col li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); }
.notice-col li:last-child { border-bottom: 0; }
.notice-col li a { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--c-text2); }
.notice-col li a:hover { color: var(--c-primary); }
.notice-col time { color: var(--c-text3); font-size: 13px; font-family: Arial; }

/* ---------- 首页科室 ---------- */
.home-depts { background: linear-gradient(180deg, var(--c-primary-light), #fff); padding: 60px 0 70px; }
.dept-tabs { text-align: center; margin-bottom: 30px; }
.dt-btn { border: 1px solid var(--c-primary); color: var(--c-primary); background: #fff; padding: 8px 34px; cursor: pointer; font-size: 17px; }
.dt-btn:first-child { border-radius: 22px 0 0 22px; }
.dt-btn:last-child { border-radius: 0 22px 22px 0; border-left: 0; }
.dt-btn.active { background: var(--c-primary); color: #fff; }
.dept-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.dept-card { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; text-align: center; padding: 24px 12px; transition: .3s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(75,154,123,.15); border-color: var(--c-primary); }
.dept-card .dico { display: inline-flex; width: 58px; height: 58px; border-radius: 14px; align-items: center; justify-content: center; color: var(--c-primary); background: var(--c-primary-light); margin-bottom: 12px; overflow: hidden; }
.dept-card .dico img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dept-card strong { display: block; font-size: 16px; }
.dept-card p { font-size: 12px; color: var(--c-text3); margin-top: 6px; line-height: 1.5; }

/* ---------- 首页医生 ---------- */
.home-doctors { padding: 60px 0; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doc-card { border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; transition: .3s; background: #fff; }
.doc-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-4px); }
.doc-card .photo { position: relative; height: 190px; background: linear-gradient(135deg, #e8f3ee, #d4e9df); display: flex; align-items: center; justify-content: center; }
.doc-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.avatar-ph { font-size: 56px; color: var(--c-primary); font-weight: 700; opacity: .6; }
.tag-special { display: inline-block; background: #e0955c; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 12px; vertical-align: middle; margin-left: 6px; }
.photo .tag-special { position: absolute; top: 10px; left: 10px; margin-left: 0; }
.doc-info { padding: 16px; }
.doc-info h3 { font-size: 19px; margin-bottom: 4px; }
.doc-info h3 em { font-size: 12px; color: var(--c-text3); font-weight: 400; display: block; }
.doc-info .dept { color: var(--c-primary); font-size: 14px; margin-bottom: 8px; }
.doc-info .spec { font-size: 13px; color: var(--c-text2); line-height: 1.6; min-height: 42px; }
.doc-info .detail { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--c-primary); border: 1px solid var(--c-primary); padding: 3px 16px; border-radius: 14px; }
.doc-card:hover .detail { background: var(--c-primary); color: #fff; }

/* ---------- 首页CTA ---------- */
.home-cta { background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark)); padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; }
.cta-text h2 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.85); }
.cta-btn { background: #fff; color: var(--c-primary); font-size: 19px; font-weight: 700; padding: 14px 52px; border-radius: 30px; transition: .3s; }
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* ---------- 内页 ---------- */
.page-head { background: var(--c-primary-light); padding: 34px 0; margin-bottom: 40px; }
.page-head h2 { font-size: 30px; color: var(--c-primary); }
.crumb { font-size: 13px; color: var(--c-text3); margin-top: 6px; }
.crumb a:hover { color: var(--c-primary); }
.group-title { font-size: 22px; margin: 34px 0 20px; padding-left: 12px; border-left: 4px solid var(--c-primary); }

/* 仪器设备 */
.eq-page { padding-bottom: 60px; }
.eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.eq-card { border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; background: #fff; transition: .3s; }
.eq-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-4px); }
.eq-card .photo { height: 210px; background: linear-gradient(135deg, #e8f3ee, #d4e9df); }
.eq-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.eq-card .photo img.ph { object-fit: contain; padding: 30px; }
.eq-card .info { padding: 16px 18px 20px; }
.eq-card .info h3 { font-size: 18px; margin-bottom: 8px; color: var(--c-text); }
.eq-card .info .intro { font-size: 13.5px; color: var(--c-text2); line-height: 1.7; }
.eq-card .detail { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--c-primary); border: 1px solid var(--c-primary); padding: 3px 16px; border-radius: 14px; transition: .3s; }
.eq-card:hover .detail { background: var(--c-primary); color: #fff; }

/* 仪器设备详情：图片在上，名称与介绍在下方 */
.eqd-page { padding-bottom: 60px; }
.eqd-hero { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 30px; }
.eqd-hero .photo { max-width: 620px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #e8f3ee, #d4e9df); }
.eqd-hero .photo img { display: block; width: 100%; height: auto; }
.eqd-hero .photo img.ph { padding: 40px; box-sizing: border-box; }
.eqd-hero .info { margin: 24px 0 0; text-align: left; }
.eqd-hero .info h3 { font-size: 24px; margin-bottom: 14px; }
.eqd-hero .info .intro { font-size: 15px; color: var(--c-text2); line-height: 2; }
.eqd-hero .info .intro.muted { color: var(--c-text3); }
.eqd-hero .actions { margin-top: 22px; display: flex; gap: 12px; }
.eqd-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.eqd-nav a { font-size: 14px; color: var(--c-text2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 48%; }
.eqd-nav a:hover { color: var(--c-primary); }

.btn-primary, .btn-ghost { display: inline-block; padding: 10px 34px; border-radius: 22px; font-size: 15px; cursor: pointer; border: 0; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-ghost { border: 1px solid var(--c-primary); color: var(--c-primary); background: #fff; }
.btn-primary.big { padding: 12px 40px; font-size: 17px; }

/* 关于 */
.about-body { padding-bottom: 60px; }
.about-article { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 34px; }
.about-article h3 { font-size: 22px; margin: 26px 0 14px; color: var(--c-primary); }
.about-article h3:first-child { margin-top: 0; }
.about-article p { margin-bottom: 12px; color: #444; line-height: 1.9; }
.contact-list li { padding: 6px 0; color: #444; }
.rich { line-height: 2; color: #444; }
.rich img { max-width: 100%; height: auto; }

/* 科室详情 */
.dept-detail { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding-bottom: 60px; }
.dd-side .side-box { border: 1px solid var(--c-line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.side-box h4 { font-size: 18px; color: var(--c-primary); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary-light); }
.side-box strong { color: var(--c-primary); }
.side-links li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.side-links li:last-child { border: 0; }
.side-links a { color: var(--c-text2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-links a:hover { color: var(--c-primary); }
.side-links time { font-size: 12px; color: var(--c-text3); }

/* 医生列表 */
.doc-page, .doc-detail { padding-bottom: 60px; }
.filter-bar { display: flex; gap: 12px; margin-bottom: 26px; }
.filter-bar input[type=text], .filter-bar select { flex: 1; max-width: 320px; border: 1px solid var(--c-line); border-radius: 4px; padding: 9px 14px; }
.filter-bar input[type=text]:focus, .filter-bar select:focus { outline: 0; border-color: var(--c-primary); }
.filter-bar button { background: var(--c-primary); color: #fff; border: 0; padding: 9px 34px; cursor: pointer; border-radius: 4px; }
.filter-bar button:hover { background: var(--c-primary-dark); }

/* 医生详情 */
.dd-hero { display: flex; gap: 34px; background: linear-gradient(135deg,#e8f3ee,#f6fbf9); border-radius: 10px; padding: 34px; margin-bottom: 30px; }
.dd-hero .photo.big { width: 200px; height: 240px; border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-hero .photo.big img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dd-hero h2 { font-size: 30px; margin-bottom: 16px; }
.dd-hero .line { margin-bottom: 10px; color: #444; }
.dd-hero .line strong { color: var(--c-text3); font-weight: 400; }
.actions { margin-top: 22px; display: flex; gap: 14px; }

/* 文章 */
.art-page, .art-detail { padding-bottom: 60px; }
.art-tabs { display: flex; gap: 0; margin-bottom: 26px; border-bottom: 2px solid var(--c-primary); }
.art-tabs a { padding: 10px 30px; background: #eef2f0; color: var(--c-text2); font-size: 16px; }
.art-tabs a.on, .art-tabs a:hover { background: var(--c-primary); color: #fff; }
.art-list li { border-bottom: 1px solid var(--c-line); }
.art-list li a { display: flex; align-items: center; gap: 18px; padding: 18px 6px; }
.art-list .cover { width: 140px; height: auto; max-height: 110px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: #f7f7f7; }
.art-list .art-info { flex: 1; }
.art-list h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.art-list li a:hover h3 { color: var(--c-primary); }
.art-list p { font-size: 13px; color: var(--c-text3); }
.art-list time { color: var(--c-text3); font-size: 14px; font-family: Arial; }
.pagination { text-align: center; margin-top: 30px; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; padding: 6px 14px; border: 1px solid var(--c-line); margin: 0 4px; border-radius: 4px; color: var(--c-text2); }
.pagination .cur, .pagination a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.nq-pagination { text-align: center; margin-top: 34px; font-size: 0; }
.nq-pagination a, .nq-pagination span {
  display: inline-block; min-width: 40px; height: 40px; line-height: 38px;
  padding: 0 14px; margin: 0 5px; border: 1px solid var(--c-line); border-radius: 6px;
  color: var(--c-text2); font-size: 15px; font-family: Arial; background: #fff;
  transition: all .25s; vertical-align: middle;
}
.nq-pagination a:hover { background: var(--c-primary-light); border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.nq-pagination span.is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(75,154,123,.3); }
.art-title { font-size: 26px; text-align: center; margin-bottom: 14px; }
.art-meta { text-align: center; color: var(--c-text3); font-size: 13px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.art-meta span, .art-meta time { margin: 0 10px; }
.art-meta .views { display: inline-block; }
@media (max-width: 768px) {
  .art-meta .views { display: block; margin: 4px 0 0; }
}
.rel-box { margin-top: 30px; border: 1px solid var(--c-line); border-radius: 8px; padding: 22px 26px; }
.rel-box h3 { font-size: 19px; color: var(--c-primary); margin-bottom: 8px; }

/* 预约页 */
.appt-page { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding-bottom: 60px; }
.appt-form-wrap { border: 1px solid var(--c-line); border-radius: 8px; padding: 34px; }
.form-row { display: flex; align-items: flex-start; margin-bottom: 18px; }
.form-row label { width: 90px; text-align: right; padding-right: 14px; line-height: 42px; color: var(--c-text2); flex-shrink: 0; }
.form-row label b { color: #d67b7b; }
.form-row input[type=text], .form-row input[type=tel], .form-row input[type=date],
.form-row select, .form-row textarea {
  flex: 1; border: 1px solid var(--c-line); border-radius: 4px; padding: 9px 14px; line-height: 1.6;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 0; border-color: var(--c-primary); }
.form-row .period { flex: 1; line-height: 42px; }
.form-row .radio { margin-right: 24px; cursor: pointer; }
.form-row .radio input { margin-right: 6px; }
.form-tip { font-size: 13px; color: var(--c-text3); padding-left: 90px; }
.tel-big { font-size: 24px; color: var(--c-primary); font-family: Arial; margin: 6px 0 12px; }
.tip-list li { position: relative; padding: 6px 0 6px 18px; color: var(--c-text2); font-size: 14px; }
.tip-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }

/* 排班表 */
.sched-page { padding-bottom: 60px; }
.sched-tip { color: var(--c-text3); font-size: 14px; margin-bottom: 20px; }
.sched-table { width: 100%; border-collapse: collapse; }
.sched-table th, .sched-table td { border: 1px solid var(--c-line); padding: 12px 8px; text-align: center; font-size: 14px; }
.sched-table th { background: var(--c-primary-light); color: var(--c-primary-dark); }
.sched-table .doc-name a { color: var(--c-primary); font-weight: 700; }
.sched-table td.am { color: var(--c-primary); }
.sched-table td.full { color: #54a3a8; }
.sched-table td.off { color: #ccc; }
.sched-table td.pm { color: #b07b3c; }
.sched-legend { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.sched-legend .lg { font-size: 13px; padding: 3px 14px; border-radius: 13px; background: #f3f6f5; color: #5a6862; }
.sched-legend .lg.am { color: var(--c-primary); }
.sched-legend .lg.pm { color: #b07b3c; }
.sched-legend .lg.full { color: #54a3a8; }
.sched-legend .lg.off { color: #b8bfc2; }

/* 服务/交通/体检 */
.svc-page, .traffic-page, .chk-page { padding-bottom: 60px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { border: 1px solid var(--c-line); border-radius: 8px; padding: 26px 22px; transition: .3s; }
.svc-card:hover { box-shadow: 0 10px 26px rgba(75,154,123,.12); }
.svc-card h3 { color: var(--c-primary); font-size: 19px; margin-bottom: 12px; }
.svc-card p { font-size: 14px; color: var(--c-text2); margin-bottom: 10px; }
.svc-tel { color: var(--c-primary) !important; font-weight: 700; }
.traffic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.map-ph { border: 1px dashed var(--c-line); border-radius: 10px; height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-text3); }
.map-ph p { font-size: 18px; color: var(--c-primary); }
.traffic-info h3 { font-size: 19px; color: var(--c-primary); margin: 22px 0 8px; }
.traffic-info h3:first-child { margin-top: 0; }
.traffic-info p { color: #444; }
.traffic-info .addr { font-size: 17px; }
.chk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.chk-card { border: 1px solid var(--c-line); border-radius: 10px; padding: 26px 22px; transition: .3s; display: flex; flex-direction: column; }
.chk-card:hover { box-shadow: 0 12px 30px rgba(75,154,123,.14); transform: translateY(-4px); }
.chk-card h3 { font-size: 19px; margin-bottom: 8px; }
.chk-card .price { font-size: 30px; color: #e0955c; font-family: Arial; margin-bottom: 12px; }
.chk-card .price span { font-size: 13px; color: var(--c-text3); }
.chk-card .items { font-size: 13px; color: var(--c-text2); flex: 1; margin-bottom: 10px; }
.chk-card .fit { font-size: 13px; color: var(--c-text3); margin-bottom: 18px; }
.chk-notes { border: 1px solid var(--c-line); border-radius: 10px; padding: 28px 32px; }
.chk-notes h3 { color: var(--c-primary); font-size: 20px; margin-bottom: 12px; }
.chk-notes li { list-style: disc; margin-left: 20px; padding: 4px 0; color: var(--c-text2); }

/* ---------- 页脚 ---------- */
.site-footer { background: #2f3a36; color: #b8c4bf; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 36px; }
.ft-col h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.ft-col li { padding: 4px 0; font-size: 14px; }
.ft-col a:hover { color: #fff; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; }
.ft-qr .qr-row { display: flex; gap: 18px; }
.ft-qr .qr { text-align: center; }
.ft-qr img { width: 110px; height: 110px; background: #fff; border-radius: 6px; padding: 6px; }
.ft-qr span { display: block; font-size: 13px; margin-top: 6px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; }
.ft-bottom a:hover { color: #fff; }
.ft-bottom .tips { margin-top: 4px; font-size: 12px; color: #7d8a85; }

/* 右侧悬浮 */
/* 在线咨询（菜单最右 + 悬浮条最上）：文字闪烁 */
@keyframes blinkConsult {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
.blink { animation: blinkConsult 1.2s ease-in-out infinite; }
.nav-consult { margin-left: auto; }
.nav-consult > a { background: #e05c5c; }
.nav-consult > a:hover { background: #c94a4a; }

/* ---------- 在线咨询二维码弹窗（咨询链接留空时点击弹窗扫码） ---------- */
.consult-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.consult-modal[hidden] { display: none; }
.consult-modal-mask { position: absolute; inset: 0; background: rgba(20,40,32,.55); }
.consult-modal-body {
  position: relative; background: #fff; border-radius: 12px; text-align: center;
  width: 320px; max-width: 86vw; padding: 30px 30px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: consultIn .25s ease;
}
@keyframes consultIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.consult-modal-body h4 { color: var(--c-primary); font-size: 19px; margin-bottom: 16px; }
.consult-modal-body img { display: block; width: 220px; max-width: 100%; margin: 0 auto; border: 1px solid var(--c-line); border-radius: 8px; }
.consult-modal-body p { font-size: 13px; color: var(--c-text3); margin-top: 12px; }
.consult-modal-close { position: absolute; top: 6px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--c-text3); cursor: pointer; }
.consult-modal-close:hover { color: var(--c-primary); }
/* 右侧中间跟随悬浮的在线咨询（手机/平板端显示，闪烁） */
.float-consult { display: none; }
.sb-consult { background: #e05c5c; }
.sb-consult:hover { background: #c94a4a; }

.side-bar { position: fixed; right: 12px; bottom: 120px; z-index: 90; display: flex; flex-direction: column; gap: 2px; }
.sb-item { width: 52px; height: 52px; background: var(--c-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; border-radius: 8px; }
.sb-item:hover { background: var(--c-primary-dark); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .doc-grid, .svc-grid, .chk-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-top { flex-wrap: wrap; gap: 10px; }
  /* 手机/平板端：门诊时间与预约电话同一排 */
  .header-right { flex-wrap: wrap; row-gap: 6px; align-items: center; }
  .clinic-hours { display: flex; order: 2; }
  .clinic-hours strong { font-size: 14px; }
  .clinic-hours span { font-size: 12px; }
  .hotline { order: 1; }
  /* 在线咨询改为右侧中间悬浮，导航里不再显示 */
  .float-consult { display: block; position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; background: #e05c5c; color: #fff; font-size: 14px; padding: 12px 10px; writing-mode: vertical-rl; letter-spacing: 3px; border-radius: 8px 0 0 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: blinkConsult 1.2s ease-in-out infinite; }
  .float-consult:active { background: #c94a4a; }
  .nav-consult { display: none; }
  .main-nav > .w1280 > ul { flex-wrap: wrap; }
  .main-nav li > a { padding: 0 14px; line-height: 46px; font-size: 15px; }
  .main-nav .sub { top: 46px; }
  .notice-grid { grid-template-columns: 1fr; }
  .dept-detail, .appt-page { grid-template-columns: 1fr; }
  .traffic-grid { grid-template-columns: 1fr; }
  .dd-hero { flex-direction: column; align-items: center; text-align: center; }
  .actions { justify-content: center; }
  .quick-links ul { flex-wrap: wrap; justify-content: space-evenly; }
  .quick-links li { flex: 0 0 33.33%; border-bottom: 1px solid var(--c-line); }
  /* 平板/手机端幻灯片按图片比例完整显示，不再居中裁剪切掉两侧内容 */
  .banner-track { height: auto; aspect-ratio: 1920 / 520; }
}
@media (max-width: 640px) {
  .banner-track { height: auto; aspect-ratio: 1920 / 520; min-height: 96px; }
  .banner-dots { bottom: 8px; }
  .quick-links { margin-top: 10px; }
  /* 手机端 3 列网格：一排 3 个，间隔均匀 */
  .quick-links ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-line); border-radius: 8px; overflow: hidden; }
  .quick-links li { flex: none; background: #fff; border-right: 0; border-bottom: 0; }
  .quick-links a { padding: 14px 4px; }
  .qico { width: 48px; height: 48px; margin-bottom: 6px; }
  .qico svg { width: 26px; height: 26px; }
  .quick-links strong { font-size: 14px; }
  .quick-links em { font-size: 10px; letter-spacing: 0; }
  .quick-links .num { font-size: 22px; right: 6px; top: 4px; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid, .svc-grid, .chk-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .logo span { font-size: 22px; }
  .hotline strong { font-size: 16px; }
  .top-links { display: none; }
  /* 手机端：LOGO 独占第一行铺满，第二行 = 门诊时间（左）+ 预约电话（右）同行隔开 */
  .header-top { padding: 6px 0 4px; gap: 2px 12px; align-items: center; }
  .header-right { display: contents; }
  .logo { order: 1; width: 100%; }
  .clinic-hours { order: 2; flex: 1 1 0; min-width: 0; margin-top: 2px; }
  .hotline { order: 3; margin-left: auto; flex-shrink: 0; }
  .logo a { display: block; }
  .logo img { width: 66% !important; height: auto !important; max-height: none !important; display: block; }
  .logo span { font-size: 23px; }
  .hotline { gap: 6px; }
  .hotline svg { display: block; width: 18px; height: 18px; }
  .hotline em { font-size: 11px; }
  .hotline strong { font-size: 15.5px; }
  .clinic-hours strong { font-size: 12px; white-space: nowrap; }
  .clinic-hours span { font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clinic-hours svg { width: 13px; height: 13px; flex-shrink: 0; }
  /* 导航紧凑：行高与内边距缩小 */
  .main-nav li > a { padding: 0 9px; line-height: 36px; font-size: 13.5px; }
  .main-nav .sub { top: 36px; }
  /* 手机端文章列表：左图右文，图片自适应 */
  .page-head { padding: 16px 0; margin-bottom: 14px; }
  .page-head h2 { font-size: 24px; }
  .art-tabs { margin-bottom: 10px; }
  .art-tabs a { flex: 1; text-align: center; padding: 10px 0; font-size: 14.5px; }
  .nq-pagination { margin-top: 20px; }
  .nq-pagination a, .nq-pagination span { min-width: 34px; height: 34px; line-height: 32px; padding: 0 10px; margin: 0 3px; font-size: 14px; }
  .art-list li a { gap: 12px; padding: 12px 0; align-items: center; }
  .art-list .cover { width: 32vw; max-width: 150px; min-width: 96px; height: auto; max-height: 120px; object-fit: contain; }
  .art-list .art-info { min-width: 0; }
  .art-list h3 { font-size: 15px; line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .art-list p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .art-list time { font-size: 12px; flex-shrink: 0; align-self: flex-end; }
  .form-row { flex-direction: column; }
  .form-row label { width: auto; text-align: left; line-height: 30px; padding-right: 0; }
  .form-tip { padding-left: 0; }
  .sched-table { display: block; overflow-x: auto; }
  .side-bar { display: none; }
  .sec-head h2 { font-size: 24px; }
  /* 手机端收紧区块留白，避免大片空隙 */
  .home-notice { margin: 26px auto; }
  .home-depts { padding: 26px 0 30px; }
  .dept-tabs { margin-bottom: 16px; }
  .dt-btn { padding: 6px 20px; font-size: 15px; }
  .dept-grid { gap: 10px; }
  .dept-card { padding: 14px 8px; }
  .dept-card .dico { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 8px; }
  .dept-card strong { font-size: 14px; }
  .home-doctors { padding: 26px 0; }
  .sec-head { margin-bottom: 16px; }
  /* 手机端筛选栏：科室独占一行，输入框+按钮一行，避免撑宽页面 */
  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .filter-bar select { flex: 1 1 100%; max-width: none; }
  .filter-bar input[type=text] { flex: 1; max-width: none; min-width: 0; }
  .filter-bar button { padding: 9px 22px; white-space: nowrap; }
  .eq-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eq-card .photo { height: 150px; }
  .eq-card .info { padding: 12px 12px 14px; }
  .eq-card .info h3 { font-size: 15px; }
  .eq-card .info .intro { font-size: 12.5px; }
  .eqd-hero { padding: 16px; }
  .eqd-hero .photo { max-width: 100%; }
  .eqd-hero .info { margin-top: 16px; }
  .eqd-hero .info h3 { font-size: 19px; }
  .eqd-hero .info .intro { font-size: 14px; }
  .eqd-nav { flex-direction: column; gap: 8px; }
  .eqd-nav a { max-width: 100%; white-space: normal; }
}

/* ========== 首页科室专家 加载更多 ========== */
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more {
  min-width: 200px;
  padding: 11px 34px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--c-text);
  font-size: 15px;
  cursor: pointer;
  border-radius: 3px;
  transition: all .2s;
}
.load-more:hover { border-color: var(--c-primary); color: var(--c-primary); }
.load-more.loading { opacity: .55; cursor: default; }
.load-sentinel { height: 1px; }
.load-done { color: var(--c-text3); font-size: 14px; padding: 6px 0; }
@media (max-width: 768px) {
  .load-more-wrap { margin-top: 18px; }
  .load-more { display: none; }
}
