/* 轮播广告图样式 */
#mainCarousel {
    height: 400px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mainCarousel .carousel-inner {
    height: 400px;
}

#mainCarousel .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

#mainCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#mainCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #999999;
}

#mainCarousel .carousel-indicators button.active {
    background-color: var(--mainColor);
    /* background-color: #0784BA; */
}

#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mainCarousel:hover .carousel-control-prev,
#mainCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* 快捷服务导航样式 */
.quick-nav {
    background-color: var(--mainColor);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    height: 170px;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 1rem;
    transition: all 0.3s ease;
}

.quick-nav-item:hover {
    transform: translateY(-5px);
    color: #fff;
}

.quick-nav-item img {
    height: 80px;
    margin-bottom: 0.5rem;
}

.quick-nav-item span {
    font-size: 22px;
    text-align: center;
}


/* 新闻动态区域样式 */
.news-section {
    margin: 30px 0;
}

.news-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    height: 100%;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.news-header h5 {
    color: var(--mainColor);
    margin: 0;
    font-size: 18px;
    border-bottom: 2px solid var(--mainColor);
    padding-bottom: 5px;
}

.more-link {
    color: var(--mainColor);
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    color: var(--mainColor);
    font-weight: bold;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 5px;
    font-size: 14px;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.news-list li a {
    color: #333;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list li a:hover {
    color: var(--mainColor);
}

.news-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* 医院领导展示区样式 */
.leaders-section {
    margin: 30px 0;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--lineColor);
}

.section-header h5 {
    color: var(--mainColor);
    font-weight: bold;
    border-bottom: 2px solid var(--mainColor);
    padding-bottom: 5px;
}

.leader-card {
    text-align: center;
    margin-bottom: 20px;
}

.leader-card img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
}

.leader-card h5 {
    margin: 5px 0;
    color: var(--mainColorText);
}

.leader-card p {
    color: var(--mainColorText);
    margin: 0;
}

/* 党建专栏样式 */
.party-section {
    margin: 20px 0;
}

.party-banner {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 医院动态图片展示样式 */
.gallery-section {
    margin: 20px 0;
    position: relative;
}

/* 添加指示器样式 */
.gallery-section .carousel-indicators {
    position: relative;
    margin-bottom: 0;
}

.gallery-section .carousel-indicators button {
    width: 25px;
    height: 5px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #DFDFDF;
    margin: 0 5px;
}

.gallery-section .carousel-indicators button.active {
    background-color: var(--mainColor);
}

.gallery-section .carousel-control-prev,
.gallery-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-section .carousel-control-prev {
    left: -50px;
}

.gallery-section .carousel-control-next {
    right: -50px;
}

.gallery-section .carousel-control-prev-icon,
.gallery-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gallery-item p {
    color: var(--mainColorText);
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.gallery-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-section .section-header h5 {
    color: var(--mainColor);
    margin: 0;
    font-weight: bold;
}

.gallery-section .more-link {
    color: var(--mainColor);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
}

.gallery-section .more-link:hover {
    color: var(--mainColor);
    font-weight: bold;
}

/* 党群工作样式 */
.party-work-section {
    margin: 30px 0;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--mainColor);
}

.party-work-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.party-work-section .section-header h5 {
    color: #fff;
    background-color: var(--mainColor);
    margin: 0;
    padding: 0 20px;
    font-size: 18px;
    height: 50px;
    line-height: 50px;
}

.party-work-section #partyWorkCarousel {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.party-work-section #partyWorkCarousel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.party-work-section .carousel-indicators {
    margin-bottom: 0;
}

.party-work-section .carousel-indicators button {
    width: 25px;
    height: 5px;
    border-radius: 5px;
    background-color: #DFDFDF;
    margin: 0 5px;
}

.party-work-section .carousel-indicators button.active {
    background-color: var(--mainColor);
}


.party-work-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.party-work-list.active{
    display: block;
}


.party {
    display: flex;
    width: 100%;
}

.party button {
    flex: 1;
    position: relative;
    padding: 8px 20px;
    border: none;
    background: #BBEAFF;
    color: var(--mainColorText);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
}

.party button.active {
    background-color: var(--mainColor);
    color: #fff;
}

.party button.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--mainColor);
}

.party-work-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--lineColor);
}

