/* 视频弹窗样式 */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90%;
    width: 800px;
    max-height: 80vh; /* 限制高度为视口高度的80% */
    box-shadow: var(--apple-shadow);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
    opacity: 1;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    font-size: 16px;
    transition: background-color 0.2s;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-video {
    width: 100%;
    max-height: 80vh; /* 限制视频高度为视口高度的80% */
    display: block;
    object-fit: contain; /* 确保视频保持比例并完全可见 */
}

/* 视频教程链接样式 */
.video-tutorial-links {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.video-tutorial-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
}

.video-tutorial-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.video-tutorial-link i {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-tutorial-links {
        flex-direction: column;
        margin-left: 10px;
        gap: 5px;
    }
}