/* =========================================
   News Styles - 新闻资讯页面样式
   Project: sosoll.com
   ========================================= */

/* News List */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.news-date::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--neon-blue);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--neon-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 12px;
    color: var(--neon-green);
}

/* News Detail */
.article-header {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta span::before {
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.article-cover {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

/* Related News Section */
.related-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* News Categories in Detail */
.news-category-group {
    margin-bottom: 50px;
}

.category-group-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

.category-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-cover {
        height: 250px;
    }
    
    .article-content {
        font-size: 1rem;
    }
}
