/* ==========================================================================
   MX Floating Inquiry Module
   ========================================================================== */
.mx-floating-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
}

/* 隐藏原始 Checkbox */
.mx-toggle-checkbox {
    display: none;
}

/* --- 触发按钮 (默认状态) --- */
.mx-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004488; /* 工业深蓝 */
    color: #ffffff;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
    border: 1px solid #003366;
}

.mx-trigger-btn:hover {
    background-color: #003366;
}

.mx-trigger-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.mx-trigger-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* --- 展开面板 (初始隐藏) --- */
.mx-inquiry-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

/* 纯 CSS 核心控制：当 Checkbox 被选中时，显示面板，隐藏触发按钮 */
.mx-toggle-checkbox:checked ~ .mx-inquiry-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mx-toggle-checkbox:checked ~ .mx-trigger-btn {
    display: none;
}

/* --- 面板内部样式 --- */
.mx-panel-header {
    background-color: #1a1a1a; /* 高冷黑 */
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mx-panel-title {
    font-weight: 700;
    font-size: 15px;
}

.mx-close-btn {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.mx-close-btn:hover {
    opacity: 1;
}

.mx-panel-body {
    padding: 20px;
}

/* 炫富信任区 */
.mx-trust-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    padding: 12px;
    margin-bottom: 20px;
}

.mx-trust-item {
    font-size: 12px;
    color: #555555;
    width: 100%;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.mx-trust-item:last-child {
    margin-bottom: 0;
}
.mx-trust-item::before {
    content: "✓";
    color: #004488;
    margin-right: 8px;
    font-weight: bold;
}

/* 表单样式 */
.mx-form-group {
    margin-bottom: 15px;
}

.mx-input, .mx-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    font-size: 14px;
    outline: none;
    border-radius: 0; /* 严格的直角工业风 */
}

.mx-input:focus, .mx-textarea:focus {
    border-color: #004488;
}

.mx-textarea {
    resize: vertical;
    min-height: 80px;
}

.mx-submit-btn {
    width: 100%;
    background-color: #004488;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 0;
}

.mx-submit-btn:hover {
    background-color: #003366;
}

/* --- 移动端响应式 (核心 SEO 防护) --- */
@media (max-width: 768px) {
    .mx-floating-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    /* 手机端只留图标，不显文字，极致收敛 */
    .mx-trigger-btn {
        padding: 12px;
        border-radius: 50%; /* 仅手机端为圆形图标，符合移动端直觉 */
    }
    
    .mx-trigger-icon {
        margin-right: 0;
    }
    
    .mx-trigger-text {
        display: none; 
    }
    
    /* 手机端面板撑满屏幕宽度，但留出边距避免被判为完全遮挡广告 */
    .mx-inquiry-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-right: none;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    }
}