/* ========== 全屏弹窗 Overlay ========== */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* 默认状态 */
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    /* 关闭过渡：opacity + visibility + transform */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    /* 防止弹窗内部出现意外滚动 */
    overflow: hidden;
}

/* 关闭状态 —— 淡出 + 缩小 + 隐藏 */
.fullscreen-overlay.closing {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-overlay.hidden {
    display: none;
}

/* ========== 轮播容器 —— 全屏铺满 ========== */
.carousel-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
    background: #1a1a1f;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 4s ease;
}

.carousel-slide.active img {
    transform: scale(1.03);
}

/* 顶部渐变遮罩（让关闭按钮更清晰） */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 3;
}

/* ========== 关闭按钮 ========== */
.close-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.94);
    transition: 0.1s ease;
}

.close-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.close-btn:hover svg {
    transform: scale(1.1);
}

/* ========== 进度条 ========== */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ========== 指示器圆点（悬浮于图片底部） ========== */
.indicators {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 20;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.indicator-dot.active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
    transform: scale(1.4);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.25);
}

.indicator-dot.active:hover {
    transform: scale(1.4);
}

/* 跳过提示 */
.skip-hint {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

.skip-hint:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .close-btn {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .close-btn svg {
        width: 18px;
        height: 18px;
    }

    .indicators {
        bottom: 20px;
        gap: 12px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
    }

    .skip-hint {
        bottom: 58px;
        font-size: 12px;
    }

    .carousel-slide::after {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .close-btn svg {
        width: 16px;
        height: 16px;
    }

    .indicators {
        bottom: 16px;
        gap: 10px;
    }

    .skip-hint {
        bottom: 48px;
        font-size: 11px;
    }

    .carousel-slide::after {
        height: 70px;
    }
}