


/*banner*/
.banner-box {
    height: 710px;
    position: relative;
}
/* 轮播新增样式 */
.banner-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.swiper-wrap {
    width: 100%;
    height: 630px;
    display: flex;
    transition: transform 0.6s ease;
}
.swiper-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}
.swiper-item img {
    height: 630px;
    width: 100%;
    object-fit: cover;
    /* 关键：图片主体内容水平居中 */
    object-position: 50% top;
}
/* 轮播小圆点 */
.swiper-dots {
    position: absolute;
    bottom: clamp(100px, 16vw, 180px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap:12px;
    z-index:3;
}
.swiper-dots span{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,0.4);
    cursor:pointer;
}
.swiper-dots span.active{
    background:#fff;
}

.banner-click-layer{
     position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:1;
    cursor:pointer;
    display:block;
}
.bottom-nav{
    display:flex;
    max-width:1280px;
    width: 92%;
    height: 156px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    justify-content: space-around;
    background: #FFFFFF;
    box-shadow: 0px 6px 18px 0px rgba(0,0,0,0.1);
    border-radius: 0px 0px 0px 0px;
    padding-top: 25px;
    z-index:2;
}
.nav-itemgh{
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
    position: relative;
}
.nav-itemgh:not(:last-child)::after{
    content: "";
    position: absolute;
    left: 100%;
    top: 45%;
    transform: translateY(-50%);
    margin-left: 50%;
    width: 1px;
    height: 90px;
    background-color: #EBE8E8;
}
.nav-itemgh a{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration: none;
}
.icon-wrap{
    width:64px;
    height:64px;
    position:relative;
}
.icon-wrap img{
    width:64px;
    height:64px;
    position:absolute;
    left:0;
    top:0;
}
.img-default{
    display:block;
}
.img-hover{
    display:none;
}
.nav-itemgh span{
    font-size:20px;
    color:#333333;
    transition: color 0.2s;
    margin-top:8px;
}
@keyframes shakeRotate {
    0%{transform:rotate(0deg)}
    25%{transform:rotate(5deg)}
    50%{transform:rotate(-5deg)}
    75%{transform:rotate(5deg)}
    100%{transform:rotate(-5deg)}
}
.shake-action{
    animation: shakeRotate 0.5s ease-out;
}
.nav-itemgh:hover span{
    color:#B73035;
}
.nav-itemgh:hover .img-default{
    display: none;
}
.nav-itemgh:hover .img-hover{
    display: block;
}
.nav-itemgh.active-red span{
    color:#B73035;
}
.nav-itemgh.active-red .img-default{
    display: none;
}
.nav-itemgh.active-red .img-hover{
    display: block;
}




/*新闻动态*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    padding-top: 30px;
    align-items: stretch;
}
.left-wrap {
    flex: 2;
    padding-right:40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.right-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.media-list {
flex: 1;
}
.tab-header {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.tab-item {
font-size: 22px;
padding: 3px 0;
cursor: pointer;
color: #333333;
position: relative;
margin-right: 30px;
}
.tab-item.active {
color: #004EA2;
font-weight: bold;
font-size: 26px;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
width: 60%;
height: 3px;
background-color: #0066cc;
border-radius: 2px;
}
.tab-more {
margin-left: auto;
font-size: 16px;
color: #666;
cursor: pointer;
}
.tab-more:hover{
    color: #004EA2;
}
.tab-content-box {
display: none;
}
.tab-content-box.active {
display: block;
}
.img-row {
display: flex;
margin-bottom: 10px;
}
.img-card {
flex: 1;
position: relative;
overflow: hidden;
border-radius: 2px;
}
.img-card + .img-card{
    margin-left:15px;
}
.img-card img {
width: 100%;
height: 220px;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}
.img-card:hover img {
transform: scale(1.08);
}
.img-desc {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
background: rgba(0,0,0,0.2);
color: #fff;
font-size: 16px;
text-align: center;
}
.news-item {
display: flex;
align-items: center;
padding: 11px 10px;
transition: all 0.25s ease;
position: relative;
border-bottom: 1px dashed #EAEAEA;
margin-top: 3px;
}
.news-item:hover::before {
content: "";
position: absolute;
left: 0;
top: 15px;
bottom: 15px;
width: 3px;
background-color: #004EA2;
border-radius: 2px;
}
.news-date {
width: 60px;
text-align: center;
margin-right: 15px;
}
.news-date .day {
font-size: 26px;
color: #666666;
font-weight: bold;
line-height: 1;
}
.news-item:hover .news-date .day{
color: #004EA2;
}
.news-date .ym {
font-size: 14px;
color: #666666;
margin-top: 5px;
}
.news-item:hover .news-date .ym{
color: #004EA2;
}
.news-title {
flex: 1;
font-size: 18px;
line-height: 1.8;
color: #333333;
}
.news-title a {
color: #333333;
text-decoration: none;
transition: color 0.2s;
}
.news-title a.blue {
color: #004EA2;
}
.news-item:hover .news-title a {
color: #004EA2;
}
.right-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 23px;
}
.right-title {
font-size: 28px;
font-weight: bold;
color: #333;
}
.right-more {
font-size: 16px;
color: #666;
cursor: pointer;
}
.right-more:hover{
    color: #004EA2;
}
.media-item {
padding: 15px;
    margin-bottom: 35px;
    background: #FFFFFF;
    box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.18);
    border-radius: 0px 0px 0px 0px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    transform: translateX(0);
}
.media-item:hover {
    border-left-color: #004EA2;
    transform: translateX(4px);
    cursor: pointer;
}
.media-item:hover a{
    color: #004EA2;
}
.media-logo {
margin-bottom: 8px;
}
.media-logo img {
    width: 70px;
height: 30px;
}
.media-text {
font-size: 18px;
color: #333;
line-height: 1.6;
padding-top: 10px;
}


.x-banner{
    width: 1280px;
    height: 150px;
    margin: 0 auto;
    margin-top: 30px;
}





/******重点科室******/
.dept-wrap{
    padding-top:30px;
    background:#ffffff;
}
.container-inner{
    max-width: 1400px;
    margin:0 auto;
}
.dept-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}
.dept-title{
    font-size:38px;
    color:#0058b8;
    font-weight:bold;
    margin:0;
}
.more-dept{
    font-size:18px;
    color:#666;
    text-decoration:none;
}



