/* ============================================================
   华西妇产医院 PC 端样式
   ============================================================ */

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===== Pagination ===== */
.pagination {
    justify-content: center;
    gap: 4px;
}
.page-link {
    border-radius: 6px !important;
    padding: 8px 14px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.page-item.disabled .page-link {
    color: #ccc;
    background: #fafafa;
}

/* ============================================================
   ============================================================ */

/* ===== Bootstrap primary overrides ===== */
.bg-primary, .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.text-primary { color: var(--primary) !important; }
.page-link.active, .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.navbar-brand { color: var(--primary) !important; padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ============================================================ — 蓝色+绿色医疗主题
   ============================================================ */

:root {
    /* 主色调 — 青蓝色 */
    --primary: #009db0;
    --primary-dark: #007a8a;
    --primary-light: #e0f5f7;
    --accent: #00b4a9;
    --accent-dark: #009389;
    --accent-light: #e0faf7;

    /* 中性色 */
    --text-dark: #2c3e50;
    --text-body: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    line-height: 1.7;
    min-width: 1200px;
}

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.top-bar a:hover {
    color: #fff;
}

/* ========== 导航栏 ========== */
.navbar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 0;
}
.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.navbar .navbar-brand img {
    height: 48px;
    width: auto;
}
.navbar .navbar-brand .brand-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.navbar .navbar-brand .brand-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: -2px;
}
.navbar .nav-link {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    padding: 16px 20px !important;
    transition: all 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.navbar .nav-link.nav-appointment {
    background: var(--accent);
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 24px !important;
    margin: 8px 0 8px 8px;
    font-weight: 600;
    letter-spacing: 1px;
}
.navbar .nav-link.nav-appointment:hover {
    background: var(--accent-dark);
}

/* ========== 通用区块标题 ========== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-title .subtitle {
    font-size: 15px;
    color: var(--text-muted);
}
.section-title .divider {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.section-title .divider span {
    width: 36px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    display: inline-block;
}
.section-title .divider span:first-child {
    background: var(--accent);
}

/* ========== 轮播 Banner ========== */
#bannerCarousel {
    margin-bottom: 0;
}
#bannerCarousel .carousel-item {
    height: 460px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d4a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
#bannerCarousel .carousel-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}
#bannerCarousel .carousel-caption {
    bottom: 60px;
    text-align: left;
    left: 15%;
    right: auto;
    max-width: 50%;
}
#bannerCarousel .carousel-caption h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#bannerCarousel .carousel-caption p {
    font-size: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
#bannerCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* ========== 快速入口 ========== */
.quick-links {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}
.quick-link-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
}
.quick-link-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.quick-link-item .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 26px;
    transition: all 0.25s;
}
.quick-link-item:hover .icon-wrap {
    background: var(--primary);
    color: #fff;
}
.quick-link-item .label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== 科室导航 ========== */
.departments-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.departments-grid {
    padding: 60px 0;
    background: #fff;
}
/* ===== 外层容器 ===== */
.dept-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* ===== 上方区域：左侧大图55% + 右侧2行1列45% ===== */
.dept-top-row {
    display: grid;
    grid-template-columns: 55fr 45fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}
