/* ===== 首页特定样式 ===== */
/* 从 old/style.css 中提取的首页相关样式 */

/* ===== 新闻列表样式 ===== */

/* 调整Bootstrap list-group中日期标签的位置 */
.list-group-item .badge {
    margin-top: -17px;
}

/* 新闻列表样式 */
.news_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news_list .news {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    min-height: 60px;
}

.news_list .news:hover {
    background-color: #f8f9fa;
}

.news_list .news:last-child {
    border-bottom: none;
}

.news_date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    margin-right: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 6px 4px;
    flex-shrink: 0;
}

.news_year {
    font-size: 14px;
    font-weight: bold;
    color: #00613b;
    line-height: 1;
}

.news_days {
    font-size: 12px;
    color: #666;
    line-height: 1;
    margin-top: 2px;
}

.news_title {
    flex: 1;
}

.news_title a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
    font-weight: 400;
}

.news_title a:hover {
    color: #00613b;
    text-decoration: none;
}

/* 党建工作、教学科研、学生工作的字体样式 - 与通知公告列表保持一致 */
.main2 .post.mbox .list-group-item a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

.main2 .post.mbox .list-group-item a:hover {
    color: #00613b !important;
    text-decoration: none !important;
}

.main2 .post.mbox .list-group-item a:visited {
    color: #333 !important;
    text-decoration: none !important;
}

/* ===== 新闻动态区域样式 ===== */
.main1 .post.mbox .con {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main1 .post.mbox .carousel-container {
    flex-shrink: 0;
}

.main1 .post.mbox .news-section {
    flex: 1;
}

/* ===== 响应式设计 - 首页特定 ===== */

/* 大屏样式 (>= 1050px) - 首页特定 */
@media (min-width: 1050px) {
    /* 桌面端轮播图和新闻列表并排显示 */
    .main1 .post.mbox .con {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }
    
    .main1 .post.mbox .carousel-container {
        flex: 0 0 320px;
        margin-bottom: 0;
    }
    
    .main1 .post.mbox .news-section {
        flex: 1;
        min-width: 0;
    }
}

/* 小屏样式 (< 1050px) - 首页特定 */
@media (max-width: 1049px) {
    /* 移动端内容布局 */
    .main1 .post.mbox .con {
        flex-direction: column;
        gap: 20px;
    }
    
    .main1 .post.mbox .carousel-container {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}

/* 轮播图标题样式 - 图片下方 */
.carousel-title-below {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #00613b;
    border-top: 1px solid #e9ecef;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.carousel-title-below h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.carousel-title-below h5 a,
.carousel-title-below h5 a[target="_blank"],
.carousel-title-below h5 a[title] {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 10px;
    margin: 0;
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.carousel-title-below h5 a:hover,
.carousel-title-below h5 a[target="_blank"]:hover,
.carousel-title-below h5 a[title]:hover {
    color: #00613b !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 97, 59, 0.3);
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 轮播图标题响应式设计 */
@media (max-width: 768px) {
    .carousel-title-below {
        padding: 15px 20px;
    }
    
    .carousel-title-below h5 {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .carousel-title-below {
        padding: 12px 15px;
    }
    
    .carousel-title-below h5 {
        font-size: 14px;
        line-height: 1.3;
    }
}

