/* BIM模型样式文件 */
/* 防止 Vue 挂载前模板闪烁 */
[v-cloak] { display: none !important; }

/* BIM容器样式 */
.bim-container {
    background: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 600px;
    position: relative;
}

/* 3D查看器容器 */
#bim-viewer {
    width: 100%;
    height: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BIM控制面板 - 移动到左上角 */
.bim-controls {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bim-controls .ant-button {
    margin-bottom: 8px;
    width: 100%;
}

/* 设备信息悬浮面板 */
.equipment-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1001;
    pointer-events: none;
}

/* 设备过滤器 */
.bim-device-filter {
    margin-bottom: 16px;
}

.bim-device-filter .ant-select {
    width: 200px;
}

/* 加载状态 */
.bim-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
} 

/* —— 截图标注弹窗样式 —— */
.annotation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000; /* 高于 AntD 模态的 2000，确保可见 */
}

/* 内联兜底，防止浏览器阻止外链样式读取导致选择器缺失 */
.annotation-modal, .annotation-modal * {
    box-sizing: border-box;
}

.annotation-container {
    width: 80vw;
    max-width: 1100px;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    overflow: hidden;
}

.annotation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.annotation-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.annotation-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    overflow: hidden;
}

#annotation-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.annotation-footer {
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.color-picker-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.color-option {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    cursor: pointer;
}

.color-option.active {
    box-shadow: 0 0 0 2px #1890ff;
}

/* BIM文件管理样式 */
.bim-files-table .ant-table-tbody > tr > td {
    vertical-align: middle;
}

.bim-files-table .ant-table-tbody > tr > td:last-child {
    text-align: center;
}

.bim-files-table .action-link {
    display: inline-block;
    margin: 0 4px;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.bim-files-table .action-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bim-files-table .action-link.preview {
    color: #1890ff;
}

.bim-files-table .action-link.preview:hover {
    color: #40a9ff;
    background-color: rgba(24, 144, 255, 0.1);
}

.bim-files-table .action-link.delete {
    color: #ff4d4f;
}

.bim-files-table .action-link.delete:hover {
    color: #ff7875;
    background-color: rgba(255, 77, 79, 0.1);
}

/* 元素映射容器样式 */
.element-mapping-container {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
}

.element-mapping-container:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.element-mapping-icon {
    font-size: 32px;
    color: #d9d9d9;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.element-mapping-container:hover .element-mapping-icon {
    color: #1890ff;
}

.element-mapping-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.element-mapping-description {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* 文件状态标签样式 */
.file-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.file-status-pending {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.file-status-uploading {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.file-status-completed {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.file-status-error {
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
} 