.party-work-list li:last-child {
    border-bottom: none;
}

.party-work-list li a {
    color: var(--mainColorText);
    text-decoration: none;
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.party-work-list li a:hover {
    color: var(--mainColor);
}

.party-work-list .news-date {
    color: var(--mainColorText);
    font-size: 12px;
    margin-left: 10px;
}

/* 党群工作轮播图标题和指示器样式 */
.party-work-section #partyWorkCarousel {
    position: relative;
}

.party-work-section .carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    margin: 0;
}

.party-work-section .caption-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.party-work-section .carousel-title {
    color: #fff;
    font-size: 14px;
    margin: 0;
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.caption-content .carousel-title{
    display: none;
}
.caption-content .carousel-title.active{
    display: block;
}
.party-work-section .carousel-indicators {
    position: static;
    margin: 0;
    width: auto;
}

.party-work-section .carousel-indicators button {
    opacity: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    margin: 0 4px;
}

.party-work-section .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--mainColor);
}

/* 知名专家样式 */
.experts-section {
    margin: 0 0 20px;
    background: #fff;
}

.experts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.experts-section .section-header h5 {
    color: var(--mainColor);
    margin: 0;
    font-size: 20px;
    border-bottom: 2px solid var(--mainColor);
    padding-bottom: 5px;
    
}

.expert-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.expert-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.expert-list {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.expert-item {
    flex: 0 0 auto;
    width: 178px;
    height: 300px;
    display: flex;
    background: #fff;
    border: 1px solid var(--mainColor);
    flex-direction: column;
}

.expert-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.expert-item .expert-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--mainColorText);
    text-align: center;
    padding-top: 10px;
    line-height: 30px;
}

.expert-item .expert-desc {
    font-size: 14px;
    color: var(--mainColorText);
    text-align: center;
    padding-bottom: 10px;
}

.expert-card {
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--mainColor);
}

.expert-card:hover {
    /* transform: translateY(-5px); */
}

.expert-card img {
    width: 100%;
    height: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 10px;
}

.expert-card h6 {
    margin: 5px 0;
    color: #333;
    font-size: 16px;
}

.expert-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 科室导航样式 */
.department-section {
    margin: 20px 0;
    background: #fff;
    padding: 20px 0;
}

.department-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

.department-tabs button {
    flex: 1;
    position: relative;
    padding: 8px 20px;
    border: none;
    background: #BBEAFF;
    color: var(--mainColorText);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    font-size: 20px;
}

.department-tabs button.active {
    background-color: var(--mainColor);
    color: #fff;
}

.department-tabs button.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--mainColor);
}

.department-content {
    display: flex;
    gap: 20px;
}

.department-image {
    flex: 0 0 300px;
}

.department-image img {
    width: 560px;
    height: 430px;
    object-fit: contain;
}

.department-list {
    flex: 1;
    display: none;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 30px;
    min-width: 560px;
}

.department-list.active {
    display: flex;
}

.dept-item {
    padding: 10px 5px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--mainColor);
    width: calc(25% - 24px);
    text-align: center;
}

.dept-item.more {
    background-color: var(--mainColor);
}

.dept-item.more a {
    color: #fff;
}

.dept-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dept-item:hover {
    background: var(--mainColor);
}

.dept-item:hover a {
    color: #fff;
}

.tab-btn.active {
    background: var(--mainColor); /* 激活状态的按钮样式 */
    color: white;
}

.news-image{
    width: 340px;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;

    object-fit: cover;
}
.swiper-news img{
    height: 400px;
    object-fit: cover;
}
.swiper-news p {
    position: absolute;
    text-align: left;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0px;
    color: #fff;
    width: 100%;
    padding: 5px 10px;
    transition: all 0.5s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-pagination-news{
    text-align: right !important;
}

.hide_wechat_box{
    display: none;
    opacity: 1;
    position: absolute;
    right: 78px;
    padding: 10px;
    padding-right: 15px;
    top: -10px;
    z-index: 999;
    width: 225px;
}


.hide_contact_box{
    display: none;
    opacity: 1;
    position: absolute;
    right: 78px;
    padding: 10px;
    padding-right: 15px;
    top: 90px;
    z-index: 999;
    width: 250px;
}

.hb {
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px 20px;
    border-top: 2px solid #0085cd;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.hb img{
    height: 150px;
}