/* 新闻资讯页面样式 */

.section-news {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff5f5 100%);
}

/* 新闻概览 */
.news-overview {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(220, 53, 69, 0.05));
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #dc3545);
}

.news-overview h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.news-overview p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 新闻分类标签 */
.news-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.news-category {
    padding: 0.65rem 1.5rem;
    background: #fff;
    border-radius: 50px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.news-category:hover {
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.3);
}

.news-category.active {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
    border-color: transparent;
}

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

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -15px rgba(13, 110, 253, 0.2);
}

.news-card.featured {
    grid-column: span 2;
}

.news-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 55%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(220, 53, 69, 0.05));
    overflow: hidden;
}

.news-card.featured .news-card-image {
    padding-bottom: 45%;
}

.news-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(220, 53, 69, 0.1));
}

.news-image-placeholder i {
    font-size: 4rem;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-card.featured .news-image-placeholder i {
    font-size: 6rem;
}

.news-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-card-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border-radius: 50px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.news-card-content {
    padding: 1.75rem;
}

.news-card.featured .news-card-content {
    padding: 2rem;
}

.news-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card.featured .news-card-content h3 {
    font-size: 1.5rem;
}

.news-card:hover .news-card-content h3 {
    color: #0d6efd;
}

.news-card-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-readmore:hover {
    color: #dc3545;
    gap: 0.75rem;
}

/* 新闻详情页面 */
.section-news-detail {
    padding: 6rem 0;
    background: #f8fafc;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.news-detail-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(220, 53, 69, 0.1));
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.9rem;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-detail-image {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.detail-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(220, 53, 69, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-placeholder i {
    font-size: 6rem;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-detail-content {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.news-detail-content p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #0d6efd;
}

.news-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 1rem;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-detail-content li {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.news-detail-content blockquote {
    border-left: 4px solid #dc3545;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 0 8px 8px 0;
}

.news-detail-content blockquote p {
    margin: 0;
    font-style: italic;
    color: #64748b;
}

.news-detail-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.news-detail-share span {
    font-size: 0.9rem;
    color: #64748b;
}

.share-links {
    display: flex;
    gap: 0.75rem;
}

.share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
}

/* 相关新闻 */
.news-related {
    margin-top: 4rem;
}

.news-related h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-5px);
}

.related-news-image {
    width: 100%;
    padding-bottom: 55%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(220, 53, 69, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-news-image i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-news-content {
    padding: 1.25rem;
}

.related-news-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-news-content p {
    font-size: 0.825rem;
    color: #64748b;
    margin: 0;
}

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

.pagination-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.pagination-item:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.pagination-item.active {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    color: #fff;
    border-color: transparent;
}

.pagination-item.arrow {
    width: auto;
    padding: 0 1rem;
}

/* 咨询 CTA */
.news-cta {
    background: linear-gradient(135deg, #0d6efd, #dc3545);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.news-cta-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.news-cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-cta-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #0d6efd;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0d6efd;
}

/* 响应式 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.featured {
        grid-column: span 2;
    }

    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-news,
    .section-news-detail {
        padding: 4rem 0;
    }

    .news-overview {
        padding: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .news-card-content h3 {
        font-size: 1.15rem;
    }

    .news-card.featured .news-card-content h3 {
        font-size: 1.25rem;
    }

    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-detail-header,
    .news-detail-content {
        padding: 1.5rem;
    }

    .detail-image-placeholder {
        height: 250px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}