/* ============================================================
   PET-CT 预约平台 · 医疗蓝设计系统
   兼容原 Bootstrap / aoyun 结构，只覆盖视觉表现，不改变任何脚本钩子
   ============================================================ */
:root {
  --mc-primary: #0b63ce;
  --mc-primary-dark: #07458f;
  --mc-primary-light: #eaf3ff;
  --mc-accent: #12a5c9;
  --mc-accent-soft: #e5f8fc;
  --mc-ink: #17283f;
  --mc-muted: #64748b;
  --mc-line: #e3ebf4;
  --mc-bg: #f4f7fb;
  --mc-white: #fff;
  --mc-radius: 14px;
  --mc-radius-sm: 9px;
  --mc-shadow: 0 6px 24px rgba(12, 63, 122, .08);
  --mc-shadow-hover: 0 14px 36px rgba(12, 63, 122, .16);
  --mc-max: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--mc-ink);
  background: var(--mc-bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mc-primary); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus { color: var(--mc-primary-dark); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { color: var(--mc-ink); font-weight: 650; line-height: 1.35; }
p { margin: 0 0 .8rem; }
.container { max-width: var(--mc-max); padding-left: 16px; padding-right: 16px; }

/* ---------------- header ---------------- */
.navbar {
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mc-line);
  box-shadow: 0 2px 16px rgba(11, 99, 206, .06);
  min-height: 68px;
  padding: 0;
}
.navbar > .container { display: flex; align-items: center; flex-wrap: nowrap; }
.navbar-brand { display: flex; align-items: center; margin: 0 28px 0 0 !important; padding: 6px 0; }
.navbar-brand img.logo-sm-height { height: 46px !important; width: auto; max-width: 230px; object-fit: contain; }
.navbar-toggler {
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: auto;
  background: #fff;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--mc-primary-light); outline: none; }
.navbar-toggler-icon { background-size: 90%; }
#navbarNav { justify-content: flex-start !important; }
.navbar-nav { align-items: center; gap: 2px; }
.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-link {
  display: block;
  padding: 10px 13px !important;
  color: #42526b !important;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.navbar-nav .nav-link:hover { background: var(--mc-primary-light); color: var(--mc-primary) !important; }
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active { color: var(--mc-primary) !important; background: var(--mc-primary-light); font-weight: 650; }
.navbar-nav .nav-item.active .nav-link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--mc-primary);
}
.navbar-text.navbar-text-mobile { margin-left: auto; font-size: 14px; white-space: nowrap; }
.navbar-text-mobile a { color: var(--mc-primary) !important; font-weight: 650; }
.head-sm-height { height: 68px !important; }

