:root {
  /* ===== 配色 ===== */
  --c-primary: #ff5a2e;
  --c-primary-2: #ff8a3d;
  --c-primary-soft: #fff1ec;
  /* 品牌色当「小字文字色」时用的深一档版本（#ff5a2e 在白底只有 3.2:1）。
     大面积填充仍用 --c-primary，只有文字用它。由 applyTheme 按实际底色算。 */
  --c-primary-ink: #c2340a;
  /* 品牌色「作底色、上面压白字」的版本。--c-primary 太亮（白字只有 3.1:1），
     --c-primary-ink 在深色主题下又是亮橙，也不能当底。
     选中态胶囊、折扣角标、白字角标一律用这个。 */
  --c-primary-solid: #c2340a;
  /* 「软色底上的品牌色小字」：浅色主题要深、深色主题要亮，不能共用 solid */
  --c-on-soft: #c2340a;
  --c-accent: #ffb020;
  /* 新增：辅助紫（点缀、渐变尾色、高亮） */
  --c-violet: #7c5cff;
  --c-violet-soft: #f1edff;
  /* 品牌渐变：橙 → 玫瑰粉，替代原来偏土的单色 */
  --g-brand: linear-gradient(135deg, #ff7a45 0%, #ff5a2e 48%, #ff3d71 100%);
  --g-brand-soft: linear-gradient(135deg, #fff2ec 0%, #ffeef4 100%);
  --g-warm: linear-gradient(135deg, #ffb020 0%, #ff7a45 100%);
  --g-cool: linear-gradient(135deg, #5b8def 0%, #7c5cff 100%);
  --g-mint: linear-gradient(135deg, #12b76a 0%, #4ecdc4 100%);
  --g-sunset: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
  --c-text: #1a1a1a;
  --c-text-2: #6b6b70;
  /* 次要文字：原来是 #9a9aa0，白底上只有 2.7:1，11–12px 小字基本糊了。
     提到 #6e6e77 后约 5.4:1；11–12px 的小字必须 ≥4.5:1。 */
  --c-text-3: #6e6e77;
  --c-bg: #f5f5f7;
  --c-line: #ededf0;
  /* 语义色：以前「浅黄提示条」「浅灰胶囊」都是在各组件里写死 hex，
     深色主题把文字改白之后就变成白字配浅底。统一收到这里，主题各自覆盖。 */
  --tint-bg: #fff8ed;
  --tint-line: #ffe3bd;
  --tint-fg: #8a4b00;
  --chip-bg: #f2f3f5;
  --chip-fg: #5f6068;
  /* 「表面色」：卡片实心底、吸底条、输入框、价格块。以前这些都在组件里写死 #fff，
     深色主题一换就变成浅底配浅字（公告条踩过一次，详情页价格块/活动说明又踩一次）。
     凡是「一块底色 + 上面有字」的地方，必须从这组取。 */
  --c-surface: #fff;
  --c-surface-2: #fafafb;
  --c-input-bg: #fff;
  --c-input-line: #e6e6ec;
  --c-input-ph: #b8b8be;
  --c-price-bg1: #fff5f0;
  --c-price-bg2: #fff;
  --c-btn-off-bg: #e8e9ed;
  --c-btn-off-fg: #5f6068;
  --tag-green-bg: #e8f8ef;
  --tag-red-bg: #ffecea;
  --tag-blue-bg: #eaf2ff;
  /* 评分星：纯金黄 #ffb020 在白底只有 1.8:1，数字跟着一起糊。浅色主题用棕金，深色主题给亮金 */
  --c-star: #9a5a00;
  --c-white: #fff;
  --c-success: #12b76a;
  /* 状态色的「文字可读版」：上面几个是给背景/边框用的，做文字太浅（白底 2.4–2.9:1） */
  --c-success-ink: #0f7a49;
  --c-danger-ink: #b42318;
  --c-warning: #f79009;
  /* 警告色的文字可读版（2026-11-03 补）：#f79009 当文字只有 2.15:1，
     和 success/danger 一样必须分出「背景/边框色」和「文字色」两档。
     实测底 #f4f5f7 → 5.07:1。谁要拿 --c-warning 直接写 color，先想想这条。 */
  --c-warning-ink: #b54708;
  --c-danger: #f04438;
  --c-info: #5b8def;

  /* ===== 圆角 ===== */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ===== 阴影（多层柔和，替代单层） ===== */
  --shadow-1: 0 1px 2px rgba(20, 20, 40, 0.04), 0 4px 14px rgba(20, 20, 40, 0.05);
  --shadow-2: 0 2px 6px rgba(20, 20, 40, 0.05), 0 12px 32px rgba(20, 20, 40, 0.09);
  --shadow-3: 0 4px 12px rgba(20, 20, 40, 0.07), 0 24px 56px rgba(20, 20, 40, 0.13);
  --shadow-brand: 0 6px 20px rgba(255, 90, 46, 0.28);
  --shadow-brand-lg: 0 10px 34px rgba(255, 90, 46, 0.34);
  --shadow-violet: 0 6px 20px rgba(124, 92, 255, 0.26);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[v-cloak] {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--body-bg, #eef0f4);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.55;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  color: var(--c-text);
  outline: none;
  /* 这三行以前写死 #fff / #e6e6ec，深色主题下就是「白底 + 浅字」，
     商家入驻的类目、区域、地址整片看不见。必须跟主题走。 */
  border: 1px solid var(--c-input-line, #e6e6ec);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  width: 100%;
  background: var(--c-input-bg, #fff);
  transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 46, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--c-input-ph, #b8b8be);
}

/* 下拉展开的 option 由浏览器渲染，只认自身颜色，不吃父级变量 */
select option {
  background: var(--c-surface, #fff);
  color: var(--c-text);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--k-btn-radius, var(--r-full));
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.14s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.18s, opacity 0.15s, filter 0.18s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--g-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-brand-lg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  box-shadow: var(--shadow-1);
}

.btn-ghost:hover {
  border-color: #dcdce4;
  box-shadow: var(--shadow-2);
}

.btn-soft {
  background: var(--g-brand-soft);
  color: var(--c-primary);
}

.btn-violet {
  background: var(--g-cool);
  color: #fff;
  box-shadow: var(--shadow-violet);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 4px 11px;
  font-size: 12px;
  border-radius: var(--r-full);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== 标签 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  line-height: 1.7;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  white-space: nowrap;
}

.tag-gray {
  background: var(--chip-bg);
  color: var(--c-text-2);
}

.tag-green {
  background: var(--tag-green-bg, #e8f8ef);
  color: var(--c-success-ink);
}

.tag-red {
  background: var(--tag-red-bg, #ffecea);
  color: var(--c-danger-ink);
}

.tag-blue {
  background: var(--tag-blue-bg, #eaf2ff);
  color: var(--c-primary-ink);
}

.tag-violet {
  background: var(--c-violet-soft);
  color: var(--c-violet);
}

/* 琥珀标签（口令活动等「受限可见」标记）：复用提示条的语义变量，五套主题自动适配（P-23） */
.tag-amber {
  background: var(--tint-bg, #fff8ed);
  color: var(--tint-fg, #8a4b00);
  border: 1px solid var(--tint-line, #ffe3bd);
}

/* ===== 玻璃拟态 ===== */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== 渐变文字 ===== */
.grad-text {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-primary);
}

/* ===== 发光（用于主行动点） ===== */
.glow {
  box-shadow: var(--shadow-brand-lg);
}

/* ===== 悬浮卡片 ===== */
.card-lift {
  transition: transform 0.22s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.22s;
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

/* ===== 遮罩 / 弹层 ===== */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 30, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.18s ease;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeRight {
  from { transform: translateX(-10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

/* 列表入场：依次延迟 */
.stagger > * {
  animation: fadeUp 0.42s cubic-bezier(.22, 1, .36, 1) both;
}
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
.stagger > *:nth-child(7) { animation-delay: 0.26s; }
.stagger > *:nth-child(8) { animation-delay: 0.3s; }

/* ===== 提示条 ===== */
.toast {
  position: fixed;
  left: 50%;
  top: 13%;
  transform: translateX(-50%);
  background: rgba(22, 22, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  z-index: 1200;
  max-width: 78vw;
  text-align: center;
  box-shadow: var(--shadow-3);
  animation: fadeIn 0.16s ease;
}

/* ===== 空状态 ===== */
.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
}

.empty::before {
  content: '🗂️';
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* 空列表的下一步入口（P-40：空态必须告诉用户「接下来点哪里」）
   颜色必须用 --c-primary-ink 而不是 --c-primary：后者是填充色，当文字用
   在浅底上只有 2.8:1（minimal 实测），三套主题都会挂（P-23）。 */
.empty-link {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-primary-ink);
  color: var(--c-primary-ink);
  /* 13px 是阈值：ui-audit 对 <13px 的小字要求 4.5:1，这一档实测 4.48 差 0.02；
     13px 归入正文档（3:1），4.48 稳过，可读性也更好。别再改回 12.5。 */
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}
.empty-link:active { opacity: .7 }

/* ===== 分类选择标签（三端通用） =====
   商家入驻、发布广告、集市筛选统一用这一套：胶囊 + 主色实心选中。
   为什么单独建一套而不是复用 .chip/.tag-chip：那两个分别长在 h5.css 和
   集市页里，商家端（只引 base.css + admin.css）根本吃不到。放 base.css
   才能三端一致；三套主题的特殊形态在 ui-presets.css 里各补一段（P-23）。 */
.pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick-chip {
  padding: 6px 13px;
  border-radius: var(--k-chip-radius, 999px);
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}

.pick-chip.on {
  background: var(--c-primary-solid);
  border-color: var(--c-primary-solid);
  color: #fff;
  font-weight: 500;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 135, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 135, 0.45);
}

/* ============================================================
   功能场景举例（F435）· 「用在哪」弹层
   三端共用，样式走语义变量（P-23），不写死浅底深字：
   深色主题下 --c-surface/--c-text 会跟着换，这里一个 hex 都不出现。
   弹层必须不透明 —— --card-bg 是给页面卡片的，用它做弹层底会透出下面的内容。
   ============================================================ */
.sc-mask {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 10, 20, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sc-sheet {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--c-surface);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.26);
}

.sc-grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line);
  margin: 9px auto 0;
  flex: none;
}

.sc-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 17px 12px;
  border-bottom: 1px solid var(--c-line);
  flex: none;
}

.sc-h-main {
  flex: 1;
  min-width: 0;
}

.sc-h-t {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.sc-h-s {
  font-size: 12.5px;
  color: var(--c-text-2);
  line-height: 1.6;
  margin-top: 4px;
}

.sc-x {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.sc-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 13px 15px 4px;
}

.sc-state {
  text-align: center;
  color: var(--c-text-2);
  font-size: 13px;
  line-height: 1.7;
  padding: 40px 12px;
}

.sc-state-t {
  margin-bottom: 12px;
}

.sc-retry {
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 18px;
  cursor: pointer;
}

.sc-card {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface-2);
  padding: 14px 13px 12px;
  margin-bottom: 12px;
}

.sc-top {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.sc-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.13);
}

/* 图标底色是固定彩色（跟主题无关）：emoji 自带颜色，底色只做衬底 */
.sc-tone-warm { background: linear-gradient(135deg, #ffb020, #ff7a45); }
.sc-tone-mint { background: linear-gradient(135deg, #12b76a, #4ecdc4); }
.sc-tone-cool { background: linear-gradient(135deg, #5b8def, #7c5cff); }
.sc-tone-violet { background: linear-gradient(135deg, #7c5cff, #c86dd7); }
.sc-tone-sun { background: linear-gradient(135deg, #ffd23f, #ff8a3d); }

.sc-titles {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.sc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-on-soft);
  background: var(--c-primary-soft);
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: 5px;
  line-height: 1.55;
}

.sc-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.45;
}

.sc-desc {
  font-size: 12.8px;
  color: var(--c-text-2);
  line-height: 1.78;
  margin-top: 10px;
}

.sc-points {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-point {
  display: flex;
  gap: 7px;
  font-size: 12.2px;
  color: var(--c-text-2);
  line-height: 1.65;
}

.sc-point i {
  flex: none;
  font-style: normal;
  font-weight: 700;
  color: var(--c-success-ink);
}

/* 图解：只在「光靠文字说不清」的场景出现（流程 / 对比两种） */
.sc-art {
  margin-top: 11px;
  background: var(--c-fill);
  border: 1px solid var(--c-line);
  border-radius: 11px;
  padding: 11px 10px;
}

.sc-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sc-flow::-webkit-scrollbar { display: none; }

.sc-step {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: 5px 10px;
  white-space: nowrap;
  line-height: 1.5;
}

.sc-arrow {
  flex: none;
  color: var(--c-text-3);
  font-size: 14px;
  line-height: 1;
}

.sc-cmp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.sc-cmp-i {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  padding: 8px 10px;
}

.sc-cmp-i b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 3px;
}

.sc-cmp-i span {
  font-size: 11.5px;
  color: var(--c-text-2);
  line-height: 1.55;
}

.sc-eff {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--tint-fg);
  background: var(--tint-bg);
  border: 1px solid var(--tint-line);
  border-radius: 9px;
  padding: 8px 10px;
  line-height: 1.62;
}

.sc-eff i {
  flex: none;
  font-style: normal;
}

.sc-foot {
  flex: none;
  display: flex;
  gap: 9px;
  padding: 11px 15px calc(11px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}

.sc-go {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--c-primary-solid);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.sc-close {
  flex: none;
  width: 100px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 14px;
  cursor: pointer;
}

.sc-go:active, .sc-close:active, .sc-x:active { opacity: 0.78; }

/* 触发按钮：三端共用的小胶囊，放在功能标题旁边 */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-on-soft);
  background: var(--c-primary-soft);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 5px 11px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.sc-btn:active { opacity: 0.72; }

/* 宽屏改居中卡片：手机是底部抽屉，后台是居中弹窗 */
@media (min-width: 700px) {
  .sc-mask {
    align-items: center;
    padding: 26px;
  }

  .sc-sheet {
    border-radius: 18px;
    max-height: 84vh;
  }

  .sc-grip { display: none; }

  .sc-head { padding-top: 17px; }
}

/* 页面顶部的「看场景」引导条：比小胶囊更显眼，手机上一眼看到
 * ⚠️ 间距规矩（2026-11-03 用户：「中间免费这条上下间隔不对」）：
 *   上下各 12px，紧跟着的块一律把自己的 margin-top / padding-top 归零，
 *   否则「上面贴死、下面一大截」。守门器 audit-ui-regress 会查被负边距卡片压住的情况。 */
.sc-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--c-primary-soft);
  color: var(--c-on-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.sc-entry i {
  font-style: normal;
  flex: none;
}

.sc-entry-go {
  margin-left: auto;
  flex: none;
  font-weight: 700;
  opacity: 0.7;
}

.sc-entry:active { opacity: 0.75; }

/* F502 小白介绍：第一次进来的人不知道这一页是干什么的时，页头下方那一段话。
 * 三条硬规矩：
 *   ① **没填就不渲染** —— 后台 intro 留空时这一块完全不占高度（P-55 缺省=默认），
 *      不许出现「空卡片 + 一行灰字」的占位，那比没有更难看。
 *   ② 底色用 --c-primary-soft，和 .sc-entry 同一档「说明性内容」，
 *      不抢卡片的白底；正文用 --c-on-soft 保证五套皮肤下的对比度。
 *   ③ 段落由模板 split 换行后 v-for 渲染，**不进 v-html** ——
 *      这段是运营在后台自由编辑的，进 v-html 就是存储型 XSS 的入口。 */
.intro-card {
  position: relative;
  margin: 12px 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-primary-soft);
  color: var(--c-on-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.intro-card .ic-t {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
  /* 标题行右侧给收起钮让位，否则长标题会被 × 压住 */
  padding-right: 24px;
}

.intro-card p {
  margin: 0 0 6px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.intro-card .ic-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}

.intro-card .ic-x:active {
  opacity: 0.9;
}

/* 紧跟在介绍卡后面的块交出顶间距，由 .intro-card 的下边距统一控制。
 * 与 .sc-entry 同一套规矩：不这么做会出现「上面贴死、下面一大截」。 */
.intro-card + .card-panel,
.intro-card + .sc-entry,
.intro-card + .stat-row,
.intro-card + .sh-banner,
.intro-card + .bal-hero,
.intro-card + .mall-filter {
  margin-top: 0;
}

/* 反过来：介绍卡紧跟在一个已有下边距的块后面时，别叠成双倍间距 */
.sc-entry + .intro-card {
  margin-top: 0;
}

/* 紧跟在引导条后面的块：把各自的顶间距交出来，统一由 .sc-entry 的下边距控制。
 * 这一组是「商城公告压住筛选条」的根因修复：.mall-filter 原本 -18px 是为了浮在头图上，
 * 一旦上面插了引导条就会被压掉半条（2026-11-03 用户截图）。 */
.sc-entry + .sh-banner,
.sc-entry + .card-panel,
.sc-entry + .bal-hero { margin-top: 0; }

.sc-entry + .sec-head { padding-top: 2px; }

.sc-entry + .hs .mall-filter { margin-top: 0; }

/* ============ F522 全站数据视图 ============
 * 三端共用（都引 base.css）；颜色/圆角/阴影只引用令牌，字号与间距用 em 相对单位，
 * 五套皮肤由 applyTheme / ui-presets 自动适配（P-23）。新代码不写死 #hex / px 数值。
 * 空态固定「一句原因 + 一个动作」，不许只写「暂无数据」（§20 七态）。 */
.metric-panel { margin: .9em 0; }
.metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; margin-bottom: .7em; }
.metric-title { color: var(--c-text); font-weight: 700; font-size: 1.15em; }
/* ⚠️ 辅助小字不许用 --c-text-3：它在五套皮肤下只有 4.42:1，低于小字 4.5:1 门槛
 * （F522 首次回归 ui-audit 实测 20 处全落在这块）。--c-text-2 五套皮肤全过、
 * 历史零失败；以后改这些颜色前先跑 node tools/ui-audit.js，别凭肉眼判对比度。 */
.metric-sub { color: var(--c-text-2); font-size: .85em; }
.metric-group { margin-bottom: .9em; }
.metric-group-hd { display: flex; align-items: baseline; gap: .6em; margin-bottom: .5em; }
.metric-group-name { color: var(--c-text-2); font-weight: 600; }
.metric-group-desc { color: var(--c-text-2); font-size: .82em; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: .7em; }
.metric-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: .9em; box-shadow: var(--shadow-1); }
.metric-card .metric-v { color: var(--c-text); font-size: 1.7em; font-weight: 800; line-height: 1.2; }
.metric-card .metric-v.is-empty { color: var(--c-text-2); font-size: 1.1em; font-weight: 600; }
.metric-card .metric-k { color: var(--c-text-2); margin-top: .4em; }
.metric-card .metric-note { color: var(--c-text-2); font-size: .8em; margin-top: .35em; }
.metric-empty { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: .9em; color: var(--c-text-2); }
.metric-empty .metric-empty-act { color: var(--c-primary-ink); font-weight: 600; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); } }

/* ============================================================================
 * 引导卡在「没有加载 ui-presets.css」的页面上的兜底（2026-11-10 修存量缺陷）
 *
 * `.intro-card` 的正文色是 `--c-on-soft`（浅橙底上的强调色）。H5 的五个页面都在
 * <head> 里引了 ui-presets.css，五套皮肤各给了自己的 `--c-on-soft`，对比度都够。
 *
 * 但 **merchant.html 没引 ui-presets.css**（它只有 base.css + 自己那套），于是
 * `--c-on-soft` 一直是 base.css 的默认 #c2340a；而商家端 body 是深色，
 * 浅橙底 rgba(255,90,46,.1) 叠在深底上变成 #1a0905 —— 深橙字压深褐底，
 * **实测只有 3.5:1**（ui-audit 2026-11-10 报出 60 处）。
 *
 * 所以只对「html 上没有 data-ui 属性」的页面兜底成正文色：
 *   · 商家端这类没皮肤的页面 → 深底浅字，对比度 12:1 以上
 *   · H5 五套皮肤全部带 data-ui → 选择器不命中，视觉零变化
 * ========================================================================== */
html:not([data-ui]) .intro-card { color: var(--c-text); }