/* 左侧大图：跨2行 */
.dept-large-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    grid-row: 1 / 3;
}
/* 右侧2行1列（上下排列） */
.dept-right-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    grid-row: 1 / 3;
}
/* ===== 下方区域：左2个 + 右2个 ===== */
.dept-bottom-row {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 12px;
}
.dept-bottom-left,
.dept-bottom-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* ===== 通用卡片样式 ===== */
.dept-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    min-height: 180px;
}
.dept-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    transition: transform 0.5s ease;
}
.dept-card:hover .dept-bg,
.dept-large-card:hover .dept-bg {
    transform: scale(1.2);
}
.dept-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 70%);
    z-index: 1;
    transition: background 0.3s;
}
.dept-card:hover .dept-overlay,
.dept-large-card:hover .dept-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 70%);
}
.dept-label {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;
}
.dept-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.dept-large-card .dept-name {
    font-size: 26px;
}
.dept-desc {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 6px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .dept-top-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .dept-large-card {
        grid-row: auto;
        grid-column: 1 / 3;
        height: 220px;
    }
    .dept-right-grid {
        grid-column: 1 / 3;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .dept-bottom-row {
        grid-template-columns: 1fr 1fr;
    }
    .dept-bottom-left,
    .dept-bottom-right {
        grid-template-columns: 1fr 1fr;
    }
    .dept-card {
        min-height: 160px;
    }
    .dept-large-card .dept-name {
        font-size: 20px;
    }
}
@media (max-width: 576px) {
    .dept-grid-wrapper {
        gap: 8px;
    }
    .dept-top-row,
    .dept-bottom-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .dept-large-card {
        grid-column: auto;
        height: 200px;
    }
    .dept-right-grid {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .dept-bottom-left,
    .dept-bottom-right {
        grid-template-columns: 1fr;
    }
    .dept-card {
        min-height: 140px;
    }
}

/* ========== 推荐医生 ========== */
.doctors-section {
    padding: 60px 0;
    background: #fff;
}
.doctor-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
}
.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.doctor-card .doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 24px auto 14px;
    border: 3px solid var(--primary-light);
}
.doctor-card .doctor-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 24px auto 14px;
    border: 3px solid var(--primary-light);
}
.doctor-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.doctor-card .title {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 6px;
}
.doctor-card .specialty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 12px 20px;
}

/* ========== 头条新闻 ========== */
.headlines-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.headline-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: flex-end;
}
.headline-main.headline-main-noimg {
    background: linear-gradient(135deg, #005f6b 0%, var(--primary) 50%, #00b4a9 100%);
}
.headline-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.headline-main .overlay {
    position: relative;
    width: 100%;
    padding: 30px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    z-index: 1;
}
.headline-main .overlay h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.headline-main .overlay .headline-summary {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 10px;
    line-height: 1.6;
}
.headline-main .overlay .date {
    font-size: 13px;
    opacity: 0.75;
}
.headline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.headline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.headline-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.headline-item .number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.headline-item:nth-child(1) .number { background: #e53e3e; color: #fff; }
.headline-item:nth-child(2) .number { background: #dd6b20; color: #fff; }
.headline-item:nth-child(3) .number { background: #d69e2e; color: #fff; }
.headline-item .info {
    flex: 1;
    min-width: 0;
}
.headline-item .info h6 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.headline-item .info .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 文章卡片通用 ========== */
.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    border: 1px solid var(--border-color);
}
.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.article-card .article-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card .article-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.article-card .article-thumb .icon-placeholder {
    font-size: 48px;
    color: #fff;
    opacity: 0.8;
}
.article-card .article-body {
    padding: 16px;
}
.article-card .article-body h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.article-card .article-body .meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== 热点文章 和 推荐阅读 ========== */
.hot-section,
.recommend-section {
    padding: 60px 0;
    background: #fff;
}
.recommend-section {
    background: var(--bg-light);
}

/* ========== 友情链接 ========== */
.links-section {
    padding: 50px 0 40px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}
.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}
.link-item:hover {
    background: var(--bg-light);
}
.link-item img {
    max-height: 40px;
    opacity: 0.7;
}
.link-item img:hover {
    opacity: 1;
}
.link-item span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
.link-item:hover span {
    color: var(--primary);
}

/* ========== 页脚 ========== */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 50px 0 20px;
}
.site-footer h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.site-footer a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #fff;
}
.site-footer .footer-contact p {
    font-size: 13px;
    margin-bottom: 6px;
}
.site-footer .footer-contact i {
    margin-right: 6px;
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid #2d3748;
    margin-top: 30px;
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* ========== 通用工具类 ========== */
.section-padding {
    padding: 60px 0;
}
.bg-white-page {
    background: #fff;
}
.bg-light-page {
    background: var(--bg-light);
}
.text-primary-color { color: var(--primary); }
.text-accent-color { color: var(--accent); }
.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 500;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.btn-accent-custom {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 500;
}
.btn-accent-custom:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: all 0.2s;
    font-size: 20px;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== 面包屑 ========== */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 30px 0;
}
.breadcrumb-section .page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}
.breadcrumb-section .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}
.breadcrumb-section .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.breadcrumb-section .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

