* { margin: 0; padding: 0; box-sizing: border-box; }

html, body, #app {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==================== 登录页 ==================== */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  width: 420px;
  padding: 50px 40px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-title {
  text-align: center;
  margin-bottom: 36px;
  color: #333;
  font-size: 26px;
  letter-spacing: 2px;
}

.login-tip {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  margin-top: 16px;
}

/* ==================== 后台布局 ==================== */
.admin-layout {
  height: 100vh;
}

.admin-aside {
  background: #304156;
  overflow-y: auto;
  transition: width 0.3s;
}

.admin-aside::-webkit-scrollbar { width: 0; }

.logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  background: #263445;
  letter-spacing: 2px;
}

.admin-menu {
  border-right: none !important;
}

.menu-icon {
  margin-right: 8px;
  font-size: 18px;
  width: 24px;
  display: inline-block;
  text-align: center;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-name {
  color: #666;
  font-size: 14px;
}

.admin-main {
  background: #f0f2f5;
  padding: 24px;
  overflow-y: auto;
}

/* ==================== 页面头部 ==================== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

/* ==================== 控制台统计卡片 ==================== */
.stat-card-body {
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-right: 20px;
  color: #fff;
  flex-shrink: 0;
}

.stat-info { flex: 1; }

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #999;
  margin-top: 8px;
}

/* ==================== 表格工具栏 ==================== */
.table-toolbar {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== 分页栏 ==================== */
.pagination-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
