/* -----------------------------------------------------
    Fifi Select 全站主题 - 粉色版
----------------------------------------------------- */

:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-200: #fecfe4;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;

  --gray-50: #fafafa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;

  --radius-card: 18px;
  --radius-box: 14px;

  --shadow-card: 0 8px 18px rgba(0,0,0,0.06);
  --shadow-soft: 0 4px 10px rgba(0,0,0,0.05);
}

body.fifi-body {
  background: var(--pink-50);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: var(--gray-700);
}

/* -----------------------------------------------------
    顶部导航栏
----------------------------------------------------- */
.topbar {
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

.topbar-inner {
  max-width: 900px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo img {
  height: 40px;
  width: auto;
}

.topbar-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-nav a {
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-500);
  background: #ffffff;
  border: 1px solid var(--pink-200);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.20);
  white-space: nowrap;           /* 防止文案换行 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease;
}

.topbar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-nav a:hover {
  background: linear-gradient(135deg, #fee2f8, #fecaca);
  color: #be185d;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
  transform: translateY(-1px);
}

.topbar-nav a:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

.nav-cart {
  position: relative;
}

/* 顶部右侧：会员等级徽章 + 我的积分按钮 */
.topbar-member {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* 小号等级徽章（header 版） */
.topbar-level-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.35);
  white-space: nowrap;
}

/* 根据会员等级切换不同渐变色 */
.topbar-level-moonstone {
  background: linear-gradient(135deg, #e0f2fe, #c7d2fe);
}

.topbar-level-ruby {
  background: linear-gradient(135deg, #fecaca, #fb7185);
}

.topbar-level-sapphire {
  background: linear-gradient(135deg, #bfdbfe, #2563eb);
}

.topbar-level-diamond {
  background: linear-gradient(135deg, #fdf2ff, #e5e7eb);
}

/* 等级徽章内文字 */
.topbar-level-chip .lvl-short {
  letter-spacing: 0.02em;
}

/* “我的积分” 按钮：小号胶囊按钮 */
.topbar-points-link {
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-500);
  background: #ffffff;
  border: 1px solid var(--pink-200);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.topbar-points-link:hover {
  background: linear-gradient(135deg, #fee2f8, #fecaca);
  color: #be185d;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
  transform: translateY(-1px);
}

.topbar-points-link:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

.nav-cart-badge {
  background: var(--pink-400);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  position: absolute;
  top: -6px;
  right: -8px;
}

/* 桌面端隐藏顶部菜单按钮，仅在移动端显示（见下方 @media 规则） */
@media (min-width: 641px) {
  .topbar-menu-btn {
    display: none !important;
  }
}

/* ============================
 * 顶部导航 - 移动端布局
 * 小屏幕：logo 居中 + 右侧菜单按钮 + 下拉菜单
 * ============================ */
@media (max-width: 640px) {
  /* 顶部条整体：保持粘顶，但内部布局改成 logo 居中 */
  .topbar-inner {
    max-width: 100%;
    padding: 0 12px;
    justify-content: center;
    position: relative; /* 让右侧按钮、下拉菜单可以绝对定位 */
  }

  /* logo 容器，保证居中 */
  .topbar-logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-logo img {
    height: 32px; /* 移动端稍微小一点，给按钮留空间 */
  }

  /* 隐藏原本横向导航，并改为下拉卡片样式 */
  .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;            /* 顶栏正下方 */
    right: 12px;          /* 贴着右侧按钮对齐 */
    margin-top: 8px;
    padding: 6px;         /* 外层白色卡片只留一点点内边距 */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-sizing: border-box;
    z-index: 98;
    width: auto;          /* 宽度随内容收缩 */
    min-width: 0;         /* 不再强制 180px 宽 */
  }

  /* 菜单展开时的样式：配合 JS/HTML 给 .topbar-nav 加 is-open 类 */
  .topbar-nav.is-open {
    display: block;       /* 让内部 .topbar-nav-list 自己用 flex 布局 */
  }

  .topbar-nav-list {
    flex-direction: column;
    align-items: flex-start;  /* 每一项靠左对齐，不再被拉伸 */
    gap: 6px;
  }

  .topbar-nav a {
    width: auto;                        /* 只按内容宽度 */
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;        /* 菜单项文字靠左一点，更像列表 */
    padding: 7px 14px;                  /* 移动端略大一点的点击区域 */
    border-radius: 999px;               /* 保持胶囊形状 */
    font-size: 14px;                    /* 手机上字稍微大一点 */
  }

  /* 右侧菜单按钮 */
  .topbar-menu-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500)); /* 粉色渐变 */
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
    cursor: pointer;
    padding: 0;
  }

  .topbar-menu-btn span {
    font-size: 18px;
    line-height: 1;
  }

  .topbar-menu-btn:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.24);
  }

  /* 移动端先隐藏顶部右侧的会员展示，避免与 logo 抢位置
     后续如果要在下拉菜单里显示，可以在 HTML 结构中单独加入 */
  .topbar-member {
    display: none;
  }
}

