/* ==========================================================================
   HiveLabel · 任务大厅（Task Hall）
   ========================================================================== */

.hall-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(122deg, #121212 0%, #1a1a1a 55%, #242220 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hall-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z' fill='none' stroke='%23ffb000' stroke-opacity='.14'/%3E%3Cpath d='M28 64 56 80v16M28 64 0 80v16' fill='none' stroke='%23ffb000' stroke-opacity='.14'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(80% 120% at 90% 0%, #000 0%, rgba(0, 0, 0, .3) 55%, transparent 80%);
  mask-image: radial-gradient(80% 120% at 90% 0%, #000 0%, rgba(0, 0, 0, .3) 55%, transparent 80%);
}
.hall-hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(46% 80% at 86% 6%, rgba(255, 122, 0, .24), transparent 70%);
}
.hall-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 20px 0 16px;
  max-width: 720px;
}
.hall-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffc233, var(--honey) 45%, var(--honey-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hall-hero__lead { max-width: 620px; color: rgba(255, 255, 255, .66); font-size: 16px; line-height: 1.72; }

.searchbar { display: flex; gap: 10px; margin-top: 30px; max-width: 640px; }
.searchbar__field { position: relative; flex: 1; }
.searchbar__field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .45; color: #fff; }
.searchbar input {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 0 16px 0 44px;
  font-size: 15px;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.searchbar input::placeholder { color: rgba(255, 255, 255, .42); }
.searchbar input:focus { border-color: rgba(255, 176, 0, .65); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(255, 176, 0, .13); }
.searchbar button {
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: #241a06;
  background: linear-gradient(180deg, #ffb81a, var(--honey-deep));
  box-shadow: 0 12px 24px -16px rgba(255, 122, 0, .95);
}

.hall-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hall-stats .stat .n { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.hall-stats .stat .l { font-size: 12px; color: rgba(255, 255, 255, .48); letter-spacing: .04em; margin-top: 2px; }

/* ── 筛选栏 ──────────────────────────────────────────────── */
.filters {
  position: sticky;
  top: 66px;
  z-index: 60;
  background: rgba(251, 247, 240, .93);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  padding-right: 20px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: .16s;
}
.chip:hover { border-color: #c2b79f; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { opacity: .5; font-weight: 500; margin-left: 5px; }
.filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
select.sort {
  appearance: none;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 10px;
  padding: 8px 32px 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236f695d' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.result-count { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.result-count b { color: var(--ink); }

/* ── 任务网格 ────────────────────────────────────────────── */
.hall-main { padding: 34px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.job {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 0;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.job__top { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.job__cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--honey-ink);
  background: var(--honey-soft);
  border: 1px solid var(--honey-line);
  border-radius: 6px;
  padding: 3px 8px;
}
.job__country { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.job__country::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--honey); }
.job h3 { font-size: 17.5px; line-height: 1.36; letter-spacing: -.015em; margin-bottom: 6px; }
.job__code { font-size: 11.5px; color: var(--muted-2); letter-spacing: .02em; }
.job__desc {
  margin: 11px 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 13px 0; border-top: 1px dashed var(--line); margin-top: auto; }
.job__meta .m { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.job__meta .m b { font-weight: 700; }
.job__meta .m .unit { color: var(--muted); font-weight: 500; font-size: 12px; }
.job__meta .m.muted { color: var(--muted); }
.job__meta .m svg { opacity: .5; }
.job__foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 15px; }
.job__slots { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.job__slots b { color: var(--ink); }
.job__closed {
  margin-left: 7px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: #e8e2d5;
  color: #6f695d;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.job__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--honey-ink);
}
.job__go:hover { color: var(--honey-deep); }
.job__go svg { transition: transform .18s var(--ease); }
.job:hover .job__go svg { transform: translateX(3px); }
/* 过了截止日期：整卡置灰，但仍然可点开看详情 */
.job.is-expired {
  background: #f6f3ea;
  border-color: #e4ddcd;
  box-shadow: none;
}
.job.is-expired:hover {
  transform: none;
  box-shadow: 0 10px 24px -22px rgba(23, 23, 23, .5);
  border-color: #d9d1bf;
}
.job.is-expired .job__cat {
  background: #ece6d8;
  border-color: #ded5c1;
  color: #8b8271;
}
.job.is-expired .job__country { color: #948d7e; }
.job.is-expired .job__country::before { background: #b3ab99; }
.job.is-expired h3 { color: #6f695d; }
.job.is-expired .job__code,
.job.is-expired .job__desc { color: #948d7e; }
.job.is-expired .job__meta { border-top-color: #e0d8c7; }
.job.is-expired .job__meta .m,
.job.is-expired .job__meta .m b { color: #8b8271; }
.job.is-expired .job__slots { color: #8b8271; }
.job.is-expired .job__slots b { color: #6f695d; }
.job.is-expired .job__go { color: #8b8271; }
.job.is-expired .job__go:hover { color: #6f695d; }

.empty { text-align: center; padding: 74px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff; }
.empty__ico {
  width: 44px;
  height: 50px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--honey-deep);
  background: var(--honey-soft);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.empty h4 { font-family: 'Poppins', sans-serif; font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; }

/* ── 分页 ────────────────────────────────────────────────── */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.pager[hidden] { display: none; }
.pager__nums { display: flex; gap: 8px; }
.pager__nav,
.pager__num {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .16s, box-shadow .16s, background .16s, color .16s;
}
.pager__nav:hover:not(:disabled),
.pager__num:hover { border-color: #bfb49c; box-shadow: var(--shadow-sm); }
.pager__num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__nav:disabled { opacity: .35; cursor: not-allowed; }
.pager__gap { color: var(--muted-2); padding: 0 2px; font-size: 13px; }
.pager__meta { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ── 参与流程 ────────────────────────────────────────────── */
.hall-how { padding: 72px 0 0; }
.hall-how__head { max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step h4 { font-size: 16px; margin: 14px 0 8px; }
.step p { font-size: 13.5px; line-height: 1.68; color: var(--muted); }

.safety {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--honey);
  border-radius: var(--r);
}
.safety__ico {
  flex: none;
  width: 40px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--honey-ink);
  background: var(--honey-soft);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.safety h4 { font-size: 16.5px; margin-bottom: 6px; }
.safety p { font-size: 13.5px; line-height: 1.68; color: var(--muted); max-width: 820px; }
.safety a { color: var(--honey-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── CTA 带 ──────────────────────────────────────────────── */
.hall-cta {
  position: relative;
  margin: 68px 0 0;
  padding: 46px 44px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #191919, #262321);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.hall-cta::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 140, 0, .26), transparent 66%);
  pointer-events: none;
}
.hall-cta h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; max-width: 520px; }
.hall-cta p { font-size: 14px; color: rgba(255, 255, 255, .62); max-width: 520px; }
.hall-cta .btn { margin-left: auto; flex: none; }

/* ── 任务详情弹层 ────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__mask { position: absolute; inset: 0; background: rgba(12, 12, 12, .62); backdrop-filter: blur(4px); }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 60px 100px -50px #000;
  animation: pop .22s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.modal__close:hover { border-color: var(--line-2); color: var(--ink); }
.modal h3 { font-size: 22px; letter-spacing: -.02em; margin: 12px 0 6px; padding-right: 40px; }
.modal__code { font-size: 12px; color: var(--muted-2); }
.modal__desc { font-size: 14px; line-height: 1.72; color: var(--muted); margin: 18px 0 22px; }
.modal__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.modal__facts div { background: #fff; padding: 14px 16px; }
.modal__facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.modal__facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.modal__note {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--honey-soft);
  border: 1px solid var(--honey-line);
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--honey-ink);
}
.modal__actions { display: flex; gap: 10px; margin-top: 22px; }
.modal__actions .btn { flex: 1; }

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-cta { flex-direction: column; align-items: flex-start; gap: 22px; padding: 36px 30px; }
  .hall-cta .btn { margin-left: 0; }
}
/* 平板窄宽：筛选 chips 独占一行，避免被右侧计数/排序压住 */
@media (max-width: 900px) {
  .filters .wrap { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .chips { width: 100%; }
  .filter-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 760px) {
  .hall-hero { padding: calc(var(--nav-h) + 44px) 0 46px; }
  .hall-hero h1 { font-size: clamp(29px, 8vw, 38px); }
  .hall-hero__lead { font-size: 15px; }
  .searchbar { flex-direction: column; }
  .searchbar button { width: 100%; }
  .hall-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .hall-stats .stat .n { font-size: 20px; }
  .filters .wrap { flex-wrap: wrap; gap: 10px; padding: 12px 20px; }
  .chips { width: 100%; }
  .filter-right { width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .modal__box { padding: 24px 20px; }
  .modal__facts { grid-template-columns: 1fr; }
  .modal__actions { flex-direction: column; }
}
