/* 产品筛选滚动条组件样式 */
.product-filter-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 3rem;
    padding: 1.5rem 0;
}

/* 滑块轨道 */
.product-slider-track {
    height: 2px;
    background: #e2e8f0;
    position: relative;
    margin: 2rem 0;
}

/* 滑块手柄 - 空心圆圈，与筛选点重合 */
.product-slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #00476B;
    background: transparent;
    border-radius: 50%;
    cursor: grab;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: all;
}

.product-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-width: 2px;
}

.product-slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 筛选标记点 - 放置在线条上 */
.filter-markers {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 0.5rem;
    pointer-events: all;
    min-width: 100px;
    max-width: 150px;
}

.filter-marker-dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-marker:hover .filter-marker-dot {
    background: #00476B;
    transform: scale(1.2);
}

.filter-marker.active .filter-marker-dot {
    background: #00476B;
    transform: scale(1.2);
}

.filter-marker-label {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    position: absolute;
    top: 2rem;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 8px;
    line-height: 1.3;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#latest-filter-slider .filter-marker-label {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
}

.filter-marker:hover .filter-marker-label {
    color: #00476B;
}

.filter-marker.active .filter-marker-label {
    color: #00476B;
    font-weight: 600;
}

/* 产品卡片筛选样式 */
.product-card {
    transition: all 0.4s ease;
}

.product-card.hidden {
    display: none !important;
}

/* 平板端响应式 (768px以下) */
@media (max-width: 768px) {
    .product-filter-slider {
        max-width: 100%;
        margin: 1.5rem auto 2.5rem;
        padding: 0.5rem 0;
    }

    .product-slider-track {
        margin: 1.5rem 0;
    }

    .product-slider-handle {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }

    .filter-marker {
        padding: 0 0.3rem;
        min-width: 80px;
    }

    .filter-marker-dot {
        width: 10px;
        height: 10px;
    }

    .filter-marker-label {
        font-size: 0.75rem;
        min-width: auto;
        max-width: 90px;
        top: 2.2rem;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        padding: 0 6px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #latest-filter-slider .filter-marker-label {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }

    .filter-marker:hover .filter-marker-dot {
        transform: scale(1.1);
    }

    .filter-marker.active .filter-marker-dot {
        transform: scale(1.1);
    }
}

/* 小平板端响应式 (640px以下) */
@media (max-width: 640px) {
    .product-filter-slider {
        max-width: 100%;
        margin: 1rem auto 2rem;
    }

    .filter-marker {
        padding: 0 0.2rem;
        min-width: 70px;
    }

    .filter-marker-label {
        font-size: 0.7rem;
        min-width: auto;
        max-width: 80px;
        top: 2rem;
        padding: 0 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #latest-filter-slider .filter-marker-label {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
}

/* 移动端响应式 (480px以下) */
@media (max-width: 480px) {
    .product-filter-slider {
        max-width: 100%;
        margin: 0.5rem auto 1.5rem;
        padding: 0.25rem 0;
    }
    
    .product-slider-track {
        margin: 1rem 0;
    }
    
    .product-slider-handle {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .filter-marker {
        padding: 0 0.1rem;
        min-width: 60px;
    }

    .filter-marker-dot {
        width: 8px;
        height: 8px;
    }

    .filter-marker-label {
        font-size: 0.65rem;
        min-width: auto;
        max-width: 70px;
        top: 1.8rem;
        line-height: 1.1;
        font-weight: 500;
        padding: 0 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #latest-filter-slider .filter-marker-label {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
}

/* 超小移动端响应式 (375px以下) */
@media (max-width: 375px) {
    .product-filter-slider {
        max-width: 100%;
        margin: 0.25rem auto 1rem;
    }

    .filter-marker {
        padding: 0 0.1rem;
        min-width: 50px;
    }

    .filter-marker-label {
        font-size: 0.6rem;
        min-width: auto;
        max-width: 60px;
        top: 1.8rem;
        padding: 0 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #latest-filter-slider .filter-marker-label {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .product-slider-handle {
        cursor: pointer;
        touch-action: pan-x;
    }
    
    .filter-marker {
        padding: 0.5rem;
        margin: -0.5rem;
    }
    
    .filter-marker:active .filter-marker-dot {
        background: #00476B;
        transform: scale(1.1);
    }
    
    .filter-marker:active .filter-marker-label {
        color: #00476B;
        font-weight: 600;
    }
}