/* -----------------------------------------------------
    页面框架
----------------------------------------------------- */
.page-root {
  padding-bottom: 40px;
}

.page-main {
  margin-top: 16px;
}

.page-container {
  max-width: 900px;
  margin: auto;
  padding: 0 16px;
}

/* -----------------------------------------------------
    标题区域
----------------------------------------------------- */
.page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--pink-600);
}

.page-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 10px;
}

/* -----------------------------------------------------
    专场头部
----------------------------------------------------- */
.case-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.case-header-cover img {
  width: 120px;
  height: auto;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-soft);
}

.case-desc {
  margin-top: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-soft);
}

.case-desc-label {
  font-size: 13px;
  font-weight: 600;
}

.case-desc-text {
  font-size: 14px;
  color: var(--gray-700);
}

/* -----------------------------------------------------
    section 通用
----------------------------------------------------- */
.section-block {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--pink-500);
}

.section-subtitle {
  font-size: 13px;
  color: var(--gray-600);
}

/* -----------------------------------------------------
    表单区域：新增图片 + 留言
----------------------------------------------------- */
.message-form {
  background: white;
  padding: 16px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.msg-group {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-box);
  border: 1px dashed var(--pink-300);
  margin-bottom: 20px;
}

.msg-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.msg-group-title {
  font-weight: 700;
  font-size: 15px;
}

.msg-upload-box-large {
  display: block;
  border: 2px dashed var(--pink-300);
  border-radius: var(--radius-box);
  padding: 40px 10px;
  text-align: center;
  background: var(--pink-50);
  cursor: pointer;
}

.msg-upload-maintext {
  font-size: 16px;
  color: var(--pink-600);
  margin-bottom: 4px;
}

.msg-upload-subtext {
  font-size: 12px;
  color: var(--gray-600);
}

.msg-file-input {
  display: none;
}

.msg-textarea-large {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font-size: 14px;
  border-radius: var(--radius-box);
  border: 1px solid var(--gray-200);
  min-height: 120px;
  resize: vertical;
}

/* -----------------------------------------------------
    底部操作按钮
----------------------------------------------------- */
.msg-actions-split {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--pink-100);
  color: var(--pink-600);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--pink-300);
  cursor: pointer;
  white-space: nowrap;           /* 关键：防止按钮文字换行 */
  display: inline-flex;          /* 与主按钮一致的布局方式 */
  align-items: center;
  justify-content: center;
}

.btn-pill-outline {
  background: white;
  border: 1px solid var(--pink-300);
  color: var(--pink-500);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* -----------------------------------------------------
    历史记录卡片
----------------------------------------------------- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-card {
  background: white;
  padding: 14px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.history-main {
  display: flex;
  gap: 12px;
}

.history-thumb img {
  height: 60px;
  width: auto;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-soft);
}

.history-text {
  font-size: 14px;
  margin-bottom: 6px;
}

.history-meta {
  font-size: 12px;
  color: var(--gray-600);
}

.history-status-pending {
  color: #f59e0b;
}

.history-status-approved {
  color: #10b981;
}


.history-status-rejected {
  color: #ef4444;
}

/* 移动端：Case 历史记录卡片里的“编辑”按钮换到下一行，避免在右侧挤压或溢出 */
@media (max-width: 640px) {
  .history-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-main {
    width: 100%;
  }

  .history-actions {
    margin-top: 8px;
    align-self: flex-end; /* 按钮整体靠右 */
  }

  .history-actions .btn-pill-outline {
    padding: 6px 14px;
    font-size: 13px;
  }
}

.empty-box {
  padding: 20px;
  background: white;
  border-radius: var(--radius-box);
  text-align: center;
  color: var(--gray-600);
  box-shadow: var(--shadow-soft);
}

/* ============== Auth 通用样式：登录 / 注册 共用 ============== */

.fifi-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: #ffeef6;
  color: #374151;
}

