@charset "utf-8";

/* ===== Reset & Base (from swu.edu.cn) ===== */
.myxd * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    font-size: 100px;
    -webkit-text-size-adjust: 100%;
}

.myxd {
    body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
    pre, code, form, fieldset, legend, input, textarea,
    p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, menu, nav, section {
        margin: 0;
        padding: 0;
        border: 0;
    }
    background-color: #f5f5f5;

    :focus {
        outline: 0;
    }

    a {
        text-decoration: none;
        color: #333;
    }

    img {
        display: inline-block;
        padding: 0;
        border: none;
        max-width: 100%;
        max-height: 100%;
        vertical-align: middle;
    }

    img:not([src]), img[src=""] {
        opacity: 0;
    }

    ul, ol {
        list-style: none;
    }

    body {
        color: #333;
        position: relative;
        overflow-x: hidden;
        font-size: .16rem;
        font-family: Arial, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    }

    /* ===== Utility classes ===== */

    .w {
        max-width: 14.4rem;
    }

    .flex {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .flexc {
        align-items: center;
    }

    .pore {
        position: relative;
    }

    .overhide {
        overflow: hidden;
    }

    .line2 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ave {
        font-family: "AvenirNext-Bold", Arial, sans-serif;
    }

    .geo {
        font-family: Georgia, serif;
    }

    /* ===== Responsive font-size (rem-based) ===== */
    @media (max-width: 1024px) {
        html {
            font-size: 90px !important;
        }
    }
    @media (max-width: 900px) {
        html {
            font-size: 85px !important;
        }
    }
    @media (max-width: 750px) {
        html {
            font-size: 80px !important;
        }
    }
    @media (max-width: 540px) {
        html {
            font-size: 75px !important;
        }
    }
    @media (max-width: 360px) {
        html {
            font-size: 70px !important;
        }
    }

    /* ===== Section title: intit ===== */

    .intit {
        text-align: center;
        margin-bottom: .3rem;
    }

    .intit .h4 .en {
        text-transform: uppercase;
        font-size: .6rem;
        line-height: 1em;
        background: linear-gradient(to bottom, rgba(0, 66, 142, 0.1), rgba(255, 255, 255, 0));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .intit .h4 .cn {
        font-size: .4rem;
        color: #094c96;
        font-weight: bold;
    }

    .intit .h4 .line {
        width: .4rem;
        height: 4px;
        overflow: hidden;
        position: relative;
        display: block;
        margin-bottom: .05rem;
        margin-top: -.4rem;
        margin-left: auto;
        margin-right: auto;
    }

    .intit .h4 .line:after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        background: #094c96;
        transform: skewX(30deg);
        transform-origin: right bottom;
    }

    .intit .h4 .line.l {
        margin-left: 0;
    }

    /* White variant (for dark backgrounds) */

    .intit .h4 .line:after {
        background: #fff;
    }

    .intit .h4 .en {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .intit .h4 .cn {
        color: #fff;
        text-align: left;
    }

    /* ===== More button ===== */

    .more svg {
        height: .39rem;
    }

    .more a {
        display: block;
        position: relative;
    }

    .more span {
        display: block;
        border: 1px solid #fff;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .more .cls-1, .more .cls-2 {
        fill: none;
        stroke: rgba(255, 255, 255, .7);
        stroke-width: 1;
        transition: stroke .3s;
    }

    .more.w a {
        color: rgba(255, 255, 255, .8);
    }

    .more.w .cls-1, .more.w .cls-2 {
        stroke: rgba(255, 255, 255, .7);
    }

    .more.w a:hover .cls-1, .more.w a:hover .cls-2 {
        stroke: #fff;
    }

    /* ===== homeb: Media section container ===== */

    .homeb {
        background: url(../images/index/bg1.png) no-repeat center;
        background-size: 100% 100%;
        min-height: 8.16rem;
        position: relative;
        z-index: 2;
        padding-top: .85rem;
        color: #fff;
    }

    .homeb a {
        color: #fff;
    }

    /* Left column (notifications list) - not used in this standalone but kept */

    .homeb .left {
        padding-top: .3rem;
        width: 6.2rem;
    }

    .homeb .left .list li {
        padding: .18rem 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }

    .homeb .left .list li:last-child {
        border-bottom: 1px dashed rgba(255, 255, 255, .2);
    }

    .homeb .left .list li .h4 {
        font-size: .2rem;
        line-height: 1.4em;
    }

    .homeb .left .list li .time {
        color: rgba(255, 255, 255, .5);
        margin-top: .05rem;
    }

    /* Right column (swiper) */

    .homeb .right {
        width: 6.2rem;
        padding-top: .3rem;
    }

    .homeb .right .intit {
        margin-bottom: .5rem;
    }

    /* ===== Swiper: slide-b ===== */

    .homeb .slide-b {
        width: 7rem;
    }

    .homeb .slide-b .swiper-slide {
        width: 6rem;
    }

    .homeb .slide-b .swiper-slide .img {
        height: 4rem;
        border-radius: .1rem;
    }

    /* Card image area */

    .homeb .right .item .slog {
        position: absolute;
        color: #fff;
        right: .2rem;
        bottom: .2rem;
        z-index: 5;
        font-size: .18rem;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    /* Card text area */

    .homeb .right .item .txt {
        padding: .2rem 0 0 1.45rem;
        position: relative;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 5;
    }

    .homeb .right .item .txt .h4 {
        font-size: .18rem;
        line-height: 1.6em;
    }

    /* Date badge */

    .homeb .right .item .time {
        width: .9rem;
        height: .9rem;
        background: #dcac7e;
        color: #fff;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: .1rem;
        left: .3rem;
        top: -.45rem;
        z-index: 5;
        position: absolute;
    }

    .homeb .right .item .time span {
        font-size: .32rem;
        font-weight: bold;
        display: block;
        width: 100%;
    }

    /* Active slide reveals text and slog */

    .homeb .right .swiper-slide-active .item .txt {
        opacity: 1;
        visibility: visible;
    }

    .homeb .right .swiper-slide-active .item .slog {
        opacity: 1;
        visibility: visible;
    }

    /* Image container */

    .homeb .right .item .img {
        position: relative;
        overflow: hidden;
        border-radius: .1rem;
    }

    .homeb .right .item .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .5s;
    }

    /* Zoom effect on mask overlay */

    .zoomImg {
        width: 100%;
        overflow: hidden;
        position: relative;
        display: block;
        background: #f2f2f2;
    }

    .zoomImg img {
        width: 100%;
        transition: .5s;
        height: 100%;
        object-fit: cover;
        position: relative;
        z-index: 1;
    }

    .zoomImg.mask:after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 40%;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(transparent, rgba(0, 0, 0, .5));
    }

    @media (min-width: 1025px) {
        .zoomImg:hover img {
            transform: scale(1.05);
        }

        a:hover .zoomImg img {
            transform: scale(1.05);
        }
    }

    /* ===== Navigation buttons ===== */

    .homeb .right .swiper-button-next,
    .homeb .right .swiper-button-prev {
        position: absolute;
        top: 45%;
        margin-top: 0;
        z-index: 8;
        width: auto;
        height: auto;
    }

    .homeb .right .swiper-button-next img,
    .homeb .right .swiper-button-prev img {
        height: .4rem;
        width: auto;
    }

    .homeb .right .swiper-button-prev {
        display: none;
        left: -0.2rem;
    }

    .homeb .right .swiper-button-next {
        display: none;
        right: -.4rem;
    }

    /* Override default Swiper button styles */
    .homeb .right .swiper-button-next:after,
    .homeb .right .swiper-button-prev:after {
        content: '';
        font-size: 0;
    }

    @media (min-width: 1025px) {
        .aniI:hover .aniIco {
            animation: beat 0.5s 1;
        }
    }
    @keyframes beat {
        0%, 100% {
            transform: scale(1, 1);
        }
        25% {
            transform: scale(.9, 1.1);
        }
        50% {
            transform: scale(1.1, .9);
        }
        75% {
            transform: scale(.95, 1.05);
        }
    }

    /* ===== Layout: wp flex ===== */

    .wp {
        max-width: 14.4rem;
        margin: 0 auto;
        width: 94%;
        display: flex;
        justify-content: space-between;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .grid-2 img {
        width: 200px;
    }

/* ===== 新媒体矩阵 Swiper 全局样式 ===== */
.media-swiper {
    overflow: hidden;
    padding-bottom: 40px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.media-swiper .swiper-wrapper {
    align-items: stretch;
}

.media-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.media-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.media-item div {
    font-size: 16px;
    color: #fff;
    line-height: 1.4;
    font-weight: 500;
}

.media-swiper .swiper-pagination {
    bottom: 0;
}

.media-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.media-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* ===== 新媒体矩阵 Swiper 移动端样式 ===== */
    .media-swiper {
        max-width: 100% !important;
        padding-bottom: 35px !important;
    }

    .media-item img {
        width: 100% !important;
        max-width: 160px !important;
    }

    .media-item div {
        font-size: 14px !important;
    }

    .media-swiper .swiper-pagination-bullet {
        width: 7px !important;
        height: 7px !important;
    }

    .flex-col {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .flex-row{
        display: flex;
        flex-direction: row;
    }
    .justify-between{
        justify-content: space-between;
    }

    /* ===== Deploy Structure Section ===== */

    .deploy-section {
        background: #fff;
        padding: .7rem 0 .8rem;
        margin: 0 auto;
    }

    .deploy-container {
        margin: 0 auto;
        max-width: 14.4rem;
        width: 94%;
    }

    .deploy-title {
        text-align: center;
        margin-bottom: .45rem;
    }

    .deploy-title-en {
        display: block;
        text-transform: uppercase;
        font-size: .5rem;
        line-height: 1em;
        font-family: "AvenirNext-Bold", Arial, sans-serif;
        background: linear-gradient(to bottom, rgba(9, 76, 150, 0.1), rgba(255, 255, 255, 0));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .deploy-title-line {
        display: block;
        width: .4rem;
        height: 4px;
        margin: .05rem auto;
        background: #094c96;
        transform: skewX(30deg);
        transform-origin: right bottom;
    }

    .deploy-title-cn {
        display: block;
        font-size: .36rem;
        color: #094c96;
        font-weight: bold;
    }

    .deploy-grid {
        display: flex;
        gap: .35rem;
        justify-content: space-between;
    }

    .deploy-group {
        flex: 1;
        background: #f8fafd;
        border-radius: .1rem;
        padding: .3rem;
        border: 1px solid #e8eef6;
    }

    .deploy-group-title {
        font-size: .22rem;
        font-weight: bold;
        color: #094c96;
        text-align: center;
        padding-bottom: .2rem;
        border-bottom: 2px solid #e0e8f2;
        position: relative;
    }

    .deploy-group-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: .5rem;
        height: 2px;
        background: #094c96;
    }
    .deploy-cards-swiper {
        overflow: hidden;
        padding-bottom: 20px !important;
        position: relative;
        margin-top: 16px;
    }
    .deploy-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .15rem;
    }

    .deploy-card {
        background: #fff;
        border-radius: .08rem;
        padding: .2rem .15rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .12rem;
        border: 1px solid #edf1f7;
        transition: box-shadow .3s, border-color .3s;
        cursor: pointer;
    }

    .deploy-card:hover {
        box-shadow: 0 .06rem .2rem rgba(9, 76, 150, 0.1);
        border-color: #c5d5ea;
    }

    .deploy-card-icon {
        width: .42rem;
        height: .42rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #e8f0fe, #d4e4fb);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .deploy-card-icon svg {
        width: .22rem;
        height: .22rem;
        color: #094c96;
    }

    .deploy-card span {
        font-size: .14rem;
        color: #444;
        text-align: center;
        line-height: 1.5em;
    }

    .deploy-card:hover span {
        color: #094c96;
    }
}

/* ===== Responsive: dynamic-section 移动端竖排布局（全局样式） ===== */
@media (max-width: 1024px) {
    .dynamic-section {
        flex-direction: column !important;
    }

    .dynamic-section .dynamic-box1,
    .dynamic-section .dynamic-box2 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .dynamic-section .dynamic-box1 .lecture-swiper-container {
        height: auto !important;
        min-height: 300px;
    }

    .dynamic-section .dynamic-box2 ul {
        height: auto !important;
        min-height: 300px;
    }
}

/* ===== 手机端隐藏 homeb 背景并为左右区块分别配色 ===== */
@media (max-width: 768px) {
    /* 全局防止横向溢出 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .myxd .homeb {
        /* 移除整体背景图 */
        background: none !important;
        background-image: none !important;
        padding: 40px 0;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* 修复 wp flex 容器溢出 */
    .myxd .homeb .wp {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden !important;
        padding: 0 !important;
    }

    /* 新媒体矩阵图片自适应 */
    .grid-2 img {
        width: 100% !important;
        height: auto;
    }

    /* 媒眼国治区域（右侧区块）- 对应背景图左侧深蓝色 */
    .myxd .homeb .right {
        background: linear-gradient(135deg, #0a3d8f 0%, #1a52b0 100%);
        padding: 30px 15px;
        border-radius: 12px;
        margin-bottom: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden !important;
    }

    /* 新媒体矩阵区域（左侧区块）- 对应背景图右侧浅蓝色 */
    .myxd .homeb .left {
        background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
        padding: 30px 15px;
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 确保标题文字在深色背景上清晰可见 */
    .myxd .homeb .intit .h4 .en {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .myxd .homeb .intit .h4 .cn {
        color: #fff;
    }

    .myxd .homeb .intit .h4 .line:after {
        background: #fff;
    }

    .myxd .homeb a {
        color: #fff;
    }

    .myxd .homeb .more span {
        border-color: rgba(255, 255, 255, 0.6);
        color: #fff;
    }

    /* 媒眼国治 swiper 移动端宽度自适应 */
    .homeb .slide-b {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .homeb .slide-b .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .homeb .slide-b .swiper-slide .img {
        height: auto !important;
        aspect-ratio: 16/9;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 确保 item 容器不溢出 */
    .homeb .right .item {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 移动端调整日期徽章位置，悬浮在图片左上角 */
    .homeb .right .item .time {
        top: -.45rem !important;
        left: 0 !important;
    }

    /* 确保文本与日期徽章之间有足够间距 */
    .homeb .right .item .txt {
        position: relative !important;
        padding: .6rem 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        /* 移除 overflow: hidden，允许 .time 向上溢出到图片区域 */
    }

    .homeb .slide-b .swiper-wrapper {
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 确保 right 容器不超出屏幕 */
    .myxd .homeb .right {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden !important;
    }

    .myxd .homeb .wp {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 防止 swiper 容器溢出 */
    .homeb .slide-b-p.pore {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 隐藏移动端 swiper 导航按钮，避免溢出 */
    .homeb .right .swiper-button-next,
    .homeb .right .swiper-button-prev {
        display: none !important;
    }
}

/* ===== 手机端研究中心与教育培训竖向排列 ===== */
@media (max-width: 768px) {
    .deploy-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .deploy-group {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ===== 研究中心与教育培训 Swiper 全局样式 ===== */
.deploy-cards-swiper {
    overflow: hidden;
    padding-bottom: 40px !important;
    position: relative;
}

.deploy-cards-swiper .swiper-wrapper {
    /* 移除 display: flex，Swiper 使用 transform 实现滑动 */
    align-items: stretch;
    min-height: 200px;
}

.deploy-cards-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 每个 slide 页面包含 2x2 网格 */
.deploy-slide-page {
    width: 100% !important;
}

.deploy-slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem;
    width: 100%;
}

.deploy-cards-swiper .swiper-pagination {
    bottom: 0 !important;
}

.deploy-cards-swiper .swiper-pagination-bullet {
    background: #094c96 !important;
    opacity: 0.3;
}

.deploy-cards-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ===== 常设研究中心卡片渐变背景 ===== */
.deploy-group:first-child .deploy-card {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fb 50%, #c5d5ea 100%);
    border: 1px solid rgba(9, 76, 150, 0.15);
}

.deploy-group:first-child .deploy-card:hover {
    background: linear-gradient(135deg, #d4e4fb 0%, #c5d5ea 50%, #b8c9e0 100%);
    box-shadow: 0 .06rem .2rem rgba(9, 76, 150, 0.2);
}

.deploy-group:first-child .deploy-card-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.deploy-group:first-child .deploy-card span {
    color: #1a4d8f;
    font-weight: 500;
}

.deploy-group:first-child .deploy-card:hover span {
    color: #0a3d7a;
}

/* ===== 教育培训卡片渐变背景 ===== */
.deploy-group:last-child .deploy-card {
    background: linear-gradient(135deg, #e8faf5 0%, #d4f0e8 50%, #c5e6dc 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.deploy-group:last-child .deploy-card:hover {
    background: linear-gradient(135deg, #d4f0e8 0%, #c5e6dc 50%, #b8ddd3 100%);
    box-shadow: 0 .06rem .2rem rgba(16, 185, 129, 0.2);
}

.deploy-group:last-child .deploy-card-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.deploy-group:last-child .deploy-card-icon svg {
    color: #059669;
}

.deploy-group:last-child .deploy-card span {
    color: #065f46;
    font-weight: 500;
}

.deploy-group:last-child .deploy-card:hover span {
    color: #064e3b;
}

.deploy-group:last-child .deploy-cards-swiper .swiper-pagination-bullet {
    background: #10b981 !important;
}

.deploy-group:last-child .deploy-cards-swiper .swiper-pagination-bullet-active {
    background: #059669 !important;
}