* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #4a3a3e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font: inherit; }

:root {
  --pri: #e8879f;          /* 主强调色（文字/描边） */
  --pri-deep: #c8687f;     /* 浅底上的文字 */
  --grad: linear-gradient(135deg, #ffefdc 0%, #ffe3ec 100%);
  --grad-strong: linear-gradient(135deg, #ffd9b8 0%, #ffc6d6 100%);
  --agent: linear-gradient(135deg, #e6f2ff 0%, #eee8ff 100%);
  --agent-strong: linear-gradient(135deg, #c9e2ff 0%, #dcd0ff 100%);
  --agent-deep: #6f82c8;
  --card: #ffffff;
  --muted: #7f7275;
  --line: #f6ebe8;
  --tint: #fff4f6;
  --soft: #fffbf8;
}

/* ---------- 手机框 ---------- */
.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 54px;
  background: #fff;
  border: 12px solid #2a2427;
  box-shadow: 0 0 0 2px #4a4044, 0 24px 60px rgba(120, 90, 100, .18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px; border-radius: 20px; background: #2a2427; z-index: 30;
}
.status-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 34px; font-size: 14px; font-weight: 600; color: #4a3a3e;
  pointer-events: none;
}
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-icons i { display: inline-block; background: currentColor; border-radius: 2px; }
.sig { width: 16px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wifi { width: 14px; height: 10px; border-radius: 10px 10px 2px 2px !important; }
.batt { width: 24px; height: 11px; border-radius: 3px !important; }
.screen {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, #fff6e0 0, transparent 300px),
    radial-gradient(circle at 100% 4%, #fff0f4 0, transparent 280px),
    #fcfbfb;
  background-attachment: local;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 5px; border-radius: 3px; background: #2a2427; opacity: .6; z-index: 30;
}

@media (max-width: 500px) {
  .stage { padding: 0; display: block; height: 100%; }
  .phone { width: 100%; height: 100%; border: none; border-radius: 0; box-shadow: none; }
  .phone-notch, .status-bar, .home-indicator { display: none; }
  .hero { padding-top: 24px !important; }
  .hero .rules-entry { top: 18px !important; }
  .topbar { padding-top: 14px !important; }
}

/* ---------- 通用 ---------- */
.page { min-height: 100%; padding-bottom: 40px; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero {
  color: #5b4448;
  padding: 64px 22px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(40px); z-index: 0;
}
.hero::before { width: 220px; height: 220px; right: -50px; top: 10px; background: rgba(255, 215, 228, .3); }
.hero::after { width: 200px; height: 200px; left: -60px; bottom: -40px; background: rgba(255, 236, 196, .3); }
.hero > * { position: relative; z-index: 1; }
.hero .brand {
  display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,.85); color: var(--pri-deep); letter-spacing: 1px; font-weight: 600;
}
.hero .rules-entry {
  position: absolute; top: 54px; right: 16px; z-index: 3;
  font-size: 12px; font-weight: 600; color: #9a7076;
  padding: 5px 10px 5px 12px; border-radius: 14px;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(230,170,180,.15);
}
.hero h1 {
  font-size: 32px; margin: 14px 0 10px; line-height: 1.2; letter-spacing: 1px;
  background: linear-gradient(135deg, #f0a07e, #e8879f); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 13px; line-height: 1.75; color: #5e5054; }
.hero .cash {
  margin-top: 16px; display: inline-flex; align-items: baseline; gap: 4px;
  background: #fff; color: var(--pri-deep); padding: 6px 14px; border-radius: 22px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(230, 160, 175, .16);
}
.hero .cash b { font-size: 22px; }

.wrap { padding: 0 16px; margin-top: -44px; position: relative; z-index: 2; }
.card {
  position: relative;
  background: var(--card); border-radius: 18px; padding: 18px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(60, 40, 45, .04);
  border: 1px solid #f1ecec;
}
.card-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad-strong);
}
.page.agent .card-title::before { background: var(--agent-strong); }
.card-title .sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
.text { font-size: 13px; line-height: 1.75; color: #4a4044; }

.num-list { list-style: none; counter-reset: n; }
.num-list li {
  counter-increment: n; position: relative; padding-left: 24px;
  font-size: 13px; line-height: 1.7; color: #4a4044; margin-bottom: 6px;
}
.num-list li:last-child { margin-bottom: 0; }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: #f5eeee; color: #8a6a70;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.num-list b { color: #2f2629; }

/* 旧帖数据更新 */
.upd { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #eee6e6; }
.upd-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: #faf8f8; border: 1px solid #f1ecec; text-align: left;
}
.upd-toggle span { display: flex; flex-direction: column; gap: 3px; }
.upd-toggle b { font-size: 14px; color: #3a3033; }
.upd-toggle em { font-style: normal; font-size: 12px; color: var(--muted); }
.upd-toggle i { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--pri-deep); }
.page.agent .upd-toggle i { color: var(--agent-deep); }
.upd-form { margin-top: 12px; }
.code-must {
  margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: #fff4f6; color: #b0506a; font-size: 13px; font-weight: 600; line-height: 1.6;
}
.rec-tip {
  margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #fff;
  border: 1px solid #f3e6ea; font-size: 12px; color: var(--muted); line-height: 1.7;
}
.rec-tip b { display: block; font-size: 14px; color: #3a3033; margin-bottom: 2px; }
.upd-pill {
  font-style: normal; font-weight: 500; font-size: 11px; margin-right: 8px;
  padding: 1px 7px; border-radius: 8px; background: #fff1f4; color: var(--pri-deep);
}
.upd-hist { margin: 10px 0 4px; border-radius: 12px; background: #faf8f8; padding: 2px 12px; }
.upd-hist-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 12px; color: var(--muted); cursor: pointer;
}
.upd-hist-row span { white-space: nowrap; }
.upd-hist-row + .upd-hist-row { border-top: 1px solid #f0eaea; }
.upd-hist-row b { color: #2f2629; }
#updForm { margin-top: 12px; }

/* ---------- 步骤卡片 ---------- */
.step-head {
  display: flex; align-items: center; gap: 10px;
  margin: -18px -16px 12px; padding-right: 14px;
}
.step-no {
  flex: none;
  padding: 7px 14px 7px 14px; border-radius: 17px 0 14px 0;
  background: var(--grad-strong); color: #a85a6e;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: baseline; gap: 3px;
}
.step-no b { font-size: 16px; }
.page.agent .step-no { background: var(--agent-strong); color: var(--agent-deep); }
.step-title {
  flex: 1; min-width: 0; padding-top: 2px;
  font-size: 15px; font-weight: 700; line-height: 22px;
  display: flex; align-items: center; gap: 6px;
}
.step-title .sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.step-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 4px 0 12px; }

.time-box {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #fffaf0, #fff6f8); border-radius: 12px; padding: 12px 14px;
}
.time-box .ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.time-box .lbl { font-size: 12px; color: var(--muted); }
.time-box .val { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ---------- 首页活动按钮 ---------- */
.act-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 14px 14px 16px; border-radius: 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid #efe8e8;
  transition: transform .15s, box-shadow .15s;
}
.act-btn:last-child { margin-bottom: 0; }
.act-btn:active { transform: scale(.98); }
.act-btn:hover { border-color: #f2d6dc; }
.act-btn .info { flex: 1; min-width: 0; }
.act-btn .name { font-size: 15px; font-weight: 700; color: #2f2629; }
.act-btn .desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.act-btn .go {
  flex: none; font-size: 12px; color: var(--pri-deep); background: #fff3f5;
  padding: 6px 12px; border-radius: 16px; font-weight: 700;
}
.tag-limit {
  display: inline-block; font-size: 10px; color: var(--pri-deep); background: var(--tint);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; font-weight: 500;
}

.reward-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reward-box { border-radius: 14px; padding: 14px 12px; }
.reward-box.book { background: #fff6f4; color: var(--pri-deep); }
.reward-box.agent { background: #f5f6fd; color: var(--agent-deep); }
.reward-box .t { font-size: 12px; color: #4a4044; }
.reward-box .v { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.reward-box .d { font-size: 11px; color: var(--muted); }

.sub-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 700; margin: 16px 0 8px; color: #5b4448;
}
.sub-title span { font-size: 11px; font-weight: 400; color: var(--muted); }
.tier-table { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tier-table .tr {
  display: grid; grid-template-columns: .9fr 1.2fr 1.2fr;
  font-size: 12px; border-top: 1px solid var(--line);
}
.tier-table .tr:first-child { border-top: none; }
.tier-table .tr span { padding: 9px 8px; text-align: center; font-weight: 600; color: #4a4044; }
.tier-table .tr span:first-child { color: #4a4044; font-weight: 700; background: #fcfafa; }
.tier-table .tr span:nth-child(2) { color: var(--pri-deep); }
.tier-table .tr span:nth-child(3) { color: var(--agent-deep); }
.tier-table .th span { background: #f8f5f5 !important; color: #3a3033 !important; font-weight: 700; }
.tier-table .tr.top { background: #fff7f3; }
.tier-table .tr.top span:nth-child(n+2) { color: #d8687e; font-weight: 800; }

/* ---------- 活动页头部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  color: #4a3a3e;
  padding: 50px 14px 12px;
  background: linear-gradient(135deg, rgba(255, 249, 236, .94), rgba(255, 242, 246, .94));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(220, 170, 170, .08);
}
.page.agent .topbar { background: linear-gradient(135deg, rgba(255, 249, 240, .94), rgba(242, 242, 255, .94)); }
.topbar .row { display: flex; align-items: center; }
.topbar .back {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #7a5a60;
}
.topbar .ttl { flex: 1; text-align: center; font-size: 17px; font-weight: 700; }
.topbar .rules-link {
  flex: none; font-size: 12px; font-weight: 600; color: #9a7076;
  padding: 5px 10px; border-radius: 14px; background: rgba(255,255,255,.9);
}
.topbar .spacer { flex: none; width: 32px; }
.picker { margin-top: 12px; }
.picker .lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.75); border-radius: 14px; padding: 4px;
}
.seg .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--grad-strong); border-radius: 11px; transition: transform .28s cubic-bezier(.4,.2,.2,1), background .28s;
}
.page.agent .seg .thumb { transform: translateX(100%); background: var(--agent-strong); }
.seg button {
  position: relative; z-index: 1; padding: 9px 0; font-size: 14px; font-weight: 700;
  color: #8a7c7f; transition: color .25s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button.on { color: var(--pri-deep); }
.page.agent .seg button.on { color: var(--agent-deep); }

.act-body { padding: 14px 16px 0; }
.intro-banner {
  border-radius: 16px; padding: 16px; margin-bottom: 14px; color: #3a3033;
  background: #fff; border: 1px solid #f1ecec; position: relative; overflow: hidden;
}
.intro-banner h2 { font-size: 17px; margin-bottom: 6px; }
.intro-banner p { font-size: 13px; line-height: 1.7; color: #5e5054; position: relative; z-index: 1; }
.intro-banner .chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.intro-banner .chips span { font-size: 11px; background: #fff3f5; color: var(--pri-deep); padding: 3px 8px; border-radius: 10px; }
.page.agent .intro-banner .chips span { background: #f2f4ff; color: var(--agent-deep); }
.intro-banner .sec-lbl { position: relative; z-index: 1; font-size: 13px; font-weight: 700; margin: 14px 0 8px; }

/* 列表 */
.dots { list-style: none; }
.dots li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.9; color: #4a4044; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #f2b3c3; }
.page.agent .dots li::before { background: #b8c8f0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tags span, .tags button {
  font-size: 12px; padding: 5px 10px; border-radius: 14px; background: var(--tint); color: var(--pri-deep); font-weight: 600;
  border: 1px solid transparent;
}
.page.agent .tags span, .page.agent .tags button { background: #f2f4ff; color: var(--agent-deep); }
.tags button.on { border-color: var(--pri); background: #fff; }
.page.agent .tags button.on { border-color: #a9b8ee; background: #fff; }

/* 选帖按钮 */
.jump-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.jump-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 0; border-radius: 14px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--line); background: #fff;
}
.jump-btn .logo {
  width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.jump-btn.xhs { color: #e0566b; background: #fff5f6; border-color: #ffe0e5; }
.jump-btn.xhs .logo { background: #ff6b7f; }
.jump-btn.dy { color: #3a3a46; background: #f7f7fa; border-color: #ececf2; }
.jump-btn.dy .logo { background: #2b2b33; }
.jump-btn:active { transform: scale(.97); }

/* 分享码 */
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px dashed #f6cfd8; border-radius: 14px; padding: 12px 14px; background: var(--soft);
}
.page.agent .code-box { border-color: #d6defa; background: #fafbff; }
.code-box .code { font-size: 20px; font-weight: 800; letter-spacing: 2px; font-family: Consolas, monospace; }
.code-box .code.empty { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 500; font-family: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 14px; border-radius: 18px; font-size: 13px; font-weight: 700;
  background: var(--grad-strong); color: #a85a6e; white-space: nowrap;
}
.page.agent .btn { background: var(--agent-strong); color: #5a6aab; }
.btn.ghost { background: var(--tint); color: var(--pri-deep); }
.page.agent .btn.ghost { background: #f2f4ff; color: var(--agent-deep); }
.btn.block { display: flex; width: 100%; padding: 13px; border-radius: 24px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 文案 */
.copy-item { background: var(--soft); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.copy-item:last-child { margin-bottom: 0; }
.page.agent .copy-item { background: #fafbff; }
.copy-item .txt { font-size: 13px; line-height: 1.75; color: #3a3033; white-space: pre-wrap; }
.copy-item .txt.clamp3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

/* 原创发布要求 */
.req-form { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.req-form .lbl { font-size: 13px; color: var(--muted); margin-right: 4px; }
.req-form .chip {
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 8px;
  background: #fff1ee; color: #d0705f;
}
.page.agent .req-form .chip { background: #f0f3ff; color: var(--agent-deep); }
.req-hd {
  font-size: 14px; font-weight: 700; color: #2f2629;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid #f1ecec;
}
.dir-box {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: #fbfaf9; border: 1px solid #efeaea;
}
.dir-hd { font-size: 14px; font-weight: 700; color: #2f2629; margin-bottom: 4px; }
.dir-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #f0ebeb;
  font-size: 13px; line-height: 1.7; color: #3a3033;
}
.dir-row:last-of-type { border-bottom: none; }
.dir-row .no {
  flex: none; margin-top: 1px; min-width: 26px; text-align: center;
  font-size: 11px; font-weight: 700; padding: 2px 0; border-radius: 6px;
  background: #fff1ee; color: #d0705f;
}
.page.agent .dir-row .no { background: #f0f3ff; color: var(--agent-deep); }
.dir-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 6px; }

.copy-item .ops { display: flex; justify-content: flex-end; margin-top: 8px; }

/* 配图 */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poster-one { display: flex; gap: 12px; align-items: flex-start; }
.poster-one .poster { flex: 0 0 46%; }
.poster-side { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.own-shot {
  flex: 1; padding: 12px; border-radius: 12px; background: #fff7f9; border: 1px dashed #f1d5dd;
  font-size: 12px; line-height: 1.7; color: #5f5154;
}
.own-shot b { display: block; font-size: 13px; color: var(--pri-deep); margin-bottom: 4px; }
.agent .own-shot { background: #f5f7ff; border-color: #d9e0f5; }
.agent .own-shot b { color: var(--agent-deep); }
.poster { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; }
.poster canvas { width: 100%; height: 100%; display: block; }
.poster .dl {
  position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 0; font-size: 11px;
  border-radius: 10px; background: rgba(255,255,255,.8); color: #8a5a66; font-weight: 600;
}

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label em { color: var(--pri); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--soft); border-radius: 12px;
  padding: 11px 12px; font-size: 14px; outline: none; color: #4a3a3e; transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #f2b3c3; background: #fff; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.platforms button {
  padding: 9px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; font-weight: 600; color: #5e5054;
}
.platforms button.on { border-color: #f2b3c3; color: var(--pri-deep); background: var(--tint); }
.page.agent .platforms button.on { border-color: #c3cff5; color: var(--agent-deep); background: #f2f4ff; }

.upload { display: flex; gap: 8px; flex-wrap: wrap; }
.upload .add, .upload .thumb-img {
  width: 76px; height: 76px; border-radius: 12px; position: relative; overflow: hidden;
}
.upload .add {
  border: 1.5px dashed #f6cfd8; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); background: var(--soft); margin: 0;
}
.upload .add b { font-size: 24px; font-weight: 300; line-height: 1; color: var(--pri); }
.upload .thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.upload .thumb-img button {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 12px; line-height: 18px;
}

.quota {
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted);
  margin: 0 2px 12px;
}
.quota b { color: var(--pri-deep); }

/* 奖励档位 */
.base-reward {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 14px; padding: 14px; background: var(--grad); color: var(--pri-deep); margin-bottom: 12px;
}
.page.agent .base-reward { background: var(--agent); color: var(--agent-deep); }
.base-reward .v { font-size: 22px; font-weight: 800; }
.base-reward .t { font-size: 12px; opacity: .85; }
.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft);
}
.page.agent .tier { background: #fafbff; }
.tier .lv {
  flex: none; width: 70px; text-align: center; font-size: 12px; font-weight: 700; color: var(--pri-deep);
  background: #fff; border-radius: 8px; padding: 5px 0;
}
.page.agent .tier .lv { color: var(--agent-deep); }
.tier .rw { flex: 1; font-size: 13px; font-weight: 600; }
.tier.top { background: linear-gradient(90deg, #fff8e6, #fff0f3); }
.tier.top .rw { color: #d8687e; }

.note { font-size: 12px; color: var(--muted); line-height: 1.75; margin-top: 10px; }
.note b { color: #7a5a60; }

.warn {
  font-size: 12px; line-height: 1.7; color: #b07a50; background: #fffaf0; border-radius: 12px; padding: 10px 12px;
}

/* 页尾奖励说明 */
.foot-notes { padding: 6px 6px 0; color: #85787b; font-size: 11px; line-height: 1.8; }
.foot-notes .hd { font-weight: 700; color: #5e5054; margin-bottom: 2px; }
.foot-notes ol { padding-left: 16px; }

/* 规则页 */
.rule-sec { margin-bottom: 16px; }
.rule-sec:last-child { margin-bottom: 0; }
.rule-sec h3 { font-size: 14px; margin-bottom: 6px; color: #5b4448; }

.stat-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-inputs div { display: flex; flex-direction: column; gap: 4px; }
.stat-inputs span { font-size: 12px; color: var(--muted); }
.stat-inputs input { text-align: center; padding: 10px 6px !important; }
.foot-notes.in-card { padding: 14px 0 0; margin-top: 14px; border-top: 1px dashed #f1ecec; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -2px 0 8px; }

/* 提交记录 */
.card-title .sub.link { color: var(--pri-deep); font-weight: 600; }
.rec-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  background: #faf8f8; border-radius: 12px; padding: 12px 0;
}
.rec-stats div { display: flex; flex-direction: column; gap: 2px; }
.rec-stats div + div { border-left: 1px solid #eee8e8; }
.rec-stats b { font-size: 18px; color: #2f2629; }
.rec-stats span { font-size: 11px; color: var(--muted); }
.rec-list { margin-top: 12px; }
.rec-list .rec-item { padding: 12px 0; border-top: 1px solid #f1ecec; }
.rec-list .rec-item:last-child { padding-bottom: 0; }
.rec-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 14px 0 2px; }
.rec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rec-act { font-size: 14px; font-weight: 700; color: #2f2629; }
.rec-kind { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #f5f1f1; color: #6e5f63; }
.rec-st { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.rec-st.ing { background: #fff6e8; color: #c2802e; }
.rec-st.ok { background: #eef8f1; color: #3f9a5e; }
.rec-rows div { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.9; }
.rec-rows div span:first-child { color: var(--muted); }
.rec-rows div span:last-child { color: #3a3033; }
.rec-rows b { color: #2f2629; }
.rec-link {
  margin-top: 6px; font-size: 12px; color: #6e5f63; background: #faf8f8; border-radius: 8px; padding: 6px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-shots { display: flex; gap: 8px; margin-top: 10px; }
.rec-shots img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #f1ecec; cursor: zoom-in; }
.upload .thumb-img img { cursor: zoom-in; }
.rec-item { cursor: pointer; }
.rec-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f1ecec; font-size: 12px; color: var(--muted);
}
.rec-foot .more { color: var(--pri-deep); font-weight: 600; }
.act .card > .rec-item .rec-foot { margin-bottom: -2px; }
.rec-kind.demo { background: #eef3ff; color: #5a6aab; }
.link-btn {
  display: block; width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--pri-deep); background: #fff3f5; text-align: center;
}
.rec-st.reject { background: #f6f3f3; color: #a05a5a; }
.rec-link-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rec-link-row .rec-link { flex: 1; min-width: 0; margin-top: 0; }
.rec-shots.big { flex-wrap: wrap; margin-top: 0; }
.rec-shots.big img { width: 96px; height: 128px; }
.claim-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 12px; background: var(--soft); margin-bottom: 8px;
}
.claim-row:last-of-type { margin-bottom: 0; }
.claim-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.claim-info b { font-size: 14px; color: #2f2629; }
.claim-info span { font-size: 12px; color: var(--muted); }
.btn.claim { flex: none; padding: 8px 14px; }
.btn.claim.done { background: #f2efef; color: #8a7c7f; opacity: 1; }
.rec-tabs { display: flex; gap: 8px; margin-top: 12px; }
.rec-tabs button {
  font-size: 13px; padding: 5px 12px; border-radius: 14px; background: rgba(255,255,255,.85); color: #6e5f63; font-weight: 600;
}
.rec-tabs button.on { background: #fff; color: var(--pri-deep); box-shadow: 0 0 0 1px #f2c9d3 inset; }

/* 截图预览 */
.viewer {
  position: absolute; inset: 0; z-index: 60; background: rgba(20, 14, 16, .88);
  display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.viewer.show { display: flex; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* toast */
.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  max-width: 78%; padding: 12px 18px; border-radius: 14px; background: rgba(70, 55, 60, .85); color: #fff;
  font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