/* 整个认证页容器：垂直 & 水平居中卡片 */
.auth-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
}

/* 中间白色卡片 */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(248, 113, 150, 0.18);
  padding: 24px 22px 28px;
}
/* 顶部 Logo + 标题（登录 / 注册 共用） */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.auth-logo-wrap {
  margin-bottom: 8px;
}

.auth-logo-image {
  max-width: 260px;
  height: auto;
  display: block;
}

.auth-header-sub {
  font-size: 13px;
  color: #6b7280;
}

/* 中央白色卡片容器：让登录 / 注册卡片水平居中 */
.auth-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 顶部 Logo 行 */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-logo img {
  height: 52px;          /* 适合你现在那张长方形 logo */
  width: auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  object-fit: contain;
}

.auth-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-logo-main {
  font-weight: 700;
  font-size: 20px;
  color: #db2777;
}

.auth-logo-sub {
  font-size: 12px;
  color: #6b7280;
}

/* 标题 & 副标题 */
.auth-title {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.auth-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* 错误提示 */
.auth-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
}

/* 表单 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 13px;
  color: #4b5563;
}

/* 统一注册 / 登录输入框的大小与卡片内边距，修复溢出问题 */
.auth-input {
  width: 100%;
  box-sizing: border-box;   /* ⭐ 必须：防止 padding 让宽度超出容器 */
  border-radius: 14px;      /* 圆角一致，跟UI保持统一 */
  border: 1px solid #e5e7eb;
  padding: 12px 14px;       /* 让输入框更精致 */
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.25);
}

.auth-input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.4);
}

/* 主按钮（跟首页那种粉色渐变统一） */
.btn-primary.auth-submit {
  width: 100%;
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.btn-primary.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.34);
  opacity: 0.96;
}

.btn-primary.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

/* 卡片底部文案 */
.auth-footer-text {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
}

.auth-footer-text a {
  color: #ec4899;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-footer-note {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

/* 页面底部的小版权 */
.auth-page-foot {
  margin-top: 12px;
  font-size: 11px;
  color: #9ca3af;
}

/* -----------------------------------------------------
   全站通用页面底部 footer（home / cases / flash / cart / orders 等）
----------------------------------------------------- */
.page-footer {
  margin-top: 24px;
}

.page-footer-inner {
  text-align: center;     /* 文字居中 */
  font-size: 12px;
  color: #9ca3af;
  padding: 16px 0 24px;
}

/* -----------------------------------------------------
   闪购专场详情页 /flash/list/:id
----------------------------------------------------- */

.flash-hero-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 20px;
}

.flash-hero-left {
  flex: 1 1 220px;
}

.flash-hero-right {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flash-hero-cover img {
  max-width: 180px;
  border-radius: var(--radius-box);
  box-shadow: var(--shadow-soft);
}

.flash-hero-placeholder {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-box);
  background: var(--pink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-500);
  font-weight: 600;
}

.flash-hero-tagline {
  font-size: 12px;
  color: var(--pink-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.flash-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-600);
}

.flash-hero-desc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.flash-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.flash-hero-meta-text {
  color: var(--gray-600);
}

/* 小状态角标 */

.flash-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.flash-badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.flash-badge-ended {
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

/* 商品网格 */

.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.flash-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flash-card-media {
  position: relative;
  overflow: hidden;
}

.flash-card-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.flash-card-media-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 13px;
}

/* 角标 */

.flash-card-ribbon {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
}

.flash-card-ribbon-hot {
  background: #f97316;
}

.flash-card-ribbon-off {
  background: #9ca3af;
}

.flash-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

.flash-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
  min-height: 34px;
}

.flash-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-600);
}

