/* ==========================================================
   AI智能获客·收款自动营销 SaaS —— 统一设计系统
   浅色主题 / 移动端友好 / 无外部依赖
   ========================================================== */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --green: #07c160;
  --green-soft: #ecfdf5;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --cyan: #0891b2;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #111827;
  --text-2: #4b5563;
  --muted: #8b95a5;
  --border: #e6e9ef;
  --border-2: #f0f2f6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 12px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ==========================================================
     PC 端设计令牌（Phase 1 §2.6）—— 纯新增，既有变量取值一律保留
     ========================================================== */
  /* —— 品牌蓝阶 —— */
  --brand-50:#eff6ff; --brand-100:#dbeafe; --brand-200:#bfdbfe; --brand-300:#93c5fd;
  --brand-400:#60a5fa; --brand-500:#3b82f6; --brand-600:#2563eb; --brand-700:#1d4ed8;
  /* —— 中性灰阶 —— */
  --gray-25:#fbfcfe; --gray-50:#f7f9fc; --gray-100:#f0f2f6; --gray-200:#e6e9ef;
  --gray-300:#d3d9e2; --gray-400:#b4bccb; --gray-500:#8b95a5; --gray-600:#64748b;
  --gray-700:#4b5563; --gray-800:#374151; --gray-900:#111827;
  /* —— 语义色 —— */
  --success-50:#ecfdf5; --success-500:#07c160; --success-700:#048b46;
  --warning-50:#fffbeb; --warning-500:#f59e0b; --warning-700:#b45309;
  --danger-50:#fef2f2;  --danger-500:#ef4444;  --danger-700:#b91c1c;
  --info-50:#ecfeff;    --info-500:#0891b2;    --info-700:#0e7490;
  /* —— 圆角 / 阴影 / 间距 / 聚焦环 —— */
  --r-xs:6px; --r-sm:8px; --r-md:12px; --r-lg:16px; --r-full:999px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px;
  --sp-8:32px; --sp-10:40px; --sp-12:48px;
  --e1:0 1px 2px rgba(16,24,40,.05);
  --e2:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --e3:0 4px 12px rgba(16,24,40,.07), 0 1px 3px rgba(16,24,40,.04);
  --e4:0 12px 32px rgba(16,24,40,.10);
  --e5:0 20px 44px rgba(16,24,40,.16);
  --focus-ring:0 0 0 3px rgba(37,99,235,.16);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------------- 布局 ---------------- */
.page-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo {
  padding: 18px 20px 14px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border-2);
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.logo-text { font-size: 14px; font-weight: 700; line-height: 1.25; }
.logo-text small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.nav { padding: 10px; overflow-y: auto; flex: 1; }
.nav-group { font-size: 11px; color: var(--gray-600); padding: 12px 12px 6px; font-weight: 600; letter-spacing: 0.04em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); cursor: pointer; font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
  transition: all 0.15s;
}
.nav-item:hover { background: var(--border-2); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-item .ico { width: 18px; text-align: center; font-size: 14px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border-2); font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 16px; }
.topbar .sub { font-size: 12px; color: var(--gray-600); font-weight: 400; margin-left: 8px; }
.content { padding: 20px 22px 42px; flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2);
  background: var(--border-2); padding: 5px 12px 5px 6px; border-radius: 999px;
}

