@charset "utf-8";

/* ===== 基础样式重置 ===== */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 13px;
    color: var(--color-text-primary);
    line-height: 1.6;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* ===== 头部样式 ===== */
.header {
    background: var(--gradient-primary-dark);
    padding: 20px 40px;
    box-shadow: 0 4px 20px var(--color-black-rgba-15);
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 动态高度调整的基础样式 */
    height: auto;
    overflow: hidden;
    border-bottom: 3px solid var(--color-primary);
}

.header .container {
    height: 100%;
    max-width: 100%;
    position: relative;
}

.header .row {
    height: 100%;
    align-items: center;
    margin: 0;
}

.header .col-12 {
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
}

/* Header Logo 容器样式 */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    order: 1;
    margin-left: 10px;
}

/* 校徽样式 */
.logo-badge {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px var(--color-black-rgba-40)) brightness(1.1);
}

.logo-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px var(--color-black-rgba-50)) brightness(1.15);
}

/* 学院名样式 */
.logo-college-name {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px var(--color-black-rgba-40)) brightness(1.1);
}

.logo-college-name:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px var(--color-black-rgba-50)) brightness(1.15);
}

/* ===== 导航样式已移至 old/menu/menu.css ===== */
/* 请确保在HTML中引入菜单样式：
<link rel="stylesheet" href="old/menu/menu.css"> */

/* ===== 主要内容区域样式 ===== */
.main1, .main2 {
    margin-top: 40px;
    padding: 0 20px;
}

/* 桌面端内容容器优化 */
@media (min-width: 1200px) {
    .main1 .container,
    .main2 .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* 满屏宽度容器样式 */
.wrapper.main2 {
    width: 100%;
    padding: 0;
}

.wrapper.main2 .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.wrapper.main2 .row {
    margin-left: 0;
    margin-right: 0;
}

/* 三个模块满屏一行显示，保持适当间距 */
.wrapper.main2 .col-lg-4 {
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.wrapper.main2 .col-lg-4:first-child {
    padding-left: 50px;
}

.wrapper.main2 .col-lg-4:last-child {
    padding-right: 50px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .wrapper.main2 .col-lg-4 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .wrapper.main2 .col-lg-4:first-child {
        padding-left: 20px;
    }
    
    .wrapper.main2 .col-lg-4:last-child {
        padding-right: 20px;
    }
}

/* ===== 文章样式 ===== */
.post .tt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary-dark);
    padding-bottom: 10px;
    background: var(--gradient-primary-dark);
    padding: 15px 20px;
    border-bottom: none;
}

.post .tit {
    margin: 0;
    font-size: 18px;
    color: var(--color-text-white);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.post .tit .title {
    color: var(--color-text-white);
}

.post .more_btn {
    margin: 0;
}

.post .more_text {
    color: var(--color-text-white);
    font-size: 14px;
    transition: color 0.3s ease;
}

.post .more_text:hover {
    color: var(--color-text-light);
}

.post .con {
    min-height: 200px;
    padding: 0;
}

/* 党建工作、学生工作、教学工作区域样式 */
.main2 .post.mbox {
    background: var(--color-bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-black-rgba-10);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--color-border-light);
}

.main2 .post.mbox:hover {
    box-shadow: 0 8px 30px var(--color-black-rgba-15);
    transform: translateY(-4px);
    border-color: var(--color-primary-rgba-20);
}

.main2 .post.mbox .tt {
    padding: 20px 25px;
    margin-bottom: 25px;
    background: var(--gradient-primary-dark);
    border-radius: 8px;
}

.main2 .post.mbox .tit {
    font-weight: 700;
    font-size: 20px;
}

.main2 .post.mbox .con {
    min-height: 300px;
}

/* ===== 轮播图样式已移至 old/carousel/carousel.css ===== */
/* 请确保在HTML中引入轮播图样式：
<link rel="stylesheet" href="old/carousel/carousel.css"> */

/* ===== 页脚样式 ===== */
.footer {
    background-color: var(--color-bg-light-gray);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin: 5px 0;
    color: var(--color-text-secondary);
    font-size: 12px;
}

/* ===== 友情链接样式已移至 old/menu/menu.css ===== */

/* ===== 新闻动态区域样式已移至 old/carousel/carousel.css ===== */

