/* 新闻分类 */
.news-categories {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

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

.category-tab {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* 新闻列表 */
.news-list {
    background: var(--dark-bg);
}

.news-list .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* 置顶新闻 */
.featured-news {
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.featured-image {
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
    position: relative;
    min-height: 300px;
}

.featured-icon {
    transition: transform 0.3s ease;
}

.featured-news-card:hover .featured-icon {
    transform: scale(1.1) rotate(5deg);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--primary-color);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.featured-content h2 {
    font-size: 28px;
    margin: 20px 0 16px;
    line-height: 1.4;
}

.featured-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* 新闻项 - 瀑布流布局 */
.news-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    grid-column: 1;
}

/* 新闻项隐藏类 - 用于筛选 */
.news-item {
    display: grid;
}

.news-item.hidden {
    display: none;
}

.featured-news-card.hidden {
    display: none;
}

.load-more {
    grid-column: 1;
    padding: 30px 0 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-item {
        grid-template-columns: 60px 1fr;
        padding: 16px;
    }

    .news-item-date {
        height: 60px;
    }

    .news-item-date .day {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .news-items {
        grid-template-columns: 1fr;
    }
}

.news-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.news-item-date {
    background: var(--gradient-2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    color: white;
    grid-row: 1 / span 2;
}

.news-item-date .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.news-item-date .month {
    font-size: 14px;
    margin-top: 4px;
}

.news-item-content h3 {
    font-size: 20px;
    margin: 12px 0 10px;
    line-height: 1.4;
}

.news-item-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 15px;
}

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.news-category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-category.company {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

.news-category.product {
    background: rgba(123, 97, 255, 0.1);
    color: var(--accent-color);
}

.news-category.industry {
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary-color);
}

.news-category.event {
    background: rgba(255, 102, 102, 0.1);
    color: #ff6666;
}

.news-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.load-more {
    text-align: center;
    padding: 40px 0;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 订阅 */
.subscribe p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.subscribe form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe input {
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.subscribe input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe button {
    width: 100%;
}

/* 热门标签 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 热门文章 */
.popular-articles ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-articles li a {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.popular-articles li a:hover {
    transform: translateX(5px);
}

.article-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.article-title {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-list .container {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .category-tab {
        white-space: nowrap;
    }
    
    .featured-news-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 200px;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-content h2 {
        font-size: 22px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-date {
        width: 60px;
        height: 60px;
    }
    
    .news-item-date .day {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .news-categories {
        padding: 15px 0;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .news-item {
        padding: 20px 15px;
    }

    .sidebar-widget {
        padding: 24px 20px;
    }
}

/* 新闻详情弹层 */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.news-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.news-modal-close i {
    font-size: 20px;
    color: var(--text-secondary);
}

.news-modal-header {
    padding: 40px 40px 30px;
    background: var(--gradient-1);
    color: white;
    position: relative;
}

.news-modal-header .news-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.news-modal-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-modal-header .news-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.news-modal-body {
    padding: 40px;
}

.news-section {
    margin-bottom: 30px;
}

.news-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.news-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.news-section ul {
    list-style: none;
    padding-left: 0;
}

.news-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-section ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.news-content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.news-content-text p {
    margin-bottom: 20px;
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.news-tag {
    padding: 6px 16px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: var(--primary-color);
    color: white;
}

.news-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 15px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .news-modal-content {
        max-height: 95vh;
    }

    .news-modal-header {
        padding: 30px 20px 20px;
    }

    .news-modal-body {
        padding: 20px;
    }

    .news-modal-header h2 {
        font-size: 24px;
    }

    .news-section h3 {
        font-size: 18px;
    }

    .news-footer {
        padding: 20px;
        flex-direction: column;
    }
}
