html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
    /* background-image: url(/assets/img/bg-1.jpg); */
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f4f4f4;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

img.error {
  display: inline-block;
  transform: scale(1);
  content: '';
  color: transparent;
  /* 隐藏图标与文�?*/
  opacity:0.6;
  filter: alpha(opacity=60);
}


img.error::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: #f5f5f5 url(break.svg) no-repeat center  50% 50%;
}


img.error::after {
  /* content: attr(alt); */
  content: '-- D一本书单网 --';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  line-height: 2;
  background-color: #ccc;
  color: white;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maskpanel{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #00000069;
    display: none;
    z-index: 9999;
}

.navbar-brand{
    font-family: fantasy;
}

/* 挑书统计面板样式 */
#selected-summary-panel .maskpanel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.user-selected-summary-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.user-selected-summary-title {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.4em;
    font-weight: bold;
    color: #495057;
}

.user-selected-summary-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
}

/* 挑书统计面板内容样式 */
.summary-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
}

.summary-table {
    margin: 30px 0;
}

.summary-table h4 {
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.stat-summary-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .stat-summary-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stat-summary-title h4 {
        font-size: 14px;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        word-break: break-all;
    }
    
    .stat-summary-title .btn {
        width: 100%;
        margin-left: 0 !important;
        padding: 10px 20px !important;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tr:hover {
    background-color: #e9ecef;
}

.summary-charts {
    margin: 30px 0;
}

.summary-charts h4 {
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.chart-placeholder {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

/* 针对挑书统计面板的关闭按钮 */
#selected-summary-panel .maskpanel-content .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
}

#selected-summary-panel .maskpanel-content .close-btn:hover {
    color: #333;
}
/* 书单头部信息 */
.booklist-header {
    padding: 10px 0;
    text-align: center;
    /* background: #f4f4f4; */
    margin-bottom: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

#btn-show-filter{
    display: none;
}
.btn-filterpanel-switch{
    display: none;
}
.collapsed .more-filter-btn{
    display: none !important;
}
.collapsed .filter-panel-multi .filter-section-multi:first-child .btn-filterpanel-switch{
    display: block;
    padding: 4px 10px;
    background: #38f;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    line-height: 18px;
    float: right;
    margin-top: -30px;
}

#mainbody.fold .booklist-header{
    margin-bottom: 0;
    background-color: #fff;
}
#mainbody.fold .booklist-header h1{
    margin-bottom: 0;
    margin-top: 0;
}
#mainbody.fold .booklist-header .booklist-description{
    display: none;
}
#mainbody.fold .books-container{
    /* height: calc(100vh - 288px); */
}

.top-panel{
    padding-bottom: 10px;
    /* margin-left: -15px; */
    /* margin-right: -15px; */
    top: 0;
    /* position: fixed; */
    width: 100%;
    z-index: 99;
    background-color: #fff;
    overflow-y: hidden;
    flex-shrink: 0;
}

#mainbody.fold .top-panel{
    position: fixed;
    top: 50px;
    z-index: 99;
    background-color: #fff;
}
#mainbody.fold #btn-show-filter{
    display: block;
}

.mutil-filter-panel:not(.collapsed) .filter-panel-multi .filter-tabs {
    display: flex;
}

.mutil-filter-panel:not(.collapsed) .filter-dropdown-panel:not(.hidden) {
    display: block;
}

#mainbody.fold .mutil-filter-panel.collapsed{
    /* display: none; */
}

#mainbody .container{
    background-color: #fff;
}

.header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    padding: 3px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#filter-action, #clear-filter {
    padding: 3px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 5px;
}

#filter-action {
    background: #007bff;
    color: white;
}

#filter-action:hover {
    background: #0056b3;
}

#clear-filter:hover {
    background: #e0e0e0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

.tag-item:hover {
    background: #007bff;
    color: white;
}

.tag-item.active {
    background: #007bff;
    color: white;
}

#clear-filter:hover {
    background: #e0e0e0;
}

.view-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.view-toolbar .view-btn, 
.view-toolbar .show-filter-panel {
    width: 40px;
    height: 40px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
}

