/* 全局样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
    background: #f2f2f2;
}

#body {
    /* 渐变背景应用到整个页面 */
    background: linear-gradient(to bottom, #fdf6f0, #d6f5e9);
    min-height: 100vh;
    padding-bottom: 60px; /* 为底部导航留出空间 */
}

/* 商品卡片核心样式 - 使用Flexbox确保自适应高度和底部贴合 */
.fui-goods-item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100% !important;
    position: relative !important;
    overflow: visible !important; /* 允许内容完整显示，不再裁剪 */
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 商品详情区域 - 占据剩余空间 */
.fui-goods-item .detail {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem !important;
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
}

/* 商品标题和描述 - 自适应高度 - 仅应用于非推荐商品卡片 */
body .fui-goods-group:not(#recommended-goods) .fui-goods-item .detail .name {
    height: 1.9rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 0.65rem !important;
    line-height: 0.95rem !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 0 0 !important; /* 移除负边距，避免标题被遮挡 */
    position: relative !important;
    z-index: 10001 !important;
}

/* 价格区域 - 绝对定位在底部但调整位置确保完整显示 */
body .fui-goods-group:not(#recommended-goods) .fui-goods-item .detail .price {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important; /* 调整到底部，不再超出 */
    width: 100% !important;
    height: 1.8rem !important; /* 增加高度，确保按钮完整显示 */
    background-color: #f7f7f7 !important;
    border-radius: 0.3rem !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 10000 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
}

/* 购买按钮 - 使用flex布局确保合理显示 */
.fui-goods-item .price .buy {
    position: relative !important;
    float: right !important;
    height: 100% !important;
    flex: 1 !important; /* 使用flex属性自适应宽度 */
    line-height: 1.8rem !important; /* 增加行高以匹配高度 */
    text-align: center !important;
    border-radius: 0.3rem !important;
    margin: 0 !important;
    padding: 0 0.8rem !important; /* 调整内边距 */
    box-sizing: border-box !important;
    z-index: 10000 !important;
    font-size: 0.75rem !important;
    color: #fff !important;
    background-color: #fe5455 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    clip: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
    flex-grow: 1 !important;
    border: none !important;
    outline: none !important;
    word-break: keep-all !important;
}

/* 确保详情区域底部有足够空间不被价格区域遮挡 - 仅应用于非推荐商品卡片 */
body .fui-goods-group:not(#recommended-goods) .fui-goods-item .detail {
    padding-bottom: 0.5rem !important; /* 进一步增加底部内边距，确保标题完全可见 */
    margin-bottom: 0 !important; /* 移除负外边距，避免价格按钮超出卡片 */
    position: relative !important;
    z-index: 9998 !important;
    height: auto !important;
    min-height: 4.5rem !important; /* 进一步增加最小高度，确保价格按钮完整显示 */
}

/* 修改推荐商品卡片样式，使其与普通商品卡片统一，但保留颜色特性 - 使用最高优先级 */
body #recommended-goods .fui-goods-item .detail .name {
    height: 1.9rem !important; /* 统一高度 */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 0.65rem !important;
    line-height: 0.95rem !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 0 0 !important; /* 统一边距 */
    position: relative !important;
    z-index: 10001 !important;
    /* 保留原有颜色特性 */
}

body #recommended-goods .fui-goods-item .detail {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 9998 !important;
    height: auto !important;
    min-height: 4.5rem !important; /* 统一最小高度 */
    /* 保留原有颜色特性 */
}

/* 使推荐商品的价格区域与普通商品卡片统一 */
body #recommended-goods .fui-goods-item .detail .price {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 1.8rem !important; /* 统一高度 */
    background-color: #f7f7f7 !important; /* 统一背景色 */
    border-radius: 0.3rem !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 10000 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    /* 保留原有颜色特性 */
}

/* 优化价格区域，确保与按钮完美配合 */
.fui-goods-item .price {
    overflow: visible !important;
    z-index: 9999 !important;
}

/* 确保价格按钮在所有状态下都有相同的显示效果 */
.fui-goods-item .price .buy.free,
.fui-goods-item .price .buy.soldout,
.fui-goods-item .price .buy.normal,
.fui-goods-item .price .buy.offline {
    flex: 1 !important; /* 使用flex属性自适应宽度 */
    padding: 0 0.8rem !important; /* 调整内边距 */
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    position: relative !important;
    float: right !important;
    word-break: keep-all !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.3rem !important;
}

