/* 遮罩层 */
.modal-overlay {
    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: 999;
}

/* 弹窗容器 */
.bind-device-modal {
    width: 872px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    color: #1D2129;
    width: 872px; /* 固定宽度，匹配设计稿 */
    height: 48px; /* 固定高度，匹配设计稿 */
    padding: 12px 20px; /* 上下内边距12px，左右20px，匹配右侧属性面板 */
    display: flex;
    justify-content: space-between; /* 标题左、关闭按钮右 */
    align-items: center; /* 垂直居中 */
    box-sizing: border-box; /* 内边距不影响宽高 */
    border-radius: 4px 4px 0 0; /* 顶部圆角，匹配设计稿 */
    border: 1px solid #EDEFF2;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1; /* 避免文字偏移 */
}

/* 关闭按钮容器 */
.modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片样式 */
.modal-close img {
    width: 16px;
    height: 16px;
    angle: 0 deg;
    opacity: 1;
}

/* hover 效果可选 */
.modal-close:hover img {
    opacity: 0.8;
}

/* 图片内容区（核心修改：替换为图片展示） */
.modal-img-content {
    padding: 16px 20px;
}
.modal-img-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
}
.modal_tips {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    margin: 20px 20px 0;
    background: #EFF7FF;
    border-radius: 2px;
    color: #1D2129;
}
.modal_tips .tips_icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
/* 底部区域样式 */
.modal-footer {
    width: 872px; /* 匹配设计稿固定宽度 */
    height: 64px; /* 匹配设计稿高度 */
    padding: 16px 20px; /* 右侧属性面板参数 */
    display: flex;
    justify-content: flex-end; /* 靠右对齐 */
    align-items: center;
    gap: 10px; /* 按钮间距 */
    box-sizing: border-box;
    border-top: 1px solid #EDEFF2; /* 顶部边框 */
}

/* 通用按钮样式重置 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* 按钮高度 */
    font-size: 14px;
    text-decoration: none; /* 去除a标签下划线 */
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 关闭按钮样式 */
.btn-close {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    color: #6B7280;
    padding: 6px 16px;
}
.btn-close:hover {
    background-color: #F3F4F6;
    color: #374151;
}

/* 立即前往按钮样式 */
.btn-go {
    background-color: #2563EB; /* 主题蓝色 */
    color: #FFFFFF;
    border: none; /* 去掉默认边框 */
    padding: 6px 16px;
}
.btn-go:hover {
    background-color: #1D4ED8; /* 深色 hover */
}