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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
}

/* 登录页面 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E90FF 0%, #00CED1 100%);
}

.login-card {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: #999;
}

.login-form {
  margin-top: 30px;
}

/* 主布局 */
.main-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 220px;
  background-color: #001529;
  transition: width 0.3s;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
  width: 32px;
  height: 32px;
}

.sidebar-header span {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}

.sidebar .el-menu {
  border-right: none;
}

/* 主内容区 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 顶部栏 */
.header {
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left .el-breadcrumb {
  margin-left: 16px;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-dropdown .username {
  margin: 0 8px;
  font-size: 14px;
  color: #333;
}

/* 内容区 */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* 仪表盘 */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.stat-icon .el-icon {
  font-size: 28px;
  color: #fff;
}

.stat-icon.users { background: linear-gradient(135deg, #1E90FF, #00CED1); }
.stat-icon.coaches { background: linear-gradient(135deg, #722ED1, #B37FEB); }
.stat-icon.bookings { background: linear-gradient(135deg, #52C41A, #95DE64); }
.stat-icon.revenue { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }

.stat-info .stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.stat-info .stat-label {
  font-size: 14px;
  color: #999;
}

/* 卡片头部 */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header span {
  font-size: 16px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* 财务卡片 */
.finance-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.finance-card h3 {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
}

.finance-card .amount {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.finance-card .count {
  font-size: 14px;
  color: #666;
}

/* 头像上传 */
.avatar-uploader {
  text-align: center;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #1E90FF;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed #ddd;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
}

.avatar-placeholder:hover {
  border-color: #1E90FF;
  color: #1E90FF;
}

.avatar-placeholder .el-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.avatar-placeholder span {
  font-size: 12px;
}

/* 图表容器 */
.chart-container {
  width: 100%;
  height: 300px;
}

.chart-card {
  margin-top: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .stat-card {
    margin-bottom: 12px;
  }
}

/* 课程类型管理样式 */
.price-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-list .price-item {
  background: #f5f7fa;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.price-config {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-config-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-config-item .duration-label {
  min-width: 60px;
  font-weight: 500;
}

.price-config-item .price-unit {
  color: #999;
  font-size: 13px;
}
