/* v2版本文生文试用示例样式 */
.prompt-examples-v4 {
    padding: 0;
}

.prompt-examples-v4-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.prompt-examples-v4-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

/* Tab容器整体框架 */
.prompt-examples-v4-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab导航样式 */
.prompt-examples-v4-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    gap: 0;
    background-color: #f9fafb;
    padding: 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #cbd5e1 #f9fafb;
    /* Firefox */
}

/* 自定义滚动条样式 - Webkit浏览器 */
.prompt-examples-v4-tabs::-webkit-scrollbar {
    height: 6px;
}

.prompt-examples-v4-tabs::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.prompt-examples-v4-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.prompt-examples-v4-tabs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.prompt-examples-v4-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
    margin: 4px 2px 0 2px;
}

.prompt-examples-v4-tab:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.prompt-examples-v4-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: #ffffff;
    margin-bottom: -1px;
}

/* Tab内容容器 */
.prompt-examples-v4-content-wrapper {
    position: relative;
    min-height: 200px;
    padding: 24px;
}

.prompt-examples-v4-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.prompt-examples-v4-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 原有的内容样式保持不变 */
.prompt-examples-v4-list {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.prompt-examples-v4-item {
    margin-bottom: 0;
}

.prompt-examples-v4-header {
    margin-bottom: 16px;
}

.prompt-examples-v4-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.prompt-examples-v4-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-examples-v4-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-height: 500px;
    overflow-y: auto;
}

.prompt-examples-v4-output-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* 移除所有HTML/Markdown样式，这些样式现在由html-content-display.css统一处理 */

/* 示例分割线 */
.prompt-examples-v4-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 24px 0;
}

/* 弹窗按钮样式 */
.prompt-examples-v4-output-header {
    position: relative;
    height: 0;
    margin-bottom: 16px;
}

.prompt-examples-v4-popup-btn {
    position: absolute;
    top: 50px;
    right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.prompt-examples-v4-popup-btn:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.prompt-examples-v4-popup-btn svg {
    flex-shrink: 0;
}

/* 弹窗模态框样式 */
.prompt-examples-v4-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.prompt-examples-v4-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.prompt-examples-v4-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 95vw;
    max-height: 70vh;
    width: 1000px;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.prompt-examples-v4-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.prompt-examples-v4-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.prompt-examples-v4-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.prompt-examples-v4-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.prompt-examples-v4-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.prompt-examples-v4-popup-content {
    line-height: 1.6;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prompt-examples-v4-modal-content {
        width: 98vw;
        max-height: 80vh;
        margin: 10px;
    }

    .prompt-examples-v4-modal-header {
        padding: 16px 20px;
    }

    .prompt-examples-v4-modal-body {
        padding: 20px;
    }

    .prompt-examples-v4-popup-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .prompt-examples-v4 {
        padding: 24px 0;
    }

    .prompt-examples-v4-container {
        padding: 0 16px;
    }

    .prompt-examples-v4-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .prompt-examples-v4-tabs {
        margin-bottom: 0;
        padding: 0 2px;
    }

    .prompt-examples-v4-tab {
        padding: 6px 12px;
        font-size: 13px;
        flex-shrink: 0;
        margin: 2px 1px 0 1px;
    }

    .prompt-examples-v4-content-wrapper {
        padding: 16px;
    }

    .prompt-examples-v4-output {
        padding: 16px;
        border-radius: 8px;
        max-height: 400px;
    }

    .prompt-examples-v4-item-title {
        font-size: 16px;
    }

    .prompt-examples-v4-divider {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .prompt-examples-v4-container {
        padding: 0 12px;
    }

    .prompt-examples-v4-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .prompt-examples-v4-tabs {
        margin-bottom: 0;
        padding: 0 2px;
    }

    .prompt-examples-v4-tab {
        padding: 6px 10px;
        font-size: 12px;
        margin: 2px 1px 0 1px;
    }

    .prompt-examples-v4-content-wrapper {
        padding: 12px;
    }

    .prompt-examples-v4-output {
        padding: 12px;
        max-height: 350px;
    }

    .prompt-examples-v4-header {
        margin-bottom: 12px;
    }

    .prompt-examples-v4-item-title {
        font-size: 15px;
    }

    .prompt-examples-v4-divider {
        margin: 16px 0;
    }
}