.fui-page.fui-page-from-center-to-left,
.fui-page-group.fui-page-from-center-to-left,
.fui-page.fui-page-from-center-to-right,
.fui-page-group.fui-page-from-center-to-right,
.fui-page.fui-page-from-right-to-center,
.fui-page-group.fui-page-from-right-to-center,
.fui-page.fui-page-from-left-to-center,
.fui-page-group.fui-page-from-left-to-center {
    -webkit-animation: pageFromCenterToRight 0ms forwards;
    animation: pageFromCenterToRight 0ms forwards;
}
.fix-iphonex-bottom {
    padding-bottom: 34px;
}

.footer ul {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.footer ul li {
    list-style: none;
    flex: 1;
    text-align: center;
    position: relative;
    line-height: 2rem;
}

.footer ul li:after {
    content: '';
    position: absolute;
    right: 0;
    top: .8rem;
    height: 10px;
    border-right: 1px solid #999;
}
.hotxy {
    position: relative;
}
.hotxy .hotxy-item{
    font-size: 0.62rem;
    display: inline-block;
    width: 20%;
    text-align: center;
    margin-bottom: 10px;
}
.hotxy .hotxy-item-index{
    border-bottom: 3px solid #ff8000;
    font-weight: 700;
}

/* 价格按钮状态样式 - 统一应用所有修复 - 铺满宽度 */
.fui-goods-item .price .buy.free, .fui-goods-item .detail .price .buy-free {
    background-color: #4a90e2 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    position: relative !important;
    width: 100% !important; /* 完全铺满宽度 */
    padding: 0 0.8rem !important; /* 调整内边距 */
    height: 100% !important; /* 确保完全填充价格区域 */
    line-height: 1.8rem !important; /* 增加行高以匹配高度 */
    word-break: keep-all !important;
    z-index: 10000 !important;
    border-radius: 0.3rem !important;
}

.fui-goods-item .price .buy.soldout, .fui-goods-item .price .buy.offline, .fui-goods-item .detail .price .buy-out-of-stock {
    background-color: #ccc !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    position: relative !important;
    width: 100% !important; /* 完全铺满宽度 */
    padding: 0 0.8rem !important; /* 调整内边距 */
    height: 100% !important; /* 确保完全填充价格区域 */
    line-height: 1.8rem !important; /* 增加行高以匹配高度 */
    word-break: keep-all !important;
    z-index: 10000 !important;
    border-radius: 0.3rem !important;
}

.fui-goods-item .price .buy.normal, .fui-goods-item .detail .price .buy-available {
    background-color: #fe5455 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    position: relative !important;
    width: 100% !important; /* 完全铺满宽度 */
    padding: 0 0.8rem !important; /* 调整内边距 */
    height: 100% !important; /* 确保完全填充价格区域 */
    line-height: 1.8rem !important; /* 增加行高以匹配高度 */
    word-break: keep-all !important;
    z-index: 10000 !important;
    border-radius: 0.3rem !important;
}
.footer ul li:nth-last-of-type(1):after {
    display: none;
}

.footer ul li a {
    color: #999;
    display: block;
    font-size: .6rem;
}


/* 布局切换条样式 */
.col-switch-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 10px 0; /* 增加右侧内边距，与商品列表对齐 */
    gap: 6px;
}

.col-switch-bar span {
    width: 25px;
    height: 25px;
    border: 1px solid #5D9B8C;
    color: #5D9B8C;
    background: #fff;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s;
}

.col-switch-bar span.active {
    background: #5D9B8C;
    color: #fff;
}

#toggleTopGoods {
    cursor: pointer;
    transition: color 0.2s;
}

#toggleTopGoods.inactive {
    color: #999;
}

/* 确保商品卡片不会限制按钮宽度 */
.fui-goods-item {
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 两列布局基础样式 */
.fui-goods-group.two-column .fui-goods-item {
    width: calc(50% - 16px) !important;
    margin: 0 8px 15px !important;
    background: #fff !important;
    border-radius: 0.3rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* 统一商品卡片阴影样式 - 强化静态悬浮感 */
.fui-goods-group.two-column .fui-goods-item {
    box-shadow: 
        0 6px 20px rgba(200, 190, 180, 0.3) !important;
}

/* 三列布局样式 */
.fui-goods-group.three-column .fui-goods-item {
    width: calc(33.33% - 6px) !important;
    margin: 0 3px 15px !important;
    background: #fff !important;
    border-radius: 0.3rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    box-shadow: 
        0 6px 20px rgba(200, 190, 180, 0.3) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* 商品列表容器样式 */
#goods-list-container {
    display: block !important;
    width: 100% !important;
    padding: 0 0 !important;
}

/* 确保普通商品列表的容器也应用flex布局 */
#goods_list {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    padding: 0 0 !important;
    margin: 0 !important;
}

#goods-list-container .flow_load.product-grid {
    display: block !important;
    width: 100% !important;
}

