.hot-news-section {
    position: relative;
    margin-top: -10rem;
    z-index: 10;
}

.container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1360px;
    margin: 0 auto;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
}

.newBacgroundImg{
    width: 100%;
    height: 120rem;
    position: absolute;
    top: var(--header-height);
    right: 0;
    background: url(../images/line_bac.png)  center 100% ;
    z-index: -1;
    opacity: .02;
}

/* 通用卡片样式 */
.news-card {
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* 中间卡片 */
.card-center {
    width: 62.2rem;
    height: 61.4rem;
    position: relative;
    background: #FFF8F8;
    box-shadow: 0.8rem 0.8rem 3rem 0rem rgba(0, 0, 0, 0.25);
    border-radius: 1.2rem 1.2rem 1.2rem 1.2rem;
    border-top: 0.7rem solid #003690;
}

.card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-center .card-header .title {
    font-size: 20px;
    color: #000000;
}

.card-center .card-header .more {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 14px;
    color: #909399;
}

.card-center .card-header .more:hover{
    color: var(--bjtu-blue);
}

.card-center .featured-content {
    width: 52.7rem;
    height: 39.9rem;
    margin: 20px auto;
    position: relative;
}

.card-center .featured-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 254, 254, 0) 0.07%, rgba(126, 126, 126, 0.55) 75.96%, #000000 100%);
}

.card-center .slides{
    width: 52.7rem;
    height: 39.9rem;

}

.card-center .featured-content-img{
    width: 52.7rem;
    height: 39.9rem;

}
.card-center .featured-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 中间图片上的红色浮动日期 */
.card-center .featured-content .floating-date {
    position: absolute;
    top: -0.6rem;
    left: 3.9rem;
    /* width: 13.1rem;
    height: 9.4rem; */
    background: #003690;
    color: #fff;
    padding: 10px;
    padding-top: 3px;
    text-align: center;
}

.card-center .featured-content .floating-date::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-top: 8px solid transparent;
    border-bottom: 8px solid #071835;
}

.card-center .featured-content .image-caption {
    position: absolute;
    top: 36.3rem;
    left: 1.9rem;
    z-index: 10;
    font-family: ADLaM Display, ADLaM Display;
    font-weight: 400;
    font-size: 2rem;
    color: #FFFFFF;
}

.f-day {
    font-size: 22px;
    font-weight: bold;
    display: block;
}

.f-year {
    font-size: 12px;
}

.card-center .featured-content .image-caption-bg {
    margin-top: 30.2rem;
}

.card-center .featured-content .flex-control-paging{
    display: flex;
    justify-content: space-around;
    margin-top: 48px;
}
.card-center .featured-content .flex-control-paging a{
    display: block;
    width: 110px;
    height: 44px;
    width: 66px;
    height: 26.4px;
    box-sizing: border-box;
    cursor: pointer;
    /* height: 4px;
    background-color: #B2B3B6; */
    font-size: 0;
    border-bottom: 4px solid #B2B3B6;
}
.card-center .featured-content .flex-control-paging .flex-active{
    background-color: unset;
    border: none;
    background-image: url('../images/1896.png');
    background-size: 100%;
}

.card-side {
    width: 38.8rem;
    height: 51rem;
    margin: 4rem 0;
    background: #FFFFFF;
    border-top: 0.7rem solid #B81A35;
    box-shadow: 0.8rem 0.8rem 3rem 0rem rgba(0, 0, 0, 0.25);
}
.card-side:first-child{
    border-top-left-radius: 1.2rem;
}
.card-side:nth-child(3){
    border-top-right-radius: 1.2rem;
}

.card-side-color {
    border-top: 0.7rem solid #DAA242;
}

.card-side .card-header .title {
    font-size: 20px;
    color: #000000;
}

.card-side .card-header .more {
    position: absolute;
    top: 6px;
    right: 20px;
    font-size: 14px;
    color: #909399;
}

.card-side .card-header .more:hover{
    color: var(--bjtu-blue);
}

