/* 真实产品界面演示样式 */

/* 真实产品界面演示 */
.product-preview {
    padding: 60px 0 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.real-interface-demo {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.15);
    background: white;
    border: 1px solid var(--border-color);
}

.interface-window {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    min-height: 500px;
}

/* 左侧工作空间 */
.workspace-sidebar {
    background: #fafbfc;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.workspace-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.workspace-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.workspace-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-small:not(.btn-primary) {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.workspace-tree {
    padding: 16px;
    flex: 1;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.file-list {
    margin-left: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.file-item.active {
    background: var(--primary-color);
    color: white;
    animation: fileSelect 0.3s ease;
}

.file-status.new {
    background: var(--neural-green);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: auto;
    animation: newFilePulse 2s ease-in-out infinite;
}

@keyframes fileSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes newFilePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 中间文档编辑区 */
.document-area {
    background: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.document-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.doc-status {
    background: var(--neural-green);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.doc-actions {
    display: flex;
    gap: 16px;
}

.view-btn, .edit-btn, .share-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.document-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.typing-demo {
    animation: fadeInUp 0.6s ease;
}

.doc-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: typeIn 2s ease;
}

.content-section .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    animation: typeIn 3s ease;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    animation: fadeInLeft 0.8s ease;
}

.typing-cursor::after {
    content: '|';
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes typeIn {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 右侧AI助手 */
.ai-assistant {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.ai-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--neural-purple));
}

.ai-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.ai-status {
    background: var(--neural-green);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: auto;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* 用户消息气泡 */
.user-message-bubble {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    margin-left: 40px;
    animation: slideInLeft 0.5s ease;
    position: relative;
}

.user-message-content {
    font-size: 14px;
    line-height: 1.5;
}

.typing-cursor-user::after {
    content: '|';
    color: rgba(255, 255, 255, 0.8);
    animation: blink 1s infinite;
}

/* AI消息气泡 */
.ai-message-bubble {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    animation: slideInRight 0.5s ease;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.message-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.action-item.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neural-green);
    animation: actionComplete 0.5s ease;
}

.user-input-area {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.input-placeholder {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
}

.input-actions {
    display: flex;
    gap: 8px;
}

.attachment-btn, .send-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.attachment-btn:hover, .send-btn:hover {
    background: var(--secondary-color);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes actionComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 功能亮点 */
.feature-highlights {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    margin: 24px 0;
    align-items: center;
    justify-content: flex-start;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.highlight-icon {
    font-size: 18px;
}

.highlight-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 真实界面演示移动端适配 */
    .interface-window {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-height: 600px;
    }
    
    .workspace-sidebar,
    .ai-assistant {
        display: none;
    }
    
    .document-area {
        border-right: none;
    }
    
    .feature-highlights {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .highlight-item {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
    
    .real-interface-demo {
        border-radius: 12px;
        margin: 0 16px;
    }
    
    .document-content {
        padding: 16px;
    }
    
    .doc-heading {
        font-size: 20px;
    }
    
    .content-section .section-title {
        font-size: 16px;
    }
}