/* ==========================================================================
   百姓服务网 · 本地生活服务网  ——  全站样式（设计令牌 + 组件库）
   配色体系：主橙（生活气息）+ 辅蓝（可信）+ 多彩分类色 + 语义色
   ========================================================================== */

:root {
  /* 主色：橙（品牌 / 主按钮 / 价格） */
  --brand: #ff6a1f;
  --brand-d: #e8570f;
  --brand-l: #ff8f4d;
  --brand-bg: #fff4ec;
  --brand-grad: linear-gradient(135deg, #ff7a1a 0%, #ff5c2b 100%);

  /* 辅色：蓝（可信 / 次按钮 / 链接） */
  --blue: #2d7ff9;
  --blue-d: #1a68df;
  --blue-bg: #eef5ff;
  --blue-grad: linear-gradient(135deg, #3d8bff 0%, #1f6feb 100%);

  /* 多彩分类色 */
  --c-house: #2d7ff9;
  --c-second: #ff7a1a;
  --c-car: #4f5bd5;
  --c-service: #00b894;
  --c-job: #e8437a;
  --c-pet: #8e5cf7;

  /* 语义色 */
  --green: #00b894;
  --green-bg: #e8faf4;
  --gold: #f5a524;
  --gold-bg: #fff8e6;
  --red: #f0435f;
  --red-bg: #fff0f3;
  --purple: #8e5cf7;
  --purple-bg: #f4efff;

  /* 文本 / 底 / 线 */
  --ink: #1b2436;
  --ink2: #5b6880;
  --ink3: #94a3b8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e7edf6;
  --line2: #f1f5fb;

  /* 阴影 / 圆角 */
  --sh-1: 0 1px 2px rgba(27, 36, 54, .06), 0 4px 14px rgba(27, 36, 54, .05);
  --sh-2: 0 4px 12px rgba(27, 36, 54, .08), 0 14px 36px rgba(27, 36, 54, .08);
  --sh-brand: 0 6px 18px rgba(255, 106, 31, .32);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;

  --wrap: 1200px;
  --head-h: 108px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ==========================  顶部小条 + 站头  ========================== */
.topbar {
  background: linear-gradient(90deg, #2b3346 0%, #384259 60%, #44506b 100%);
  color: #cfd8e8;
  font-size: 12.5px;
}
.topbar .wrap { display: flex; align-items: center; height: 36px; gap: 14px; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.city-pick { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #fff; font-weight: 600; }
.city-pick:hover { color: var(--brand-l); }

.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.site-head > .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 800;
  box-shadow: var(--sh-brand);
}
.logo .txt b { display: block; font-size: 20px; letter-spacing: .5px; line-height: 1.15; }
.logo .txt span { display: block; font-size: 11px; color: var(--ink3); letter-spacing: 1.2px; }

/* 搜索栏：导航栏下方独占一行（全站唯一入口） */
.search-bar { border-top: 1px solid var(--line-2, #f0f0f0); background: #fff; }
.search-bar > .wrap { display: flex; align-items: center; padding: 11px 0; }
.head-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.head-search .box {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 2px solid transparent; border-radius: 999px; padding: 0 6px 0 16px;
  transition: .18s;
}
.head-search .box:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 31, .1); }
.head-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 40px; }
.head-search select { border: 0; background: transparent; outline: none; color: var(--ink2); max-width: 110px; flex: none; cursor: pointer; }
.head-search .sp { width: 1px; height: 18px; background: var(--line); flex: none; }
.head-search .city-box {
  flex: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none;
  height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg);
  font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: .16s;
}
.head-search .city-box:hover, .head-search .city-box:focus-visible {
  background: var(--brand-bg); color: var(--brand-d); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 31, .12);
}
.head-search .city-box .ar { font-size: 9px; opacity: .6; }
.head-search .btn-go { flex: none; height: 40px; padding: 0 26px; border-radius: 999px; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; color: var(--ink2); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 5px; transition: .16s;
}
.nav-links a:hover { background: var(--brand-bg); color: var(--brand-d); }
.nav-links a.on { background: var(--brand-bg); color: var(--brand-d); }

.head-user { display: flex; align-items: center; gap: 8px; margin-left: 4px; flex: none; }

.user-chip { position: relative; }
.user-chip > button {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; transition: .16s;
}
.user-chip > button:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(255, 106, 31, .15); }
.user-chip .av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.user-chip .umenu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 186px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-2);
  padding: 6px; z-index: 80;
}
.user-chip .umenu a, .user-chip .umenu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 12px; border-radius: var(--r-s); cursor: pointer; color: var(--ink); font-size: 13.5px;
}
.user-chip .umenu a:hover, .user-chip .umenu button:hover { background: var(--brand-bg); color: var(--brand-d); }
.user-chip .umenu .sep { height: 1px; background: var(--line2); margin: 4px 6px; }

