.book-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 20px;
    font-size: 14px;
    font-family:
        "微软雅黑";

}

.book-meta:hover {
    color: #4F46E5;
    font-weight: bold;
}

.book-author {
    width: 100%;

    white-space: nowrap;
    /* 强制不换行 */
    overflow: hidden;
    /* 隐藏超出部分 */
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
    display: inline-block;
}

header {
    min-width: 830px;
}

.book-container {
    min-width: 830px;
}


.filter-sort {
    /* display: flex;
        flex-direction: row; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;

}

.filter-section {
    /* background-color: white; */
    border-radius: 10px;
    width: 100%;
    padding: 20px;
    /* margin-bottom: 30px; */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
}

.filter-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}



.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-select {
    width: 50%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    /* background-color: #f8f9fa; */
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}


.filter-select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}


/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active a {
    background-color: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

.pagination .disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .ellipsis {
    border: none;
}

.pagination .ellipsis span {
    border: none;
    letter-spacing: 2px;
}

/* 搜索框样式 */
.search-section {
    margin-bottom: 0px;
    padding: 20px;
    /* background-color: #f9f9f9; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
}

.search-box {
    /* background-color: #fff; */
    display: flex;
    max-width: 800px;
    height: 50px;
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #ddd;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-box:hover {

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-type {
    width: 130px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 20px 0 0 20px;
    background-color: rgb(255, 255, 255);
    font-size: 14px;
    outline: none;


}

.search-input {
    flex: 1;
    height: 55px;
    padding: 10px 15px;
    /* border: 1px solid #ddd; */
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;


}

.search-input:focus {
    border-color: #4F46E5;
}

/* 排序按钮样式 */
.sort-section {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 20px;

    border-radius: 8px;

}

.sort-title {
    margin-right: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn:hover {
    background-color: #f0f0f0;
}

.sort-btn.active {
    background-color: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

.loading {

    width: 200px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #999;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    /* border: 2px solid #000000; */
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box:hover {
    border-color: #79baff;
    transition: all 0.3s ease;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: #4338CA;
}

.search-button i {
    font-size: 16px;
}




@media (max-width: 768px) {



    .sort-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-title {
        margin-bottom: 10px;
    }

    .filter-options {
        width: 50%;
        display: flex;
        flex-direction: column;
    }
}




.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #999;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    /* border: 2px solid #000000; */
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box:hover {
    border-color: #4F46E5;
    transition: all 0.3s ease;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: #4338CA;
}

.search-button i {
    font-size: 16px;
}