/* 列表样式 */
.news-list li {
    display: flex;
    padding: 1.1rem 0;
    border-bottom: 0.1rem solid #D7D7D7;
    height: 73px;
    position: relative;
}

.news-list a:last-child li{
    border: none;
}

.news-list li span{
    font-size: 14px;
    line-height: 20px;
    margin-top: 8px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示的行数为2 */
    -webkit-box-orient: vertical;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.news-list li:hover span {
    color: #488EFF;
}


.date-box {
    margin-right: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.date-box .day {
    width: 60px;
    line-height: 18px;
    color: #b81a35;
    font-weight: 400;
    font-size: 18px;
    display: block;
}

.date-box .year {
    width: 60px;
    line-height: 19px;
    background: rgba(0, 64, 152, .15);;
    font-weight: 400;
    font-size: 12px;
    color: #000000;
    opacity: .85;
    border-radius: 0 0 5px 5px;
    margin-top: 8px;
}

.news-list-right li {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
    height: 73px;
    padding: 0.3rem 0;
    border-bottom: 0.1rem solid #D7D7D7;
    justify-content: center;
    position: relative;
}
.news-list-right li:last-child{
    border: none;
}

.news-list-right li>a {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示的行数为2 */
    -webkit-box-orient: vertical;
    overflow: hidden; 
    text-overflow: ellipsis;
}
.news-list-right li:hover>a{
    color: #488EFF;
}

.news-list-right li .time {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #919090;
}

.news-list-right li .time .fa {
    margin-right: 8px;

}

.news-list li a,.date-box,.news-list-right li>a,.news-list-right li .time{
    z-index: 3;
}
.news-list li::after,.news-list-right li::after{
    content: "";
    position: absolute;
    left: -20px;
    right: 0;
    bottom: 0;
    top: 0;
    width: calc( 100% + 40px );
    transform: scaleY(0);
    -webkit-transition: all .35s ease-in-out;
    -o-transition: all .35s ease-in-out;
    transition: all .35s ease-in-out;
    /* background: #ebeef5; */
    background: rgba(184, 26, 53, .35);
    background-size: cover;
    z-index: 2;
    opacity: .75;
}
.news-list-right li::after{
    background: rgba(204, 153, 51, .35);
}

.news-list li:hover::after,.news-list-right li:hover::after{
    transform: scaleY(1);
}
/*学术交流部分*/
.academic-exchange {
    /* background: url('../images/academic-bg.png') no-repeat center bottom/102% 42%; */
    padding: 6rem 0;
    position: relative;
}

.academic-exchange::after{
    background-color: #003690;
    width: 100%;
    height: 42%;
    content: "";
    position: absolute;
    bottom: 0;
    z-index: -99;
    opacity: .8;
}

.academic-container {
    max-width: 1360px;
    margin: 0 auto;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    overflow: hidden;
}

/* 头部样式 */
.exchange-header {
    display: flex;
    justify-content: space-between;
    margin-right: 2rem;
}

.academic-container .exchange-header .left-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.academic-container .exchange-header .left-box .academic-title {
    font-family: var(--font-main);
    font-size: 30px;
    color: #003690;
    position: relative;
}
.academic-container .exchange-header .left-box .academic-title::before{
    content: "";
    position: absolute;
    width: 30px;
    bottom: -3px;
    left: 30px;
    height: 4px;
    background-color: #004098;
    z-index: 1;
}
.academic-container .exchange-header .left-box .academic-title::after{
    content: "";
    position: absolute;
    width: 30px;
    left: 0;
    bottom: -3px;
    height: 4px;
    background-color: #c8161e;
    z-index: 1;
}

.academic-container .exchange-header .left-box .corner-box {
    position: relative;
    padding: 0 1.5rem;
    margin: 0 5px;
    display: inline-block;
}

/* 左下角的直角 [ */
.academic-container .exchange-header .left-box .corner-box::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 1.2rem;
    height: 3.1rem;
    border-left: 0.4rem double #00469C;
    border-top: 0.4rem double #00469C;
}

/* 右上角的直角 ] */
.academic-container .exchange-header .left-box .corner-box::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 1.2rem;
    height: 3.1rem;
    border-right: 0.4rem double #00469C;
    border-bottom: 0.4rem double #00469C;
}

