/* 新闻资讯标签页样式 */
.news-section {
    /* padding: 20px 0; */
    /* background-color: #f8f9fa; */
}

.news-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.news-slider {
    flex: 1;
    /* min-width: calc(33.33% - 10px);
    max-width: calc(33.33% - 10px); */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 320px;
}

.news-slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-slider img {
    width: 100%;
    height: 100%; /* 改为100%以填满整个容器 */
    object-fit: cover;
    display: block;
}

.news-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 12px 15px; /* 稍微减少内边距 */
    font-size: 14px; /* 稍微减小字体 */
    line-height: 1.3; /* 调整行高 */
}

.news-slider-dots {
    position: absolute;
    bottom: 10px; /* 稍微向上调整 */
    right: 10px;
    display: flex;
    gap: 4px; /* 减小间距 */
    z-index: 10;
    padding: 6px 8px; /* 稍微减小内边距 */
    background-color: rgba(0, 0, 0, 0.2); /* 添加半透明背景 */
    border-radius: 10px; /* 稍微减小圆角 */
}

.news-dot {
    width: 8px; /* 缩小dot尺寸 */
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px; /* 缩小外边距 */
    position: relative; /* 为伪元素定位准备 */
}

/* 添加悬停效果 */
.news-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 给点添加一个看不见的更大的点击区域 */
.news-dot::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px; 
    bottom: -5px;
    border-radius: 50%;
}

.news-dot.active {
    background-color: #c52026; /* 网站通用的红色 */
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(197, 32, 38, 0.7); /* 为活跃的点添加光晕效果 */
}

.news-tabs-container {
    flex: 2;
    /* min-width: calc(66.66% - 10px);
    max-width: calc(66.66% - 10px); */
    margin-top: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 320px;
}

.news-tabs {
    display: flex;
    border-bottom: 1.5px solid #d9d9d9;
    margin-bottom: 20px;
}

.news-tab {
    padding: 10px 30px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
}

.news-tab.active {
    color: #c52026;
    border-bottom: 1.5px solid #c52026;
    margin-bottom: -2px;
}

.news-tab:hover {
    color: #c52026;
}

.news-content {
    display: none;
}

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

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

.news-list li {
    margin-bottom: 20px;
    padding: 0 10px;
    list-style-type: none !important;
}

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

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

.news-list a:hover .news-icon {
    transform: translateX(5px);
}

.news-icon {
    color: #c52026;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

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

.view-more {
    text-align: right;
    margin: 20px 0 0;
}

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

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

/* 响应式布局 */
@media (max-width: 992px) {
    .news-container {
        flex-direction: column;
    }
    
    .news-slider, .news-tabs-container {
        flex: 0 0 100%;
    }
    
    .news-slider {
        margin-bottom: 20px;
    }
}
