/* ============================================================
   数聚市集 DataBazaar — 全站样式
   ============================================================ */
:root {
  --primary: #1d4ed8;
  --primary-dark: #173db0;
  --primary-light: #eaf0ff;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --green: #16a34a;
  --green-bg: #ecfdf3;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-lg: 0 4px 12px rgba(17, 24, 39, .08), 0 16px 40px rgba(29, 78, 216, .10);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--primary), #3b6ef0);
  color: #fff; font-size: 13px; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar strong { color: #ffd9a8; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 900;
}
.logo .en { font-size: 12px; font-weight: 600; color: var(--muted); display: block; line-height: 1.1; letter-spacing: 1px; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: .18s;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { color: var(--primary); background: var(--primary-light); }
.btn-ghost:hover { background: #dbe6ff; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(249, 115, 22, .12), transparent 60%),
    radial-gradient(700px 420px at 10% 0%, rgba(29, 78, 216, .10), transparent 60%),
    var(--bg-soft);
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.25; letter-spacing: .5px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary); position: relative; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(249, 115, 22, .25); z-index: -1; border-radius: 4px;
}
.hero p.lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust b { color: var(--green); }

/* Hero 右侧任务卡片堆叠 */
.hero-visual { position: relative; min-height: 360px; }
.hv-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; width: 300px;
}
.hv-card .hv-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.hv-card .hv-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.hv-card .hv-price { color: var(--accent); font-weight: 800; }
.hv-1 { top: 0; right: 20px; animation: float 5s ease-in-out infinite; }
.hv-2 { top: 130px; left: 0; animation: float 5s ease-in-out 1.2s infinite; }
.hv-3 { top: 265px; right: 60px; animation: float 5s ease-in-out 2.4s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hv-badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--green-bg); color: var(--green); font-weight: 700;
}

/* ---------- 数据条（科技风） ---------- */
.stats-band {
  position: relative; overflow: hidden; color: #fff; padding: 60px 0;
  background:
    radial-gradient(620px 320px at 12% -10%, rgba(59, 110, 245, .38), transparent 60%),
    radial-gradient(520px 280px at 88% 110%, rgba(34, 211, 238, .20), transparent 60%),
    linear-gradient(160deg, #0a1029 0%, #0e1a45 55%, #0a1029 100%);
}
.stats-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}
.stats-band::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, .7), transparent);
}
.stats-band .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { position: relative; padding: 8px 0; }
.stat b {
  font-size: 42px; font-weight: 800; display: block; letter-spacing: 1px; line-height: 1.2;
  background: linear-gradient(120deg, #7db2ff 10%, #22d3ee 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(80, 140, 255, .35));
}
.stat b i { font-style: normal; font-size: 22px; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, .75); letter-spacing: 2px; }
.stat .s-ico { display: block; font-size: 22px; margin-bottom: 10px; filter: drop-shadow(0 0 12px rgba(110, 168, 255, .5)); }

/* ---------- 首页站内搜索 ---------- */
.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 580px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 14px; box-shadow: var(--shadow-lg); transition: .2s;
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 78, 216, .10), var(--shadow-lg); }
.hero-search .s-glass { font-size: 18px; color: var(--muted); flex: none; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 15px; min-width: 0; background: transparent; font-family: inherit; }
.hero-search .btn { border-radius: 11px; flex: none; }
.hot-words { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; align-items: center; }
.hot-words .hw-label { color: var(--muted); font-weight: 700; }
.hot-words a {
  padding: 4px 13px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-2); transition: .15s;
}
.hot-words a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
@media (min-width: 769px) {
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
    background: linear-gradient(transparent, rgba(120, 160, 255, .4), transparent);
  }
}

