html, body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.top_lb{
    width: 100%;
}
.top_lb .swiper-slide{
    width: 100% !important;
}
.top_lb .swiper-slide img{
    width: 100%;
}
/* ========== 页面容器 ========== */
.page-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* ========== 左侧分类导航栏 ========== */
.sidebar {
    flex: 0 0 220px;
    width: 220px;
}

.sidebar-inner {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px 12px;
    position: sticky;
    top: 60px;
}

.category-list {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.category-item {
    padding: 15px 18px;
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    text-align: left;
}

.category-item:hover {
    background-color: #fafafa;
    color: #ff6600;
}

.category-item.active {
    background-color: #fff3e0;
    color: #ff6600;
    font-weight: 500;
}

/* ========== 右侧主内容区 ========== */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 20px;
    position: relative;
}
.pop_kf{
    position: absolute;
    width: 100%;
    height: 100%;
    left:0%;
    top: 0%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: -webkit-flex;
    display: flex;
    align-items: center;
}
.pop_kfbox{
    width: 30%;
    margin: 0 auto;
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.kf_ewm{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.kf_ewm>img{
    width: 46%;
}
.kf_title{
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 20px;
}
.kf_mail{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 20px;
}
.kf_mail a{
    background-color: #ff6600;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.kf_close{
    position: absolute;
    right: 10px;
    top:10px;
    width: 30px;
}
.kf_close>img{
    width: 100%;
}
.layui-layer{
    top: 40%!important;
}
/* ========== 顶部排序栏 ========== */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;


    padding: 0 20px;
    height: 48px;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-item {
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.2s ease;
    position: relative;
    background: #ffffff;

}

.sort-item:hover {
    color: #ff6600;
}

.sort-item.active {
    color: #ff6600;
    font-weight: 500;
    background: #F5E4CB;
}

.contact-service {
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 10px;
    background: #ffffff;
}

.contact-service:hover {
    color: #ff6600;
}

/* ========== 产品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========== 产品卡片 ========== */
.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ========== 产品图片区 ========== */
.product-image {
    width: 100%;
    height: 350px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========== 产品信息区 ========== */
.product-info {
    padding: 12px 15px 15px 15px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== 价格 ========== */
.product-price {
    color: #ff6600;
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 16px;
    font-weight: bold;
    margin-right: 2px;
}

.price-num {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
}

/* ========== 加入购物车按钮 ========== */
.btn-cart {
    background-color: #ff6600;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-cart:hover {
    background-color: #e65c00;
}

.btn-cart:active {
    background-color: #cc5200;
}