/* 为推荐商品的中间层添加flex布局样式 */
#recommended-goods .flow_load.product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* 普通商品项样式 - 默认双列 */
#goods_list .fui-goods-item {
    display: flex !important;
    flex-direction: column !important;
    width: calc(50% - 16px) !important;
    margin: 0 8px 15px !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
    border-radius: 0.3rem !important;
}

/* 三列布局时的普通商品项样式 */
.fui-goods-group.three-column #goods_list .fui-goods-item {
    width: calc(33.33% - 10px) !important;
    margin: 0 5px 15px !important;
    border-radius: 0.3rem !important;
}

/* 单个商品时的样式 - 使用最高优先级 */
#goods_list .fui-goods-item:only-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 auto 15px !important;
    max-width: none !important;
}

/* 确保单个商品时的样式覆盖所有情况 */
body #goods_list .fui-goods-item:only-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 auto 15px !important;
    max-width: none !important;
    float: none !important;
}



/* 为推荐商品设置与普通商品完全相同的样式，确保100%对齐 - 使用最高优先级选择器 */
#recommended-goods.fui-goods-group.block.two-column .fui-goods-item {
    width: calc(50% - 16px) !important;
    margin: 0 8px 15px !important;
    background: #fff !important;
    border-radius: 0.3rem !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    box-shadow: 
        0 6px 20px rgba(200, 190, 180, 0.3) !important;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

/* 强制让推荐商品和普通商品使用完全相同的选择器优先级 */
#recommended-goods .fui-goods-item {
    width: calc(50% - 16px) !important;
    margin: 0 8px 15px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
}

/* 最激进的解决方案：确保在所有媒体查询下都保持一致的宽度 */
@media screen and (max-width: 9999px) {
    #recommended-goods .fui-goods-item {
        width: calc(50% - 16px) !important;
        margin: 0 8px 15px !important;
        box-sizing: border-box !important;
    }
}

/* 统一商品卡片悬浮效果 - 强化的悬浮感 */
.fui-goods-group .fui-goods-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    z-index: 1;
}

