/* ========================================
   News Page Styles
   新闻列表页和详情页样式
   ======================================== */

/* ========================================
   News List Page - 新闻列表页
   ======================================== */

/* Press Section */
.press-section {
    padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-4xl);
    background-color: #f9fafb;
}

.press-header {
    margin-bottom: var(--spacing-3xl);
}

.press-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.press-description {
    font-size: var(--font-size-base);
    color: var(--text-primary-dark-lighter);
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

/* News Card */
.news-card {
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.news-card-date {
    font-size: var(--font-size-xs);
    color: var(--text-primary-dark-lighter);
}

.news-card-divider {
    width: 1px;
    height: 12px;
    background-color: #d1d5db;
}

.news-card-category {
    font-size: var(--font-size-xs);
    color: var(--text-primary-dark-lighter);
}

.news-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary-dark);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: var(--color-primary);
}

/* Insights Section */
.insights-section {
    padding: var(--spacing-4xl) 0;
    background-color: #f9fafb;
}

.insights-header {
    margin-bottom: var(--spacing-3xl);
}

.insights-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.insights-description {
    font-size: var(--font-size-base);
    color: var(--text-primary-dark-lighter);
    margin: 0;
}

/* ========================================
   News Detail Page - 新闻详情页
   ======================================== */
.news-detail-section {
    padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-4xl);
    background-color: #fff;
}

.news-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Article Meta */
.news-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.news-detail-date {
    font-size: var(--font-size-sm);
    color: var(--text-primary-dark-lighter);
}

.news-detail-meta-divider {
    width: 1px;
    height: 14px;
    background-color: #d1d5db;
}

.news-detail-category {
    font-size: var(--font-size-sm);
    color: var(--text-primary-dark-lighter);
}

/* Article Title */
.news-detail-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-2xl);
}

/* Article Featured Image */
.news-detail-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.news-detail-content {
    font-size: var(--font-size-base);
    color: var(--text-primary-dark);
    line-height: 1.8;
}

.news-detail-content p {
    color: var(--text-primary-dark);
    margin-bottom: var(--spacing-lg);
}

.news-detail-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.news-detail-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .press-section {
        padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }

    .press-title {
        font-size: var(--font-size-2xl);
    }

    .insights-title {
        font-size: var(--font-size-xl);
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .news-card-image {
        height: 200px;
    }

    .news-detail-section {
        padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-2xl);
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-content {
        font-size: var(--font-size-sm);
    }
}

@media screen and (max-width: 480px) {
    .press-title {
        font-size: var(--font-size-xl);
    }

    .news-card-image {
        height: 160px;
    }

    .news-detail-title {
        font-size: 20px;
    }
}
