/* news.css - 新闻列表页面专用样式 */

/* 新闻页面 Hero 区域 */
.news-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 0;
}

.news-hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.news-hero-content h1 span {
    color: #3498db;
}

.news-hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 新闻筛选区域 */
.news-filter-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.news-filter-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.news-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.news-filter-btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.news-filter-btn:hover {
    background-color: #e9ecef;
}

.news-filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 新闻列表区域 */
.news-list-container {
    margin-bottom: 60px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid transparent;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-item.company {
    border-left-color: #3498db;
}

.news-item.industry {
    border-left-color: #2ecc71;
}

.news-item.product {
    border-left-color: #e74c3c;
}

.news-item.events {
    border-left-color: #f39c12;
}

.news-date {
    min-width: 100px;
    text-align: center;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    display: block;
}

.date-month {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin: 5px 0;
}

.date-year {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
}

.news-content {
    flex: 1;
}

.news-category {
    margin-bottom: 10px;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.company {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.category-badge.industry {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.category-badge.product {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.category-badge.events {
    background-color: rgba(243, 156, 18, 0.1);
    color: #d35400;
}

.news-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.news-content h2 a {
    color: inherit;
    transition: color 0.3s;
}

.news-content h2 a:hover {
    color: #3498db;
}

.news-excerpt {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.news-meta i {
    margin-right: 5px;
}

.read-more {
    color: #3498db;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #2980b9;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 分页区域 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.page-btn:hover:not(.disabled) {
    background-color: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}

.page-number:hover:not(.active) {
    background-color: #f8f9fa;
    color: #3498db;
}

.page-number.active {
    background-color: #3498db;
    color: white;
}

.page-dots {
    color: #adb5bd;
}

/* 通讯订阅区域 */
.newsletter-container {
    background-color: #f8f9fa;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 60px;
}

.newsletter-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.newsletter-container p {
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
}

.newsletter-form .btn-primary {
    white-space: nowrap;
}

.form-note p {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* 存档区域 */
.archive-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.archive-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.archive-years, .archive-categories {
    margin-bottom: 30px;
}

.archive-years:last-child, .archive-categories:last-child {
    margin-bottom: 0;
}

.archive-years h3, .archive-categories h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.year-links, .category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.year-link {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}

.year-link:hover {
    background-color: #3498db;
    color: white;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}

.category-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.category-link:hover .category-badge {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .news-hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 80px 0 40px;
    }
    
    .news-item {
        flex-direction: column;
        padding: 25px;
    }
    
    .news-date {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        margin-bottom: 20px;
        min-width: auto;
        justify-content: flex-start;
    }
    
    .date-day {
        font-size: 2rem;
        margin-right: 10px;
    }
    
    .date-month {
        margin: 0 10px 0 0;
        font-size: 1rem;
    }
    
    .date-year {
        font-size: 0.9rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .news-hero-content h1 {
        font-size: 2rem;
    }
    
    .news-filter-options {
        justify-content: center;
    }
    
    .news-filter-btn {
        flex-grow: 1;
        text-align: center;
        min-width: 140px;
    }
    
    .newsletter-container,
    .archive-container {
        padding: 30px 20px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .year-links, .category-links {
        justify-content: center;
    }
}