/* 文生视频实际应用案例样式 */
.video-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .video-examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-example-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-display {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.generated-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.video-example-item:hover .generated-video {
    transform: scale(1.02);
}

.video-title {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    line-height: 1.4;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.prompt-examples {
    padding: 40px 0;
    background: #ffffff;
}

@media (max-width: 767px) {
    .video-examples-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-display {
        height: 200px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .generated-video {
        height: 100%;
    }
}

/* 视频加载状态样式 - 只在视频加载时显示 */
.video-display.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}