.headerLine-color {
    width: 2px;
    height: 40px;
    opacity: 1;
    background: #003690;
}

.academic-container .exchange-header .left-box .sub-nav {
    display: inline-flex;
    gap: 3rem;
    height: 48px;
    align-items: flex-end;
}

.academic-container .exchange-header .left-box .sub-nav span {
    color: #003690;
    font-size: 20px;
    cursor: pointer;
}

.academic-container .exchange-header .left-box .sub-nav span:hover{
    color: var(--bjtu-red);
}

/* 左右切换按钮 */
.academic-container .exchange-header .arrow-btns {
    display: flex;
    gap: 3rem;
}

.academic-container .exchange-header .arrow-btns button {
    width: 4.2rem;
    height: 4.2rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

/* 卡片容器 */
.academic-container .card-wrapper {
    display: flex;
    gap: 8rem;
    animation: fadeIn 0.5s;
    position: relative;
    left: 0;
    transition: left 0.5s ease-in-out;
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片详情 */
.academic-container .card-wrapper .academic-card {
    width: calc( 25% - 6rem );
    height: 29.5rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #FFFDFD;
    box-shadow: -0.8rem 0.8rem 2.5rem 0rem rgba(0, 0, 0, 0.15), 0.8rem 0.8rem 2.5rem 0rem rgba(0, 0, 0, 0.3);
    border-top: 0.5rem solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;

    flex-grow: 0;
    flex-shrink: 0;
}

.academic-container .card-wrapper .academic-card:hover {
    transform: translateY(-3rem);
    border-top: 0.5rem solid #00469C;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.academic-container .card-wrapper .academic-card .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.academic-container .card-wrapper .academic-card .card-top .fa-calendar-o {
    font-size: 6.4rem;
    color: #00469C;
    position: relative;
    background: url(../images/academic-bg.png) no-repeat center bottom/100% 30%;
}

.academic-container .card-wrapper .academic-card .card-top .fa-calendar-o-day {
    position: absolute;
    top: 2.6rem;
    left: 2rem;
    font-size: 18px;
    color: #00469C;
    font-weight: bold;
}

.academic-container .card-wrapper .academic-card .card-top .fa-calendar-o-month {
    position: absolute;
    top: 4.9rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    color: #FFFFFF;
}

.academic-container .card-wrapper .academic-card .card-top .category {
    color: #00469C;
    font-size: 15px;
}

.academic-container .card-wrapper .academic-card .card-title {
    font-weight: 400;
    font-size: 16px;
    color: #282828;
    margin-top: 8px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示的行数为2 */
    -webkit-box-orient: vertical;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.academic-container .card-wrapper .academic-card .card-desc {
    font-weight: 400;
    font-size: 13px;
    color: #6D6D6D;
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 限制显示的行数为2 */
    -webkit-box-orient: vertical;
    overflow: hidden; 
}

.academic-container .card-wrapper .academic-card .card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #BABABA;
    padding-top: 8px;
    margin-top: 0px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.info-list p {
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 10px;
    color: var(--bjtu-blue);
}

.info-list i {
    color: #488EFF;
    margin-right: 5px;
    width: 14px;
}




/* 媒体部分样式*/

.media-section {
    margin-top: 12.5rem;
    /* background: url(../images/media-bg.png) no-repeat center center/100% 100%; */
    background-color: var(--bjtu-red);
}

.media-container {
    max-width: 1360px;
    height: 75rem;
    margin: 0 auto;
    font-weight: 400;
    color: #FFFFFF;
}

/* 顶部标题栏 */
.media-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5.3rem 0;
}

.media-container .header .title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-container .header .title-group h2 {
    font-size: 30px;
}

.media-container .header .more-link {
    font-size: 1.4rem;
    position: relative;
    top: 8.5px;
}

.media-container .header .more-link:hover{
    color: var(--bjtu-blue);
}

/* 图标容器 */
.media-container .header .social-icons {
    display: flex;
    align-items: center;
    gap: 5rem;
}

/* 通用图标样式 */
.media-container .header .social-icons .icon {
    display: inline-block;
    width: 3.5rem;
    height: 3.5rem;
    background: center / contain no-repeat;
    transition: opacity 0.3s ease;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

.media-container .header .social-icons .icon-bilibili {
    background-image: url('../images/bili.png');
}

.media-container .header .social-icons .icon-kuaishou {
    background-image: url('../images/kuaishou.png');
}

.media-container .header .social-icons .icon-tiktok {
    background-image: url('../images/tiktok.png');
}

.media-container .header .social-icons .icon-weibo {
    background-image: url('../images/weibo.png');
}

.media-container .header .social-icons .icon-wechat {
    background-image: url('../images/weixin.png');
}

/* --- 微信二维码弹出逻辑 --- */
.wechat-wrapper {
    position: relative;
    /* 为弹出层提供定位基点 */
}

.qr-code-popup {
    position: absolute;
    top: 39px;
    /* 在图标下方显示 */
    right: -10px;
    width: 100px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    /* 默认隐藏 */
    text-align: center;
    z-index: 10;
}

/* 绘制气泡小箭头 */
.qr-code-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.qr-code-popup img {
    width: 80px;
    height: 80px;
}

.qr-code-popup p {
    color: #333;
    font-size: 10px;
    margin-top: 5px;
}

/* 鼠标悬停微信图标时显示二维码 */
.wechat-wrapper:hover .qr-code-popup {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 核心网格布局：分成 3 列，中间略宽 */
.media-container .content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    /* 比例：左1 中1.2 右1 */
    gap: 2rem;
    height: 52.6rem;
    /* 固定整体高度，内容自适应填充 */
}

.media-container .content-grid .side-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.media-container .content-grid .side-column .card {
    width: 40.3rem;
    height: 24.8rem;
    background: linear-gradient(180deg, rgba(255, 254, 254, 0.2) 0.07%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.media-container .content-grid .side-column .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保证图片不拉伸且铺满 */
    object-fit: cover; /* 保持图片比例，填满容器（避免拉伸） */
    transition: transform 0.3s ease; /* 放大过渡动画，0.3秒 */
    transform-origin: center center; /* 关键：以中心为原点放大（默认就是center，可省略） */
}
.media-container .content-grid .side-column .card:hover>img {
    transform: scale(1.2); /* 核心：放大1.5倍 */
}

/* 底部信息遮罩层 */
.media-container .content-grid .side-column .card .info {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 1));
    display: flex;
    align-items: flex-end;
}

.media-container .content-grid .side-column .card .info .img-container {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 2rem;
    border-bottom: 0.5rem solid #FFFFFF;
    padding-bottom: 0.3rem;
}

.media-container .content-grid .side-column .card .info .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.media-container .content-grid .side-column .card .info-content {
    display: flex;
    flex-direction: column;
    font-size: 15px;
}
.media-container .content-grid .side-column .card .info-content p:first-child{
    font-size: 12px;
    color: var(--bjtu-silver);
}

.media-container .content-grid .main-column .card-large {
    width: 51.1rem;
    height: 52.6rem;
    position: relative;
    overflow: hidden;
}

.media-container .content-grid .main-column .card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，填满容器（避免拉伸） */
    transition: transform 0.3s ease; /* 放大过渡动画，0.3秒 */
    transform-origin: center center; /* 关键：以中心为原点放大（默认就是center，可省略） */
}
.media-container .content-grid .main-column .card-large:hover img {
    transform: scale(1.2); /* 核心：放大1.5倍 */
}

.media-container .content-grid .main-column .card-large .info {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 1));
    display: flex;
    align-items: flex-end;
}

