* {margin: 0;padding: 0;box-sizing: border-box;}
    body {min-height: 100vh;background: linear-gradient(to bottom right, #f3e5f5, #fce4ec);font-size: 16px;padding-bottom: 40px;}
    .original-price {text-decoration: line-through;color: #f8f8f8;font-size: 12px;opacity: 0.8;}
    .img-container {width: 100%;height: 100%;position: relative;overflow: hidden;display: flex;align-items: center;justify-content: center;}
    .img-container img {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);height: 100%;width: auto;min-width: 100%;min-height: 100%;object-fit: contain;transition: transform 0.3s ease;}
    .img-container img:hover {transform: translate(-50%, -50%) scale(1.05);}
    .menu-open {overflow: hidden;}
    .product-title-bar {display: flex;justify-content: space-between;align-items: center;height: 40px;flex-shrink: 0;}
    .product-card-inner {height: calc(100% - 40px);display: grid;grid-template-columns: 1fr 1fr;gap: 1px;padding: 1px;}
    .param-grid {height: calc(100% - 20px);overflow-y: auto;}
    .feature-grid {height: calc(100% - 20px);overflow-y: auto;}
    .product-card {height: 410px;display: flex;flex-direction: column;}
    .compare-list {max-height: 180px;overflow-y: auto;margin: 8px 0;}
    .compare-item {display: flex;justify-content: space-between;align-items: center;padding: 4px 8px;border-bottom: 1px solid #f0f0f0;font-size: 12px;}
    .compare-item-remove {color: #ff4444;cursor: pointer;font-size: 14px;}
    .filter-scroll {max-height: calc(100vh - 120px);overflow-y: auto;}
    .filter-scroll::-webkit-scrollbar {width: 4px;}
    .filter-scroll::-webkit-scrollbar-thumb {background: #ddd;border-radius: 2px;}
    ::-webkit-scrollbar {width: 6px;height: 6px;}
    ::-webkit-scrollbar-thumb {background: #ccc;border-radius: 3px;}
    ::-webkit-scrollbar-track {background: #f5f5f5;}
    .compare-box {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 50;
        transition: all 0.3s ease-in-out;
    }
    .compare-box-hidden {
        opacity: 0;
        pointer-events: none;
    }
    .compare-box-mini {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 60;
    }
    .compare-box-mini:hover {
        background: #FF5722;
        transform: scale(1.05);
    }
    .compare-box-mini:hover .mini-icon {
        color: #ffffff;
    }
    .mini-icon {
        color: #FF5722;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }
    .compare-box-full {
        position: absolute;
        bottom: 60px;
        right: 0;
        width: 280px;
        max-height: 360px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 12px;
        overflow: hidden;
    }
    .compare-box.mini .compare-box-full {
        display: none;
    }
    .compare-box:not(.mini) .compare-box-mini {
        display: none;
    }
    .filter-item {
        user-select: none;
    }

        #backToTop {
            /* 固定定位在右下角 */
            position: fixed;
            bottom: 10px;
            right: 5px;
            /* 按钮样式 */
            width: 45px;
            height: 45px;
            background-color: #FF6666;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            /* 过渡动画，让显示/隐藏更平滑 */
            transition: all 0.3s ease;
            /* 默认隐藏 */
            opacity: 0;
            visibility: hidden;
            /* 鼠标悬停效果 */
            z-index: 9999; /* 确保按钮在最上层 */
        }

        #backToTop:hover {
            background-color: #FF9999;
        }

        /* 按钮显示时的样式 */
        #backToTop.show {
            opacity: 1;
            visibility: visible;
        }
        /* 按钮样式（保留你原有的按钮样式） */
        .hidden { display: none; }
        .lg\:flex { display: flex; }
        .bg-primary\/90 { background-color: rgba(66, 153, 225, 0.9); }
        .text-white { color: white; }
        .p-2 { padding: 0.5rem; }
        .rounded-md { border-radius: 0.375rem; }
        .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
        .shrink-0 { flex-shrink: 0; }
        .hover\:bg-primary:hover { background-color: #4299e1; }
        .transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out; }
        
        /* 弹窗遮罩层样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 2rem 1rem;
            z-index: 1000;
            overflow-y: auto;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        /* 弹窗显示状态 */
        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        /* 弹窗内容容器 */
        .modal-content {
            background-color: #fff;
            border-radius: 12px;
            width: 100%;
            max-width: 1200px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 0;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
        
        .modal-overlay.show .modal-content {
            transform: translateY(0);
        }
        
        /* 弹窗关闭按钮 */
        .modal-close {
            position: absolute;
            top: 0;
            right: 0;
            margin-left: auto;
            background-color: #f5f5f5;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 1.2rem;
            color: #666;
            margin: 1rem;
            z-index: 10;
        }
        
        .modal-close:hover {
            background-color: #eee;
            color: #333;
        }
        
        /* 领券中心样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }

        .coupon-center-title {
            text-align: center;
            color: #333;
            margin-bottom: 2.5rem;
            font-size: 1.8rem;
            font-weight: 600;
            padding: 0 1rem;
        }

        /* 店铺容器 */
        .shop-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin: 0 1.5rem 2rem;
        }

        .shop-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            padding: 1.5rem;
            transition: transform 0.2s;
        }

        .shop-card:hover {
            transform: translateY(-5px);
        }

        .shop-name {
            font-size: 1.3rem;
            color: #222;
            font-weight: 600;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 1rem;
        }

        /* 优惠券卡片 */
        .coupon-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .coupon-card {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .coupon-desc {
            font-size: 1.1rem;
            color: #333;
            font-weight: 500;
        }

        /* 按钮组 */
        .coupon-btn-group {
            display: flex;
            gap: 0.8rem;
        }

        .coupon-btn {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .copy-btn {
            background-color: #e6f7ff;
            color: #1890ff;
        }

        .copy-btn:hover {
            background-color: #1890ff;
            color: #fff;
        }

        .open-btn {
            background-color: #fff2e8;
            color: #fa8c16;
        }

        .open-btn:hover {
            background-color: #fa8c16;
            color: #fff;
        }

        /* 复制成功提示 */
        .copy-tip {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #52c41a;
            color: #fff;
            padding: 0.8rem 1.5rem;
            border-radius: 6px;
            font-size: 0.9rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            z-index: 9999;
        }

        .copy-tip.show {
            opacity: 1;
        }

        /* 领券说明区域样式 */
        .coupon-tips {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            padding: 1.8rem;
            color: #666;
            line-height: 1.8;
            font-size: 0.95rem;
            margin: 0 1.5rem 2rem;
        }
        .coupon-tips__title {
            font-size: 1.2rem;
            color: #333;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid #f0f0f0;
        }
        .coupon-tips__content li {
            list-style-position: inside;
            margin-bottom: 0.5rem;
        }
        .coupon-tips__content li:last-child {
            margin-bottom: 0;
        }

        /* 响应式适配 */
        @media (max-width: 768px) {
            .modal-content {
                max-height: 95vh;
            }
            .shop-list {
                grid-template-columns: 1fr;
                margin: 0 1rem 2rem;
            }
            .coupon-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            .coupon-btn-group {
                width: 100%;
                justify-content: space-between;
            }
            .coupon-btn {
                flex: 1;
                text-align: center;
            }
            .coupon-tips {
                padding: 1.2rem;
                font-size: 0.9rem;
                margin: 0 1rem 2rem;
            }
        }
/* 密码验证弹窗样式 */
#passwordModal .modal-content {
    max-width: 400px;
}
#passwordError {
    color: #ef4444;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}