@charset "utf-8";
/* ==========================================================================
   绍兴理工学院 · 语言与文化学院  首页样式
   基准：1920px 设计稿，1rem = 100px（reset.css: html{font-size:5.208333vw}）
   内容容器 .w1750 = 17.5rem = 1750px
   切图尺寸 = 设计稿显示尺寸，故元素尺寸直接按图片像素 / 100 取 rem
   ========================================================================== */

:root {
    --main: #3c6aa1;
    /* 深蓝 主色（导航 / 页脚） */
    --blue: #1e50a2;
    /* 标题蓝 */
    --blue-l: #2f6bd0;
    /* 亮蓝 */
    --nav-txt: #b9cbe6;
    /* 导航未选中文字 */
    --txt: #444;
    --gray: #999;
    --gray-l: #c0c6cf;
    --bg-soft: #e8f0fb;
}

body {
    overflow-x: hidden;
    background: #fff;
}

img {
    display: block;
}

/* 标题下划线用主题色；本页新闻区悬停不再走这条下划线 */
.titline i {
    background-image: linear-gradient(var(--main), var(--main));
}

/* ------------------------------ 顶部导航 ------------------------------ */
.header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--main);
    border-bottom: 0.1rem solid #265996;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 1.63rem;
    gap: 1rem;
    position: relative;
}

.header .logo img {
    height: 0.9rem;
}

.nav {
    flex: 1;
    display: flex;
    align-items: center;
    height: 1.45rem;
    justify-content: space-between;
}

.nav-item {
    position: relative;
   
    height: 1.45rem;
}

.nav-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.45rem;
    font-size: 0.2rem;
    color: #fff;
    white-space: nowrap;
}

/* 二级栏目 */
.sub-nav {
    position: absolute;
    left: 50%;
    top: 1rem;
    min-width: 2.2rem;
    padding: 0.1rem 0;
    background: #265996;
    box-shadow: 0 .15rem .3rem rgba(0, 0, 0, .22);
    transform: translateX(-50%) translateY(0.12rem);
    opacity: 0;
    visibility: hidden;
    transition: all .35s;
}

.sub-nav::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.07rem;
    width: 0.14rem;
    height: 0.14rem;
    margin-left: -0.07rem;
    background: #265996;
    transform: rotate(45deg);
}

.nav-item:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-nav a {
    display: block;
    padding: 0 0.2rem;
    line-height: 0.54rem;
    font-size: 0.18rem;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: background .3s, color .3s;
}

.sub-nav a:hover {
    background: var(--blue-l);
    color: #fff;
}

/* 搜索图标（切图 search.png 22x22，贴导航栏右上角） */
.search {
    align-self: flex-start;
    margin: 0.24rem 0 0 0.12rem;
    width: 0.24rem;
    height: 0.24rem;
    cursor: pointer;
    position: absolute;
    right: 0;
}

.search img {
    width: 100%;
    height: 100%;
    transition: transform .3s;
}

.search:hover img {
    transform: scale(1.12);
}

/* 全屏搜索 */
.search-pop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 42, 80, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.search-pop.on {
    opacity: 1;
    visibility: visible;
}

.search-pop-inner {
    width: 10rem;
    opacity: 0;
    transform: translateY(0.3rem);
    transition: all .5s .1s;
}

.search-pop.on .search-pop-inner {
    opacity: 1;
    transform: translateY(0);
}

.search-pop-form {
    display: flex;
    align-items: center;
    border-bottom: 0.02rem solid rgba(255, 255, 255, .45);
}

.search-pop-form input {
    flex: 1;
    height: 0.9rem;
    font-size: 0.32rem;
    color: #fff;
    background: transparent;
}

.search-pop-form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.search-pop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.search-pop-btn img {
    width: 0.22rem;
    height: 0.22rem;
    transition: transform .3s;
}

.search-pop-btn:hover img {
    transform: scale(1.15);
}

.search-pop-close {
    position: absolute;
    right: 0.6rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    cursor: pointer;
}

.search-pop-close::before,
.search-pop-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.42rem;
    height: 0.02rem;
    background: rgba(255, 255, 255, .8);
    transition: background .3s;
}

.search-pop-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-pop-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.search-pop-close:hover::before,
.search-pop-close:hover::after {
    background: #fff;
}

/* ------------------------------ Banner 轮播 ------------------------------ */
.banner {
    position: relative;
    width: 100%;
    height: 5.65rem;
    overflow: hidden;
}

.banner .swiper {
    width: 100%;
    height: 100%;
}

.banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .swiper-pagination {
    bottom: 0.32rem;
}

.banner .swiper-pagination-bullet {
    width: 0.16rem;
    height: 0.04rem;
    border-radius: 0.02rem;
    background: #fff;
    opacity: .55;
    transition: all .3s;
}

.banner .swiper-pagination-bullet-active {
    width: 0.36rem;
    opacity: 1;
}

/* ------------------------------ 通用区块 / 标题 ------------------------------ */
.section {
    padding: 0.62rem 0;
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.32rem;
}