.flash-card-stock {
  font-size: 12px;
}

.flash-stock-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.flash-stock-low {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}

.flash-stock-zero {
  background: rgba(148, 163, 184, 0.16);
  color: #6b7280;
}

.flash-card-actions {
  margin-top: 4px;
}

/* 加入购物车按钮：更宽的内边距 + 粉色彩虹渐变（与站点主题一致） */
.flash-btn-add {
  width: 100%;
  box-sizing: border-box;          /* 确保 padding 不会撑破容器 */
  padding: 11px 20px;              /* 上下 11px，左右 20px，让两边更宽 */
  font-size: 14px;
  line-height: 1.3;
  background: linear-gradient(
    135deg,
    var(--pink-200) 0%,
    var(--pink-300) 25%,
    var(--pink-400) 50%,
    var(--pink-500) 75%,
    #db2777 100%
  );                               /* 粉色系彩虹渐变 */
  border: none;
}

/* 禁用态按钮：保持同样大小，但颜色为灰色 */
.flash-btn-disabled {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 20px;
  font-size: 14px;
  line-height: 1.3;
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

/* 小屏优化 */

@media (max-width: 640px) {
  .flash-hero-card {
    padding: 14px 12px 16px;
  }
}

/* -----------------------------------------------------
   闪购专场列表 /flash
----------------------------------------------------- */

.flash-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flash-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-card-main {
  display: flex;
  gap: 14px;
}

.flash-cover img,
.flash-cover-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--pink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--pink-500);
}

.flash-info {
  flex: 1;
  min-width: 0;
}

.flash-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.flash-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--gray-700);
}

.flash-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.flash-tag-active {
  background: rgba(52, 211, 153, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

.flash-tag-off {
  background: var(--gray-100);
  color: var(--gray-600);
  border-color: var(--gray-200);
}

.flash-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--gray-600);
}

/* 底部：时间 + 按钮 */
.flash-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  gap: 8px;
}

.flash-meta-text {
  font-size: 11px;
  color: var(--gray-400, #9ca3af);
}

.flash-actions {
  display: flex;
  justify-content: flex-end;
}

.flash-enter-btn {
  font-size: 13px;
  padding: 8px 18px;
}

.flash-enter-btn-disabled {
  font-size: 13px;
  padding: 8px 18px;
  opacity: 0.75;
  pointer-events: auto; /* 允许点进去看，但样式弱一点 */
}

/* -----------------------------------------------------
   Admin 后台布局 - 粉色简洁版（整理版）
----------------------------------------------------- */

.admin-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text",
    "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f9fafb;
  color: #111827;
}

/* 整体：左侧侧边栏 + 右侧内容区 */
.admin-root {
  min-height: 100vh;
  display: flex;
  background: #f9fafb; /* 整体底色 */
}

/* 左侧侧边栏 */
.admin-sidebar {
  width: 230px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  box-sizing: border-box;
}

/* 顶部 Logo + 文本 */
.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-sidebar-logo img {
  height: 40px;
  width: auto;
  max-width: 100%;             /* 防止超出侧栏宽度 */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  object-fit: contain;
}

.admin-sidebar-title-main {
  font-size: 16px;
  font-weight: 700;
  color: #db2777;
}

.admin-sidebar-title-sub {
  font-size: 11px;
  color: #6b7280;
}

/* 菜单标题 */
.admin-nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 10px 0 6px;
}

/* 菜单列表 */
.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav-item {
  margin-bottom: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  color: #4b5563;
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.admin-nav-link:hover {
  background: #fce7f3;
  color: #db2777;
  transform: translateX(1px);
}

.admin-nav-link-active {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
}

/* 右下角“退出 / 当前管理员” */
.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  font-size: 12px;
  color: #6b7280;
}

.admin-sidebar-user {
  margin-bottom: 6px;
}

.admin-sidebar-user span {
  font-weight: 600;
  color: #ec4899;
}

.admin-sidebar-logout a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 11px;
}

.admin-sidebar-logout a:hover {
  text-decoration: underline;
  color: #f97316;
}

/* 右侧主区域 */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 顶部条（右侧） */
.admin-topbar {
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fef2f7;
  box-sizing: border-box;
}