/* ========== 科室列表页 ========== */
.dept-grid { margin-top: 10px; }
.dept-card-full {
    background: #fff;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
    display: block;
    text-decoration: none;
    color: inherit;
}
.dept-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
    color: inherit;
    text-decoration: none;
}
.dept-card-full .dept-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dceefb 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 34px;
    transition: all 0.3s;
}
.dept-card-full:hover .dept-icon-lg {
    background: var(--primary);
    color: #fff;
}
.dept-card-full h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.dept-card-full p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 科室详情页 ========== */
.dept-detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 40px 0;
    margin-top: -24px;
    margin-bottom: 24px;
}
.dept-detail-header h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.dept-detail-header .dept-banner-text { opacity: 0.9; font-size: 15px; }
.dept-content { background: #fff; border-radius: 10px; padding: 30px; box-shadow: var(--shadow-sm); }
.dept-content .rich-content { line-height: 1.9; font-size: 15px; }
.dept-content .rich-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.dept-article-list { margin-top: 10px; }
.dept-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.dept-article-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
    color: inherit;
}
.dept-article-item .article-title {
    font-size: 15px;
    color: var(--text-dark);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dept-article-item .article-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 16px;
    white-space: nowrap;
}

/* ========== 医生列表页 ========== */
.doctor-filter-bar {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.doctor-grid { margin-top: 10px; }
.doctor-card-full {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--border-color);
    display: block;
    text-decoration: none;
    color: inherit;
}
.doctor-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}
.doctor-card-full .doctor-avatar-wrap {
    padding: 24px 20px 0;
}
.doctor-card-full .doctor-avatar-wrap img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}
.doctor-card-full .doctor-avatar-wrap .avatar-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
    overflow: hidden;
}
.doctor-card-full .doctor-avatar-wrap .avatar-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    border: none;
    padding: 12px;
}
.doctor-card-full .doctor-card-body { padding: 16px 16px 24px; }
.doctor-card-full .doctor-card-body h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.doctor-card-full .doctor-card-body .title-tag {
    display: inline-block;
    padding: 2px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}
.doctor-card-full .doctor-card-body .dept-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
/* ==================== Home Banner ==================== */
.main-content:has(.home-banner) {
    padding-top: 0;
}
.home-banner {
    width: 100%;
    margin: 0;
}
.home-banner .carousel-inner {
    height: 500px;
}
.home-banner .banner-slide {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.home-banner .banner-slide-fallback {
    background: linear-gradient(135deg, #1a6fb5 0%, #125a94 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-banner .banner-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.home-banner .banner-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 2;
    max-width: 80%;
}
.home-banner .banner-caption h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.home-banner .banner-caption p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}
.home-banner .carousel-control-prev,
.home-banner .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}
@media (max-width: 768px) {
    .home-banner .carousel-inner,
    .home-banner .banner-slide { height: 280px; }
    .home-banner .banner-caption { bottom: 20px; padding: 12px 20px; }
    .home-banner .banner-caption h2 { font-size: 20px; }
}

/* ==================== 首页专家展示（5列轮播） ==================== */
.doctors-showcase {
    background: var(--bg-light);
    padding: 60px 0;
}
.doctor-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -10px;
}
.doctor-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.doctor-slide {
    display: none;
}
.doctor-slide.active {
    display: block;
}
.doctor-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.doctor-item {
    flex: 0 0 calc(20% - 13px);
    max-width: calc(20% - 13px);
    text-align: center;
    cursor: pointer;
    position: relative;
}
.doctor-item.empty {
    visibility: hidden;
}
.doctor-photo-link {
    display: block;
    text-decoration: none;
}
.doctor-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--border-color);
}
.doctor-photo-wrap .doctor-photo-border {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    border: 3px solid transparent;
    z-index: 2;
    pointer-events: none;
    transition: border-color 0.4s;
}
.doctor-photo-wrap:hover .doctor-photo-border {
    border-color: var(--primary);
    animation: photoBorderPulse 1.2s ease-in-out infinite;
}
@keyframes photoBorderPulse {
    0%, 100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(0,157,176,0.4); }
    50% { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(0,180,169,0); }
}
.doctor-photo-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    transition: transform 0.4s;
}
.doctor-photo-wrap:hover img {
    transform: scale(1.05);
}
.doctor-photo-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f5;
}
.doctor-photo-placeholder img {
    width: 70%;
    height: auto;
    object-fit: contain;
}
.doctor-item.active-doc .doctor-photo-wrap {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,157,176,0.25);
}

