/* 新闻页面专用样式 */
.news-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* 新闻页面英雄区域 */
.news-hero {
    background: transparent;
    padding: 80px 0;
    text-align: center;
}

.news-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 新闻分类 */
.news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.category-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* 容器 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头条新闻 */
.featured-news {
    padding: 80px 0;
}

.featured-article {
    margin-top: 50px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.featured-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.featured-image {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(80, 227, 194, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::before {
    content: '📰';
    font-size: 4rem;
    opacity: 0.5;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category.release { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.category.tutorial { background: rgba(33, 150, 243, 0.2); color: #2196F3; }
.category.community { background: rgba(156, 39, 176, 0.2); color: #9C27B0; }
.category.showcase { background: rgba(255, 152, 0, 0.2); color: #FF9800; }

.date, .read-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.read-more-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* 新闻网格布局 */
.news-grid-section {
    padding: 80px 0;
    background: transparent;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.news-image {
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

.image-placeholder.small {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(80, 227, 194, 0.2));
}

.image-placeholder.small::before {
    content: '📄';
    font-size: 2rem;
    opacity: 0.6;
}

.news-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.author {
    font-weight: 500;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-widget h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag:hover {
    background: rgba(74, 144, 226, 0.3);
    color: white;
    transform: scale(1.05);
}

/* 最新评论 */
.recent-comments {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.comment-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* 邮件订阅 */
.newsletter-signup p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.signup-form {
    display: flex;
    gap: 10px;
}

.email-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
    border-color: rgba(74, 144, 226, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* 统计信息 */
.stats-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 20px 0;
}

.page-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    background: rgba(74, 144, 226, 0.3);
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #4a90e2 0%, #50e3c2 100%);
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-dots {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
}

/* 筛选动画 */
.news-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.news-item.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .featured-info h3 {
        font-size: 1.6rem;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .stats-widget {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .signup-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 60px 0;
    }
    
    .news-hero-title {
        font-size: 2rem;
    }
    
    .featured-content,
    .sidebar-widget,
    .news-item {
        padding: 20px;
    }
    
    .featured-info h3 {
        font-size: 1.4rem;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .article-stats {
        gap: 15px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