/* 教学科研 / 学生工作：标题与下方列表拉开距离 */
.two-col-sec .sec-head {
    margin-bottom: 0.52rem;
}

.sec-tit {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

.sec-tit h2 {
    font-size: 0.32rem;
    line-height: 1;
    font-weight: bold;
    color: #086da2;
    letter-spacing: 0.01rem;
}

.sec-tit span {
    margin-bottom: 0.1rem;
    font-size: 0.18rem;
    letter-spacing: 0rem;
    text-transform: uppercase;
    color: #8c8c8c;
    opacity: 0.5;
}

/* 查看更多：more.png 159x33 作为背景，文字叠加在横线上方 */
.more {
    display: block;
    width: 1.59rem;
    height: 0.48rem;
    line-height: 0.2rem;
    font-size: 0.16rem;
    color: #888;
    background: url(../images/more.png) no-repeat right bottom;
    background-size: 1.59rem 0.33rem;
    transition: color .3s;
}

.more:hover {
    color: var(--blue-l);
}

/* ------------------------------ 学院动态 ------------------------------ */
/* 区块底纹：banner1.png */
.school-news {
    background: url(../images/banner1.png) no-repeat center center;
    background-size: cover;
}

.news-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* 左图：cst.png 867x511 -> 8.67rem x 5.11rem */
.news-left {
    position: relative;
    width: 8.67rem;
    flex-shrink: 0;
}

.news-left .swiper {
    width: 100%;
    height: 5.11rem;
}

.news-left .swiper-slide {
    position: relative;
    overflow: hidden;
}

.news-left .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-left .swiper-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.7rem;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
    pointer-events: none;
}

.news-left .slide-txt {
    position: absolute;
    left: 0.28rem;
    right: 1rem;
    bottom: 0.3rem;
    z-index: 2;
}

.news-left .s-date {
    margin-bottom: 0.08rem;
    font-size: 0.18rem;
    color: #fff;
    font-weight: 600;
}

.news-left .s-tit {
    font-size: 0.2rem;
    line-height: 1.5;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页点：图片右下区 */
.news-left .swiper-pagination {
    left: auto;
    right: 0.2rem;
    bottom: 0.38rem;
    width: auto;
    text-align: right;
}

.news-left .swiper-pagination-bullet {
    width: 0.09rem;
    height: 0.09rem;
    margin: 0 0.04rem;
    background: #fff;
    opacity: .55;
}

.news-left .swiper-pagination-bullet-active {
    opacity: 1;
}

/* 右栏（高度与左侧轮播图一致） */
.news-right {
    flex: 1;
    min-width: 0;
    margin-left: 0.42rem;
    height: 5.11rem;
    display: flex;
    flex-direction: column;
}

/* 头条卡片（整体为链接） */
.news-top {
    position: relative;
    display: block;
    padding: 0.15rem 0.24rem 0.12rem;
    background: #fff;
    margin-bottom: 0.1rem;
}

/* 左上角斜角 New 标签 */
.new-tag {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.92rem;
    height: 0.89rem;
    background: #3c6aa1;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.new-tag img {
    position: absolute;
    left: 0.15rem;
    top: 0.15rem;
    width: 0.37rem;
    height: 0.21rem;
}

.news-top .t {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 0.56rem;
    padding-left: 0.7rem;
    font-size: 0.2rem;
    line-height: 1.4;
    font-weight: bold;
    color: #323030;
    word-break: break-word;
}

/* 日期 + 描述（与标题同宽，分隔线跟随缩进） */
.news-desc {
    display: flex;
    align-items: flex-start;
    margin-top: 0.12rem;
    margin-left: 0.7rem;
    padding-top: 0.12rem;
    border-top: 0.01rem solid #dde5ef;
}

.news-desc-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 0.6rem;
    margin-right: 0.18rem;
}

.news-desc-date .day {
    font-size: 0.24rem;
    line-height: 1;
    font-weight: bold;
    color: #3c6aa1;
}

.news-desc-date .ym {
    margin-top: 0.04rem;
    font-size: 0.14rem;
    color: #3c6aa1;
}

.news-desc-txt {
    flex: 1;
    min-width: 0;
}

.news-desc-txt p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.16rem;
    line-height: 1.6;
    color: #8b8c8c;
    word-break: break-word;
}

/* 新闻列表（与首条同级，均分剩余高度） */
.jx-list{
    margin-top: 0.2rem;
}
.news-li,
.list-item {
    display: flex;
    align-items: center;
}

.news-li {
    flex: 1;
    
}


.news-li .ico,
.list-item .ico {
    width: 0.14rem;
    height: 0.14rem;
    flex-shrink: 0;
    margin-right: 0.14rem;
}

.news-li .ico img,
.list-item .ico img {
    width: 100%;
    height: 100%;
}

