/* ========== AI智能客服悬浮按钮 ========== */
.ai-quote-btn {
    display: flex;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 100px;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    box-shadow: -2px 4px 15px rgba(102,126,234,0.4);
    cursor: pointer;
    z-index: 999;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 4px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
}
.ai-quote-btn:hover {
    width: 52px;
    box-shadow: -4px 6px 20px rgba(102,126,234,0.5);
}
.ai-quote-btn .ai-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff4757;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: bold;
    writing-mode: horizontal-tb;
}
.ai-quote-btn .ai-btn-icon {
    display: none;
}
.ai-quote-btn .ai-btn-text {
    display: inline;
    font-weight: 600;
}

/* AI智能客服模态框 */
.ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}
.ai-modal-overlay.show {
    display: flex;
}
.ai-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}
.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.ai-modal-header h3 {
    color: #4a6fcb;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

/* 快捷示例标签 */
.ai-quick-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ai-example-tag {
    padding: 6px 12px;
    background: #e8f0fe;
    color: #4a6fcb;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.ai-example-tag:hover {
    background: #d2e3fc;
}

/* 手机端样式 */
@media (max-width: 768px) {
    .ai-quote-btn {
        top: auto;
        bottom: 80px;
        right: 15px;
        transform: none;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        font-size: 20px;
        writing-mode: horizontal-tb;
        flex-direction: row;
        letter-spacing: normal;
    }
    .ai-quote-btn:hover {
        width: 56px;
        transform: scale(1.1);
    }
    .ai-quote-btn .ai-badge {
        top: -2px;
        left: auto;
        right: -2px;
    }
    .ai-quote-btn .ai-btn-icon {
        display: inline !important;
        font-size: 22px;
    }
    .ai-quote-btn .ai-btn-text {
        display: none !important;
    }
    .ai-quote-btn .ai-badge {
        display: none;
    }
}
