[v-cloak] {
    display: none;
}

body {
    background-color: #0f172a;
    background-image: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Slider 核心樣式修正 --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    cursor: col-resize;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-image {
    width: 100%;
    display: block;
    height: auto;
    pointer-events: none;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    /* ❌ 移除原本的 background 屬性 */
    overflow: hidden;
    z-index: 5;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

/* 🆕 新增：Overlay 內部的圖片樣式 */
.slider-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    /* 關鍵！允許圖片超出父容器寬度 */
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.1s;
}

.svg-preview {
    background-color: #1e293b;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 20px 20px;
}

.fade-enter-active,
.fade-leave-active {
    transition: all 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Sticky Model Selector - 僅在桌機上啟用 */
@media (min-width: 768px) {
    .sticky-model-selector {
        position: -webkit-sticky;
        /* Safari 支援 */
        position: sticky;
        top: 120px;
        /* 導航欄高度 + 一些間距 */
        z-index: 40;
        background: rgba(15, 23, 42, 0.98);
        /* 更不透明的背景 */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s ease;
    }

    .sticky-model-selector:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.12);
    }
}