.main-content {
    background-color:white;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0, 0, 0, 0.08);
    overflow:hidden;
    margin-bottom:40px;
}

.content-header {
    background:linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color:white;
    padding:30px;
}

.content-header h1 {
    font-size:28px;
    margin-bottom:10px;
}

.content-header p {
    opacity:0.9;
    margin-bottom:20px;
}

.filter-controls {
    display:flex;
    gap:10px;
    margin-top:15px;
    flex-wrap:wrap;
}

.filter-btn {
    padding:8px 16px;
    border:1px solid rgba(255, 255, 255, 0.3);
    border-radius:20px;
    background:rgba(255, 255, 255, 0.1);
    color:white;
    font-size:14px;
    cursor:pointer;
    transition:all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color:#f97316;
    border-color:#f97316;
}

.sort-controls {
    display:flex;
    gap:10px;
    margin-top:15px;
    flex-wrap:wrap;
}

.sort-controls a{
    text-decoration:none;
}

.sort-btn {
    padding:8px 16px;
    border:1px solid rgba(255, 255, 255, 0.3);
    border-radius:20px;
    background:rgba(255, 255, 255, 0.1);
    color:white;
    font-size:14px;
    cursor:pointer;
    transition:all 0.3s;
}

.sort-btn:hover, .sort-btn.active {
    background-color:#0ea5e9;
    border-color:#0ea5e9;
}

.content-body {
    padding:30px;
}

.news-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(350px, 1fr));
    gap:20px;
    margin-bottom:20px;
}

.news-card {
    background:linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0, 0, 0, 0.05);
    overflow:hidden;
    transition:all 0.3s ease;
    border:1px solid #e2e8f0;
}

.news-card:hover {
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding:20px;
    display:flex;
    flex-direction:column;
    height:100%;
}

.news-header {
    margin-bottom:10px;
    /* 新增 Flex 布局 */
    display: flex;
    justify-content: space-between; /* 左右两端对齐 */
    align-items: center; /* 垂直居中 */
}

.news-category {
    background:#f0f9ff;
    color:#0369a1;
    padding:3px 8px;
    border-radius:12px;
    font-weight:500;
    font-size:12px;
    display:inline-block;
}
.doc-badge {
    background: #f97316;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    display: inline-block;
}

.news-title {
    font-size:18px;
    font-weight:600;
    color:#1a365d;
    margin-bottom:10px;
    line-height:1.4;
}

.news-title a {
    color:inherit;
    text-decoration:none;
}

.news-title a:hover {
    color:#0ea5e9;
}

.news-summary {
    color:#64748b;
    font-size:14px;
    line-height:1.5;
    margin-bottom:15px;
    flex-grow:1;
}

.news-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:15px;
    border-top:1px solid #f1f5f9;
}

.news-meta {
    display:flex;
    gap:15px;
    font-size:12px;
    color:#94a3b8;
}

.news-date, .news-views {
    display:flex;
    align-items:center;
}

.read-more {
    color:#0ea5e9;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}

.read-more:hover {
    text-decoration:underline;
}

@media (max-width:768px) {

    .filter-controls, .sort-controls {
        flex-direction:column;
    }

    .news-grid {
        grid-template-columns:1fr;
    }

    .news-footer {
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .news-meta {
        width:100%;
        justify-content:space-between;
    }
}