.btn-pub {
  flex: none; border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; background: var(--brand-grad);
  box-shadow: var(--sh-brand); transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-pub:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 106, 31, .38); }
.btn-pub:active { transform: translateY(0); }

/* 移动端汉堡 */
.burger { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; padding: 6px; }

/* ==========================  主搜索区（Hero）  ========================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #fff1e4 0%, #ffe9f0 38%, #e9f1ff 72%, #e8fbf6 100%);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5;
}
.hero::before { width: 380px; height: 380px; right: -90px; top: -160px; background: radial-gradient(circle, #ffd9b8, transparent 68%); }
.hero::after { width: 320px; height: 320px; left: -110px; bottom: -180px; background: radial-gradient(circle, #cfe1ff, transparent 68%); }
.hero .wrap { position: relative; padding: 44px 20px 40px; }
.hero h1 { font-size: 32px; line-height: 1.3; letter-spacing: -.4px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff6a1f, #e8437a 55%, #8e5cf7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--ink2); margin: 10px 0 24px; font-size: 14.5px; }

.hot-words { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.hot-words b { color: var(--ink); font-weight: 600; }
.hot-words a { background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); padding: 4px 12px; border-radius: 999px; transition: .16s; }
.hot-words a:hover { background: #fff; color: var(--brand-d); box-shadow: var(--sh-1); }

/* 数据条 */
.stat-strip { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.stat-strip div { text-align: left; }
.stat-strip b { display: block; font-size: 24px; letter-spacing: -.5px; }
.stat-strip span { color: var(--ink2); font-size: 12.5px; }

/* ==========================  分类九宫格  ========================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--r-l); padding: 18px 16px;
  color: #fff; box-shadow: var(--sh-1); transition: .2s; cursor: pointer; min-height: 116px;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); color: #fff; }
.cat-tile::after {
  content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  right: -42px; bottom: -52px; background: rgba(255, 255, 255, .18);
}
.cat-tile .ic { font-size: 26px; line-height: 1; }
.cat-tile .nm { font-size: 16px; font-weight: 700; margin: 12px 0 2px; }
.cat-tile .ds { font-size: 11.5px; opacity: .88; }
.cat-tile .ct {
  position: absolute; right: 14px; top: 14px; font-size: 11.5px; background: rgba(255, 255, 255, .25);
  padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(2px);
}
.cat-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-sub a { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink2); transition: .16s; }
.cat-sub a:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-bg); }

/* ==========================  区块 / 标题  ========================== */
.sec { padding: 26px 0; }
.sec-hd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.sec-hd .bar { width: 4px; height: 20px; border-radius: 3px; background: var(--brand-grad); }
.sec-hd h2 { font-size: 20px; }
.sec-hd .en { color: var(--ink3); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 2px; }
.sec-hd .more { margin-left: auto; color: var(--ink2); font-size: 13px; }
.sec-hd .more:hover { color: var(--brand); }
.sec-hd .tabs { margin-left: auto; display: flex; gap: 6px; }
.sec-hd .tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 15px;
  cursor: pointer; color: var(--ink2); font-size: 13px; transition: .16s;
}
.sec-hd .tabs button.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-d); font-weight: 600; }