/* ---------------- hero ---------------- */
.swiper-banner {
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 54, 107, .13);
  position: relative;
}
.swiper-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 58, 122, .16), transparent 42%, rgba(7, 58, 122, .1));
}
.swiper-banner .swiper-slide { position: relative; }
.swiper-banner .slideshow {
  width: 100%;
  height: auto;
  display: block;
}
.swiper-pagination-bullet { background: #fff; opacity: .55; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { background: var(--mc-accent); opacity: 1; width: 22px; border-radius: 5px; }

/* ---------------- section headings ---------------- */
.bg-white { background: #fff !important; }
.py-5 { padding-top: 62px !important; padding-bottom: 62px !important; }
.text-success, .text-warning { color: var(--mc-primary) !important; }
.fs-26, .fs-sm-32, .fs-sm-28 { font-size: 30px !important; letter-spacing: -.5px; }
.fs-sm-28 { font-size: 28px !important; }
.fs-20 { font-size: 21px !important; }
.fs-14, .fs-sm-16, .fs-sm-18 { font-size: 15px !important; }
.text-center.mb-5 { margin-bottom: 34px !important; }
.h5, h5 { font-size: 17px; }

/* 带小横线的标题 */
.hospital-list + *, .news-list + * { clear: both; }

/* ---------------- province filter ---------------- */
.province-filter, .filter-section { border-bottom: 1px solid var(--mc-line); padding-bottom: 22px; }
.province-filter .btn,
.filter-options .btn,
.sonsort .btn {
  border-radius: 999px !important;
  border: 1px solid #d9e4f1 !important;
  background: #fff !important;
  color: #52627a !important;
  font-size: 13px;
  padding: 6px 15px !important;
  margin: 0 5px 8px 0 !important;
  transition: all .18s;
}
.province-filter .btn:hover,
.filter-options .btn:hover,
.sonsort .btn:hover { border-color: var(--mc-primary) !important; color: var(--mc-primary) !important; transform: translateY(-1px); }
.province-filter .btn-info,
.province-filter .btn-outline-secondary:first-child,
.filter-options .btn-info,
.sonsort .btn-info {
  background: var(--mc-primary) !important;
  border-color: var(--mc-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(11, 99, 206, .24);
}
.filter-row { align-items: flex-start; margin-bottom: 4px; }
.filter-label { color: var(--mc-muted); font-size: 14px; padding-top: 9px; font-weight: 600; }
.filter-options a { display: inline-block; }
.sonsort { margin-top: 8px !important; margin-bottom: 26px !important; }
.sonsort .badge { background: rgba(255,255,255,.22) !important; color: inherit !important; font-weight: 500; }
.sonsort .btn-light .badge { background: var(--mc-primary-light) !important; color: var(--mc-primary) !important; }

/* ---------------- cards ---------------- */
.hospital-list { margin-top: 12px; }
/* 列表卡片：用列容器的可控下间距取代卡片自身上下 margin，压缩行间空白 */
.hospital-list > [class*="col-"] { margin-bottom: 18px !important; }
.hospital-list .card.hospital-card { margin-top: 0 !important; margin-bottom: 0 !important; }
.card.hospital-card {
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: var(--mc-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card.hospital-card:hover { transform: translateY(-4px); box-shadow: var(--mc-shadow-hover); border-color: #c9dcf3; }
.card-img-120, .card-img-150 {
  height: 160px; overflow: hidden; background: linear-gradient(135deg, #e8f1fb, #f6f9fd);
  display: flex; align-items: center; justify-content: center;
}
.card-img-150 { height: 170px; }
.card-img-120 .card-img-top, .card-img-150 .card-img-top,
.card-img-150 img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card.hospital-card:hover .card-img-top,
.card.hospital-card:hover .card-img-150 img { transform: scale(1.045); }
.card.hospital-card .card-body { padding: 16px 16px 18px; }
.card-title { font-size: 16px; font-weight: 650; line-height: 1.45; margin: 0 0 8px; min-height: 2.9em; }
.card-title a { color: var(--mc-ink); }
.card-title a:hover { color: var(--mc-primary); }
.card-text { color: var(--mc-muted); font-size: 13px; line-height: 1.7; margin: 0 0 8px; min-height: 3.4em; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 5px; }
.badge-danger { background: #fee2e2 !important; color: #c2410c !important; }
.badge-warning { background: #fff4d6 !important; color: #a16207 !important; }
.badge-info { background: var(--mc-primary-light) !important; color: var(--mc-primary) !important; }
.badge-secondary { background: #edf2f7 !important; color: #4a5b71 !important; }
.figure-caption a { color: var(--mc-ink); font-size: 14px; }
.figure:hover figcaption a { color: var(--mc-primary); }

/* ---------------- notice ---------------- */
/* 恢复 Bootstrap row 栅格：gap 会挤掉第4列，改为靠 col 内边距留白 */
.notice-cards { gap: 0; }
.notice-cards > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.notice-card.shadow.rounded {
  background: #fff !important;
  border: 1px solid var(--mc-line);
  border-top: 3px solid var(--mc-primary);
  border-radius: var(--mc-radius) !important;
  box-shadow: var(--mc-shadow) !important;
  height: 100%;
  padding: 22px 18px !important;
}
.notice-card .h5 { color: var(--mc-primary); font-weight: 700; font-size: 16px; margin-bottom: 14px !important; }
.notice-card p { color: #556579; font-size: 13px; line-height: 1.75; margin-bottom: 7px; }
.notice-card .small { font-size: 13px; }

/* ---------------- news list ---------------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  border-bottom: 1px dashed var(--mc-line);
  padding: 14px 0;
  margin: 0 !important;
}
.news-item h5, .news-list li h5, .news-list li a { font-size: 15.5px; }
.news-list li { border-bottom: 1px dashed var(--mc-line) !important; padding: 13px 2px; }
.news-list li .fa-gg { color: var(--mc-accent); margin-right: 8px; }
.news-date { color: #8b9aae !important; font-size: 12.5px; font-weight: 400; }
.news-list li a > span.float-right { float: right; }
.news-list li a { color: var(--mc-ink); }
.news-list li a:hover { color: var(--mc-primary); }

/* ---------------- page banner / breadcrumb ---------------- */
.page-banner.jumbotron {
  background-color: var(--mc-primary-dark) !important;
  background-blend-mode: overlay;
  border-radius: 0 0 16px 16px;
  margin: 0 0 22px !important;
  padding: 46px 0 !important;
  position: relative;
  overflow: hidden;
}
.page-banner.jumbotron::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(5, 52, 108, .9), rgba(11, 99, 206, .72));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff !important; font-size: 28px !important; font-weight: 700; margin: 0 0 4px; }
.page-banner p { color: rgba(255,255,255,.78) !important; font-size: 14px !important; margin: 0; }
.position { color: var(--mc-muted); font-size: 13px; margin-bottom: 20px !important; }
.position a { color: var(--mc-muted); }
.position a:hover { color: var(--mc-primary); }
.pages { padding-top: 8px; padding-bottom: 30px; }

/* ---------------- detail page ---------------- */
.view {
  border-radius: var(--mc-radius);
  overflow: hidden;
  background: #eaf1f9;
  border: 1px solid var(--mc-line);
  position: relative;
  box-shadow: var(--mc-shadow);
}
.view .swiper-container, .view .swiper-slide { background: #eaf1f9; }
.view .swiper-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.view .arrow-left, .view .arrow-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; z-index: 5;
  background: rgba(9, 47, 95, .55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.view .arrow-left::before, .view .arrow-right::before {
  content: ""; width: 8px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
}
.view .arrow-left::before { transform: rotate(135deg); margin-left: 3px; }
.view .arrow-right::before { transform: rotate(-45deg); margin-right: 3px; }
.view .arrow-left { left: 12px; }
.view .arrow-right { right: 12px; }
.hospital-info {
  background: #fff;
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  box-shadow: var(--mc-shadow);
  padding: 14px 20px !important;
  display: flex;
  flex-direction: column;
}
.hospital-info h2 { border-bottom: 2px solid var(--mc-primary-light) !important; padding-bottom: 10px !important; margin-bottom: 8px !important; font-size: 19px; }
.hospital-info .border-bottom-dashed { border-bottom: 1px dashed var(--mc-line) !important; padding: 16px 0 !important; margin: 0 !important; font-size: 14px; line-height: 1.6; }
.hospital-info .text-danger { color: #d92d20 !important; font-size: 18px; font-weight: 700; }
.hospital-info .my-3 { margin-top: auto !important; margin-bottom: 0 !important; margin-left: 0 !important; text-align: left; }
.hospital-detail .hospital-info .btn-yuyue, .hospital-detail .hospital-info .btn-danger { padding: 8px 24px !important; }
/* 详情页卡片下方留白收紧：统一两列下外边距 */
.hospital-detail > [class*="col-"] { margin-bottom: 16px !important; }
/* 桌面端：右侧信息框与左侧图片框等高，信息行等距、按钮靠左下 */
@media (min-width: 992px) {
  .hospital-detail { align-items: stretch; }
  .hospital-detail .view, .hospital-info { height: 342px; }
  .hospital-info { height: 342px; overflow: hidden; }
  .hospital-info { justify-content: flex-start; }
  .hospital-info > .my-3 { margin-top: auto !important; margin-left: 0 !important; text-align: left; }
}
.btn-yuyue, .hospital-info .btn-danger {
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent)) !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 11px 34px !important;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(11, 99, 206, .28);
  transition: transform .18s, box-shadow .18s;
}
.btn-yuyue:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 99, 206, .36); color: #fff; }
.content { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: 24px 26px; box-shadow: var(--mc-shadow); }
.content img { border-radius: 8px; max-width: 100%; height: auto; }
.content h2, .content h3 { border-left: 3px solid var(--mc-primary); padding-left: 10px; margin-top: 24px; }
.content p, .content li { color: #40516a; line-height: 1.85; }

/* ---------------- forms & buttons ---------------- */
.btn-info { background: var(--mc-primary) !important; border-color: var(--mc-primary) !important; color: #fff !important; border-radius: 8px; }
.btn-info:hover { background: var(--mc-primary-dark) !important; color: #fff !important; }
.btn-light { background: #fff !important; border-color: var(--mc-line) !important; color: var(--mc-muted) !important; }
.btn-primary { background: var(--mc-primary) !important; border-color: var(--mc-primary) !important; }
.form-control {
  border: 1px solid #d9e4f1 !important;
  border-radius: 9px !important;
  padding: 9px 12px !important;
  box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus { border-color: var(--mc-primary) !important; box-shadow: 0 0 0 3px var(--mc-primary-light) !important; }
label { color: var(--mc-ink); font-weight: 600; font-size: 14px; }
.media { border-bottom: 1px dashed var(--mc-line) !important; }
.media img { border-radius: 50%; object-fit: cover; }

/* pagination */
.pagination { flex-wrap: wrap; }
.pagination .page-item, .pagination .page-link {
  border-radius: 8px !important;
  margin: 0 3px 6px !important;
  border: 1px solid var(--mc-line) !important;
  background: #fff !important;
  color: var(--mc-muted) !important;
  font-size: 13px;
  padding: 6px 13px !important;
}
.pagination .page-link:hover, .pagination .page-num-current {
  background: var(--mc-primary) !important;
  color: #fff !important;
  border-color: var(--mc-primary) !important;
}

/* ---------------- footer ---------------- */
.footer {
  background: linear-gradient(160deg, #082f63, #0a4b96) !important;
  color: rgba(255,255,255,.72) !important;
  border-top: 4px solid var(--mc-accent) !important;
  margin-top: 52px !important;
  padding: 52px 0 40px !important;
}
.footer .footer-title { color: #fff !important; font-size: 17px; margin-bottom: 14px; font-weight: 650; }
.footer .footer-info li { color: rgba(255,255,255,.66); font-size: 13px; list-style: none; }
.footer .footer-info a { color: #a9d3ff; }
.footer .code { background: #fff; padding: 8px; border-radius: 10px; display: inline-block; margin: 0; }
.footer .small { color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------------- floating widgets ---------------- */
.online { z-index: 70; }
.online dl { background: var(--mc-primary) !important; border-radius: 10px 0 0 10px; box-shadow: 0 6px 18px rgba(5, 45, 95, .2); overflow: hidden; }
.online dl dt h3 { background: var(--mc-primary-dark); color: #fff; font-size: 14px; padding: 10px 12px; margin: 0; }
.online dl dt h3 .remove { cursor: pointer; float: right; opacity: .7; }
.online dl dt p a { color: #fff !important; }
.online dl dd { color: #fff; font-size: 11px; }
.online .scroll-top dl { background: rgba(11,99,206,.8) !important; }
.mobile-bottom-nav { background: var(--mc-primary) !important; box-shadow: 0 -4px 18px rgba(5,45,95,.18); }
.mobile-bottom-nav a { color: #fff !important; font-size: 12px; }

/* ---------------- responsive ---------------- */
@media (min-width: 992px) {
  .navbar-nav { margin-left: 8px; }
}
@media (max-width: 991.98px) {
  .navbar { min-height: 60px; }
  .navbar-brand img.logo-sm-height { height: 38px !important; }
  .head-sm-height { height: 60px !important; }
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--mc-line);
    padding: 8px 16px 14px;
    box-shadow: 0 12px 22px rgba(10, 60, 120, .1);
    max-height: 76vh; overflow-y: auto;
  }
  .navbar-nav .nav-link { padding: 11px 14px !important; }
  .navbar-nav .nav-item.active .nav-link::after { display: none; }
  .navbar-text-mobile { margin-left: 0 !important; padding: 8px 14px; }
  .swiper-banner .slideshow { height: auto; }
  .py-5 { padding-top: 44px !important; padding-bottom: 44px !important; }
  .fs-26, .fs-sm-32, .fs-sm-28 { font-size: 25px !important; }
  .view .swiper-slide img { height: 290px; }
}
@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .container { padding-left: 12px; padding-right: 12px; }
  .swiper-banner { border-radius: 0 0 12px 12px; }
  .swiper-banner .slideshow { height: auto; }
  .py-5 { padding-top: 38px !important; padding-bottom: 38px !important; }
  .province-filter { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .province-filter .btn { flex: 0 0 auto; margin: 0 !important; }
  .filter-label { padding-top: 7px; font-size: 13px; }
  .filter-options .btn, .sonsort .btn { font-size: 12.5px; padding: 5px 12px !important; }
  .card-img-120, .card-img-150 { height: 130px; }
  .card.hospital-card .card-body { padding: 12px; }
  .card-title { font-size: 14.5px; min-height: 2.8em; margin-bottom: 6px; }
  .card-text { font-size: 12px; line-height: 1.6; min-height: 3.2em; }
  .card.hospital-card { border-radius: 11px; }
  .hospital-list > [class*="col-"] { padding-left: 6px; padding-right: 6px; margin-bottom: 12px !important; }
  .notice-cards > [class*="col-"] { padding-left: 6px; padding-right: 6px; margin-bottom: 12px; }
  .notice-card.shadow.rounded { padding: 16px 14px !important; }
  .notice-card p { font-size: 12.5px; }
  .page-banner.jumbotron { padding: 30px 0 !important; border-radius: 0 0 12px 12px; }
  .page-banner h1 { font-size: 22px !important; }
  .hospital-info { padding: 16px !important; }
  .hospital-info h2 { font-size: 20px; }
  .view .swiper-slide img { height: 230px; }
  .content { padding: 16px; border-radius: 11px; }
  .footer { padding: 36px 0 90px !important; margin-top: 34px !important; }
  .footer .footer-title { font-size: 15px; }
  .footer .footer-info li { font-size: 12px; }
  .news-list li .d-md-inline { display: none !important; }
  .news-list li .d-inline.d-md-none { display: inline !important; font-size: 14px; }
}
@media (max-width: 575.98px) {
  .swiper-banner .slideshow { height: auto; }
  .fs-26, .fs-sm-32, .fs-sm-28 { font-size: 22px !important; }
  .card-img-120, .card-img-150 { height: 116px; }
  .view .swiper-slide img { height: 195px; }
  .hospital-list .card-text { display: none; }
  .hospital-list .card-title { min-height: 2.9em; }
  .btn-yuyue { width: 100%; }
}