.fui-goods-group .fui-goods-item:hover {
    transform: translateY(-6px) scale(1.02) !important; /* 大幅增强上移和缩放效果 */
    box-shadow: 
        0 10px 24px rgba(223, 215, 205, 0.25) !important;
    background: #ffffff !important;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}



/* 商品图片样式 - 贴合容器边缘 */
.fui-goods-group.block .fui-goods-item .image {
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    overflow: hidden;
    height: 5.2rem;
    position: relative;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保所有商品组都应用相同的图片样式 */
.fui-goods-group .fui-goods-item .image {
    width: 100%;
    margin: 0;
    padding-bottom: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    overflow: hidden;
    height: 5.2rem;
    position: relative;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fui-goods-group .fui-goods-item .image::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #95d0b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fui-goods-group .fui-goods-item .image img {
    border-radius: 0; /* 移除图片圆角 */
    width: 100%;
    height: 100%;
    object-fit: fill; /* 完整显示图片，允许挤压变形 */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.fui-goods-group .fui-goods-item .image img.loaded {
    opacity: 1;
}

.fui-goods-group .fui-goods-item .image.loaded::after {
    display: none;
}

/* 确保lazy图片正确显示 */
.fui-goods-group .fui-goods-item .image img.lazy {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 确保lay-loaded的lazy图片也正确显示 */
.fui-goods-group .fui-goods-item .image img.lazy.lay-loaded {
    opacity: 1;
}

/* 价格显示容器样式 - 确保完全显示 */
.fui-goods-group .fui-goods-item .detail .minprice {
    font-size: .6rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    min-width: 4rem !important;
    line-height: 1.6rem !important;
    padding: 0 0.5rem !important;
    color: #ff5000 !important;
    font-weight: bold !important;
}

/* 商品标题两行显示样式 */
.fui-goods-group .fui-goods-item .detail .name{
    height: 1.9rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 0.65rem !important;
    line-height: 0.95rem !important;
    margin-bottom: 0.3rem !important;
}






.fui-goods-item .detail .sale {
    height: 1.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.65rem;
    line-height: 0.9rem;
}
.item-badge.badge-offline {
    background: #95a5a6 !important;
}

/* 免费商品角标 */
.item-badge.badge-free {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* 热销商品角标 */
.item-badge.badge-normal {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.layui-flow-more {
    width: 100%;
    float: left;
}

.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: #ed414a;
}
.swiper-pagination{
        position: unset;
    }
    .swiper-container{
        --swiper-theme-color: #ff6600;/* 设置Swiper风格 */
        --swiper-navigation-color: #007aff;/* 单独设置按钮颜色 */
        --swiper-navigation-size: 18px;/* 设置按钮大小 */
    }


.goods_sort .item-price .sorting .icon-sanjiao1 {
    top: .13rem;
    left: 2;
}

.goods_sort .item-price .sorting .icon-sanjiao2 {
    top: -.13rem;
    left: 2;
}

    .goods_sort .item-price.DESC .sorting .icon-sanjiao1 {
        color: #766e58
    }

    .goods_sort .item-price.ASC .sorting .icon-sanjiao2 {
        color: #766e58
    }

    .content-slide .shop_active .icon-title {
        color: #9c9c9c;
    }
    .content-slide .shop_active .mbg {
        background-color: #ffffff;
    }

    .content-slide .shop_active img {
        filter: saturate(100%);
    }

.xz {
    background-color: #3399ff;
    color: white !important;
    border-radius: 5px;
}
.tab_con > ul > li.layui-this{
    background: linear-gradient(to right, #73b891, #53bec5);
    color: #fff;
    border-radius: 6px;
    text-align: center;
}

    .fui-notice:after {
        border: 0px solid #4b93e7;
    }

    .fui-notice:before {
        border: 0px solid #4b93e7;
    }


    @media only screen and (max-width : 375px) {
        .hotxy::-webkit-scrollbar {
            display: none !important;
        }
    }
    ::-webkit-scrollbar-thumb {
        background-color: #b0b0b0;
    }


    .search{
        text-align: left;
    }
    .search[placeholder]{
        font-size: 0.65rem;
    }

    .display-row {
        display: flex;
        flex-direction: row;
    }

    .display-column {
        display: flex;
        flex-direction: column;
    }


    /* 商品标签样式 */
    .bantou {
        background: -webkit-linear-gradient(left, #f10707, #b92b2b);
        color:#FFFFFF;
        width: 40%;
        text-align: center;
        font-size:.6rem;
        padding:5px 0;
        border-radius: 10px 0 15px 0;
        position: absolute;
        z-index: 10;
    }

    /* 弹窗公告美化样式 */
    .tzgg:first-of-type {
        background: rgba(0, 0, 0, 0.5) !important;
        opacity: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 10000 !important;
    }

    /* 弹窗容器 */
    .tzgg:nth-of-type(2) {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10001 !important;
    }

    /* 弹窗内容区域 */
    .account-layer {
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        max-width: 90vw !important;
        width: 320px !important;
        max-height: 80vh !important;
        overflow: hidden !important;
        animation: fadeIn 0.3s ease !important;
        border: none !important;
        margin: 0 auto !important;
        position: relative !important;
        display: block !important;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* 弹窗头部 */
    .account-main {
        padding: 0 !important;
        background: transparent !important;
    }

    /* 弹窗标题 */
    .account-main > div:first-of-type {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
        padding: 16px 0 0 0 !important;
    }

    /* 分割线 */
    .account-main hr {
        border: none !important;
        border-top: 1px solid #e0e0e0 !important;
        margin: 10px 16px !important;
    }

    /* 公告内容 */
    .account-verify {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #555 !important;
        padding: 0 16px 16px !important;
        background: transparent !important;
        max-height: 50vh !important;
        margin-top: 0 !important;
    }

    /* 确认按钮 */
    .account-btn {
        background: linear-gradient(135deg, #95d0b2, #7cc9a9) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 0 0 12px 12px !important;
        padding: 12px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: opacity 0.2s !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .account-btn:hover {
        opacity: 0.9 !important;
    }

    /* 商品名称样式 */
    .fui-goods-item .detail .name {
        color: #000000;
        font-size:.55rem;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 上架时间样式 */
    .fui-goods-item .detail .addtime {
        color: #797979;
        font-size:.52rem;
        margin-bottom: 3px;
    }

    /* 价格显示样式 */
    .fui-goods-item .detail .minprice {
        font-size:.65rem;
        color: #ff8000;
        font-weight: 600;
    }

    .fui-goods-item .detail .minprice font {
        font-size:.45rem;
    }

    .fui-goods-item .detail .minprice font:last-child {
        font-size:.55rem;
    }

    /* 价格区域样式 - 确保绝对定位在底部 */
    .fui-goods-item .detail .price {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 1.5rem !important;
        background-color: #f7f7f7 !important;
        border-radius: 0.3rem !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* 学习人数样式 */
    .fui-goods-item .detail .price .text {
        color:#a6a6a6 !important;
        font-size:10px !important;
        line-height:1.5rem !important;
        padding-left: 10px !important;
    }

    /* 不同状态的购买按钮样式 - 已合并到上方统一样式 */

    /* 无货图片覆盖层 */
    .fui-goods-item .image .lazy:last-child {
        width:100%;
        top: 0;
        position: absolute;
        height:100%;
    }
    .justify-center {
        justify-content: center;
    }

    .justify-between {
        justify-content: space-between;
    }
    .justify-around {
        justify-content: space-around;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }
    .flex-nowrap{
        flex-wrap: nowrap;
    }
    .align-center {
        align-items: center;
    }

    .tab-top font{
        font-size: 0.6rem;
    }
    .tab-top-l-icon{
        color: #f4b538;
        font-size: 0.65rem
    }
    .tab-top-r-icon{
        color: #000;
        font-size: 0.65rem;
        font-weight: 800;
    }
    .tab-top-r{
        border-left: 1px solid #dddddd;
        padding-left: 10px;
    }
    .tab-bottom{
        width: 100%;
        padding: 0.3rem 0rem;
        font-size: 0.6rem;
        position: absolute;
        top: 2.0rem;
        left: 0;
        z-index: 1025;
        background: #fff;
        box-shadow: 0px 3px 5px #e2dfdf;
    }
    .tab-bottom-none{
        display:none;
    }
    .tab-bottom-item{
    padding: .4rem 0.4rem;
    box-shadow: 0px 0px 0px .5px #7e7e7e;
    border-radius: 5px;
    margin-top: 10px;
    margin-left: 5px;
    cursor: pointer;
}
    .tab-bottom-item-index{
        background: #1195da;
        color: #fff;
    }
    .tab-top {
        position: relative;
        height: 1.8rem;
        width: calc(100% - 0.8rem);
        padding: 0  0.5rem;
        margin: 0 auto;
        border: 1px solid #dddddd;
        background: #ffffff;
        overflow: visible;
        border-radius: 10px;
    }

#audio-play #audio-btn{width: 50px;height: 50px; background-color: rgba(149, 208, 178, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; position:fixed;bottom:80px;right:20px;z-index:99999; color: #fff; font-size: 24px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); cursor: pointer; transition: all 0.3s ease;}

#audio-play #audio-btn:hover{background-color: rgba(149, 208, 178, 1); transform: scale(1.1);}

#audio-play .on{-webkit-animation: rotating 1.2s linear infinite;animation: rotating 1.2s linear infinite;}
#audio-play .off{animation: none;}

@-webkit-keyframes rotating{from{-webkit-transform:rotate(0);-moz-transform:rotate(0);-ms-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes rotating{from{-webkit-transform:rotate(0);-moz-transform:rotate(0);-ms-transform:rotate(0);-o-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg);}}
:root{--cream:#FFF8F0;--cream-light:#FDF6F0;--mint:#A8E6CF;--mint-light:#D6F5E9;--peach:#FFD3B6;--peach-light:#FFE8D6;--primary:#95d0b2;--text-primary:#4A4A4A;--text-secondary:#888;--shadow:0 8px 32px rgba(0,0,0,.08);--border-radius:8px;--transition:.35s cubic-bezier(.4,0,.2,1);}


    .fui-page-group, .fui-page {
        background: transparent !important;
    }
    .hometitle{
       width: 100%;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 550;
    border-radius: 0 0 30px 30px;
    }
    .layui-layer-title {
        padding: 0 80px 0 20px;
        height: 42px;
        line-height: 42px;
        border-bottom: 0px solid #fff1dc;
        font-size: 14px;
        color: #333;
        overflow: hidden;
        background-color: #fff1dc;
        border-radius: 2px !important;
    }
    .layui-layer-btn .layui-layer-btn0 {
        border-color: #fff1dc;
        background-color: #fff1dc;
        color: #333;
        font-size: 13px;
        border-radius: 10px !important;
    }
    .layui-layer{
        border-radius: 9px !important;
    }
    .layui-layer-title{
        border-radius: 9px !important;
    }
    a:hover {
    color: #4b93e7;
    }

 .rob_st {
    width: 82px;
    height: 29px;
    position: absolute;
    bottom: 0px;
    right: 0px;
}


/* 统一的响应式布局已在上方定义 */
.account-layer .account-title {
    height: 3rem;
    padding-top: .0rem;
    text-align: center;
    font-size: .7rem;
    line-height: 1.1rem;
    font-weight: 600;
}
.account-layer .account-next, .account-layer .account-btn {
    height: 1.5rem;
    background: #4b93e7;
    margin: 0 0.9rem .2rem 1rem;
    font-size: .6rem;
    text-align: center;
    color: #fff;
    border-radius: .25rem;
    line-height: 1.5rem;
    display: none;
}
.border {
    width: 5px;
    height: 15px;
    background-color: #4b93e7;
    border-radius: 3px;
    margin-top: 4px;
}
.group-wrapper1 {
    padding: 1px 1px 1px 1px;
    background: #fff;
    margin: 7px 0px 0px;
}

.bom-btn {
    border-radius: 7px;
    background-color: #7cafea;
    padding: 0em 0.5em;
    font-weight: 600;
}

    .fui-icon-group .fui-icon-col .text {
    font-size: .55rem;
    line-height: 1.05rem;
    padding-top: 0.1rem;
}

.def1 {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background: #ff5555;
}

.floating-search-form {
    left: 50%; 
    width: 100%; 
    max-width: 530px; 
    background-color: #fff;
    padding: 5px 0px;
    z-index: 1000; 
    justify-content: center;
    position: sticky;
    top: 0;
}




/* 二级分类标签样式 - 平面效果 */
.sub-categories-container {
    padding: 1px 6px; /* 减小与屏幕两侧的距离 */
    background-color: #ffffff;
    border-bottom: 1px solid #f5f5f5;
    overflow: hidden;
}

#classtab {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px; /* 减小按钮间隙 */
    padding: 2px 0; /* 减小上下内边距 */
    justify-content: flex-start;
    margin: 0;
}

/* 统一二级分类按钮样式，覆盖其他可能的样式定义 */
#classtab a, #classtab .tab-bottom-item, #classtab .get_tab, #classtab .sub_cat_item {
    text-decoration: none !important;
    padding: 2px 10px !important; /* 调整按钮内边距 */
    border-radius: 15px !important;
    font-size: 0.6rem !important; /* 缩小字体大小 */
    font-weight: 300 !important; /* 与一级分类字体粗细一致 */
    display: inline-flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e0e0e0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    box-shadow: none !important; /* 移除可能导致边框变粗的阴影 */
    margin-top: 0 !important;
    margin-left: 0 !important;
}

/* 移除悬停效果，保持平面状态 */
#classtab a:hover, #classtab .tab-bottom-item:hover, #classtab .get_tab:hover, #classtab .sub_cat_item:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 统一active状态样式，确保不会出现样式冲突 */
#classtab a.active, #classtab .tab-bottom-item.active, #classtab .get_tab.active, #classtab .sub_cat_item.active, #classtab .shop_active {
    background-color: #95d0b2 !important;
    color: #ffffff !important;
    border-color: #95d0b2 !important;
    font-weight: 400 !important; /* 确保active状态下字体不加粗 */
    box-shadow: none !important;
}

/* 二级分类数量样式 */
#classtab a .count {
    margin-left: 4px;
    font-size: 0.5rem;
    color: #999999;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
}

/* 为选中状态的数量添加样式 */
#classtab a.active .count {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
}

/* 分类标题栏样式优化 */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: none;
    margin-top: 0;
}

.category-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.total-products {
    font-size: 14px;
    color: #666;
    background-color: #f5f8ff;
    padding: 4px 10px;
    border-radius: 12px;
}

/* 分类网格样式 */
     .category-grid {
         display: grid;
         grid-template-columns: repeat(5, 1fr);
         gap: 5px;
         margin-bottom: 15px;
     }
     
     /* 分类按钮样式 */
     .category-item {
         background: #fff;
         border-radius: 5px;
         padding: 5px 0px;
         display: flex;
         flex-direction: column;
         align-items: center;
         box-shadow: 0 8px 32px rgba(0,0,0,.08);
         transition: .35s cubic-bezier(.4,0,.2,1);
         text-decoration: none;
     }
     
     .category-item:active {
         transform: scale(.95);
     }
     
     /* 调整分类按钮大小 */
     .category-item img {
         width: 34px;
         height: 34px;
     }
     
     .category-item span {
         font-size: 12px;
         color: #4A4A4A;
         text-align: center;
     }
     
     .category-item span div {
         margin-bottom: 2px;
     }
     
     /* 选中状态样式 */
     .category-item.active {
         background: var(--mint-light);
         border: 1px solid var(--primary);
     }

/* 确保五个按钮在任何屏幕宽度下都一行显示，无滑动条 */
.nav-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 0 10px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    min-height: auto;
}

.nav-item {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    text-decoration: none;
    height: auto;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0);
}

/* 图标样式 - 直接显示图片，无额外背景 */
.nav-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 0;
    display: block;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    border: none;
    background: transparent;
}

.nav-item span {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

/* 响应式调整间隙和大小，确保一行显示 */
@media screen and (max-width: 768px) {
    .nav-grid {
        gap: 10px;
        padding: 0 8px;
    }
    
    .nav-item img {
        width: 45px;
        height: 45px;
        margin-bottom: 7px;
    }
    
    .nav-item span {
        font-size: 12px;
    }
}

@media screen and (max-width: 640px) {
    .nav-grid {
        gap: 8px;
        padding: 0 5px;
    }
    
    .nav-item {
        min-width: 65px;
        padding: 5px;
    }
    
    .nav-item img {
        width: 42px;
        height: 42px;
        margin-bottom: 7px;
    }
    
    .nav-item span {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .nav-grid {
        gap: 6px;
        padding: 0 3px;
    }
    
    .nav-item {
        min-width: 60px;
        padding: 4px;
    }
    
    .nav-item img {
        width: 38px;
        height: 38px;
        margin-bottom: 6px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
}

@media screen and (max-width: 360px) {
    .nav-grid {
        gap: 4px;
        padding: 0 2px;
    }
    
    .nav-item {
        min-width: 55px;
        padding: 3px;
    }
    
    .nav-item img {
        width: 34px;
        height: 34px;
        margin-bottom: 5px;
    }
    
    .nav-item span {
        font-size: 10px;
    }
}

/* 背景大容器样式 - 适当增加高度 */
.background-container {
    background: #ffffff;
    padding: 12px 0;
    margin: 10px auto 10px;
    max-width: 93%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    height: auto;
    min-height: auto;
}

         .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    z-index: 100;
    max-width: 550px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}
.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 4px;
}
.bottom-nav a:hover {
    color: var(--mint);
}
.bottom-nav a[style*="color:var(--mint)"] {
    color: var(--mint) !important;
}

/* 内容区域底部间距调整 */
.content-container {
    padding-bottom: 60px;
}


/* 分类容器包含商品列表 */
.category-container {
    max-width: 93%;
    margin: 0 auto 15px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 8px 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* 响应式调整 */
@media (max-width: 375px) {
    .category-item .icon-title {
        font-size: 10px;
    }
    
    .category-item .imgpro {
        width: 36px;
        height: 36px;
    }
    
    .bottom-nav-item span {
        font-size: 10px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    /* 小屏幕优化二级分类标签 */
    #classtab a {
        padding: 6px 12px;
        font-size: 0.62rem;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .total-products {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* 响应式布局设置 */
@media screen and (max-width: 768px) {
    /* 移动端默认两列布局 */
    .fui-goods-group {
        padding: 0 6px;
    }
    
    /* 移动端两列布局基础样式 */
    .fui-goods-group.two-column .fui-goods-item {
        width: calc(50% - 16px);
        margin: 0 8px 10px 8px;
        border-radius: 0.3rem;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    /* 移动端统一商品卡片阴影 */
    .fui-goods-group.two-column .fui-goods-item {
        box-shadow: 
            0 5px 16px rgba(200, 190, 180, 0.25) !important;
    }
    
    .fui-goods-group.three-column .fui-goods-item {
        width: calc(33.33% - 6px);
        margin: 0 3px 10px 3px;
        border-radius: 0.3rem;
        overflow: hidden !important;
        box-shadow: 
            0 5px 16px rgba(200, 190, 180, 0.25) !important;
        transition: all 0.3s ease !important;
    }
    
    /* 推荐商品响应式布局 */
    #recommended-goods .fui-goods-item {
        width: calc(50% - 8px) !important;
        margin: 0 4px 10px 4px !important;
        border-radius: 0.3rem !important;
        overflow: hidden !important;
        box-shadow: 
            0 5px 16px rgba(200, 190, 180, 0.25) !important;
        transition: all 0.3s ease !important;
    }
    
    /* 调整768px屏幕下的价格按钮 - 使用flex布局 */
    .fui-goods-item .price .buy, .fui-goods-item .detail .price .buy {
        flex: 1 !important; /* 使用flex属性自适应宽度 */
        font-size: 0.75rem !important; /* 大幅增大字体大小 */
        font-weight: bold !important; /* 添加加粗效果 */
        height: 100% !important;
        line-height: 1.6rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.8rem !important; /* 调整内边距 */
        word-break: keep-all !important;
    }
    
    /* 确保价格区域有足够高度 */
    .fui-goods-item .price, .fui-goods-item .detail .price {
        height: 1.6rem !important;
    }
    
    /* 调整行高以匹配新高度 */
    .fui-goods-item .price .buy, .fui-goods-item .detail .price .buy {
        line-height: 1.6rem !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕优化按钮尺寸 - 使用flex布局 */
    .fui-goods-item .price .buy, .fui-goods-item .detail .price .buy {
        flex: 1 !important;
        font-size: 0.72rem !important;
        font-weight: bold !important;
        height: 100% !important;
        line-height: 1.6rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.8rem !important;
        word-break: keep-all !important;
    }
    
    /* 确保价格区域有足够高度 */
    .fui-goods-item .price, .fui-goods-item .detail .price {
        height: 1.6rem !important;
    }
    
    /* 小屏幕三列布局优化 */
    .fui-goods-group.three-column .fui-goods-item {
        width: calc(33.33% - 3px);
        margin: 0 1.5px 10px 1.5px;
        border-radius: 0.3rem;
        overflow: hidden !important;
    }
    
    /* 小屏幕普通商品三列布局 */
    .fui-goods-group.three-column #goods_list .fui-goods-item {
        width: calc(33.33% - 3px) !important;
        margin: 0 1.5px 10px 1.5px !important;
        border-radius: 0.3rem !important;
        overflow: hidden !important;
    }
}

@media screen and (max-width: 360px) {
    /* 超小屏幕优化 */
    .fui-goods-group {
        padding: 0 3px;
    }
    
    .fui-goods-group.two-column .fui-goods-item {
        width: calc(50% - 3px);
        margin: 0 1.5px 8px 1.5px;
        border-radius: 0.3rem;
        overflow: hidden !important;
    }
    
    /* 超小屏幕三列布局优化 */
    .fui-goods-group.three-column .fui-goods-item {
        width: calc(33.33% - 2px);
        margin: 0 1px 8px 1px;
        border-radius: 0.3rem;
        overflow: hidden !important;
    }
    
    /* 超小屏幕普通商品三列布局 */
    .fui-goods-group.three-column #goods_list .fui-goods-item {
        width: calc(33.33% - 2px) !important;
        margin: 0 1px 8px 1px !important;
        border-radius: 0.3rem !important;
        overflow: hidden !important;
    }
    
    /* 推荐商品超小屏幕响应式布局 */
    #recommended-goods .fui-goods-item {
        width: calc(50% - 3px) !important;
        margin: 0 1.5px 8px 1.5px !important;
        border-radius: 0.3rem !important;
        overflow: hidden !important;
    }
    
    /* 超小屏幕按钮尺寸优化 - 使用flex布局 */
    .fui-goods-item .price .buy, .fui-goods-item .detail .price .buy {
        flex: 1 !important;
        font-size: 0.7rem !important;
        font-weight: bold !important;
        height: 100% !important;
        line-height: 1.6rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 0.8rem !important;
        word-break: keep-all !important;
    }
    
    /* 超小屏幕价格区域高度调整 */
    .fui-goods-item .price, .fui-goods-item .detail .price {
        height: 1.6rem !important;
    }
}

/* 三列布局时完全隐藏推荐商品 */
.hidden-in-three-column {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}


