/* 新浪家居频道页：参考焦点家居资讯双栏信息流，沿用本站 header 主视觉 */

.xljj-channel-page {
  background: linear-gradient(180deg, #f6f7f9 0%, #fff 280px);
  color: #222;
}

.channel-page-main {
  padding: 20px 0 64px;
}

.channel-page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.channel-page-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.channel-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 0 12px;
}

.channel-page-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.channel-page-tab:hover {
  border-color: #e60012;
  color: #e60012;
}

.channel-page-tab.is-active {
  background: #e60012;
  border-color: #e60012;
  color: #fff;
  font-weight: 600;
}

.channel-page-heading {
  margin: 0 0 18px;
}

.channel-page-heading.is-seo-only {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 0;
}

.channel-page-heading[hidden] {
  display: none !important;
}

.channel-page-heading h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

.channel-page-heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.channel-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.channel-page-feed {
  min-width: 0;
}

.channel-headlines {
  margin: 0 0 18px;
  padding: 4px 0 2px;
}

.channel-headline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
  color: #1a1a1a;
  text-decoration: none;
}

.channel-headline-item:last-child {
  margin-bottom: 0;
}

.channel-headline-item:hover .channel-headline-title {
  color: #e60012;
}

.channel-headline-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 6px;
  background: #e60012;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 2px;
}

.channel-headline-title {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-hero {
  --hero-side-thumb-w: 96px;
  --hero-side-gap: 10px;
  --hero-side-pad: 8px;
  /* 单条侧栏高度 = 缩略图 3:2 + 上下内边距 */
  --hero-side-item-h: calc(var(--hero-side-thumb-w) * 2 / 3 + var(--hero-side-pad) * 2);
  /* 以右侧满额 4 条为标准高度（不足 4 条时左侧仍保持此高度） */
  --hero-side-stack-h: calc(var(--hero-side-item-h) * 4 + var(--hero-side-gap) * 3);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-bottom: 20px;
  align-items: start;
}

.channel-hero-lead {
  position: relative;
  display: block;
  width: 100%;
  height: var(--hero-side-stack-h);
  min-height: var(--hero-side-stack-h);
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
}

.channel-hero-toutiao {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  margin-right: 8px;
  padding: 0 6px;
  vertical-align: middle;
  background: #e60012;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border-radius: 2px;
}

.channel-hero-toutiao--sm {
  height: 18px;
  margin-right: 6px;
  padding: 0 5px;
  font-size: 11px;
}

.channel-hero-side-thumb {
  position: relative;
  display: block;
  width: var(--hero-side-thumb-w, 96px);
  aspect-ratio: 3 / 2;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2f2f2;
}

.channel-hero-lead img,
.channel-hero-lead-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.channel-hero-lead-ph {
  background: linear-gradient(135deg, #333, #111);
}

.channel-hero-lead-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.channel-hero-lead-copy h2 {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.channel-hero-lead-title {
  min-width: 0;
  flex: 1;
}

.channel-hero-lead-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-hero-side {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hero-side-gap, 10px);
  min-height: var(--hero-side-stack-h);
  box-sizing: border-box;
}

.channel-hero-side a {
  display: grid;
  grid-template-columns: var(--hero-side-thumb-w, 96px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #222;
  background: #fff;
  border: 1px solid #ececec;
  padding: var(--hero-side-pad, 8px);
  height: var(--hero-side-item-h);
  min-height: var(--hero-side-item-h);
  box-sizing: border-box;
}

.channel-hero-side a:hover .channel-hero-side-title-text {
  color: #e60012;
}

.channel-hero-side-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f2f2f2;
}

.channel-hero-side-title {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.channel-hero-side-title-text {
  min-width: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.channel-feed-item.is-infinite-pending {
  display: none !important;
}

.channel-feed-item {
  margin: 0;
  border-bottom: 1px solid #ececec;
}

.channel-feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.channel-feed-card.no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.channel-feed-card.cover-triple {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.channel-feed-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
  order: 2;
}

.channel-feed-body {
  order: 1;
  min-width: 0;
}

.channel-feed-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.channel-feed-cover:hover img {
  transform: scale(1.04);
}

.channel-feed-cover-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  order: 2;
}

.channel-feed-cover-cell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2;
}

.channel-feed-cover-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.channel-feed-cover-cell:hover img {
  transform: scale(1.04);
}

.channel-feed-body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 650;
}

.channel-feed-body h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.channel-feed-body h2 a:hover {
  color: #e60012;
}

body[data-biz="XLJJ"].sys-default-pack .channel-feed-body h2 a:hover,
body[data-biz="XLJJ"].sys-default-pack .channel-headline-item:hover .channel-headline-title {
  color: #e60012;
}

.channel-feed-summary {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: #8c8c8c;
  font-size: 13px;
}

.channel-feed-meta .original-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 18px;
  line-height: 1;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  color: #e60012;
  border: 1px solid #e60012;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
}

.channel-feed-meta a {
  color: inherit;
  text-decoration: none;
}

.channel-feed-meta a:hover {
  color: #e60012;
}

.channel-page-side.side-bar {
  width: 100%;
  position: static;
}

.channel-page-side .side-bar-item {
  background: #fff;
  border: 1px solid #ececec;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .channel-page-layout {
    grid-template-columns: 1fr;
  }

  .channel-hero {
    grid-template-columns: 1fr;
  }

  .channel-hero-lead {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 3;
  }

  .channel-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .channel-hero-side a {
    height: auto;
    min-height: var(--hero-side-item-h);
  }
}

@media (max-width: 720px) {
  .channel-page-heading h1 {
    font-size: 22px;
  }

  .channel-headline-title {
    font-size: 17px;
  }

  .channel-headline-item {
    margin-bottom: 12px;
  }

  .channel-hero-lead-copy h2 {
    font-size: 18px;
  }

  .channel-hero-side {
    grid-template-columns: 1fr;
  }

  .channel-feed-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    padding: 14px 0;
  }

  .channel-feed-card.cover-triple {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-feed-body h2 {
    font-size: 16px;
  }

  .channel-feed-meta {
    align-items: center;
    gap: 6px 8px;
  }

  .channel-feed-meta > * {
    display: inline-flex;
    align-items: center;
    height: 16px;
    line-height: 1;
  }

  .channel-feed-meta .original-tag {
    height: 16px;
    padding: 0 5px;
    font-size: 11px;
  }
}