/* ---------- 通用 Section ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-head-row h2 { font-size: 26px; }
.section-head-row .more { color: var(--primary); font-weight: 700; font-size: 14.5px; }

/* ---------- 行业分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 8px; text-align: center; transition: .2s; cursor: pointer;
}
.cat:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat .ico { font-size: 28px; margin-bottom: 8px; }
.cat .name { font-size: 14px; font-weight: 600; }
.cat .cnt { font-size: 12px; color: var(--muted); }

/* ---------- 任务卡片 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.task-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: .2s;
}
.task-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cfd9f5; }
.task-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.tag.hot { background: var(--red-bg); color: var(--red); border-color: transparent; }
.tag.ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.task-card h3 { font-size: 16.5px; line-height: 1.45; min-height: 48px; }
.task-desc { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-info { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.task-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; }
.task-price { font-size: 20px; font-weight: 800; color: var(--accent); }
.task-price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.task-co { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.progress { height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #5b8cf5); border-radius: 99px; }

/* ---------- 数据商品卡 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prod-cover {
  height: 110px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--primary-light), #f3e8ff);
}
.prod-cover.c2 { background: linear-gradient(135deg, #e0f2fe, var(--primary-light)); }
.prod-cover.c3 { background: linear-gradient(135deg, #fef3c7, #ffedd5); }
.prod-cover.c4 { background: linear-gradient(135deg, var(--green-bg), #d1fae5); }
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prod-body h3 { font-size: 15px; line-height: 1.4; }
.prod-meta { font-size: 12.5px; color: var(--muted); }
.prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.prod-price { color: var(--accent); font-weight: 800; font-size: 18px; }
.prod-price small { font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* ---------- 流程 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; position: relative; transition: .2s;
}
.flow-step:hover { box-shadow: var(--shadow); }
.flow-step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 34px; font-weight: 800; color: var(--primary-light);
  -webkit-text-stroke: 1px var(--primary); position: absolute; top: 12px; right: 14px;
  font-family: Georgia, serif;
}
.flow-step .ico { font-size: 30px; margin-bottom: 12px; }
.flow-step h3 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--muted); }

/* ---------- 信任保障 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: .2s;
}
.trust-card:hover { box-shadow: var(--shadow); border-color: #cfd9f5; }
.trust-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: var(--primary-light); margin-bottom: 16px;
}
.trust-card:nth-child(2) .ico { background: var(--amber-bg); }
.trust-card:nth-child(3) .ico { background: var(--green-bg); }
.trust-card h3 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--muted); }

/* ---------- 合规声明 ---------- */
.compliance-box {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid #fde68a; border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.compliance-box h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.compliance-box ul li {
  font-size: 14px; color: var(--ink-2); padding: 7px 0 7px 30px; position: relative;
  border-bottom: 1px dashed #fde68a;
}
.compliance-box ul li:last-child { border-bottom: none; }
.compliance-box ul.no li::before { content: "⛔"; position: absolute; left: 0; }
.compliance-box ul.yes li::before { content: "✅"; position: absolute; left: 0; }

