 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    /* 全局统一过渡动画 */
    transition: all 0.3s ease;
}
html, body {
    min-height: 100%;
    scroll-behavior: smooth;
}
body {
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* ========== 新增动画关键帧 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* 卡片默认隐藏，滚动触发动画 */
.card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}
/* 错开动画时间，更有层次感 */
.row:nth-child(2) .card { animation-delay: 0.2s; }
.row:nth-child(3) .card { animation-delay: 0.3s; }
.row:nth-child(4) .card { animation-delay: 0.4s; }
.row:nth-child(5) .card { animation-delay: 0.5s; }
.row:nth-child(6) .card { animation-delay: 0.6s; }

/* 顶部导航背景 */
.header-wrapper {
    background: url('../images/head.jpg') center no-repeat;
    background-size: cover;
    padding: 0 20px;
    min-height: 180px;
}
.top-bar {
    max-width: 1700px;
    margin: 0 auto;
    color: white;
    padding: 40px 0 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.logo img {
    height: 70px;
    display: block;
    max-width: 100%;
}
.logo img:hover {
    transform: scale(1.05);
}

/* 搜索框 */
.search-box {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
}
.search-box input[type="text"] {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    padding: 0 40px 0 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
}
.search-box input[type="text"]:focus {
    box-shadow: 0 0 8px rgba(10,78,160,0.3);
}
.search-box input[type="submit"] {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: url('https://img.icons8.com/ios-glyphs/30/999999/search--v1.png') center/cover no-repeat;
    color: transparent;
    cursor: pointer;
    padding: 0;
}

/* ========== 汉堡按钮 新增形变动画 ========== */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    margin: 10px 0 10px auto;
    position: relative;
    cursor: pointer;
    z-index: 999;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    margin: 5px auto;
    transition: 0.3s;
}
/* 汉堡按钮变X号 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 0;
}
.main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    justify-content: center;
    position: relative;
}
.main-nav a {
    color: white;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
    display: block;
    padding: 8px 0;
    letter-spacing: 3px;
}
/* 导航hover上移 */
.main-nav a:hover {
    color: #80bfff;
    transform: translateY(-2px);
}

/* 二级菜单 */
.main-nav ul li {
    position: relative;
}
.main-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #0a4ea0;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}
.main-nav ul li ul li {
    padding: 0 12px;

}
.main-nav ul li ul li a {
    font-size: 22px;
    padding: 6px 0;
    white-space: nowrap;
}
.main-nav ul li ul li ul {
    top: 0;
    left: 100%;
    transform: translateX(10px);
}
.main-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}

/* 内容布局 */
.container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
    width: 100%;
}
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    align-items: stretch; /* 新增：同行元素拉伸等高 */
}
.col-news {
    flex: 1 1 650px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
.col-notice {
    flex: 1 1 330px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}
.col-2 {
    flex: 1 1 400px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}
.col-2 .card{
    flex:1;
}
.col-full {
    flex: 1 1 100%;
    width: 100%;
}
/* 终极等高：卡片自动撑满列高度 */
.col-news > .card,
.col-notice > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* 通知公告内部自适应留白 */
.col-notice .card {
    justify-content: flex-start;
}
.card {
    background: white;
    border-radius: 16px;
    padding: 7px 18px 18px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 6px solid #cce7ff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}
.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.shixi{
    position: relative;
}
.shixi::before {
  content: '';
  position: absolute;
  left: 5%;
  top: 5%;
  width: 90%;
  height: 90%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
  border-radius: 12px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6293d6;
}
.card-header h3 {
    font-size: 24px;
    color: #40649b;
}
.practice-header, .practice-imgs {
  position: relative;
  z-index: 2;
}
.snow-icon img {
    height: 30px;
    vertical-align: middle;
    max-width: 100%;
}
.title-icon img {
    height: 32px;
    vertical-align: middle;
    max-width: 100%;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    width: 100%;
}
.news-item.has-image {
    flex: 1 1 calc(50% - 10px);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-width: 200px;
}
.news-item.has-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.news-item.has-image:hover img {
    transform: scale(1.08);
}
.news-item.has-image .news-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(204, 231, 255, 0.85);
    padding: 8px 10px;
}
.news-item.has-image .news-text h4 {
    text-align: center;
    margin: 0;
}
.news-item.has-text {
    flex: 1 1 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.news-item.has-text::before {
    content: "•";
    color: #333;
    transition: color 0.3s ease;
    flex-shrink: 0;
    line-height: 1.4;
}
.news-item.has-text:hover {
    color: #0a4ea0;
    transform: translateX(5px);
}
.news-item.has-text:hover::before {
    color: #0a4ea0;
}
.news-item.has-text .news-text {
    flex: 1;
    min-width: 0;
}
.news-item.has-text .news-text h4 {
    text-align: left;
    min-height: auto;
    margin: 0;
}

/* 通用新闻标题样式 */
.news-text h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}



.news-links {
    margin-top: auto;
    padding-left: 10px;
}
.news-links li {
    font-size: 16px;
    margin-bottom: 8px;
    cursor: pointer;
}
.news-links li:hover {
    color: #0a4ea0;
    padding-left: 5px;
}

/* 通知 hover动画 */
.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    cursor: pointer;
}
.notice-item:hover {
    transform: translateX(5px);
}
.notice-date {
    background: #0a4ea0;
    color: white;
    padding: 15px 10px;
    border-radius: 4px;
    text-align: center;
    min-width: 71px;
    flex-shrink: 0;
}
.notice-date .year {
    font-size: 18px;
}
.notice-date .md {
    font-size: 16px;
    font-weight: bold;
}
.notice-text {
    font-size: 16px;
    color: #333;
    flex: 1;
    min-width: 0;
}
.notice-item:hover .notice-text {
    color: #0a4ea0;
}