/* Prev/Next buttons */
.doctor-slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 3;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-slider-btn:hover {
    background: var(--primary);
    color: #fff;
}
.doctor-slider-btn.prev { margin-right: -21px; }
.doctor-slider-btn.next { margin-left: -21px; }

/* Detail panel */
.doctor-detail-panel {
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: panelSlideIn 0.3s ease;
}
@keyframes panelSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.doc-detail-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 36px;
}
.doc-detail-left {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
    box-shadow: 0 2px 12px rgba(0,157,176,0.15);
}
.doc-detail-left img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}
.doc-detail-left .doc-detail-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 40px;
}
.doc-detail-right { flex: 1; }
.doc-detail-right h5 {
    font-size: 22px; font-weight: 700;
    color: var(--text-dark); margin: 0 0 6px 0;
}
.doc-detail-right .detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-bottom: 8px; font-size: 13px; color: var(--text-muted);
}
.doc-detail-right .detail-meta span {
    display: inline-flex; align-items: center; gap: 4px;
}
.doc-detail-right .detail-meta i { color: var(--primary); font-size: 14px; }
.doc-detail-right .detail-specialty {
    font-size: 14px; color: var(--text-body); line-height: 1.6;
    margin-bottom: 12px; padding: 10px 14px;
    background: var(--bg-light); border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.doc-detail-right .detail-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: var(--primary); color: #fff;
    border-radius: 20px; font-size: 13px; text-decoration: none;
    transition: all 0.2s;
}
.doc-detail-right .detail-btn:hover {
    background: var(--primary-dark); color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,157,176,0.3);
}
.doc-detail-close {
    position: absolute; top: 14px; right: 14px;
    width: 28px; height: 28px; line-height: 26px;
    text-align: center; border-radius: 50%;
    background: #f0f0f0; color: #999; cursor: pointer;
    font-size: 16px; border: none; transition: all 0.2s;
}
.doc-detail-close:hover { background: #ff5722; color: #fff; }

@media (max-width: 768px) {
    .doc-detail-content { flex-direction: column; padding: 20px; text-align: center; }
    .doc-detail-left { width: 90px; height: 90px; }
    .doc-detail-right h5 { font-size: 18px; }
}

@media (max-width: 992px) {
    .doctor-item { flex: 0 0 calc(33.33% - 11px); max-width: calc(33.33% - 11px); }
    .doctor-photo-wrap { padding-top: 120%; }
}
@media (max-width: 576px) {
    .doctor-item { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
}

.doctor-card-full .doctor-card-body .specialty-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 医生详情页 ========== */
.doctor-profile-header {
    background: linear-gradient(135deg, #1a6fb5 0%, #0d4a7a 100%);
    padding: 50px 0;
    margin-top: -24px;
    margin-bottom: 24px;
}
.doctor-profile-header .avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
}
.doctor-profile-header .avatar-placeholder-lg {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    border: 4px solid rgba(255,255,255,0.3);
}
.doctor-profile-header h2 { font-size: 28px; font-weight: 700; }
.doctor-profile-header .profile-meta { opacity: 0.9; font-size: 14px; }
.doctor-profile-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    font-size: 15px;
}
.doctor-profile-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.doctor-sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.doctor-sidebar-card h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.doctor-sidebar-card .info-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}
.doctor-sidebar-card .info-item .label {
    color: var(--text-muted);
    width: 65px;
    flex-shrink: 0;
}
.doctor-sidebar-card .info-item .value {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== 分页 ========== */
.pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.pagination-wrap .pagination { margin: 0; }
.pagination-wrap .page-link {
    color: var(--primary);
    border-radius: 6px;
    margin: 0 3px;
    padding: 8px 16px;
    border-color: var(--border-color);
}
.pagination-wrap .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination-wrap .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination-wrap .page-item.disabled .page-link {
    color: var(--text-muted);
}

/* ========== 预约按钮 ========== */
.btn-register {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    letter-spacing: 1px;
}
.btn-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
    text-decoration: none;
}
