@charset "utf-8";

/* ===== 基础样式重置 ===== */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

a {
    color: #313131;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #095ab5;
}

/* ===== 头部样式 ===== */
.header {
    background: #00613b; /* 纯绿色背景 */
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 动态高度调整的基础样式 */
    height: auto;
    overflow: hidden;
}

.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: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    order: 1;
    margin-left: 10px;
}

/* 校徽样式 */
.logo-badge {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* 添加阴影增强可见性 */
}

.logo-badge:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* 学院名样式 */
.logo-college-name {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* 添加阴影增强可见性 */
}

.logo-college-name:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* ===== 导航样式已移至 old/menu/menu.css ===== */
/* 请确保在HTML中引入菜单样式：
<link rel="stylesheet" href="old/menu/menu.css"> */

/* ===== 主要内容区域样式 ===== */
.main1, .main2 {
    margin-top: 20px;
}

/* ===== 文章样式 ===== */
.post .tt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #00613b;
    padding-bottom: 10px;
    background: linear-gradient(135deg, #00613b 0%, #004d2a 100%);
    padding: 15px 20px;
    border-bottom: none;
}

.post .tit {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.post .tit .title {
    color: #fff;
}

.post .more_btn {
    margin: 0;
}

.post .more_text {
    color: #fff;
    font-size: 14px;
    transition: color 0.3s ease;
}

.post .more_text:hover {
    color: #f0f0f0;
}

.post .con {
    min-height: 200px;
    padding: 0;
}

/* 党建工作、学生工作、教学工作区域样式 */
.main2 .post.mbox {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.main2 .post.mbox:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.main2 .post.mbox .tt {
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.main2 .post.mbox .tit {
    font-weight: bold;
}

.main2 .post.mbox .con {
    min-height: 300px;
}

/* ===== 轮播图样式已移至 old/carousel/carousel.css ===== */
/* 请确保在HTML中引入轮播图样式：
<link rel="stylesheet" href="old/carousel/carousel.css"> */

/* ===== 页脚样式 ===== */
.footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin: 5px 0;
    color: #666;
    font-size: 12px;
}

/* ===== 友情链接样式已移至 old/menu/menu.css ===== */

/* ===== 新闻动态区域样式已移至 old/carousel/carousel.css ===== */

/* ===== 内容区域样式 ===== */
.main1 .post.mbox {
    min-height: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 通知公告区域样式 */
.main1 .col-lg-5 .post.mbox {
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.main1 .col-lg-5 .post.mbox:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== 响应式设计 ===== */

/* 大屏样式 (>= 1024px) */
@media (min-width: 1024px) {
    .header {
        min-height: 100px;
        padding: 20px 0;
    }
    
    /* 确保桌面端新闻动态和通知公告并排显示 */
    .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: 80px;
        padding: 15px 0;
    }
    
    /* 中屏标题样式 */
    .tt {
        margin-bottom: 15px;
    }
    
    .tit {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* 小屏样式 (< 768px) */
@media (max-width: 767px) {
    .header {
        padding: 12px 20px;
        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: 10px;
    }
    
    .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 15px;
        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: 10px;
    }
    
    .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;
    }
}

/*
菜单样式: old/menu/menu.css
- 导航样式
- 友情链接样式

轮播图样式: old/carousel/carousel.css
- 轮播图样式
- 新闻动态区域样式

请确保在对应的HTML文件中引入相应的样式文件。
*/