/* 党团 */
.party-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.pg-item {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap:15px;
    width: 100%;
    cursor: pointer;
}
.pg-item:hover {
    transform: scale(1.02);
}
.pg-item img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.pg-text{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:15px;
    min-width: 0;
}
.pg-item p {
    font-size: 16px;
    color: #333;
    line-height:1.3;
}
.pg-item .date {
    font-size: 14px;
    color: #666;
}

/* 学团 hover动画 */
.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 23px;
    font-size: 16px;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
}
.student-item:hover {
    color: #0a4ea0;
    transform: translateX(3px);
}
.student-item .date {
    color: #666;
    flex-shrink: 0;
}

/* 教科研究 按钮hover动画 */
.research-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}
.research-btn {
    background: url('../images/lankuang.png') center/cover;
    color: white;
    padding: 21px 21px 21px 51px;
    border-radius: 40px;
    text-align: left;
    font-size: 35px;
    font-weight:bold;
    text-shadow:1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position:relative;
    margin:8px;
    letter-spacing: 10px;
    white-space: nowrap;
    overflow: hidden;
}
.research-btn:hover {
    opacity:0.9;
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 5px 15px rgba(10,78,160,0.3);
}

/* 实习实训 图片hover */
.practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}
.practice-title {
    display: inline-block;
    background: #5eb1e3;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 24px;
}
.practice-title:hover {
    background: #0a4ea0;
}
.practice-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    padding: 0 0 42px 0;
    justify-content: center;
    width: 100%;
}
.practice-imgs img {
    position: relative;
    z-index: 2;
    flex: 0 0 280px;
    max-width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 4px;
}
.practice-imgs img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 作品展示 图片hover */
.works-imgs {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    /* 核心修复：隐藏溢出内容，取消滚动条 */
    overflow: hidden;
    padding: 10px 0; /* 增加上下内边距，给图片放大留空间，更美观 */
}
.works-imgs img {
    flex: 0 0 calc(100% / 6 - 17px);
    min-width: 100px;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    /* 优化：给图片加过渡，动画更流畅 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.works-imgs img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    /* 额外优化：hover时图片置顶，避免被遮挡 */
    z-index: 1;
}

.banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    animation: fadeIn 1s ease;
}
/* 单个Banner项 */
.banner-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.banner-item.active {
    opacity: 1;
}
/* Banner图片 */
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Banner遮罩层 */
/* Banner内容 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}
.banner-content h2 {
    font-size: 56px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.banner-content p {
    font-size: 34px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Banner指示器 */
