﻿/* 询盘系统专用样式 - 不影响页面原有样式 */
.inq-btn {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: #fd6802;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 10000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif; /* 只在询盘系统内指定字体 */
}

.inq-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: #ff5a1f;
}

.inq-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.inq-btn-text {
    font-weight: 600;
}

/* 模态框 - 修复定位问题 */
.inq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}

.inq-modal.show {
    display: flex !important;
    opacity: 1;
}

.inq-modal-box {
    background: white;
    border-radius: 12px;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: inq-slide-up 0.3s ease;
    position: relative; /* 确保正常定位 */
    margin: 0 auto; /* 居中显示 */
}

@keyframes inq-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.inq-modal-header {
    background: #fd6802;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inq-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* 指定字体 */
}

.inq-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    font-family: Arial, sans-serif; /* 指定字体 */
    line-height: 1;
}

.inq-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.inq-modal-body {
    padding: 30px;
}

/* 表单样式 */
.inq-form-group {
    margin-bottom: 20px;
}

.inq-form-group input,
.inq-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif; /* 指定字体 */
    transition: border-color 0.3s;
    background: #f9f9f9;
    box-sizing: border-box;
}

.inq-form-group input:focus,
.inq-form-group textarea:focus {
    outline: none;
    border-color: #fd6802;
    background: white;
}

.inq-form-group input::placeholder,
.inq-form-group textarea::placeholder {
    color: #999;
    font-family: Arial, sans-serif; /* 指定字体 */
}

.inq-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.inq-submit {
    width: 100%;
    padding: 14px;
    background: #fd6802;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Arial, sans-serif; /* 指定字体 */
    box-sizing: border-box;
}

.inq-submit:hover {
    background: #ff5a1f;
}

.inq-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.inq-submit-text,
.inq-loading {
    font-family: Arial, sans-serif; /* 指定字体 */
}

.inq-loading {
    font-size: 20px;
    animation: inq-spin 1s linear infinite;
    display: inline-block;
}

@keyframes inq-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    .inq-btn {
        right: 20px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .inq-modal-box {
        width: 90vw;
        margin: 20px;
    }
    
    .inq-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .inq-btn {
        right: 15px;
        padding: 10px 15px;
        font-size: 13px;
        top: auto;
        bottom: 30px;
        transform: none;
    }
    
    .inq-btn:hover {
        transform: scale(1.05);
    }
    
    .inq-btn:active {
        transform: scale(0.95);
    }
    
    .inq-form-group input,
    .inq-form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .inq-submit {
        padding: 12px;
        font-size: 15px;
    }
    
    .inq-btn-text {
        font-size: 14px;
    }
}

/* 页面原有样式 - 不受询盘系统影响 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit; /* 继承body字体 */
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: inherit; /* 继承body字体 */
}

.content p {
    font-size: 1.1rem;
    color: #666;
    font-family: inherit; /* 继承body字体 */
}

.original-font {
    font-family: 'Microsoft YaHei', sans-serif; /* 明确指定字体 */
    color: #333;
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
}