.sc-wrapper {
    width: 100%;
    user-select: none;
    position: relative;
}

.sc-content {
    position: relative;
}

.sc-image-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 310px;
    height: 155px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
}

.sc-wrapper:hover .sc-image-container,
.sc-wrapper:focus-within .sc-image-container,
.sc-wrapper.is-active .sc-image-container {
    display: block;
}

/* 验证成功后强制隐藏图片，覆盖:hover规则（修复APK/WebView中:hover不自动清除的问题） */
.sc-wrapper.is-verified .sc-image-container {
    display: none !important;
}

.sc-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-slider-image {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    cursor: grab;
    transition: left 0.05s ease-out;
}

.sc-slider-image:active {
    cursor: grabbing;
}

.sc-slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: var(--m-bg-tertiary, #0f0f1a);
    border: 1px solid var(--m-border, #333);
    border-radius: 20px;
    overflow: visible;
}

.sc-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, #667eea, #4ecdc4);
    opacity: 0.3;
    border-radius: 20px;
    transition: width 0.1s ease-out;
}

.sc-slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-bg-elevated, #1a1a2e);
    border: 1px solid var(--m-border, #333);
    border-radius: 50%;
    cursor: grab;
    transition: all 0.2s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sc-slider-handle:hover {
    background: var(--m-bg-glass-hover, #252540);
    border-color: var(--m-accent, #4ecdc4);
}

.sc-slider-handle.is-dragging {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sc-slider-handle svg {
    width: 18px;
    height: 18px;
    color: var(--m-text-secondary, #888);
    transition: color 0.2s ease-out;
}

.sc-slider-handle:hover svg {
    color: var(--m-text-primary, #4ecdc4);
}

.sc-slider-handle.is-success {
    background: #28a745;
    border-color: #28a745;
}

.sc-slider-handle.is-success svg {
    color: white;
}

.sc-slider-handle.is-fail {
    background: #dc3545;
    border-color: #dc3545;
}

.sc-slider-handle.is-fail svg {
    color: white;
}

.sc-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: 12px;
    color: var(--m-text-muted, #888);
    white-space: nowrap;
}

.sc-text.is-success {
    color: #28a745;
}

.sc-text.is-fail {
    color: #dc3545;
}

.sc-refresh {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    z-index: 10;
    opacity: 0.5;
}

.sc-refresh:hover {
    opacity: 1;
}

.sc-refresh svg {
    width: 14px;
    height: 14px;
    color: var(--m-text-muted, #888);
}

@media (max-width: 480px) {
    .sc-image-container {
        width: calc(100vw - 48px);
        max-width: 310px;
    }
}
