/* CSS变量定义，方便主题颜色和尺寸统一管理 */
:root {
    --primary-color: #3E6A85;
    --secondary-color: #446E88;
    --text-color: #3b3b3b;
    --light-text: #878888;
    --background-light: #F1F4F3;
    --background-dark: #3C3C3C;
    --accent-color: #fcc476;
    --container-width: 1400px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

/* 基础样式重置已在reset.css中定义，这里只添加必要的全局样式 */
* {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    /* 渐进式加载效果 */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img.loading {
    opacity: 0;
}

/* 链接样式 */
a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.9;
}

/* 头部样式 */
.header {
    background: url(../img/topbg.png) no-repeat center;
    background-size: cover;
    padding: 20px 0;
}

.header img {
    width: 85%;
}

.header .title_img,
.header .desc_img {
    margin: 0 auto;
    text-align: center;
}

.header .title_img {
    width: 45%;
    padding-top: 1.5%;
}

.header .desc_img {
    width: 33%;
    padding-bottom: 42px;
}

/* 通用容器样式 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 通用标题样式 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 110px;
}

/* 仁心仁术跨越山海板块 */
.clinic .title {
    margin: 0 auto;
    width: 100%;
    max-width: var(--container-width);
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clinic .title .left img {
    height: 100%;
}

.clinic .title .right {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

.clinic .title .right a {
    font-size: 12px;
    color: #fff;
    display: inline-block;
    padding: 2px 8px;
    transition: var(--transition);
}

.clinic .title .right a:hover {
    transform: scale(1.05);
}

/* 轮播标题样式 */
.clinic .swiper_title {
    margin: 0 auto;
    margin-top: 20px;
    width: 100%;
    max-width: var(--container-width);
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clinic .swiper_title .swiper_title_left img {
    /* height: 100%; */
}

.clinic .swiper_title .swiper_title_right {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

.clinic .swiper_title .swiper_title_right a {
    font-size: 12px;
    color: #fff;
    display: inline-block;
    padding: 2px 8px;
    transition: var(--transition);
}

.clinic .swiper_title .swiper_title_right a:hover {
    transform: scale(1.05);
}

.clinic .main {
    background: url(../img/bg.jpg) no-repeat center top;
    background-position-y: 186px;
    min-height: 1100px;
    height: auto;
}

.clinic .main .left {
    position: absolute;
    top: 10px;
}

.clinic .main .clinic_desc {
    background-color: var(--background-light);
}

.clinic .main .clinic_desc .clinic_desc_wrap {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 0;
}

.clinic .main .clinic_desc .clinic_desc_wrap .clinic_left {
    position: absolute;
    top: 30px;
    left: -90px;
    z-index: 1;
}

.clinic .main .clinic_desc .clinic_desc_wrap .clinic_left img {
    height: auto;
    max-height: 1020px;
}
.clinic .main .clinic_desc .clinic_desc_wrap .desc_img{
    height: 160px;
    width: auto;
}

.clinic .main .wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.clinic .main .wrap .top {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.clinic .main .wrap .top .video {
    flex: 1;
    min-width: 300px;
    height: 587px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic .main .wrap .top .video video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.clinic .main .wrap .top .text {
    flex-shrink: 0;
    margin-top: 210px;
    margin-left: 25px;
}

.clinic .main .wrap .bottom ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.clinic .main .wrap .bottom ul li {
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.clinic .main .wrap .bottom ul li:hover {
    transform: translateY(-5px);
}

.clinic .main .wrap .bottom ul img {
    width: 336px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.clinic .main .wrap .bottom ul img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.clinic .main2{
    height: 710px;
    margin-top: 45px;
    background-color: #E6F1F5;
}
.clinic .main2 a{
    display: block;
    width: var(--container-width);
    margin: 0 auto;
}
.clinic .main2 .container{
    width: var(--container-width);
    margin: 0 auto;
    background: url(../img/content.png) no-repeat;
    height: 700px;
}
/* 轮播区域样式 */
.clinic .clinic_swiper {
    margin-top: 30px;
    padding: 20px 0;
    background: url(../img/bg2.jpg) no-repeat center top;
    background-size: 2000px 580px;
    min-height: 360px;
}

.clinic .clinic_swiper .swiper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 365px;
    margin-top: -56px;
}

.clinic .clinic_swiper .swiper .swiper_sliide {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    height: 100%;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_img {
    flex: 1;
    min-width: 700px;
    position: relative;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_img .triangle {
    width: 0;
    height: 0;
    border-right: 37px solid transparent;
    border-bottom: 37px solid #3c3c3c;
    position: absolute;
    right: -37px;
    top: 0;
    z-index: 100;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_img img {
    width: 700px;
    height: 365px;
    object-fit: cover;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content {
    flex: 1;
    min-width: 300px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_title {
    margin-top: 50px;
    margin-bottom: 20px;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_title a {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_title a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_summary {
    text-align: justify;
    width: 570px;
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_summary a {
    color: var(--light-text);
    font-size: 14px;
    display: inline-block;
    transition: var(--transition);
}

.clinic .clinic_swiper .swiper .swiper_sliide .article_content .article_summary a:hover {
    color: var(--text-color);
}

/* 神奇诊室板块 */
.china_doctor {
    background-color: #fff;
    padding: 30px 0;
    min-height: 730px;
}

.china_doctor .wrap {
    display: flex;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
    gap: 30px;
}

.china_doctor .wrap .left {
    position: absolute;
    top: 135px;
    left: -100px;
    z-index: 1;
}

.china_doctor .wrap .left img {
    height: 498px;
}

.china_doctor .wrap .center {
    width: 100%;
    margin-top: 30px;
}

.china_doctor .wrap .center .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.china_doctor .wrap .center .top .title img {
    max-width: 100%;
    height: auto;
}

.china_doctor .wrap .center .top .more a {
    background-color: #406985;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: var(--border-radius);
    display: inline-block;
    transition: var(--transition);
}

.china_doctor .wrap .center .top .more a:hover {
    transform: scale(1.05);
}

.china_doctor .wrap .center .bottom {
    margin-top: 30px;
}

.china_doctor .wrap .center .bottom ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.china_doctor .wrap .center .bottom ul li {
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.china_doctor .wrap .center .bottom ul li:hover {
    transform: translateY(-5px);
}

.china_doctor .wrap .center .bottom ul img {
    width: 323px;
    height: 580px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    transform-origin: center center;
}

.china_doctor .wrap .center .bottom ul li a img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 援柬日记板块 */
.aid {
    background: #3E6A85;
    padding: 30px 0 60px;
}

.aid .wrap {
    display: flex;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
    gap: 30px;
}

.aid .wrap .left {
    position: absolute;
    left: -90px;
    top: 145px;
    z-index: 1;
}

.aid .wrap .left img {
    height: 707px;
}

.aid .wrap .center {
    width: 100%;
}

.aid .wrap .center .top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.aid .wrap .center .top .more {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    margin-top: 50px;
}

.aid .wrap .center .top .more a {
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 8px;
    display: inline-block;
    transition: var(--transition);
}

.aid .wrap .center .top .more a:hover {
    transform: scale(1.05);
}

.aid .wrap .center .bottom {
    height: 707px;
    background: url(../img/bg2.png) no-repeat center;
    background-size: cover;
    margin-top: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aid .wrap .center .bottom #slideBox {
    width: 900px;
    height: 580px;
    margin-left: -40px;
    position: relative;
    top: -55px;
}

.aid .wrap .center .bottom #slideBox .btns {
    position: absolute;
    bottom: -80px;
    left: 305px;
    display: flex;
    width: 300px;
    justify-content: space-between;
}

.aid .wrap .center .bottom #slideBox .btns a {
    display: block;
    width: 130px;
    height: 36px;
    background: url(../img/prev.png) no-repeat center;
    text-align: center;
    line-height: 36px;
    font-size: 26px;
    color: #FFFFFF;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.aid .wrap .center .bottom #slideBox .btns a:hover {
    transform: scale(1.05);
}

.aid .wrap .center .bottom #slideBox .btns .prev:hover{
    background: url(../img/prev_on.png) no-repeat center;
}

.aid .wrap .center .bottom #slideBox .btns .next:hover{
    background: url(../img/next_on.png) no-repeat center;
}

.aid .wrap .center .bottom #slideBox .btns .next {
    background: url(../img/next.png) no-repeat center;
}

.aid .wrap .center .bottom .slideBox .bd .img {
    width: 320px;
    height: 200px;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    margin: 0 auto 30px;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
}

/* 特殊字体加载 */
@font-face {
    font-family: 'FZZJ-GBWKJW';
    src: url('../FZZJ-GBWKJW.TTF') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

.aid .wrap .center .bottom .slideBox .bd .title {
    padding-top: 20px;
    font-size: 35px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    font-family: "FZZJ-GBWKJW", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #5A7E96;
    margin-bottom: 20px;
}

.aid .wrap .center .bottom .slideBox .bd .desc {
    text-align: justify;
    letter-spacing: 1.5px;
    font-size: 18px;
    width: 800px;
    margin: 0 auto;
    font-family: "FZZJ-GBWKJW", "Microsoft YaHei", "微软雅黑", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 15px;
}

.aid .wrap .center .bottom .slideBox .bd .desc a {
    color: #151515;
    transition: var(--transition);
}

.aid .wrap .center .bottom .slideBox .bd .desc a:hover {
    color: var(--primary-color);
}

/* 内容组件样式 */
.TContentCms h1:first-of-type {
    display: none;
}

.TContentCms {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 24px;
    background: #fff;
    height: 510px;
    overflow-y: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条 */
.TContentCms::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

.TContentCms::-webkit-scrollbar-track {
    background-color: #e0e0e0;
    border-radius: 8px;
}

.TContentCms::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 8px;
    border: 3px solid #e0e0e0;
}

.TContentCms::-webkit-scrollbar-thumb:hover {
    background-color: #e6b25e;
}

.TContentCms p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 36px;
    margin: 10px 0;
    text-align: justify;
    text-justify: inter-ideograph;
    text-indent: 2em;
}

.TContentCms .h-video {
    display: block;
    margin: 8px auto;
    min-height: 320px;
    max-height: 500px;
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
}

.TContentCms img[data-body-tag] {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: var(--background-dark);
    padding: 30px 0;
    color: #D5D5D5;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin: 8px 0;
    line-height: 1.8;
}

/* 动画效果优化 */
.tilt-in-top-1 {
    animation: tilt-in-top-1 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    /* 使用GPU加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.flip-in-diag-1-tr {
    animation: flip-in-diag-1-tr 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 200ms both;
    /* 使用GPU加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 优化后的动画关键帧 */
@keyframes tilt-in-top-1 {
    0% {
        transform: rotateY(30deg) translateY(-300px) skewY(-30deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0) translateY(0) skewY(0);
        opacity: 1;
    }
}

@keyframes flip-in-diag-1-tr {
    0% {
        transform: rotate3d(1, 1, 0, -80deg);
        opacity: 0;
    }
    100% {
        transform: rotate3d(1, 1, 0, 0deg);
        opacity: 1;
    }
}

/* 文章样式增强 */
.title_style {
    font-size: 22px !important;
    letter-spacing: 2px;
    font-weight: bold;
    line-height: 1.4;
}

.desc_style {
    font-size: 15px !important;
    line-height: 28px;
    letter-spacing: 1px;
    text-align: justify;
}