.admin-topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: #be185d;
}

.admin-topbar-breadcrumb {
  font-size: 12px;
  color: #9ca3af;
}

/* 内容区域：居中 + 最大宽度 */
.admin-content {
  padding: 18px 20px 26px;
  max-width: 1100px;    /* 最大内容宽度 */
  margin: 0 auto;       /* ⭐ 关键：让内容区域在右侧居中 */
  width: 100%;
  box-sizing: border-box;
}

/* 统一卡片风格 */
.admin-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 16px 18px 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.admin-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.admin-card-subtitle {
  font-size: 12px;
  color: #6b7280;
}

/* 小标签 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.badge-pink {
  background: #fef2f8;
  border-color: #f9a8d4;
  color: #be185d;
}

.badge-gray {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}

/* Admin 按钮 */
.btn-admin-primary {
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-admin-primary:hover {
  opacity: 0.96;
}

.btn-admin-outline {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-admin-outline:hover {
  border-color: #f9a8d4;
  color: #db2777;
}

/* 危险按钮：删除 */
.btn-admin-danger {
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.btn-admin-danger:hover {
  background: #fee2e2;
}

/* 表格 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: #f9fafb;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table th {
  font-weight: 600;
  color: #6b7280;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

/* 响应式：窄屏时侧边栏折叠为顶部 */
@media (max-width: 768px) {
  .admin-root {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
  }

  .admin-sidebar-logo {
    margin-bottom: 0;
  }

  .admin-nav-section-title {
    display: none;
  }

  .admin-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .admin-sidebar-bottom {
    display: none;
  }

  .admin-main {
    width: 100%;
  }

  .admin-topbar {
    padding: 8px 14px;
  }

  .admin-content {
    padding: 12px 14px 18px;
  }
}

/* 顶部专场卡片 */
.case-hero-card {
  max-width: 980px;
  margin: 24px auto 16px;
  padding: 20px 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(248, 113, 182, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.case-hero-img-wrap {
  flex: 0 0 auto;
}

.case-hero-img {
  width: 120px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.case-hero-img-placeholder {
  width: 120px;
  height: 160px;
  border-radius: 18px;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b91c1c;
  font-size: 13px;
}

.case-hero-info {
  flex: 1;
  min-width: 0;
}

.case-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.case-hero-desc-label {
  font-size: 12px;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 4px;
}

.case-hero-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

/* 提交区域 */
.case-group {
  max-width: 980px;
  margin: 0 auto 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(248, 113, 182, 0.12);
}

.case-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #db2777;
  margin-bottom: 10px;
}

.case-upload-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
}

.case-upload-drop {
  flex: 1.2;
  border-radius: 20px;
  border: 1px dashed #f9a8d4;
  background: #fdf2f8;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.case-upload-drop-inner {
  pointer-events: none;
}

.case-upload-main-text {
  font-size: 14px;
  font-weight: 500;
  color: #be185d;
  margin-bottom: 4px;
}

.case-upload-sub-text {
  font-size: 12px;
  color: #6b7280;
}

.case-upload-drop input[type="file"] {
  display: none;
}

.case-upload-preview {
  flex: 0.9;
  min-height: 80px;
  border-radius: 18px;
  background: #f9fafb;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.case-thumb-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.case-textarea-wrap {
  margin-top: 4px;
}

.case-textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 20px;
  border: 1px solid #fbcfe8;
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
}

.case-textarea:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 1px #ec4899;
}

.case-add-group-wrap {
  max-width: 980px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-start;
}

.case-add-group-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fee2f2;
  color: #db2777;
  font-size: 13px;
  cursor: pointer;
}

.case-add-group-btn:hover {
  background: #f9a8d4;
  color: #ffffff;
}

.case-submit-wrap {
  max-width: 980px;
  margin: 12px auto 24px;
  text-align: right;
}

.case-submit-btn {
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.45);
}