.panel { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 20px; }
.panel + .panel { margin-top: 16px; }

/* ==========================  信息卡片（列表 / 网格）  ========================== */
.lgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.lcard {
  background: var(--card); border-radius: var(--r-m); overflow: hidden;
  box-shadow: var(--sh-1); transition: .2s; display: flex; flex-direction: column; cursor: pointer;
  border: 1px solid transparent;
}
.lcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #ffe0cc; }
.lcard .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--line2); overflow: hidden; }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.lcard:hover .thumb img { transform: scale(1.05); }
.lcard .badge-top {
  position: absolute; left: 8px; top: 8px; background: linear-gradient(135deg, #ffb020, #f5a524);
  color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; box-shadow: 0 2px 8px rgba(245, 165, 36, .45);
}
.lcard .badge-cat {
  position: absolute; right: 8px; top: 8px; background: rgba(27, 36, 54, .62); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
/* 需方发布（我想找）：右上角橙色圆标，与供方信息区分 */
.lcard .badge-role.demand {
  position: absolute; right: 8px; top: 34px; background: rgba(255, 122, 26, .92); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(255, 122, 26, .4);
}
.lcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.lcard .title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; height: 42px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px;
}
.lcard:hover .title { color: var(--brand-d); }
.lcard .price { color: var(--brand); font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.lcard .price small { font-size: 12px; font-weight: 600; margin-left: 2px; }
.lcard .meta { display: flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 12px; margin-top: auto; padding-top: 10px; }
.lcard .meta .loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.lcard .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); flex: none; }
.lcard .foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 10px; color: var(--ink3); font-size: 12px; }
.lcard .foot .nick { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.lcard .foot .nick i { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); font-style: normal; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.lcard .foot .rt { margin-left: auto; }

/* 列表行式（详情页侧栏 / 搜索结果紧凑） */
.lrow { display: flex; gap: 14px; background: #fff; border-radius: var(--r-m); padding: 12px; box-shadow: var(--sh-1); transition: .18s; cursor: pointer; border: 1px solid transparent; }
.lrow:hover { border-color: #ffe0cc; box-shadow: var(--sh-2); }
.lrow .thumb { width: 132px; height: 100px; border-radius: var(--r-s); overflow: hidden; flex: none; background: var(--line2); }
.lrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lrow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow .title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.lrow .title:hover { color: var(--brand); }
.lrow .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.lrow .meta { color: var(--ink3); font-size: 12.5px; margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.lrow .right { flex: none; text-align: right; display: flex; flex-direction: column; justify-content: space-between; }

/* ==========================  按钮体系（人性化：层级 / 尺寸 / 状态）  ========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 14px; padding: 0 20px; height: 40px;
  transition: .16s; white-space: nowrap; background: #fff; color: var(--ink);
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(45, 127, 249, .28); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 106, 31, .38); }
.btn-blue { background: var(--blue-grad); color: #fff; box-shadow: 0 6px 18px rgba(45, 127, 249, .3); }
.btn-blue:hover:not(:disabled) { transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, #12c99b, #00b894); color: #fff; box-shadow: 0 6px 18px rgba(0, 184, 148, .3); }
.btn-gold { background: linear-gradient(135deg, #ffc857, #f5a524); color: #7a4b00; box-shadow: 0 6px 18px rgba(245, 165, 36, .35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-d); background: var(--brand-bg); }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand-d); }
.btn-outline:hover:not(:disabled) { background: var(--brand-bg); }
.btn-danger { background: #fff; border-color: #ffd4dc; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); }
.btn-text { background: none; border: 0; color: var(--blue); padding: 0 6px; height: auto; font-weight: 600; }
.btn-text:hover { color: var(--blue-d); text-decoration: underline; }

.btn-lg { height: 48px; font-size: 16px; padding: 0 30px; border-radius: 999px; }
.btn-sm { height: 32px; font-size: 13px; padding: 0 14px; }
.btn-xs { height: 26px; font-size: 12px; padding: 0 10px; }
.btn-block { width: 100%; }

.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-outline.is-loading::after { border-color: rgba(255, 106, 31, .3); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 标签 / 徽标 */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 6px; background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.tag.green { background: var(--green-bg); color: #07876f; }
.tag.gold { background: var(--gold-bg); color: #a06a00; }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.gray { background: #f1f5f9; color: var(--ink2); }
.tag.purple { background: var(--purple-bg); color: #6d3fd6; }
/* 需方（求） */
.tag.want { background: #fff2e6; color: #c2590a; font-weight: 700; }
/* 商家（已通过营业执照认证） */
.tag.biz { background: linear-gradient(135deg, #2d7ff9, #4f5bd5); color: #fff; font-weight: 700; }

.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status.approved { background: var(--green-bg); color: #07876f; }
.status.pending { background: var(--gold-bg); color: #a06a00; }
.status.rejected { background: var(--red-bg); color: var(--red); }
.status.offline { background: #f1f5f9; color: var(--ink2); }
.status.sold { background: var(--purple-bg); color: #6d3fd6; }

/* ==========================  表单  ========================== */
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 13.5px; }
.field > label .req { color: var(--red); margin-left: 3px; }
.field .hint { color: var(--ink3); font-size: 12px; margin-top: 6px; }
.field .err { color: var(--red); font-size: 12px; margin-top: 6px; display: none; }
.field.has-err .err { display: block; }
.field.has-err .input, .field.has-err .select { border-color: var(--red); background: var(--red-bg); }

.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff;
  padding: 0 14px; height: 44px; outline: none; transition: .16s;
}
.textarea { padding: 12px 14px; height: auto; min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 106, 31, .1); }
.input::placeholder, .textarea::placeholder { color: #b8c2d3; }
.select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%235b6880' stroke-width='1.6' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--ink2); font-weight: 600; font-size: 13.5px; transition: .16s; }
.seg button.on { background: #fff; color: var(--brand-d); box-shadow: var(--sh-1); }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: var(--r-s);
  padding: 9px 14px; cursor: pointer; transition: .16s; background: #fff; font-size: 13.5px;
}
.checks label:hover { border-color: var(--brand-l); }
.checks input { accent-color: var(--brand); }
.checks label.on { border-color: var(--brand); background: var(--brand-bg); color: var(--brand-d); font-weight: 600; }

.agree { display: flex; gap: 8px; align-items: flex-start; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.agree input { margin-top: 3px; accent-color: var(--brand); flex: none; }

/* 省市区联级 */
.cascader { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* 图片上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.up-item { position: relative; width: 96px; height: 96px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .del {
  position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: rgba(27, 36, 54, .68); color: #fff; cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.up-add {
  width: 96px; height: 96px; border: 1.5px dashed var(--line); border-radius: var(--r-s); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; color: var(--ink3); font-size: 12px; transition: .16s;
}
.up-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.up-add b { font-size: 22px; font-weight: 400; line-height: 1; }

/* ---------- 资料附件 ---------- */
.attach-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.at-item {
  display: flex; align-items: center; gap: 8px; max-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.at-item .ic { font-size: 15px; flex: none; }
.at-item .nm {
  color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}
.at-item .nm:hover { color: var(--brand); }
.at-item .sz { color: var(--ink3); font-size: 11.5px; flex: none; }
.at-item .del {
  width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--line2);
  color: var(--ink2); cursor: pointer; font-size: 12px; line-height: 1; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.at-item .del:hover { background: #f0435f; color: #fff; }
.at-add {
  height: 36px; padding: 0 14px; border: 1.5px dashed var(--line); border-radius: 999px; background: #fff;
  display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--ink3); font-size: 12.5px; transition: .16s;
}
.at-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.at-add b { font-size: 15px; font-weight: 400; line-height: 1; }
.dl-list { display: grid; gap: 8px; }
.dl-list a {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-s);
  background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.dl-list a:hover { background: var(--brand-bg); color: var(--brand); }
.dl-list a .sz { margin-left: auto; color: var(--ink3); font-size: 12px; font-weight: 400; }

/* ==========================  额度条  ========================== */
.quota-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(100deg, #fff8f2, #f2f8ff 60%, #f0fdf8);
  border: 1px solid #ffe6d5; border-radius: var(--r-l); padding: 14px 18px;
}
.quota-bar .qi { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.quota-bar .qi b { font-size: 15px; }
.quota-bar .qi .pill { background: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 700; color: var(--brand-d); }
.quota-bar .qi.ok .pill { color: #07876f; }
.quota-bar .qi.no .pill { color: var(--red); }
.quota-bar .sp { margin-left: auto; }

/* ==========================  空态 / 分页  ========================== */
.empty { text-align: center; padding: 60px 20px; color: var(--ink3); }
.empty .ic { font-size: 48px; margin-bottom: 12px; opacity: .55; }
.empty p { margin: 0 0 16px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 26px 0 6px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink2); font-weight: 600; transition: .16s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-d); }
.pager button.on { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pinfo { color: var(--ink3); font-size: 12.5px; margin-left: 6px; }

/* ==========================  页脚  ========================== */
.site-foot { background: #232b3c; color: #a9b5cb; margin-top: 40px; padding: 40px 0 22px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 26px; }
@media (max-width: 1000px){ .site-foot .cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px){ .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.site-foot a { color: #a9b5cb; font-size: 13px; line-height: 2.1; display: block; }
.site-foot a:hover { color: var(--brand-l); }
.site-foot .kf-card { background: rgba(255, 255, 255, .05); border-radius: var(--r-m); padding: 14px 16px; }
.site-foot .kf-card .li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.site-foot .kf-card .li b { color: #fff; font-weight: 600; min-width: 44px; }
.site-foot .kf-card .cp {
  margin-left: auto; border: 1px solid rgba(255, 255, 255, .22); background: none; color: #cfd8e8;
  border-radius: 6px; font-size: 11px; padding: 1px 8px; cursor: pointer;
}
.site-foot .kf-card .cp:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-foot .btm { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 18px; font-size: 12.5px; text-align: center; line-height: 1.9; }

/* ==========================  Toast / 弹窗  ========================== */
#toastBox { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: #fff; border-radius: var(--r-m); box-shadow: var(--sh-2); padding: 12px 20px;
  display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; min-width: 210px;
  border-left: 4px solid var(--blue); animation: toastIn .26s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.mask { position: fixed; inset: 0; background: rgba(20, 27, 40, .48); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-2); width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; animation: popIn .22s; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .m-hd { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line2); }
.modal .m-hd h3 { font-size: 16.5px; }
.modal .m-hd .x { margin-left: auto; border: 0; background: none; font-size: 22px; color: var(--ink3); cursor: pointer; line-height: 1; padding: 0 4px; }
.modal .m-hd .x:hover { color: var(--ink); }
.modal .m-bd { padding: 20px 22px; }
.modal .m-ft { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* ==========================  详情页  ========================== */
.detail-grid { display: grid; grid-template-columns: 1fr 336px; gap: 20px; align-items: start; }
.gallery { background: #fff; border-radius: var(--r-l); padding: 16px; box-shadow: var(--sh-1); }
.gallery .main { border-radius: var(--r-m); overflow: hidden; background: var(--line2); aspect-ratio: 4/3; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs img { width: 78px; height: 62px; object-fit: cover; border-radius: var(--r-s); cursor: pointer; opacity: .62; border: 2px solid transparent; flex: none; transition: .16s; }
.gallery .thumbs img.on, .gallery .thumbs img:hover { opacity: 1; border-color: var(--brand); }

.d-title { font-size: 23px; line-height: 1.4; margin-bottom: 12px; }
.d-price { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.8px; display: flex; align-items: baseline; gap: 6px; }
.d-price small { font-size: 14px; font-weight: 600; }
.d-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.d-attrs span { background: var(--bg); border-radius: var(--r-s); padding: 7px 13px; font-size: 13px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.d-attrs span b { color: var(--ink); font-weight: 600; }
.d-desc { white-space: pre-wrap; line-height: 1.85; color: #33404f; font-size: 14.5px; }
.d-block { background: #fff; border-radius: var(--r-l); padding: 20px; box-shadow: var(--sh-1); margin-top: 16px; }
.d-block h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.d-block h3::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--brand-grad); }

.side-card { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 20px; position: sticky; top: calc(var(--head-h) + 16px); }
.side-card .who { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.side-card .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex: none; }
.side-card .who .nm { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.side-card .who .sb { font-size: 12px; color: var(--ink3); }
.phone-box {
  background: linear-gradient(120deg, #fff5ec, #eef5ff); border-radius: var(--r-m); padding: 16px; text-align: center; margin: 14px 0;
}
.phone-box .ph { font-size: 24px; font-weight: 800; letter-spacing: 1px; color: var(--brand-d); }
.phone-box .tip { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.risk-tip { background: var(--gold-bg); border-radius: var(--r-s); padding: 11px 13px; font-size: 12.5px; color: #8a5c00; line-height: 1.7; }

/* ==========================  个人中心  ========================== */
.uc-grid { display: grid; grid-template-columns: 218px 1fr; gap: 20px; align-items: start; }
.uc-menu { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 10px; position: sticky; top: calc(var(--head-h) + 16px); }
.uc-menu button {
  width: 100%; text-align: left; border: 0; background: none; padding: 12px 15px; border-radius: var(--r-m);
  cursor: pointer; color: var(--ink2); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 9px; transition: .16s;
}
.uc-menu button:hover { background: var(--bg); color: var(--ink); }
.uc-menu button.on { background: var(--brand-bg); color: var(--brand-d); }

.uc-card { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 22px; }
.uc-hero {
  background: linear-gradient(120deg, #ff7a1a, #ff5c2b 45%, #e8437a); color: #fff; border-radius: var(--r-l);
  padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--sh-brand);
}
.uc-hero .av { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex: none; }
.uc-hero .nm { font-size: 20px; font-weight: 800; }
.uc-hero .sb { opacity: .9; font-size: 13px; margin-top: 3px; }
.uc-hero .rt { margin-left: auto; text-align: right; font-size: 13px; }

/* ==========================  列表页筛选  ========================== */
.filter-panel { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 6px 20px 14px; }
.frow { display: flex; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line2); gap: 14px; }
.frow:last-child { border-bottom: 0; }
.frow .fl { color: var(--ink3); font-size: 13px; flex: none; width: 62px; padding-top: 5px; }
.frow .fr { display: flex; flex-wrap: wrap; gap: 6px 4px; flex: 1; }
.frow .fr a { padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--ink2); transition: .14s; }
.frow .fr a:hover { background: var(--bg); color: var(--brand-d); }
.frow .fr a.on { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(255, 106, 31, .28); }
.frow .fr a.disabled { color: #cbd5e1; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-bg); color: var(--brand-d); border-radius: 999px; padding: 5px 8px 5px 13px; font-size: 12.5px; font-weight: 600; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; opacity: .7; padding: 0 2px; }
.chip button:hover { opacity: 1; }

.res-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 14px; }
.res-head .cnt { color: var(--ink2); font-size: 13.5px; }
.res-head .cnt b { color: var(--brand); font-size: 17px; }
.res-head .sorts { margin-left: auto; display: flex; gap: 6px; }
.res-head .sorts button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 15px; cursor: pointer; color: var(--ink2); font-size: 13px; transition: .16s; }
.res-head .sorts button.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-d); font-weight: 600; }

/* ==========================  登录 / 注册  ========================== */
.auth-wrap { min-height: calc(100vh - 108px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; overflow: hidden;
  background: linear-gradient(125deg, #fff3e8 0%, #ffe9f1 35%, #e9f1ff 70%, #e7fbf5 100%); }
.auth-wrap::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -140px; top: -140px; background: radial-gradient(circle, #ffd9b8, transparent 66%); opacity: .7; }
.auth-card {
  position: relative; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2);
  width: 100%; max-width: 460px; padding: 34px 34px 30px;
}
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink3); font-size: 13.5px; margin-bottom: 24px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { flex: none; min-width: 118px; }

/* ==========================  杂项  ========================== */
.divider { height: 1px; background: var(--line2); margin: 20px 0; }
.crumb { color: var(--ink3); font-size: 13px; padding: 16px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }

.notice-bar {
  display: flex; align-items: center; gap: 10px; background: #fff8e6; border: 1px solid #ffe9b8;
  border-radius: var(--r-m); padding: 10px 16px; font-size: 13px; color: #8a5c00; margin: 16px 0 0;
}
.notice-bar .ic { flex: none; }
.notice-bar .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, #eef2f8 25%, #f6f9fd 37%, #eef2f8 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-s); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.offline-flag { position: fixed; left: 16px; bottom: 16px; background: #1b2436; color: #fff; font-size: 12px; padding: 7px 14px; border-radius: 999px; z-index: 500; opacity: .9; }

/* ==========================  响应式  ========================== */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .lgrid { grid-template-columns: repeat(3, 1fr); }
  .nav-links a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 1000px) {
  .tb-tip { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .uc-grid { grid-template-columns: 1fr; }
  .uc-menu { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .uc-menu button { white-space: nowrap; }
}
@media (max-width: 860px) {
  /* 搜索栏：窄屏换行堆叠，但绝不隐藏（它是全站唯一入口） */
  .search-bar > .wrap { padding: 10px 0; }
  .head-search { flex-wrap: wrap; gap: 8px; }
  .head-search .box { flex: 1 1 100%; }
  .head-search .city-box { flex: 1; justify-content: center; }
  .head-search .btn-go { flex: 1; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; padding: 12px 20px 18px; box-shadow: var(--sh-2); gap: 4px; z-index: 70; margin: 0;
    border-top: 1px solid var(--line);
  }
  .nav-links.open a { justify-content: flex-start; padding: 12px 14px; }
  .burger { display: block; margin-left: 8px; }
  .site-head .wrap { position: relative; }
  .uc-name { display: none; }
  .btn-pub { padding: 10px 14px; }
  .pub-t { display: none; }
  .pub-i { display: inline !important; }
  .tb-hide { display: none; }
  .hero h1 { font-size: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .row2, .row3, .cascader { grid-template-columns: 1fr; }
  .frow { flex-direction: column; gap: 6px; }
  .frow .fl { width: auto; padding-top: 0; }
  .lrow .thumb { width: 104px; height: 84px; }
  .stat-strip { gap: 18px; }
  .stat-strip b { font-size: 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .lgrid { grid-template-columns: 1fr; }
  .lcard .thumb { aspect-ratio: 16/10; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
  .uc-hero { flex-direction: column; align-items: flex-start; }
  .uc-hero .rt { margin-left: 0; text-align: left; }
}

/* ---------- 二选一卡片（供需方向 / 账号类型） ---------- */
.pub-role { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-role .pr-item {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
  padding: 12px 16px; border-radius: 12px; cursor: pointer; transition: .16s;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink2);
}
.pub-role .pr-item b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pub-role .pr-item span { font-size: 12.5px; color: var(--ink3); }
.pub-role .pr-item:hover { border-color: var(--brand); }
.pub-role .pr-item.on { border-color: var(--brand); background: var(--blue-bg); box-shadow: 0 3px 12px rgba(45, 127, 249, .18); }
.pub-role .pr-item.on b { color: var(--brand-d); }
.pub-role .pr-item.on span { color: var(--brand); }
@media (max-width: 640px) { .pub-role { grid-template-columns: 1fr; } }
