/* AI 聊天弹窗样式 */

/* 弹窗遮罩层 */
.ai-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-chat-modal.active {
    display: flex;
    opacity: 1;
}

/* 遮罩背景 */
.ai-chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

/* 弹窗面板 */
.ai-chat-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    overflow: hidden;
}

.ai-chat-modal.active .ai-chat-panel {
    transform: translateX(0);
}

/* iframe 样式 */
.ai-chat-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    min-height: 100vh;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-chat-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ai-chat-panel {
        width: 100%;
        height: 100%;
    }
}
