/* 新闻列表样式 - 左右交替布局 */

.news-list-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.news-list-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.news-list-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.news-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.news-list-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 列表项基础样式 */
.news-list-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 移除偶数项反向排列 */
/* .news-list-item:nth-child(even) {
    flex-direction: row-reverse;
} */

/* 图片容器 */
.news-list-image {
    flex: 0 0 400px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

/* 内容容器 */
.news-list-content {
    flex: 1;
    position: relative;
}

.news-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-list-text {
    font-size: 1rem;
    color: #b0b8c8;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-list-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.news-list-date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

/* 新闻详情模态框样式 */
.news-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.news-detail-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 1;
    background: #1a1a2e;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.news-detail-container {
    padding: 40px;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.news-detail-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-detail-date {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.9;
}

.news-detail-body {
    color: #ffffff;
    font-size: 1.4rem;
}

/* 内容块样式 */
.content-block-item {
    margin-bottom: 50px;
    padding: 35px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.content-block-item:last-child {
    margin-bottom: 0;
}

.block-text {
    font-size: 1.6rem;
    line-height: 2.4;
    color: #ffffff;
    margin-bottom: 30px;
    white-space: pre-wrap;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.block-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.news-content {
    font-size: 1.6rem;
    line-height: 2.4;
    color: #ffffff;
    white-space: pre-wrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 滚动条样式 */
.modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-list-item,
    .news-list-item:nth-child(even) {
        flex-direction: column;
    }
    
    .news-list-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .news-list-date {
        position: static;
        margin-top: 10px;
        display: block;
    }
    
    .news-detail-container {
        padding: 25px;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}
