/* 三列新闻布局/* 每个新闻列的样式 */
.news-column {
    flex: 1;
    min-width: 270px; /* 最小宽度，小屏幕会自动折行 */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    height: 320px; /* 固定列的高度 */
    position: relative; /* 为绝对定位的子元素提供参考 */
}s-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

/* 每个新闻列的样式 */
.news-column {
    flex: 1;
    min-width: 270px; /* 最小宽度，小屏幕会自动折行 */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    height: 320px; /* 固定列的高度为320px */
    position: relative; /* 添加相对定位以便于绝对定位"点击查看更多" */
}

/* 中间新闻列特殊样式 - 设置更宽的弹性比例 */
.news-section .news-container .news-column:nth-child(2) {
    flex: 1.5; /* 让中间列的宽度是其他列的1.5倍 */
}

/* 响应式调整 */
@media (max-width: 992px) {
    /* 在平板和手机上，三列采用相同宽度以避免布局问题 */
    .news-section .news-container .news-column:nth-child(2) {
        flex: 1;
    }
}

@media (max-width: 768px) {
    /* 在小屏设备上,调整为堆叠布局 */
    .news-container {
        flex-direction: column;
    }
    
    .news-column {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* 新闻幻灯片列样式 */
.news-column .news-slider {
    height: 320px; /* 固定高度与列高度一致 */
    position: relative;
}

.news-column .news-slider img {
    width: 100%;
    height: 100%; /* 改为100%以填满整个slider容器 */
    object-fit: cover; /* 确保图片填充区域且不失真 */
}

.news-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 12px; /* 稍微减少内边距 */
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    font-size: 14px; /* 稍微减小字体 */
    line-height: 1.3; /* 调整行高 */
}

.news-slider-dots {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-end;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.news-dot {
    width: 8px; /* 缩小dot尺寸 */
    height: 8px;
    margin: 0 3px; /* 调整间距 */
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.news-dot.active {
    background-color: #c52026; /* 主题红色 */
}

/* 标签页基础样式 */
.news-column .news-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.news-column .news-tab {
    padding: 10px 0; /* 减小标签页的高度 */
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.news-column .news-tab.active {
    color: #c52026;
}

.news-column .news-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.news-column .news-tab.active::after {
    background-color: #c52026;
}

/* 新闻内容样式 */
.news-column .news-content {
    display: none;
    padding: 5px 15px 25px; /* 增加底部内边距为"查看更多"留出空间 */
    height: 280px; /* 固定内容区高度，减去标签高度，并为"查看更多"留出空间 */
    overflow-y: auto; /* 内容过多时显示滚动条 */
}

.news-column .news-content.active {
    display: block;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    padding: 2px 0; /* 进一步减小每个项目的内边距 */
    border-bottom: 1px dashed #e5e5e5;
    margin-bottom: 12px; /* 减少项目之间的间距 */
}

.news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-list a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-list a:hover {
    color: #c52026;
}

.news-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #c52026;
}

.news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-more {
    text-align: left;
    padding-left: 15px;
    position: absolute;
    bottom: 8px;
    left: 0;
}

.view-more a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.view-more a:hover {
    color: #c52026;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-column {
        min-width: 48%; /* 两列布局 */
    }
}

@media (max-width: 768px) {
    .news-column {
        min-width: 100%; /* 一列布局 */
    }
}
