.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 回到顶部按钮 */
.back-to-top {
    background-color: #165DFF;
}

.inquiry-btn {
    background-color: #FF7D00;
    position: relative;
}

.inquiry-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3e3e;
    color: white;
    font-size: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 询盘窗口样式 */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.inquiry-content {
    background-color: white;
    /* 核心修改：调整最大宽度，从800px改为更小的值，比如500px */
    width: 95%;
    max-width: 650px !important;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    max-height: 100vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .inquiry-content {
        width: 90%; /* 移动端稍微收紧一点边距 */
        max-width: 100%; /* 移动端取消最大宽度限制 */
        padding: 20px;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #606266;
}

.inquiry-product-list {
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 10px;
}

.inquiry-product-item {
    padding: 10px;
    border-bottom: 1px solid #f5f7fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-form-group {
    margin-bottom: 15px;
}

.inquiry-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.inquiry-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e4e7ed;
    border-radius: 5px;
    font-size: 14px;
}

.submit-inquiry {
    background-color: #165DFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
}

/* 消息数量徽章样式 */
.chat-badge {
    /* 绝对定位到右上角 */
    position: absolute;
    top: -4px;
    right: -4px;
    /* 样式 */
    background-color: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%; /* 圆形徽章，也可改为 10px 实现椭圆 */
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    /* 可选：数量为0时隐藏 */
    /* display: none; */
}

/* 可选：数量过多时显示省略号（如超过99显示99+） */
.chat-badge[data-count="99+"] {
    padding: 2px 4px;
    min-width: auto;
}