:root {
  --bg: #faf6ef;
  --card: #fff;
  --text: #2f2419;
  --muted: #8a7355;
  --primary: #ff8c42;
  --primary-strong: #ea580c;
  --danger: #dc2626;
  --ok: #16a34a;
  --border: #f3e4c7;
  --shadow-card: 0 6px 18px rgba(41, 37, 30, 0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.body-no-tab {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
/* 底部主导航 + 悬浮操作条（任务提交 / 素材页） */
.pwa-install-prompt {
  position: fixed;
  z-index: 90;
  left: max(12px, calc((100% - 496px) / 2));
  right: max(12px, calc((100% - 496px) / 2));
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 42px 12px 12px;
  border-radius: 16px;
  background: #fffefb;
  box-shadow: 0 8px 22px rgba(47, 36, 25, .14);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.pwa-install-prompt.is-visible { opacity: 1; transform: translateY(0); }
.pwa-install-prompt[hidden] { display: none; }
.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff3e8;
}
.pwa-install-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pwa-install-copy strong { font-size: 14px; line-height: 1.35; color: var(--text); }
.pwa-install-copy span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.pwa-install-action {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-strong);
  color: #fff;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pwa-install-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #a18d73;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 360px) {
  .pwa-install-prompt { grid-template-columns: 42px minmax(0, 1fr) auto; padding-left: 10px; gap: 8px; }
  .pwa-install-icon { width: 42px; height: 42px; border-radius: 10px; }
  .pwa-install-action { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-install-prompt { transition: none; transform: none; }
}
body.has-submit-dock {
  padding-bottom: calc(72px + 58px + env(safe-area-inset-bottom, 0px));
}
.h5-submit-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0) 0%, rgba(255, 253, 248, 0.97) 18%, #fff9ef 100%);
  border-top: 1px solid #f3ead8;
  box-shadow: 0 -6px 18px rgba(41, 37, 30, 0.07);
  pointer-events: none;
}
.h5-submit-dock-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  padding: 8px 12px 10px;
  pointer-events: auto;
}
/* 覆盖全局 .btn { width:100% }，否则底栏两按钮会各占一行竖排 */
.h5-submit-dock-inner > .btn,
.h5-submit-dock-inner > a.btn {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  font-weight: 700;
}
/* 任务提交卡片内：查看任务 + 提交审核 同一行 */
.h5-inline-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}
.h5-inline-actions > .btn,
.h5-inline-actions > a.btn {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

.h5-toast-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.h5-toast-card {
  width: 100%;
  max-width: 320px;
  background: #fffef9;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(41, 37, 30, 0.18);
  border: 1px solid #fde68a;
  overflow: hidden;
  animation: h5-toast-in 0.22s ease-out;
}
@keyframes h5-toast-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.h5-toast-body {
  padding: 22px 18px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #3d2e22;
  text-align: center;
}
.h5-toast-btn {
  width: 100%;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  border-top: 1px solid #fde68a !important;
}

/* 提交页区块标题（提交任务 / 任务教程等） */
.h5-page-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}
/* 用户提交项区域（与教程、说明区分） */
.h5-submit-fields-zone {
  margin-top: 4px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
}
.h5-submit-fields-zone-head {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #3b82f6;
}
label.h5-submit-item-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin: 12px 0 6px;
  letter-spacing: 0;
}
.h5-submit-fields-zone label.h5-submit-item-label:first-of-type {
  margin-top: 4px;
}
.h5-submit-item-input::placeholder {
  color: #9ca3af;
  font-size: 14px;
}
.h5-alert-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(15, 23, 42, 0.5);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.h5-alert-overlay.on {
  display: flex;
}
.h5-alert-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(41, 37, 30, 0.2);
  overflow: hidden;
  text-align: center;
  animation: h5-toast-in 0.22s ease-out;
}
.h5-alert-card.is-warn {
  border: 1px solid #fecaca;
}
.h5-alert-card.is-info {
  border: 1px solid #fde68a;
}
.h5-alert-icon {
  width: 48px;
  height: 48px;
  margin: 20px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.h5-alert-card.is-warn .h5-alert-icon {
  background: #fee2e2;
  color: #dc2626;
}
.h5-alert-card.is-info .h5-alert-icon {
  background: #fef3c7;
  color: #d97706;
}
.h5-alert-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 12px 16px 0;
}
.h5-alert-body {
  padding: 10px 18px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}
