/* 新闻列表页面样式 - 精密智造·驱动未来主题 */

/* 主容器 */
.news-list-container {
    padding: 0 0 5rm 0;
    background: linear-gradient(to bottom, #f9f9f9 0%, white 100px);
}

.section-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem 2rem;
}


/* 子栏目导航 */
.news-subcategories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.subcategory-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.subcategory-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.subcategory-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 新闻列表网格 */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.date-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.news-read-more:hover {
    color: var(--accent-color);
}

.news-read-more i {
    transition: transform 0.3s;
}

.news-read-more:hover i {
    transform: translateX(5px);
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn, .pagination-next {
    padding: 0.8rem 1.2rem;
    background: white;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover, .pagination-next:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 科技感动画效果 */
@keyframes techGlow {
    0% { box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(157, 78, 221, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 78, 221, 0); }
}

.news-card:hover {
    animation: techGlow 1.5s infinite;
}

/* 工业美学细节 */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--highlight-color));
    transition: width 0.3s;
}

.news-card:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .news-list-grid {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }
}

@media (max-width: 1200px) {
    .news-list-grid {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .news-list-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-list-grid {
        grid-template-columns: minmax(250px, 1fr);
    }
    
    .news-image {
        height: 250px;
    }
}