/* 管理后台样式 - 可爱粉色系 */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #FFF5F7;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD9E3 0%, #FFE9F0 45%, #E8DFFA 100%);
}

.login-card {
  width: 380px;
  padding: 40px 36px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(255, 143, 171, 0.25);
  border: 2px solid #FFE0EA;
}

.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.login-logo h1 {
  font-size: 22px;
  color: #FF6B93;
  margin: 12px 0 4px;
  letter-spacing: 2px;
}
.login-sub { color: #C493A3; font-size: 13px; margin: 0; }

.login-btn {
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(90deg, #FF8FAB, #FF6B93);
  border: none;
  font-weight: 600;
  letter-spacing: 4px;
}

/* ---------- 主界面 ---------- */
.main-container { height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, #FF8FAB 0%, #F97FA0 60%, #B39DDB 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 0 20px 20px 0;
  box-shadow: 4px 0 20px rgba(255, 143, 171, 0.3);
}

.side-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 26px 0 18px;
  letter-spacing: 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.35);
  margin: 0 14px;
}

.menu-list { flex: 1; padding: 16px 10px; }

.menu-item {
  position: relative;
  padding: 13px 20px;
  margin: 6px 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
  background: transparent;
}

.menu-item:hover { background: rgba(255,255,255,0.18); transform: translateX(3px); }

.menu-item.active {
  background: #fff;
  color: #FF6B93;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(150, 60, 90, 0.2);
}

.badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #FF4D6D;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 7px;
}

.side-footer { padding: 16px; text-align: center; border-top: 1px dashed rgba(255,255,255,0.35); }
.side-user { margin-bottom: 10px; font-size: 13px; opacity: 0.9; }

.content { background: #FFF5F7; padding: 24px 30px; overflow-y: auto; }

.page-title { color: #FF6B93; margin: 0 0 18px; font-size: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.page-head .page-title { margin-bottom: 0; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.stat-card {
  border-radius: 20px;
  padding: 26px 24px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-card.pink  { background: linear-gradient(135deg, #FF8FAB, #FF6B93); }
.stat-card.peach { background: linear-gradient(135deg, #FFB88C, #FF9A62); }
.stat-card.lilac { background: linear-gradient(135deg, #C3AEF0, #9F86E8); }
.stat-card.mint  { background: linear-gradient(135deg, #7FD8BE, #4FC1A0); }

.stat-num { font-size: 34px; font-weight: 700; }
.stat-label { margin-top: 6px; font-size: 14px; opacity: 0.92; }

/* 表格与缩略图 */
.el-table { border-radius: 14px; overflow: hidden; }

.dish-thumb, .avatar-thumb, .banner-thumb {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover;
  background: #FFE9F0; display: flex; align-items: center; justify-content: center;
  color: #D9A0B5; font-size: 12px;
}
.banner-thumb { width: 120px; height: 54px; }
.avatar-thumb { border-radius: 50%; }

.dish-thumb.empty, .avatar-thumb.empty { display: flex; }
.dish-thumb img, .avatar-thumb img { width: 100%; height: 100%; object-fit: cover; }

.order-item-line { font-size: 13px; color: #8A5A6B; line-height: 1.7; }

/* 上传区域 */
.upload-area {
  display: flex; align-items: center; gap: 12px;
}
.upload-preview {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  border: 2px dashed #FFB6C9;
}
.upload-preview.large { width: 240px; height: 110px; }

/* 弹窗圆角 */
.el-dialog { border-radius: 18px; }
.el-button--primary {
  background: linear-gradient(90deg, #FF8FAB, #FF6B93);
  border: none;
}
.el-button--primary:hover { background: #FF6B93; }