.view-toolbar .view-btn::after, 
.view-toolbar .show-filter-panel::after {
    content: attr(title);
    position: absolute;
    right: 100%;
    margin-right: 10px;
    background: #333;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.view-toolbar .view-btn:hover::after, 
.view-toolbar .show-filter-panel:hover::after {
    opacity: 1;
}

.booklist-header .booklist-title{
    font-size: clamp(13px, 4vw, 22px);
    font-weight: bold;
    color: #171347;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    /* float: left; */
    /* text-overflow: ellipsis; */
}

.booklist-description {
    color: #6c757d;
    text-align: left;
    padding: 3px 20px;
}

.btn-list-summary.active,.btn-list-summary:hover{
    background-color: gold !important;
    border-bottom: 2px solid blue;
}

/* 视图切换按钮 */
.toolbar {
    margin-top: 20px;
    text-align: right;
    padding-right: 20px;
}

.view-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.view-btn.active {
    background: #007bff;
    color: white;
}

.view-btn.random-btn {
    /* background: #ebf744; */
    color: red;
}

/* 书籍容器 */
.books-container-wrapper {
    display: flex;
    margin-top: 5px;
    /* height: calc(100vh - 140px); */
}

main.content{
    /* height: calc(100vh - 55px); */
    padding: 0;
}

@media screen and (max-width: 768px), screen and (orientation: portrait) {
    #mainbody>.container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .books-container-wrapper {
        /* height: calc(100vh - 100px); */
    }
    #btn-show-filter{
        display: none;
    }
    .books-container-main {
        transition: transform 0.3s ease;
        width: 100%;
    }
    .sub-container {
        /* width: calc(100vw - 28px); */
        left: 0;
        width: 100%;
        top: 50px !important;
    }
    #mainbody.fold .top-panel{
        top: 0;
    }

    main.content{
        min-height: calc(100vh - 110px);
    }
}

.filter-panel {
    width: 25%;
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding: 15px;
    overflow-y: auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 290px);
    box-shadow: 2px 2px 5px #b0b0b0;
    z-index: 9;
}

@media screen and (max-width: 768px), screen and (orientation: portrait) {
    .filter-panel {
        position: fixed;
        top: 60px;
        left: 0;
        width: 250px;
        height: calc(100vh - 65px);
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
    }
    
    /* 在窄屏状态下，默认隐藏过滤面�?*/
    .filter-panel:not(.collapsed) {
        transform: translateX(0);
    }
    
    .filter-panel.collapsed {
        width: 0;
        padding: 0;
        border-right: none;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
    }
    
    /* .filter-panel:not(.collapsed) ~ .books-container-main {
        transform: translateX(150px);
    } */
}

.filter-panel-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-panel.collapsed {
    width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    height: 60px;
}
.booklist-stat-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: fixed;
    bottom: 0;
    z-index: 999;
    width: 100%;
    left: 0;
    background-color: currentColor;
    padding-top: 8px;
}
.btn-list-summary{
    padding: 5px 10px;
    border-bottom: 1px solid #ccc;
    border-radius: 8px; 
    background-color: #fff;
    padding: 5px 30px;
}
.btn-list-summary:hover{
    background: gold;
}

.toggle-filter-panel {
    background: #007bff;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    padding: 15px 0 10px;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.filter-actions button {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#filter-action {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#clear-filter {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.filter-actions button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.filter-actions button:active {
    transform: translateY(0);
}

.filter-section {
    display: flex;
    margin-bottom: 8px;
    padding: 0 15px;
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #495057;
}

.filter-section .hascover-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.hascover-container>label{
    flex: 1;
}

.filter-row {
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
    text-align: left;
}

.price-filter {
    display: flex;
    align-items: center;
    /* gap: 10px; */
}

.price-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1;
}

.filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.books-container-main {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.current-filters {
    padding: 10px 15px;
    /* background: #f4f4f4; */
    border-bottom: 1px solid #ddd;
    height: auto;
    /* min-height: 88px; */
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.filters-header > span {
    font-weight: bold;
    color: #333;
}

.filters-stats {
    display: flex;
    gap: 15px;
    float: right;
    align-items: center;
    font-size: 13px;
}

.filters-stats a.btn-list-summary {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filters-stats a.btn-list-summary:hover {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-color: #f39c12;
    color: #e67e22;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.2);
    transform: translateY(-1px);
}

.filters-stats a.btn-list-summary.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #f39c12;
    color: #d35400;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.filters-stats a.btn-list-summary .booklist-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 13px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.filters-stats a.btn-list-summary i.fa {
    font-size: 14px;
    margin-right: 4px;
    opacity: 0.8;
}

.filters-stats a.btn-list-summary:hover i.fa {
    opacity: 1;
}

.filters-stats span.result-info-block {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e9ecef;
    gap: 4px;
}

.filters-stats span.result-info-block i.fa {
    font-size: 12px;
    color: #999;
}

.filters-stats .result-value {
    font-weight: bold;
    font-size: 1.3em;
    color: #e74c3c;
    margin: 0 2px;
    display: inline-block;
}

.clear-all-filters {
    /* background: #dc3545; */
    /* color: white; */
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.clear-all-filters:hover {
    /* background: #c82333; */
}

/* btn_expand_filters 按钮样式 */
.btn_expand_filters {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #f39c12;
    border-radius: 15px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.btn_expand_filters:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn_expand_filters.expanded {
    background: #e8f4ff;
    border-color: #1890ff;
    color: #1890ff;
}

.btn_expand_filters.expanded:hover {
    background: #d6eaff;
    border-color: #096dd9;
    color: #096dd9;
}

.btn_expand_filters .expand-icon{
    display: none;
}
.btn_expand_filters.collapsed .collapse-icon{
    display: none;
}
.btn_expand_filters.collapsed .expand-icon{
    display: inline;
}

/* 宽屏状态下 filter-col 显示在一�?*/
.filter-col {
    display: flex;
    align-items: center;
}

/* 窄屏状态下每项各占一�?*/
@media screen and (max-width: 768px), screen and (orientation: portrait) {
    .filters-header {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-col {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
        padding: 5px 0;
    }
    .filters-stats{
        text-align: center;
        margin-bottom: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filters-stats a.btn-list-summary {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .filters-stats span.result-info-block {
        padding: 4px 10px;
        font-size: 12px;
    }
    .book-list-grid{
        grid-template-columns: none !important;
    }

    .welcome-container{
        padding: 20px 10px;
    }
    .welcome-header h1{
        font-size: 1.5em !important;
    }
    
    .booklist-stat-info.filter-col {
        /* display: flex; */
        flex-wrap: wrap;
        gap: 10px;
        /* position: static; */
        transform: none;
        flex-direction: row;
        /* justify-content: flex-start; */
        font-size: 10px;
        background-color: #f4f4f4cf;
        margin-bottom:10px !important;
        padding-left: 2em;
        text-align: right;
        padding-right: 10px;
    }
    
    .booklist-stat-info.filter-col > a {
        /* flex: 1 1 auto; */
        /* min-width: 30%; */
        /* width: auto; */
        padding:0 !important;
        border: none !important;
        background-color: transparent !important;
        text-align: center !important;
    }
    .booklist-stat-info.filter-col > a.active {
        background-color: orange !important;
        color: white !important;
    }
    .booklist-stat-info.filter-col > a.btn-booklist-all,.booklist-stat-info.filter-col > a.btn-booklist-selected{
        display: none !important;
    }

    .books-list.list-view .book-item .book-select{
        background-color: #eeeeeea1 !important;
        padding: 10px !important;
        margin-top: 5px !important;
    }

    .book-detail .cover-img{
        max-width: none !important;
    }
    
    /* 在更小的屏幕上，让链接占据更大比�?*/
    @media screen and (max-width: 480px) {
        .booklist-stat-info.filter-col > a {
            min-width: 45%;
        }
    }
    
    .clear-all-filters {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* 在极小屏幕上，让每个链接单独占一�?*/
    @media screen and (max-width: 360px) {
        .booklist-stat-info.filter-col > a {
            min-width: 100%;
        }
    }
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.filter-tag .remove-filter {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* 多列筛选面板 - 仿京东风格 */
.filter-panel-multi {
    background: #fff;
    border-top: 2px solid #e4393c;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.filter-header {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-header .filter-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* 横向筛选标签页 */
.filter-tabs {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.filter-tab-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab-item:hover {
    color: #e4393c;
}

.filter-tab-item.active {
    color: #e4393c;
    border-bottom-color: #e4393c;
}

.filter-tab-title {
    font-size: 13px;
    font-weight: 500;
}

.filter-tab-item i {
    margin-left: 4px;
    font-size: 12px;
    color: #999;
}

.filter-tab-item.active i {
    color: #e4393c;
}

/* 下拉展开面板 */
.filter-dropdown-panel {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: none;
}

.filter-dropdown-panel:not(.hidden) {
    display: block;
    max-height: 50vh;
    overflow-y: auto;
}

.filter-dropdown-content {
    padding: 15px 20px;
    display: none;
}

.filter-dropdown-content.active {
    display: block;
}

.filter-section-multi {
    border-bottom: none;
    background: #fff;
}

.filter-item-header {
    display: none;
}

.filter-content {
    display: none;
}

.filter-section-multi:last-child {
    border-bottom: none;
}

.filter-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.filter-item-header:hover {
    background: #f5f5f5;
}

.filter-section-multi .filter-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    min-width: auto;
    padding: 0;
    line-height: 1;
}

.filter-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.filter-section-multi.collapsed .filter-arrow {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 12px 15px;
    background: #fff;
}

.filter-section-multi.collapsed .filter-content {
    display: none;
}

.filter-dropdown-content .filter-values {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-dropdown-content .filter-value-item {
    display: inline-block;
}

.filter-dropdown-content .filter-value-item a {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.filter-dropdown-content .filter-value-item a:hover {
    background: #fff0f0;
    border-color: #e4393c;
    color: #e4393c;
}

.filter-dropdown-content .filter-value-item.selected a {
    background: #e4393c;
    border-color: #e4393c;
    color: #fff;
}

/* 默认选中状态 */
.filter-value-item.active a,
.filter-value-item.active a:hover {
    background: #e4393c;
    border-color: #e4393c;
    color: #fff;
}

/* 不限选项样式 */
.filter-value-item[data-is-none="true"] a {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #666;
}

.filter-value-item[data-is-none="true"] a:hover {
    background: #fff0f0;
    border-color: #e4393c;
    color: #e4393c;
}

.filter-value-item span.count{
    position: relative;
    font-size: 10px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    margin-left: -15px;
    margin-top: 5px;
    z-index: 9999;
    background-color: #18bc9c;
    color: #fff;
    padding: 1px 5px;
}

/* 单选组的不限选项默认选中样式 */
.onlyone-filter .filter-value-item[data-is-none="true"].selected a,
.onlyone-filter .filter-value-item[data-is-none="true"].active a {
    background: #e4393c;
    border-color: #e4393c;
    color: #fff;
}

/* 多选选中状态样式 - 京东风格 */
.filter-value-item:not([data-is-none="true"]).selected a {
    background: #fff0f0;
    border-color: #e4393c;
    color: #e4393c;
    position: relative;
    padding-left: 22px;
}

.filter-value-item:not([data-is-none="true"]).selected a::before {
    content: "\2714";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #e4393c;
    font-size: 11px;
    font-weight: bold;
}

.filter-value-item:not([data-is-none="true"]).selected a:hover {
    background: #ffe5e5;
    border-color: #c41e3a;
    color: #c41e3a;
}

/* 互斥字段样式 */
.filter-value-item[data-field="category_name"]:not([data-is-none="true"]).selected a,
.filter-value-item[data-field="category1"]:not([data-is-none="true"]).selected a,
.filter-value-item[data-field="category2"]:not([data-is-none="true"]).selected a {
    background: #fff0f0;
    border-color: #e4393c;
    color: #e4393c;
    position: relative;
    padding-left: 22px;
}

.filter-value-item[data-field="category_name"]:not([data-is-none="true"]).selected a::before,
.filter-value-item[data-field="category1"]:not([data-is-none="true"]).selected a::before,
.filter-value-item[data-field="category2"]:not([data-is-none="true"]).selected a::before {
    content: "\2714";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #e4393c;
    font-size: 11px;
    font-weight: bold;
}

.filter-value-item[data-field="category_name"]:not([data-is-none="true"]).selected a:hover,
.filter-value-item[data-field="category1"]:not([data-is-none="true"]).selected a:hover,
.filter-value-item[data-field="category2"]:not([data-is-none="true"]).selected a:hover {
    background: #ffe5e5;
    border-color: #c41e3a;
    color: #c41e3a;
}

/* 价格筛选区域 */
.filter-dropdown-content[data-panel="price"] {
    padding: 15px 20px;
}

.custom-price-input {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
    gap: 5px;
}

.price-input {
    width: 80px;
    padding: 8px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.price-separator {
    color: #999;
    margin: 0 5px;
}

.price-confirm-btn {
    padding: 6px 16px;
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.price-confirm-btn:hover {
    background: #c41e3a;
}

/* 封面图筛选 */
.cover-filter-section .filter-content {
    padding: 12px 15px;
}

/* 搜索筛选区域 */
.text-filter-section .filter-item-header {
    border-bottom: none;
}

.text-filter-section .filter-content {
    padding: 12px 15px;
}

.filter-dropdown-content .search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-dropdown-content .filter-input {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
}

.search-submit-btn {
    padding: 6px 20px;
    background: #e4393c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-submit-btn:hover {
    background: #c41e3a;
}

/* 筛选面板底部 */
.filter-footer {
    padding: 12px 15px;
    background: #fafafa;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.filter-close-btn {
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.filter-close-btn:hover {
    color: #e4393c;
}

/* 旧样式兼容 */
.filter-options {
    flex-grow: 1;
}

.filter-value-item.custom-price-range {
    display: none;
}

#price-confirm-multi {
    display: none;
}

.filter-more-link {
    display: none;
}

.btn-filterpanel-switch {
    display: none;
}

.more-filter-btn {
    display: none;
}

.mutil-filter-panel{
    /* max-height: 400px; */
    /* overflow-y: auto; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* 滚动后吸附在booklist-header底部 */
.mutil-filter-panel.sticky {
    position: fixed;
    top: 61px;
    width: 100%;
    /* left: 0;
    right: 0; */
    z-index: 1000;
    max-height: calc(70vh);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 为sticky状态添加占位符，防止内容跳动 */
.mutil-filter-panel-placeholder {
    display: none;
    height: 0;
}

.mutil-filter-panel-placeholder.visible {
    display: block;
}

.more-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
}

.brand-filter .filter-name {
    color: #e4393c;
}



.books-container {
    min-height: 500px;
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    padding: 10px;
    padding-left: 0;
    padding-top: 0;
    /* height: calc(100vh - 348px); */
}

.books-list {
    padding: 10px;
    padding-left: 0;
}

/* 单列模式 - 默认卡片视图 */
.books-list.single-column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 双列瀑布流模式 - 使用Grid实现按行填充 */
.books-list.double-column-masonry {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding-right: 5px;
}

.books-list.double-column-masonry .book-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.books-list.double-column-masonry .book-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.books-list.double-column-masonry .book-cover {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.books-list.double-column-masonry .book-cover img {
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
}

.books-list.double-column-masonry .book-info {
    padding: 12px;
    background: #fff;
}

.books-list.double-column-masonry .book-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    height: auto;
    line-height: 1.4;
    /* display: -webkit-box; */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.books-list.double-column-masonry .book-translation {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.books-list.double-column-masonry .book-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.books-list.double-column-masonry .book-select {
    /* position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10; */
}

.books-list.double-column-masonry .btn-select-purchase {
    padding: 8px 25px;
    font-size: 12px;
    margin-bottom: 8px;
    margin-top:8px;
}

.books-list.double-column-masonry .btn-remove-from-list {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1em;
    color: #dc3545;
    background-color: rgba(253, 245, 154, 0.9);
    padding: 6px 20px 12px 10px;
    border-radius: 0 0 40px 0;
    z-index: 10;
}

.books-list.double-column-masonry .btn-remove-from-list:hover {
    background-color: rgba(253, 245, 154, 1);
}

/* 列表视图 */
.books-list.list-view {
    display: block;
}

.btn-unselect{
    display: none;
}
.btn-unselect:hover{
    background-color: red;
    color: #fff !important;
}
.books-list.list-my-selected .btn-unselect,.books-list.list-selected .btn-unselect{
    display: block;
    color: #fff;
    font-size: 1.5em;
    border: 1px solid #d0d0d0;
    padding: 1px 9px;
    border-radius: 20px;
    background-color: red;
}

.books-list.list-my-selected .btn-select-purchase
,.books-list.list-selected .btn-select-purchase
,.books-list.list-my-selected .btn-remove-from-list
,.books-list.list-selected .btn-remove-from-list{
    /* display: none; */
}


.books-list.list-view .book-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    /* margin-bottom: 10px; */
    background: #fff;
}

.books-list.list-view .book-item .book-select{
    position: absolute;
    top: 2px;
    right: 0px;
    background-color: #eeeeee;
    padding: 20px;
}

.books-list.list-view .book-cover {
    width: 40px;
    height: 60px;
    margin-right: 7px;
}

.books-list.list-view .book-info {
    flex: 1;
    padding: 3px 15px;
    background-color: transparent;
}
.books-list.list-view .book-info>div.book-meta {
    float: left;
}

.books-list.list-view .book-title {
    font-size: 18px;
    margin-bottom: 5px;
    height: auto;
}

.books-list.list-view .book-meta {
    font-size: 14px;
    margin-right: 3px;
    padding-right: 3px;
    color: #666 !important;
}
.books-list.list-view .book-item:hover .book-info
,.books-list.list-view .book-item:hover .book-meta{
    color: #000dbe !important;
}

/* 卡片视图 */
.book-item {
    /* background: #fff; */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.book-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(to bottom, #4893e4, rgb(187, 187, 187));
    color: #fff;
}

.batch-result-content .book-item:hover {
    color: #007bff !important;
}

.book-item:hover .book-info{
    /* background: transparent; */
    background-color: #e6e6e6c7;
}

.book-item:hover .book-meta{
    color: darkred;
}


.batch-result-content .book-item:hover {
    color: #007bff !important;
}

.batch-result-content .book-item:hover  .book-meta{
    color: #000 !important;
}
.batch-result-content .book-item:hover .book-info{
    background: rgb(237, 240, 240) !important;
}

.book-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 43px;
    overflow: hidden;
}
.remove-bookname{
    color: red;
    font-weight: bold;
    font-size: 1.3em;
    margin-left: 6px;
    margin-right: 6px;
}
.book-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.book-meta .book-price{
    float: right;
    margin-left: 5px;
}

.book-select {
    text-align: center;
    z-index: 10;
}
.btn-select-purchase {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #007bff;
    color: white;
}
.btn-select-purchase:hover {
    background-color: #0056b3;
}
.btn-select-purchase.selected {
    background-color: #dc3545;
}
.btn-select-purchase.selected:hover {
    background-color: #c82333;
}
.btn-remove-from-list{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.2em;
    color: red;
    background-color: #fdf59a;
    padding: 8px 25px 15px 15px;
    border-radius: 0 0 50px 0;
}
.btn-remove-from-list:hover{
    color: red;
}

.loading, .no-more {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 图书详情弹窗 */
.book-detail {
    min-height: 250px;
    position: relative;
    padding: 20px 20px 80px 20px; /* 为底部按钮留出空�?*/
    height: calc(100vh - 220px);
    overflow-y: auto;
}

.book-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.book-detail .cover-img {
    height: 60vh;
    min-width: 33vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-detail .cover-img img {
    /* max-width: 100%; */
    height: 100%;
    object-fit: contain;
}

.book-detail .book-info {
    flex: 2;
    min-width: 250px;
}

.book-detail .book-info h3 {
    margin-top: 0;
    font-size: 20px;
    color: darkred;
    font-weight: bold;
}

.book-detail .book-info p {
    margin: 5px 0; /* 减小间距 */
    font-size: 14px;
}

.book-detail-description {
    clear: both;
    margin-top: 15px;
    border-top: 1px solid #d0d0d0;
    padding-top: 10px;
}

.book-detail-description h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* 优化description-txt显示方式 */
.book-detail-description .description-txt {
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: none;
    /* position: relative; */
}

.book-detail-description .description-txt::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1.6em;
    background: linear-gradient(to right, transparent, white 75%);
}

.book-detail-description .description-txt.expanded {
    -webkit-line-clamp: unset;
    cursor: default;
}

.book-detail-description .description-txt.expanded::after {
    display: none;
}

.book-detail-description .description-overlay {
    display: none;
    margin-top: 10px;
}

.book-detail-description .description-short {
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.book-detail-description .description-short::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1.6em;
    background: linear-gradient(to right, transparent, white 75%);
}

.book-detail-description .show-more-btn {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

.book-detail-description .show-more-btn:hover {
    background-color: #f0f0f0;
}

.book-detail-description div {
    line-height: 1.6;
    font-size: 14px;
}

.book-detail-buttons {
    /* bottom: 0; */
    position: sticky;
    left: 0;
    right: 0;
    background: white;
    padding: 5px 20px;
    border-top: 1px solid #eee;
    text-align: left;
    overflow: auto;
}

.book-detail-buttons .btn {
    margin-right: 10px;
    min-width: 80px;
    padding: 12px 20px;
}

@media (min-width: 768px) {
    .container {
        width: auto;
    }
    .sub-container {
        width: 750px;
    }
    .books-list.double-column-masonry {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding-right: 5px;
    }
}
@media (min-width: 992px) {
    .container {
        width: auto;
    }
    .sub-container {
        width: auto;
    }
}

@media (min-width: 1200px) {
    .container {
        width: auto;
    }
    .sub-container {
        width: 1140px;
    }
    .books-list.double-column-masonry {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding-right: 5px;
    }
}

@media (min-width: 1600px) {
    .container {
        width: auto;
    }
    
    .sub-container{
        width: 1410px;
    }
    
    .books-list.double-column-masonry {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
        padding-right: 5px;
    }
}


@media (max-width: 768px) {
    body{
        padding-top: 0;
    }
    main.content{
        padding-top: 0;
    }
    .navbar-fixed-top{
        position: inherit;
        margin-bottom: 2px;
    }
    .container{
        padding-left: 5px;
        padding-right: 8px;
    }

    
    #mainbody>.container{
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .books-list.double-column-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        align-items: start;
        gap: 15px;
        padding-right: 5px;
    }

    .filters-stats span{
        font-size: 11px;
    }
    .layui-layer{
        max-width: 100%;
        left: 0 !important;
    }
    .booklist-header{
        padding: 8px 0;
    }
    .booklist-header .booklist-title{
        font-size:clamp(13px, 4vw, 18px);
        text-align: center;
        margin-bottom: 0;
        width: 100vw;
        white-space: normal;
    }
    #btn-select-all{
        float: none !important;
    }
    .view-toolbar{
        /* right: auto; */
        bottom: -5px;
        z-index: 99999;
        left: 5px;
        background-color: transparent;
        position: fixed;
        display: inline-block;
        padding:0;
        top: auto;
        right: auto;
    }
    .view-toolbar .view-btn{
        /* border-radius: 30px; */
        display: inline-block;
        font-size: inherit;
        padding:0;
        height: 35px;
        background-color: darkblue;
        color: #fff;
        border-radius: 20%;
    }
    .mutil-filter-panel.collapsed .filter-more-link{
        margin-right: 2px !important;
        padding: 3px 8px;
        background-color: #38f;
        color: #fff;
        /* margin-top: -30px; */
        border-radius: 5px;
    }
    .btn-filterpanel-switch{
        display: none !important;
    }
    .book-detail {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        padding-bottom: 120px;
    }
    
    .book-detail .book-cover {
        width: 100%;
        height: 300px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .books-list.single-column {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        padding: 0;
    }
    
    .books-list.double-column-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        align-items: start;
        padding: 0;
    }

    .books-container{
        height: auto !important;
        padding-right: 0;
    }
    .current-filters{
        min-height: auto;
        padding: 2px 15px;
        padding-bottom: 10px;
    }
    .filters-header{
        margin-bottom: 2px;
    }
    .current-filters .filter-col {
        display: none;
    }
    .filters-stats{
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        padding: 5px 0;
    }
    
    .filters-stats a.btn-list-summary {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .filters-stats span.result-info-block {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .filters-stats .result-value {
        font-size: 1.2em;
    }
    
    /* 在更小的屏幕上优化显示 */
    @media screen and (max-width: 480px) {
        .filters-stats a.btn-list-summary {
            padding: 3px 8px;
            font-size: 10px;
        }
        
        .filters-stats span.result-info-block {
            padding: 3px 6px;
            font-size: 10px;
        }
        
        .filters-stats .result-value {
            font-size: 1.1em;
        }
    }
    .current-filters.collapsed .filters-header{
        display: none !important;
    }
    .filter-input{
        margin-bottom: 5px;
    }
}

#mainbody {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#mainbody>.container {
    position: relative;
    min-width: 80vw;
    /* width: 100%; */
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* background: #f1f6fd; */
    color: #474157;
    flex: 1;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    /* 美化滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Webkit 浏览器滚动条样式 */
#mainbody>.container::-webkit-scrollbar {
    width: 8px;
}

#mainbody>.container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#mainbody>.container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#mainbody>.container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    /* position: absolute; */
    bottom: 0;
    width: 100%;
    display: none;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

.batch-select-panel,.select-all-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 20px;
}

.select-all-panel .btn{
    padding: 12px 20px;
}

.batch-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.batch-select-header h3 {
    margin: 0;
    color: #333;
}

.close-batch-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-batch-panel:hover {
    color: #333;
}

.batch-select-content .form-group {
    margin-bottom: 15px;
}

.batch-select-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.batch-select-content input,
.batch-select-content select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.category-setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.category-setting-item select,
.category-setting-item input {
    flex: 1;
    min-width: 0;
}

.remove-category-setting {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.remove-category-setting:hover {
    opacity: 0.8;
}

.batch-select-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.batch-result-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.batch-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.batch-result-panel .btn-remove-from-list{
    right: 10px !important;
    left: auto !important;
}

.result-info-block{
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.batch-result-stats {
    font-size: 14px;
    color: #666;
}

.result-value{
    font-weight: bold;
    font-size: 1.3em;
    color: #e74c3c;
    display: inline-block;
}

.batch-result-stats span {
    /* margin-right: 15px; */
}

.batch-result-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.load-more-container {
    text-align: center;
    padding: 20px;
}

.load-more-container .btn {
    padding: 8px 20px;
    min-width: 120px;
}

/* 可点击的元数据样式 */
.clickable-meta {
    cursor: pointer;
    /* text-decoration: underline; */
    /* text-decoration-style: dashed; */
    transition: color 0.2s ease;
}

.clickable-meta:hover {
    text-decoration: underline;
    text-decoration-style: solid;
}

/* 作者 - 蓝色 */
.clickable-meta[data-field="author"] {
    color: #007bff;
}

.clickable-meta[data-field="author"]:hover {
    color: #0056b3;
}

/* 出版社 - 绿色 */
.clickable-meta[data-field="publisher"] {
    color: #28a745;
}

.clickable-meta[data-field="publisher"]:hover {
    color: #1e7e34;
}

/* 丛书 - 橙色 */
.clickable-meta[data-field="series"] {
    color: #fd7e14;
}

.clickable-meta[data-field="series"]:hover {
    color: #e67009;
}

.batch-result-actions {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: white;
}

.batch-result-actions .btn {
    margin: 0 10px;
    padding: 8px 20px;
}

.batch-books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.batch-books-list .book-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.batch-books-list .book-item:hover {
    transform: translateY(-5px);
}

.batch-books-list .book-cover {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.batch-books-list .book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.batch-books-list .book-info {
    padding: 10px;
    background: #f3f3f3;
}

.batch-books-list .book-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    height: 36px;
    overflow: hidden;
}

.batch-books-list .book-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.batch-books-list .book-select {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.batch-books-list .btn-select-purchase {
    padding: 4px 12px;
    font-size: 12px;
}

.delete-book-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.operation-instructions {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.operation-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.operation-instructions li {
    margin-bottom: 5px;
    font-size: 13px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 书单网首页宣传页面样�?*/
.welcome-container {
    max-width: 1200px;
    margin: 5px auto;
    padding: 20px;
    text-align: center;
}

.welcome-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.features-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.9em;
}

.stats-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.stat-item {
    margin: 0 30px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    color: #666;
}

.cta-section {
    margin-top: 40px;
    padding: 20px;
    /* background-color: #f8f9fa; */
    border-radius: 8px;
}

.cta-section p {
    margin: 10px 0;
    color: #666;
}

.cta-section .btn {
    padding: 12px 30px;
    font-size: 1.1em;
}

/* 当前筛选条件标签样式 */
.current-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.current-filters .filter-label {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #e6f7ff;
}

.filter-tag .tag-field {
    color: #999;
    margin-right: 4px;
}

.filter-tag .tag-value {
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-tag:hover .tag-value {
    color: #1890ff;
}

.filter-tag .tag-close {
    margin-left: 6px;
    color: #999;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.filter-tag:hover .tag-close {
    color: #1890ff;
}

.clear-all-filters {
    color: #1890ff;
    font-size: 13px;
    margin-left: 15px;
    flex-shrink: 0;
}

.clear-all-filters:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* 过期页面样式 */
.expired-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.expired-header {
    margin-bottom: 30px;
}

.expired-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #999;
}

.expired-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.expired-notice {
    color: #e74c3c;
    font-size: 16px;
}

.expired-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.info-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.info-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.selected-highlight {
    color: #1890ff;
}

.expired-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.expired-footer p {
    color: #999;
    font-size: 14px;
}
