
/* 全局滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 隐藏横向滚动条但保留功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hero {
    background: linear-gradient(135deg, #FF5000 0%, #FF7F50 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 25px;
}

/* 模态框动画 */
.modal-content {
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 移动端优化：确保模态框在 iOS 上滚动流畅 */
@media (max-width: 768px) {
    #productModal .modal-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* 图片加载占位效果 */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 选中态缩略图边框增强 */
.thumbnail-selected {
    border-color: #FF5000 !important;
    ring-width: 2px;
    ring-color: #FF5000;
}
.bg-taobao {
    background-color: #FF5000 !important;
}
.text-white{
    color: #fff !important;
}
