/* 导航标签 */
.nav-container {
    padding: 20px 8%;
    position: relative;
}
@media (max-width: 768px) { 
    .nav-container {
        padding: 20px 30px;
    }
}
.nav-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-tab {
    background: #e8e8e8;
    border-radius: 10px;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 5px;
    border: rgb(181, 181, 181) solid 1px;
    white-space: nowrap;
}


.nav-tab.active {
    background: linear-gradient(to bottom, rgb(240, 68, 70), rgb(195, 40, 45));
    border: rgb(182, 48, 54) solid 1px;
    color: white;
}

.nav-tab:hover:not(.active) {
    background: #d5d5d5;
    color: #333;
}

/* 搜索栏样式 */
.search-container {
    background-color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    flex: 1;
    align-items: center;
    border: 2px solid #e53935;
    border-radius: 30px;
    padding: 5px 15px;
    width: 300px;
    background: #f9f9f9;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    background: transparent;
}

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #b71c1c;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    margin: 40px 10%;
}
@media (max-width: 768px) { 
    .pagination-container{
        flex-direction: column;
        gap: 20px;
    }
}
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* 跳转样式 */
.pagination-jump {
    display: flex;
    justify-content: flex-end;
}

.page-jump-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-jump-form label {
    font-size: 14px;
    color: #666;
}

.page-input {
    width: 60px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.page-input:focus {
    outline: none;
    border-color: #d32f2f;
}

.jump-button {
    padding: 8px 15px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.jump-button:hover {
    background-color: #b71c1c;
}

/* 通用标题样式 */
.section-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d32f2f;
}

/* 移除默认列表样式 */
.pagination li {
    list-style: none;
}

/* 默认分页链接样式 */
.pagination .page-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #999;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: transparent;
}

/* 悬停效果 */
.pagination .page-link:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 当前页样式 */
.pagination .active .page-link {
    background-color: #d32f2f;
    color: white;
    border: none;
}

/* 禁用状态样式 */
.pagination .disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background-color: transparent;
}

/* 上一页和下一页按钮样式 */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    background-color: #d32f2f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 上一页和下一页按钮悬停效果 */
.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
    background-color: #b71c1c;
    color: white;
}

/* 无文章提示样式 */
.no-posts,
.error {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.error {
    color: #f44336;
}