/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.top-bar {
    background: white url('../imgs/top2026.png') no-repeat center bottom;
    background-size: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar .container {
    padding: 0 15px 10px;
}

.logo img {
    height: 40px;
    max-width: 100%;
}

.logo-hamburger-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px 0;
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: #1e3a8a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Swiper轮播图样式 */
.mySwiper {
    height: 600px;
    width: 100%;
}

.swiper-slide {
    height: 100%;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 轮播图导航按钮优化 */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #1e3a8a !important; /* 学院深蓝色 */
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.mySwiper .swiper-button-next:after,
.mySwiper .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
    background-color: rgba(30, 58, 138, 0.9);
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1);
}

/* 保持按钮在屏幕两端 */
.mySwiper .swiper-button-prev {
    left: 20px;
}
.mySwiper .swiper-button-next {
    right: 20px;
}

/* 分页器小点颜色 */
.mySwiper .swiper-pagination-bullet-active {
    background: #fbbf24 !important; /* 学院金黄色 */
    width: 20px;
    border-radius: 5px;
}

/* 通版轮播图 */
.banner {
    background: #f8f9fa;
    position: relative;
}

.banner .container {
    max-width: 100%;
    padding: 0;
    height: auto;
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    height: 600px;
}

/* 响应式设计 - 保持比例 */
@media (max-width: 1450px) {
    .slider-container, .mySwiper {
        height: auto;
        aspect-ratio: 1920 / 600;
    }
}

@media (max-width: 768px) {
    .slider-container, .mySwiper {
        height: 250px;
        aspect-ratio: unset;
    }
    
    /* 移动端缩小按钮 */
    .mySwiper .swiper-button-next,
    .mySwiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    .mySwiper .swiper-button-next:after,
    .mySwiper .swiper-button-prev:after {
        font-size: 14px !important;
    }
}

/* 内容区域样式 */
.content-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    margin-bottom: 50px;
    min-height: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}

.section-title .more {
  position: absolute;
  right: 0;
}

/* 学院新闻部分 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-image {
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 学院公告 */
.announcement-section {
    padding: 80px 0;
    position: relative;
}

.announcement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imgs/announcement-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.announcement-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #1e3a8a;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.announcement-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    height: calc(16px * 1.5 * 2); /* 强制固定2行高度：字号×行高×行数 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-date {
    color: #9ca3af;
    font-size: 13px;
    text-align: right;
}

/* 其他栏目部分 */
.other-column {
    padding: 60px 0;
    background: #f8fafc;
}

.other-column-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.party,
.league {
    flex: 1 1 300px;
}

.party h4,
.league h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 15px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.other-column .view-all {
    font-size: 24px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: normal;
    letter-spacing: 1px;
    border: none;
}

.other-column .view-all:hover {
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0,0,0,0.2);
    background: none;
}

.other-column-links {
    margin-top: 20px;
}