.banner-dots {
    position: absolute;
    bottom: 15px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0a3c8a;
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dots span.active {
    background: white;
    transform: scale(1.2);
}

/* 页脚 */
footer {
    background-color: #0a4ea0;
    color: white;
    padding: 25px 20px;
    margin-top: 30px;
    font-size: 14px;
    width: 100%;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.8;
    flex: 1 1 500px;
}
.footer-left .footer-logo {
    height: 110px;
    max-width: 100%;
}
.footer-logo:hover {
    transform: scale(1.05);
}
.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.footer-right a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}
.footer-bottom {
    max-width: 1200px;
    margin: 15px auto 0;
    display: flex;
    justify-content: flex-end;
    opacity: 0.8;
}
.footer-bottom select {
    background: #0a4ea0;
    color: white;
    border: 1px solid white;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
}
.footer-bottom select:hover {
    background: #0a3c8a;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1200px) {
    .main-nav a {
        font-size: 20px;
    }
    .main-nav > ul {
        gap: 18px;
    }
    .works-imgs {
        flex-wrap: wrap;
        justify-content: center;
        overflow: hidden; /* 统一隐藏溢出 */
    }
    .works-imgs img {
        flex: 0 0 calc(33.33% - 14px);
        height: 240px;
    }
    .research-btn {
        font-size: 28px;
        letter-spacing: 6px;
        padding: 18px 18px 18px 30px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        padding: 20px 0;
        justify-content: center;
        gap: 15px;
    }
    .main-nav a {
        font-size: 18px;
    }
    .banner {
        height: 450px;
    }
    .banner h2 {
        font-size: 42px;
    }
    .banner p {
        font-size: 26px;
    }
    .news-item img {
        height: 180px;
    }
    .pg-item img {
        width: 150px;
        height: 110px;
    }
    .research-btn {
        font-size: 24px;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        min-height: auto;
        padding: 0 15px;
    }
    .top-bar {
        justify-content: center;
        text-align: center;
        padding: 15px 0;
    }
    .logo img {
        height: 50px;
    }
    .search-box {
        width: 260px;
        margin: 0 auto;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .main-nav > ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        background: rgba(10,78,160,0.95);
        padding: 20px;
        border-radius: 12px;
        width: 100%;
    }
    .main-nav > ul.show {
        display: flex;
    }
    .main-nav a {
        font-size: 18px;
    }

    .main-nav ul li ul {
        position: static;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        text-align: center;
        width: 220px;
        margin: 8px 0;
        padding: 10px 0;
        display: none;
    }
    .main-nav ul li ul.show {
        display: block;
    }
    .main-nav ul li ul li a {
        font-size: 16px;
        color: #ffffff;
        padding: 6px 12px;
    }
    .main-nav ul li ul li a:hover {
        color: #80bfff;
    }

    .banner {
        height: 300px;
    }
    .banner h2 {
        font-size: 32px;
    }
    .banner p {
        font-size: 20px;
    }

    .container {
        margin: 10px auto 0 auto;
    }
    .row {
        margin-bottom: 10px;
        gap: 15px;
    }
    .card {
        padding: 7px 12px 12px 12px;
        border-width: 4px;
    }
    .card-header h3 {
        font-size: 20px;
    }

    
.news-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
}
.news-item {
    width: 100%;
}
.news-item.has-image {
    position: static;
    border-radius: 8px;
    overflow: hidden;
    flex: none;

}
.news-item.has-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.news-item.has-image .news-text {
    background: #cce7ff;
    padding: 10px;
    text-align: center;
    position: unset;
}
.news-item.has-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 0;
    flex: none;
}
.news-item.has-text::before {
    content: "•";
    color: #333;
    flex-shrink: 0;
    line-height: 1.4;
}
.news-text h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .pg-item {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    .pg-item img {
        width: 100%;
        max-width: 250px;
        height: 160px;
    }

    .research-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .research-btn {
        font-size: 22px;
        letter-spacing: 2px;
        padding: 15px;
        text-align: center;
        margin: 0;
    }

    .practice-title {
        font-size: 20px;
    }
    .practice-imgs img {
        flex: 0 0 100%;
        max-width: 300px;
        height: 160px;
    }

    .works-imgs img {
        flex: 0 0 calc(50% - 10px);
        height: 200px;
    }

    footer {
        margin-top: 10px;
        padding: 15px 10px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-bottom: 10px;
    }
    .footer-left {
        flex-direction: column;
        flex: 1 1 auto;
        gap: 10px;
    }
    .footer-logo {
        height: 80px !important;
    }
    .footer-bottom {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 220px;
    }
    .banner {
        height: 220px;
    }
    .banner h2 {
        font-size: 24px;
    }
    .banner p {
        font-size: 16px;
    }
    .works-imgs img {
        flex: 0 0 100%;
        height: 180px;
    }
    .research-btn {
        font-size: 18px;
    }
    .practice-imgs img {
        height: 140px;
    }
}