/* ========================================
   塔坤建站 - 新闻列表页样式
   ======================================== */

.news-list-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--retro-red) 0%, #a33a2a 100%);
    color: var(--retro-light);
    text-align: center;
    border-bottom: var(--pixel-border) solid var(--retro-dark);
}

.news-list-title {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.news-list-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻分类筛选 */
.news-filter {
    padding: 30px 0;
    background: var(--retro-cream);
    border-bottom: 2px solid var(--retro-dark);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--retro-light);
    border: 2px solid var(--retro-dark);
    color: var(--retro-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--retro-red);
    color: var(--retro-light);
}

/* 新闻列表布局 */
.news-list-section {
    padding: 60px 0;
    background: var(--retro-light);
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-list-card {
    background: var(--retro-cream);
    border: 3px solid var(--retro-dark);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 8px 8px 0 var(--retro-dark);
}

.news-list-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--retro-dark);
}

.news-list-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
}

.news-list-date {
    color: var(--retro-red);
    font-weight: bold;
}

.news-list-category {
    background: var(--retro-blue);
    color: var(--retro-light);
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-list-title {
    font-size: 18px;
    color: var(--retro-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list-title:hover {
    color: var(--retro-red);
}

.news-list-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.news-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

.news-list-author {
    font-size: 13px;
    color: var(--retro-blue);
    font-weight: bold;
}

.news-list-link {
    color: var(--retro-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.news-list-link:hover {
    gap: 12px;
}

/* 新闻详情页样式 */
.news-detail-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--retro-blue) 0%, #2a4a6a 100%);
    color: var(--retro-light);
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-detail-date,
.news-detail-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-date::before,
.news-detail-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--retro-yellow);
    display: block;
}

.news-detail-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.news-detail-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 4px solid var(--retro-dark);
    margin-bottom: 40px;
}

.news-detail-content {
    padding: 60px 0;
    background: var(--retro-light);
}

.news-detail-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: var(--retro-dark);
}

.news-detail-body p {
    margin-bottom: 25px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--retro-dark);
    margin: 30px 0;
}

.news-detail-body h2 {
    font-size: 28px;
    color: var(--retro-dark);
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-detail-body li {
    margin-bottom: 10px;
}

/* 相关新闻 */
.related-news {
    padding: 60px 0;
    background: var(--retro-cream);
    border-top: 3px solid var(--retro-dark);
}

.related-title {
    font-size: 28px;
    color: var(--retro-dark);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-list-header,
    .news-detail-header {
        padding: 120px 0 40px;
    }
    
    .news-list-title,
    .news-detail-title {
        font-size: 32px;
    }
    
    .news-list-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-cover {
        height: 250px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
