/* Hero Section */
.news-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.news-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.news-hero .breadcrumb {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.news-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.news-hero .breadcrumb-item.active {
    color: white;
}

/* News Filter */
.news-filter .nav-pills .nav-link {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.news-filter .nav-pills .nav-link:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transform: translateY(-2px);
}

.news-filter .nav-pills .nav-link.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-alpha-30);
}

/* Featured News Card */
.featured-news-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.featured-news-card .news-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-news-card:hover .news-image img {
    transform: scale(1.05);
}

.featured-news-card .news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--theme-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.featured-news-card .news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.featured-news-card .news-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.featured-news-card .news-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Sidebar News */
.sidebar-news {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.sidebar-news .sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 0.5rem;
}

.sidebar-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: var(--bg-light);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
}

.sidebar-news-item .news-date {
    background: var(--theme-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    min-width: 50px;
    height: fit-content;
}

.sidebar-news-item .news-content h5 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sidebar-news-item .news-category {
    font-size: 0.75rem;
    color: var(--theme-primary);
    background: var(--primary-alpha-10);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* News Cards Grid */
.news-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card .news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--theme-primary);
    color: var(--text-white);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-card .news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.news-card .news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.news-card .news-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.news-card .read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border: none;
    background: var(--theme-success);
    font-weight: 500;
}

.newsletter-form .btn:hover {
    background: var(--success-dark);
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--theme-primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    color: var(--text-white);
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    box-shadow: 0 4px 15px var(--primary-alpha-30);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .news-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .news-filter .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .featured-news-card .news-content {
        padding: 1.5rem;
    }
    
    .featured-news-card .news-title {
        font-size: 1.25rem;
    }
    
    .sidebar-news {
        margin-top: 2rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-form .form-control {
        border-radius: 15px 15px 0 0;
    }
    
    .newsletter-form .btn {
        border-radius: 0 0 15px 15px;
    }
}

@media (max-width: 576px) {
    .news-hero {
        padding: 80px 0 60px;
    }
    
    .news-hero .hero-title {
        font-size: 2rem;
    }
    
    .featured-news-card .news-image {
        height: 200px;
    }
    
    .news-card .news-image {
        height: 150px;
    }
    
    .sidebar-news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-news-item .news-date {
        align-self: flex-start;
        min-width: auto;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category Colors - 统一使用主题色系的不同深浅 */
.news-item[data-category="company"] .news-category {
    background: var(--theme-primary);
    color: var(--text-white);
}

.news-item[data-category="industry"] .news-category {
    background: var(--primary-light);
    color: var(--text-white);
}

.news-item[data-category="technology"] .news-category {
    background: var(--primary-dark);
    color: var(--text-white);
}

.news-item[data-category="exhibition"] .news-category {
    background: var(--theme-dark);
    color: var(--text-white);
}

.sidebar-news-item[data-category="company"] .news-category {
    background: var(--primary-alpha-10);
    color: var(--theme-primary);
}

.sidebar-news-item[data-category="industry"] .news-category {
    background: var(--primary-alpha-20);
    color: var(--primary-light);
}

.sidebar-news-item[data-category="technology"] .news-category {
    background: var(--primary-alpha-10);
    color: var(--primary-dark);
}

.sidebar-news-item[data-category="exhibition"] .news-category {
    background: var(--dark-alpha-10);
    color: var(--theme-dark);
}