/* ---------- 评价 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote-card .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.quote-card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.quote-card .who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.quote-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light);
  display: grid; place-items: center; font-weight: 800; color: var(--primary);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; font-weight: 700; font-size: 15.5px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--primary); transition: .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- CTA 大条 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #3b6ef0 60%, #5b8cf5);
  border-radius: 20px; color: #fff; padding: 48px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { opacity: .88; font-size: 15px; }
.cta-band .btn-accent { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #94a3b8; padding: 56px 0 0; margin-top: 72px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo-mark { width: 34px; height: 34px; font-size: 16px; }
.footer p.fdesc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 18px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- 页面 Hero（内页） ---------- */
.page-hero { background: linear-gradient(120deg, var(--primary), #3b6ef0); color: #fff; padding: 52px 0; }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { opacity: .9; font-size: 15px; max-width: 640px; }

/* ---------- 筛选条 ---------- */
.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.filter-bar .f-label { font-size: 13.5px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.chip {
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.filter-search { margin-left: auto; display: flex; gap: 8px; }
.filter-search input {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px; width: 220px; outline: none;
}
.filter-search input:focus { border-color: var(--primary); }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 14.5px;
  font-family: inherit; outline: none; transition: .15s; background: #fff;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
.form-hint { font-size: 12.5px; color: var(--muted); }
.form-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); grid-column: 1 / -1; }
.form-check input { margin-top: 4px; }

/* ---------- 侧栏布局 ---------- */
.with-side { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-card h3 { font-size: 15.5px; margin-bottom: 12px; }
.side-card ul li { font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; }
.side-card ul li:last-child { border-bottom: none; }
.side-card ul li b { color: var(--accent); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.list th { background: var(--bg-soft); font-size: 13px; color: var(--muted); white-space: nowrap; }
table.list tr:last-child td { border-bottom: none; }

/* ---------- 徽标 ---------- */
.badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.info { background: var(--primary-light); color: var(--primary); }
.badge.no { background: var(--red-bg); color: var(--red); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .with-side { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { height: 60px; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions .btn-outline { display: none; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 52px 0; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .task-grid, .trust-grid, .quote-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .compliance-box { grid-template-columns: 1fr; padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { padding: 32px 24px; }
  .section-head h2 { font-size: 24px; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { flex: 1; width: auto; }
}
@media (max-width: 480px) {
  .flow-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   淘宝式纯交易平台（数据商城 v2）
   ============================================================ */

/* 顶部双入口切换 */
.tb-switch { display: flex; gap: 10px; margin-bottom: 18px; }
.tb-switch .sw {
  padding: 12px 26px; border-radius: 12px; font-size: 15.5px; font-weight: 700;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tb-switch .sw small { font-weight: 400; color: var(--muted); font-size: 12px; }
.tb-switch .sw.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(249,115,22,.3); }
.tb-switch .sw.active small { color: rgba(255,255,255,.85); }
.tb-switch .sw.buy.active { background: var(--primary); border-color: var(--primary); box-shadow: 0 6px 16px rgba(29,78,216,.3); }

/* 排序工具条（淘宝式） */
.tb-toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; gap: 4px; padding: 6px 8px; margin-bottom: 18px;
  flex-wrap: wrap; position: sticky; top: 76px; z-index: 50;
}
.tb-sort {
  padding: 7px 16px; border-radius: 8px; font-size: 14px; cursor: pointer;
  border: none; background: transparent; color: var(--ink-2); font-weight: 600; transition: .15s;
}
.tb-sort:hover { color: var(--accent); }
.tb-sort.active { background: var(--accent); color: #fff; }
.tb-toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.tb-toolbar .tb-search { margin-left: auto; display: flex; gap: 8px; }
.tb-toolbar .tb-search input {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 13.5px; width: 200px; outline: none;
}
.tb-toolbar .tb-search input:focus { border-color: var(--accent); }

/* 商品网格（淘宝式 5 列） */
.tb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: .18s; display: flex; flex-direction: column;
}
.tb-card:hover { box-shadow: 0 8px 28px rgba(17,24,39,.12); transform: translateY(-4px); border-color: transparent; }
.tb-cover {
  height: 130px; display: grid; place-items: center; font-size: 44px; position: relative;
  background: linear-gradient(135deg, var(--primary-light), #f3e8ff);
}
.tb-cover.c2 { background: linear-gradient(135deg, #e0f2fe, var(--primary-light)); }
.tb-cover.c3 { background: linear-gradient(135deg, #fef3c7, #ffedd5); }
.tb-cover.c4 { background: linear-gradient(135deg, var(--green-bg), #d1fae5); }
.tb-cover.c5 { background: linear-gradient(135deg, #fce7f3, #f3e8ff); }
.tb-cover .flag {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--accent);
}
.tb-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tb-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 40px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tb-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.tb-price { color: var(--accent); font-weight: 800; font-size: 19px; }
.tb-price small { font-size: 12px; }
.tb-sales { font-size: 12px; color: var(--muted); }
.tb-shop {
  border-top: 1px solid var(--bg-soft); padding: 8px 14px; font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.tb-shop b { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-shop .v { color: var(--green); font-weight: 700; flex: none; }

/* 求购卡片 */
.req-card { border-color: #dbe6ff; }
.req-cover { background: linear-gradient(135deg, var(--primary-light), #dbe6ff); }
.req-cover .flag { color: var(--primary); }
.req-budget { color: var(--primary); }
.req-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--primary); font-weight: 700; background: var(--primary-light); padding: 3px 10px; border-radius: 999px; }

/* 空态 */
.tb-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; display: none; }

/* 快速查看弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 560px; width: 100%;
  max-height: 86vh; overflow: auto; position: relative; animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; font-size: 22px; border: none; background: none;
  cursor: pointer; color: var(--muted); z-index: 2;
}
.modal-cover { height: 150px; display: grid; place-items: center; font-size: 56px; border-radius: 16px 16px 0 0; position: relative; overflow: hidden; }
.modal-cover img { border-radius: 0; }
.modal-body { padding: 20px 24px 26px; }
.modal-body h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.4; }
.modal-price { color: var(--accent); font-size: 26px; font-weight: 800; margin: 10px 0 14px; }
.modal-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 18px; }
.spec td { padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.spec td:first-child { color: var(--muted); width: 88px; }
.modal-actions { display: flex; gap: 10px; }

@media (max-width: 1024px) {
  .tb-grid { grid-template-columns: repeat(3, 1fr); }
  .tb-toolbar { top: 68px; }
}
@media (max-width: 768px) {
  .tb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tb-toolbar .tb-search { margin-left: 0; width: 100%; }
  .tb-toolbar .tb-search input { flex: 1; width: auto; }
  .tb-toolbar { top: 60px; }
  .tb-switch .sw { flex: 1; justify-content: center; padding: 11px 10px; font-size: 14px; }
}

/* ============================================================
   账号系统 + 广告位
   ============================================================ */

/* 导航登录态 */
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.user-chip .user-name { font-weight: 700; color: var(--primary); }
.user-chip .user-out { color: var(--muted); }
.user-chip .admin-link { color: var(--accent); font-weight: 700; }

/* 账号页布局 */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
.auth-brand h1 { font-size: 30px; margin-bottom: 14px; }
.auth-brand p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.auth-brand ul li { font-size: 14px; padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); }
.auth-brand ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 21px; margin-bottom: 4px; }
.auth-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.auth-card .form-field { margin-bottom: 14px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.auth-foot a { color: var(--primary); font-weight: 700; }
.auth-tip { background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--amber); margin-bottom: 16px; }
.msg { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.msg.err { background: var(--red-bg); color: var(--red); display: block; }
.msg.ok { background: var(--green-bg); color: var(--green); display: block; }
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .auth-brand { text-align: center; }
  .auth-brand ul { display: none; }
}

/* 管理后台 */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.admin-stat b { font-size: 24px; display: block; }
.admin-stat span { font-size: 12.5px; color: var(--muted); }
.fb-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.fb-item .fb-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.fb-item .fb-content { font-size: 14px; margin-top: 6px; }
.fb-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* 广告位 */
.shop-layout { display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: start; }
.ad-rail { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.ad-banner { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: .2s; display: block; }
.ad-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ad-banner img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ad-banner .ad-txt {
  position: absolute; inset: auto 0 0 0; padding: 12px 14px;
  background: linear-gradient(transparent, rgba(15, 23, 42, .82)); color: #fff;
}
.ad-banner .ad-txt b { font-size: 15px; display: block; }
.ad-banner .ad-txt span { font-size: 12px; opacity: .85; }
.ad-tag {
  position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 10.5px; padding: 1px 7px;
  border-radius: 5px; background: rgba(255,255,255,.85); color: var(--muted); font-weight: 600;
}
.ad-side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 13px; }
.ad-side-card h4 { font-size: 14px; margin-bottom: 10px; }
.ad-side-card ul li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; }
.ad-side-card ul li:last-child { border-bottom: none; }
/* 手机端：广告插入商品流前 2 位 */
.ad-inline { display: none; }
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .ad-rail { display: none; }
  .ad-inline { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
  .ad-inline img { width: 100%; height: 110px; object-fit: cover; display: block; }
  .ad-inline .ad-txt { position: absolute; inset: auto 0 0 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(15,23,42,.82)); color: #fff; font-size: 13px; font-weight: 700; }
  .ad-inline.ad-a { order: -2; }
  .ad-inline.ad-b { order: -1; }
}

/* 商品封面图片 */
.tb-cover { padding: 0; }
.tb-cover img, .modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.tb-cover .flag { z-index: 2; }
.tb-cover { position: relative; }

/* ============================================================
   个人 ⇄ 企业 互通买卖
   ============================================================ */
.identity-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.identity-row .ir {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: .15s; background: #fff;
}
.identity-row .ir:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.identity-row .ir input { accent-color: var(--primary); }
.tb-shop .v.self { color: var(--primary); }
.hall-note {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--accent); background: #fff7ed; border: 1px solid #fed7aa;
  padding: 5px 12px; border-radius: 999px;
}

/* ============================================================
   任务大厅 v2：会员门禁 + 任务详情弹窗 + 接单流程
   ============================================================ */

/* 会员提示条 */
.vip-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(110deg, #0e1a45, #1d4ed8 70%, #2563eb);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 18px;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 28px rgba(29, 78, 216, .22);
}
.vip-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.vip-banner.is-member { background: linear-gradient(110deg, #065f46, #16a34a 70%, #22c55e); box-shadow: 0 10px 28px rgba(22,163,74,.22); }
.vip-banner .vb-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.vip-banner .vb-txt { flex: 1; min-width: 220px; position: relative; z-index: 1; }
.vip-banner .vb-txt b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.vip-banner .vb-txt span { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.6; }
.vip-banner .vb-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; position: relative; z-index: 1; }
.vip-banner .vb-badge {
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
}

/* 卡片底部按钮组 */
.task-btns { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.task-btns .btn { padding: 7px 14px; }
.lock-ico { font-size: 11px; margin-right: 3px; opacity: .85; }
.tag.vip {
  background: #fff7ed; color: #c2410c; border-color: #fed7aa; font-weight: 700;
}

/* 侧栏我的任务 */
.mo-empty { font-size: 13px; color: var(--muted); padding: 6px 0 12px; line-height: 1.6; }
.mo-sum { display: flex; gap: 10px; margin-bottom: 10px; }
.mo-sum > div {
  flex: 1; background: var(--bg-soft); border-radius: 10px; padding: 10px 12px;
}
.mo-sum b { display: block; font-size: 17px; color: var(--primary); }
.mo-sum span { font-size: 11.5px; color: var(--muted); }

/* 任务详情弹窗 */
.task-modal { max-width: 780px; max-height: 90vh; overflow: auto; }
.tm-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.tm-head h3 { font-size: 20px; line-height: 1.45; margin: 10px 0 0; }
.tm-pricebar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; margin: 14px 0 12px;
}
.tm-price { color: var(--accent); font-size: 26px; font-weight: 800; line-height: 1.2; }
.tm-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.tm-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tm-meta b { color: var(--ink); }
.tm-quick { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.tm-quick span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.tm-summary { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.75; }
.tm-body { padding: 8px 26px 4px; }
.tm-sec { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.tm-sec:last-child { border-bottom: none; }
.tm-sec h4 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

/* 发布方卡片 */
.tm-pub {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff); border: 1px solid #dbe6ff;
  border-radius: 12px; padding: 16px;
}
.tm-pub-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; background: #fff; border: 1px solid #dbe6ff;
}
.tm-pub-main { flex: 1; min-width: 0; }
.tm-pub-main > b { font-size: 15px; display: block; }
.tm-pub-cert { font-size: 12px; color: var(--green); font-weight: 600; }
.tm-pub-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.tm-pub-stats b { color: var(--ink); }
.tm-level {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--primary);
  background: #fff; border: 1px solid #dbe6ff; border-radius: 999px; padding: 4px 12px;
}

/* 要求 / 验收 / 表格 / 话术 / 流程 / 红线 / FAQ */
.tm-list { padding-left: 20px; list-style: decimal; font-size: 13.8px; color: var(--ink-2); }
.tm-list li { padding: 4px 0; line-height: 1.7; }
.tm-accept { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-col { border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.acc-col b { display: block; margin-bottom: 6px; font-size: 13px; }
.acc-col ul { padding-left: 16px; list-style: disc; }
.acc-col li { padding: 3px 0; line-height: 1.6; }
.acc-col.ok { background: var(--green-bg); border: 1px solid #bbf7d0; }
.acc-col.ok b { color: var(--green); }
.acc-col.no { background: var(--red-bg); border: 1px solid #fecaca; }
.acc-col.no b { color: var(--red); }
.tm-table-wrap { overflow-x: auto; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm-table th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap;
}
.tm-table td { padding: 9px 10px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.tm-table td:first-child { white-space: nowrap; }
.tm-table code {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; color: var(--primary);
}
.tm-script {
  background: #0f172a; color: #d8e2f5; border-radius: 12px; padding: 16px 18px;
  font-family: ui-monospace, Consolas, "Microsoft YaHei", monospace;
  font-size: 12.8px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  overflow-x: auto;
}
.tm-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tm-step {
  background: var(--bg-soft); border-radius: 10px; padding: 12px; font-size: 12.5px; color: var(--muted);
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.tm-step .n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-bottom: 2px;
}
.tm-step b { font-size: 13.5px; color: var(--ink); }
.tm-comp { font-size: 13.5px; color: var(--ink-2); }
.tm-comp li { padding: 5px 0 5px 22px; position: relative; line-height: 1.65; }
.tm-comp li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; font-size: 12px; }
.tm-faq { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.tm-faq summary { font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.tm-faq p { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }

/* 详情弹窗底部 */
.tm-foot {
  position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 14px 26px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.tm-earn { font-size: 13px; color: var(--muted); }
.tm-earn b { color: var(--accent); font-size: 19px; display: block; }
.tm-earn span { font-size: 12px; }
.tm-foot-btns { display: flex; gap: 10px; }
.btn.faved { color: var(--amber); border-color: #fde68a; background: var(--amber-bg); }

/* 会员门禁弹窗 */
.gate-modal { max-width: 460px; padding: 34px 32px 26px; text-align: center; }
.gate-ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #eef4ff, #fff7ed); border: 1px solid #dbe6ff;
}
.gate-modal h3 { font-size: 20px; margin-bottom: 8px; }
.gate-tip { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.gate-tip b { color: var(--accent); }
.gate-list { text-align: left; margin-bottom: 20px; }
.gate-list li {
  padding: 9px 0 9px 26px; position: relative; border-bottom: 1px dashed var(--line);
}
.gate-list li:last-child { border-bottom: none; }
.gate-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; color: var(--green); font-weight: 800; font-size: 13px;
}
.gate-list b { font-size: 13.8px; display: block; }
.gate-list span { font-size: 12.5px; color: var(--muted); }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.gate-actions .btn { padding: 12px 10px; font-size: 14.5px; }
.gate-foot { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* 接单确认弹窗 */
.accept-modal { max-width: 480px; padding: 28px 28px 24px; }
.accept-modal h3 { font-size: 19px; margin-bottom: 6px; }
.acc-title { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.acc-info { display: flex; gap: 10px; margin-bottom: 16px; }
.acc-info > div { flex: 1; background: var(--bg-soft); border-radius: 10px; padding: 10px 14px; }
.acc-info span { font-size: 12px; color: var(--muted); display: block; }
.acc-info b { font-size: 16px; color: var(--ink); }
.acc-earn {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: var(--ink-2); margin: 12px 0 14px;
}
.acc-earn b { color: var(--accent); font-size: 20px; }
.acc-earn span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.accept-modal .form-check { font-size: 12px; line-height: 1.6; color: var(--muted); }
.acc-actions { display: flex; gap: 10px; margin-top: 18px; }
.acc-actions .btn { flex: 1; }

/* Toast */
.db-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  background: #111827; color: #fff; font-size: 13.5px; padding: 12px 22px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: .24s; z-index: 500; max-width: 88vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
}
.db-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .tm-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .vip-banner { padding: 16px; gap: 12px; }
  .vip-banner .vb-actions { width: 100%; }
  .vip-banner .vb-actions .btn { flex: 1; text-align: center; }
  .task-btns { width: 100%; }
  .task-btns .btn { flex: 1; }
  .task-modal { max-height: 94vh; border-radius: 14px; }
  .tm-head, .tm-body { padding-left: 18px; padding-right: 18px; }
  .tm-foot { padding: 12px 18px; }
  .tm-foot-btns { width: 100%; }
  .tm-foot-btns .btn { flex: 1; }
  .tm-accept { grid-template-columns: 1fr; }
  .tm-flow { grid-template-columns: 1fr; }
  .tm-pub { flex-wrap: wrap; }
  .tm-level { margin-left: 56px; }
  .gate-actions { grid-template-columns: 1fr; }
  .tm-earn b { display: inline; }
}

/* 任务大厅卡片列数（36 任务用 2 列，修复移动端 inline style 覆盖问题） */
.task-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .task-grid.cols2 { grid-template-columns: 1fr; } }

/* ============================================================
   排行榜（采集榜 + 发布榜，个人 ⇄ 企业双向）
   ============================================================ */
.my-rank {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: #fff;
}
.my-rank.mine { background: linear-gradient(110deg, #065f46, #16a34a 75%, #22c55e); box-shadow: 0 10px 26px rgba(22,163,74,.2); }
.my-rank.guest { background: linear-gradient(110deg, #0e1a45, #1d4ed8 75%, #2563eb); box-shadow: 0 10px 26px rgba(29,78,216,.2); }
.my-rank .mr-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.my-rank .mr-txt { flex: 1; min-width: 220px; }
.my-rank .mr-txt b { display: block; font-size: 15px; margin-bottom: 2px; }
.my-rank .mr-txt span { font-size: 13px; color: rgba(255,255,255,.85); }
.my-rank .mr-actions { flex: none; display: flex; gap: 10px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.pod {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 18px 16px; text-align: center; position: relative; overflow: hidden;
  transition: .2s;
}
.pod:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pod.p1 { background: linear-gradient(160deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.pod.p2 { background: linear-gradient(160deg, #f8fafc, #e2e8f0); border-color: #cbd5e1; }
.pod.p3 { background: linear-gradient(160deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.pod .pd-medal { font-size: 26px; position: absolute; top: 10px; right: 14px; }
.pod .pd-ico {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pod b { display: block; font-size: 14.5px; margin-bottom: 6px; line-height: 1.4; }
.pod .pd-stat { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.pod .pd-stat b { display: inline; font-size: 13.5px; color: var(--ink); }

.rank-table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rank-thead, .rank-row {
  display: grid; grid-template-columns: 70px 1fr 110px 130px 130px 90px;
  align-items: center; gap: 8px; padding: 12px 18px;
}
.rank-thead {
  background: var(--bg-soft); font-size: 12px; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.rank-thead .c-num, .rank-row .c-num { text-align: right; }
.rank-row { border-bottom: 1px dashed var(--line); font-size: 14px; transition: .15s; }
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: #f8fbff; }
.rank-row .c-rank b { font-size: 16px; color: var(--muted); }
.rank-row .c-rank b.top1, .rank-row .c-rank b.top2, .rank-row .c-rank b.top3 { font-size: 20px; }
.c-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-who .avatar {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px; font-style: normal; background: var(--bg-soft); border: 1px solid var(--line);
}
.c-who .who-txt { min-width: 0; }
.c-who b { display: block; font-size: 13.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-who small { color: var(--muted); font-size: 11.5px; }
.rtag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.rtag.person { background: var(--primary-light); color: var(--primary); }
.rtag.company { background: var(--green-bg); color: var(--green); }
.rank-row .c-num b { font-size: 14px; }
.rank-row .c-num small { display: block; font-size: 10.5px; color: var(--muted); }
.rank-row .c-num.hl b { color: var(--accent); font-size: 15px; }
.rank-row .c-num .rate { color: var(--green); }
.rank-footnote { font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.8; }

@media (max-width: 1024px) {
  .rank-thead, .rank-row { grid-template-columns: 52px 1fr 90px 110px; }
  .rank-thead .c-num:nth-child(n+5), .rank-row .c-num:nth-child(n+5) { display: none; }
}
@media (max-width: 768px) {
  .podium { grid-template-columns: 1fr; }
  .rank-thead, .rank-row { grid-template-columns: 44px 1fr 84px 100px; padding: 10px 14px; }
  .rank-row .c-who .avatar { width: 32px; height: 32px; font-size: 16px; }
  .my-rank .mr-actions { width: 100%; }
  .my-rank .mr-actions .btn { flex: 1; text-align: center; }
}

/* ============================================================
   个人信息卡（任务大厅侧栏）：数据 + 等级 + 进行中任务
   ============================================================ */
.profile-card { padding: 18px; }
.profile-card h3 { margin-bottom: 12px; }
.pc-guest-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.pc-preview li {
  display: flex; justify-content: space-between; padding: 7px 0;
  border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted);
}
.pc-preview li:last-child { border-bottom: none; }
.pc-preview b { color: #c0c7d2; font-weight: 700; }

.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pc-ava {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; font-style: normal; background: linear-gradient(135deg, #eef4ff, #fff7ed);
  border: 1px solid #dbe6ff;
}
.pc-who { min-width: 0; }
.pc-who b { display: block; font-size: 15px; }
.pc-lv {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-top: 3px; color: #fff;
}
.pc-lv.lv1 { background: linear-gradient(90deg, #94a3b8, #64748b); }
.pc-lv.lv2 { background: linear-gradient(90deg, #d97706, #b45309); }
.pc-lv.lv3 { background: linear-gradient(90deg, #64748b, #475569); }
.pc-lv.lv4 { background: linear-gradient(90deg, #f59e0b, #d97706); }
.pc-lv.lv5 { background: linear-gradient(90deg, #14b8a6, #0f766e); }
.pc-lv.lv6 { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pc-grid > div {
  background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; min-width: 0;
}
.pc-grid b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-grid span { font-size: 11px; color: var(--muted); }
.pc-grid .bal { background: #fff7ed; border: 1px solid #fed7aa; }
.pc-grid .bal b { color: var(--accent); }

.pc-level { margin-bottom: 14px; }
.pc-lv-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.pc-lv-row small { font-size: 11px; color: var(--muted); }
.pc-bar { height: 7px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.pc-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #22d3ee);
}

.pc-doing { border-top: 1px dashed var(--line); padding-top: 12px; }
.pc-doing h4 { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.pc-doing ul li {
  display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; color: var(--ink-2);
}
.pc-doing .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.pc-doing li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-doing li b { color: var(--ink); font-size: 12.5px; }
.pc-doing .pc-more, .pc-doing .pc-none { color: var(--muted); font-size: 12px; }
.pc-frozen { font-size: 11.5px; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 7px 10px; margin-top: 8px; }
.pc-settle {
  width: 100%; margin-top: 8px; padding: 8px; border: 1px dashed #a5b4fc; border-radius: 9px;
  background: #eef2ff; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s;
}
.pc-settle:hover { background: #e0e7ff; }
