/* ========================================
   尧图网站定制 - 新闻页面样式
   ======================================== */

/* News Header */
.news-header {
    padding: 10rem 5% 5rem;
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/news-pattern.svg') repeat;
    opacity: 0.1;
}

.news-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--tibetan-yellow);
}

.news-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* News List Section */
.news-list-section {
    padding: 5rem 5%;
    background: var(--light-cream);
}

.news-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* News Item Extended */
.news-item-extended {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-item-extended:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-item-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item-extended:hover .news-item-image {
    transform: scale(1.1);
}

.news-item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tibetan-yellow);
    color: var(--dark-brown);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-item-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-date {
    color: var(--tibetan-red);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-item-date::before {
    content: '📅';
}

.news-item-headline {
    font-size: 1.3rem;
    color: var(--tibetan-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.news-item-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.news-item-author {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-item-author::before {
    content: '✍️';
}

.news-read-more {
    color: var(--tibetan-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-read-more:hover {
    gap: 0.8rem;
}

/* News Detail Page */
.news-detail-section {
    padding: 5rem 5%;
    background: #fff;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-cream);
}

.news-detail-category {
    display: inline-block;
    background: var(--tibetan-red);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-detail-title {
    font-size: 2.5rem;
    color: var(--tibetan-blue);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.news-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-detail-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-hover);
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

/* Related News Section */
.related-news-section {
    padding: 5rem 5%;
    background: var(--light-cream);
    margin-top: 4rem;
}

.related-news-title {
    text-align: center;
    font-size: 2rem;
    color: var(--tibetan-blue);
    margin-bottom: 3rem;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* News Categories Filter */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--tibetan-blue);
    background: transparent;
    color: var(--tibetan-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--tibetan-blue);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .news-title {
        font-size: 2.2rem;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .news-detail-cover {
        height: 250px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }
}
