// 全局样式
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#app {
  height: 100%;
}

// 编辑器布局
.editor-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.canvas-container {
  flex: 1;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.sidebar {
  width: 320px;
  border-left: 1px solid #e4e7ed;
  display: flex;
  flex-direction: column;
  background: #fff;
}

// 工具面板
.tool-panel {
  padding: 16px;
  border-bottom: 1px solid #e4e7ed;
  
  .panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #303133;
  }
  
  .button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
}

// 结构信息面板
.structure-panel {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  
  .panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #303133;
  }
  
  .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    
    .label {
      color: #909399;
    }
    
    .value {
      color: #303133;
      font-weight: 500;
    }
  }
  
  .line-list {
    margin-top: 12px;
    
    .line-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 8px;
      margin-bottom: 4px;
      background: #f5f7fa;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.2s;
      
      &:hover {
        background: #e6f7ff;
      }
      
      &.selected {
        background: #409eff;
        color: #fff;
      }
      
      &.modified {
        background: #fef0f0;
        
        &.selected {
          background: #f56c6c;
        }
      }
    }
  }
}

// 上传区域
.upload-area {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  
  .upload-icon {
    font-size: 64px;
    color: #c0c4cc;
    margin-bottom: 16px;
  }
  
  .upload-text {
    font-size: 16px;
    color: #606266;
    margin-bottom: 8px;
  }
  
  .upload-hint {
    font-size: 13px;
    color: #909399;
  }
}

// 画布工具栏
.canvas-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
  
  .zoom-display {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
  }
}

// 坐标输入对话框
.coordinate-input {
  .el-input-number {
    width: 100%;
  }
}

// 保存设置
.save-settings {
  padding: 16px;
  border-top: 1px solid #e4e7ed;
  background: #fafafa;
  
  .el-input {
    margin-bottom: 12px;
  }
}