.h5-alert-btn {
  width: 100%;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  border-top: 1px solid #e5e7eb !important;
}
.h5-alert-card.is-warn .h5-alert-btn {
  border-top-color: #fecaca !important;
}

/* 提交前答题确认 */
.h5-submit-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 320;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.58);
}
.h5-submit-gate-overlay.on { display: flex; }
.h5-submit-gate-card {
  width: 100%;
  max-width: 420px;
  max-height: min(86vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
}
.h5-submit-gate-head { padding: 18px 18px 12px; border-bottom: 1px solid #e2e8f0; }
.h5-submit-gate-head h2 { margin: 0; font-size: 18px; line-height: 1.35; color: #0f172a; }
.h5-submit-gate-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: #475569; }
.h5-submit-gate-body { padding: 14px 16px 4px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.h5-submit-gate-question { min-width: 0; margin: 0 0 12px; padding: 12px; border: 1px solid #dbe3ee; border-radius: 10px; background: #f8fafc; }
.h5-submit-gate-question legend { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: #1e293b; }
.h5-submit-gate-number { flex: 0 0 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 12px; }
.h5-submit-gate-option { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font-size: 14px; line-height: 1.45; cursor: pointer; }
.h5-submit-gate-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2563eb; }
.h5-submit-gate-option:focus-within { outline: 3px solid rgba(37, 99, 235, 0.22); outline-offset: 1px; }
.h5-submit-gate-error { min-height: 20px; padding: 0 18px 8px; color: #b91c1c; font-size: 13px; line-height: 1.45; }
.h5-submit-gate-actions { display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid #e2e8f0; background: #fff; }
.h5-submit-gate-actions .btn { flex: 1; margin: 0; }
@media (max-width: 380px) {
  .h5-submit-gate-actions { flex-direction: column-reverse; }
}

/* 领取任务 — 必看提醒弹窗 */
.h5-must-read-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(15, 23, 42, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.h5-must-read-overlay.on {
  display: flex;
}
.h5-must-read-card {
  width: 100%;
  max-width: 360px;
  max-height: min(82vh, 560px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: h5-toast-in 0.22s ease-out;
  border: 1px solid #fde68a;
}
.h5-must-read-head {
  flex-shrink: 0;
  padding: 16px 18px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #b45309;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border-bottom: 1px solid #fde68a;
}
.h5-must-read-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  min-height: 80px;
}
.h5-must-read-body img {
  max-width: 100% !important;
  height: auto !important;
}
.h5-must-read-btn {
  flex-shrink: 0;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-top: 1px solid #fde68a !important;
}

.mat-img-shell {
  display: block;
  margin: 12px 0;
}
.mat-img-shell img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.mat-img-shell .mat-img-save-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.mat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.mat-status-pill--occ {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
}
.mat-status-pill--free {
  background: linear-gradient(180deg, #f0fdf4 0%, #d1fae5 100%);
  color: #065f46;
  border: 1px solid #34d399;
}
.mat-status-pill--used {
  background: linear-gradient(180deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #f87171;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #fffef9 0%, #fff9ef 100%);
  color: #4a3728;
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 1px solid #f0e4d4;
}
.topbar-main {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
}
.top-left {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
}
.top-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  min-width: 0;
}
.top-site-name {
  font-size: 17px;
  font-weight: 800;
  color: #3d2e22;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.top-site-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.top-profile-fallback {
  display: block;
  color: #4a3728;
  opacity: 0.92;
}
.top-right-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  justify-self: end;
}
.top-right-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.page { padding: 12px 12px 24px; max-width: 520px; margin: 0 auto; overflow-x: hidden; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  border: 1px solid rgba(243, 228, 199, 0.85);
  max-width: 100%;
  box-sizing: border-box;
}
.task-item {
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fffef9 100%);
  border: 1px solid #f3ecd2;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 11px;
  padding: 11px;
  margin-bottom: 11px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.task-item img {
  width: 82px;
  height: 82px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff7dc;
  border: 1px solid #f5e6b4;
}
.task-item-icon-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.task-item-icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: #fff7dc;
  border: 1px solid #f5e6b4;
}
.task-ad-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 13px 0 8px 0;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.task-item .meta {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}
.task-item .t {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.32;
  color: #1f2937;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.task-item .p {
  color: #dc2626;
  font-weight: 800;
  margin-top: 0;
  font-size: 16px;
}
.task-comm-earn-row .task-price { margin-top: 0; }
.task-comm-earn-row {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 11px;
}
.task-price {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.task-earned {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
  white-space: nowrap;
}
.task-info-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.task-info-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9e8 0%, #fff4cf 100%);
  border: 1px solid #f4df9a;
  color: #8a6200;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.task-info-extra {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
  color: #9a3412;
}
.task-info-limit {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border-color: #e5e7eb;
  color: #475569;
}
@media (max-width: 420px) {
  .task-item {
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .task-item img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }
  .task-item-icon-wrap {
    width: 76px;
    height: 76px;
  }
  .task-item-icon-wrap img {
    border-radius: 12px;
  }
  .task-ad-badge {
    border-radius: 12px 0 7px 0;
    font-size: 9px;
  }
  .task-item .t {
    font-size: 14px;
  }
  .task-item .p {
    font-size: 15px;
  }
  .task-earned {
    font-size: 11px;
  }
  .task-info-item {
    font-size: 10px;
    padding: 4px 9px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(180deg, #ffb86b 0%, #ff8c42 48%, #f97316 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  border-radius: 999px;
}
.btn-primary:active {
  opacity: 0.94;
  transform: translateY(1px);
}
.btn-ghost {
  background: #fff8eb;
  color: #9a3412;
  border: 1px solid #fcd34d;
  border-radius: 999px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
/* 任务提交 / 额外奖励提交 — 后台自定义字段标题（需醒目，勿与全局 muted 标签混用） */
label.h5-field-label {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 14px 0 8px;
  letter-spacing: 0.02em;
}
label.h5-field-label:first-of-type {
  margin-top: 10px;
}
.h5-field-opt {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}
.h5-submit-field { margin-bottom: 14px; max-width: 100%; }
.h5-submit-image-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.h5-submit-example {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  min-width: 0;
  max-width: 88px;
  max-height: 88px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f4f6;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  vertical-align: top;
  box-sizing: border-box;
}
.h5-submit-example img {
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.h5-submit-example-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 6px 0 0 0;
  pointer-events: none;
}
.h5-submit-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  min-height: 88px;
  max-height: 88px;
  border: 2px dashed #f87171;
  border-radius: 8px;
  background: #fff5f5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.h5-submit-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.h5-submit-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.h5-submit-upload-icon,
.h5-submit-upload-text {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.h5-submit-upload-btn:has(.h5-submit-upload-preview) .h5-submit-upload-icon,
.h5-submit-upload-btn:has(.h5-submit-upload-preview) .h5-submit-upload-text {
  display: none;
}
.h5-submit-upload-icon { font-size: 22px; line-height: 1; }
.h5-submit-upload-text {
  font-size: 11px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
  padding: 0 4px;
}
/* 提交页示例图点击放大 */
.h5-img-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  padding: 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.h5-img-preview-overlay.on {
  display: flex;
}
.h5-img-preview-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.h5-img-preview-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
}
.h5-img-preview-hint {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3c9;
  color: #7a5a00;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}
.tabs a.on {
  background: linear-gradient(180deg, #ffb347 0%, #ff8c42 55%, #f97316 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.22);
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(240, 228, 212, 0.95);
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(41, 37, 30, 0.05);
}
.tabbar-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
}
.tabbar-cell {
  text-align: center;
  text-decoration: none;
  color: #78716c;
  font-size: 10px;
  padding: 6px 2px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.tabbar-cell:active {
  background: rgba(255, 140, 66, 0.08);
}
.tabbar-cell.on {
  color: var(--primary-strong);
  font-weight: 700;
  background: rgba(255, 140, 66, 0.1);
}
.tabbar-cell.on .tabbar-svg {
  color: var(--primary-strong);
}
.tabbar-ico-wrap {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tabbar-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.tabbar-svg {
  display: block;
  color: #78716c;
}
.tabbar-txt {
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transform: scale(0.96);
}
.tabbar-invite-slot {
  position: relative;
}
.tabbar-invite-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(18%);
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185, #ef4444);
  color: #fff;
  box-shadow: 0 1px 5px rgba(239, 68, 68, 0.4);
  z-index: 2;
}
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 8px;
}
.auth-card {
  padding: 18px 16px 20px;
}
.auth-head {
  text-align: center;
  margin-bottom: 14px;
}
.auth-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #3d2e22;
}
.auth-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.quick-nav a div {
  font-size: 13px !important;
  font-weight: 600;
  color: #3d2e22;
}
.task-detail-card {
  border-radius: 18px;
}
.task-detail-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.task-detail-cover {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff4e6;
  border: 1px solid #fde68a;
  flex-shrink: 0;
}
.task-detail-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.task-detail-title-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.task-detail-title {
  width: 100%;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #1f2937;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.task-detail-tags {
  margin-top: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.task-detail-price {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-strong);
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.task-detail-stats {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3ead8;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
}
.task-detail-stats > div {
  position: relative;
}
.task-detail-stats > div:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: #eee8dc;
}
.task-detail-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #3d2e22;
}
.task-detail-stat-num small {
  font-size: 13px;
  font-weight: 700;
}
.task-detail-stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.task-detail-extra {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  font-size: 13px;
  color: #92400e;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.task-detail-extra-inner {
  flex: 1;
  min-width: 0;
}
.task-detail-extra-title {
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.task-detail-extra-wrap .task-extra-rules {
  margin-top: 10px;
}
.task-extra-ms-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.task-extra-ms-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #b45309;
}
.task-extra-ms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  transform: translateY(-50%);
}
.task-detail-extra::before {
  content: "🎁";
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}
.task-desc-card .task-desc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #4a3728;
  margin-bottom: 10px;
}
.task-desc-head svg {
  flex-shrink: 0;
  color: var(--primary-strong);
}
.task-foot-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.task-foot-note svg {
  flex-shrink: 0;
  color: var(--ok);
}
.muted { color: var(--muted); font-size: 13px; }

/* 富文本素材/任务说明：内容过长自动换行（不裁切、不隐藏溢出） */
.desc,
#matContentBox,
.mat-content-body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.6;
  font-size: 14px;
}
.desc img,
#matContentBox img,
.mat-content-body img {
  max-width: 100% !important;
  height: auto;
  display: block;
}
.desc video,
.desc iframe,
.desc embed,
#matContentBox video,
#matContentBox iframe,
#matContentBox embed,
.mat-content-body video,
.mat-content-body iframe,
.mat-content-body embed {
  max-width: 100%;
}
.desc table,
#matContentBox table,
.mat-content-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.desc pre,
.desc code,
#matContentBox pre,
#matContentBox code,
.mat-content-body pre,
.mat-content-body code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.desc a,
#matContentBox a,
.mat-content-body a {
  overflow-wrap: break-word;
  word-break: break-all;
}
.desc p,
.desc div,
.desc li,
.desc span,
.desc section,
.desc article,
.desc td,
.desc th,
#matContentBox p,
#matContentBox div,
#matContentBox li,
#matContentBox span,
#matContentBox section,
#matContentBox article,
.mat-content-body p,
.mat-content-body div,
.mat-content-body li,
.mat-content-body span,
.mat-content-body section,
.mat-content-body article {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.desc [style*="nowrap"],
#matContentBox [style*="nowrap"],
.mat-content-body [style*="nowrap"] {
  white-space: normal !important;
}
.desc [style*="width"],
#matContentBox [style*="width"],
.mat-content-body [style*="width"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff3c9; color: #7a5a00; font-size: 12px; margin-right: 6px; }
.alert { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; word-break: break-word; overflow-wrap: anywhere; }
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-nav a {
  text-decoration: none;
  color: #2b2b2b;
  text-align: center;
}
.quick-nav img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto 5px;
}
.home-banner {
  width: 100%;
  height: min(36vw, 180px);
  min-height: 112px;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.card.home-ann {
  padding: 11px 12px;
  margin-bottom: 11px;
}
.home-ann {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf3 100%);
}
.home-ann-left {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #4a3728;
}
.home-ann-left::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8c42'%3E%3Cpath d='M4 10v4c0 1.1.9 2 2 2h2l4 3v-11l-4 3H6c-1.1 0-2 .9-2 2zm13.5 2c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.home-ann-preview {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  color: #3a3a3a;
  cursor: pointer;
  padding: 2px 4px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
}
.home-ann-preview:hover {
  color: #1f2937;
}
.home-ann-preview:active {
  opacity: 0.88;
}
.home-more {
  border: none;
  background: transparent;
  color: #9a9a9a;
  font-size: 13px;
  padding: 2px 4px;
}
.ann-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 20px 16px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: auto;
}
.ann-panel {
  max-width: 520px;
  margin: 12vh auto 24px;
  background: linear-gradient(180deg, #fffef8 0%, #ffffff 42%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.ann-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f6f1de;
  background: rgba(255, 249, 230, 0.65);
}
.ann-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #4f3b00;
  letter-spacing: 0.02em;
}
.ann-panel-close {
  width: auto !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
}
.ann-panel-body {
  padding: 14px 16px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: #2b2b2b;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(60vh, 420px);
  overflow: auto;
}
.sec-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 2px 10px;
}
.sec-title > div:first-child {
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: .2px;
}
.func-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f6f1de;
}
.func-item:last-child { border-bottom: none; }
.func-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.func-item-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f6f1de;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.func-item-icon-fallback {
  width: 20px;
  height: 20px;
  color: var(--primary-strong);
  flex: 0 0 auto;
}

/* 素材页：标签与「一键复制」分行，按钮与黄底标签区分 */
.mat-label-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3c9;
  color: #7a5a00;
  font-size: 14px;
  font-weight: 700;
}
.mat-copy-row {
  margin: 6px 0 10px;
}
.btn-copy-mat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #2563eb;
  background: #eff6ff;
  color: #1d40af;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}
.btn-copy-mat:active {
  background: #dbeafe;
}

/* 素材正文内图片旁提示（仅前端插入，不参与一键复制） */
.mat-img-save-hint {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 3px 0 6px;
  padding: 0 2px;
  text-align: center;
  font-weight: 400;
  user-select: none;
  -webkit-user-select: none;
}

/* 我的页：与首页卡片、主色统一 */
.my-profile-head {
  background: linear-gradient(135deg, #fffef8 0%, #fff9e8 100%);
}
.my-profile-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}
.my-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.my-profile-phone {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b2b;
}
.wallet-strip {
  background: linear-gradient(180deg, #fffef6 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.wallet-strip::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 100px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245, 181, 0, 0.12);
  pointer-events: none;
}
.wallet-strip-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #4f3b00;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.wallet-strip-body {
  position: relative;
  z-index: 1;
  text-align: center;
}
.wallet-strip-label {
  font-size: 12px;
  color: var(--muted);
}
.wallet-strip-balance {
  font-size: 28px;
  font-weight: 800;
  color: #2b2b2b;
  margin-top: 4px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.wallet-strip-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.wallet-strip-actions a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #4f3b00;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff3c9;
  border: 1px solid var(--border);
}
.wallet-strip-actions a:active {
  opacity: 0.92;
}
.my-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.my-stats-cell {
  text-decoration: none;
  color: inherit;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.15s;
}
.my-stats-cell:active {
  background: #fff9e6;
}
.my-stats-num {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.2;
}
.my-stats-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* 钱包页 */
.wallet-page-hero {
  background: linear-gradient(180deg, #fffef6 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.wallet-page-hero::before {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 120px;
  height: 96px;
  border-radius: 50%;
  background: rgba(245, 181, 0, 0.1);
  pointer-events: none;
}
.wallet-page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.wallet-page-hero-title {
  font-size: 14px;
  font-weight: 700;
  color: #4f3b00;
  margin-bottom: 6px;
}
.wallet-page-balance-label {
  font-size: 12px;
  color: var(--muted);
}
.wallet-page-balance {
  font-size: 32px;
  font-weight: 800;
  color: #2b2b2b;
  margin-top: 4px;
  line-height: 1.1;
}
.wallet-page-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.wallet-page-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #4f3b00;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff3c9;
  border: 1px solid var(--border);
}
.wallet-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.wallet-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2f2f2f;
}
.wallet-sec-bar {
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.wallet-ym-select {
  width: auto;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 13px;
}
.ledger-list {
  margin: 0 -2px;
}
.ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #f6f1de;
}
.ledger-item:last-child {
  border-bottom: none;
}
.ledger-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  word-break: break-word;
}
.ledger-item-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}
.ledger-item-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.ledger-delta-pos {
  font-size: 16px;
  font-weight: 800;
  color: var(--ok);
  flex-shrink: 0;
  white-space: nowrap;
}
.ledger-delta-neg {
  font-size: 16px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
  white-space: nowrap;
}
.wallet-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.45;
}
.invite-hero {
  background: linear-gradient(135deg, #fff8df 0%, #fff2c4 100%);
}
.invite-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #5a3f00;
}
.invite-hero-sub {
  margin-top: 4px;
  color: #7c5a00;
  font-size: 13px;
}
.invite-hero-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.invite-hero-stats div {
  background: rgba(255,255,255,.7);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.invite-hero-stats span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #b45309;
}
.invite-hero-stats em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: #7c5a00;
}
.invite-link-box {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.invite-link-box .input {
  flex: 1;
  min-width: 0;
}
.invite-qr-wrap {
  margin-top: 12px;
  text-align: center;
}
.invite-qr-wrap img {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 1px solid #f4df9a;
  background: #fff;
  padding: 6px;
}
.invite-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.invite-rule-item {
  border: 1px solid #f3e4b4;
  background: #fffdf5;
  border-radius: 10px;
  padding: 10px;
}
.invite-rule-item strong {
  display: block;
  font-size: 14px;
}
.invite-rule-item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
.invite-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.invite-list-item:last-child {
  border-bottom: none;
}
.invite-screen {
  min-height: 100vh;
  background: #f6f6f4;
  padding-bottom: 12px;
}
.invite-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}
.invite-nav-btn {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1f2937;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.invite-nav-spacer {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.invite-top-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}
.invite-main-card,.invite-link-card,.invite-desc-card,.invite-summary-card,.invite-list-card {
  margin: 8px 10px 0;
  border: 1px solid #ebddb7;
  border-radius: 14px;
  background: #fff;
}
.invite-main-card { padding: 8px 8px 8px; }
.invite-banner-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #efdfba;
  background: #fff9e7;
}
.invite-banner-image {
  width: 100%;
  display: block;
  min-height: 170px;
  object-fit: cover;
}
.invite-banner {
  border-radius: 14px;
  padding: 14px;
  min-height: 190px;
  background: radial-gradient(circle at 75% 38%, #ffe08a 0%, #ffd36b 22%, #fff2c9 54%, #fff6df 100%);
  display: flex;
  justify-content: space-between;
}
.invite-banner-title {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  color: #3d2805;
}
.invite-banner-title span {
  color: #ff9624;
  font-size: 52px;
}
.invite-banner-tip {
  margin-top: 10px;
  display: inline-block;
  font-size: 14px;
  color: #5c461f;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 6px 12px;
}
.invite-banner-art {
  width: 158px;
  height: 158px;
  border-radius: 26px;
  background: linear-gradient(145deg,#ffd778,#f6ad2f);
  align-self: flex-end;
  position: relative;
  box-shadow: 0 12px 26px rgba(243,164,37,.35);
}
.invite-banner-art::before,.invite-banner-art::after{
  content:"";
  position:absolute;
  border-radius:50%;
}
.invite-banner-art::before{width:40px;height:40px;right:-8px;top:-8px;background:#ffe9b2;}
.invite-banner-art::after{width:52px;height:52px;left:-12px;bottom:-10px;background:#ffd57a;}
.invite-block-title {
  margin: 10px 0 8px;
  text-align: center;
  color: #8a6200;
  font-size: 18px;
  font-weight: 800;
}
.invite-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.invite-rule-item {
  border: 1px solid #efdfba;
  border-radius: 12px;
  padding: 8px 7px;
  min-height: 100px;
  background: linear-gradient(180deg,#fffefb,#fff8e9);
}
.invite-rule-item i {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd66f;
  color: #7c5200;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}
.invite-rule-item p {
  margin: 6px 0 5px;
  font-size: 10px;
  color: #484848;
  line-height: 1.25;
}
.invite-rule-item strong {
  font-size: 14px;
  color: #ff8b1e;
}
.invite-now-btn,.invite-copy-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #ddb65e;
  border-radius: 999px;
  background: linear-gradient(180deg,#ffe48a,#f9c84d);
  color: #5f4200;
  font-size: 14px;
  font-weight: 700;
  height: 39px;
}
.invite-link-card {
  padding: 10px 10px;
  display: grid;
  grid-template-columns: 44% 56%;
}
.invite-qrcode-col {
  border-right: 1px solid #ece2ca;
  padding-right: 10px;
  text-align: center;
}
.invite-qrcode-col img {
  margin-top: 8px;
  width: 98px;
  height: 98px;
  border: 1px solid #e7e1d0;
  border-radius: 8px;
  padding: 4px;
}
.invite-link-col { padding-left: 10px; }
.invite-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #353535;
}
.invite-link-input {
  margin-top: 8px;
  width: 100%;
  height: 34px;
  border: 1px solid #e7dfcc;
  border-radius: 9px;
  padding: 0 10px;
  color: #666;
  background: #faf9f6;
}
.invite-mini-desc {
  margin-top: 8px;
  font-size: 10px;
  color: #8b8b8b;
  text-align: center;
}
.invite-desc-card { padding: 12px; }
.invite-desc-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}
.invite-desc-list div {
  margin-top: 6px;
  font-size: 12px;
  color: #5e5e5e;
  line-height: 1.5;
}
.invite-stats-card {
  margin: 8px 10px 0;
  border: 1px solid #ebddb7;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 0 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.invite-stats-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  border-right: 1px solid #efe4cf;
  padding: 0 4px;
  min-width: 0;
}
.invite-stats-cell:last-child {
  border-right: none;
}
.invite-stats-cell em {
  font-style: normal;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.2;
}
.invite-stats-cell span {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.invite-stats-cell small {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-left: 1px;
}
.invite-stats-arrow {
  margin-left: 4px;
  font-size: 14px;
  font-style: normal;
  color: #9ca3af;
  font-weight: 600;
  line-height: 1;
}
.invite-footer-trust {
  margin: 14px 12px 0;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}
.invite-list-card {
  padding: 8px 12px;
  min-height: 96px;
}
@media (max-width: 420px) {
  .invite-link-card { grid-template-columns: 42% 58%; }
  .invite-rule-grid { gap: 6px; }
  .invite-rule-item { padding: 7px 5px; min-height: 96px; }
  .invite-rule-item strong { font-size: 13px; }
  .invite-now-btn,.invite-copy-btn { font-size: 14px; height: 38px; }
  .invite-list-card { margin: 8px 10px 0; }
  .invite-stats-cell span { font-size: 18px; }
}

.wx-bind-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 4px;
}
.wx-bind-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}
.wx-bind-step-no {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.task-rules-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  border: 1px solid #fde68a;
}
.task-rules-head {
  font-weight: 700;
  font-size: 15px;
  color: #92400e;
  margin-bottom: 10px;
}
.task-rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #78350f;
}
.task-rules-list li { margin-bottom: 6px; }

.h5-claim-rules-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.45);
  padding: 20px;
  align-items: center;
  justify-content: center;
}
.h5-claim-rules-overlay.on { display: flex; }
.h5-claim-rules-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.h5-claim-rules-title {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 12px;
}
.h5-claim-rules-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
  max-height: 40vh;
  overflow: auto;
}
.h5-claim-rules-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 14px;
  cursor: pointer;
}
.h5-claim-rules-actions {
  display: flex;
  gap: 10px;
}
.h5-claim-rules-actions .btn { flex: 1; margin: 0; }

