/* ==================================================================
   任务大厅 V1.9.0 · 人才模式分类 → 任务列表 → 任务详情（按 3 张效果图 1:1）
   独立前缀 th- / thl- / td-，不改旧样式，方便回退。
   卡片圆角统一 8px；图标全部内置 SVG，离线可用。
   ================================================================== */
.th-page { min-height: 100vh; background: #f2f5fb; color: #2c3040; padding-bottom: 84px; }
.th-page img { display: block; }
.th-nav { height: 46px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; position: relative; box-sizing: border-box; }
.th-nav-t { position: absolute; left: 0; right: 0; text-align: center; font-size: 15px;
  font-weight: 700; pointer-events: none; }
.th-nav.light .th-nav-t { color: #2c3040; }
.th-nav.blue .th-nav-t { color: #fff; }
.th-cap { display: flex; align-items: center; border-radius: 16px; height: 30px; z-index: 1;
  box-sizing: border-box; }
.th-cap-l { gap: 4px; padding: 0 8px; }
.th-cap-r { gap: 6px; padding: 0 9px; }
.th-cap a, .th-cap span { display: flex; align-items: center; justify-content: center; }
.th-cap .th-sep { width: 1px; height: 15px; display: block; }
.th-nav.light .th-cap { background: rgba(255,255,255,.86); border: 1px solid #e6eaf3; color: #5a6176; }
.th-nav.light .th-sep { background: #d9deea; }
.th-nav.blue .th-cap { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.th-nav.blue .th-sep { background: rgba(255,255,255,.4); }
.th-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.th-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.th-loading { padding: 40px 14px; text-align: center; color: #9aa0b4; font-size: 12px; }
.th-empty { padding: 46px 14px; text-align: center; color: #9aa0b4; font-size: 12.5px; }
.th-empty b { display: block; font-size: 14px; color: #6a7084; margin-bottom: 6px; }

/* ---------------- 任务列表（thl-） ---------------- */
.thl-head { background: linear-gradient(180deg,#e8f0ff 0%,#f2f5fb 100%); padding-bottom: 4px; }
.thl-sec-t { font-size: 17px; font-weight: 800; padding: 12px 14px 10px; }
.thl-cats { display: flex; gap: 9px; overflow-x: auto; padding: 0 14px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.thl-cats::-webkit-scrollbar { display: none; }
.thl-cat { flex: none; padding: 11px 18px; border-radius: 22px; background: #fff; color: #5a6176;
  font-size: 13px; white-space: nowrap; box-shadow: 0 2px 8px rgba(31,45,92,.05); }
.thl-cat.on { background: linear-gradient(135deg,#5b8bff,#3d6bff); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(61,107,255,.28); }
.thl-sort { display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 2px 14px 10px; font-size: 12.5px; color: #b0b5c4; }
.thl-sort a { color: #9aa0b4; }
.thl-sort a.on { color: #3d6bff; font-weight: 700; }
.thl-sort i { width: 1px; height: 11px; background: #d9deea; }
.thl-list { padding: 0 12px; }
.thl-card { background: #fff; border-radius: 8px; padding: 13px; margin-bottom: 10px;
  box-shadow: 0 2px 9px rgba(31,45,92,.05); }
.thl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.th-tag { font-size: 10.5px; color: #3d6bff; background: #eaf0ff; padding: 3px 8px; border-radius: 5px; }
.th-tag.gray { color: #8a90a4; background: #f2f4f9; }
.th-tag.green { color: #22b573; background: #e8f8f0; }
.th-tag.orange { color: #ef9f2e; background: #fff5e3; }
.thl-title { font-size: 15.5px; font-weight: 800; line-height: 1.35; margin-bottom: 7px; }
.thl-desc { font-size: 12px; color: #7b8298; line-height: 1.65; margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 10.5px; color: #a8adbd; margin-bottom: 10px; }
.thl-meta em { font-style: normal; color: #ef9f2e; }
.thl-meta .thl-pub { color: #6a7084; }
.thl-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.thl-price { color: #f2595b; font-size: 21px; font-weight: 800; line-height: 1; }
.thl-price small { font-size: 13px; margin-right: 1px; }
.thl-btn { padding: 9px 20px; border-radius: 20px; border: 0; color: #fff; font-size: 13px;
  font-weight: 700; background: linear-gradient(110deg,#5b86ff,#3d6bff);
  box-shadow: 0 4px 12px rgba(61,107,255,.24); }
.thl-btn.done { background: #e6e9f2; color: #9aa0b4; box-shadow: none; }
.thl-more { text-align: center; font-size: 12px; color: #9aa0b4; padding: 14px 0 24px; }

/* ---------------- 任务详情（td-） ---------------- */
.td-hero { background: linear-gradient(135deg,#5b8bff 0%,#3d6bff 100%); padding-bottom: 62px; }
.td-hero-meta { display: flex; align-items: center; justify-content: space-between;
  padding: 4px 16px 0; font-size: 11.5px; color: rgba(255,255,255,.92); }
.td-hero-meta b { background: rgba(255,255,255,.22); border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.td-body { padding: 0 12px; margin-top: -52px; }
.td-main { background: #fff; border-radius: 8px; padding: 15px 14px 0; margin-bottom: 10px; }
.td-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.td-title { font-size: 19px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.td-price { color: #f2595b; font-size: 27px; font-weight: 800; line-height: 1.1; margin-bottom: 13px; }
.td-stats { display: flex; align-items: center; background: #f7f8fc; border-radius: 8px; padding: 11px 4px; }
.td-stats > div { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11.5px; color: #6a7084; border-right: 1px solid #e6eaf3; white-space: nowrap; }
.td-stats > div:last-child { border-right: 0; }
.td-stats b { color: #2c3040; font-size: 13px; }
.td-stats small { color: #a8adbd; font-size: 10px; }
/* V3.16.0：统计行第 4 格「举报」——与前三格等分，用警示红提示可点 */
.td-stats > .td-stat-rp { color: #d0555f; font-weight: 700; cursor: pointer; }
.td-stats > .td-stat-rp small { color: #d0555f; font-size: 11.5px; }
.td-stats > .td-stat-rp:active { background: #fdeef0; border-radius: 6px; }
.td-card { background: #fff; border-radius: 8px; padding: 14px 13px; margin-bottom: 10px; }
.td-sec-t { font-size: 14.5px; font-weight: 800; margin-bottom: 11px; }
.td-sec-t span { font-size: 10.5px; font-weight: 400; color: #3d6bff; background: #eaf0ff;
  border-radius: 10px; padding: 2px 8px; float: right; }
.td-content { background: #f7f8fc; border-radius: 8px; padding: 12px; font-size: 12.5px;
  color: #5a6176; line-height: 1.85; }
.td-content p { margin: 0 0 10px; }
.td-content p:last-child { margin-bottom: 0; }
/* 托管保障 */
.td-escrow { background: #ecfaf3; border: 1px solid #d6f1e3; border-radius: 8px; padding: 13px; position: relative; }
.td-escrow-t { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; margin-bottom: 11px; }
.td-escrow-badge { font-size: 10px; font-weight: 600; color: #fff; background: #22b573;
  border-radius: 10px; padding: 2px 8px; }
.td-escrow-box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 10px 11px; }
.td-escrow-lock { width: 32px; height: 32px; border-radius: 8px; background: #fff5e3;
  display: flex; align-items: center; justify-content: center; flex: none; }
.td-escrow-box b { display: block; font-size: 12px; color: #4a5064; font-weight: 600; }
.td-escrow-box small { display: block; font-size: 11px; color: #22b573; margin-top: 3px; }
.td-escrow-box small em { font-style: normal; font-size: 15px; font-weight: 800; }
.td-flow-rule { height: 3px; border-radius: 2px; margin: 0 0 13px;
  background: linear-gradient(90deg,#3d6bff 0%,#8b6bf5 35%,#22b573 68%,#f2595b 100%); }
/* 接单流程 6 步 */
.td-step { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.td-step:last-child { padding-bottom: 2px; }
.td-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0;
  width: 1px; background: #e6eaf3; }
.td-step:last-child::before { display: none; }
.td-step-n { width: 27px; height: 27px; border-radius: 50%; flex: none; color: #fff;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.td-step-n.c1 { background: #4c7dff; } .td-step-n.c2 { background: #8b6bf5; }
.td-step-n.c3 { background: #22b573; } .td-step-n.c4 { background: #f5a623; }
.td-step-n.c5 { background: #f2595b; } .td-step-n.c6 { background: #a06bf5; }
.td-step-b { flex: 1; min-width: 0; }
.td-step-t { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.td-step-d { font-size: 11px; color: #8a90a4; line-height: 1.55; }
.td-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.td-mini span { font-size: 10px; color: #7b8298; background: #f2f5fb; border-radius: 5px; padding: 3px 8px; }
.td-cta { display: flex; align-items: center; gap: 10px; background: #eef3ff;
  border-radius: 8px; padding: 12px; margin-top: 2px; }
.td-cta-ic { width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg,#5b8bff,#3d6bff); display: flex; align-items: center; justify-content: center; }
.td-cta b { display: block; font-size: 13px; }
.td-cta small { display: block; font-size: 10.5px; color: #8a90a4; margin-top: 3px; }
/* 已报价用户 */
.td-bid-head { display: flex; align-items: center; gap: 7px; }
.td-bid-num { font-size: 10.5px; color: #fff; background: #4c7dff; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.td-bid-arrow { margin-left: auto; color: #a8adbd; font-size: 12px; }
.td-bids { margin-top: 4px; }
.td-bids.hide { display: none; }
.td-bid { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f7; }
.td-bid:last-child { border-bottom: 0; }
.td-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800; }
.td-bid-m { flex: 1; min-width: 0; }
.td-bid-n { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.td-bid-tag { font-size: 9.5px; font-weight: 600; border-radius: 4px; padding: 2px 6px; }
.td-bid-tag.wait { color: #8a90a4; background: #f2f4f9; }
.td-bid-tag.win { color: #ef9f2e; background: #fff3df; }
.td-bid-tag.lose { color: #f2595b; background: #ffeded; }
.td-bid-time { display: block; font-size: 10.5px; color: #b0b5c4; margin-top: 3px; }
.td-bid-amt { color: #f2595b; font-size: 14px; font-weight: 800; flex: none; }
.td-bid-act { display: block; width: 100%; margin-top: 8px; border: 0; border-radius: 8px;
  background: linear-gradient(110deg,#6b5bf5,#4c7dff); color: #fff; font-size: 12px;
  font-weight: 700; padding: 8px 0; }
.td-bid-act.done { background: #f2f4f9; color: #9aa0b4; }
.td-bid-wrap { padding: 10px 0; border-bottom: 1px solid #f2f3f7; }
.td-bid-wrap:last-child { border-bottom: 0; }
/* 接单者作品图 */
.td-bid-pics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.td-bid-pic { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: #f3f5fa; display: block; }
.td-bid-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 任务图片（发布者上传） */
.td-img-n { font-size: 10.5px; font-weight: 400; color: #3d6bff; background: #eaf0ff;
  border-radius: 4px; padding: 1px 7px; margin-left: 6px; }
.td-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.td-img { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: #f3f5fa; display: block; }
.td-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 弹层内图片上传 */
.th-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.th-img { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: #f3f5fa; }
.th-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-img-x { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(20,26,45,.6); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.th-img-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; border: 1px dashed #d6dcea; border-radius: 8px; background: #fafbfe;
  color: #9aa0b4; font-size: 10px; }
.th-img-busy { display: flex; align-items: center; justify-content: center; border: 1px solid #e6ebf5; }
.th-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #dbe2f2;
  border-top-color: #3d6bff; animation: thspin .8s linear infinite; }
@keyframes thspin { to { transform: rotate(360deg); } }
.th-imgs-n { font-size: 10px; color: #b0b5c4; margin-top: 5px; }
/* 大图查看 */
.th-viewer { position: fixed; inset: 0; z-index: 500; background: rgba(10,14,25,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.th-viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.th-viewer-x { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.td-safe { display: flex; gap: 8px; background: #fff8e3; border: 1px solid #ffe9b0;
  border-radius: 8px; padding: 11px; margin-bottom: 10px; }
.td-safe b { display: block; font-size: 12px; color: #a5721a; }
.td-safe small { display: block; font-size: 10.5px; color: #b89250; margin-top: 3px; line-height: 1.5; }
/* 底部操作栏 */
.td-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%;
  max-width: 480px; background: #fff; box-shadow: 0 -2px 14px rgba(20,30,70,.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center;
  gap: 6px; z-index: 100; box-sizing: border-box; }
.td-bar-ic { width: 38px; flex: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: #9aa0b4; font-size: 9px; }
.td-bar-ic.on { color: #3d6bff; }
.td-bar-btn { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 20px; color: #fff;
  font-size: 13px; font-weight: 700; }
.td-bar-btn.contact { background: linear-gradient(110deg,#7a64f2,#5b5bf0); }
.td-bar-btn.bid { background: linear-gradient(110deg,#ff6b6b,#f2595b); }
.td-bar-btn.disabled { background: #d9dde8; color: #fff; }
.td-fab { position: fixed; right: calc(50% - 240px + 14px); bottom: 86px; width: 34px; height: 34px;
  border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(31,45,92,.16); z-index: 90;
  display: flex; align-items: center; justify-content: center; }
@media (max-width: 500px) { .td-fab { right: 14px; } }

/* ---------------- 接单 / 选标弹层 ---------------- */
.th-mask { position: fixed; inset: 0; background: rgba(18,26,48,.45); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center; }
.th-sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 14px 14px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.th-sheet-t { display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.th-sheet-x { font-size: 20px; color: #a8adbd; line-height: 1; }
.th-sheet-sub { font-size: 11.5px; color: #9aa0b4; margin-bottom: 13px; line-height: 1.6; }
.th-field { margin-bottom: 11px; }
.th-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.th-field input, .th-field textarea { width: 100%; box-sizing: border-box; border: 0;
  background: #f7f8fc; border-radius: 8px; padding: 11px 12px; font-size: 12.5px; color: #333; }
.th-field textarea { resize: vertical; min-height: 62px; line-height: 1.6; }
.th-field input::placeholder, .th-field textarea::placeholder { color: #b4bacb; }
.th-sheet-btn { width: 100%; height: 44px; border: 0; border-radius: 22px; color: #fff;
  font-size: 14px; font-weight: 700; background: linear-gradient(110deg,#6b5bf5,#4c7dff); }
.th-sheet-btn:disabled { background: #d9dde8; }
.th-award-line { display: flex; justify-content: space-between; font-size: 12.5px;
  padding: 9px 0; border-bottom: 1px solid #f2f3f7; }
.th-award-line b { color: #f2595b; }

@media (max-width: 360px) {
  .thl-cat { padding: 10px 13px; font-size: 12px; }
  .thl-title { font-size: 14.5px; }
  .td-title { font-size: 17px; }
  .td-bar-ic { width: 32px; font-size: 8.5px; }
  .td-bar-btn { font-size: 12px; }
}
