/* 新闻容器样式 */
.feature-box {
    background-color: #0d6efd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 新闻标题样式 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0d6efd;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-header h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

/* 更多按钮样式 */
.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* 新闻项目样式 */
.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 裁剪图片以适应容器 */
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* 内容区域样式 */
.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 日期徽章样式 */
.date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* 日期数字样式 */
.day {
    font-size: 2.2rem;
    margin-bottom: 2px;
}

/* 月份样式 */
.month {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* 标题样式 */
.news-content h5 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
}

/* 标题链接样式 */
.news-content h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h5 a:hover {
    color: #0d6efd;
}

/* 摘要样式 */
.excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    min-height: 40px;
}

/* 图片容器样式 */
.news-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px; /* 设置固定高度 */
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例裁剪填充 */
    transition: transform 0.3s ease;
}

.news-image-container img:hover {
    transform: scale(1.05);
}

/* 日期标签覆盖层样式 */
.date-badge-overlay {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(254, 254, 254, 1); /* 半透明黑色背景 */
    color: blue;
    padding: 5px 10px;
    border-radius: 0px;
    z-index: 2;
}

.date-badge-overlay .day {
    font-size: 26px;
    font-weight: bold;
    display: block;
}

.date-badge-overlay .month {
    font-size: 12px;
    display: block;
}

/* 移除原来的日期样式 */
.news-content .date-badge {
    display: none; /* 隐藏原来在内容区域的日期 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .news-header h2 {
        margin-bottom: 10px;
    }
    
    .btn-outline-light {
        margin-top: 10px;
    }
    
    .news-item {
        height: auto;
    }
    
    .news-image {
        height: 150px;
    }
    
    .date-badge {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .day {
        font-size: 1rem;
    }
    
    .month {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .news-item {
        height: 100%;
    }
}

/* 不同主题选项 */

/* 蓝色主题（默认） */
.feature-box.blue-theme {
    background-color: #0d6efd;
}

.date-badge.blue-theme {
    background-color: #0d6efd;
}

/* 红色主题 */
.feature-box.red-theme {
    background-color: #dc3545;
}

.date-badge.red-theme {
    background-color: #dc3545;
}

/* 绿色主题 */
.feature-box.green-theme {
    background-color: #28a745;
}

.date-badge.green-theme {
    background-color: #28a745;
}

/* 橙色主题 */
.feature-box.orange-theme {
    background-color: #fd7e14;
}

.date-badge.orange-theme {
    background-color: #fd7e14;
}