/* 背景选择器容器 */
.bg-selector {
    position: relative;
    width: 100%;
    padding: 24px 0;
    user-select: none;
    -webkit-user-select: none;
}
.bg-selector-label {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.bg-selector-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px calc(50vw - 60px) 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bg-selector-track::-webkit-scrollbar {
    display: none;
}
.bg-option {
    flex: 0 0 120px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: center;
    border: 2px solid transparent;
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.bg-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bg-option::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}
.bg-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.bg-option.selected {
    border-color: var(--gold);
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(217, 181, 106, 0.25), 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.bg-option-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 12px;
    text-align: center;
    letter-spacing: 1px;
    z-index: 3;
}

/* 左右导航箭头 */
.bg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 16, 28, 0.85);
    border: 1px solid rgba(217, 181, 106, 0.3);
    color: var(--gold);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--duration-normal) var(--ease-standard);
    backdrop-filter: blur(8px);
}
.bg-nav:hover {
    background: rgba(30, 32, 50, 0.9);
    border-color: var(--gold);
}
.bg-nav-left { left: 8px; }
.bg-nav-right { right: 8px; }

@media (max-width: 600px) {
    .bg-option {
        flex: 0 0 100px;
        height: 150px;
    }
    .bg-nav { display: none; }
}
