* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f2f5; }

/* 侧边栏 */
.sidebar { background: #1d1e2c; overflow-y: auto; }
.sidebar .logo { height: 60px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .logo-icon { font-size: 28px; color: #409EFF; margin-right: 8px; }
.sidebar .logo-text { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.el-menu { border-right: none !important; }

/* 顶栏 */
.header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 10; }
.header-left { display: flex; align-items: center; }
.page-title { font-size: 18px; font-weight: 600; color: #303133; }
.header-right { display: flex; align-items: center; gap: 12px; }

/* 主体 */
.main-content { background: #f0f2f5; padding: 20px; overflow-y: auto; }

/* 统计卡片 */
.stat-card { text-align: center; border-top: 3px solid; transition: transform .2s; }
.stat-card:hover { transform: translateY(-4px); }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 13px; color: #909399; margin-top: 4px; }

/* 科目图标 */
.subject-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }

/* 工具栏 */
.toolbar { margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* 登录页 */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 16px; padding: 40px; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.login-header { text-align: center; margin-bottom: 30px; }
.login-icon { font-size: 48px; color: #667eea; margin-bottom: 8px; }
.login-header h2 { color: #303133; margin-bottom: 4px; }
.login-header p { color: #909399; font-size: 14px; }

/* Element Plus 样式覆盖 */
.el-card { border-radius: 8px !important; }
.el-table th.el-table__cell { background: #f5f7fa !important; }
