/* ============================================================================
 * M153 频道主题五级色阶与业务差异化层
 * 作用域：仅 body[data-channel] 生效；复用 M152 布局与全局组件。
 * ============================================================================ */

/* ---- 主题触点：导航 / 分类 / 按钮 / 表单 / 分页 / 状态 ---- */
body[data-channel] .v4-site .sx-btn.primary {
  border-color: var(--sx-chan);
  background: var(--sx-chan);
}
body[data-channel] .v4-site .sx-btn.primary:hover,
body[data-channel] .v4-site .sx-btn.primary:focus-visible {
  background: var(--sx-chan-hover);
}
body[data-channel] .v4-site .sx-btn.outline {
  border-color: var(--sx-chan-70);
  color: var(--sx-chan);
}
body[data-channel] .v4-site .sx-btn.outline:hover,
body[data-channel] .v4-site .sx-btn.outline:focus-visible {
  background: var(--sx-chan-10);
}
body[data-channel] .m150-filter-row .sx-tag.gray,
body[data-channel] .m152-sort button {
  border-color: var(--sx-chan-30);
}
body[data-channel] .m150-filter-row .sx-tag.gray:hover,
body[data-channel] .m152-sort button:hover {
  color: var(--sx-chan);
  border-color: var(--sx-chan-70);
  background: var(--sx-chan-05);
}
body[data-channel] .m150-filter-row .sx-tag.green,
body[data-channel] .m152-sort button.active {
  color: var(--sx-chan);
  border-color: var(--sx-chan);
  background: var(--sx-chan-10);
}
body[data-channel] .m152-field input,
body[data-channel] .m152-field select {
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
body[data-channel] .m152-field input:focus,
body[data-channel] .m152-field select:focus {
  border-color: var(--sx-chan);
  box-shadow: 0 0 0 3px var(--sx-chan-10);
  outline: none;
}
body[data-channel] .zltc-pager a:not(.disabled):hover,
body[data-channel] .zltc-pager a:not(.disabled):focus-visible {
  color: var(--sx-chan);
  border-color: var(--sx-chan-70);
}
body[data-channel] .zltc-crumb a,
body[data-channel] .zltc-crumb a:hover {
  color: var(--sx-chan);
}
body[data-channel] .sx-empty .illus,
body[data-channel] .zltc-v2-empty .illus {
  background-color: var(--sx-chan-10);
  box-shadow: inset 0 0 0 1px var(--sx-chan-30);
}
body[data-channel] .m152-skeleton {
  background: linear-gradient(90deg, var(--sx-chan-05), var(--sx-white), var(--sx-chan-05));
}

/* ---- 频道 Hero：五级底色 + 百色轻量装饰 ---- */
body[data-channel] .m150-channel-hero,
body[data-channel] .m152-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sx-chan-10), var(--sx-chan-05) 48%, var(--sx-white));
}
body[data-channel] .m150-channel-hero::after,
body[data-channel] .m152-hero::after {
  content: "";
  position: absolute;
  inset: auto -32px -46px auto;
  width: 220px;
  height: 120px;
  opacity: 0.55;
  background: var(--sx-chan-30);
  clip-path: polygon(0 100%, 22% 46%, 47% 78%, 70% 24%, 100% 68%, 100% 100%);
}
body[data-channel="travel"] .m150-channel-hero::after,
body[data-channel="travel"] .m152-hero::after {
  background:
    radial-gradient(circle at 18% 82%, var(--sx-chan-30) 0 18%, transparent 19%),
    radial-gradient(circle at 52% 66%, var(--sx-chan-30) 0 24%, transparent 25%),
    radial-gradient(circle at 84% 80%, var(--sx-chan-30) 0 20%, transparent 21%);
  clip-path: none;
}
body[data-channel="wiki"] .m150-channel-hero::after,
body[data-channel="wiki"] .m152-hero::after {
  background: repeating-linear-gradient(45deg, var(--sx-chan-30) 0 2px, transparent 2px 9px);
  clip-path: none;
}

/* ---- M153 通用内容入口 ---- */
body[data-channel] .m153-entry,
body[data-channel] .m153-card {
  color: inherit;
  text-decoration: none;
}
body[data-channel] .m153-entry:hover,
body[data-channel] .m153-entry:focus-visible,
body[data-channel] .m153-card:hover,
body[data-channel] .m153-card:focus-visible {
  border-color: var(--sx-chan-70);
  box-shadow: 0 10px 26px rgba(26, 38, 34, 0.09);
}
body[data-channel] .m153-entry:hover .sx-card-title,
body[data-channel] .m153-card:hover h3 {
  color: var(--sx-chan);
}
body[data-channel] .m153-cover {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--sx-chan-10), var(--sx-chan-05)),
    var(--sx-white);
}
body[data-channel] .m153-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease-out;
}
body[data-channel] .m153-card:hover .m153-cover img,
body[data-channel] .m153-entry:hover .m153-cover img {
  transform: scale(1.04);
}
body[data-channel] .m153-cover__empty::after {
  content: "暂无图片";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sx-chan);
  font-size: 12px;
}
body[data-channel] .m153-price {
  color: var(--sx-chan);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.4;
}
body[data-channel] .m153-price__unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
}

