.letter-btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.letter-btn.active {
    background-color: #fd560f;
    color: white;
    border-color: #fd560f;
}

.letter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-list a {
    transition: color 0.2s ease;
    text-decoration: none;
}

.category-list a:hover {
    color: #fd560f;
}

/* 首字母标签容器样式 */
.letter-tags-container {
    position: relative;
    width: 100%;
}

.letter-tags-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    white-space: nowrap;
    padding: 5px 0;
    margin-bottom: 10px;
}

.letter-tags-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.letter-tags {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 10px;
}

/* 滚动箭头样式 */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scroll-arrow-left {
    left: 5px;
}

.scroll-arrow-right {
    right: 5px;
}

.scroll-arrow:hover {
    background: #f8f9fa;
}

/* 移动端分类按钮优化 */
.category-btn {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PC端样式 */
@media (min-width: 992px) {
    .letter-tags-container {
        display: block;
    }

    .scroll-arrow {
        display: none;
    }

    .letter-tags-scroll {
        overflow-x: visible;
        justify-content: center;
    }

    .letter-tags {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .children-wrap {
        display: block !important;
    }

    .category-list {
        display: block !important;
    }

    .letter-btn {
        min-width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        font-size: 16px;
        flex-shrink: 0;
    }

    .category-btn {
        min-width: 80px !important;
        padding: 8px 12px !important;
        font-size: 14px;
        margin: 4px !important;
    }

    .scroll-arrow {
        display: flex;
    }
}

@media (max-width: 768px) {
    .letter-btn {
        min-width: 38px !important;
        height: 38px !important;
        padding: 6px !important;
        font-size: 15px;
    }

    .category-btn {
        min-width: 75px !important;
        padding: 6px 10px !important;
        font-size: 13px;
    }

    .scroll-arrow {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .letter-btn {
        min-width: 36px !important;
        height: 36px !important;
        padding: 5px !important;
        font-size: 14px;
    }

    .category-btn {
        min-width: 70px !important;
        padding: 5px 8px !important;
        font-size: 12px;
        margin: 3px !important;
    }

    .scroll-arrow {
        width: 26px;
        height: 26px;
    }

    .letter-tags-scroll {
        padding: 3px 0;
    }
}

/* 移动端销售信息样式 */
.product-sales-mobile {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* 折扣信息特殊样式 */
.product-sales-mobile,
.product-sales {
    font-weight: 500;
}

/* 移动端价格区域居中 */
@media (max-width: 767.98px) {
    .product-price {
        justify-content: center !important;
    }

    .price-left {
        text-align: center;
    }

    /* 隐藏桌面端的销售信息 */
    .product-sales {
        display: none !important;
    }
}

/* 桌面端隐藏移动端销售信息 */
.product-sales-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .product-sales-mobile {
        display: block;
    }
}


/* 移动端菜单点击触感效果 */
.nav-link,
.children-title,
.collapsed {
    transition: all 0.15s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    /* 移除默认高亮 */
}

/* 点击时的触感效果 */
.nav-link:active,
.children-title:active,
.collapsed:active {
    transform: scale(0.97);
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 为可点击区域添加更好的触摸反馈 */
.accordion-item .nav-item-text a,
.children-group .children-title {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* 为折叠图标添加特殊效果 */
.collapsed:active i {
    transform: scale(0.9);
}

/* 确保图片容器有合适的样式 */
/* 图片容器样式优化 */
.image-old {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片填充样式 */
.image-old img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 加载状态 */
.image-old.loading img {
    opacity: 0.7;
}

/* 响应式图片容器 */
@media (max-width: 768px) {
    .image-old {
        min-height: 230px;
    }
}

@media (min-width: 769px) {
    .image-old {
        min-height: 360px;
    }
}