/*医生团队*/
.doctor-team-wrap{
    padding:30px 0;
    background-color:#f0f5fc;
    margin-top: 20px;
}
.container-inner{
    max-width:1280px;
    margin:0 auto;
}
.team-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
.team-title{
    font-size:32px;
    color:#004EA2;
    font-weight:bold;
    margin:0;
}
.en-title{
    font-size:18px;
    color:#666666;
    font-weight:normal;
    margin-left:12px;
}
.more-doctor{
    font-size:18px;
    color:#333333;
    text-decoration:none;
}
.more-doctor:hover{
    color: #004EA2;
}

.carousel-box{
    position: relative;
    width:100%;
}
.arrow-btn{
    position:absolute;
    top:50%;
    transform: translateY(-50%);
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:#ffffff;
    color:#999;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 9;
    box-shadow:0 2px 8px rgba(0,0,0,0.12);
}

.arrow-btn::before{
    content: '';
    width:10px;
    height:10px;
    border:2px solid currentColor;
    border-top:0;
    border-right:0;
}

.left-arrow::before{
    transform: rotate(45deg);
}
.right-arrow::before{
    transform: rotate(-135deg);
}

.left-arrow{
    left:-60px;
}
.right-arrow{
    right:-60px;
}
.arrow-btn:hover{
    background:#D0E4FA;
    color:white;
}

.carousel-viewport{
    overflow:hidden;
    padding: 12px 12px;
    margin:0 -12px;
}
.carousel-track{
    display:flex;
    transition: transform 0.4s ease;
}
.doctor-card{
    width: calc((100% - (24px * 4)) / 5);
    flex-shrink: 0;
    background:#fff;
    box-shadow: none;
    border-radius: 0;
    background: #FFFFFF;
    padding: 0 10px;
}
.doctor-card + .doctor-card{
    margin-left:24px;
}
.doctor-card:hover{
    box-shadow: 0px 6px 18px 0px rgba(0,0,0,0.1);
    cursor: pointer;
}
.card-img{
    overflow:hidden;
}
.card-img img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    margin: 0 auto;
    margin-top: 10px;
}
@keyframes shakeX {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.doctor-card h3{
    text-align:center;
    font-size:22px;
    margin:16px 0 8px;
    color: #333333;
}
.doctor-card p{
    text-align:center;
    font-size:16px;
    color:#333333;
    line-height:1.6;
    padding:0 8px 20px;
}


/******名院名医*******/
.famous-doctor-wrap{
    background:#ffffff;
    padding-top: 30px;
}

.top-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}
.main-title{
    font-size:38px;
    color:#0058b8;
    font-weight:bold;
    margin:0;
}
.en-text{
    font-size:22px;
    color:#777777;
    font-weight:normal;
    margin-left:12px;
}
.more-link{
    font-size:18px;
    color:#666;
    text-decoration: none;
}
.grid-box{
    display:grid;
    grid-template-columns: repeat(4, 321px);
    justify-content: center;
    gap: 0;
}
.item-card{
    width: 321px;
    height: 260px;
    overflow:hidden;
    position:relative;
    cursor:pointer;
}
.card-bg{
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    transition: all 0.3s ease;
}
.item-card:hover .card-bg{
    transform: scale(1.08);
}
.text-wrap{
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#ffffff;
}
.text-wrap p{
    font-size:22px;
    text-align:center;
    margin:0 0 16px;
    line-height:1.6;
}
.line{
    width:60px;
    height:1px;
    background:#fff;
    display:block;
    transition:0.3s ease;
    margin-bottom:28px;
}
.item-card:hover .line{
    width:110px;
}
.detail-btn{
    border:1px solid #fff;
    padding:3px 32px;
    border-radius:30px;
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:0.3s;
}
.detail-btn:hover{
    background-color:rgba(255,255,255,0.25);
}