.news-li .txt,
.list-item .txt {
    flex: 1;
    min-width: 0;
    font-size: 0.2rem;
    color: #191919;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-li .d,
.list-item .d {
    flex-shrink: 0;
    margin-left: 0.25rem;
    font-size: 0.14rem;
    color: var(--gray);
}

/* ------------------------------ 教学科研 & 学生工作 ------------------------------ */
.two-col-sec {
    padding-bottom: 2.4rem;
    background: url(../images/banner2.png) no-repeat center bottom / 100% auto;
}

.two-col {
    display: flex;
    justify-content: space-between;
}

.two-col .col {
    width: 8.5rem;
    display: flex;
    flex-direction: column;
}

/* 图文块（教学科研）：左图 + 右侧标题/描述/日期 */
.jx-top {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.15rem;
    background: #f5f5f5;
}

.jx-img {
    width: 3.95rem;
    height: 2.33rem;
    flex-shrink: 0;
    overflow: hidden;
}

.jx-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jx-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.16rem 0.2rem 0.2rem 0.25rem;
    position: relative;
   
}

.jx-txt .t {
    font-size: 0.2rem;
    line-height: 1.4;
    font-weight: bold;
    color: #464747;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 0.65rem;
}

.jx-txt .line {
    display: block;
    width: 0.64rem;
    height: 0.01rem;
    background: #3c6aa1;
    margin: 0.1rem 0 0.15rem;
}

.jx-txt p {
    font-size: 0.16rem;
    line-height: 1.55;
    color: #8b8c8c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jx-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.08rem;
}

.jx-date {
    display: flex;
    align-items: center;
}

.jx-date .day {
    font-size: 0.2rem;
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.02rem;
    color: #3c6aa1;
    font-weight: 200;
}

.jx-date .sl {
    font-size: 0.3rem;
    line-height: 1;
    margin: 0 0.02rem;
    color: #3c6aa1;
    font-weight: 200;
}

.jx-date .ym {
    font-size: 0.2rem;
    line-height: 1;
    align-self: flex-end;
    color: #3c6aa1;
     font-weight: 200;
}

/* 圆形箭头 right.png 57x57 */
.jx-more {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    position: absolute;
    right: -.05rem;
    bottom: -0.05rem;
}

.jx-more img {
    width: 100%;
    height: 100%;
    transition: transform .3s;
}

/* 教学科研列表（标题在上、日期在下） */
.jx-list .list-item {
    align-items: flex-start;
    padding: 0.11rem 0;
}

.jx-list .list-item .ico {
    margin-top: 0.05rem;
}

.jx-list .list-body {
    flex: 1;
    min-width: 0;
}

.jx-list .list-item .txt {
    font-size: 0.2rem;
    color: #191919;
}

.jx-list .list-item .d {
    margin-left: 0;
    margin-top: 0.04rem;
    font-size: 0.18rem;
    color: #3c6aa1;
}

/* 条目高度不变，多出的高度均分到每条新闻之间 */
.xg-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xg-li {
    position: relative;
    display: flex;
    align-items: center;
    height: 0.92rem;
    border-right: 0.01rem solid #e9e7e7;
}

/* 上下两条分隔线：从圆心处起笔（被白色圆面遮住），向右延伸至边缘，与圆相切 */
.xg-li::before,
.xg-li::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    right: 0;
    height: 0.01rem;
    background: #e9e7e7;
}

.xg-li::before {
    top: 0;
}

.xg-li::after {
    bottom: 0;
}

.xg-date {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 0.92rem;
    height: 0.92rem;
    flex-shrink: 0;
    margin-left: 0.26rem;
    border: 1px solid #e9e7e7;
    border-radius: 50%;
    background: #f4f4f4;
    gap: 0.05rem;
}

.xg-date .y {
    font-size: 0.16rem;
    line-height: 1.35;
    color: #242424;
}

.xg-date .dm {
    font-size: 0.2rem;
    line-height: 1.3;
    color: #9f9f9f;
    font-weight: 400;
}

.xg-tit {
    flex: 1;
    min-width: 0;
    margin-left: 0.32rem;
    font-size: 0.2rem;
    line-height: 1.5;
    color: #191919;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 学院动态、教学科研、学生工作：悬停标题变主色，图片轻放大 */
.school-news a:hover .titline i,
.two-col-sec a:hover .titline i {
    background-size: 0 1px;
}

.school-news a:hover .titline,
.two-col-sec a:hover .titline {
    color: var(--main);
}

.news-left .swiper-slide img,
.jx-img img {
    transition: transform .45s;
}

.news-left .swiper-slide:hover img,
.jx-top:hover .jx-img img {
    transform: scale(1.06);
}

.jx-top:hover .jx-more img {
    transform: translateX(0.06rem);
}

.xg-li,
.xg-date,
.xg-li::before,
.xg-li::after {
    transition: border-color .3s, background-color .3s;
}

.xg-li:hover {
    border-right-color: var(--main);
}

.xg-li:hover::before,
.xg-li:hover::after {
    background: var(--main);
}

.xg-li:hover .xg-date {
    border-color: var(--main);
    background: #eef3f8;
}

/* ------------------------------ 页脚 ------------------------------ */
.footer-main {
    background: #3c6aa1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
}

.footer-inner .f-logo img {

    height: 0.9rem;
}

.footer-inner .f-txt {
    font-size: 0.2rem;
    color: rgba(255, 255, 255, 1);
}