.case-submit-btn:hover {
  opacity: 0.96;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .case-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-upload-row {
    flex-direction: column;
  }

  .case-submit-wrap {
    text-align: center;
  }

  /* 让提交卡片在手机上稍微瘦一点，避免左右顶边 */
  .case-group {
    padding: 16px 14px;
  }

  /* 留言输入框在手机上左右与卡片对齐，不再向右溢出 */
  .case-textarea-wrap {
    margin-top: 6px;
  }

  .case-textarea {
    width: 100%;
    box-sizing: border-box; /* 关键：padding 也算在宽度里，避免超出 */
  }

  /* 老版 message-form + msg-textarea-large 的兼容处理 */
  .message-form {
    padding: 14px;
  }

  .msg-group {
    padding: 14px;
    box-sizing: border-box;
  }

  .msg-textarea-large {
    width: 100%;
    box-sizing: border-box;
  }
}
/* -----------------------------------------------------
   购物车页面 /cart 统一粉色卡片样式
----------------------------------------------------- */

.cart-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.cart-list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;           /* 让内部卡片在容器中水平居中 */
}

.cart-item-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  max-width: 480px;             /* 控制卡片自身最大宽度 */
  margin: 0 auto;               /* 保证在父容器中居中 */
}

.cart-item-thumb {
  flex: 0 0 auto;
}

.cart-item-thumb img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-box);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.cart-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.cart-item-meta {
  font-size: 12px;
  color: #6b7280;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-600);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.cart-qty-input {
  width: 70px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-size: 13px;
}

.cart-summary-card {
  flex: 0 0 260px;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 16px 16px;
}

.cart-summary-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-summary-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink-600);
}

.cart-empty-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .cart-layout {
    flex-direction: column;
  }

  .cart-summary-card {
    flex: 1 1 100%;
  }
}

/* -----------------------------------------------------
   Admin Case 留言管理：统一图片大小 + 卡片对齐
----------------------------------------------------- */

.admin-case-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-case-group-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 16px 16px;
}

.admin-case-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.admin-case-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.admin-case-group-meta {
  font-size: 12px;
  color: #6b7280;
}

.admin-case-msg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-case-msg-card {
  flex: 0 0 260px;
  max-width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 10px 12px 12px;
  box-sizing: border-box;
}

.admin-case-msg-main {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-case-msg-thumb {
  flex: 0 0 auto;
}

.admin-case-msg-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.admin-case-msg-body {
  flex: 1;
  min-width: 0;
}

.admin-case-msg-text {
  font-size: 13px;
  margin-bottom: 4px;
  color: #111827;
}

.admin-case-msg-meta {
  font-size: 11px;
  color: #6b7280;
}

.admin-case-msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .admin-case-msg-card {
    flex: 1 1 100%;
  }
}
/* ============================
 * Admin form common layout
 * 闪购商品表单等后台表单的统一样式
 * ============================ */
.admin-form-body {
  max-width: 560px;
  padding: 4px 4px 24px;
}

.admin-form .form-group {
  margin-bottom: 18px;
}

.admin-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}

.admin-form .form-input,
.admin-form .form-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  background-color: #ffffff;
}

.admin-form .form-textarea {
  resize: vertical;
  min-height: 80px;
}

.admin-form .form-input:focus,
.admin-form .form-textarea:focus {
  border-color: #fb4b8b;
  box-shadow: 0 0 0 1px rgba(251, 75, 139, 0.12);
}

.admin-form .form-help {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.admin-form .form-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.admin-form .form-checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-form .btn-admin-primary,
.admin-form .btn-admin-outline {
  min-width: 120px;
  justify-content: center;
}

/* ============================
 * Admin 闪购商品图片缩略图管理
 * 用于 /admin/flash/:listId/products/:pid/edit 页面
 * ============================ */

.flash-admin-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 80px); /* 最多 5 个固定位置，每个 80px 宽，与图片/删除按钮一致 */
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  box-sizing: border-box;
  align-items: flex-start;
}

.flash-admin-thumb {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #4b5563;
  position: relative; /* 让主图标签可以定位在缩略图左上角 */
}

.flash-admin-thumb-img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.flash-admin-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flash-admin-thumb-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;          /* 更贴近图片 */
  width: 80px;              /* 与缩略图宽度保持一致，按钮不会比图片宽 */
}

