/* ==================== 公共模块头部样式 ==================== */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.module-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2c3e;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
    margin: 0;
}

.module-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 4px;
    background: #2c7da0;
    border-radius: 4px;
}

.module-more-link {
    font-size: 14px;
    color: #2c7da0;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.module-more-link:hover {
    color: #1a5a78;
    text-decoration: underline;
}






/* 模块容器 */
.news-service-module {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
}

/* 新闻动态内边距 */
.news-banner-wrapper {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #eef2f6;
}

/* 左右布局 */
.news-split-layout {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 左侧大图轮播容器 */
.hero-slider-area {
    flex: 3;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-main {
    flex: 1;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.carousel-slides li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    list-style: none;
}

.carousel-slides li.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.carousel-slides li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-slides li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* 轮播控制点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dots .dot.active {
    background: #2c7da0;
    width: 24px;
    border-radius: 6px;
}

/* 右侧新闻列表区域 */
.news-list-area {
    flex: 1;
    min-width: 240px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.compact-news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* 右侧新闻项样式 */
.news-item-with-summary {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

/* hover 效果 */
.news-item-with-summary:hover {
    background: linear-gradient(135deg, #3470ba 0%, #2a5a9e 100%);
    border-bottom-color: #3470ba;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(52, 112, 186, 0.25);
}

.news-item-with-summary:hover .news-index {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.news-item-with-summary:hover .news-title-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-item-with-summary:hover .news-summary-text {
    color: rgba(255, 255, 255, 0.85);
}

/* 活跃状态样式（对应轮播图当前显示的新闻） */
.news-item-with-summary.active-item {
    background: linear-gradient(135deg, #e8f4f8 0%, #dceef5 100%);
    border-left: 4px solid #3470ba;
    border-bottom-color: #eef2f6;
}

.news-item-with-summary.active-item .news-index {
    background-color: #3470ba;
    color: #ffffff;
}

.news-item-with-summary.active-item .news-title-link {
    color: #3470ba;
}

.news-item-with-summary.active-item .news-summary-text {
    color: #4a5b6e;
}

/* 序号和标题行 */
.news-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.news-index {
    width: 28px;
    height: 28px;
    background: #f0f7fc;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #2c7da0;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-title-link {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1e2f3e;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary-text {
    font-size: 13px;
    color: #8a9bb0;
    line-height: 1.5;
    margin-left: 40px;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 便民服务样式 */
.convenience-service {
    background: #ffffff;
    border-radius: 20px;
    padding: 10px 30px 20px 30px;
}

.service-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.service-title p {
    font-size: 22px;
    font-weight: 700;
    color: #1a2c3e;
    margin: 0;
    display: inline-block;
    position: relative;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.service-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 12px 8px;
    border-radius: 28px;
    transition: all 0.2s ease;
    background: #fafcff;
    cursor: pointer;
}

.service-item:hover {
    background: #f0f7fc;
    transform: translateY(-3px);
}

.service-item a {
    text-decoration: none;
    display: block;
}

.service-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    background: #eef3fc;
    border-radius: 30px;
    line-height: 56px;
    text-align: center;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.service-item:hover .service-icon {
    background: #d9eaf3;
}

.service-icon i {
    font-size: 28px;
    color: #2c7da0;
}

.service-item p {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 6px;
}

/* 加载占位符 */
.loading-placeholder {
    background: linear-gradient(110deg, #eceff3 8%, #f5f7fa 18%, #eceff3 33%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
    border-radius: 16px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 响应式 */
@media (max-width: 992px) {
    .news-split-layout {
        flex-direction: column;
    }

    .hero-slider-area {
        flex: auto;
        width: 100%;
    }

    .news-list-area {
        flex: auto;
        width: 100%;
    }

    .service-grid {
        justify-content: center;
    }

    .service-item {
        flex: 0 0 110px;
    }
}

@media (max-width: 640px) {
    .news-service-module {
        border-radius: 16px;
    }

    .news-banner-wrapper {
        padding: 20px;
    }

    .convenience-service {
        margin: 0 20px 20px 20px;
    }
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 响应式 */
@media (max-width: 992px) {
    .news-split-layout {
        flex-direction: column;
    }

    .hero-slider-area {
        flex: auto;
        width: 100%;
    }

    .news-list-area {
        flex: auto;
        width: 100%;
    }

    .service-grid {
        justify-content: center;
    }

    .service-item {
        flex: 0 0 110px;
    }
}

@media (max-width: 640px) {
    .news-service-module {
        border-radius: 16px;
    }

    .news-banner-wrapper {
        padding: 20px;
    }

    .convenience-service {
        margin: 0 20px 20px 20px;
    }
}

/* 加载占位符 */
.loading-placeholder {
    background: linear-gradient(110deg, #eceff3 8%, #f5f7fa 18%, #eceff3 33%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
    border-radius: 16px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 重置列表样式 */
ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 确保轮播容器有固定高度比例 */
.hero-carousel .carousel-main {
    aspect-ratio: 16 / 9;
}




/* 健康科普模块样式 */
.health-module {
    width: 1200px;
    margin: 0 auto;
    /* background: #fff; */
    border-radius: 24px;
    padding: 30px;
    box-sizing: border-box;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
}


/* 轮播容器 */
.health-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.health-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.health-carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 20px;
}

/* 科普卡片样式 */
.health-card {
    flex: 0 0 calc(20% - 16px);
    min-width: calc(20% - 16px);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f7fa;
}

.health-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.health-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.health-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    /* line-height: 1.4; */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s ease;
    height: 70px;
    overflow: hidden;
    box-sizing: border-box;
}

.health-card:hover .health-card-title {
    padding: 20px 12px 16px;
}

.health-card a {
    text-decoration: none;
    display: block;
}

/* 左右箭头样式 */
.health-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #2c7da0;
}

.health-arrow:hover {
    background: #2c7da0;
    border-color: #2c7da0;
    color: #ffffff;
}

.health-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.health-arrow:disabled:hover {
    background: #ffffff;
    border-color: #e0e6ed;
    color: #2c7da0;
}

/* 分页指示器 */
.health-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.health-dot.active {
    background: #2c7da0;
    width: 24px;
    border-radius: 6px;
}

/* 加载占位符 */
.health-loading {
    background: linear-gradient(110deg, #eceff3 8%, #f5f7fa 18%, #eceff3 33%);
    background-size: 200% 100%;
    animation: healthShimmer 1.2s linear infinite;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
}

@keyframes healthShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 响应式 */
@media (max-width: 992px) {
    .health-module {
        padding: 20px;
    }

    .health-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 640px) {
    .health-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .health-arrow {
        width: 32px;
        height: 32px;
    }
}






/* ==================== 科室模块样式 ==================== */
.department-module {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 30px 30px 20px;
    box-sizing: border-box;
}

.department-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    align-items: stretch;
}

/* 科室卡片样式 - 明显醒目 */
.department-card {
    flex: 0 0 auto;
    min-width: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* .department-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #e8f4f8 0%, #dceef5 100%);
    border-color: #2c7da0;
    box-shadow: 0 8px 20px rgba(44, 125, 160, 0.15);
} */

.department-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 图标区域 */
.department-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* .department-card:hover .department-icon-wrapper {
    background: #2c7da0;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(44, 125, 160, 0.2);
} */

.department-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* .department-card:hover .department-icon {
    filter: brightness(0) invert(1);
} */

/* 科室名称 */
.department-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.2s;
}

.department-card:hover .department-name {
    color: #2c7da0;
}

/* 英文名称 */
.department-english {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.department-card:hover .department-english {
    color: #2c7da0;
}

/* 加载状态 */
.department-loading {
    padding: 40px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .department-module {
        margin: 0 auto 30px;
    }

    .department-card {
        min-width: 120px;
        padding: 16px 12px;
    }

    .department-icon-wrapper {
        width: 52px;
        height: 52px;
    }

    .department-icon {
        width: 28px;
        height: 28px;
    }

    .department-name {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .department-list {
        gap: 12px;
    }

    .department-card {
        min-width: calc(33.33% - 8px);
        flex: 1;
        padding: 14px 10px;
    }

    .department-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .department-icon {
        width: 24px;
        height: 24px;
    }

    .department-name {
        font-size: 13px;
    }

    .department-english {
        font-size: 9px;
    }
}



/* 服务通道组件样式 - 仿科室设置风格 */
.service-channel {
    width: 1200px;
    margin: 0 auto 40px;
    padding: 30px;
    box-sizing: border-box;
}

.service-channel__header {
    padding: 10px 20px;
    border-bottom: 2px solid #eef2f9;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-channel__title {
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: -0.3px;
}

.service-channel__badge {
    font-size: 0.75rem;
    color: #6c86a3;
    background: #eef3fc;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    font-weight: 500;
}

.service-channel__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    margin: 0;
    gap: 1rem;
}

.service-channel__item {
    flex: 1 1 160px;
    min-width: 130px;
    transition: transform 0.2s ease;
}

.service-channel__item:hover {
    transform: translateY(-2px);
}

.service-channel__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f9fbfe;
    text-decoration: none;
    padding: 0.85rem 0.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e2f44;
    transition: all 0.25s;
    border: 1px solid #e9edf4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.service-channel__link:hover {
    background: #fff;
    border-color: #bdd4ff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
    color: #1e40af;
}

.service-channel__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.service-channel__text {
    font-weight: 600;
}

.service-channel__arrow {
    font-size: 0.85rem;
    margin-left: 2px;
    opacity: 0.7;
}

.service-channel__tel {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 4px;
}

/* 首项服务通道特殊样式 */
.service-channel__item:first-child .service-channel__link {
    background: linear-gradient(98deg, #eef6ff, #fff);
    border-left: 3px solid #2d7aff;
}

/* 移动端响应式 */
@media (max-width: 680px) {
    .service-channel__list {
        padding: 1rem 1rem 1.4rem;
        gap: 0.7rem;
    }

    .service-channel__item {
        flex-basis: calc(50% - 0.7rem);
        min-width: auto;
    }

    .service-channel__link {
        padding: 0.7rem 0.3rem;
        font-size: 0.88rem;
    }

    .service-channel__header {
        padding: 0.8rem 1.2rem;
    }

    .service-channel__title {
        font-size: 1.25rem;
    }
}