@charset "utf-8";
html, body, form { margin:0; padding:0; height: 100%; }
body{  
    background: #f8f9fa;  
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;  
    line-height: 1.6;
    color: #333;
}
img {border:0; max-width: 100%;}
ul,li {list-style:none; margin:0; padding:0; }
.clr {clear:both; padding:0; margin:0; background:none;}

/* 整体布局优化 */
.shop_body {
    width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

.shop_contain {
    flex: 1;
    padding: 30px;
    background: #fff;
}

/* 商品列表优化 */
.overflow_hidden {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 40px;
}

.overflow_hidden li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.overflow_hidden li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #ed7e95;
}

.goods_item {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.goods-div {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
    padding: 20px;
}

.goods_img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 210px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.goods_item:hover .goods_img {
    transform: scale(1.05);
}

.goods_price {
    font-size: 22px;
    font-weight: 700;
    color: #ff0036;
    padding: 15px 20px 5px;
    background: linear-gradient(135deg, #fff, #fefefe);
}

.goods_name {
    font-size: 16px;
    color: #333;
    padding: 5px 20px 20px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页优化 */
.page_contain {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.page_contain p {
    margin: 0;
    padding: 0;
}

.page_contain a {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page_contain a:hover {
    background: #ed7e95;
    border-color: #ed7e95;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(237, 126, 149, 0.2);
}

.page_contain p a:first-child,
.page_contain p a:last-child {
    background: #f8f9fa;
    border-color: #ddd;
    font-weight: 600;
}

.page_contain p a:first-child:hover,
.page_contain p a:last-child:hover {
    background: #ed7e95;
    border-color: #ed7e95;
    color: #fff;
}

.page_contain p span {
    display: inline-block;
    padding: 10px;
    color: #999;
    font-weight: 300;
}

/* 底部优化 */
.bottom {
    background: linear-gradient(135deg, #ed7e95 0%, #d9534f 100%);
    padding: 0;
    margin-top: auto;
    text-align: center;
}

.bottom p {
    margin: 0;
    padding: 0;
    height: 80px;
    line-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bottom a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.bottom a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.bottom a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.bottom a:hover::after {
    width: 70%;
}

.bottom span {
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    font-weight: 300;
}

/* 空状态优化 */
.shop_contain > p[align='center'] {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #999;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 50px auto;
    max-width: 600px;
    border: 2px dashed #e1e1e1;
}

/* 响应式优化 */
@media (max-width: 1240px) {
    .shop_body {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 992px) {
    .overflow_hidden {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .shop_contain {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .overflow_hidden {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .goods-div {
        height: 200px;
    }
    
    .bottom p {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 10px;
    }
    
    .bottom span {
        display: none;
    }
}

@media (max-width: 480px) {
    .overflow_hidden {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .page_contain a {
        padding: 8px 12px;
        margin: 2px;
        font-size: 13px;
    }
}