/* ==========================================================================
   right-toolbar.css - 右侧浮动工具栏样式
   包含：浮动按钮、模态框样式
   ========================================================================== */

/* ==========================================================================
   1. 右侧浮动工具栏
   ========================================================================== */
.right-side-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1030;
}

/* 按钮容器（包含提示标签和按钮） */
.toolbar-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 提示标签 */
.tooltip-label {
    position: absolute;
    right: 70px; /* 按钮宽度 + 间距 */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* 防止标签阻碍鼠标事件 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 显示提示标签 */
.toolbar-btn-wrapper:hover .tooltip-label {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* 工具栏按钮基本样式 */
.toolbar-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--primary-blue);
}

.toolbar-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background-color: var(--primary-dark-blue);
}

/* 发送询盘按钮样式 */
.inquiry-btn {
    /* 使用主色调 */
}

/* WhatsApp按钮样式 */
.whatsapp-btn {
    /* 使用主色调，不需要单独设置 */
}

/* 微信按钮样式 */
.wechat-btn {
    /* 使用主色调，不需要单独设置 */
}

/* 图标样式 */
.toolbar-btn i {
    font-size: 24px;
    color: white;
}

/* ==========================================================================
   2. 模态框样式
   ========================================================================== */
/* 修改模态框基本样式，完全直角无边框 */
.modal-content {
    border-radius: 0; /* 完全直角 */
    border: none; /* 移除边框 */
    box-shadow: none; /* 移除阴影 */
}

.modal-header {
    background-color: var(--primary-blue);
    color: white;
    border-bottom: none; /* 移除底部边框 */
    border-radius: 0; /* 确保直角 */
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    border-top: none; /* 确保模态框主体无上边框 */
    border-radius: 0; /* 确保直角 */
}

/* 微信二维码样式 */
.wechat-qrcode {
    max-width: 200px;
    border: none; /* 移除二维码边框 */
    box-shadow: none; /* 移除阴影 */
    margin: 0 auto;
    border-radius: 0; /* 完全直角 */
}

/* 询盘表单样式 */
.inquiry-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1); /* 浅边框 */
    padding: 10px 12px;
    border-radius: 0; /* 完全直角 */
    background-color: #ffffff; /* 纯白背景 */
}

.inquiry-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: none; /* 移除聚焦时的阴影 */
}

.inquiry-form .btn-primary {
    background-color: var(--primary-blue);
    border: none;
    padding: 10px;
    border-radius: 0; /* 确保直角 */
}

/* 微信模态框自定义标题样式 */
.wechat-modal-header {
    position: relative;
    padding: 1rem;
    border-bottom: none; /* 确保没有底部边框 */
    border-radius: 0; /* 确保直角 */
}

.wechat-modal-header .modal-title {
    /* 使标题水平居中 */
    text-align: center;
}

.wechat-modal-header .btn-close {
    /* 调整关闭按钮位置 */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.5rem;
}

/* 询盘模态框自定义标题样式 */
.inquiry-modal-header {
    position: relative;
    padding: 1rem;
    border-bottom: none; /* 确保没有底部边框 */
    border-radius: 0; /* 确保直角 */
}

.inquiry-modal-header .modal-title {
    /* 使标题水平居中 */
    text-align: center;
}

.inquiry-modal-header .btn-close {
    /* 调整关闭按钮位置 */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.5rem;
}

/* 验证码容器样式 */
.captcha-wrapper {
    display: flex;
    height: 100%;
    align-items: center;
    position: relative;
    border-radius: 0; /* 完全直角 */
    overflow: hidden; /* 确保内容不溢出 */
}

.captcha-image {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* 浅边框 */
    border-radius: 0; /* 完全直角 */
    object-fit: cover;
}

.refresh-captcha {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 0; /* 完全直角 */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: rgba(255, 255, 255, 0.9);
}

.refresh-captcha i {
    font-size: 14px;
    color: var(--primary-blue);
}

/* 移除模态框动画效果中的任何可能添加阴影或圆角的部分 */
.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* ==========================================================================
   3. 响应式调整
   ========================================================================== */
@media (max-width: 576px) {
    .right-side-toolbar {
        right: 5px;
    }
    
    .toolbar-btn {
        width: 45px;
        height: 45px;
    }
    
    .toolbar-btn i {
        font-size: 20px;
    }
    
    .tooltip-label {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .toolbar-btn-wrapper:hover .tooltip-label {
        right: 50px;
    }
}
