/* 提示词预览模块样式 */
.prompt-preview {
    padding: 40px 0;
}

.prompt-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* 左侧样式 */
.preview-left {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;

    height: 500px;
    overflow: hidden;
    position: relative;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.content-preview {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blurred-content {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    flex: 1;
}

.prompt-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.trial-button-container {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
}

.trial-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.trial-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* 右侧样式 */
.preview-right {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.features-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.features-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.features-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.feature-bullet {
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    flex: 1;
}

/* 图片预览容器样式 */
.image-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-image-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.preview-generated-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.preview-image-display:hover .preview-generated-image {
    transform: scale(1.05);
}

.no-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-preview-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* 图片全屏预览模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

/* 视频预览容器样式 */
.video-preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-video-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-video-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.preview-generated-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
    outline: none;
}

.preview-video-display:hover .preview-generated-video {
    transform: scale(1.02);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .prompt-preview {
        padding: 30px 0;
    }

    .prompt-preview .container {
        padding: 0 16px;
    }

    .preview-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .preview-left,
    .preview-right {
        padding: 20px;
    }

    .preview-title,
    .features-title {
        font-size: 16px;
    }

    .trial-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .modal-close {
        top: 15px;
        right: 25px;
        font-size: 30px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }


}

@media (max-width: 480px) {
    .preview-left,
    .preview-right {
        padding: 16px;
    }

    .blurred-content {
        padding: 16px;
    }

    .prompt-text {
        font-size: 12px;
    }

    .feature-text {
        font-size: 13px;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 25px;
    }

    .modal-content {
        max-width: 98%;
        max-height: 80%;
    }

    .no-preview-text {
        font-size: 12px;
    }
}