/* 缩略图下方的删除按钮：只比“删除”文字宽一点点，居中显示 */
.flash-admin-thumb-actions .btn-admin-outline {
  width: auto;              /* 不再占满 80px，只按内容宽度 */
  min-width: 0;
  padding: 2px 10px;        /* 稍微包住文字即可 */
  margin: 0 auto;           /* 在 80px 容器中居中 */
  box-sizing: border-box;
  justify-content: center;
  border-radius: 999px;     /* 更圆 */
  border-color: #fecaca;
  color: #b91c1c;           /* 文字红色 */
  font-size: 10px;
}

.flash-admin-thumb-main {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  background: #fef2f8;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

/* 缩略图上的小号按钮，复用 admin 按钮风格但更紧凑 */
.btn-admin-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  line-height: 1.2;
}

/* ============================
 * 闪购专场详情页 /flash/list/:id 专用覆盖
 * 让当前专场内商品卡片每行 3 个，且使用网格卡片样式
 * ============================ */
.flash-detail-page .flash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 移动端：闪购专场详情页商品列表一行一个，方便操作 */
@media (max-width: 640px) {
  .flash-detail-page .flash-grid {
    grid-template-columns: 1fr;
  }
}

.flash-detail-page .flash-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;   /* 覆盖 /flash 列表页给 .flash-card 设置的 padding */
  gap: 0;       /* 使用详情页卡片自己的内部间距 */
}

/* 统一闪购专场详情页商品卡片图片尺寸 + 按钮底部对齐 */
.flash-detail-page .flash-card {
  height: 100%; /* 在 grid 中让卡片拉满格子高度，方便做等高布局 */
}

.flash-detail-page .flash-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 统一为正方形比例 */
  overflow: hidden;
  background-color: #f9fafb;
}

.flash-detail-page .flash-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* 超出裁切，保持图片铺满，不变形 */
}

.flash-detail-page .flash-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
}

.flash-detail-page .flash-card-body {
  display: flex;
  flex-direction: column;
  flex: 1; /* 占据剩余空间，把按钮推到底部 */
  padding: 10px 12px 12px;
  gap: 8px;
}

.flash-detail-page .flash-card-actions {
  margin-top: auto; /* 把按钮区域推到卡片底部，保证多张卡片按钮在同一高度 */
  display: flex;
}

.flash-detail-page .flash-card-actions .btn-primary,
.flash-detail-page .flash-card-actions .flash-btn-add,
.flash-detail-page .flash-card-actions .flash-btn-disabled {
  width: 100%;            /* 按钮宽度统一 */
  justify-content: center;
}

/* ============================
 * 闪购专场详情页图片轮播：多图叠放 + 左右切换按钮
 * 只作用于 /flash/list/:id 页面
 * ============================ */

/* 让媒体区域作为轮播容器（这里保留已有的 aspect-ratio 设置） */
.flash-detail-page .flash-card-media {
  position: relative;
}

/* 多张图片叠放在同一容器里，通过 is-active 控制显示 */
.flash-detail-page .flash-card-media .flash-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.flash-detail-page .flash-card-media .flash-card-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 左右切换按钮：浮在图片左右两侧 */
.flash-detail-page .flash-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0;
}

.flash-detail-page .flash-media-nav-prev {
  left: 8px;
}

.flash-detail-page .flash-media-nav-next {
  right: 8px;
}

.flash-detail-page .flash-media-nav:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* ============================
 * Case 留言提交上传进度遮罩 & 按钮加载态
 * 仅用于 /cases/:id 页面
 * ============================ */
.upload-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.upload-progress-overlay.is-active {
  display: flex;
}

.upload-progress-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  width: 90%;
  box-sizing: border-box;
}

.upload-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(253, 164, 175, 0.4);
  border-top-color: #ec4899;
  animation: upload-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.upload-text-main {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.upload-text-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* 提交按钮加载态：适配 case 提交按钮 */
.case-submit-btn.btn-loading,
.btn-primary.btn-loading {
  opacity: 0.7;
  cursor: default;
}

@keyframes upload-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================
 * 前台：我的积分页面 UI
 * ============================ */

.page-body.points-page {
  background: #f9fafb;
}

.points-container {
  max-width: 960px;
  margin: 16px auto 32px;
  padding: 0 16px 32px;
  box-sizing: border-box;
}

/* 等级卡片 */
.points-level-card {
  position: relative;
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #fee2f8, #fbcfe8, #e0f2fe);
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
  overflow: hidden;
}

.points-level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.points-level-card * {
  position: relative;
  z-index: 1;
}

.points-level-card .level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.points-level-card .level-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* 宝石徽章（不同等级不同渐变，带轻微发光动画） */
.level-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
    0 14px 30px rgba(236, 72, 153, 0.45);
  position: relative;
  overflow: hidden;
  animation: levelBadgeGlow 8s ease-in-out infinite;
}