/* ===== 内容区域样式 ===== */
.main1 .post.mbox {
    min-height: 400px;
    background: var(--color-bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--color-black-rgba-10);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main1 .post.mbox:hover {
    box-shadow: 0 8px 30px var(--color-black-rgba-15);
    transform: translateY(-2px);
}

/* 通知公告区域样式 */
.main1 .col-lg-5 .post.mbox {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main1 .col-lg-5 .post.mbox:hover {
    box-shadow: 0 8px 30px var(--color-black-rgba-15);
    transform: translateY(-2px);
}

/* ===== 响应式设计 ===== */

/* 大屏样式 (>= 1024px) */
@media (min-width: 1024px) {
    .header {
        min-height: 120px;
        padding: 25px 50px;
    }
    
    .logo-badge {
        height: 80px;
    }
    
    .logo-college-name {
        height: 70px;
    }
    
    .header-logo-container {
        gap: 35px;
    }
    
    /* 确保桌面端新闻动态和通知公告并排显示 */
    .main1 .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .main1 .col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    
    .main1 .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* 中屏样式 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header {
        min-height: 100px;
        padding: 18px 30px;
    }
    
    .logo-badge {
        height: 65px;
    }
    
    .logo-college-name {
        height: 55px;
    }
    
    /* 中屏标题样式 */
    .tt {
        margin-bottom: 15px;
    }
    
    .tit {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* 小屏样式 (< 768px) */
@media (max-width: 767px) {
    .header {
        padding: 12px 15px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Header Logo 移动端样式 */
    .header-logo-container {
        gap: 12px;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
        order: 1;
        margin-left: 0;
        flex: 1;
    }
    
    .logo-badge {
        height: 45px;
    }
    
    .logo-college-name {
        height: 38px;
    }
    
    .news_date {
        margin-bottom: 8px;
    }
    
    .news_title a {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 移动端标题样式 */
    .tt {
        margin-bottom: 15px;
    }
    
    .tit {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* 移动端间距调整 */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .col-md-12 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 党建工作、学生工作、教学工作响应式调整 */
    .main2 .post.mbox {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .main2 .post.mbox .con {
        min-height: 250px;
    }
}

/* 小屏幕手机样式 (≤ 480px) */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-logo-container {
        gap: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        order: 1;
        margin-left: 0;
        flex: 1;
    }
    
    .logo-badge {
        height: 45px;
    }
    
    .logo-college-name {
        height: 38px;
    }
}

/* 中屏和小屏模式下header图片填充 */
@media (max-width: 1023px) {
    .header {
        background-size: 100% 100%;
        background-position: center center;
        padding: 5px 0;
    }
}

/* 大屏模式下header显示完整图片 */
@media (min-width: 1024px) {
    .header {
        background-size: 100% 100%;
        background-position: center center;
    }
}

/* ===== 样式模块化说明 ===== */
/* 
以下样式已拆分到对应的模块化文件中：

首页特定样式: old/css/main.css
- 新闻列表样式
- 新闻动态区域样式

列表页特定样式: old/css/listcolumn.css  
- 面包屑导航样式
- 新闻列表样式
- 分页样式
- 侧边栏样式
- 列表页布局样式

详情页特定样式: old/css/displayinfo.css
- 文章详情页样式
- 文章容器样式
- 文章标题样式
- 文章元信息样式
- 文章内容样式
- 文章附件样式
- 文章导航样式

/* Footer styles - 使用Bootstrap栅格系统 */
.footer-text {
    text-align: left;
}

.qrcode-image {
    transition: opacity 0.3s ease;
}

.qrcode-image:hover {
    opacity: 0.8;
}

/* 中屏响应式调整 */
@media (max-width: 991px) and (min-width: 768px) {
    .footer-logo .logo-badge {
        width: 45px !important;
        height: 45px !important;
    }
    
    .footer-logo .logo-college-name {
        width: 160px !important;
        height: 45px !important;
    }
    
    .footer-qrcode .qrcode-image {
        width: 70px !important;
        height: 70px !important;
    }
}

/* 小屏响应式调整 - 放大文字和图片 */
@media (max-width: 767px) {
    .footer-logo .logo-badge {
        width: 60px !important;
        height: 60px !important;
    }
    
    .footer-logo .logo-college-name {
        width: 200px !important;
        height: 60px !important;
    }
    
    .footer-qrcode .qrcode-image {
        width: 90px !important;
        height: 90px !important;
    }
    
    .footer-text .copyright {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    .footer-qrcode .qrcode-text {
        font-size: 14px !important;
    }
}

/*
菜单样式: old/menu/menu.css
- 导航样式
- 友情链接样式

轮播图样式: old/carousel/carousel.css
- 轮播图样式
- 新闻动态区域样式

请确保在对应的HTML文件中引入相应的样式文件。
*/

/* ===== 轮播图样式 (slideBox) - 满屏大轮播图 ===== */
.wrapper.mbanner {
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--color-text-black);
    position: relative;
    overflow: hidden;
}

.slideBox {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 轮播图左右切换按钮 */
.slideBox .prev,
.slideBox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-overlay-dark);
    border: none;
    border-radius: 50%;
    color: var(--color-text-white);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    user-select: none;
    line-height: 1;
}

.slideBox:hover .prev,
.slideBox:hover .next {
    opacity: 1;
}

.slideBox .prev {
    left: 20px;
}

.slideBox .next {
    right: 20px;
}

.slideBox .prev:hover,
.slideBox .next:hover {
    background: var(--color-primary-dark-rgba-80);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px var(--color-black-rgba-40);
}

.slideBox .prev:active,
.slideBox .next:active {
    transform: translateY(-50%) scale(1.05);
}

.slideBox .prev:focus,
.slideBox .next:focus {
    outline: 2px solid var(--color-text-white);
    outline-offset: 2px;
}

.slideBox .hd {
    height: 15px;
    overflow: hidden;
    position: absolute;
    right: 50px;
    bottom: 30px;
    z-index: 10;
}

.slideBox .hd ul {
    overflow: hidden;
    zoom: 1;
    float: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slideBox .hd ul li {
    float: left;
    margin-right: 10px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    line-height: 14px;
    text-align: center;
    background: var(--color-white-rgba-40);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--color-white-rgba-50);
}

.slideBox .hd ul li:hover {
    background: var(--color-white-rgba-70);
    border-color: var(--color-white-rgba-70);
}

.slideBox .hd ul li.on {
    background: var(--color-text-white);
    border-color: var(--color-text-white);
    width: 30px;
    border-radius: 6px;
}

.slideBox .bd {
    position: relative;
    height: 100%;
    z-index: 0;
}

.slideBox .bd ul {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.slideBox .bd li {
    zoom: 1;
    vertical-align: middle;
    position: relative;
    height: 100%;
}

.slideBox .bd li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.slideBox .bd li a p {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 32px;
    color: var(--color-text-white);
    letter-spacing: 2px;
    font-weight: 700;
    width: 80%;
    max-width: 1200px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 4px 12px var(--color-overlay-darkest);
}

/* 桌面端轮播图标题优化 */
@media (min-width: 1200px) {
    .slideBox .bd li a p {
        font-size: 36px;
        bottom: 60px;
    }
    
    .slideBox .prev,
    .slideBox .next {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .slideBox .prev {
        left: 30px;
    }
    
    .slideBox .next {
        right: 30px;
    }
}

.slideBox .bd li::before {
    position: absolute;
    width: 100%;
    height: 150px;
    content: '';
    bottom: 0;
    left: 0;
    background: var(--gradient-overlay);
    z-index: 3;
}

.slideBox .bd img {
    width: 100%;
    height: 600px;
    display: block;
    object-fit: cover;
}

/* 桌面端轮播图图片优化 */
@media (min-width: 1200px) {
    .slideBox .bd img {
        height: 650px;
    }
}

/* 响应式调整 */
@media (max-width: 1199px) and (min-width: 769px) {
    .slideBox {
        height: 500px;
    }
    
    .slideBox .bd img {
        height: 500px;
    }
    
    .slideBox .bd li a p {
        font-size: 28px;
        bottom: 45px;
    }
    
    .slideBox .prev,
    .slideBox .next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .slideBox .prev {
        left: 15px;
    }
    
    .slideBox .next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .slideBox {
        height: 300px;
    }
    
    .slideBox .bd img {
        height: 300px;
    }
    
    .slideBox .bd li a p {
        font-size: 16px;
        bottom: 30px;
        left: 20px;
        transform: none;
        width: calc(100% - 40px);
        text-align: left;
    }
    
    .slideBox .hd {
        right: 20px;
        bottom: 20px;
    }
    
    .slideBox .hd ul li {
        width: 10px;
        height: 10px;
        margin-right: 8px;
    }
    
    .slideBox .hd ul li.on {
        width: 24px;
    }
    
    .slideBox .prev,
    .slideBox .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        opacity: 0.8;
    }
    
    .slideBox .prev {
        left: 10px;
    }
    
    .slideBox .next {
        right: 10px;
    }
}

/* ===== 页脚导航区域样式 ===== */
.nav.wp-navi.footer-nav {
    background-color: var(--color-primary-dark) !important;
}

.nav.wp-navi.footer-nav hr {
    border-color: var(--color-white-rgba-30) !important;
    margin: 20px 0;
}

.nav.wp-navi.footer-nav .footer {
    background-color: transparent !important;
    padding: 10px 0;
}

.nav.wp-navi.footer-nav .copyright {
    color: var(--color-text-white) !important;
}

/* ===== 文章附件区域样式 ===== */
.article-attachments-box {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-bg-light-gray);
    border-radius: 8px;
}

.article-attachments-list {
    list-style: none;
    padding: 0;
}

.article-attachments-list li {
    margin: 10px 0;
}

.article-attachments-list a {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}