.media-container .content-grid .main-column .card-large .info .img-container {
    width: 5.6rem;
    height: 5.6rem;
    margin: 0 2rem;
    border-bottom: 0.5rem solid #FFFFFF;
    padding-bottom: 0.3rem;
}

.media-container .content-grid .main-column .card-large .info .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.media-container .content-grid .main-column .card-large .info .info-content {
    display: flex;
    flex-direction: column;
    font-size: 20px;
}
.media-container .content-grid .main-column .card-large .info .info-content p:first-child{
    font-size: 15px;
    color: var(--bjtu-silver);
}


/*快捷通道部分样式*/
.quick-links {
    padding: 4rem 0;
    max-width: 1360px;
    margin: 15rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 标题样式，带蓝色下划线 */
.quick-links .section-title {
    /* font-family: ADLaM Display, ADLaM Display; */
    /* font-weight: 400; */
    font-size: 30px;
    color: #000000;
    padding-bottom: 3px;
    position: relative;
    letter-spacing: 1px;
}
.quick-links .section-title::before{
    content: "";
    position: absolute;
    width: 30px;
    bottom: -3px;
    left: 30px;
    height: 4px;
    background-color: #004098;
    z-index: 1;
}
.quick-links .section-title::after{
    content: "";
    position: absolute;
    width: 30px;
    left: 0;
    bottom: -3px;
    height: 4px;
    background-color: #c8161e;
    z-index: 1;
}

/* .quick-links .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 0.3rem;
    background-color: #003690;
} */

/* 网格布局 */
.quick-links .link-grid {
    /* display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem; */
    display: flex;
    justify-content: space-between;
}

/* 卡片通用样式 */
.quick-links .link-grid .link-item {
    position: relative;
    width: 200px;
    height: 25rem;
    background: rgba(8, 51, 116, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: no-repeat center center / cover;
    background-size: 100% auto;
}

.quick-links .link-grid .link-item .text {
    position: absolute;
    top: 20%;
    z-index: 1;
    font-family: Inter, Inter;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    padding: 0 20%;
}

.quick-links .link-grid .link-item .bottom-icon {
    position: absolute;
    left: 15px;
    right: auto;
    bottom: 17px;
    width: 33px;
    height: 16px;
    background: url('../images/gtrain_simple.png') no-repeat center / 100% 100%;
    z-index: 1;
    transition: transform 0.5s ease;
    /* 计算移动距离：容器宽度 - 左侧15px - 右侧15px - 图标宽度 */
    --move-distance: calc(200px - 15px - 15px - 33px);
}
.quick-links .link-grid .link-item:hover .bottom-icon {
    /* 向右移动计算好的距离 */
    transform: translateX(var(--move-distance));
    /* left: auto;
    right: 15px; */
}
.quick-links .link-grid .link-item::after {
    content: "";
    display: block;
    border-bottom: #ffffff dashed 1px;
    position: absolute;
    width: 170px;
    left: 15px;
    bottom: 12px;
}
/* .quick-links .link-grid .link-item .bottom-icon {
    position: absolute;
    bottom: 1.5rem;
    height: 2rem;
    width: 16rem;
    background: url('../images/gtrain.png') no-repeat center center / 100% 100%;
    z-index: 1;
} */

.quick-links .link-grid a{
    /* ✅ 核心：初始背景大小（100% 贴合元素） */
    background-size: 100% auto;
    
    /* ✅ 必须：隐藏放大后溢出的背景 */
    overflow: hidden;
    
    /* ✅ 平滑动画（只过渡背景尺寸） */
    transition: background-size 1.5s ease;

    /* -------- 以下是维持a标签大小不变的样式 -------- */
    display: inline-block;
}
.quick-links .link-grid a:hover{
    background-size: 125% auto; /* 背景放大15%，数值可自定义 */
}