* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; width: 100%; margin: 0; padding: 0; }

/* ============== 登录页 ============== */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 50%, #1a1f3a 100%);
  position: relative;
  overflow: hidden;
}
.login-container::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(64,158,255,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}
.login-container::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(118,75,162,0.12) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
}
.login-box {
  width: 460px;
  padding: 48px 40px;
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
}
.login-header {
  text-align: center;
  margin-bottom: 36px;
}
.login-header h2 {
  color: #1a1f3a;
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.login-header p {
  color: #909399;
  font-size: 14px;
  letter-spacing: 2px;
}
.login-tip {
  text-align: center;
  color: #c0c4cc;
  font-size: 13px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f2f5;
}

/* ============== 主布局 ============== */
.main-container {
  height: 100vh;
}
.aside-container {
  background: linear-gradient(180deg, #1a1f3a 0%, #151930 100%);
  overflow: hidden;
  transition: width 0.3s;
}
.logo-area {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-area h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2px;
}
.menu-container {
  border-right: none !important;
  background: transparent !important;
  padding: 8px 0;
}
.menu-container .el-menu-item {
  color: #a0aec0 !important;
  height: 50px;
  line-height: 50px;
  margin: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.25s;
}
.menu-container .el-menu-item:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.menu-container .el-menu-item.is-active {
  background: linear-gradient(135deg, #409eff 0%, #3677e6 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(64,158,255,0.35);
}

.header-container {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1f3a;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-name {
  color: #606266;
  font-size: 14px;
  font-weight: 500;
}

.main-content {
  background: #f0f2f5;
  overflow-y: auto;
  padding: 20px !important;
}

/* ============== 统计卡片 ============== */
.stat-card {
  border: none !important;
  border-radius: 14px !important;
  margin-bottom: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.stat-card .el-card__body {
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 20px;
}
.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.stat-card.blue .stat-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-card.cyan .stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.stat-card.pink .stat-icon { background: linear-gradient(135deg, #fa709a, #fee140); }
.stat-card.yellow .stat-icon { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #333; }
.stat-card.indigo .stat-icon { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #333; }

.stat-info { flex: 1; min-width: 0; }
.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: #1a1f3a;
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: #909399;
  letter-spacing: 1px;
}

/* ============== 卡片/表格 ============== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #1a1f3a;
}
.el-card {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
.el-card__header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f0f2f5 !important;
}
.el-card__body {
  padding: 20px !important;
}

/* 表格优化 */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}
.el-table th.el-table__cell {
  background: #fafbfc !important;
  color: #1a1f3a !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  height: 48px;
}
.el-table td.el-table__cell {
  padding: 10px 0 !important;
}
.el-table .cell {
  line-height: 1.5;
  padding: 0 12px;
}

/* 分页 */
.el-pagination {
  margin-top: 16px;
  justify-content: flex-end;
  display: flex;
}

/* 对话框 */
.el-dialog {
  border-radius: 14px !important;
}
.el-dialog__header {
  border-bottom: 1px solid #f0f2f5;
  padding: 20px 24px !important;
}
.el-dialog__body {
  padding: 24px !important;
}
.el-dialog__footer {
  border-top: 1px solid #f0f2f5;
  padding: 16px 24px !important;
}

/* ============== 系统设置（分类选项卡 + 上下排版） ============== */
.system-settings {
  max-width: 780px;
}
/* 选项卡整体白底卡片感 */
.setting-tabs {
  border-radius: 8px;
  overflow: visible;
}
.setting-tabs > .el-tabs__header {
  margin: 0;
  background: #f7f8fa;
}
.setting-tabs .el-tabs__item {
  height: 46px;
  line-height: 46px;
  font-size: 15px;
  color: #606266;
}
.setting-tabs .el-tabs__item.is-active {
  color: #6fc91f;
  font-weight: 600;
}
.setting-tabs .el-tabs__active-bar {
  background-color: #6fc91f;
}
.setting-tabs > .el-tabs__content {
  padding: 22px 24px;
}
.tab-label {
  display: inline-block;
  padding: 0 4px;
}
.setting-card {
  border: none;
}
.setting-card > .el-card__header {
  padding: 0 0 14px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.setting-card > .el-card__body {
  padding: 18px 0 0;
}
/* 标题在上、输入框在下：标签独占一行 */
.setting-form .el-form-item {
  margin-bottom: 20px;
}
.setting-form .el-form-item__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 6px !important;
  line-height: 1.5;
  height: auto;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}
.field-key {
  font-size: 11px;
  font-family: Consolas, Monaco, monospace;
  color: #909399;
  background: #f4f4f5;
  border-radius: 4px;
  padding: 1px 7px;
}
.setting-form .el-input__wrapper,
.setting-form .el-textarea__inner {
  width: 100%;
}
.form-actions {
  margin-top: 6px;
  margin-bottom: 0 !important;
}
.form-actions .el-form-item__content {
  margin-left: 0 !important;
}
.setting-tip {
  margin-top: 4px;
  padding: 10px 14px;
  background: #f7f8fa;
  border-radius: 6px;
  font-size: 12px;
  color: #909399;
}
/* VIP 开关行 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 2px;
}
.switch-title {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.switch-desc {
  font-size: 13px;
  color: #909399;
  margin-top: 6px;
  line-height: 1.6;
}
/* 窄屏：开关换到下方，避免挤压文字 */
@media (max-width: 640px) {
  .switch-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
