/* 新闻动态页面专用样式 */

/* 新闻分类导航 */
.news-categories {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 新闻列表 */
.news-list {
    padding: 60px 0;
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.image-placeholder i {
    font-size: 3rem;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.read-more i {
    font-size: 0.9rem;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-btn.next {
    width: auto;
    padding: 0 15px;
    border-radius: 25px;
}

/* 热门文章 */
.popular-articles {
    padding: 80px 0;
    background: white;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.popular-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.popular-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.popular-rank {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-content p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.views, .likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.views i, .likes i {
    color: var(--primary-color);
}

/* 订阅新闻 */
.news-subscription {
    padding: 80px 0;
    background: var(--light-bg);
}

.subscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.subscription-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.subscription-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

.subscription-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 250, 0.1);
}

.form-group .btn {
    padding: 15px 25px;
    border-radius: 10px;
    white-space: nowrap;
}

.form-tip {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    margin: 0;
}

/* 新闻分类样式 */
.news-item.company .image-placeholder {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.news-item.product .image-placeholder {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.news-item.industry .image-placeholder {
    background: linear-gradient(135deg, #45b7d1, #96c93d);
}

.news-item.tech .image-placeholder {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        gap: 15px;
    }
    
    .category-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .popular-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .popular-rank {
        align-self: center;
    }
    
    .subscription-form {
        padding: 30px 20px;
    }
    
    .subscription-text h2 {
        font-size: 2rem;
    }
}
