.pagination ul {
    list-style: none;
    margin: 0;
    padding: 12px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pagination ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(180deg, #fffdf9, #f3ebe0);
    color: #4a3c30;
    border: 1px solid rgba(140, 112, 84, 0.28);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination ul li:hover {
    background: #fffdf9;
    border-color: rgba(108, 73, 47, 0.45);
    box-shadow: 0 4px 12px rgba(70, 45, 25, 0.1);
}

.pagination li.active {
    background: linear-gradient(180deg, #7a5640, #6c492f);
    border-color: #6c492f;
    color: #fffaf3;
    cursor: default;
    box-shadow: 0 6px 16px rgba(108, 73, 47, 0.22);
}

.pagination li.disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.pagination li.totalPage {
    background: transparent;
    cursor: default;
    border: none;
    box-shadow: none;
    padding: 0 6px;
}

.pagination li.totalPage:hover {
    background: transparent;
    box-shadow: none;
}

.pagination li input {
    -webkit-appearance: none;
    background-color: #fbf7f0;
    border: 1px solid rgba(140, 112, 84, 0.28);
    border-radius: 6px;
    box-sizing: border-box;
    color: #4a3c30;
    display: inline-block;
    font-size: inherit;
    outline: none;
    padding: 3px 5px;
    width: 40px;
    height: 28px;
    margin: 0 6px;
}

.pagination li input:focus {
    border-color: #c23531;
}

@media (max-width: 600px) {
    .pagination ul li {
        min-width: 36px;
        min-height: 36px;
        font-size: 13px;
    }
}
