/* ===== 全局样式 ===== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --accent-color: #2bb673;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f7f9fc;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ===== 顶部信息条 ===== */
.top-bar {
    background-color: #0a3d62;
    color: #dfe6e9;
    font-size: 0.875rem;
    padding: 6px 0;
}

.top-bar a {
    color: #dfe6e9;
}

/* ===== 导航栏 ===== */
.navbar-brand img {
    height: 44px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

/* ===== 通用标题 ===== */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Banner 轮播 ===== */
.hero-carousel .carousel-item {
    height: 520px;
    background-size: cover;
    background-position: center;
}

.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
}

.hero-carousel .carousel-caption {
    text-align: left;
    bottom: 25%;
    left: 10%;
    right: 10%;
    z-index: 2;
}

.hero-carousel .carousel-caption h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-carousel .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* ===== 快捷服务卡 ===== */
.quick-service .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.quick-service .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-service .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2bb673, #0d6efd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* ===== 新闻卡 ===== */
.news-card {
    border: 1px solid #eaeef3;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    background: #fff;
}

.news-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.news-card .news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-card .card-body {
    padding: 1.25rem;
}

.news-card .news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 环境图片卡 ===== */
.env-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 260px;
}

.env-card img,
.env-card .env-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.env-card:hover img,
.env-card:hover .env-img {
    transform: scale(1.08);
}

.env-card .env-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
}

.env-card .env-overlay h5 {
    margin: 0;
    font-weight: 600;
}

/* ===== 页面小 Banner ===== */
.page-banner {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 61, 98, 0.55);
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-banner nav {
    font-size: 0.9rem;
}

/* ===== 数据统计条 ===== */
.stat-bar {
    background: linear-gradient(135deg, #0a3d62, #0d6efd);
    color: #fff;
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-size: 2.4rem;
    font-weight: 700;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== 医生卡 ===== */
.doctor-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    height: 100%;
}

.doctor-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.doctor-card .doctor-img {
    height: 280px;
    background-size: cover;
    background-position: center top;
}

.doctor-card .card-body {
    text-align: center;
    padding: 1.25rem;
}

.doctor-card .doctor-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.doctor-card .doctor-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.doctor-card .doctor-dept {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 详情页 ===== */
.article-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeef3;
    margin-bottom: 1.5rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.9;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ===== 侧边栏 ===== */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 1rem;
}

.sidebar-news-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #eaeef3;
}

.sidebar-news-item a {
    color: var(--text-dark);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item .date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== 关于我们 ===== */
.about-section img {
    border-radius: 12px;
    width: 100%;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    margin-top: 4px;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e6ed;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-item .year {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* ===== 页脚 ===== */
.footer {
    background: #0a2540;
    color: #c2c9d6;
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer a {
    color: #c2c9d6;
    display: block;
    padding: 0.25rem 0;
    font-size: 0.92rem;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

.footer .contact-line {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}


/* ===== 分页样式 ===== */
.pagelist ul{justify-content:center!important}
.pagelist a,.pagelist span {
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    color: var(--bs-pagination-color);
    text-decoration: none;
    background-color: var(--bs-pagination-bg);
    border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.pagelist li:first-child a,.pagelist li:first-child span {
    border-top-left-radius: var(--bs-pagination-border-radius);
    border-bottom-left-radius: var(--bs-pagination-border-radius);
}
.pagelist li:not(:first-child) a,.pagelist li:not(:first-child) span {
    margin-left: calc(var(--bs-border-width)* -1);
}
.pagelist li:last-child a,.pagelist li:last-child span {
    border-top-right-radius: var(--bs-pagination-border-radius);
    border-bottom-right-radius: var(--bs-pagination-border-radius);
}
.pagelist .active>span, .pagelist .active>a.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
}
.pagelist .disabled>a, .pagelist li.disabled span {
    color: var(--bs-pagination-disabled-color);
    pointer-events: none;
    background-color: var(--bs-pagination-disabled-bg);
    border-color: var(--bs-pagination-disabled-border-color);
}

/* ===== 返回顶部按钮 ===== */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
    background: #229761;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 320px;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 1.6rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.95rem;
    }

    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .stat-item .stat-num {
        font-size: 1.8rem;
    }
}
