// 全局变量
:root {
  --primary-color: #00c2ff;
  --dark-bg: #1a1f2c;
  --menu-bg: #1a1f2c;
  --menu-text: #8b9bb4;
  --menu-active-bg: #13161f;
  --card-bg: #ffffff;
  --border-radius: 8px;
  --transition-duration: 0.3s;
}

// 全局样式
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
}

// 布局样式
.layout-default {
  height: 100vh;
  background: #f0f2f5;

  .el-container {
    height: 100%;
  }

  .el-aside {
    background: var(--menu-bg);
    transition: width var(--transition-duration);
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    
    .logo {
      height: 60px;
      padding: 10px 20px;
      display: flex;
      align-items: center;
      background: var(--menu-active-bg);
      
      span {
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 600;
        background: linear-gradient(45deg, var(--primary-color), #00e1ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    
    .el-menu {
      border: none;
      background: var(--menu-bg);
      
      .el-menu-item {
        color: var(--menu-text);
        
        &:hover, &.is-active {
          color: #fff;
          background: var(--menu-active-bg);
          
          &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-color);
          }
        }
        
        .el-icon {
          color: inherit;
        }
      }
    }
  }

  .el-header {
    height: 60px;
    padding: 0 20px;
    background: var(--card-bg);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    
    .header-left {
      display: flex;
      align-items: center;
      
      .collapse-btn {
        font-size: 20px;
        margin-right: 20px;
        cursor: pointer;
        color: #666;
        transition: color var(--transition-duration);
        
        &:hover {
          color: var(--primary-color);
        }
      }
    }
  }

  .el-main {
    padding: 20px;
    background: #f0f2f5;
  }
}

// 卡片样式
.el-card {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform var(--transition-duration);
  
  &:hover {
    transform: translateY(-2px);
  }
  
  .el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    
    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      
      span {
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(45deg, var(--primary-color), #00e1ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
  }
}

// 表格样式
.el-table {
  border-radius: var(--border-radius);
  overflow: hidden;
  
  th.el-table__cell {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
  }
  
  .el-button--link {
    padding: 2px 4px;
    font-weight: 500;
  }
}

// 表单样式
.el-form {
  .el-form-item__label {
    font-weight: 500;
  }
  
  .el-input, .el-select, .el-date-editor {
    width: 100%;
    max-width: 460px;
    
    .el-input__wrapper {
      border-radius: var(--border-radius);
    }
  }
  
  .el-button {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 500;
    transition: all var(--transition-duration);
    
    &--primary {
      background: linear-gradient(45deg, var(--primary-color), #00e1ff);
      border: none;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,194,255,0.3);
      }
    }
  }
}

// 过渡动画
.fade-enter-active,
.fade-leave-active {
  transition: opacity var(--transition-duration);
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
} 