/* ==========================================================
   新版本个人中心（/user-center）
   上下铺满：顶部极窄背景图 + 下方左/中/右三栏
   中栏向上飘出，个人中心头部显示在飘出区域
   左右全屏占满，不影响旧版个人中心
   ========================================================== */

/* ---------- 页面骨架：全屏铺满，禁止整页滚动 ---------- */
body.user-center-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  /* 抵消基础 body 的 margin-bottom:56px，避免全屏布局下出现多余的整页滚动 */
  margin: 0;
  /* 抵消全局 body 的 padding-top:62px（为 fixed 导航预留的占位），
     让本页 banner/背景图从视口顶部开始绘制、穿透到 fixed 磨砂导航下方，
     避免导航下方出现一条 body 背景色白条 */
  padding-top: 0;
  overflow: hidden;
  background: #f5f7fa;
}

/* 问题1：个人中心为全屏 app 式布局（100vh + overflow:hidden），
   底部政策栏（.footer，absolute bottom:0）会遮挡面板底部文字与分页按钮，
   故在本页所有断点隐藏页脚（其它页面不受影响）。 */
body.user-center-page .footer {
  display: none !important;
}

body.user-center-page > div.container.py-4 {
  width: 100%;
  max-width: none;
  /* Bootstrap 的 .py-4 使用 !important，此处必须同样 !important 才能去除顶部 24px 间距 */
  padding: 0 !important;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.user-center-page main.pb-3 {
  padding: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.uc-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* 新版个人中心页导航：白色浅色磨砂玻璃效果，与全站默认导航一致，
   背景图穿透到导航下方经 blur 形成轻柔磨砂质感。
   仅影响本页，不影响其它页面的全局导航 */
body.user-center-page .app-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
}

/* 顶部极窄高度背景图：自然宽度显示，不使用拼接平铺
   注意：此处不预置默认背景图，避免「先渲染默认图、资料返回后再切成配置图」的闪烁，
   以及未使用默认图时的多余请求；默认图由 user-center.js 在资料加载完成后按需注入。 */
.uc-banner {
  flex: 0 0 auto;
  height: 210px;
  /* 顶部叠加轻微暗渐变：为背景图与白色导航之间提供柔和过渡
     背景图通过 --uc-banner-image 由 JS 注入；未注入时该图层为 none，不会产生默认图请求 */
  background:
    linear-gradient(to bottom, rgba(8, 12, 18, 0.10), rgba(8, 12, 18, 0.02) 42%, rgba(8, 12, 18, 0) 72%),
    var(--uc-banner-image, none) center / 100% auto no-repeat,
    #0b0f0e;
  /* 加载前不显示默认背景色导致的闪烁 */
  background-color: #0b0f0e;
}

/* 需求1：账单明细（充值订单）表格列表 */
.uc-bill-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.uc-bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.uc-bill-table th,
.uc-bill-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #f0f2f5;
  white-space: nowrap;
}
.uc-bill-table th {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #fafbfc;
}
.uc-bill-table tbody tr:hover {
  background: #f8fafc;
}
.uc-bill-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.uc-bill-amount {
  font-weight: 600;
  color: #0f172a;
}
.uc-bill-time {
  color: #94a3b8;
}
.uc-bill-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
}
.uc-bill-status.is-success { background: #dcfce7; color: #15803d; }
.uc-bill-status.is-danger { background: #fee2e2; color: #b91c1c; }
.uc-bill-status.is-warning { background: #fef3c7; color: #b45309; }
.uc-bill-status.is-muted { background: #f1f5f9; color: #64748b; }

/* 说明：此处不能加 overflow:hidden，否则会裁掉头部向上飘出的头像 */
.uc-body {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 0;
  /* 需求3：下区域背景色统一为白色 */
  background: #fff;
}

/* ---------- 左栏：导航 + 文案 ---------- */
.uc-left {
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  /* 需求3：去除左区域（导航）右边框，使左侧白色与底部白色融合显示 */
  border-right: none;
}

.uc-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 14px 12px;
  display: flex;
  flex-direction: column;
}

.uc-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uc-nav-group + .uc-nav-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

/* 平台主导航组（首页/AI创作工具/模型广场/案例库）：
   PC 端左侧导航隐藏，仅移动端抽屉显示 */
.uc-nav-group--platform {
  display: none;
}

/* 平台组隐藏后，紧随其后的“我的”组不再需要顶部分隔线/间距 */
.uc-nav-group--platform + .uc-nav-group {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.uc-nav-group-title {
  font-size: 12px;
  color: #9aa4b2;
  padding: 0 12px 6px;
}

.uc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: #3d4652;
  text-decoration: none;
  cursor: pointer;
}

.uc-nav-link:hover {
  background: #f4f6f9;
  color: #1f2937;
}

.uc-nav-link.is-active {
  background: #e8f1ff;
  color: #2563eb;
  font-weight: 600;
}

.uc-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-nav-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

.uc-nav-logout {
  color: #6b7280;
}

.uc-nav-logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* 左栏底部品牌文案 */
.uc-left-brand {
  flex: 0 0 auto;
  border-top: 1px solid #f0f2f5;
  padding: 14px 16px 16px;
  font-size: 12px;
  color: #9aa4b2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* align-self 避免 flex 交叉轴拉伸导致 LOGO 变形 */
.uc-left-brand img {
  height: 34px;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  object-fit: contain;
}

.uc-left-brand p {
  margin: 0;
  line-height: 1.7;
}

/* ---------- 中栏：向上飘出的个人中心卡片 ---------- */
.uc-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 向上飘出到背景图区域，头部显示在飘出区域。
     负 margin -68px：适度飘出，头像完整显示且不过度侵入背景图区域 */
  margin: -68px 26px 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

/* 个人中心头部 */
.uc-header {
  flex: 0 0 auto;
  border-bottom: 1px solid #eef1f5;
  border-radius: 18px 18px 0 0;
  padding: 26px 28px 24px;
  min-height: 140px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  background: #fff;
}

.uc-avatar {
  width: 106px;
  height: 106px;
  margin-top: -80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #fff7ed);
  box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 34px;
  font-weight: 700;
  color: #2563eb;
  flex: 0 0 auto;
}

.uc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uc-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.uc-user-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.uc-badge {
  font-size: 12px;
  color: #6b7280;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 10px;
  background: #f8fafc;
}

/* 用户名下的「复制用户ID」按钮：沿用徽标外观，点击复制用户名到剪切板 */
button.uc-badge {
  font-family: inherit;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button.uc-badge:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}

.uc-badge--copy svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 设置按钮（竖排）与右侧统计并列
   margin-left:auto 保证在 4 个图标按钮（PC 端隐藏）不占位时仍靠右对齐；
   手机排版下 .uc-header-meta 为 display:contents，该边距自动失效。 */
.uc-header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  /* 需求：账户设置/偏好设置尽量靠左，与用户名相邻；统计值通过 .uc-stats 的 margin-left:auto 推到最右 */
  margin-left: 0;
}

.uc-header-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-pill-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.uc-pill-btn:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}

.uc-stats {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  /* 需求：统计值推到头部最右侧，空出左侧给“账户设置/偏好设置” */
  margin-left: auto;
}

.uc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.uc-stat + .uc-stat {
  border-left: 1px solid #eef1f5;
}

.uc-stat strong {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.uc-stat span {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.uc-header-actions {
  margin-left: auto;
  /* 需求：右上角 4 个图标按钮仅在移动端手机排版（max-width: 991.98px）下显示，PC 端隐藏 */
  display: none;
  gap: 18px;
  padding-right: 16px;
}

.uc-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* 图标下方文字更小更精致：字号 11px、颜色转柔、增加字距 */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #64748b;
  text-decoration: none;
  width: 64px;
}

.uc-action:hover {
  color: #2563eb;
}

/* 头部操作改为按钮（面板切换）：重置原生 button 样式，保持与链接一致外观 */
button.uc-action {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
}

.uc-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.uc-action:hover .uc-action-icon {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.uc-action-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 中栏主体：核心内容区域 ---------- */
/* 主体区域本身不滚动；由各面板内部的 .uc-panel-scroll 滚动，
   从而使面板头部（标题 + 筛选行）固定在上方不随列表滚动。 */
.uc-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.uc-panel {
  display: none;
}

.uc-panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* 面板可滚动主体 */
.uc-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 28px 26px;
}

.uc-panel--flush .uc-panel-scroll {
  padding: 0;
}

.uc-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.uc-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  border: 1px dashed #dbe2ea;
  border-radius: 14px;
  background: #fafbfc;
  font-size: 14px;
}

/* ---------- 面板固定头部（标题 + 筛选行） ---------- */
.uc-panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 28px 12px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}

.uc-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.uc-panel-link {
  font-size: 13px;
  color: #2563eb;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.uc-mat-toolbar {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- 问题3：生成记录视图切换开关 + 宫格视图 ---------- */
/* 标题筛选行最右侧的列表/宫格图标切换（默认列表） */
.uc-view-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 10px;
}

.uc-view-toggle-btn {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.uc-view-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-view-toggle-btn:hover { color: #2563eb; }

.uc-view-toggle-btn.is-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}

/* 宫格网格：任务记录风格卡片，区别于素材卡片的纯封面视觉 */
.uc-hg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* 任务卡片：左侧状态色条 + 信息区 + 右侧封面（overflow:visible 以免裁剪模块悬浮层）
   固定高度 130px，增加卡片宽度和高度 */
.uc-hg-card {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 130px;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  overflow: visible;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.uc-hg-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .10);
  transform: translateY(-1px);
}

/* 左侧状态色条：根据任务状态着色 */
.uc-hg-card::before {
  content: "";
  flex: 0 0 4px;
  background: #94a3b8;
  border-radius: 10px 0 0 10px;
}

.uc-hg-card[data-status="completed"]::before { background: #22c55e; }
.uc-hg-card[data-status="failed"]::before { background: #ef4444; }
.uc-hg-card[data-status="running"]::before { background: #3b82f6; }
.uc-hg-card[data-status="pending"]::before { background: #f59e0b; }

/* 信息主体区 */
.uc-hg-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  overflow: hidden;
}

/* 顶部行：任务类型 + 状态 */
.uc-hg-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.uc-hg-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
}

.uc-hg-type svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-hg-type[data-type="image"] { color: #059669; background: #ecfdf5; }
.uc-hg-type[data-type="video"] { color: #7c3aed; background: #f5f3ff; }
.uc-hg-type[data-type="copy"] { color: #0284c7; background: #f0f9ff; }

.uc-hg-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.uc-hg-status[data-status="completed"] { color: #16a34a; background: #f0fdf4; }
.uc-hg-status[data-status="failed"] { color: #dc2626; background: #fef2f2; }
.uc-hg-status[data-status="running"] { color: #2563eb; background: #eff6ff; }
.uc-hg-status[data-status="pending"] { color: #d97706; background: #fffbeb; }

/* 需求4：模块名不再直接显示，改为左下角 info 图标，移入/点击悬浮层显示 */
.uc-hg-module-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #94a3b8;
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s ease;
}

.uc-hg-module-btn:hover {
  color: #2563eb;
}

.uc-hg-module-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 模块名悬浮层：默认隐藏，移入或点击（.is-tip-open）时显示 */
.uc-hg-module-btn::after {
  content: attr(data-module);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.uc-hg-module-btn:hover::after,
.uc-hg-module-btn.is-tip-open::after {
  opacity: 1;
  transform: translateY(0);
}

/* 标题行 */
.uc-hg-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

/* 底部行：左下角 info 图标 + 时间 */
.uc-hg-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

.uc-hg-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

/* 需求4：消耗（积分/悟空币）移至右侧封面右下角，仅成功状态显示，使用迷你图标+数字 */
.uc-hg-cost {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  max-width: calc(100% - 8px);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, .72);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 迷你图标样式（img 标签）：积分/悟空币统一 9px，与「消耗」胶囊的 10px 字号匹配。
   注意：图标位于 .uc-hg-thumb 内，若仅用单类选择器会被封面图规则 .uc-hg-thumb img
   （width/height:100%）覆盖——悟空币 SVG 内在尺寸 64×64、积分 PNG 内在尺寸 17×21，
   导致两种图标各自被撑大且大小不一致；故必须用双类选择器提升优先级，
   确保两类图标尺寸始终一致。 */
.uc-hg-cost .uc-hg-mini-icon {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  object-fit: contain;
  vertical-align: middle;
}

.uc-hg-cost span {
  line-height: 1;
}

/* 耗时显示（胶囊样式） */
.uc-hg-elapsed {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 8px;
  background: #f1f5f9;
  line-height: 1.6;
}

/* 重新生成按钮（封面右上角红色半透明图标） */
.uc-hg-regen {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
  padding: 0;
}

.uc-hg-card:hover .uc-hg-regen {
  opacity: 1;
}

.uc-hg-regen:hover {
  background: rgba(239, 68, 68, 0.85);
}

.uc-hg-regen svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 右侧封面：固定 1:1 正方形（130×130），成功/进行中展示结果缩略图，失败时居中展示失败原因 */
.uc-hg-thumb {
  flex: 0 0 130px;
  width: 130px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
}

/* 仅封面主图/视频铺满（限定直接子元素，右下角消耗徽标内的迷你图标不受此规则影响） */
.uc-hg-thumb > img,
.uc-hg-thumb > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uc-hg-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 20px;
}

/* 失败状态：封面居中显示失败原因文字 */
.uc-hg-thumb--failed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fef2f2;
}

.uc-hg-fail-text {
  color: #dc2626;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

/* 批量结果角标：固定封面右上角（右下角留给「消耗积分」徽标，避免重叠） */
.uc-hg-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, .7);
  color: #fff;
}

/* 进行中动画 */
.uc-hg-card[data-status="running"] .uc-hg-status::before,
.uc-hg-card[data-status="pending"] .uc-hg-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: uc-hg-pulse 1.2s ease-in-out infinite;
}

@keyframes uc-hg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@media (max-width: 991.98px) {
  /* 移动端宫格：上下布局卡片，一行两个 */
  .uc-hg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .uc-hg-card {
    flex-direction: column;
    height: auto;
    position: relative;
  }

  /* 移动端状态色条不再贯穿整卡左侧：隐藏卡片级色条，改挂到下部任务信息区左侧 */
  .uc-hg-card::before {
    display: none;
  }

  /* 移动端上部分：封面区域 */
  .uc-hg-thumb {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px 10px 0 0;
  }

  /* 移动端下部分：信息区域（左侧挂任务状态色条，故左侧留出少量内边距） */
  .uc-hg-info {
    order: 2;
    position: relative;
    padding: 8px 10px 8px 13px;
    gap: 3px;
  }

  .uc-hg-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: #94a3b8;
  }

  .uc-hg-card[data-status="completed"] .uc-hg-info::before { background: #22c55e; }
  .uc-hg-card[data-status="failed"] .uc-hg-info::before { background: #ef4444; }
  .uc-hg-card[data-status="running"] .uc-hg-info::before { background: #2563eb; }
  .uc-hg-card[data-status="pending"] .uc-hg-info::before { background: #d97706; }

  .uc-hg-title {
    font-size: 12px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .uc-hg-bottom {
    padding-top: 4px;
  }

  .uc-hg-time {
    font-size: 10px;
  }

  /* 移动端重新生成按钮始终常驻显示 */
  .uc-hg-regen {
    opacity: 0.8;
  }
}

/* 宫格视图无限滚动哨兵与底部提示 */
.uc-hg-sentinel {
  height: 1px;
  width: 100%;
}

.uc-hg-end-hint {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  padding: 18px 0 8px;
}

.uc-select {
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  color: #475569;
  background: #fff;
  min-width: 108px;
  outline: none;
}

.uc-select:focus {
  border-color: #bfdbfe;
}

.uc-mat-search {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  height: 34px;
  padding: 0 5px 0 14px;
  gap: 6px;
  min-width: 210px;
  background: #fff;
}

.uc-mat-search input {
  border: 0;
  outline: none;
  flex: 1;
  font-size: 13px;
  min-width: 0;
  background: transparent;
  color: #334155;
}

.uc-mat-search button {
  border: 0;
  background: #f1f5f9;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.uc-mat-search button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* 瀑布流卡片网格：卡片更小，一行尽量多列 */
.uc-mat-grid {
  columns: 124px 8;
  column-gap: 10px;
}

.uc-mat-card {
  break-inside: avoid;
  margin: 0 0 10px;
  border: 1px solid #eceff3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: block;
  width: 100%;
}

.uc-mat-thumb {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #f1f5f9;
  cursor: zoom-in;
}

.uc-mat-thumb img,
.uc-mat-thumb video {
  width: 100%;
  display: block;
  object-fit: cover;
}

.uc-mat-thumb--file {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  cursor: pointer;
}

.uc-mat-body {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.uc-mat-title {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-mat-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.uc-pill {
  font-size: 10px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.uc-pill--primary {
  background: #2563eb;
  color: #fff;
}

.uc-pill--primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.uc-pill--muted {
  background: #eef2f6;
  color: #64748b;
  cursor: default;
}

.uc-pill--tint {
  background: #dbeafe;
  color: #1d4ed8;
}

.uc-pill--tint:hover {
  background: #bfdbfe;
}

.uc-mat-date {
  font-size: 11px;
  color: #9aa4b2;
}

.uc-mat-status {
  padding: 18px 0 6px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.uc-mat-status.is-error {
  color: #ef4444;
}

.uc-mat-retry {
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: 0;
  font-size: 13px;
  padding: 0;
}

.uc-mat-sentinel {
  height: 1px;
  width: 100%;
}

.uc-mat-empty {
  padding: 60px 0;
  text-align: center;
  color: #94a3b8;
}

/* ---------- 通用面板内嵌内容（生成记录/任务/推广）---------- */
.uc-panel-scroll .section-block {
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.uc-panel-note {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* ---------- 问题反馈面板（移植自旧 /contact 页）---------- */
.feedback-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 12px;
}

.feedback-hero h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #172554;
}

.feedback-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.feedback-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.feedback-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 14px;
  font-weight: 800;
  color: #111827;
}

.feedback-status-list {
  display: grid;
  gap: 12px;
}

.feedback-status-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.feedback-status-card strong {
  color: #111827;
}

.feedback-status-card p {
  margin: 6px 0 8px;
  color: #475569;
  font-size: .92rem;
}

.feedback-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: .82rem;
}

.feedback-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-image-item {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.feedback-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-image-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, .65);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  padding: 0;
  cursor: pointer;
}

.feedback-image-add {
  width: 88px;
  height: 88px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 26px;
  cursor: pointer;
}

.feedback-image-add:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.feedback-status-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.feedback-status-thumbs img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- 账户设置弹窗 ---------- */
/* 加宽弹窗，降低高度 */
.uc-profile-dialog {
  max-width: 620px;
}

.uc-profile-dialog .modal-body {
  padding: 20px 24px;
}

.uc-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uc-profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.uc-profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
}

.uc-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uc-profile-avatar-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.uc-profile-avatar-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.uc-profile-hint {
  font-size: 12px;
  color: #94a3b8;
}

.uc-profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-profile-field > label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.uc-profile-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-profile-control input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
  outline: none;
  background: #fff;
}

.uc-profile-control input:focus {
  border-color: #93c5fd;
}

/* 校验失败：输入框变红 */
.uc-profile-control input.is-invalid {
  border-color: #ef4444;
  background: #fff5f5;
}

.uc-profile-control input.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* 校验失败：输入框下方显示错误原因 */
.uc-input-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: #ef4444;
}

.uc-input-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.uc-profile-control input:disabled {
  background: #f6f8fa;
  color: #94a3b8;
}

.uc-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.uc-btn:hover {
  border-color: #bfdbfe;
  color: #2563eb;
}

.uc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.uc-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.uc-btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.uc-profile-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #dbe2ea;
  border-radius: 10px;
  background: #fafbfc;
}

.uc-profile-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.uc-profile-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.uc-profile-divider::before,
.uc-profile-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #eef1f5;
}

/* 成功提示（错误校验改为输入框红框，不再使用底部 label） */
.uc-profile-msg--success {
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* ---------- 右栏：广告区域（固定 2 个卡片位置，不随内容滚动） ---------- */
.uc-right {
  flex: 0 0 250px;
  min-height: 0;
  overflow: hidden;
  padding: 24px 22px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.uc-ad-card {
  flex: 1 1 0;
  min-height: 140px;
  border-radius: 10px;
  background: #eef1f5;
  position: relative;
  overflow: hidden;
}

.uc-ad-card--empty {
  background: linear-gradient(160deg, #6b7280 0%, #4b5563 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-ad-card-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.uc-ad-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.uc-ad-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  padding: 22px 14px 12px;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.74) 100%);
}

.uc-ad-card-body strong {
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
}

.uc-ad-card-body span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uc-ad-card--empty .uc-ad-card-body {
  position: static;
  align-items: center;
  text-align: center;
  background: none;
  padding: 0 18px;
  font-size: 13px;
}

.uc-ad-card--empty .uc-ad-card-body strong {
  font-size: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1599.98px) {
  .uc-mat-grid {
    columns: 120px 7;
  }
}

@media (max-width: 1399.98px) {
  .uc-right {
    flex-basis: 220px;
  }

  .uc-mat-grid {
    columns: 116px 6;
  }
}

@media (max-width: 1199.98px) {
  .uc-right {
    display: none;
  }

  .uc-center {
    margin: -68px 20px 0;
  }
}

@media (max-width: 991.98px) {
  /* 移动端滚动架构（与 PC 一致：面板内滚动）：
     .uc-center 不再整体滚动，仅作有界 flex 容器；
     个人中心头部固定不滚动（滚动时原位折叠为基础信息条），
     仅激活面板的 .uc-panel-scroll 内部滚动，
     面板标题筛选行（.uc-panel-head）天然固定在滚动区上方。 */
  body.user-center-page {
    height: 100dvh;
  }

  /* uc-shell 作为定位上下文，供移动端顶行按钮绝对定位 */
  .uc-shell {
    position: relative;
  }

  /* 背景图延伸至顶部（顶行按钮绝对定位覆盖其上），高度增加以容纳飘出头像 */
  .uc-banner {
    height: 120px;
  }

  /* 窄屏改为纵向堆叠：中栏（内部滚动）在上，右侧广告固定高度在下。
     保留桌面 .uc-body 的 flex:1 1 auto / min-height:0 / display:flex，
     仅把主轴改为纵向，使 .uc-center 获得有界高度从而内部滚动。 */
  .uc-body {
    flex-direction: column;
  }

  .uc-left {
    display: none;
  }

  /* 移动端仍展示右侧广告：固定高度置于中栏下方，不参与内部滚动 */
  .uc-right {
    flex: 0 0 auto;
    padding: 12px 12px 14px;
  }

  .uc-ad-card {
    flex: 0 0 auto;
    height: 180px;
  }

  /* 与 PC 同构：.uc-center 不再滚动，透明背景仅作 flex 容器。
     margin-top:-24px 使头部白卡上飘到背景图区域（保持原视觉位置：
     头部顶 = banner底-24px，与旧架构 -72px+48px padding 等效）；
     头像（margin-top:-58px）借 overflow:visible 向上完整飘出不被裁剪；
     白色视觉由 .uc-header / .uc-main 分段提供，主体顶部圆角因此可见（参考 PC）。 */
  .uc-center {
    margin: -24px 12px 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  /* 白色卡片头部：面板内滚动架构下头部在滚动区之外、天然固定贴顶（无需 sticky）；
     relative 仅作为“账户设置/偏好设置”绝对定位的参照。
     顶部圆角呈现「主体区域顶部圆角」（参考 PC 排版） */
  .uc-header {
    position: relative;
    z-index: 32;
    padding: 14px 16px 10px;
    min-height: 0;
    gap: 12px 14px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
  }

  .uc-avatar {
    width: 72px;
    height: 72px;
    margin-top: -58px;
    font-size: 26px;
    transition: width 0.2s ease, height 0.2s ease, margin-top 0.2s ease, font-size 0.2s ease;
  }

  .uc-header-meta {
    gap: 16px;
  }

  .uc-pill-btn {
    font-size: 12px;
    padding: 4px 12px;
  }

  .uc-stat {
    padding: 0 14px;
  }

  .uc-header-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }

  /* 恢复 PC 式有界高度链：主体 flex:1 1 auto + min-height:0 + overflow:hidden，
     激活面板继承 PC 的 flex 列布局，仅面板内容区（.uc-panel-scroll）内部滚动 */
  .uc-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
  }

  .uc-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 20px;
  }

  /* 标题筛选行：位于面板滚动区之外，天然固定在面板顶部（无需 sticky） */
  .uc-panel-head {
    flex: 0 0 auto;
    padding: 14px 14px 10px;
    background: #fff;
  }
}

/* ---------- 移动端顶行（列表图标 + 标题 + 齿轮） ---------- */
.uc-mobile-topbar {
  display: none;
}

.uc-mobile-topbar-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.uc-mobile-topbar-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-mobile-topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

/* 移动端导航抽屉遮罩（桌面不渲染） */
.uc-drawer-scrim {
  display: none;
}

/* ---------- 我的素材：移动端迷你搜索 + 高级筛选入口（桌面隐藏） ---------- */
.uc-mat-mobile-tools {
  display: none;
}

.uc-mat-mobile-icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.uc-mat-mobile-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 已启用高级筛选时的小红点提示 */
.uc-mat-filter-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

/* 移动端拉长式迷你搜索盒（点击放大镜展开，桌面隐藏） */
.uc-mat-mobile-search {
  display: none;
}

/* ---------- 移动端高级筛选底部弹层 ---------- */
.uc-sheet-scrim {
  display: none;
}

.uc-sheet {
  display: none;
}

.uc-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.uc-sheet-close {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
}

.uc-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 16px 12px;
}

.uc-sheet-group + .uc-sheet-group {
  margin-top: 14px;
}

.uc-sheet-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.uc-sheet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uc-sheet-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.uc-sheet-chip.is-active {
  background: #e8f1ff;
  border-color: #bfdbfe;
  color: #2563eb;
  font-weight: 600;
}

.uc-sheet-foot {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f2f5;
}

.uc-sheet-reset {
  flex: 1;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}

.uc-sheet-apply {
  flex: 2;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 系统设置弹层菜单列表 */
.uc-settings-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uc-settings-menu a {
  display: flex;
  flex-direction: column;
  padding: 11px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  transition: background 0.15s ease;
}

.uc-settings-menu a:hover,
.uc-settings-menu a:active {
  background: #f1f5f9;
}

.uc-settings-menu a span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.uc-settings-menu a small {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

/* ---------- 推广英雄卡（用户分享/加盟推广上半部：统计 + 二维码 + 操作按钮） ---------- */
/* 上半部左右布局容器：PC 左=统计/二维码/按钮，右=数据信息卡；移动端堆叠 */
.uc-promo-top {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.uc-promo-top .uc-promo-hero {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.uc-promo-top .uc-promo-info-card {
  /* 问题2：右侧信息卡由 340px 加宽到 380px，改善邀请码/链接/等级行拥挤，
     与左侧 hero 在 align-items:stretch 下保持等高。用户分享/加盟推广共用。 */
  flex: 0 0 380px;
  margin-bottom: 0;
}

.uc-promo-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 55%, #fff7ed 100%);
  margin-bottom: 16px;
}

.uc-promo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.uc-promo-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

/* 复用旧版 50px 统计图标：等比缩小后以负 margin 收回占位 */
.uc-promo-stat .promotion-stat-icon {
  grid-row: auto;
  grid-column: auto;
  align-self: center;
  flex: 0 0 auto;
  transform: scale(0.72);
  margin: -7px;
}

.uc-promo-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.uc-promo-stat-label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-promo-stat strong {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-promo-stat--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.uc-promo-stat--primary .uc-promo-stat-label {
  color: rgba(255, 255, 255, 0.82);
}

.uc-promo-stat--primary strong {
  color: #fff;
}

.uc-promo-qr-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.uc-promo-qr-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.uc-promo-qr-box img {
  width: 148px;
  height: 148px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.uc-promo-code {
  font-size: 12px;
  color: #475569;
}

.uc-promo-code strong {
  color: #1f2937;
  letter-spacing: 0.4px;
}

.uc-promo-btns {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.uc-promo-btn {
  height: 42px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.uc-promo-btn:hover {
  background: #eff6ff;
}

.uc-promo-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.uc-promo-btn--primary:hover {
  background: #1d4ed8;
}

/* 推广数据信息卡（下半部） */
.uc-promo-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  background: #fafbfc;
  margin-bottom: 16px;
}

.uc-promo-info-card .promotion-hero-desc {
  margin: 0;
}

/* ---------- 加盟推广：三态主体（已加盟看板 / 审核中记录 / 未申请入口） ---------- */
/* 已加盟 + 待提交申请入口：加盟推广面板标题行最右侧（点击进申请页续填提交） */
.uc-agency-pending-entry {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  line-height: 1.2;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.uc-agency-pending-entry:hover {
  background: #dbeafe;
  color: #1d4ed8;
  text-decoration: none;
}
.uc-agency-pending-entry strong {
  font-weight: 600;
  font-family: inherit;
}
.uc-agency-pending-badge {
  background: #f59e0b;
  color: #fff;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

/* 状态二/三：主体上下左右居中——利用面板滚动区高度，将状态卡片垂直+水平居中 */
.uc-agency-state {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.uc-agency-state-card {
  width: min(640px, 100%);
  margin: auto;
}

/* 状态三：居中申请加盟入口卡片 */
.uc-agency-apply-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem;
  border: 1px solid #e0e7ff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.uc-agency-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-agency-state-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-agency-apply-card h3 {
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.uc-agency-apply-card p {
  margin: 6px 0 0;
  max-width: 420px;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.6;
}

.uc-agency-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  height: 44px;
  padding: 0 28px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease;
}

.uc-agency-apply-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.uc-agency-apply-hint {
  margin: 12px 0 0;
  max-width: 420px;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: .8rem;
  line-height: 1.6;
}

/* ---------- 用户分享：任务中心并入区块（原任务中心面板下方合并） ---------- */
.uc-tasks-block {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #eef1f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.uc-tasks-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 任务中心 / 问题反馈：面板内紧凑排版（作用域限定不影响旧页） ---------- */
.uc-tasks-block .task-center-grid {
  gap: .6rem;
  margin-top: .6rem;
}

.uc-tasks-block .task-card {
  min-height: 0;
  gap: .75rem;
  padding: .8rem .9rem;
  border-radius: 12px;
}

.uc-tasks-block .task-card-main {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: .65rem;
}

.uc-tasks-block .task-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.uc-tasks-block .task-card-icon::before {
  inset: 9px;
  border-width: 2.5px;
}

.uc-tasks-block .task-card-icon::after {
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 7px;
}

.uc-tasks-block .task-card h3 {
  font-size: .92rem;
  font-weight: 800;
}

.uc-tasks-block .task-card p {
  margin: .28rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
}

.uc-tasks-block .task-status {
  padding: .18rem .5rem;
  font-size: .72rem;
}

.uc-tasks-block .task-card-progress {
  gap: .3rem;
  font-size: .78rem;
}

.uc-tasks-block .task-card-reward strong {
  font-size: 1.05rem;
}

.uc-tasks-block .task-card-reward span {
  font-size: .72rem;
}

.uc-tasks-block .task-card-actions {
  margin-top: .5rem;
  min-height: 30px;
  gap: .5rem;
}

.uc-tasks-block .task-card-side {
  gap: .5rem;
  padding-left: .75rem;
}

[data-uc-panel="feedback"] .feedback-hero {
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 12px;
}

[data-uc-panel="feedback"] .feedback-hero h1 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

[data-uc-panel="feedback"] .feedback-hero p {
  font-size: .84rem;
  line-height: 1.6;
}

[data-uc-panel="feedback"] .feedback-layout {
  gap: 14px;
}

[data-uc-panel="feedback"] .feedback-panel {
  padding: 14px 16px;
  border-radius: 12px;
}

[data-uc-panel="feedback"] .feedback-panel h2 {
  font-size: .98rem;
  margin: 0 0 10px;
}

[data-uc-panel="feedback"] .feedback-status-list {
  gap: 10px;
}

[data-uc-panel="feedback"] .feedback-status-card {
  padding: 10px;
}

[data-uc-panel="feedback"] .feedback-status-card p {
  margin: 4px 0 6px;
  font-size: .84rem;
}

/* ---------- 用户分享：去除邀请码/推广链接两行后同步收敛上部高度 ---------- */
/* 右侧信息卡移除「专属邀请码 / 推广链接」后明显变矮，左侧 hero（二维码为主）
   成为高度主导项；此处同步收小二维码与内边距，避免上部左右排版大面积留白。 */
[data-uc-panel="user-share"] .uc-promo-hero {
  padding: 12px;
  gap: 10px;
}

[data-uc-panel="user-share"] .uc-promo-stats {
  gap: 8px;
}

[data-uc-panel="user-share"] .uc-promo-stat {
  padding: 8px;
}

[data-uc-panel="user-share"] .uc-promo-qr-box {
  padding: 10px;
  gap: 6px;
}

[data-uc-panel="user-share"] .uc-promo-qr-box img {
  width: 124px;
  height: 124px;
}

/* ---------- 加盟推广：缩窄「加盟等级」标签与等级值的间距 ---------- */
/* 标签列由固定 120px 改为内容自适应，并收窄列间距，
   为右侧「提现申请 / 积分转移」按钮腾出空间，保证同一行展示。 */
/* 仅在 PC / 平板多列排版下生效：窄屏（site.css ≤767.98px）该行已改为单列堆叠 */
@media (min-width: 768px) {
  [data-uc-panel="agency"] .promotion-dashboard #promotionLevelCard {
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: .5rem;
    padding: .7rem .8rem;
  }
}

[data-uc-panel="agency"] .promotion-dashboard #promotionLevelCard .promotion-meta-label {
  font-size: .82rem;
  white-space: nowrap;
}

[data-uc-panel="agency"] .promotion-dashboard #promotionLevelCard .promotion-level-value {
  min-height: 34px;
  padding: .3rem .75rem;
  font-size: .88rem;
}

[data-uc-panel="agency"] .promotion-dashboard #promotionLevelCard .promotion-action-row {
  flex-wrap: nowrap;
  gap: .5rem;
}

[data-uc-panel="agency"] .promotion-dashboard #promotionLevelCard .promotion-action-row .btn {
  white-space: nowrap;
}

[data-uc-panel="feedback"] textarea.form-control {
  font-size: .88rem;
}

/* ---------- 移动端补充：顶行/抽屉/头部移位/移动筛选/底部弹层/英雄卡尺寸 ---------- */
@media (max-width: 991.98px) {
  /* 顶行：去除标题，按钮绝对定位覆盖在背景图上，背景图延伸至顶部 */
  .uc-mobile-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border-bottom: none;
    pointer-events: none;
  }

  .uc-mobile-topbar-title {
    display: none;
  }

  .uc-mobile-topbar-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* 左栏导航改为抽屉：默认移出屏幕，打开时滑入 */
  .uc-left {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1041;
    width: 264px;
    flex: 0 0 264px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
  }

  .uc-shell.is-drawer-open .uc-left {
    transform: translateX(0);
  }

  .uc-drawer-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .uc-shell.is-drawer-open .uc-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  /* 移动端抽屉：显示平台主导航组，并恢复“我的”组顶部分隔 */
  .uc-nav-group--platform {
    display: flex;
  }

  .uc-nav-group--platform + .uc-nav-group {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
  }

  /* 头部移动端重排：
     - 账户设置/偏好设置绝对定位到右上角上下排列（不影响 PC 排版）
     - 统计值独占一行均分
     - 4 个图标按钮另起一行左右居中 */
  .uc-header {
    /* 需求5：冻结头部——面板内滚动架构下头部在滚动区之外、天然固定；
       relative 仅作为“账户设置/偏好设置”绝对定位的参照 */
    position: relative;
    z-index: 32;
    background: #fff;
    padding: 14px 16px 16px;
    gap: 12px 14px;
    transition: padding 0.2s ease;
  }

  /* 需求5：滚动后折叠头部——仅冻结「统计以上」的基础信息（头像+用户名+设置），
     统计值与 4 个图标按钮随内容滚走，标题筛选行紧贴折叠后头部底部 */
  .uc-header.is-collapsed {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .uc-header.is-collapsed .uc-avatar {
    width: 40px;
    height: 40px;
    margin-top: 0;
    font-size: 16px;
  }

  .uc-header.is-collapsed .uc-stats,
  .uc-header.is-collapsed .uc-header-actions {
    display: none;
  }

  .uc-header.is-collapsed .uc-header-settings {
    top: 8px;
  }

  .uc-header-meta {
    display: contents;
  }

  .uc-header-settings {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .uc-identity {
    flex: 1 1 auto;
    min-width: 0;
  }

  .uc-user-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .uc-stats {
    width: 100%;
    /* 移动端：基础信息区（头像+用户名）与统计行之间增加少许间距 */
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
  }

  .uc-stat {
    flex: 1 1 0;
    padding: 0 8px;
  }

  /* 手机排版下才显示 4 个图标按钮：独占一行均匀占满 */
  .uc-header-actions {
    display: flex;
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    justify-content: space-evenly;
    gap: 0;
  }

  /* 需求6：图标稍微调大、下方文字缩小一半，整体更精致协调 */
  .uc-action {
    flex: 1 1 0;
    width: auto;
    gap: 4px;
    font-size: 0.2em;
    letter-spacing: 0.1px;
  }

  .uc-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .uc-action-icon svg {
    width: 24px;
    height: 24px;
  }

  /* 移动端各面板：隐藏 PC 筛选工具条，显示迷你搜索/筛选入口 */
  .uc-mat-toolbar {
    display: none;
  }

  .uc-mat-mobile-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* 拉长式迷你搜索盒：默认仅显示放大镜图标，点击后拉长展开输入框；
     形状与 .uc-mat-mobile-icon-btn 保持一致（圆角矩形，非 AI Chat 的圆形） */
  .uc-mat-mobile-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: width 0.22s ease;
  }

  .uc-mat-mobile-search.is-open {
    width: min(230px, calc(100vw - 170px));
  }

  .uc-mat-mobile-search input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: #334155;
    opacity: 0;
    pointer-events: none;
  }

  .uc-mat-mobile-search.is-open input {
    padding-left: 10px;
    opacity: 1;
    pointer-events: auto;
  }

  .uc-mat-mobile-search-clear {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-right: 2px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .uc-mat-mobile-search-clear[hidden] {
    display: none;
  }

  .uc-mat-mobile-search-btn {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .uc-mat-mobile-search-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* 高级筛选底部弹层 */
  .uc-sheet-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1042;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .uc-sheet-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .uc-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1043;
    max-height: 72vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.16);
    transform: translateY(102%);
    transition: transform 0.26s ease;
  }

  .uc-sheet.is-open {
    transform: translateY(0);
  }

  /* 推广英雄卡移动端尺寸 */
  .uc-promo-hero {
    padding: 10px;
    gap: 10px;
  }

  .uc-promo-stats {
    gap: 6px;
  }

  .uc-promo-stat {
    padding: 8px 6px;
    gap: 4px;
  }

  .uc-promo-stat .promotion-stat-icon {
    transform: scale(0.56);
    margin: -11px;
  }

  .uc-promo-stat-label {
    font-size: 11px;
  }

  .uc-promo-stat strong {
    font-size: 14px;
  }

  .uc-promo-qr-row {
    gap: 10px;
  }

  .uc-promo-qr-box {
    padding: 10px;
  }

  .uc-promo-qr-box img {
    width: 116px;
    height: 116px;
  }

  /* 问题2（移动端）：限定二维码下方邀请码文案宽度，避免撑宽 qr 盒导致与按钮挤不下 */
  .uc-promo-code {
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    max-width: 128px;
  }

  .uc-promo-btn {
    height: 40px;
    font-size: 13px;
  }

  .uc-promo-info-card {
    padding: 12px;
  }

  /* 上半部移动端：取消左右布局改为堆叠，统计改 2 列、二维码与按钮竖排，
     解决“统计/按钮显示不全、不够宽”问题（移除多余嵌套占宽） */
  .uc-promo-top {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .uc-promo-top .uc-promo-info-card {
    flex: 1 1 auto;
  }

  .uc-promo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 问题2（移动端）：二维码与「任务中心/下载海报/复制链接」按钮同行显示，不换行。
     二维码盒固定宽，按钮组占满剩余宽度并纵向排列三个按钮。 */
  .uc-promo-qr-row {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .uc-promo-qr-box {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .uc-promo-btns {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
  }

  /* 加盟推广三态：移动端申请记录表格改 2×2 网格，避免四列过窄 */
  .uc-agency-state .agency-application-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
}

/* ---------- 背景风格选择器弹窗 ---------- */
.uc-bg-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.uc-bg-style-item {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
  padding: 0;
}

.uc-bg-style-item:hover {
  border-color: #93c5fd;
}

.uc-bg-style-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.uc-bg-style-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.uc-bg-style-label {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #475569;
  padding: 6px 4px;
  font-weight: 500;
}

.uc-bg-style-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 576px) {
  .uc-bg-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* “选择图片”上传卡片：默认隐藏，仅移动端显示 */
.uc-bg-style-upload {
  display: none;
}

.uc-bg-style-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: #94a3b8;
}

.uc-bg-style-upload-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 991.98px) {
  .uc-bg-style-upload {
    display: block;
  }

  /* 移动端隐藏旧的状态徽标内脉冲动画，改用卡片左侧边框指示 */
  .uc-hg-card[data-status="running"] .uc-hg-status::before,
  .uc-hg-card[data-status="pending"] .uc-hg-status::before {
    display: none;
  }
}
