.search_tab{
	width: 100%;
	height: 50px;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	margin-top: 40px;
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.search_tab li{
	width: 120px;
	height: 48px;
	background-color: #FF8800;
	font: 18px/50px "microsoft yahei";
	border-radius: 1px;
	color: #fff;
	text-align: center;
	cursor: pointer;
}
.search_tab li:hover{
	background-color: #FF0000;
}
.crumbs{
	width: 100%;
	min-height: 50px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 16px;
    margin-bottom: 30px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.crumbs div{
	float:left;
}
.crumbs a{
	color: black;
}
.search_word{
	color: red;
}
.total_search_book_count{
	padding-left: 20px;
}
.shoplist{
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.shoplist li{
	min-height: 400px;
    position: relative;
    border-bottom: 1px dashed #E2E2E2;
	padding: 20px;
	box-sizing: border-box;
	overflow: hidden;
}
.shoplist li:hover{
	background-color: #f9f9f9;
	transition: background-color 0.3s ease;
}
.shoplist li .name {
    line-height: 24px;
    height: 60px;
    overflow: hidden;
    font-size: 18px;
    transition: all 0.3s ease;
}
.shoplist li .price {
    font-family: "arial";
    line-height: 30px;
    margin: 10px 0;
    transition: all 0.3s ease;
}
.search_now_price{
	color: #FF2832;
	font-size: 20px;
	font-weight: bold;
	padding-right: 10px;
}

.shoplist li .search_book_author {
    font-size: 16px;
    color: #787878;
    line-height: 28px;
    height: auto;
    overflow: visible;
    word-break: break-all;
    word-wrap: break-word;
    margin: 10px 0;
}
.shoplist li .detail {
    line-height: 22px;
    height: auto;
    overflow: visible;
    font-size: 14px;
    color: #666;
    margin: 10px 0 0 0;
    text-align: right;
}

.shoplist li .shop_button {
    margin-top: 15px;
    clear: both;
    position: absolute;
    right: 200px;
    bottom: 20px;
}

.button_container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.search_btn_cart{
	width: 110px;
    height: 36px;
    line-height: 36px;
    background: #ff2832;
    border-radius: 4px;
    display: inline-block;
    color: #fff;
    text-align: center;
    font-family: 'Microsoft Yahei';
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.search_btn_cart:hover{
	background-color: #FF0000;
	color: #FFFFFF;
}

.search_btn_buy{
	width: 110px;
    height: 36px;
    line-height: 36px;
    background: #00a0e9;
    border-radius: 4px;
    display: inline-block;
    color: #fff;
    text-align: center;
    font-family: 'Microsoft Yahei';
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.search_btn_buy:hover{
	background-color: #0080c0;
	color: #FFFFFF;
}

/* 响应式设计 - 平板和大屏手机 (max-width: 992px) */
@media (max-width: 992px) {
    .shoplist li {
        min-height: auto;
        padding: 15px;
    }
    
    .shoplist li .name {
        font-size: 16px;
        width: 350px;
    }
    
    .shoplist li .price {
        font-size: 16px;
        width: 350px;
    }
    
    .shoplist li .search_book_author {
        font-size: 14px;
        max-height: 70px;
    }
    
    .shoplist li .detail {
        position: static;
        margin-top: 10px;
        left: auto;
        top: auto;
        text-align: left;
    }
    
    .shoplist li .shop_button {
        position: static;
        margin-top: 15px;
    }
    
    .button_container {
        justify-content: center;
    }
    
    .shoplist li img {
        max-width: 100%;
        height: auto;
        width: auto !important;
        display: block;
        margin: 0 auto;
    }
    
    .shoplist li > div {
        height: auto !important;
    }
    
    .pagination {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .pagination li a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* 响应式设计 - 手机 (max-width: 768px) */
@media (max-width: 768px) {
    .crumbs {
        font-size: 14px;
        padding: 10px;
    }
    
    .shoplist li {
        padding: 10px;
    }
    
    .shoplist li .name {
        position: static;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
    
    .shoplist li .price {
        position: static;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
    
    .shoplist li .search_book_author {
        position: static;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
    
    .shoplist li .detail {
        text-align: center;
        font-size: 13px;
    }
    
    .shoplist li .shop_button {
        position: static;
        margin-top: 15px;
    }
    
    .button_container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .search_btn_cart,
    .search_btn_buy {
        width: 120px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    
    .pagination {
        text-align: center;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    .pagination li {
        display: inline-block;
        margin: 0 2px;
    }
    
    .pagination li a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 响应式设计 - 小屏手机 (max-width: 480px) */
@media (max-width: 480px) {
    .crumbs {
        font-size: 13px;
        padding: 8px;
    }
    
    .total_search_book_count {
        display: block;
        padding-left: 0;
        margin-top: 5px;
    }
    
    .shoplist li .name {
        font-size: 15px;
        line-height: 22px;
    }
    
    .search_now_price {
        font-size: 16px;
    }
    
    .pagination li a {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .pagination li:last-child {
        display: none;
    }
}

/* 通用响应式优化 */
.shoplist_ul {
    padding: 0;
    margin: 0;
}

.shoplist_ul li {
    list-style: none;
}

/* 确保图片在任何设备上都能正确显示 */
.shoplist img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* 确保内容不会溢出容器 */
.container {
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

/* 优化按钮在小屏幕上的显示 */
.search_btn_cart,
.search_btn_buy {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 防止文本溢出 - 特别确保价格能完整显示 */
.shoplist li .name a,
.shoplist li .search_book_author,
.shoplist li .detail,
.shoplist li .price {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* 价格样式优化 */
.oprice {
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}

/* 优化分页显示 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    list-style: none;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 移除旧的绝对定位样式，确保内容正常显示，但排除按钮容器 */
.shoplist li > div:not(.shop_button) {
    position: static !important;
    left: auto !important;
    top: auto !important;
}