/* ========== 客户前台设计还原（依据设计图 1:1，配合 main.css 使用） ========== */
:root {
  --fe-orange: #ff6a0f;
  --fe-orange-dark: #f05a00;
  --fe-orange-light: #fff4ec;
  --fe-ink: #1a1b1e;
  --fe-gray-2: #7a7f87;
  --fe-gray-3: #9aa0a8;
  --fe-gray-4: #c0c4cc;
  --fe-line: #f0f1f3;
  --fe-input-bg: #f6f7f9;
  --fe-dark: #1b1c21;
  --fe-yellow-bg: #fdf6e7;
  --fe-yellow-text: #8a6d1d;
  --fe-green: #22a855;
  --fe-red: #e5484d;
}

/* ---------- 全局微调（仅前台用户页） ---------- */
body[data-role="user"] { background: #f5f6f8; color: var(--fe-ink); }
body[data-role="user"] .page { max-width: 480px; }
body[data-role="user"] .topbar-inner { max-width: 480px; }
body[data-role="user"] a { color: var(--fe-orange); }

/* 前台主按钮改橙色 */
body[data-role="user"] .btn { background: var(--fe-orange); border-radius: 10px; }
body[data-role="user"] .btn:hover { background: var(--fe-orange-dark); }
body[data-role="user"] .btn-outline { background: #fff; color: var(--fe-ink); border: 1px solid #e3e4e6; }
body[data-role="user"] .btn-outline:hover { background: #f9fafb; }

.fe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; font-family: var(--font); -webkit-tap-highlight-color: transparent; }
.fe-btn-primary { background: var(--fe-orange); color: #fff; border-radius: 10px; font-size: 16px; font-weight: 600; }
.fe-btn-primary:hover { background: var(--fe-orange-dark); }
.fe-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.fe-btn-block { display: flex; width: 100%; height: 48px; }
.fe-btn-pill { border-radius: 999px; padding: 8px 24px; font-size: 14px; font-weight: 600; }
.fe-btn-sm { height: auto; padding: 8px 20px; font-size: 14px; border-radius: 999px; }
.fe-btn-outline-o { background: #fff; color: var(--fe-orange); border: 1px solid var(--fe-orange); border-radius: 999px; padding: 7px 20px; font-size: 14px; font-weight: 500; }

/* 底部导航：橙色激活 */
body[data-role="user"] .tabbar a.active { color: var(--fe-orange); }
body[data-role="user"] .tabbar a { color: #9aa0a8; }

/* ========== 登录 / 注册 ========== */
.fe-auth .auth-wrap { max-width: 480px; margin: 0 auto; padding: 52px 20px 32px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-logo-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--fe-orange); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.auth-logo-name { font-size: 17px; font-weight: 700; color: var(--fe-ink); }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin: 26px 0 22px; color: var(--fe-ink); }
.auth-card { background: #fff; border-radius: 16px; padding: 22px 18px; box-shadow: 0 2px 14px rgba(0,0,0,.04); }
.auth-field { display: flex; align-items: center; border: 1px solid #eceef1; border-radius: 10px; height: 50px; padding: 0 14px; margin-bottom: 14px; background: #fff; }
.auth-field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; font-family: var(--font); color: var(--fe-ink); height: 100%; }
.auth-field input::placeholder { color: #b6bac2; }
.auth-field:focus-within { border-color: var(--fe-orange); }
.auth-prefix { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--fe-ink); padding-right: 12px; margin-right: 12px; border-right: 1px solid #eceef1; flex-shrink: 0; }
.auth-eye { color: #b6bac2; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.auth-invite { background: var(--fe-input-bg); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.auth-invite-label { font-size: 14px; font-weight: 700; color: var(--fe-ink); margin-bottom: 10px; }
.auth-invite .auth-field { background: #fff; margin-bottom: 10px; }
.auth-lock { color: #b6bac2; display: inline-flex; margin-right: 10px; flex-shrink: 0; }
.auth-invite-hint { font-size: 12px; color: var(--fe-gray-3); }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--fe-gray-2); cursor: pointer; margin: 4px 0 18px; }
.auth-agree input { display: none; }
.auth-agree-box { width: 17px; height: 17px; border: 1px solid #d3d6db; border-radius: 4px; flex-shrink: 0; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.auth-agree input:checked + .auth-agree-box { background: var(--fe-orange); border-color: var(--fe-orange); }
.auth-agree input:checked + .auth-agree-box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.auth-agree a { color: var(--fe-orange); }
.auth-switch { text-align: center; font-size: 14px; color: var(--fe-gray-3); margin: 18px 0 0; }
.auth-switch a { color: var(--fe-orange); }
/* 登录/注册主按钮：胶囊形（依设计图） */
.fe-auth .fe-btn-primary { border-radius: 999px; height: 50px; }

/* ========== 通用顶部导航条（详情/提现等子页） ========== */
.fe-nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--fe-line); }
.fe-nav-inner { max-width: 480px; margin: 0 auto; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.fe-nav-back { width: 30px; color: var(--fe-ink); display: inline-flex; }
.fe-nav-title { font-size: 17px; font-weight: 600; color: var(--fe-ink); }
.fe-nav-side { width: 30px; display: inline-flex; justify-content: flex-end; color: var(--fe-ink); }

/* ========== 任务大厅 ========== */
.hall-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 14px; }
.hall-head h1 { font-size: 24px; font-weight: 800; color: var(--fe-ink); }
.hall-head-ico { color: var(--fe-ink); display: inline-flex; cursor: pointer; }
.hall-search { position: relative; margin-bottom: 14px; }
.hall-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fe-gray-3); pointer-events: none; }
.hall-search input { width: 100%; height: 40px; border: none; outline: none; background: #f0f1f4; border-radius: 10px; padding: 0 14px 0 38px; font-size: 14px; font-family: var(--font); color: var(--fe-ink); }
.hall-search input::placeholder { color: var(--fe-gray-3); }
.hall-chips { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; scrollbar-width: none; }
.hall-chips::-webkit-scrollbar { display: none; }
.hall-chips .chip { flex-shrink: 0; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid #e6e7ea; color: #4b5563; font-size: 13px; cursor: pointer; }
.hall-chips .chip.active { background: var(--fe-orange); border-color: var(--fe-orange); color: #fff; }

.ftask { display: block; background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); color: var(--fe-ink); }
.ftask-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ftask-title { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; }
.ftask-remain { font-size: 13px; font-weight: 600; color: var(--fe-orange); flex-shrink: 0; }
.ftask-meta { font-size: 12px; color: var(--fe-gray-3); margin-top: 6px; }
.ftask-bottom { display: flex; align-items: center; margin-top: 14px; gap: 10px; }
.ftask-reward { font-size: 21px; font-weight: 800; color: var(--fe-orange); }
.ftask-reward small { font-size: 12px; font-weight: 400; color: var(--fe-gray-3); }
.ftask-limit { font-size: 12px; color: var(--fe-gray-2); border: 1px solid #e6e7ea; border-radius: 6px; padding: 3px 8px; }
.ftask-claim { margin-left: auto; }
.hall-more { text-align: center; margin: 8px 0 24px; }

/* ========== 任务详情 ========== */
.fd-title { font-size: 22px; font-weight: 800; color: var(--fe-ink); margin: 8px 0 0; }
.fd-stats { display: flex; margin: 18px 0; }
.fd-stat { flex: 1; text-align: center; }
.fd-stat + .fd-stat { border-left: 1px solid #eceef1; }
.fd-stat-label { font-size: 12px; color: var(--fe-gray-3); margin-bottom: 4px; }
.fd-stat-num { font-size: 21px; font-weight: 800; color: var(--fe-ink); }
.fd-stat-num small { font-size: 13px; font-weight: 400; color: var(--fe-gray-2); }
.fd-stat-num.orange { color: var(--fe-orange); font-size: 26px; }
.fd-info { background: #f7f8fa; border-radius: 14px; padding: 4px 16px; margin-bottom: 14px; }
.fd-info-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; }
.fd-info-row + .fd-info-row { border-top: 1px solid #eceef1; }
.fd-info-label { font-size: 13px; color: var(--fe-gray-3); }
.fd-info-val { font-size: 14px; font-weight: 500; color: var(--fe-ink); display: inline-flex; align-items: center; gap: 8px; }
.fd-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #7cb3ff, #3b82f6); display: inline-flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.fd-card { background: #fff; border-radius: 14px; padding: 4px 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.fd-sec { padding: 14px 0; }
.fd-sec + .fd-sec { border-top: 1px solid var(--fe-line); }
.fd-sec-title { display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--fe-ink); margin-bottom: 8px; }
.fd-sec-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--fe-orange); margin-right: 8px; }
.fd-sec-title .fd-sec-ico { margin-left: auto; color: var(--fe-gray-2); display: inline-flex; }
.fd-sec-text { font-size: 14px; color: #55595f; line-height: 1.7; word-break: break-word; }
.fd-tip { display: flex; align-items: flex-start; gap: 8px; background: var(--fe-yellow-bg); color: var(--fe-yellow-text); border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.fd-tip svg { flex-shrink: 0; margin-top: 1px; }
.fd-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff; border-top: 1px solid var(--fe-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.fd-footer-inner { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.fd-footer-price { font-size: 20px; font-weight: 800; color: var(--fe-orange); white-space: nowrap; }
.fd-footer-price small { font-size: 12px; font-weight: 400; color: var(--fe-gray-3); }
.fd-footer .fe-btn-primary { flex: 1; height: 48px; border-radius: 12px; }
body.fd-has-footer { padding-bottom: 84px; }

/* 凭证上传（详情页与我的任务共用） */
.proof-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.proof-slot { width: 72px; height: 72px; border: 1px dashed #d3d6db; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--fe-gray-4); font-size: 12px; cursor: pointer; background: #fff; }
.proof-thumb { position: relative; width: 72px; height: 72px; }
.proof-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--fe-line); }
.proof-thumb .proof-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; }
.proof-text-wrap { position: relative; margin-top: 12px; }
.proof-text-wrap textarea { width: 100%; border: none; outline: none; resize: none; background: var(--fe-input-bg); border-radius: 10px; padding: 12px; font-size: 13px; font-family: var(--font); min-height: 76px; color: var(--fe-ink); }
.proof-text-wrap textarea::placeholder { color: var(--fe-gray-4); }
.proof-count { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--fe-gray-4); }
.reject-hint { background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-top: 10px; }

/* ========== 步骤化任务改造 ========== */
/* 大厅标签 */
.ftask-desc { font-size: 12px; color: #8a909a; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftask-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ftag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #f3f4f6; color: #7a7f87; }
.ftag.o { background: #fff2e7; color: #ff6a0f; border: 1px solid #ffd9bd; }
.ftag.y { background: #fdf6e7; color: #b48a1d; }
.ftag.g { background: #e8f8f0; color: #22a855; }

/* 详情页头部标签 */
.fd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 任务步骤卡 */
.fd-steps { margin-top: 12px; }
.fd-step { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.fd-step-hd { display: flex; align-items: center; gap: 8px; }
.fd-step-no { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ff8a3d, #ff5e0e); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fd-step-tit { font-size: 14px; font-weight: 700; color: #1a1b1e; flex: 1; min-width: 0; }
.fd-step-type { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #f3f4f6; color: #7a7f87; flex-shrink: 0; }
.fd-step-type.collect { background: #e8f8f0; color: #22a855; font-weight: 600; }
.fd-step-desc { font-size: 13px; color: #55595f; line-height: 1.7; margin-top: 8px; word-break: break-word; }
.fd-step-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fd-step-imgs img { width: calc((100% - 16px) / 3); aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid #f0f1f3; cursor: zoom-in; }
.fd-step-qr { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid #f0f1f3; margin-top: 10px; display: block; cursor: zoom-in; }
.fd-step-link { font-size: 12px; color: #57a4f5; word-break: break-all; margin-top: 8px; line-height: 1.6; }
.fd-step-btns { display: flex; gap: 10px; margin-top: 12px; }
.fd-step-btns .b { flex: 1; height: 42px; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border: none; font-family: inherit; }
.fd-step-btns .b.orange { background: linear-gradient(135deg, #ff8a3d, #ff5e0e); color: #fff; }
.fd-step-btns .b.line { background: #fff; color: #1a1b1e; border: 1px solid #e3e4e6; }
.fd-step-btns .b svg { width: 15px; height: 15px; }
.fd-copydata { display: flex; align-items: center; gap: 10px; background: #f6f7f9; border-radius: 10px; padding: 12px; margin-top: 10px; }
.fd-copydata .v { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #1a1b1e; letter-spacing: 1px; word-break: break-all; }
.fd-copydata .c { flex-shrink: 0; background: linear-gradient(135deg, #ff8a3d, #ff5e0e); color: #fff; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.fd-lockbox { background: #f7f8fa; border: 1px dashed #e3e4e6; border-radius: 10px; padding: 12px; margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa0a8; }
.fd-lockbox svg { flex-shrink: 0; }

/* 收集步骤填写控件 */
.fd-up-slot { width: 84px; height: 84px; border: 1px dashed #d6d8dd; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #b4b8c0; font-size: 11px; cursor: pointer; background: #fff; margin-top: 10px; }
.fd-up-slot svg { width: 22px; height: 22px; }
.fd-up-thumb { position: relative; width: 84px; height: 84px; margin-top: 10px; }
.fd-up-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid #f0f1f3; }
.fd-up-thumb .x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; }
.fd-sample { margin-top: 10px; }
/* 上传区与参考示例左右并排 */
.fd-uprow { display: flex; gap: 16px; align-items: flex-end; margin-top: 10px; }
.fd-uprow .fd-up-slot, .fd-uprow .fd-up-thumb { margin-top: 0; }
.fd-uprow .fd-sample { margin-top: 0; }
.fd-sample .l { font-size: 11px; color: #9aa0a8; margin-bottom: 6px; }
.fd-sample img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid #f0f1f3; cursor: zoom-in; }
.fd-info-input { position: relative; margin-top: 10px; }
.fd-info-input input { width: 100%; height: 44px; border: 1px solid #e7e8eb; border-radius: 10px; background: #f7f8fa; padding: 0 52px 0 12px; font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; }
.fd-info-input input:focus { background: #fff; border-color: #ff8a3d; }
.fd-info-input .cnt { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #b4b8c0; }

/* 倒计时条与步骤进度点 */
.fd-countbar { display: flex; align-items: center; gap: 8px; background: #fdf6e7; border: 1px solid #f5e3b3; color: #8a6d1d; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.fd-countbar svg { flex-shrink: 0; }
.fd-countbar b { font-size: 15px; font-variant-numeric: tabular-nums; }
.fd-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fd-dot { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: #7a7f87; }
.fd-dot.done { background: #e8f8f0; color: #22a855; }
.fd-dot.cur { background: linear-gradient(135deg, #ff8a3d, #ff5e0e); color: #fff; }
.fd-dot svg { width: 11px; height: 11px; }

/* 我的任务：倒计时与凭证进度 */
.mcard-countdown { display: flex; align-items: center; gap: 6px; background: #fdf6e7; border-radius: 10px; padding: 8px 10px; margin-top: 10px; font-size: 12px; color: #8a6d1d; }
.mcard-countdown svg { flex-shrink: 0; }
.mcard-countdown b { font-size: 14px; font-variant-numeric: tabular-nums; color: #c0392b; }
.mcard-countdown .cd-note { color: #b4a06a; }
.mcard-progress { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mp-bar { flex: 1; height: 6px; border-radius: 3px; background: #f0f1f3; overflow: hidden; }
.mp-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(135deg, #ff8a3d, #ff5e0e); }
.mp-txt { font-size: 11px; color: #9aa0a8; flex-shrink: 0; }
.mp-draft { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #fff2e7; color: #ff6a0f; flex-shrink: 0; }

/* ========== 我的任务 ========== */
.mtabs { display: flex; padding: 12px 2px 10px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs a { position: relative; flex-shrink: 0; font-size: 15px; color: var(--fe-gray-2); padding: 4px 0; cursor: pointer; }
.mtabs a.active { color: var(--fe-orange); font-weight: 600; }
.mtabs a.active::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -4px; width: 20px; height: 3px; border-radius: 2px; background: var(--fe-orange); }
.mcard { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.mcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mcard-title { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.mcard-tag { flex-shrink: 0; font-size: 11px; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.mcard-tag.st0 { color: var(--fe-orange); border: 1px solid var(--fe-orange); background: #fff; }
.mcard-tag.st1 { background: #f5b301; color: #fff; }
.mcard-tag.st2 { background: #22c55e; color: #fff; }
.mcard-tag.st3 { background: #ef4444; color: #fff; }
.mcard-tag.st4 { background: #e5e7eb; color: var(--fe-gray-2); }
.mcard-meta { font-size: 12px; color: var(--fe-gray-3); margin-top: 6px; }
.mcard-reward { font-size: 14px; color: var(--fe-ink); margin-top: 8px; }
.mcard-reward b { color: var(--fe-orange); font-weight: 700; }
.mcard-note { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 12px; }
.mcard-note.gray { color: var(--fe-gray-3); }
.mcard-note.green { color: var(--fe-green); }
.mcard-note.red { color: var(--fe-red); }
.mcard-note .sep { color: #e3e4e6; }
.mcard-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ========== 我的收益 ========== */
.fe-earn .earn-hero { background: var(--fe-dark); color: #fff; padding: 18px 20px 30px; border-radius: 0 0 20px 20px; }
.earn-hero-title { text-align: center; font-size: 16px; font-weight: 500; margin-bottom: 20px; }
.earn-balance { text-align: center; font-weight: 800; }
.earn-balance .cur { font-size: 26px; margin-right: 4px; }
.earn-balance .num { font-size: 44px; letter-spacing: 1px; }
.earn-total { text-align: center; font-size: 13px; color: rgba(255,255,255,.55); margin-top: 6px; }
.earn-btns { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }
.earn-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 32px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.earn-btn-primary { background: var(--fe-orange); color: #fff; }
.earn-btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.earn-body { padding-top: 14px; }
.flow-card { background: #fff; border-radius: 16px; padding: 4px 16px 6px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.flow-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.flow-head-title { font-size: 16px; font-weight: 700; color: var(--fe-ink); }
.flow-filter { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fe-gray-2); }
.flow-filter select { position: absolute; inset: 0; opacity: 0; width: 100%; }
.flow-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.flow-row:last-child { border-bottom: none; }
.flow-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-ico.orange { background: #fff1e5; color: #ff7a1a; }
.flow-ico.gray { background: #f3f4f6; color: #6b7280; }
.flow-ico.red { background: #feecec; color: #e5484d; }
.flow-ico.green { background: #e5f8ee; color: #22a855; }
.flow-main { flex: 1; min-width: 0; }
.flow-name { font-size: 14px; font-weight: 600; color: var(--fe-ink); }
.flow-sub { font-size: 12px; color: var(--fe-gray-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-amt { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.flow-amt.plus { color: var(--fe-green); }
.flow-amt.minus { color: var(--fe-ink); }
.flow-foot { text-align: center; font-size: 12px; color: var(--fe-gray-4); padding: 14px 0 12px; }
.flow-more { text-align: center; padding: 4px 0 12px; }

/* ========== 申请提现 ========== */
.wd-bal { background: #f7f8fa; border-radius: 14px; padding: 8px 16px; }
.wd-bal-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.wd-bal-row + .wd-bal-row { border-top: 1px solid #eceef1; }
.wd-bal-label { font-size: 14px; color: #55595f; }
.wd-bal-num { font-size: 17px; font-weight: 700; color: var(--fe-ink); }
.wd-bal-min { font-size: 15px; font-weight: 500; color: #55595f; }
.wd-card { background: #fff; border-radius: 14px; padding: 16px; margin-top: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.wd-card-title { font-size: 15px; font-weight: 700; color: var(--fe-ink); margin-bottom: 12px; }
.wd-amount-box { display: flex; align-items: center; background: var(--fe-input-bg); border-radius: 10px; height: 64px; padding: 0 16px; }
.wd-amount-box .cur { font-size: 18px; font-weight: 600; color: var(--fe-ink); margin-right: 10px; }
.wd-amount-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 28px; font-weight: 700; font-family: var(--font); color: var(--fe-ink); }
.wd-all { text-align: right; font-size: 13px; color: var(--fe-orange); padding: 8px 0 4px; cursor: pointer; }
.wd-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #f3f4f6; font-size: 13px; color: var(--fe-gray-2); }
.wd-row.arrive { font-size: 14px; color: var(--fe-ink); }
.wd-row.arrive b { font-size: 20px; font-weight: 800; }
.wd-acc-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-size: 14px; }
.wd-acc-row + .wd-acc-row { border-top: 1px solid #f3f4f6; }
.wd-acc-k { color: #55595f; }
.wd-acc-v { color: var(--fe-ink); display: inline-flex; align-items: center; gap: 8px; }
.wd-verified { font-size: 11px; color: var(--fe-gray-2); background: #f3f4f6; border-radius: 4px; padding: 2px 8px; }
.wd-change { color: var(--fe-gray-3); font-size: 13px; }
.wd-tip { display: flex; align-items: flex-start; gap: 8px; background: var(--fe-yellow-bg); color: var(--fe-yellow-text); border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-top: 12px; }
.wd-tip svg { flex-shrink: 0; margin-top: 1px; }
.wd-daily { font-size: 13px; color: var(--fe-gray-3); margin: 12px 2px 0; }
.wd-records .wd-item { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.wd-records .wd-item:last-child { border-bottom: none; }
.wd-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff; border-top: 1px solid var(--fe-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.wd-footer-inner { max-width: 480px; margin: 0 auto; }
.wd-footer-tip { text-align: center; font-size: 12px; color: var(--fe-gray-3); margin-bottom: 8px; }
.wd-footer .fe-btn-primary { border-radius: 12px; }
body.wd-has-footer { padding-bottom: 96px; }

/* ========== 个人中心 ========== */
.prof-head { display: flex; align-items: center; padding: 24px 2px 18px; }
.prof-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ffd3a8, #ff8a3d); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.prof-id { margin-left: 14px; flex: 1; min-width: 0; }
.prof-name { font-size: 18px; font-weight: 700; color: var(--fe-ink); }
.prof-phone { font-size: 13px; color: var(--fe-gray-3); margin-top: 2px; }
.prof-gear { color: #6b7280; display: inline-flex; }
.prof-stats { display: flex; background: #f6f7f9; border-radius: 14px; padding: 16px 0; margin-bottom: 14px; }
.prof-stat { flex: 1; text-align: center; }
.prof-stat + .prof-stat { border-left: 1px solid #e8eaed; }
.prof-stat .l { font-size: 12px; color: var(--fe-gray-3); margin-bottom: 4px; }
.prof-stat .n { font-size: 18px; font-weight: 800; color: var(--fe-ink); }
.prof-stat .n small { font-size: 13px; font-weight: 400; color: var(--fe-gray-2); }
.prof-group { background: #fff; border-radius: 14px; padding: 4px 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.prof-group-title { font-size: 15px; font-weight: 700; color: var(--fe-ink); padding: 12px 0 4px; }
.prof-row { display: flex; align-items: center; padding: 13px 0; font-size: 14px; color: var(--fe-ink); cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.prof-row:last-child { border-bottom: none; }
.prof-row-ico { color: #55595f; display: inline-flex; margin-right: 12px; flex-shrink: 0; }
.prof-row-val { margin-left: auto; font-size: 13px; color: var(--fe-gray-3); display: inline-flex; align-items: center; gap: 6px; }
.prof-row-val.green { color: var(--fe-green); }
.prof-row-val.orange { color: var(--fe-orange); font-weight: 700; font-size: 15px; }
.prof-row-arrow { color: #c9cdd4; margin-left: 8px; font-size: 16px; }
.prof-logout { width: 100%; background: #fff; border: none; border-radius: 14px; padding: 15px; font-size: 16px; font-family: var(--font); color: var(--fe-red); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.03); margin-bottom: 16px; }

/* 弹层内容微调 */
.fe-modal-text { font-size: 14px; color: #55595f; line-height: 1.8; }
.fe-modal .form-item { margin-bottom: 14px; }

/* ---------- 全局 a 橙色规则的局部修正（避免覆盖专用配色） ---------- */
body[data-role="user"] .earn-btn-primary,
body[data-role="user"] .earn-btn-ghost { color: #fff; }
body[data-role="user"] .fe-nav-back { color: var(--fe-ink); }
body[data-role="user"] .mtabs a { color: var(--fe-gray-2); }
body[data-role="user"] .mtabs a.active { color: var(--fe-orange); }
body[data-role="user"] .wd-change { color: var(--fe-gray-3); }
.fe-earn .earn-hero { max-width: 480px; margin: 0 auto; }
.mcard[data-click="1"] { cursor: pointer; }

.ftag.cat { background: #eef2ff; color: #4f5bd5; border: 1px solid #dde3fb; font-weight: 600; }

/* ---------- 做单人首页：轮播图 + 滚动公告 ---------- */
.shop-carousel { position: relative; margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: #f3f4f6; }
.shop-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop-slides::-webkit-scrollbar { display: none; }
.shop-slide { flex: 0 0 100%; scroll-snap-align: start; }
.shop-slide img { width: 100%; height: 118px; object-fit: cover; display: block; }
.shop-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 5px; }
.shop-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.65); transition: all .2s; }
.shop-dots i.on { width: 14px; background: #fff; }
.shop-notice { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: 0 0 10px; border-radius: 10px; background: #fff7ed; color: #b45309; font-size: 13px; overflow: hidden; }
.shop-notice-ico { display: flex; flex-shrink: 0; }
.shop-notice-track { flex: 1; overflow: hidden; }
.shop-notice-run { display: inline-flex; white-space: nowrap; animation: shop-marquee 20s linear infinite; }
.shop-notice-run span { padding-right: 60px; }
@keyframes shop-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
