:root {
    /* 将颜色拆分为RGB数值，方便后续设置透明度 */
    --primary-rgb: 0, 115, 125;
    --primary-color: rgb(var(--primary-rgb));
    /*上下间距*/
    --vertical-spacing: 1rem;
    /*左右间距*/
    --horizontal-spacing: 1.2rem;
    /*border-radius*/
    --border-radius: 0.4rem;
    /*a color*/
    --link-color: #444;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
form,
label,
legend,
caption,
input {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    vertical-align: baseline;
    outline: none;
    box-sizing: border-box
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 62.5%;
}

div {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #444;
}

ol,
ul,
li {
    list-style: none
}

caption,
th,
td {
    font-weight: normal
}

img {
    border: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: ""
}

blockquote,
q {
    quotes: "" ""
}

body {
    color: #666;
    background-color: #fff;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.warp {
    width: 100%;
    max-width: 640px;
    min-width: 320px;
    margin: 0 auto;
    overflow: hidden;
}

/*header*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--vertical-spacing) var(--horizontal-spacing) 0;
    position: relative;
    z-index: 10000;
    background-color: #fff;
}

.header>.logo {
    font-size: 0;
    color: var(--primary-color);
}

.header>.logo img {
    height: 6.2rem;
    width: auto;
}

.header .icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.header .icon.active {
    transform: rotate(90deg);
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right>.icon:first-child {
    margin-right: 1rem;
}

/*search*/
.search-box {
    display: none;
    margin: var(--vertical-spacing) var(--horizontal-spacing) 0;
}

.search-box form {
    display: flex;
    height: 3.6rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #fff;
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 0 1rem;
    font-size: 1.6rem;
    color: #333;
    height: 100%;
}

.search-box button {
    width: 6rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.search-box button .icon {
    font-size: 2.6rem;
    color: #fff;
}

/*header swiper*/
.header-swiper {
    margin-top: var(--vertical-spacing);
    padding: 0 var(--horizontal-spacing);
    height: 120px;
}

/*swiper*/
.swiper {
    height: 100%;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.warp .swiper-pagination-bullet {
    width: 1.1rem;
    height: 1.1rem;
    background: #fff;
    opacity: .8;
}

.warp .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/*通知公告 Content*/
.news-list-swiper {
    padding: var(--vertical-spacing) var(--horizontal-spacing);
    background: url(../img/bg1.png) no-repeat right bottom;
}

/*通知公告 Tabs*/
.news-tab {
    display: flex;
    position: relative;
    margin-bottom: var(--vertical-spacing);
    justify-content: center;
}

.news-tab .more {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #999;
}

.news-tab-item {
    padding: 1rem;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #666;
    transition: color 0.3s;
}

.news-tab-item.active {
    color: var(--primary-color);
}

.news-tab-bar {
    position: absolute;
    bottom: .1rem;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.news-list>li {
    display: flex;
    align-items: center;
    margin-top: var(--vertical-spacing);
}

.news-list>li>span {
    padding: 5px;
    margin-right: .8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    color: #8f8d8d;
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.news-list>li>span>i {
    font-size: 2.4rem;
    font-style: normal;
}

.news-list>li>a {
    font-size: 1.6rem;
    color: var(--link-color);
}

.news-list-swiper .swiper-pagination-bullet {
    background: #d6d6d6;
    opacity: 1;
}

.news-list-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 查看更多 */
.news-more {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.news-more a {
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    color: #999;
    font-size: 1.6rem;
    color: var(--primary-color);
}

/*department-swiper*/
.department-swiper {
    position: relative;
    margin-top: var(--vertical-spacing);
    height: 260px;
    padding: 40px 30px 3px;
    background: url(../img/bg2.png) no-repeat right bottom;
    background-size: cover;
}

.department-swiper .swiper {
    margin-right: 1px;
    overflow: hidden;
    color: #fff;
}

.department-swiper .opacity-bg {
    position: absolute;
    top: 25px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 65px);
    background-color: rgba(var(--primary-rgb), .75);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
    padding: 1.5rem;
    overflow: hidden;
}

.department-swiper h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 1.5rem;
    letter-spacing: 1px;
}

.department-swiper .dept-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.department-swiper img {
    width: 120px;
    height: 114px;
    display: block;
    border-radius: var(--border-radius);
}

.department-swiper .dept-content a {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: left;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*quick*/
.quick {
    display: flex;
    flex-wrap: wrap;
    margin-top: var(--horizontal-spacing);
    padding: var(--horizontal-spacing) var(--vertical-spacing);
}

.quick>a {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.quick .icon {
    font-size: 4rem;
    display: block;
}

/*expert-swiper*/
.expert-swiper {
    margin-top: var(--vertical-spacing);
    padding: var(--vertical-spacing) var(--horizontal-spacing);
    background: url(../img/bg3.png) no-repeat center;
    background-size: cover;
    height: 290px;
    display: flex;
    flex-direction: column;
}

h3.title1 {
    margin-bottom: var(--horizontal-spacing);
}

h3.title1 a {
    display: inline-block;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.expert-swiper .swiper {
    flex: 1;
    height: auto;
    min-height: 0;
    width: 100%;
}

.expert-swiper .swiper-slide {
    text-align: center;
}

.expert-swiper .swiper-slide img {
    width: 100%;
    height: 170px;
    border-radius: var(--border-radius);
    object-fit: cover;
    /* 保持比例填充，多余部分裁剪 */
    object-position: top;
    /* 图片内容顶部对齐，防止切掉头部 */
}

.expert-swiper .swiper-slide>a {
    font-size: 1.6rem;
    color: #444;
    display: block;
}

/*eduwork*/
.eduwork {
    margin-top: var(--vertical-spacing);
    padding: var(--horizontal-spacing);
    background: url(../img/bg4.png) no-repeat right bottom;
}

.list-pic-txt li.list-txt>a {
    align-items: center;
}

.list-pic-txt li.list-txt>a::before {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #cdcdcd;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.list-pic-txt li {
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.list-pic-txt li img {
    margin-right: 1rem;
    border-radius: 5px;
}

.list-pic-txt li>a {
    display: flex;
    align-items: stretch;
}

.list-pic-txt li a>p {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1.6rem;
}

.list-pic-txt li a>p>span {
    display: block;
    margin-top: 10px;
    font-size: 1.4rem;
    color: #999;
}


.list-pic-txt li a>p>b {
    font-weight: normal;
}

.list-pic-txt li a>p>b>em {
    color: red;
    font-style: normal;
}

/*devices-swiper*/
.devices-swiper {
    margin-top: var(--vertical-spacing);
    padding: var(--vertical-spacing) var(--horizontal-spacing);
    background: url(../img/bg5.png) no-repeat right bottom;
    background-size: cover;
}

.devices-swiper h3.title1 {
    margin: var(--vertical-spacing) 0 var(--horizontal-spacing);
}

.devices-swiper .swiper {
    padding-bottom: 4rem;
}

.devices-swiper .swiper-slide {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.devices-swiper .swiper-slide img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
}

.devices-swiper .swiper-slide span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--primary-rgb), .8);
    color: #fff;
    text-align: center;
    padding: .8rem 0;
    font-size: 1.5rem;
}

/*nursing*/
.nursing {
    margin-top: var(--vertical-spacing);
    padding: var(--horizontal-spacing) var(--horizontal-spacing) 0;
    background: url(../img/bg6.png) no-repeat right top;
}

/*environment*/
.environment-swiper {
    margin-top: var(--vertical-spacing);
    padding: var(--horizontal-spacing);
}

.environment-swiper h3.title1 {
    margin-bottom: var(--horizontal-spacing);
}

.environment-swiper .swiper {
    padding-bottom: 3.5rem;
}

.environment-swiper .swiper-slide a {
    display: block;
    width: 100%;
}

.environment-swiper .swiper-slide img {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    display: block;
}

.environment-swiper .swiper-pagination-bullet {
    background: #d6d6d6;
    opacity: 1;
}

.environment-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/*careers*/
.careers {
    padding: 0 var(--horizontal-spacing);
    background: url(../img/bg7.png) no-repeat center center;
    background-size: cover;
}

/*infrastructure*/
.infrastructure {
    padding: var(--horizontal-spacing);
    background: url(../img/bg8.png) no-repeat right bottom;
}

/*qrcode*/
.qrcode {
    width: 100%;
    min-height: 210px;
    background: url(../img/bg9.png) no-repeat center bottom;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.qrcode>div {
    display: flex;
    flex-direction: column;
}

.qrcode>div>img {
    width: 10rem;
    height: 10rem;
    display: block;
    border-radius: var(--border-radius) 0;
}

.qrcode>div>span {
    width: 100%;
    padding: .6rem 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background-color: rgba(var(--primary-rgb), .75);
    text-align: center;
    color: #fff;
}

/*footer*/
.footer {
    padding: 3rem var(--horizontal-spacing) 0;
    background: url(../img/bg10.svg) repeat-x left top, url(../img/bg11.png) repeat;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

.footer p {
    margin-top: .8rem;
}

.footer img {
    height: 60px;
}

.footer a, .footer strong {
    color: rgba(255, 255, 255, .6);
}

#toTop {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    border-radius: 50%;
    z-index: 1000;
    color: var(--primary-color);
    display: none;
}

#toTop.on-footer svg {
    fill: #fff;
}

#toTop svg {
    width: 3.5rem;
    height: 3.5rem;
    fill: var(--primary-color);
    transition: fill 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 8rem;
    /* 从 Header 下方开始，Header 高度约为 8rem */
    right: -100%;
    width: 100%;
    height: calc(100% - 8rem);
    /* 高度减去 top 的偏移 */
    background-color: var(--primary-color);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 1rem;
    /* 增加内容与顶部的内边距 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 可选：增加一条顶部分割线 */
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list>li>a {
    display: flex;
    align-items: center;
    padding: 1.2rem 3rem;
    color: #fff;
    font-size: 1.6rem;
}

.mobile-menu-list>li>a.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.mobile-menu-list>li>a .icon {
    margin-right: 2rem;
    font-size: 1.8rem;
    color: #fff;
}

.mobile-menu-list .submenu {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-list .submenu li a {
    display: block;
    padding: 1.3rem 7rem;
    color: #fff;
    font-size: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list .submenu li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.mobile-menu-footer {
    padding: 2rem;
    text-align: center;
}

.mobile-menu-footer .qr-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mobile-menu-footer .qr-item {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu-footer .qr-item img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: block;
}

.mobile-menu-footer .banner {
    background: #fff;
    border-radius: 4px;
    padding: 0.5rem;
    display: inline-block;
}

.mobile-menu-footer .banner img {
    display: block;
}

/*sub-list*/
.sub-list {
    margin-top: var(--horizontal-spacing);
    padding: var(--horizontal-spacing);
}

/*page*/
.page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.page a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid #cacaca;
    border-radius: var(--border-radius);
    background-color: #fff;
    color: #666;
    font-size: 1.6rem;
    transition: all 0.3s;
}

.page a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page .prev,
.page .next {
    width: 6rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page .prev .icon {
    transform: rotate(180deg);
}

.page .disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
    pointer-events: none;
}

/*sub-view*/
.sub-view {
    padding: var(--horizontal-spacing);
    margin-top: var(--vertical-spacing);
    background-color: #f8f8f8;
}

.sub-view .title2 {
    font-size: 2rem;
    color: #222;
    line-height: 1.4;
    margin: 1rem 0 1.2rem;
    font-weight: bold;
    text-align: center;
}

.sub-view .article-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: #666;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e2e2;
}

.sub-view .article-info span {
    margin-right: 1.5rem;
}

.sub-view .article-content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #2b2b2b;
    
}

.sub-view .article-content p {
    margin-bottom: 1.5rem;
}

.sub-view .article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.article-content a {
    color: var(--primary-color);
}

.article-content h1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin: 2rem 0 1rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 1.8rem 0 1rem;
}

.article-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
}

.article-content h4 {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 1.2rem 0 1rem;
}
/*list-pic*/
.list-pic {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.list-pic li {
    width: 48%;
    margin-bottom: 2rem;
}

.list-pic li a {
    display: block;
}

.list-pic .img-box {
    width: 100%;
    height: 11rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.list-pic .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-pic p {
    margin-top: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/*list-zjjs*/
.list-zjjs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.list-zjjs li {
    width: 48%;
    margin-bottom: 2rem;
}

.list-zjjs li a {
    display: block;
}

.list-zjjs .img-box {
    width: 100%;
    height: 22rem; /* 调整高度以适应竖图 */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.list-zjjs .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* 确保人像头部不被裁剪 */
}

.list-zjjs p {
    margin-top: 0.8rem;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
    font-weight: bold;
}

/*list-vod*/
.list-vod {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.list-vod li {
    width: 48%;
    margin-bottom: 2rem;
}

.list-vod li a {
    display: block;
}

.list-vod .img-box {
    width: 100%;
    height: 11rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #f5f5f5;
    position: relative;
}

.list-vod .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-vod .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.list-vod .play-icon .icon {
    font-size: 1.6rem;
    margin-left: 0.2rem; /* 视觉修正 */
}

.list-vod p {
    margin-top: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Video Container */
.video-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}