.other-column-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-column-links li {
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.other-column-links li:last-child {
    border-bottom: none;
}

.other-column-link {
    flex: 1;
    margin-right: 15px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.other-column-link:hover {
    color: #3b82f6;
    padding-left: 25px;
}

.other-column-link::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.other-column-link:hover::before {
    transform: translateY(-50%) translateX(5px);
}

.other-column-date {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

/* 照片展示部分 */
.photos {
    padding: 60px 0;
    background: white;
}

.photos-titles {
    margin-bottom: 30px;
}

.photos-titles ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}

.photos-titles ul li {
    position: relative;
}

.photos-titles ul li:not(:last-child)::after {
    content: '/';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.photos-title {
    display: block;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photos-title:hover,
.photos-title.active {
    color: #1e3a8a;
    border-bottom-color: #3b82f6;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    display: none;
}

.photos-grid.active {
    display: grid;
}

.photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 2 / 3;
}

.photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo:hover img {
    transform: scale(1.05);
}

/* 照片说明文字 */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

/* 底部模块 */
.bottom-section {
    padding: 80px 0;
    background: white;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.bottom-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.bottom-card h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
}

.bottom-card ul {
    list-style: none;
}

.bottom-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bottom-card li:last-child {
    border-bottom: none;
}

.bottom-card a {
    color: #374151;
    transition: color 0.3s ease;
}

.bottom-card a:hover {
    color: #3b82f6;
}

/* Footer样式 */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-column:first-child {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fbbf24;
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #e5e7eb;
    text-align: left;
}

.footer-links span::before {
    content: '•';
    color: #fbbf24;
    font-weight: bold;
}

.footer-column:last-child {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-end;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-item img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.qr-item img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.qr-label {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    max-width: 120px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #d1d5db;
    font-size: 14px;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-column:last-child {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .qr-item img {
        width: 100px;
        height: 100px;
    }
    
    .qr-label {
        font-size: 13px;
        max-width: 100px;
    }
}

.footer-bottom p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column:first-child {
        max-width: none;
        text-align: center;
    }
    
    .footer-column h4 {
        text-align: center;
    }
    
    .footer-links span {
        justify-content: center;
        text-align: center;
    }
    
    .footer-column:last-child {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-column img {
        width: 100px;
        height: 100px;
    }
}

/* 响应式设计 */
@media (max-width: 1110px) {
    .hamburger {
        display: flex;
    }

    .logo img {
        height: 50px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 80px);
        overflow-y: auto;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
    }

    /* 照片展示自适应 */
    .photos-titles {
        width: calc(100% + 30px);
        margin: 0 -15px 20px;
        overflow: hidden;
    }
    .photos-titles ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 15px 10px;
        scrollbar-width: none;
        border-bottom: 1px solid #e5e7eb;
    }
    .photos-titles ul::-webkit-scrollbar {
        display: none;
    }
    .photos-titles ul li::after {
        display: none;
    }
    .photos-titles ul li { 
        flex: 0 0 auto;
    }
    .photos-title { 
        padding: 10px 15px; 
        font-size: 14px;
        border-bottom: 2px solid transparent;
    }
    .photos-title.active {
        border-bottom-color: #3b82f6;
    }
    
    .photos-grid { grid-template-columns: 1fr; gap: 20px; }
    .photo { aspect-ratio: 16 / 9; }

    .news-grid,
    .announcement-grid,
    .bottom-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .banner {
        display: none;
    }

    .logo img {
        height: 30px;
    }
}
/* 首页样式结束 */

/* displayinfo页面样式开始 */
.article {
    padding: 5px 0;
}

.article .container {
    background-color: #ffffff;
}

.article-title {
    font-size: 24px;
    padding: 40px 0 10px;
    font-weight: bold;
    text-align: center;
}

.article-date {
    text-align: center;
    padding-bottom: 3px;
    position: relative;
}

.article-date::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #1e3a8a;
    position: absolute;
    bottom: -10px;
    left: 50%; 
    transform: translateX(-50%); 
}

.article-content {
    padding: 20px 0;
}

@media (max-width: 768px) {
    .article .container img {
        width: 100%;
    }
}

/* displayinfo页面样式结束 */

/* listcolumn页面样式开始 */
.article-section .container {
    display: flex;
    padding: 20px 0;
    box-sizing: border-box;
    align-items: flex-start;
    margin: 0 auto;
}

/* 左侧分类栏：窄栏 */
.category {
    width: 240px;
    padding: 16px;
    margin-right: 24px;
    flex-shrink: 0; 
}

.category .wp_listcolumn {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: none;
}

.category .wp_listcolumn .wp_column {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category .wp_listcolumn .wp_column a {
    background: none;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
}

.category .wp_listcolumn .wp_column a:hover {
    transform: translateY(-1px);
    font-weight: bold;
}

.category .wp_column.selected {
    background: #3b82f6;
    color: #ffffff;
    padding: 8px 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.category .wp_column.selected::after {
    content: "";
    border: solid #ffffff; 
    border-width: 0 2px 2px 0; 
    display: inline-block;
    padding: 3px; 
    transform: rotate(-45deg); 
    margin-left: 8px;
}

/* 右侧文章列表：宽栏（占剩余全部宽度） */
.article-list { 
    flex: 1;
    background-color: #ffffff;
    padding: 16px;
}

/* 自定义的文章列表， 系统列表， 系统列表项 */
.article-list .wp_article_list .list_item .Article_Index {
    /* 隐藏前方的圆点 */
    display: none; 
}

.article-list .wp_article_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-list .wp_article_list .list_item {
    transition: all 0.3s ease;
    display: flex;
}

.article-list .wp_article_list .list_item .pr_fields {
    flex: 1;
    min-width: 0;
}

.article-list .wp_article_list .list_item .ex_fields {
    width: 100px;
    flex-shrink: 0;
}

.article-list .wp_article_list .list_item .Article_Title {
    width: 100%;
}

.article-list .wp_article_list .list_item .Article_Title:hover {
    transform: translateY(-1px);
    font-weight: bold;
}

.article-list a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .article-section .container {
        flex-direction: column; 
    }
    .category {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px; 
    }

    .article-list {
        width: 100%;
    }
}





/* listcolumn页面样式结束 */