.task-claim-hint {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}
.task-rules-timeline {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}
.task-active-head {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}
.btn-abandon-inline {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fff !important;
}
.mat-content-card {
  margin-bottom: 12px;
}
.quick-nav-icon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin: 0 auto 5px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ea580c;
}
@media (max-width: 380px) {
  .task-detail-stat-num {
    font-size: 17px;
  }
  .task-detail-stat-label {
    font-size: 11px;
  }
  .task-detail-price {
    font-size: 17px;
  }
  .h5-claim-rules-card {
    padding: 16px 14px;
  }
}

/* 长文本自适应：列表标题 / 页面标题 / 单行省略 */
.h5-text-break {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.h5-text-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.h5-text-ellipsis {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h5-list-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.h5-list-row-main {
  flex: 1;
  min-width: 0;
}
.h5-list-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.h5-page-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.my-task-card {
  margin-bottom: 10px;
}
.my-task-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.my-task-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.my-task-main {
  flex: 1;
  min-width: 0;
}
.my-task-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.my-task-meta,
.my-task-extra {
  font-size: 12px;
  margin-top: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.my-task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
}
.my-task-action-link {
  color: #7a5a00;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.my-task-action-wait {
  font-size: 13px;
}
.my-task-actions .btn-abandon-claim {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  color: #b91c1c;
  margin: 0;
}

.my-extra-card {
  margin-bottom: 10px;
}
.my-extra-cover {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff4e6;
}
.my-extra-line {
  font-size: 13px;
  margin-top: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.my-extra-line2 {
  font-size: 12px;
  margin-top: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.material-task-title {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #f6e7b3;
  border-radius: 10px;
  background: #fffdf6;
  word-break: break-word;
  overflow-wrap: anywhere;
}