.level-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 50%);
  opacity: 0.9;
}

/* Moonstone */
.level-1 {
  background: linear-gradient(135deg, #e0f2fe, #c7d2fe);
}

/* Ruby */
.level-2 {
  background: linear-gradient(135deg, #fecaca, #fb7185);
}

/* Sapphire */
.level-3 {
  background: linear-gradient(135deg, #bfdbfe, #2563eb);
}

/* Diamond */
.level-4 {
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

@keyframes levelBadgeGlow {
  0% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
      0 14px 30px rgba(236, 72, 153, 0.35);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95),
      0 18px 40px rgba(236, 72, 153, 0.55);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
      0 14px 30px rgba(236, 72, 153, 0.35);
  }
}

/* 等级数值区域 */
.points-level-card .level-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.points-level-card .stat-item {
  min-width: 150px;
}

.points-level-card .stat-item.full {
  width: 100%;
}

.points-level-card .stat-label {
  font-size: 12px;
  color: #6b7280;
}

.points-level-card .stat-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.points-level-card .stat-value.pink {
  color: #ec4899;
}

/* 积分明细卡片 */
.points-history {
  margin-top: 16px;
  padding: 16px 18px 18px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.points-history .history-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.points-history .history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points-history .history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.points-history .history-item:last-child {
  border-bottom: none;
}

.points-history .history-main {
  max-width: 60%;
}

.points-history .history-note {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}

.points-history .history-date {
  font-size: 11px;
  color: #9ca3af;
}

.points-history .history-points {
  text-align: right;
  font-size: 12px;
}

.points-history .delta-level,
.points-history .delta-reward {
  white-space: nowrap;
}

.points-history .delta-level.plus,
.points-history .delta-reward.plus {
  color: #16a34a;
  font-weight: 600;
}

.points-history .delta-level.minus,
.points-history .delta-reward.minus {
  color: #b91c1c;
  font-weight: 600;
}

/* 适配移动端 */
@media (max-width: 640px) {
  .points-container {
    max-width: 100%;
    margin-top: 10px;
    padding: 0 12px 24px;
  }

  .points-level-card {
    padding: 14px 14px 12px;
    border-radius: 20px;
  }

  .points-level-card .level-title {
    font-size: 15px;
  }

  .points-history {
    margin-top: 12px;
    padding: 12px 14px 14px;
    border-radius: 18px;
  }

  .points-history .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .points-history .history-main {
    max-width: 100%;
  }

  .points-history .history-points {
    text-align: left;
  }
}
/* ============================
 * Flash list image lightbox
 * 闪购商品大图预览弹层
 * ============================ */
.flash-lightbox {
  position: fixed;
  inset: 0;
  display: none; /* 默认隐藏，打开时通过 .is-open 显示 */
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.flash-lightbox.is-open {
  display: flex;
}

.flash-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* 深色半透明遮罩 */
}

.flash-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 840px);
  max-height: min(90vh, 840px);
  padding: 16px 52px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-lightbox-image-box {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #f9fafb;
}

.flash-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.flash-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.flash-lightbox-prev {
  left: 14px;
}

.flash-lightbox-next {
  right: 14px;
}

.flash-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* 打开大图时锁定页面滚动 */
body.flash-lightbox-open {
  overflow: hidden;
}

.spec-option-active {
  border-color: #ec4899;
  background: #ec4899;
  color: #fff;
}

.flash-card-modern .flash-card-inner {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(248, 113, 170, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flash-card-body {
  padding: 14px 16px 10px;
}

.flash-card-footer {
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(248, 113, 170, 0.15);
  margin-top: 8px;
}

.flash-card-meta-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.flash-card-meta-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
}