.main-content {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 40px 0;
}


.main-section {
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3465df;
}

.page-header h1 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #4a5568;
    font-size: 1.1rem;
}

.news-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: #3465df;
    border-color: #3465df;
    color: white;
}
.news-list {
    margin-bottom: 2rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: white;
    align-items: center;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-image {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.news-image img {
    width: 200px;
    height: 120px;
    object-fit: cover;

    display: block;
    margin: 0 auto;
}

.news-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.news-tag.security {
    background: #e53e3e;
}

.news-tag.product {
    background: #3182ce;
}

.news-tag.industry {
    background: #38a169;
}

.news-tag.tech {
    background: #3465df;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 0.75rem;
}

.news-content h3 a {
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #3465df;
}

.news-summary {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 分页导航 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3465df;
    border-color: #3465df;
    color: white;
}

.page-btn.active {
    background: #1a365d;
    border-color: #1a365d;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0.5rem;
    color: #a0aec0;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title-news {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3465df;
}

/* 热门新闻 */
.hot-news {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hot-rank {
    background: #3465df;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.hot-item a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hot-item a:hover {
    color: #3465df;
}

/* 公告 */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #3465df;
}

.announcement-date {
    background: #1a365d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.announcement-content h4 {
    color: #1a365d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.announcement-content p {
    color: #4a5568;
    font-size: 0.8rem;
}

/* 威胁预警 */
.alert-widget {
    border: 2px solid #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
}

.alert-widget .widget-title {
    color: #e53e3e;
    border-bottom-color: #e53e3e;
}

.threat-level {
    text-align: center;
}

.threat-indicator {
    display: inline-block;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.threat-indicator.high {
    background: #e53e3e;
    color: white;
}

.level-text {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.level-desc {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.threat-level p {
    color: #742a2a;
    font-size: 0.9rem;
}

/* 邮件订阅 */
.newsletter p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: #3465df;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #dd7324;
}


/* 响应式设计 */
@media (max-width: 980px) {

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .news-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .news-content h3 {
        line-height: 1.5;
    }

    .news-image {
        width: 100%;
        height: auto;
    }

    .news-image img {
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    .news-categories {
        justify-content: center;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

}

@media (max-width: 480px) {

    .main-section,
    .sidebar-widget {
        padding: 1rem;
    }

    .news-content h3 a {
        font-size: 1.1rem;
    }

}