.item-card.text-black .text-wrap{
    color:#333333;
}
.item-card.text-black .line{
    background:#333333;
}
.item-card.text-black .detail-btn{
    border-color:#888888;
    color:#000000;
}
.item-card.text-black .detail-btn:hover{
    background-color:rgba(0,0,0,0.15);
}

.item-card:nth-child(1) .card-bg{background: url(../images/mingyuanpic1.png) no-repeat;}
.item-card:nth-child(2) .card-bg{background:url(../images/mingyuanpic2.png) no-repeat;}
.item-card:nth-child(3) .card-bg{background:url(../images/mingyuanpic3.png) no-repeat;}
.item-card:nth-child(4) .card-bg{background:url(../images/mingyuanpic4.png) no-repeat;}
.item-card:nth-child(5) .card-bg{background:url(../images/mingyuanpic5.png) no-repeat;}
.item-card:nth-child(6) .card-bg{background:url(../images/mingyuanpic6.png) no-repeat;}
.item-card:nth-child(7) .card-bg{background:url(../images/mingyuanpic7.png) no-repeat #2E70B6;}
.item-card:nth-child(8) .card-bg{background:url(../images/mingyuanpic8.png) no-repeat;}





/******名医问答*******/
.qa-wrap{
    padding-top:30px;
    background:#fff;
}
.qa-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}
.qa-title{
    font-size:38px;
    color:#0058b8;
    font-weight:bold;
    margin:0;
}
.en-qa{
    font-size:22px;
    color:#777;
    font-weight:normal;
    margin-left:12px;
}
.more-qa{
    font-size:18px;
    color:#666;
    text-decoration:none;
}

.tab-nav{
    display:flex;
    margin-bottom:20px;
    flex-wrap:wrap;
}
.disease-tab-item{
    padding:8px 25px;
    border:1px solid #ddd;
    font-size:18px;
    cursor:pointer;
    transition:0.25s;
    color: #333333;
    margin-right:12px;
    margin-bottom:12px;
}
.disease-tab-item.active{
    background-color:#004EA2;
    border-color:#004EA2;
    color:#ffffff;
}
.disease-tab-item:hover:not(.active){
    background:#f3f7fc;
}

.tab-panel{
    display:none;
}
.tab-panel.active{
    display:block;
}
.qa-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}
.qa-card{
    background:#F7F7F7;
    padding:24px;
    border-radius:4px;
    margin-bottom:24px;
}
.qa-card:nth-child(3n+1){margin-right:12px;}
.qa-card:nth-child(3n+2){margin:0 12px 24px;}
.qa-card:nth-child(3n+3){margin-left:12px;}
.q-text{
    font-size:18px;
    margin:0 0 12px;
    display:flex;
    align-items:flex-start;
    color: #333333;
}
.q-text a:hover{
    color: #004EA2;
}
.a-text{
    font-size:16px;
    color:#666666;
    margin:0;
    line-height:1.6;
    display:flex;
    align-items:flex-start;
}
.a-text a:hover{
    color: #004EA2;
}
.q-icon{
    background:url(../images/wen.png) no-repeat;
    color:#fff;
    width:20px;
    height:20px;
    border-radius:4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right:8px;
    flex-shrink:0;
    font-size:14px;
    margin-top: 3px;
}
.a-icon{
    background:url(../images/da.png) no-repeat;
    color:#fff;
    width:20px;
    height:20px;
    border-radius:4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right:8px;
    flex-shrink:0;
    font-size:14px;
    margin-top: 3px;
}