/* ---------- 顶栏消息铃铛 ---------- */
.bell-btn {
  position: relative; border: 1px solid var(--border); background: #fff; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px; line-height: 1;
  display: grid; place-items: center; font-family: inherit;
}
.bell-btn:hover { background: var(--bg-2); }
.bell-dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- 消息列表 ---------- */
.notice-row {
  border: 1px solid var(--border-2); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px;
  background: #fff; cursor: pointer; transition: box-shadow 0.15s;
}
.notice-row:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.notice-row.unread { border-left: 3px solid var(--brand); background: #f8fffb; }
.notice-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-h b { font-size: 14px; }
.notice-h .t { margin-left: auto; font-size: 12px; color: var(--muted); }
.notice-row p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-top: 7px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--purple));
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; }
.card-head .desc { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.stat .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .value { font-size: 23px; font-weight: 700; margin-top: 7px; letter-spacing: -0.02em; }
.stat .value small { font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 2px; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat.b-blue { border-top: 3px solid var(--brand); }
.stat.b-green { border-top: 3px solid var(--green); }
.stat.b-purple { border-top: 3px solid var(--purple); }
.stat.b-orange { border-top: 3px solid var(--orange); }
.stat.b-red { border-top: 3px solid var(--red); }
.stat.b-cyan { border-top: 3px solid var(--cyan); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; font-size: 13.5px; font-weight: 550;
  transition: all 0.15s; white-space: nowrap;
}
.btn:hover { border-color: #cfd6e0; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(0.95); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--border-2); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; transition: all 0.15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
.input-sm { padding: 6px 10px; font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 42px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: #d3d9e2; border-radius: 999px; transition: 0.22s;
}
.switch .slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: 0.22s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 11px 14px; background: #fafbfd; color: var(--text-2);
  font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
table.tbl tbody tr:hover { background: #fafbfd; }
table.tbl tbody tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }

/* ---------------- 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.tag-blue { background: var(--brand-soft); color: var(--brand-dark); }
.tag-green { background: var(--green-soft); color: #048b46; }
.tag-orange { background: var(--orange-soft); color: #b45309; }
.tag-red { background: var(--red-soft); color: #b91c1c; }
.tag-gray { background: #f2f4f7; color: var(--text-2); }
.tag-purple { background: var(--purple-soft); color: #6d28d9; }
.tag-cyan { background: #ecfeff; color: #0e7490; }

/* ---------------- 空态 / 加载 ---------------- */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .ico { font-size: 34px; opacity: 0.4; display: block; margin-bottom: 10px; }
.loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, #f0f2f6 25%, #e7eaf0 37%, #f0f2f6 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; height: 14px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------- Toast ---------------- */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); animation: toastIn 0.25s ease; max-width: 84vw; text-align: center;
}
.toast.ok { background: #059669; }
.toast.err { background: #dc2626; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------------- Modal ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, 0.45); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.18s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg); animation: modalIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal.wide { max-width: 760px; }
/* ==================== 论坛后台（系统论坛 · 内容管理 / 论坛装修） ==================== */
/* 顶部分段式 Tab */
.fx-tabs {
  display: inline-flex; background: #eef0f4; border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px;
}
.fx-tabs button {
  border: none; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600;
  color: #666; padding: 7px 22px; border-radius: 8px; transition: all .15s;
}
.fx-tabs button:hover { color: #1a6dff; }
.fx-tabs button.on { background: #fff; color: #1a6dff; box-shadow: 0 1px 4px rgba(16,24,40,.12); }
/* 列表卡片 */
.fx-card {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border-2);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; transition: box-shadow .15s, transform .15s;
}
.fx-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-1px); }
/* 封面 / 占位 */
.fx-cover {
  width: 116px; height: 74px; border-radius: 10px; overflow: hidden; flex: 0 0 116px; position: relative; background: #f2f3f7;
}
.fx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-cover .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
}
.fx-cover .ph-video { background: linear-gradient(135deg, #7B6CF0, #A79BF5); }
.fx-cover .ph-article { background: linear-gradient(135deg, #4E9EFA, #6FC3F7); }
/* 标题 / 标签 / 摘要 / 元信息 */
.fx-main { flex: 1; min-width: 0; }
.fx-title { font-size: 14.5px; font-weight: 650; color: var(--ink, #1a1d26); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-chips { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.fx-chip { font-size: 11px; line-height: 1; padding: 4px 9px; border-radius: 999px; font-weight: 500; }
.chip-type { background: #e8f1ff; color: #1a6dff; }
.chip-cat { background: #f1ecff; color: #7B5CE6; }
.chip-xhs { background: #ffeef1; color: #e0245e; }
.chip-pub { background: #e6f7ec; color: #0a9a4d; }
.chip-draft { background: #fff3e0; color: #c77800; }
.chip-pin { background: #ff2e4d; color: #fff; }
.fx-summary {
  margin-top: 7px; font-size: 12.5px; color: #8a8f9c; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-meta { margin-top: 8px; font-size: 12px; color: #a2a7b3; display: flex; align-items: center; gap: 6px; }
.fx-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cdd1da; }
/* 操作按钮 */
.fx-ops { display: flex; gap: 8px; flex: 0 0 auto; align-self: center; }
.fx-ops .btn { border-radius: 8px; }
.fx-ops .btn-danger-ghost { color: #e5484d; border-color: #f4c6c7; background: #fff; }
.fx-ops .btn-danger-ghost:hover { background: #fdf0f0; }
/* 筛选卡头部 */
.fx-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.fx-head-title { display: flex; align-items: baseline; gap: 8px; }
.fx-head-title b { font-size: 15px; }
.fx-head-title span { font-size: 12px; color: #a2a7b3; }
/* 富文本编辑器（系统论坛正文：可插图 / 插视频 / 切换 HTML 源码） */
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #f7f8fa; border: 1px solid var(--border-2); border-bottom: none;
  border-radius: 10px 10px 0 0; padding: 7px 9px;
}
.rte-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 28px; padding: 0 8px; border-radius: 6px;
  border: 1px solid transparent; background: #fff; color: #333;
  font-size: 12.5px; line-height: 1; cursor: pointer; user-select: none;
}
.rte-btn:hover { background: #eef1f6; }
.rte-btn.on { background: #e8f1ff; color: #1a6dff; border-color: #b9d3ff; }
.rte-sep { width: 1px; height: 18px; background: var(--border-2); margin: 0 2px; }
.rte-body {
  min-height: 220px; max-height: 46vh; overflow: auto; padding: 12px 14px;
  border: 1px solid var(--border-2); border-radius: 0 0 10px 10px;
  background: #fff; font-size: 13.5px; line-height: 1.85; outline: none;
}
.rte-body:focus { border-color: #9dc2ff; box-shadow: 0 0 0 3px rgba(26,109,255,.08); }
.rte-body:empty::before { content: attr(data-placeholder); color: #b8bcc6; }
.rte-body img, .rte-body video { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
/* 媒体点选：点击图片/视频高亮，右上角浮出删除钮（contenteditable 里 video 的点击会被
   原生控件 shadow DOM 吞掉、img 选中态也不明显，必须给显式删除入口） */
.rte-body .rte-picked { outline: 2px solid #1a6dff; outline-offset: 2px; }
.rte-has-media { position: relative; }
.rte-del {
  position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-size: 14px; line-height: 22px; text-align: center; cursor: pointer;
}
.rte-del:hover { background: #e0245e; }
.rte-body h2 { font-size: 17px; margin: 12px 0 6px; }
.rte-body h3 { font-size: 15px; margin: 10px 0 5px; }
.rte-body blockquote {
  margin: 8px 0; padding: 8px 12px; border-left: 3px solid #d5d9e0;
  background: #f8f9fb; color: #555; border-radius: 0 6px 6px 0;
}
.rte-body ul, .rte-body ol { padding-left: 22px; margin: 6px 0; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 17px 20px; border-bottom: 1px solid var(--border-2); display: flex;
  align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-head h3 { font-size: 15.5px; }
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--border-2); display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: #fff;
}
.x-btn { background: none; border: none; font-size: 21px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 4px; }

/* ---------------- 进度条 ---------------- */
.bar { height: 7px; background: var(--border-2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--purple)); border-radius: 999px; transition: width 0.5s; }
.bar.green > i { background: linear-gradient(90deg, #10b981, #07c160); }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 15% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(1000px 500px at 110% 110%, #ede9fe 0%, transparent 55%), var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px 32px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.login-card .brand { text-align: center; margin-bottom: 26px; }
.login-card .brand .logo-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; margin: 0 auto 12px; }
.login-card .brand h1 { font-size: 19px; }
.login-card .brand p { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.demo-accounts { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.demo-accounts b { color: var(--text-2); }
.demo-accounts .row { display: flex; justify-content: space-between; padding: 4px 0; cursor: pointer; border-radius: 6px; }
.demo-accounts .row:hover { background: var(--border-2); color: var(--brand); }

/* ---------------- 模块配置项 ---------------- */
.mod-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.mod-head { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; background: #fff; }
.mod-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px;
}
.mod-head .meta { flex: 1; min-width: 0; }
.mod-head .meta h4 { font-size: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mod-head .meta p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mod-body { padding: 0 17px 16px; border-top: 1px solid var(--border-2); background: #fcfdfe; }
.mod-warn {
  background: var(--orange-soft); border-left: 3px solid var(--orange); color: #92400e;
  font-size: 11.5px; padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 12px 0 0; line-height: 1.6;
}
.mod-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px; padding-top: 15px; }

/* ---------------- 支付 H5 ---------------- */
.pay-page {
  max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  display: flex; flex-direction: column; box-shadow: 0 0 44px rgba(0, 0, 0, 0.07);
}
.pay-header {
  background: linear-gradient(140deg, #1e40af, #2563eb 45%, #7c3aed);
  color: #fff; padding: 26px 22px 62px; position: relative;
}
.pay-header .shop { display: flex; align-items: center; gap: 12px; }
.pay-header .shop .mk {
  width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; font-size: 19px; font-weight: 700; backdrop-filter: blur(4px);
}
.pay-header .shop h1 { font-size: 17px; }
.pay-header .shop p { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.pay-body { flex: 1; padding: 0 16px 30px; margin-top: -46px; }

/* ---------- 表单开关 ---------- */
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.switch-row input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ---------- 支付前钩子：关注视频号立减 ---------- */
.hook-card {
  display: flex; align-items: center; gap: 11px; margin-bottom: 13px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa; border-radius: 14px; padding: 13px 14px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
}
.hook-card .hk-ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; font-size: 19px;
  background: linear-gradient(135deg, #fb923c, #f97316); color: #fff;
  display: grid; place-items: center;
}
.hook-card .hk-main { flex: 1; min-width: 0; }
.hook-card .hk-main b { display: block; font-size: 13.5px; color: #9a3412; line-height: 1.5; }
.hook-card .hk-main p { font-size: 11.5px; color: #c2410c; margin: 4px 0 0; line-height: 1.55; }
.hook-card .hk-btn {
  flex: 0 0 auto; border: none; cursor: pointer; color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 9px 13px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.32); transition: all 0.15s;
}
.hook-card .hk-btn:disabled { opacity: 0.72; cursor: default; }
.hook-card.done { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; box-shadow: none; }
.hook-card.done .hk-ic { background: linear-gradient(135deg, #34d399, #059669); }
.hook-card.done .hk-main b { color: #065f46; }
.hook-card.done .hk-main p { color: #047857; }
.pay-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.amount-label { font-size: 13px; color: var(--muted); }
.amount-input { display: flex; align-items: baseline; gap: 4px; border-bottom: 2px solid var(--border); padding-bottom: 8px; margin: 8px 0 14px; }
.amount-input span { font-size: 26px; font-weight: 600; color: var(--text-2); }
.amount-input input {
  border: none; outline: none; font-size: 38px; font-weight: 700; width: 100%; padding: 0;
  color: var(--text); background: transparent; letter-spacing: -0.02em;
}
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.quick-amounts button {
  padding: 9px 0; border: 1px solid var(--border); background: #fff; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all 0.15s;
}
.quick-amounts button:hover, .quick-amounts button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.promo-line {
  display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 8px 0;
  border-bottom: 1px dashed var(--border-2);
}
.promo-line:last-child { border-bottom: none; }
.promo-line .amt { color: var(--red); font-weight: 700; }

.mk-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: #fff; }
.mk-card .h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mk-card .h .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex: 0 0 32px; }
.mk-card .h b { font-size: 14.5px; }
.mk-card .h .st { margin-left: auto; }
.mk-card .txt { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.mk-card.done { border-color: #b7ebd0; background: linear-gradient(180deg, #f6fffa, #fff); }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fafbfd; border-radius: 12px; border: 1px dashed var(--border); margin: 12px 0; }
.qr-box img { width: 160px; height: 160px; display: block; border-radius: 8px; }
.comment-box {
  background: #fafbfd; border: 1px solid var(--border-2); border-radius: 10px; padding: 12px;
  font-size: 13px; line-height: 1.7; color: var(--text-2); position: relative;
}
.coupon-ticket {
  display: flex; align-items: stretch; border-radius: 12px; overflow: hidden;
  border: 1px solid #fde68a; background: linear-gradient(135deg, #fffdf5, #fffbeb);
}
.coupon-ticket .left { padding: 14px 16px; display: grid; place-items: center; min-width: 100px; }
.coupon-ticket .left .v { font-size: 26px; font-weight: 800; color: #d97706; letter-spacing: -0.03em; }
.coupon-ticket .left .v small { font-size: 13px; }
.coupon-ticket .right { flex: 1; padding: 12px 14px; border-left: 1px dashed #fcd34d; }
.coupon-ticket .right b { font-size: 13.5px; display: block; }
.coupon-ticket .right p { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }

.lottery-wheel {
  width: 168px; height: 168px; border-radius: 50%; margin: 6px auto 14px; position: relative;
  background: conic-gradient(#fef3c7 0 45deg, #fde68a 45deg 90deg, #fef3c7 90deg 135deg, #fde68a 135deg 180deg,
    #fef3c7 180deg 225deg, #fde68a 225deg 270deg, #fef3c7 270deg 315deg, #fde68a 315deg 360deg);
  display: grid; place-items: center; box-shadow: inset 0 0 0 10px #fff, var(--shadow);
  transition: transform 3.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lottery-wheel .inner {
  width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(160deg, #f59e0b, #ea580c);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.group-progress { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.group-progress .av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: var(--border-2); color: var(--muted); border: 2px dashed var(--border);
}
.group-progress .av.filled { background: var(--brand-soft); color: var(--brand-dark); border: 2px solid #bfdbfe; font-weight: 700; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .ti { position: relative; padding: 0 0 14px; font-size: 12.5px; color: var(--text-2); }
.timeline .ti::before {
  content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.timeline .ti.ok::before { background: var(--green); border-color: var(--green); }
.timeline .ti b { color: var(--text); }

/* ---------------- 图表（纯 CSS 柱状） ---------------- */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 172px; padding: 10px 4px 0; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.chart-bars .stack { width: 100%; max-width: 42px; display: flex; flex-direction: column; justify-content: flex-end; height: 138px; }
.chart-bars .b1 { background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 5px 5px 0 0; }
.chart-bars .b2 { background: linear-gradient(180deg, #a78bfa, #7c3aed); border-radius: 5px 5px 0 0; }
.chart-bars .lbl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; }

/* ---------------- 响应式 ---------------- */
.menu-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-2); }
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: -232px; z-index: 100; transition: left 0.25s; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .menu-btn { display: block; }
  .content { padding: 14px 14px 40px; }
  .topbar { padding: 0 14px; }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .chart-bars { height: 140px; }
  .chart-bars .stack { height: 108px; }
  .page-wrap { padding: 0 14px; }
}

/* ==========================================================
   微信原生收银台（顾客付款界面）
   字号对齐微信标准：正文 16px / 辅助 14px / 说明 12.5px
   ========================================================== */
.wx-page { min-height: 100vh; background: #fff; display: flex; flex-direction: column; font-size: 16px; }

/* 顶部导航 */
.wx-nav {
  display: grid; grid-template-columns: 40px 1fr 64px; align-items: center;
  padding: 12px 12px 10px; border-bottom: 1px solid var(--border-2);
  position: sticky; top: 0; background: #fff; z-index: 5;
}
.wx-nav-back { font-size: 24px; line-height: 1; color: #191919; cursor: pointer; font-weight: 600; padding-left: 6px; }
.wx-nav-title { text-align: center; font-size: 17px; font-weight: 600; color: #191919; }
.wx-nav-caps { display: flex; gap: 6px; justify-content: flex-end; }
.wx-nav-caps i {
  font-style: normal; font-size: 11px; color: #191919; width: 28px; height: 28px;
  border: 1px solid #e6e6e6; border-radius: 50%; display: grid; place-items: center; background: #fafafa;
}

/* 商户信息 */
.wx-head { padding: 22px 18px 4px; display: flex; justify-content: space-between; align-items: flex-start; }
.wx-payto { font-size: 17px; font-weight: 600; color: #191919; }
.wx-sub { font-size: 14px; color: #b2b2b2; margin-top: 6px; }
.wx-logo {
  width: 42px; height: 42px; border-radius: 8px; flex: 0 0 42px;
  background: linear-gradient(135deg, #07c160, #06ad56); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}

/* 金额区 */
.wx-main { padding: 24px 18px 10px; }
.wx-amount-lb { font-size: 14px; color: #191919; }
.wx-amount {
  display: flex; align-items: baseline; gap: 7px;
  padding: 4px 0 16px; border-bottom: 1px solid var(--border-2);
}
.wx-amount .cur { font-size: 22px; font-weight: 600; color: #191919; }
.wx-amount .v { font-size: 40px; font-weight: 700; color: #191919; letter-spacing: -0.01em; line-height: 1.2; }
.wx-amount .caret { width: 1.5px; height: 34px; background: #07c160; animation: wxCaret 1.1s steps(1) infinite; }
@keyframes wxCaret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* 优惠券折叠行 */
.wx-coupon {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 2px; border-bottom: 1px solid var(--border-2);
  font-size: 15px; color: #191919; cursor: pointer;
}
.wx-coupon.none { cursor: default; color: #b2b2b2; }
.wx-coupon b { color: #fa5151; }
.wx-coupon .arr { color: #c6c6c6; transition: transform 0.2s; font-size: 14px; }
.wx-coupon.open .arr { transform: rotate(180deg); }
.wx-coupon-detail {
  background: #f7f7f7; border-radius: 10px; padding: 10px 14px;
  font-size: 14px; margin-top: 10px;
}
.wx-coupon-detail .promo-line { font-size: 14px; }
.wx-note { text-align: center; color: #b2b2b2; font-size: 14px; padding: 28px 0 12px; cursor: pointer; }

/* 数字键盘 */
.wx-keypad {
  margin-top: auto; border-top: 1px solid var(--border-2); background: #f7f7f7;
  display: grid; grid-template-columns: 1fr 108px; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wx-keypad .keys { display: grid; grid-template-columns: repeat(3, 1fr); }
.wx-keypad .keys button {
  border: 0; background: #fff; outline: 1px solid #ececec; outline-offset: -1px;
  font-size: 22px; font-weight: 500; color: #191919; height: 56px; cursor: pointer; font-family: inherit;
}
.wx-keypad .keys button:active { background: #e8e8e8; }
.wx-keypad .keys button.del { font-size: 19px; background: #f2f2f2; }
.wx-keypad .wx-pay {
  border: 0; margin: 8px; border-radius: 9px; cursor: pointer;
  background: #07c160; color: #fff; font-size: 17px; font-weight: 600; font-family: inherit;
}
.wx-keypad .wx-pay:disabled { background: #9fe3bd; cursor: not-allowed; }
.wx-foot { text-align: center; font-size: 12px; color: #b2b2b2; padding: 8px 12px 16px; background: #f7f7f7; }

/* 付款福利弹窗（微信收银台优惠弹层样式，借鉴图2） */
.wx-sheet-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.wx-sheet-mask.show { opacity: 1; }
.wx-sheet {
  width: 100%; max-width: 520px; background: #fff; overflow: hidden;
  border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wx-sheet-mask.show .wx-sheet { transform: none; }

/* 居中确认框（wx.showModal 风格，z 高于全屏素材页 wx-full-mask:70，用于分享领券「是否已完成操作」） */
.wx-ask-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 90;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.wx-ask-mask.show { opacity: 1; }
.wx-ask {
  width: 78%; max-width: 300px; background: #fff; border-radius: 14px; overflow: hidden;
  transform: scale(1.08); transition: transform 0.2s ease-out; text-align: center;
}
.wx-ask-mask.show .wx-ask { transform: none; }
.wx-ask-btns { display: flex; border-top: 1px solid #ebebeb; margin-top: 20px; }
.wx-ask-btns button { flex: 1; padding: 13px 0; font-size: 15.5px; background: #fff; border: 0; cursor: pointer; font-family: inherit; }
.wx-ask-btns button + button { border-left: 1px solid #ebebeb; }
.wx-ask-btns .ask-no { color: #666; }
.wx-ask-btns .ask-yes { color: #07c160; font-weight: 600; }
.wx-ask-btns button:disabled { color: #b2b2b2; }
.wpp-tip { display: flex; align-items: center; gap: 9px; font-size: 15.5px; color: #191919; padding: 20px 18px 6px; font-weight: 500; }
.wpp-tip .ck {
  width: 21px; height: 21px; border-radius: 50%; background: #07c160; color: #fff;
  display: grid; place-items: center; font-size: 12px; flex: 0 0 21px;
}
.wpp-act {
  display: flex; align-items: center; gap: 12px; margin: 10px 16px 0;
  padding: 14px; background: #f7f7f7; border-radius: 12px; cursor: pointer;
}
.wpp-act:active { background: #efefef; }
.wpp-ico {
  width: 42px; height: 42px; border-radius: 10px; background: #07c160;
  display: grid; place-items: center; flex: 0 0 42px; font-size: 20px;
}
/* 视频号品牌图：图标自带橙色圆角底，去掉容器绿底避免叠色；overflow 裁切保证圆角 */
.wpp-ico-img { background: none; overflow: hidden; }
.wpp-ico-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wpp-t { flex: 1; min-width: 0; font-size: 16px; color: #191919; line-height: 1.5; }
.wpp-t em { color: #fa5151; font-style: normal; font-weight: 600; }
.wpp-act .arr { color: #c6c6c6; font-size: 20px; font-weight: 600; }
.wpp-note { padding: 10px 18px 0; font-size: 12.5px; color: #b2b2b2; }
.wpp-btns { display: flex; gap: 10px; padding: 18px 16px 22px; }
.wpp-skip, .wpp-go {
  border: 0; border-radius: 10px; padding: 13px 6px; cursor: pointer; font-family: inherit;
  font-size: 16.5px; font-weight: 500; line-height: 1.4;
}
.wpp-skip { flex: 1; background: #f2f2f2; color: #191919; }
.wpp-skip:active { background: #e8e8e8; }
.wpp-go { flex: 1.5; background: #07c160; color: #fff; }
.wpp-go:active { filter: brightness(0.95); }
.wpp-go:disabled { opacity: 0.6; }

/* 底部弹层（加好友二维码 / 活动说明） */
.ws-banner { background: #191919; color: #fff; text-align: center; font-size: 14px; padding: 11px; letter-spacing: 0.08em; }
.ws-act { display: flex; gap: 12px; align-items: center; padding: 18px 18px 8px; }
.ws-ico {
  width: 42px; height: 42px; border-radius: 9px; background: #07c160;
  display: grid; place-items: center; flex: 0 0 42px; font-size: 20px;
}
.ws-txt { flex: 1; min-width: 0; }
.ws-txt b { font-size: 16px; color: #191919; line-height: 1.45; display: block; }
.ws-txt b em.r { color: #fa5151; font-style: normal; }
.ws-txt p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ws-btns { display: flex; gap: 10px; padding: 16px 18px 22px; }
.ws-skip, .ws-go {
  flex: 1; border: 0; border-radius: 10px; padding: 13px 6px;
  font-size: 16px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.ws-skip { background: #f2f2f2; color: #191919; }
.ws-skip:active { background: #e8e8e8; }
.ws-go { background: #07c160; color: #fff; }
.ws-go:disabled { opacity: 0.6; }
.ws-qr { text-align: center; padding: 20px 18px 6px; }
.ws-qr img { width: 210px; height: 210px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
/* 关注视频号品牌 Logo：图标自带橙色圆角底，块级 + margin:auto 真正居中；
   需覆盖上方 .ws-qr img 的 210px 强制尺寸（那是给商家上传二维码用的） */
.ws-qr img.ws-logo {
  display: block; margin: 4px auto 0; width: 132px; height: 132px;
  border: 0; border-radius: 24px; object-fit: contain; background: transparent;
}
.ws-qr .g { font-size: 16px; font-weight: 600; margin-top: 12px; color: #191919; line-height: 1.55; }
.ws-qr .c { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ws-hint {
  text-align: center; font-size: 14px; color: #07c160; font-weight: 500;
  padding: 16px 18px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ---------------- 全屏引导页（覆盖整个手机屏幕，支持系统返回键） ---------------- */
.wx-full-mask {
  position: fixed; inset: 0; z-index: 70; background: #fff;
  opacity: 0; transition: opacity 0.22s ease-out;
}
.wx-full-mask.show { opacity: 1; }
.wx-full {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.wf-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 26px 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.wf-qr {
  width: 78%; max-width: 300px; aspect-ratio: 1 / 1; border-radius: 14px;
  object-fit: cover; background: #f7f7f7; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.wf-noqr {
  width: 78%; max-width: 300px; aspect-ratio: 1 / 1; border-radius: 14px; background: #f7f7f7;
  display: grid; place-items: center; font-size: 15px; color: var(--muted); padding: 18px;
}
/* 群码下方长按引导：绿底圆角胶囊 + 轻微呼吸动画，提示顾客长按识别（与群码主色协调） */
.wf-press-tip {
  margin-top: 18px; padding: 9px 20px; border-radius: 999px;
  background: rgba(7, 193, 96, 0.1); color: #07a350;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 6px;
  animation: wfPressPulse 1.8s ease-in-out infinite;
}
.wf-press-tip::before {
  content: '☝'; font-size: 15px; line-height: 1;
}
@keyframes wfPressPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(7, 193, 96, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .wf-press-tip { animation: none; }
}
.wf-title { font-size: 18px; font-weight: 600; color: #191919; margin-top: 20px; line-height: 1.5; }
.wf-reward { font-size: 16px; color: #191919; margin-top: 8px; }
.wf-reward em, .wf-reward em.r { font-style: normal; color: #fa5151; font-weight: 700; font-size: 18px; }
.wf-limit { font-size: 15px; color: var(--muted); }
.wf-hint { font-size: 16px; color: #07c160; font-weight: 600; margin-top: 20px; }
.wf-note { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.6; }
.wf-note2 { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.ws-qr .noqr {
  width: 210px; height: 210px; margin: 0 auto; border-radius: 10px; background: #f7f7f7;
  display: grid; place-items: center; font-size: 14px; color: var(--muted); padding: 12px;
}
.oa-big { font-size: 46px; line-height: 1; margin-top: 6px; }

/* ---------------- 支付成功页（微信原生样式） ---------------- */
.pay-body { font-size: 15px; }
.pay-card { padding: 20px 16px; }
.mk-card .h b { font-size: 16px; }
.mk-card .h .ic { width: 34px; height: 34px; font-size: 17px; }
.mk-card .txt { font-size: 14.5px; }
.promo-line { font-size: 14.5px; }
.comment-box { font-size: 14.5px; }
.timeline .ti { font-size: 14px; }
.group-progress { font-size: 14px; }
.coupon-ticket .right b { font-size: 15px; }
.coupon-ticket .right p { font-size: 13px; }
.pay-body .btn { font-size: 15px; }
.pay-body .btn-sm { font-size: 14px; padding: 7px 14px; }

/* 成功页头部：绿色勾标 + 店名 + 金额 */
.wxs-head { text-align: center; padding: 26px 18px 16px; }
.wxs-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #07c160; color: #fff; font-size: 13px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px;
}
.wxs-store { font-size: 17px; font-weight: 600; color: #191919; margin-top: 14px; }
.wxs-amt { font-size: 27px; font-weight: 700; color: #191919; margin-top: 6px; letter-spacing: -0.01em; }
.wxs-amt .cur { font-size: 16px; font-weight: 600; margin-right: 3px; }

/* 付款明细行 */
.wxs-summary { margin: 0 16px; padding: 3px 14px; background: #fafafa; border-radius: 10px; }
.wxs-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #b2b2b2; padding: 10px 0; }
.wxs-line + .wxs-line { border-top: 1px solid #f0f0f0; }
.wxs-line b { color: #191919; font-weight: 500; }
.wxs-line b.red { color: #fa5151; }

/* 活动行：圆底单字图标 + 标题/副标题 + 绿色动作按钮 */
.wxs-oahead { font-size: 13px; color: #b2b2b2; padding: 16px 18px 2px; }
.wxs-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid #f2f2f2; background: #fff;
}
.wxs-row:last-child { border-bottom: none; }
.wxs-ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  flex: 0 0 42px; color: #fff; font-size: 17px; font-weight: 600;
}
/* 视频号品牌图：图标自带橙色圆角底，去掉容器底色并裁切成圆形 */
.wxs-ico-img { background: none; overflow: hidden; }
.wxs-ico-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wxs-main { flex: 1; min-width: 0; }
.wxs-main b { font-size: 15.5px; color: #191919; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wxs-main p {
  font-size: 12.5px; color: #b2b2b2; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wxs-act {
  flex: 0 0 auto; border: 0; cursor: pointer; font-family: inherit;
  background: #07c160; color: #fff; font-size: 14px; font-weight: 600;
  padding: 7px 15px; border-radius: 8px;
}
.wxs-act:active { filter: brightness(0.95); }
.wxs-act:disabled { background: #ececec; color: #b2b2b2; cursor: default; }
.wxs-tag { flex: 0 0 auto; font-size: 12px; color: #b2b2b2; background: #f2f2f2; border-radius: 999px; padding: 4px 10px; }
.wxs-none { text-align: center; color: #b2b2b2; font-size: 14px; padding: 28px 0 12px; }
.oa-phase {
  font-size: 11.5px; font-weight: 600; color: #047857; background: var(--green-soft);
  border-radius: 999px; padding: 1px 8px; flex: 0 0 auto;
}

/* ---------------- 店员管理 ---------------- */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.muted-sm { font-size: 12px; color: var(--text-3); }
.check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px; margin: 8px 0 6px;
}
.check-item {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-1);
  background: #f8faf9; border: 1px solid var(--border-2); border-radius: 8px;
  padding: 8px 11px; cursor: pointer;
}
.check-item:hover { border-color: #bfe8d2; }
.check-item input { accent-color: #07c160; width: 15px; height: 15px; }

/* ---------------- 平台商户详情 ---------------- */
.modal.xl { max-width: 1000px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-2); margin-bottom: 16px; flex-wrap: wrap; }
.tab-item {
  padding: 9px 15px; font-size: 13.5px; color: var(--text-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none;
}
.tab-item:hover { color: var(--text-1); }
.tab-item.on { color: #7c3aed; border-bottom-color: #7c3aed; font-weight: 600; }
.tab-item .cnt { font-size: 11.5px; color: var(--muted); }
.pane { display: none; }
.pane.on { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 20px;
  background: #eef2ff; color: #4f46e5; border: 1px solid #e0e7ff; white-space: nowrap;
}
.chip.mut { background: #f4f4f5; color: var(--gray-600); border-color: #ececef; }
.chip.grn { background: #e8f8ee; color: #0a8f4d; border-color: #d2f0e0; }
.stat-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat-mini > div { background: #fafafa; border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 13px; }
.stat-mini b { display: block; font-size: 19px; color: var(--text-1); margin-top: 3px; }
.stat-mini span { font-size: 12px; color: var(--text-3); }
.store-block { border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.store-block h4 { font-size: 13.5px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.mod-cell {
  border: 1px solid var(--border-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.mod-cell.off { opacity: .55; }
.mod-cell .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mod-cell .nm em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readonly-note {
  font-size: 12.5px; color: #8a6d1f; background: #fff8e6; border: 1px solid #f5e3b3;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; line-height: 1.7;
}

/* 微信支付进件结果 */
.wx-msg {
  font-size: 12.5px; line-height: 1.75; border-radius: 8px; padding: 10px 12px; margin-top: 12px;
  white-space: pre-wrap; word-break: break-word;
  color: var(--text-2); background: #f7f8fa; border: 1px solid var(--border-2);
}
.wx-msg.reject { color: #b91c1c; background: #fff6f6; border-color: #f7d2d2; }
.wx-msg.fail { color: #92600a; background: #fffbf2; border-color: #f6e3bf; }
.wx-msg.pass { color: #0a9c4e; background: #e8f8ee; border-color: #b7e6c9; }

/* ---------------- 使用期限 / 渠道 ---------------- */
.license-card {
  border: 1px solid var(--border-2); border-radius: 12px; padding: 13px 15px;
  background: #fafcff; margin-bottom: 12px;
}
.license-card.lifetime { background: #fff9f0; border-color: #f7e2bd; }
.license-card.expiring { background: #fffbf2; border-color: #f6e3bf; }
.license-card.expired { background: #fff6f6; border-color: #f7d2d2; }
.license-card.unset { background: #fafafa; border-color: #ececef; }
.lc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lc-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.lc-sub { font-size: 13px; color: var(--text-3); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.plan-cell {
  position: relative; border: 1.5px solid var(--border-2); border-radius: 12px;
  padding: 12px 13px; cursor: pointer; background: #fff; transition: all .15s;
}
.plan-cell input { position: absolute; opacity: 0; pointer-events: none; }
.plan-cell:hover { border-color: #cbb8f5; }
.plan-cell.on { border-color: #7c3aed; background: #f8f5ff; box-shadow: 0 0 0 3px rgba(124,58,237,.08); }
.plan-cell .pc-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.plan-cell .pc-price { font-size: 13.5px; font-weight: 600; color: #7c3aed; margin: 5px 0 6px; }
.plan-cell .pc-desc { font-size: 12px; color: var(--text-3); line-height: 1.65; }
/* 年费设置生效：划线原价 + 优惠价 + 省额（PLAN 卡片） */
.plan-cell .pc-name .pc-promo { margin-left: 6px; vertical-align: 1px; font-weight: 500; }
.plan-cell .pc-name .pc-hide { margin-left: 6px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.plan-cell.is-hidden { opacity: .6; }
.plan-cell .pc-price .pc-origin { color: var(--muted); font-weight: 400; margin-right: 6px; }
.plan-cell .pc-price .pc-sale { color: #e02020; }
.plan-cell .pc-save { font-size: 11.5px; color: #e02020; margin-bottom: 5px; }

.lic-bar { height: 7px; border-radius: 4px; background: #f0f0f3; overflow: hidden; margin-top: 8px; }
.lic-bar > i { display: block; height: 100%; background: linear-gradient(90deg,#7c3aed,#db2777); border-radius: 4px; }

.channel-note { font-size: 13px; line-height: 2; color: var(--text-2); }

/* ---------------- 红包信封弹窗（加好友立减红包） ---------------- */
.rp-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .62);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.rp-mask.show { opacity: 1; }
.rp-envelope {
  position: relative; width: 78%; max-width: 340px; aspect-ratio: 3 / 4.4;
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #ff7a5c 0%, #f4503a 42%, #e03e2d 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; align-items: center;
  animation: rpSlideDown .38s cubic-bezier(.22, 1.1, .36, 1) both;
}
/* 顶部封口弧线 */
.rp-flap {
  position: absolute; top: -1px; left: -10%; width: 120%; height: 34%;
  background: linear-gradient(180deg, #ff8a6e 0%, #f4573f 78%, rgba(228, 56, 38, 0) 100%);
  border-radius: 0 0 50% 50% / 0 0 26% 26%;
  box-shadow: 0 2px 0 rgba(255, 214, 170, .35);
}
.rp-guide {
  position: relative; margin-top: 17%;
  font-size: 14px; letter-spacing: .12em; color: rgba(255, 244, 230, .92);
}
.rp-big {
  position: relative; margin-top: 10px; padding: 0 16px; text-align: center;
  font-size: 30px; font-weight: 800; letter-spacing: .04em; color: #fff7e8;
  text-shadow: 0 2px 6px rgba(160, 30, 10, .35);
}
.rp-open {
  position: relative; margin-top: auto; margin-bottom: 15%;
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #fbe7bd 0%, #f7d8a4 45%, #eabf7b 100%);
  color: #b3452e; font-size: 30px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(120, 30, 10, .4), inset 0 -3px 6px rgba(170, 110, 40, .35), inset 0 2px 4px rgba(255, 255, 255, .8);
  animation: rpPulse 1.6s ease-in-out infinite;
}
.rp-open:active { transform: scale(.94); }
/* 信封外围下方：金色圆圈 × 关闭钮（借鉴微信收款键盘删除键的圆圈样式，轻盈不抢眼） */
.rp-close {
  margin-top: 22px; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  border: 1.5px solid #f5c97b; background: rgba(0, 0, 0, .32);
  color: #f5c97b; font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  animation: rpSlideDown .38s .06s cubic-bezier(.22, 1.1, .36, 1) both;
}
.rp-close:active { background: rgba(0, 0, 0, .48); }
@keyframes rpSlideDown {
  from { transform: translateY(-46px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes rpPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(120, 30, 10, .4), inset 0 -3px 6px rgba(170, 110, 40, .35), inset 0 2px 4px rgba(255, 255, 255, .8); }
  50% { transform: scale(1.05); box-shadow: 0 10px 26px rgba(120, 30, 10, .5), inset 0 -3px 6px rgba(170, 110, 40, .35), inset 0 2px 4px rgba(255, 255, 255, .8); }
}

/* ---------------- 付款页：券到期提醒条 + 微信卡包小标识 ---------------- */
.wx-expiring {
  margin: 2px 0 8px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: #fff7e8; color: #b45309; font-size: 12.5px; line-height: 1.5;
}
.wx-card-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px;
  background: #fffbf0; border: 1px solid #f3e3bd; color: #b45309;
  font-size: 10.5px; font-style: normal; line-height: 16px; vertical-align: 1px;
}

/* ============ 券组编辑器（最多 3 张：第 1 张立即抵扣，第 2/3 张设期限复购） ============ */
.cs-wrap { display: flex; flex-direction: column; gap: 10px; }
.cs-list { display: flex; flex-direction: column; gap: 10px; }
.cs-row {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
  background: #fcfdfe; position: relative;
}
.cs-row[data-idx="0"] { border-color: #bfe8cd; background: #f6fdf9; }
.cs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.cs-badge {
  display: inline-block; padding: 1px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; line-height: 18px;
}
.cs-badge-imm { background: #07c160; color: #fff; }
.cs-badge-rep { background: #fff3e0; color: #b45309; border: 1px solid #f5dcb4; }
.cs-del {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 12px; padding: 2px 4px; border-radius: 5px;
}
.cs-del:hover { background: #fff0f0; color: var(--red); }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.cs-sum {
  margin-top: 8px; font-size: 11.5px; color: #0a7a43;
  background: #eefaf2; border-radius: 6px; padding: 5px 9px;
}
.cs-row[data-idx="0"] .cs-sum { background: #e6f9ee; }
.cs-add {
  align-self: flex-start; border: 1px dashed #b9d9c6; background: #f7fdfa;
  color: #0a7a43; border-radius: 8px; padding: 6px 14px; font-size: 12.5px;
  cursor: pointer; font-weight: 600;
}
.cs-add:hover:not(:disabled) { background: #eefaf2; border-color: #07c160; }
.cs-add:disabled { opacity: .55; cursor: not-allowed; color: var(--muted); border-color: var(--border); background: #fafafa; }

/* ============ 顾客端 · 券组（第 1 张立即抵扣 + 第 2/3 张复购券） ============ */
.wx-pending {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #ffe1a8; color: #a35b00;
  font-size: 13px; line-height: 1.5;
}
.wx-pending-line .amt { color: #a35b00; font-size: 12.5px; }

/* 领取弹窗内的券包预览 */
.cs-preview {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.cs-preview-title {
  padding: 10px 13px; font-size: 13.5px; font-weight: 600; color: var(--text-1);
  background: #f6fdf9; border-bottom: 1px solid var(--border);
}
.cs-preview-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border-bottom: 1px solid #f2f4f7;
}
.cs-preview-row:last-child { border-bottom: none; }
.cs-preview-row.imm { background: #f4fdf8; }
.cs-preview-face {
  font-size: 21px; font-weight: 800; color: #fa5151;
  min-width: 62px; letter-spacing: -.02em;
}
.cs-preview-desc { flex: 1; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.cs-preview-tag {
  font-size: 11.5px; padding: 1px 8px; border-radius: 20px; white-space: nowrap;
  background: #eef1f5; color: #6b7280;
}
.cs-preview-row.imm .cs-preview-tag { background: #07c160; color: #fff; }

/* 进群领券弹窗：群权益说明行（「进群后可获得 N 张 X 元优惠券」） */
.gc-hint {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px;
  background: #f4fdf8; border: 1px solid #d8f0e2;
  font-size: 13.5px; color: #0a7a43; line-height: 1.5;
}
.gc-hint b { color: #fa5151; font-weight: 700; }

/* 到账提示层内的券组清单 */
.cs-claim-list { padding: 14px 16px 0; }
.cs-claim-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; background: #fff;
}
.cs-claim-row.imm { border-color: #bfe8cd; background: #f6fdf9; }
.cs-claim-face {
  font-size: 24px; font-weight: 800; color: #fa5151; min-width: 72px;
  letter-spacing: -.02em;
}
.cs-claim-face span { font-size: 15px; margin-right: 1px; }
.cs-claim-body { flex: 1; min-width: 0; }
.cs-claim-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 1px 8px; border-radius: 20px; margin-bottom: 4px;
  background: #fff3e0; color: #b45309;
}
.cs-claim-row.imm .cs-claim-tag { background: #07c160; color: #fff; }
.cs-claim-sub { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.cs-claim-code { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cs-claim-note {
  padding: 6px 18px 0; font-size: 12.5px; color: #0a7a43; text-align: center;
}

/* ==========================================================
   活动宣发（Promo）
   ========================================================== */
/* 类型说明卡片 */
.promo-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pg-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.pg-ico { font-size: 22px; line-height: 1; }
.pg-item b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.pg-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* 海报编辑列表 */
.poster-list { display: flex; flex-wrap: wrap; gap: 10px; }
.poster-item { position: relative; width: 92px; height: 122px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.poster-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; padding: 0;
  border: none; border-radius: 50%; background: rgba(15, 23, 42, .68); color: #fff;
  font-size: 13px; line-height: 18px; cursor: pointer;
}
.poster-del:hover { background: #ef4444; }

/* ==========================================================
   📱 平台后台 · 小程序管理
   ========================================================== */

.select-sm { padding: 6px 10px; font-size: 13px; }

/* 未配置第三方平台密钥时的横幅 */
.mp-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
}
.mp-banner-ico { font-size: 22px; line-height: 1; }
.mp-banner code {
  display: inline-block; margin: 2px 4px 2px 0; padding: 1px 7px;
  background: rgba(180, 83, 9, .1); color: #92400e;
  border-radius: 5px; font-size: 11.5px;
}
.mp-mini-banner {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 9px;
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 12.5px;
}

/* 作业队列 */
.mp-todo-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mp-todo-group { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mp-todo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; background: var(--bg-soft, #f8fafc);
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.mp-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11.5px; font-weight: 700;
}
.mp-todo-list { max-height: 210px; overflow-y: auto; }
.mp-todo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 13px; font-size: 12.5px; cursor: pointer;
  border-bottom: 1px solid var(--border-soft, #f1f5f9);
}
.mp-todo-item:last-child { border-bottom: none; }
.mp-todo-item:hover { background: var(--brand-soft); }
.mp-todo-mer { color: var(--muted); font-size: 11.5px; flex-shrink: 0; }

/* 流程说明 */
.mp-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mp-step { display: flex; align-items: flex-start; gap: 9px; flex: 1; min-width: 150px; }
.mp-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mp-step b { font-size: 13px; }
.mp-step-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.mp-arrow { color: var(--muted); font-size: 15px; flex-shrink: 0; }
.mp-tip {
  margin-top: 16px; padding: 12px 14px; border-radius: 9px;
  background: var(--bg-soft, #f8fafc); border: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.9; color: var(--text-2);
}
.mp-tip code {
  padding: 1px 6px; border-radius: 5px; background: rgba(15, 23, 42, .07);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
}

/* 审计账号 · 可见模块勾选框 */
.perm-chk {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  background: #fff; font-size: 12.5px; line-height: 1.5; transition: border-color .15s, background .15s;
}
.perm-chk:hover { border-color: var(--brand, #07c160); background: var(--brand-light, #f2fbf6); }
.perm-chk input { margin-top: 2px; accent-color: var(--brand, #07c160); flex: none; }
.perm-chk span { display: block; min-width: 0; }

/* 作业台 */
.mp-wb-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.mp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mp-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mp-wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .mp-wb-grid { grid-template-columns: 1fr; } }
.mp-h4 { font-size: 13px; margin-bottom: 10px; color: var(--text-1); }

/* 版本台账 */
.mp-versions { display: flex; flex-direction: column; gap: 9px; }
.mp-ver {
  padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff;
}
.mp-ver-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mp-ver-desc { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.mp-ver-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.8; }

/* 作业流水时间线 */
.mp-logs { display: flex; flex-direction: column; gap: 0; max-height: 420px; overflow-y: auto; }
.mp-log {
  display: flex; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--border-soft, #f1f5f9);
}
.mp-log:last-child { border-bottom: none; }
.mp-log-dot {
  flex-shrink: 0; width: 7px; height: 7px; margin-top: 6px;
  border-radius: 50%; background: var(--brand);
}

/* ===== 小程序管理：视图切换 ===== */
.mp-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 760px) { .mp-switch { grid-template-columns: 1fr; } }
.mp-sw-btn {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  width: 100%; padding: 13px 16px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, transform .15s;
}
.mp-sw-btn:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.mp-sw-btn.on { border-color: var(--brand); background: var(--brand-soft); }
.mp-sw-ico { font-size: 20px; line-height: 1; flex-shrink: 0; }
.mp-sw-btn b { display: block; font-size: 13.5px; color: var(--text); font-weight: 600; }
.mp-sw-btn em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ===== 小程序管理：开通覆盖进度 ===== */
.mp-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.mp-prog-num { font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.mp-prog-bar { height: 9px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.mp-prog-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #60a5fa); transition: width .4s ease; }

/* ===== 小程序管理：批量操作条 ===== */
.mp-batch-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fafbfd; font-size: 12.5px;
}
.mp-batch-bar .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mp-chk-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.mp-chk-inline input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.mp-sel-count { color: var(--muted); }
.mp-sel-count b { color: var(--brand); font-weight: 600; }

/* 未开通商户行淡黄底提示 */
.tbl tbody tr.mp-row-missing { background: #fffdf5; }
.tbl tbody tr.mp-row-missing:hover { background: #fffbe9; }

/* 批量建档预览标签 */
.mp-mer-preview { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; }
.mp-mer-preview .chip {
  display: inline-block; padding: 3px 10px; font-size: 12px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark);
}

/* ===== 版本管理：当前线上卡片 ===== */
.mpver-online {
  display: flex; align-items: center; gap: 16px;
}
.mpver-online-ico { font-size: 30px; line-height: 1; flex-shrink: 0; }
.mpver-online .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== 版本管理：目标小程序切换条 ===== */
.mpv-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mpv-switch-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mpv-switch-ico {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--brand-soft);
}
.mpv-switch select.input { cursor: pointer; font-weight: 600; }

/* ==========================================================
   Marketing V2：分享素材页 / 幸运大转盘 / 跳转活动 / 入口确认层
   配色沿用现有体系（主绿 #07c160）
   ========================================================== */

/* ----- 分享素材页（share-moments / share-article 动作中转层） ----- */
.sh-tipbar {
  background: #fff7e6; color: #b45309; font-size: 12.5px; font-weight: 600;
  padding: 9px 14px; line-height: 1.6;
  border-bottom: 1px solid #fde68a;
}
.sh-body { min-height: 300px; }
.sh-poster { display: block; width: 100%; border-radius: 0 0 12px 12px; }
.sh-article-card {
  margin: 16px; padding: 26px 18px; text-align: center;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
}
.sh-article-card .sh-ico { font-size: 44px; line-height: 1; }
.sh-article-card .sh-t { font-size: 17px; font-weight: 700; margin-top: 10px; }
.sh-article-card .sh-sharetext {
  font-size: 13.5px; color: var(--text-2); margin: 10px 0 4px; line-height: 1.7;
  background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.sh-article-card .sh-d { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.sh-article-card .btn { margin-top: 12px; text-decoration: none; }

/* ----- 幸运大转盘（lottery style=wheel 皮肤） ----- */
.wheel-wrap { position: relative; width: 220px; margin: 8px auto 12px; }
.wheel-pointer {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 22px; color: #fa5151; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.lottery-wheel.wheel-skin {
  width: 208px; height: 208px;
  box-shadow: inset 0 0 0 9px #fff, var(--shadow);
}
.wheel-labels { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.wheel-label {
  position: absolute; left: 50%; top: 50%; width: 74px; margin-left: -37px;
  transform-origin: 50% 0;
  text-align: center; font-size: 10.5px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); white-space: nowrap;
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 82px; height: 82px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* ----- 跳转活动（extjump / localjump） ----- */
.jump-list { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 9px; }
.jump-item {
  display: flex; align-items: center; gap: 11px; padding: 12px;
  background: #f8faf8; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.jump-item:active { background: #eef7f0; }
.jump-logo {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 20px;
}
.jump-logo img { width: 100%; height: 100%; object-fit: cover; }
.jump-logo.big { width: 58px; height: 58px; border-radius: 14px; font-size: 28px; margin: 0 auto; }
.jump-main { flex: 1; min-width: 0; }
.jump-main b { font-size: 14.5px; display: block; }
.jump-main p { font-size: 12.5px; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump-arr { color: #c6c6c6; font-size: 18px; font-weight: 600; }

/* ----- 支付后入口卡片态（popup 降级 / entry 型活动行） ----- */
.wxs-row .wxs-main b .oa-phase { margin-left: 6px; }

/* ============ 支付后组件 A1-A7 卡片 ============ */
.pa-card { background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.pa-card.pa-over { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.pa-card.pa-dragging { opacity: 0.45; }
.pa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pa-drag { cursor: grab; color: var(--muted); font-size: 15px; letter-spacing: -2px; user-select: none; padding: 0 2px; }
.pa-no { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 0 4px; }
.pa-name { font-weight: 700; font-size: 14.5px; }
.pa-spacer { flex: 1; }
.pa-sortwrap { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pa-sort { width: 64px; }
.pa-pill { border: none; border-radius: 999px; padding: 4px 14px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pa-pill.on { background: var(--green-soft); color: var(--green); }
.pa-pill.off { background: #f1f5f9; color: #94a3b8; }
.pa-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pa-adv { margin-top: 12px; }
.pa-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); user-select: none; width: fit-content; }
.pa-adv[open] summary { margin-bottom: 10px; }
/* A6/A7 跳转目标勾选列表（平台库多选） */
.pa-liblist { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; max-height: 220px; overflow-y: auto; }
.pa-librow { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pa-libname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-libappid { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ==========================================================
   PC 端增强基元（新增类，H5 未使用 → 全局安全，见视觉规范 §9.1）
   ========================================================== */
.svg-ico {
  display: inline-block; flex: 0 0 auto; vertical-align: -0.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-tile {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; flex: 0 0 40px;
}
.icon-tile .svg-ico { width: 20px; height: 20px; }
.icon-tile.blue { background: var(--brand-50); color: var(--brand-600); }
.icon-tile.green { background: var(--success-50); color: var(--success-500); }
.icon-tile.orange { background: var(--warning-50); color: var(--warning-500); }
.icon-tile.purple { background: #f5f3ff; color: #7c3aed; }
.icon-tile.cyan { background: var(--info-50); color: var(--info-500); }
.icon-tile.red { background: var(--danger-50); color: var(--danger-500); }
.icon-tile.solid { color: #fff; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--gray-400); }
.dot-blue { background: var(--brand-600); }
.dot-green { background: var(--success-500); }
.dot-orange { background: var(--warning-500); }
.dot-red { background: var(--danger-500); }
.dot-purple { background: var(--purple); }
.dot-cyan { background: var(--info-500); }
.dot-gray { background: var(--gray-400); }

/* ==========================================================
   PC 端增强（作用域隔离）—— 见视觉规范 §7 / 体验规范 §4·§5·§7
   仅对 .app-pc / .app-login 生效，pay.html（H5）零影响
   ========================================================== */

/* ---------- 键盘焦点（鼠标点击不出环，Tab 出环）---------- */
.app-pc :focus { outline: none; }
.app-pc :focus-visible { box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.app-pc .input:focus-visible, .app-pc .select:focus-visible, .app-pc .textarea:focus-visible { box-shadow: var(--focus-ring); }
.app-pc .btn:focus-visible { box-shadow: var(--focus-ring); }
.app-pc .btn-danger:focus-visible { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16); }

/* ---------- 侧栏 / 导航 ---------- */
.app-pc .nav-group { color: var(--gray-600); }
.app-pc .nav-item { position: relative; padding: 10px 12px; border-radius: var(--r-sm); }
.app-pc .nav-item .ico { width: 18px; display: grid; place-items: center; color: currentColor; }
.app-pc .nav-item.active { color: var(--brand-700); }
.app-pc .nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand-600);
}
.app-pc .sidebar-foot a:hover { color: var(--brand); }

/* ---------- 顶栏 ---------- */
.app-pc .topbar { height: 60px; border-bottom-color: var(--gray-100); }
.app-pc .topbar .sub { color: var(--gray-600); }
.app-pc .menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--gray-700);
}
.app-pc .menu-btn:hover { background: var(--gray-50); }
@media (max-width: 900px) { .app-pc .menu-btn { display: inline-flex; } }
.app-pc .bell-btn { border-color: var(--gray-200); color: var(--gray-700); }
.app-pc .bell-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.app-pc .user-chip { background: var(--gray-100); transition: box-shadow 0.15s; }
.app-pc .user-chip:hover { box-shadow: var(--e2); }

/* ---------- 内容区 / 密度 ---------- */
.app-pc .content { padding: 24px 28px 48px; }
@media (min-width: 1920px) { .app-pc .content { max-width: 1440px; margin: 0 auto; width: 100%; } }
@media (min-width: 1366px) and (max-width: 1439px) { .app-pc .content { padding: 20px 24px 40px; } }
@media (max-width: 900px) { .app-pc .content { padding: 16px 16px 40px; } }

/* ---------- 统计卡 ---------- */
.app-pc .stat-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.app-pc .stat { padding: 16px 18px; border-color: var(--gray-100); box-shadow: var(--e1); transition: box-shadow 0.15s; }
.app-pc .stat:hover { box-shadow: var(--e3); }
.app-pc .stat .label { color: var(--gray-500); }
.app-pc .stat .value { font-size: 26px; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.app-pc .stat .value small { font-size: 12.5px; }
.app-pc .stat .foot { color: var(--gray-500); }

/* ---------- 卡片 ---------- */
.app-pc .card { border-radius: var(--r-lg); border-color: var(--gray-100); box-shadow: var(--e1); margin-bottom: 20px; transition: box-shadow 0.15s; }
.app-pc .card:hover { box-shadow: var(--e3); }
.app-pc .card-head { padding: 16px 20px; border-bottom-color: var(--gray-100); }
.app-pc .card-head h3 { font-size: 14.5px; font-weight: 650; }
.app-pc .card-head .desc { color: var(--gray-500); }
.app-pc .card-body { padding: 20px; }
.app-pc .card-body.tight { padding: 16px 20px; }
/* 裸卡片（内容直接放 .card 里、没有 .card-head/.card-body 包裹）此前 padding:0，
   表单第一行的标签会贴在卡片左边与圆角上，看起来像被裁切。这里补统一内边距。 */
.app-pc .card:not(:has(> .card-head)):not(:has(> .card-body)) { padding: 18px 22px; }

/* ---------- 按钮（.btn 为 H5 共享类，必须作用域覆盖）---------- */
.app-pc .btn { padding: 9px 16px; border-radius: var(--r-sm); font-weight: 550; }
.app-pc .btn:hover { border-color: var(--gray-300); background: var(--gray-50); box-shadow: var(--e2); }
.app-pc .btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.06); }
.app-pc .btn:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.app-pc .btn-primary { background: var(--brand-600); border-color: var(--brand-600); }
.app-pc .btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.app-pc .btn-green { background: var(--success-500); border-color: var(--success-500); }
.app-pc .btn-green:hover { background: var(--success-700); border-color: var(--success-700); filter: none; }
.app-pc .btn-danger { background: var(--danger-500); border-color: var(--danger-500); }
.app-pc .btn-danger:hover { background: var(--danger-700); border-color: var(--danger-700); }
.app-pc .btn-ghost { border-color: transparent; }
.app-pc .btn-ghost:hover { background: var(--gray-100); border-color: transparent; box-shadow: none; }
.app-pc .btn-sm { padding: 5px 12px; border-radius: 6px; }
.app-pc .btn-lg { padding: 12px 24px; border-radius: var(--r-md); }

/* ---------- 表单 ---------- */
.app-pc .field label { color: var(--gray-700); }
.app-pc .field .hint { color: var(--gray-500); }
.app-pc .hint.error { color: var(--danger-500); }
.app-pc .input, .app-pc .select, .app-pc .textarea {
  padding: 10px 12px; border-radius: var(--r-sm); border-color: var(--gray-200);
}
/* 2026-10-23：单行输入框/下拉框文字被上下切边 + 两者高度不齐的修正
   原因：14px 文字 + line-height:normal，上下各留 10px 内距后内容盒只剩 19~21px，
   字行几乎顶满 → input/select 的 UA overflow:clip 会在上下各切掉约半像素（缩放 90%/125%
   时更明显）；且 select 43px / input 41px 相差 2px，与按钮同排时基线不齐。
   改法：固定 42px 高 + 显式 22px 行高 + 上下内距归零，文字在内容盒里垂直居中并留余量。
   仅作用于单行控件，textarea（多行）与文件选择框保持自适应高度。 */
/* 左内距 12→14px：文字（含「—— 请选择 ——」这类前后破折号）离边框更远，不再像贴边被切 */
.app-pc .input:not(textarea):not([type="file"]),
.app-pc .select {
  height: 42px; padding: 0 12px 0 14px; line-height: 22px;
}
.app-pc .input-sm:not(textarea):not([type="file"]) {
  height: 32px; padding: 0 10px 0 12px; line-height: 20px; font-size: 13px;
}
.app-pc .input-sm { padding: 6px 10px; font-size: 13px; }
.app-pc .input:hover, .app-pc .select:hover, .app-pc .textarea:hover { border-color: var(--gray-300); }
.app-pc .input:focus, .app-pc .select:focus, .app-pc .textarea:focus { border-color: var(--brand-600); box-shadow: var(--focus-ring); }
.app-pc .input::placeholder, .app-pc .textarea::placeholder { color: var(--gray-400); }
.app-pc .input.is-error, .app-pc .select.is-error, .app-pc .textarea.is-error {
  border-color: var(--danger-500); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}
.app-pc .input:disabled, .app-pc .select:disabled, .app-pc .textarea:disabled {
  background: var(--gray-50); color: var(--gray-400); cursor: not-allowed;
}
.app-pc .switch .slider { background: var(--gray-300); }
.app-pc .switch input:checked + .slider { background: var(--success-500); }

/* ---------- 表格 ---------- */
.app-pc .table-wrap { overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.app-pc table.tbl th {
  padding: 12px 16px; background: var(--gray-50); color: var(--gray-600); font-size: 12px;
  border-bottom-color: var(--gray-200); position: sticky; top: 0; z-index: 1;
}
.app-pc table.tbl td { padding: 12px 16px; border-bottom-color: var(--gray-100); }
.app-pc table.tbl tbody tr:hover { background: var(--gray-25); }
.app-pc table.tbl tbody tr:last-child td { border-bottom: none; }
.app-pc .num, .app-pc .amount, .app-pc .mono, .app-pc table.tbl td.num {
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1;
}
.app-pc .td-ellipsis { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 标签 ---------- */
.app-pc .tag { padding: 3px 10px; }
.app-pc .tag-blue { background: var(--brand-50); color: var(--brand-700); }
.app-pc .tag-green { background: var(--success-50); color: var(--success-700); }
.app-pc .tag-orange { background: var(--warning-50); color: var(--warning-700); }
.app-pc .tag-red { background: var(--danger-50); color: var(--danger-700); }
.app-pc .tag-cyan { background: var(--info-50); color: var(--info-700); }
.app-pc .tag-purple { background: #f5f3ff; color: #6d28d9; }
.app-pc .tag-gray { background: #f2f4f7; color: var(--gray-700); }
.app-pc .tag-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 4px; }

/* ---------- 空态 / 加载 ---------- */
.app-pc .empty { padding: 48px 20px; color: var(--gray-500); }
.app-pc .empty .svg-ico { color: var(--gray-300); display: block; margin: 0 auto 12px; }
.app-pc .empty-title { font-size: 13.5px; font-weight: 600; color: var(--gray-600); }
.app-pc .empty-desc { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; }
.app-pc .loading { color: var(--gray-500); }
.app-pc .spinner { border-color: var(--gray-200); border-top-color: var(--brand-600); }
.app-pc .is-refreshing { opacity: 0.55; pointer-events: none; }

/* ---------- 弹窗（.modal 为 H5 共享类，必须作用域覆盖）---------- */
.app-pc .modal { box-shadow: var(--e4); }
.app-pc .modal-head { padding: 18px 20px; border-bottom-color: var(--gray-100); }
.app-pc .modal-head h3 { font-size: 15.5px; font-weight: 650; }
.app-pc .modal-body { padding: 20px; }
.app-pc .modal-foot { padding: 16px 20px; border-top-color: var(--gray-100); }
.app-pc .x-btn {
  width: 34px; height: 34px; padding: 0; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--gray-500);
}
.app-pc .x-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.app-pc .confirm-msg { font-size: 13.5px; color: var(--gray-700); line-height: 1.7; }

/* ---------- Toast（.toast 为 H5 共享类，必须作用域覆盖）---------- */
.app-pc .toast {
  border-radius: var(--r-md); padding: 11px 18px; box-shadow: var(--e5);
  display: inline-flex; align-items: center; gap: 8px; background: var(--gray-900); text-align: left;
}
.app-pc .toast.ok { background: var(--success-500); }
.app-pc .toast.err { background: var(--danger-500); }
.app-pc .toast .svg-ico { stroke-width: 2.4; }

/* ---------- 侧栏遮罩（≤900px off-canvas，随 .sidebar.open 淡入）---------- */
.app-pc .sidebar-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, 0.45); z-index: 99;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.app-pc .sidebar.open ~ .sidebar-mask,
.app-pc .layout:has(.sidebar.open) .sidebar-mask { opacity: 1; visibility: visible; }

/* ---------- 登录页（.app-login）---------- */
.app-login .login-card { border-color: var(--gray-100); box-shadow: var(--e5); }
.app-login .field label { color: var(--gray-700); }
.app-login .demo-accounts .row {
  width: 100%; background: none; border: 0; font: inherit; color: inherit;
  text-align: left; padding: 6px 8px; cursor: pointer;
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .app-pc *, .app-login * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- 进件融合：资质资料宫格（平台进件详情 / 商户支付管理） ---------------- */
.app-pc .ob-qual-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.app-pc .ob-qual { border:1px solid var(--border); border-radius:10px; padding:8px; background:#fff; text-align:center; }
.app-pc .ob-qual.on { border-color:#07c16055; background:#07c1600a; }
.app-pc .ob-qual img { width:100%; height:92px; object-fit:cover; border-radius:7px; background:#f5f6f8; display:block; }
.app-pc .ob-qual-ph { height:92px; border-radius:7px; background:#f5f6f8; display:flex; align-items:center; justify-content:center; color:var(--muted); }
.app-pc .ob-qual-name { font-size:12.5px; margin-top:6px; font-weight:600; }
.app-pc .ob-qual-sub { font-size:11.5px; color:var(--muted); margin-top:1px; }
.app-pc .ob-progress { height:8px; border-radius:6px; background:var(--border-2); overflow:hidden; }
.app-pc .ob-progress > i { display:block; height:100%; background:#07c160; border-radius:6px; transition:width .25s; }
.app-pc .ob-readonly-bar { display:flex; gap:10px; align-items:center; padding:11px 14px; border-radius:10px; background:#fff7e6; border:1px solid #fa9d3b44; color:#8a5a00; font-size:13px; margin-bottom:14px; }
.app-pc .ob-readonly-bar.danger { background:#fef2f2; border-color:#fa515144; color:#a13333; }

/* ---------------- 分段选择器（seg）与筛选工具栏（filter-bar） ---------------- */
/* 新增通用组件（非覆盖）：pay.html 不引 app.css，无 H5 隔离风险 */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.filter-bar .grow { flex: 1 1 auto; }
.seg { display: inline-flex; background: #f2f3f5; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-item {
  border: none; background: transparent; padding: 6px 14px; border-radius: 7px;
  font-size: 13px; color: var(--text-2, #5a6068); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.seg-item:hover { color: var(--text, #1f2329); }
.seg-item.active {
  background: #fff; color: var(--brand, #07c160); font-weight: 600;
  box-shadow: 0 1px 4px rgba(31, 35, 41, .10);
}

/* ===== 团队管理员双档分润行（渠道工作台「我的分润构成」） ===== */
.rate-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid #e8ebf0; background: #f7f8fa; font-size: 13px; margin-bottom: 8px; }
.rate-row:last-child { margin-bottom: 0; }
.rate-row .rate-k { flex: 1; min-width: 0; color: #333; font-weight: 600; }
.rate-row .rate-v { font-size: 19px; font-weight: 700; color: #06ad56; }
.rate-row .rate-v b { font-size: 12px; font-weight: 500; margin-left: 2px; }
.rate-row .rate-rate { font-size: 12px; color: #fa8c16; background: #fff7e6; border: 1px solid #ffd591; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.rate-row .rate-c { font-size: 13px; color: #8a8f99; white-space: nowrap; min-width: 118px; text-align: right; }
.rate-row.total { background: #e8f8ee; border-color: #b7e6c8; }
.rate-row.total .rate-k { font-weight: 700; }
.rate-row.total .rate-c { color: #06ad56; font-weight: 700; }

/* ---------------- 小程序跳转广告位（平台后台） ---------------- */
.ad-icon-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-icon-img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; background: #fff; }
.ad-cell-img { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; vertical-align: middle; }
.ad-cell-ph { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: #e8f8ee; color: #06ad56; font-size: 13px; font-weight: 700; vertical-align: middle; }

/* ---------------- 商户自助续费弹窗 ---------------- */
.renew-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.renew-bar-tip { font-size: 12.5px; color: var(--muted); }
.renew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.renew-plan {
  position: relative; border: 1.5px solid var(--border-2); border-radius: 12px;
  padding: 13px 14px; cursor: pointer; background: #fff; transition: all .15s;
}
.renew-plan:hover { border-color: #bcd0f6; }
.renew-plan.on { border-color: var(--brand); background: #f4f8ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.renew-plan .rp-head { display: flex; align-items: center; gap: 8px; }
.renew-plan .rp-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.renew-plan .rp-promo { font-size: 11px; color: #fff; background: #e02020; border-radius: 4px; padding: 1px 6px; }
.renew-plan .rp-price { font-size: 15px; font-weight: 700; color: var(--brand); margin: 6px 0 4px; }
.renew-plan .rp-origin { color: var(--muted); font-weight: 400; font-size: 12.5px; text-decoration: line-through; margin-left: 6px; }
.renew-plan .rp-save { font-size: 11.5px; color: #e02020; margin-bottom: 4px; }
.renew-plan .rp-desc { font-size: 12px; color: var(--text-3); line-height: 1.65; }
