/* 免费在线询价模块样式 */
.inquiry-module {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 统计数据展示区域 */
.inquiry-stats-summary {
    padding: 18px;
    background: linear-gradient(135deg, #fff 0%, #f7fbff 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.inquiry-stats-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inquiry-stats-title {
    font-weight: 700;
    color: #2563eb;
    font-size: 18px;
}

.inquiry-stats-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

.inquiry-stats-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.inquiry-stats-content {
    flex: 1;
    padding-left: 16px;
}

.inquiry-category-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inquiry-category-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #2563eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.inquiry-category-btn.active,
.inquiry-category-btn:hover {
    background: #2563eb;
    color: #fff;
}

.inquiry-chat-btn {
    margin-left: auto;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.inquiry-chat-btn:hover {
    background: #1d4ed8;
}

.inquiry-recent-activity {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.inquiry-activity-item {
    display: inline-block;
    background: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    margin-right: 8px;
}

/* 询价表单 */
.inquiry-form-container {
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.inquiry-form-title {
    text-align: center;
    margin-bottom: 15px;
}

.inquiry-form-title h5 {
    margin: 0;
    color: #2563eb;
    font-size: 16px;
}

.inquiry-form-title small {
    color: #64748b;
}

.inquiry-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.inquiry-form-group {
    flex: 1;
    min-width: 120px;
}

.inquiry-form-group select,
.inquiry-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.inquiry-form-group select:focus,
.inquiry-form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.inquiry-submit-btn {
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inquiry-submit-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.inquiry-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 询价结果 */
.inquiry-result {
    margin-top: 15px;
    display: none;
}

.inquiry-result-success {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.inquiry-result-success h6 {
    margin: 0 0 10px 0;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inquiry-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.inquiry-result-actions {
    text-align: center;
    margin-top: 15px;
}

.inquiry-result-error {
    background: #fff5f5;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #feb2b2;
    color: #c53030;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inquiry-result-error a {
    color: #c53030;
    text-decoration: underline;
}

/* 聊天模态框 */
.inquiry-chat-modal {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-width: 90%;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.inquiry-chat-header {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inquiry-chat-title {
    font-weight: 700;
}

.inquiry-chat-controls {
    display: flex;
    gap: 8px;
}

.inquiry-agent-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.inquiry-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-chat-body {
    height: 320px;
    overflow-y: auto;
    padding: 12px;
    background: #f8fbff;
}

.inquiry-chat-input-area {
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
}

.inquiry-chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.inquiry-send-btn {
    padding: 8px 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.inquiry-send-btn:hover {
    background: #1d4ed8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .inquiry-stats-header {
        flex-direction: column;
        gap: 12px;
    }

    .inquiry-stats-content {
        padding-left: 0;
    }

    .inquiry-category-buttons {
        flex-wrap: wrap;
    }

    .inquiry-category-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .inquiry-chat-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .inquiry-form {
        flex-direction: column;
    }

    .inquiry-form-group {
        min-width: auto;
    }

    .inquiry-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .inquiry-result-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-chat-modal {
        width: 95%;
        left: 2.5%;
        right: auto;
    }
}

/* 加载状态 */
.inquiry-loading {
    text-align: center;
    color: #2563eb;
    padding: 20px;
}

.inquiry-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
