/* ==========================================================================
   频道专业化样式  ——  房屋=房源参数型 / 二手=闲置好物型 / 二手车=车况参数型 / 服务=口碑服务型 / 招聘=职位卡片型
   ========================================================================== */

/* ---------- LOGO ---------- */
.logo-svg { display: block; flex: none; border-radius: 11px; }
.logo { display: flex; align-items: center; gap: 9px; }

/* ---------- 顶部导航（简洁，无内嵌发布按钮） ---------- */
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-cell { display: inline-flex; align-items: center; }
.nav-cell .navi { padding: 7px 9px; border-radius: 8px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.nav-cell .navi.on, .nav-cell .navi:hover { color: var(--brand); background: var(--brand-bg); font-weight: 700; }

/* 频道板块标题里的「我要发布」按钮 */
.btn-pub-sm {
  margin-left: auto; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--brand-grad); padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 106, 31, .28); transition: .18s; white-space: nowrap;
}
.btn-pub-sm:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(255, 106, 31, .38); }

/* ---------- 首页：每个频道板块下的细分子导航条 ---------- */
.chan-subbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 14px; background: var(--card);
  border: 1px solid var(--line2); border-radius: var(--r-m);
}
.chan-subbar a {
  font-size: 13px; color: var(--ink2); padding: 4px 11px; border-radius: 999px;
  background: var(--bg); transition: .16s; white-space: nowrap;
}
.chan-subbar a:hover { color: var(--brand); background: var(--brand-bg); }
.chan-subbar a.on { color: #fff; background: var(--brand-grad); font-weight: 700; }
.chan-subbar .cs-pub {
  margin-left: auto; color: var(--brand); background: var(--brand-bg); font-weight: 700;
  border: 1px dashed #ffc9a8;
}
.chan-subbar .cs-pub:hover { background: var(--brand); color: #fff; }
/* 展开「其他栏目」的开关 */
.chan-subbar .cs-other {
  color: var(--ink3); background: transparent; border: 1px solid var(--line2);
  font-size: 12.5px; padding: 4px 10px;
}
.chan-subbar .cs-other .ar { font-size: 9px; opacity: .7; display: inline-block; transition: .18s; }
.chan-subbar .cs-other:hover { color: var(--brand); border-color: #ffd9bf; }
.chan-subbar .cs-other.on { color: var(--brand); background: var(--brand-bg); border-color: #ffd9bf; font-weight: 700; }
.chan-subbar .cs-other.on .ar { transform: rotate(180deg); }

/* ---------- 列表页：频道子导航大条 ---------- */
.chan-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--cc, #2d7ff9) 0%, #ffffff 240%);
  border-radius: var(--r-m); padding: 14px 16px; margin: 12px 0 4px; color: #fff;
}
.chan-nav .cn-head { display: flex; align-items: center; gap: 8px; flex: none; }
.chan-nav .cn-head .cn-ic { font-size: 22px; }
.chan-nav .cn-head b { font-size: 16.5px; letter-spacing: .3px; }
.chan-nav .cn-head .cn-tip { font-size: 12px; opacity: .92; }
.chan-nav .cn-subs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.chan-nav .cn-subs a {
  font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .18);
  padding: 4px 10px; border-radius: 999px; transition: .16s; white-space: nowrap;
}
.chan-nav .cn-subs a:hover { background: rgba(255, 255, 255, .38); }
.chan-nav .cn-subs a.on { background: #fff; color: var(--cc, #2d7ff9); font-weight: 800; }
/* 「其他」兜底入口：细分列表里没有的品类，可发布也可查找 */
.chan-nav .cn-subs a.cn-other { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); font-weight: 700; }
.chan-nav .cn-subs a.cn-other::after { content: '＋'; margin-left: 3px; font-size: 11px; opacity: .9; }
.chan-nav .cn-subs a.cn-other.on { background: #fff; color: var(--cc, #2d7ff9); }
/* 发布分供需两个方向 */
.chan-nav .cn-pubs { flex: none; display: flex; align-items: center; gap: 8px; }
.chan-nav .cn-pub {
  flex: none; font-size: 13px; font-weight: 800; color: var(--cc, #2d7ff9); background: #fff;
  padding: 7px 16px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
  white-space: nowrap;
}
.chan-nav .cn-pub:hover { transform: translateY(-1px); }
/* 需方发布：同色系描边款，与供方（实心白底）区分开 */
.chan-nav .cn-pub.demand {
  background: rgba(255, 255, 255, .14); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85);
}

/* 其他栏目：在任一子栏目里都能一键跳去别的大类 —— 通用结构 */
.cn-others { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cn-others.hide { display: none; }
.co-lb { font-size: 12px; flex: none; }
.co-b {
  font-size: 12px; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; transition: .16s;
}

/* 首页板块：独立的浅色小条（默认收起，点「其他栏目」展开） */
.cn-others.co-inline {
  padding: 9px 12px; margin: -4px 0 14px; background: var(--card);
  border: 1px dashed var(--line2); border-radius: var(--r-m);
}
.cn-others.co-inline .co-lb { color: var(--ink3); }
.cn-others.co-inline .co-b { color: var(--ink2); background: var(--bg); }
.cn-others.co-inline .co-b:hover { color: var(--brand); background: var(--brand-bg); border-color: #ffd9bf; font-weight: 700; }
.cn-others.co-inline .co-b.on { color: #fff; background: var(--brand-grad); font-weight: 800; cursor: default; }

/* 列表页频道大条内的白色版 */
.chan-nav .cn-others {
  width: 100%; border-top: 1px solid rgba(255, 255, 255, .24);
  padding-top: 10px; margin-top: 2px;
}
.chan-nav .co-lb { opacity: .85; }
.chan-nav .co-b { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); }
.chan-nav .co-b:hover { background: #fff; color: var(--cc, #2d7ff9); font-weight: 700; }
.chan-nav .co-b.on { background: #fff; color: var(--cc, #2d7ff9); font-weight: 800; border-color: #fff; cursor: default; }

/* ---------- 频道卡片通用 ---------- */
.ccard {
  background: var(--card); border-radius: var(--r-m); overflow: hidden; display: flex;
  flex-direction: column; box-shadow: var(--sh-1); border: 1px solid transparent;
  transition: .2s; cursor: pointer; position: relative;
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ccard .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--line2); overflow: hidden; flex: none; }
.ccard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.ccard:hover .thumb img { transform: scale(1.05); }
.ccard .badge {
  position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; color: #fff;
}
.ccard .badge.top { background: linear-gradient(135deg, #ffb020, #f5a524); }
.ccard .badge.deal {
  left: auto; right: 8px; background: rgba(27, 36, 54, .62); max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ccard .badge.cond { background: rgba(27, 36, 54, .66); }
.ccard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ccard .t {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ccard:hover .t { color: var(--brand-d); }
.ccard .spec { font-size: 12.5px; color: var(--ink2); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .loc, .ccard .loc2 { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .loc2 { padding: 0 14px 12px; }
.ccard .foot { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.ccard .p { color: var(--brand); font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.ccard .p small { font-size: 12px; font-weight: 600; }
.ccard .p.talk { font-size: 15px; }
.ccard .up { font-size: 12px; color: var(--ink3); margin-left: auto; }
.ccard .mini { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--bg); color: var(--ink2); }
.ccard .mini.blue { background: var(--blue-bg); color: var(--blue); }
.ch-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0 2px; }
.ch-tags span { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--bg); color: var(--ink2); }
.ch-tags span.green { background: var(--green-bg); color: #07876f; }
.ch-tags span.blue { background: var(--blue-bg); color: var(--blue-d); }
.ch-tags span.pink { background: var(--red-bg); color: #d0305c; }
.ch-tags span.purple { background: var(--purple-bg); color: #7a44e8; }
.ch-tags span.gold { background: var(--gold-bg); color: #b57b09; }

/* 房源卡：户型 / 面积 / 楼层 / 单价 */
.ch-house:hover { border-color: #bcd9ff; }
.ch-house .foot .p { color: var(--c-house); }

/* 闲置好物卡：正方形图 + 成色 + 卖家行 */
.ch-second .thumb { aspect-ratio: 1 / 1; }
.ch-second .body { padding-top: 10px; }
.ch-second .seller {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 9px;
  border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink3);
}
.ch-second .seller .av {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-bg); color: var(--brand);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.ch-second .seller .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.ch-second .seller .wt { margin-left: auto; }

/* 车况卡：上牌 / 里程 / 变速箱 */
.ch-car:hover { border-color: #c3c8f5; }
.ch-car .foot .p { color: var(--c-car); }

/* 58 风服务卡：评分 + 立即预约 */
.ch-service .score { font-size: 12.5px; color: var(--ink2); margin-bottom: 5px; }
.ch-service .score b { color: var(--gold); font-size: 15px; }
.ch-service .score .dot { margin: 0 6px; color: var(--line); }
.ch-service .foot { align-items: center; }
.ch-service .foot .p { color: var(--c-service); }
.ch-service .btn-chat {
  margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--c-service);
  padding: 5px 13px; border-radius: 999px;
}
.ch-service:hover .btn-chat { background: #00a383; }

/* BOSS 风职位卡：左信息 右沟通 */
.ch-job { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.ch-job:hover { border-color: #ffc8dc; }
.ch-job .body { flex: 1; min-width: 0; padding: 0; }
.ch-job .row1 { display: flex; align-items: center; gap: 10px; }
.ch-job .job { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-job .salary { margin-left: auto; color: var(--c-job); font-size: 16px; font-weight: 800; flex: none; }
.ch-job .salary small { font-size: 11.5px; font-weight: 600; margin-left: 2px; }
.ch-job .row2 { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink2); }
.ch-job .jt { font-size: 11px; background: var(--red-bg); color: #d0305c; padding: 2px 7px; border-radius: 5px; }
.ch-job .meta { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.ch-job .side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ch-job .side .av {
  width: 40px; height: 40px; border-radius: 10px; background: var(--red-bg); color: var(--c-job);
  font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.ch-job .side .chat {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--c-job);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.ch-job:hover .side .chat { background: #d42f68; }
.ch-pet:hover { border-color: #d3c4ff; }
/* 职位卡在网格里整行铺开（BOSS 的列表感） */
.lgrid .ch-job { grid-column: 1 / -1; }

/* ---------- 详情页频道参数表 ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-grid .sp {
  background: var(--bg); border-radius: var(--r-s); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.spec-grid .sp .k { font-size: 12px; color: var(--ink3); }
.spec-grid .sp .v { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; }

/* ---------- 发布页：三列字段 + 标签多选 ---------- */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 7px; }
.tagpick button {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line2); color: var(--ink2); transition: .16s;
}
.tagpick button:hover { border-color: var(--brand-l); color: var(--brand); }
.tagpick button.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-d); font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .row3 { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .chan-nav .cn-pubs { width: 100%; }
  .chan-nav .cn-pub { flex: 1; text-align: center; }
  .chan-nav .cn-head .cn-tip { display: none; }
}
@media (max-width: 640px) {
  .row3 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .chan-subbar a { font-size: 12px; padding: 4px 9px; }
  .ch-job { flex-direction: column; align-items: stretch; }
  .ch-job .side { flex-direction: row; justify-content: space-between; align-items: center; }
}
