/* ==========================================
   基础容器样式
   ========================================== */
.container {
    max-width: 950px;
    margin: 0 auto ;
    padding: 0;
}

/* ==========================================
   面包屑导航样式
   ========================================== */
.breadcrumb {
    padding: 10px 0;
    font-weight: bold;
}

.breadcrumb .current {
    color: #333;
}

/* ==========================================
   通用分隔符样式
   ========================================== */
.spacer {
    height: 10px;
    clear: both;
}

/* ==========================================
   主内容区布局样式
   ========================================== */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 左侧边栏 */
.sidebar {
    flex: 0 0 250px;
    width: 100%;
}

/* 右侧新闻列表 */
.news-section {
    flex: 1;
    min-width: 300px; /* 移动端最小宽度 */
    
}

.news-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 5px;
}

/* ==========================================
   新闻列表核心样式
   ========================================== */
.news-list {
    
    list-style: none;
    padding:5px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.news-mark {
    flex: 0 0 20px;
    margin-right: 10px;
    
}

.news-mark img {
    margin-bottom: 2px;
}

.news-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.news-title a {
    color: #0066cc;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date {
    flex: 0 0 100px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

.news-summary {
    padding: 5px 0 5px 30px;
    font-size: 14px;
    color: #666;
}

/* ==========================================
   分页样式
   ========================================== */
.pagination {
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

.pagination a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 5px;
}

.pagination a:hover {
    text-decoration: underline;
}

/* ==========================================
   响应式媒体查询
   ========================================== */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        flex: 0 0 auto;
        margin-bottom: 15px;
    }

    .news-date {
        flex: 0 0 auto;
        margin-left: 10px;
        text-align: left;
    }

    .news-item {
        flex-wrap: wrap;
    }

    .news-summary {
        padding-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .pagination {
        font-size: 12px;
    }

    .news-title {
        font-size: 13px;
    }
}