/* ===== 列表页特定样式 ===== */
/* 从 old/style.css 中提取的列表页相关样式 */

/* ===== 列表页专用样式 ===== */

/* 面包屑导航样式 */
.breadcrumb-nav {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.breadcrumb-item {
    display: inline-block;
    white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 8px;
}

/* 新闻列表样式 */
.news_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news_list .news {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    min-height: 60px;
}

.news_list .news:hover {
    background-color: #f8f9fa;
}

.news_list .news:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.news_date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    margin-right: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 6px 4px;
    flex-shrink: 0;
}

.news_year {
    font-size: 14px;
    font-weight: bold;
    color: #00613b;
    line-height: 1;
}

.news_days {
    font-size: 12px;
    color: #666;
    line-height: 1;
    margin-top: 2px;
}

.news_title {
    flex: 1;
}

.news_title a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
    font-weight: 400;
}

.news_title a:hover {
    color: #00613b;
    text-decoration: none;
}

/* 分页样式 */
.pagination-container,
#wp_paging_w6,
.wp_paging {
    text-align: center;
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.page-info {
    color: #666;
    font-size: 13px;
}

.page-info strong,
.page-numbers strong {
    color: #00613b;
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 0;
    flex-wrap: nowrap;
}

.page-numbers {
    color: #666;
    font-size: 14px;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.page-input {
    width: 60px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    padding: 0 8px;
}

.page-input:focus {
    outline: none;
    border-color: #00613b;
    box-shadow: 0 0 0 2px rgba(0,97,59,0.1);
}

.page-jump-btn {
    background-color: #00613b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-jump-btn:hover {
    background-color: #004d2a;
}

.pagination {
    justify-content: center;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    display: inline-block;
    margin: 0;
}

.page-link {
    color: #666;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.page-link:hover {
    color: #00613b;
    background-color: #f8f9fa;
    border-color: #00613b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,97,59,0.15);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #00613b 0%, #004d2a 100%);
    border-color: #00613b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,97,59,0.3);
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 侧边栏样式 */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-title {
    color: #00613b;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 2px solid #00613b;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.sidebar-list a:hover {
    color: #00613b;
    text-decoration: none;
}

/* 列表页布局样式 */
.main1 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 确保main1和main2容器宽度一致 */
.main2 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 桌面端布局 */
@media (min-width: 992px) {
    .main1 .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .main1 .col-lg-2 {
        flex: 0 0 200px !important;
        max-width: 200px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .main1 .col-lg-10 {
        flex: 1 !important;
        max-width: none !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 移动端布局 */
@media (max-width: 991px) {
    .main1 .row {
        display: block !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .main1 .col-lg-2,
    .main1 .col-lg-10 {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .post .tt {
        padding: 12px 15px;
    }
    
    .post .tit {
        font-size: 16px;
    }
    
    .news_list .news {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .news_date {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: flex-start;
    }
    
    .news_title {
        width: 100%;
    }
    
    .col-lg-2 {
        order: 1;
        margin-bottom: 20px;
    }
    
    .col-lg-10 {
        order: 2;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        white-space: normal;
    }
    
    .pagination-container,
    #wp_paging_w6,
    .wp_paging {
        margin: 50px auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .page-link {
        padding: 3px 5px;
        min-width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .pagination {
        gap: 2px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .pagination .page-item:nth-child(n+4):nth-child(-n+6) {
        display: none;
    }
    
    .pagination-controls {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 10px;
    }
    
    .page-numbers,
    .page-jump {
        font-size: 12px;
    }
    
    .page-jump {
        gap: 4px;
    }
    
    .page-input {
        width: 40px;
        height: 26px;
        font-size: 12px;
    }
    
    .page-jump-btn {
        padding: 3px 8px;
        font-size: 12px;
    }
}
