/* ========================================
   图书列表页专用样式 - book_list.css
   单行列表布局
   ======================================== */

/* 页面主体容器 */
.book-list-main {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
    min-height: 600px;
}

.book-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb-nav {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-home-icon {
    color: #1a5276;
    font-size: 16px;
    margin-right: 8px;
}

.breadcrumb-nav .CurrChnlCls {
    color: #1a5276;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    font-size: 15px;
}

.breadcrumb-nav .CurrChnlCls:hover {
    color: #c0392b;
    text-decoration: underline;
    background-color: #f5f5f5;
}

.breadcrumb-nav .CurrChnlCls:last-of-type {
    color: #333;
    font-weight: 500;
    cursor: default;
}

.breadcrumb-nav .CurrChnlCls:last-of-type:hover {
    color: #333;
    text-decoration: none;
    background-color: transparent;
}

/* ========================================
   图书列表内容区域
   ======================================== */
.book-list-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 30px 35px;
}

/* 列表标题区域 */
.book-list-header {
    margin-bottom: 20px;
}

.book-list-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-list-title i {
    color: #c0392b;
    font-size: 22px;
}

.red-indicator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
    border-radius: 2px;
}

/* 分割线 */
.list-divider {
    height: 1px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
    margin-bottom: 30px;
}

/* ========================================
   图书列表 - 单行布局
   ======================================== */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

/* 图书列表项 */
.book-list-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 25px;
}

.book-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #c0392b;
}

/* 图书封面 */
.book-list-cover {
    flex-shrink: 0;
    width: 120px;
    height: 168px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-cover-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.book-cover {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.book-list-item:hover .book-cover {
    transform: scale(1.05);
}

/* 图书信息区域 */
.book-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 图书标题 */
.book-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.book-list-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.book-list-title a:hover {
    color: #c0392b;
}

/* 图书元数据 */
.book-list-meta {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.book-list-author,
.book-list-publisher {
    display: inline-block;
}

/* 图书价格 */
.book-list-price {
    font-size: 24px;
    font-weight: 700;
    color: #c0392b;
    margin: 0;
}

/* 图书操作按钮 */
.book-list-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.book-list-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-detail {
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-detail:hover {
    background-color: #e8e8e8;
    color: #333;
    border-color: #d0d0d0;
}

.btn-cart {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    border: none;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #a93226 0%, #c0392b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-cart i {
    font-size: 14px;
}

/* ========================================
   分页组件
   ======================================== */
.pagination-wrapper {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.page-btn,
.page-num {
    display: inline-block;
    height: 38px;
    line-height: 36px;
    padding: 0 16px;
    margin: 0 3px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    vertical-align: middle;
}

.page-btn:hover,
.page-num:hover {
    color: #c0392b;
    border-color: #c0392b;
    background-color: #fff5f5;
}

.page-num.current {
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
    cursor: default;
}

.page-btn.disabled,
.page-num.disabled {
    color: #bbb;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn.disabled:hover,
.page-num.disabled:hover {
    color: #bbb;
    border-color: #e0e0e0;
    background-color: #f5f5f5;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 992px) {
    .book-list-content {
        padding: 25px 20px;
    }
    
    .book-list-item {
        padding: 15px;
        gap: 20px;
    }
    
    .book-list-cover {
        width: 100px;
        height: 140px;
    }
    
    .book-list-title {
        font-size: 16px;
    }
    
    .book-list-meta {
        gap: 20px;
        font-size: 13px;
    }
    
    .book-list-price {
        font-size: 20px;
    }
    
    .book-list-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .book-list-main {
        padding: 15px 0 30px;
    }
    
    .breadcrumb-nav {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .breadcrumb-nav .CurrChnlCls {
        padding: 2px 6px;
        font-size: 14px;
    }
    
    .breadcrumb-home-icon {
        font-size: 15px;
    }
    
    .book-list-content {
        padding: 20px 15px;
    }
    
    .book-list-title {
        font-size: 20px;
    }
    
    .book-list-title i {
        font-size: 18px;
    }
    
    .book-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }
    
    .book-list-cover {
        width: 90px;
        height: 126px;
    }
    
    .book-list-info {
        width: 100%;
        gap: 10px;
    }
    
    .book-list-title {
        font-size: 15px;
    }
    
    .book-list-meta {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }
    
    .book-list-price {
        font-size: 18px;
        margin-top: 5px;
    }
    
    .book-list-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .book-list-actions .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-cart i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .book-list-item {
        padding: 12px;
        gap: 12px;
    }
    
    .book-list-cover {
        width: 80px;
        height: 112px;
    }
    
    .book-list-title {
        font-size: 14px;
    }
    
    .book-list-meta {
        font-size: 11px;
    }
    
    .book-list-price {
        font-size: 16px;
    }
    
    .book-list-actions .btn {
        padding: 7px 10px;
        font-size: 11px;
    }
    
    .btn-cart i {
        font-size: 11px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .book-list-main {
        background-color: #fff;
    }
    
    .book-list-content {
        box-shadow: none;
    }
    
    .book-list-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .book-list-actions {
        display: none;
    }
    
    .pagination-wrapper {
        display: none;
    }
}
