/* ==================== 顶部工具栏样式 ==================== */
.top-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2c3e50;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.toolbar-group {
    display: flex;
    gap: 8px;
}

.toolbar-group.toolbar-left {
    margin-right: auto;
}

.toolbar-group.toolbar-right {
    margin-left: auto;
}

/* 工具栏标题（居中显示） */
.toolbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    padding: 0 20px;
    text-align: center;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.toolbar-btn:active {
    background: rgba(255,255,255,0.3);
}

/* 调整画布容器高度，为工具栏留出空间 */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

/* 重置视图悬浮按钮 */
.btn-reset-view {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 99;
    padding: 0;
}

.btn-reset-view:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-reset-view:active {
    transform: scale(0.95);
}
