/* 全局公共样式 */
body {
  background-color: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bg-light { background-color: #f5f6fa !important; }

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card { width: 100%; max-width: 380px; border-radius: 12px; }

/* 后台布局 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: #1e2a3a; color: #fff; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .brand {
  padding: 18px 16px; font-size: 18px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .nav-link {
  color: #cbd3dc; padding: 12px 20px; border-radius: 0; transition: .2s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: #2c3e54; color: #fff;
}
.admin-sidebar .nav-link i { margin-right: 8px; }
.admin-sidebar .logout { margin-top: auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.admin-sidebar .logout:hover { background: #2c3e54; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-header {
  height: 56px; background: #fff; border-bottom: 1px solid #eaecef;
  display: flex; align-items: center; padding: 0 20px; justify-content: space-between;
}
.admin-content { padding: 20px; flex: 1; overflow: auto; }

/* 统计卡片 */
.stat-card {
  background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border-left: 4px solid #667eea;
}
.stat-card .stat-title { color: #8a94a6; font-size: 13px; }
.stat-card .stat-value { font-size: 28px; font-weight: bold; margin-top: 6px; }

/* 通用表格容器 */
.panel-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 18px; }
.panel-card .panel-title { font-weight: 600; margin-bottom: 14px; }

/* tab 切换 */
.cfg-tab { display: flex; border-bottom: 2px solid #eaecef; margin-bottom: 18px; }
.cfg-tab .tab-item {
  padding: 10px 18px; cursor: pointer; color: #8a94a6; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.cfg-tab .tab-item.active { color: #667eea; border-bottom-color: #667eea; font-weight: 600; }
.cfg-pane { display: none; }
.cfg-pane.active { display: block; }

/* 图片预览 */
.img-preview { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; margin: 4px; border: 1px solid #eee; }
.img-item { display: inline-block; position: relative; }
.img-item .del-btn {
  position: absolute; top: -6px; right: -6px; background: #e74c3c; color: #fff;
  border-radius: 50%; width: 20px; height: 20px; line-height: 18px; text-align: center; cursor: pointer; font-size: 12px;
}
