/* ========================================
   RY Video Modal - 全局视频弹窗样式
   ======================================== */

/* 弹窗遮罩层 */
.ry-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ry-video-modal.ry-video-modal--visible {
    opacity: 1;
}

/* 关闭按钮 */
.ry-video-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

.ry-video-modal__close:hover {
    transform: rotate(90deg);
    color: var(--accent_color, #ff6600);
}

/* 内容包装层 */
.ry-video-modal__wrapper {
    position: relative;
    width: 80%;
    max-width: 1000px;
    z-index: 5;
}

/* 视频容器 */
.ry-video-modal__container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.4s ease;
    position: relative;
}

.ry-video-modal--visible .ry-video-modal__container {
    transform: scale(1);
}

/* iframe / video 自适应 */
.ry-video-modal__container iframe,
.ry-video-modal__container video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    background: #000;
}

/* ========================================
   Inquiry 按钮 - 视频区右上角（挂在 wrapper 上，避免被 container overflow:hidden 裁剪）
   ======================================== */
.ry-video-modal__inquiry {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.ry-video-modal__inquiry:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

/* ========================================
   联系方式图标 - 视频区右下角（挂在 wrapper 上，避免被 container overflow:hidden 裁剪）
   ======================================== */
.ry-video-modal__contact {
    position: absolute;
    bottom: 72px;
    right: 12px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ry-video-modal__contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
}

.ry-video-modal__contact-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ry-video-modal__contact-item .iconfont {
    font-size: 20px;
    line-height: 1;
}

/* ========================================
   移动端响应式
   ======================================== */
@media (max-width: 768px) {
    .ry-video-modal__close {
        top: 12px;
        right: 14px;
        font-size: 28px;
    }

    .ry-video-modal__wrapper {
        width: 94%;
    }

    .ry-video-modal__inquiry {
        padding: 6px 14px;
        font-size: 11px;
        top: 8px;
        right: 8px;
    }

    .ry-video-modal__contact {
        bottom: 60px;
        right: 8px;
        gap: 8px;
    }

    .ry-video-modal__contact-item {
        width: 36px;
        height: 36px;
    }

    .ry-video-modal__contact-item .iconfont {
        font-size: 17px;
    }
}