/* ---- 搜索结果：原生详情入口 + 操作区分离 ---- */
.m153-search-card { padding: 0; overflow: hidden; }
.m153-search-card__main {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.m153-search-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.m153-search-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}
.m153-search-card .m153-price { font-size: 18px; }
.m153-search-card__main:hover .sx-card-title,
.m153-search-card__main:focus-visible .sx-card-title { color: var(--sx-primary); }

/* ---- 频道首页卡片：招聘文本 / 租房横图 / 二手纵图 / 百科严谨 ---- */
body[data-channel="job"] .m153-entry { border-left: 3px solid var(--sx-chan-70); }
body[data-channel="job"] .m153-entry .m153-price { font-size: 18px; }
body[data-channel="rent"] .m153-entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}
body[data-channel="rent"] .m153-entry .m153-cover { min-height: 112px; }
body[data-channel="second"] .m153-entry {
  display: flex;
  flex-direction: column;
}
body[data-channel="second"] .m153-entry .m153-cover { aspect-ratio: 4 / 3; }
body[data-channel="second"] .m153-entry .m153-cover + .sx-card-body { border-top: 1px solid var(--sx-chan-10); }
body[data-channel="wiki"] .m153-entry {
  border-left: 3px solid var(--sx-chan-30);
  background: linear-gradient(180deg, var(--sx-white), var(--sx-chan-05));
}
body[data-channel] .m153-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
body[data-channel] .m153-rank:hover,
body[data-channel] .m153-rank:focus-visible {
  background: var(--sx-chan-05);
  transform: translateX(2px);
}
body[data-channel] .m153-rank__no {
  flex: 0 0 24px;
  color: var(--sx-chan);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
body[data-channel] .m153-rank__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-channel] .m153-rank__price {
  color: var(--sx-chan);
  font-size: 13px;
  font-weight: 700;
}

/* ---- M152 分类列表差异化：招聘左文 / 租房左图 / 二手上图 ---- */
body[data-channel="job"] .m152-list { grid-template-columns: 1fr; }
body[data-channel="job"] .m153-card,
body[data-channel="job"] #m152-related .m152-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: center;
  border-left: 3px solid var(--sx-chan-70);
}
body[data-channel="job"] .m153-card .m153-price,
body[data-channel="job"] #m152-related .m152-card .m153-price { margin: 0; text-align: right; }
body[data-channel="rent"] .m152-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-channel="rent"] .m153-card,
body[data-channel="rent"] #m152-related .m152-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
}
body[data-channel="rent"] .m153-card .m153-cover { min-height: 148px; }
body[data-channel="second"] .m152-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-channel="second"] .m153-card,
body[data-channel="second"] #m152-related .m152-card { padding: 0; overflow: hidden; }
body[data-channel] #m152-related .m152-card { border: 1px solid var(--sx-border); background: var(--sx-white); }
body[data-channel] #m152-related .m152-card .m153-card__body { padding: 16px; }
body[data-channel="second"] .m153-card .m153-cover { aspect-ratio: 4 / 3; }
body[data-channel="second"] .m153-card__body { padding: 16px; }
body[data-channel="second"] .m153-card__meta { margin-top: 8px; color: var(--sx-text-3); font-size: 12px; }
body[data-channel] .m153-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
body[data-channel] .m153-card__tag {
  padding: 3px 8px;
  border: 1px solid var(--sx-chan-30);
  border-radius: 999px;
  background: var(--sx-chan-05);
  color: var(--sx-chan);
  font-size: 12px;
  line-height: 1.5;
}

/* ---- 详情页：主题化关键信息 / 图集 / 推荐闭环 ---- */
body[data-channel] .m152-detail-head { border-bottom: 1px solid var(--sx-chan-10); }
body[data-channel] .m152-info > div { background: var(--sx-chan-05); }
body[data-channel] .m152-info strong { color: var(--sx-chan); }
body[data-channel] .m152-content { border-left: 3px solid var(--sx-chan-30); }
body[data-channel] .m153-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
body[data-channel] .m153-gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--sx-chan-05);
  overflow: hidden;
}
body[data-channel] .m153-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 其它活跃频道：业务信息层级轻量强化 ---- */
body[data-channel="food"] .sx-ch-card { border-top: 3px solid var(--sx-chan-30); }
body[data-channel="food"] .sx-ch-card .title { font-size: 16px; font-weight: 700; }
body[data-channel="food"] .sx-ch-card .desc { color: var(--sx-text-2); }
body[data-channel="service"] .m122-card { border-left: 3px solid var(--sx-chan-70); }
body[data-channel="service"] .m122-card:hover { border-left-color: var(--sx-chan); }
body[data-channel="travel"] #ac-list > .sx-card { border-top: 3px solid var(--sx-chan-30); }
body[data-channel="travel"] #ac-list > .sx-card:hover { border-top-color: var(--sx-chan); }

@media (max-width: 1199px) {
  body[data-channel="second"] .m152-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-channel="rent"] .m153-entry { grid-template-columns: 108px minmax(0, 1fr); }
  body[data-channel] .m153-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  body[data-channel] .m152-list,
  body[data-channel="second"] .m152-list { grid-template-columns: 1fr; }
  body[data-channel="job"] .m153-card,
  body[data-channel="rent"] .m153-card { grid-template-columns: 1fr; }
  body[data-channel="job"] .m153-card .m153-price { text-align: left; }
  body[data-channel="rent"] .m153-card .m153-cover { min-height: 180px; }
  body[data-channel] .m153-gallery { grid-template-columns: 1fr; }
}
