/* Hot gossip section */

.gossip-section {
  align-self: stretch;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

.gossip-feature {
  width: var(--layout-max-width);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1280 / 493;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

a.gossip-feature {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gossip-feature__img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  object-fit: cover;
  background: var(--color-neutral-50);
}

.gossip-feature__hot {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 90px;
  height: 44px;
  z-index: 2;
  object-fit: contain;
}

.gossip-feature__overlay {
  width: 100%;
  left: 0;
  bottom: 0;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.gossip-feature__meta-row {
  align-self: stretch;
  padding-left: 24px;
  padding-right: 24px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  display: flex;
}

.gossip-feature__meta {
  color: var(--color-neutral-50);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  word-wrap: break-word;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.60);
}

.gossip-feature__body {
  align-self: stretch;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(2px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.gossip-feature__title {
  align-self: stretch;
  color: white;
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

.gossip-section__rows {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gossip-section__row {
  align-self: stretch;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

/* PC: 一行 2 个；H5: 一行 1 个；首页共 4 个 */
.gossip-section__feature {
  display: none;
}

@media (min-width: 769px) {
  .gossip-section__feature {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
  }

  .gossip-section__rows .gossip-article--mobile {
    display: none;
  }
}

a.gossip-article {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gossip-article {
  width: 100%;
  max-width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: block;
}

.gossip-article__cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gossip-article__hot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 90px;
  height: 44px;
  z-index: 2;
  object-fit: contain;
}

.gossip-article__img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  object-fit: cover;
  background: #1a1a1a;
}

.gossip-article__overlay {
  width: 100%;
  left: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.gossip-article__title {
  align-self: stretch;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 20px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 28px;
  word-wrap: break-word;
}

.gossip-article__meta {
  align-self: stretch;
  padding-left: 24px;
  padding-right: 24px;
  color: #fafafa;
  font-size: 20px;
  font-family: PingFang SC, sans-serif;
  font-weight: 500;
  line-height: 28px;
  word-wrap: break-word;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .home-page .gossip-section {
    gap: 12px;
  }

  .home-page .gossip-section .section-header__marker {
    width: 6px;
    height: 16px;
    border-radius: 3px;
  }

  .home-page .gossip-section .section-title--sm {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--text-primary);
  }

  .home-page .gossip-section .section-header__more-text {
    font-size: 12px;
    line-height: 18px;
    color: var(--text-secondary);
  }

  .home-page .gossip-section .section-header__more-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-page .gossip-section .section-header__more-icon .icon {
    width: 18px;
    height: 18px;
  }

  .home-page .gossip-feature {
    width: 100%;
    height: 132px;
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .home-page .gossip-feature__overlay {
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
  }

  .home-page .gossip-feature__hot {
    top: 6px;
    right: 6px;
    width: 50px;
    height: 26px;
  }

  .home-page .gossip-feature__meta-row {
    order: 2;
    padding: 0;
    justify-content: center;
  }

  .home-page .gossip-feature__body {
    order: 1;
    padding: 0;
    background: transparent;
    align-items: center;
    gap: 0;
  }

  .home-page .gossip-feature__title {
    max-width: 315px;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
  }

  .home-page .gossip-feature__meta {
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #eee;
    text-shadow: none;
  }

  .home-page .gossip-section__rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-page .gossip-section__rows > .gossip-article:nth-child(n + 6) {
    display: none;
  }

  /* H5: 图片打底 + 居中文字浮层卡片 */
  .home-page .gossip-article {
    height: 132px;
    border-radius: 12px;
  }

  .home-page .gossip-article__hot {
    top: 6px;
    right: 6px;
    width: 50px;
    height: 26px;
  }

  .home-page .gossip-article__overlay {
    inset: 0;
    top: 0;
    height: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
  }

  .home-page .gossip-article__title {
    align-self: center;
    max-width: 315px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .home-page .gossip-article__meta {
    align-self: center;
    padding: 0;
    text-align: center;
    color: #eee;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-shadow: none;
  }
}

/* ≥769px 首页吃瓜精选区,对齐设计稿节点 32508:140041(.gossip-section__rows 仅首页有,
   postAll/postRank 的 .gossip-feature 不带该容器;≤768 是另一套 H5 设计,均不受影响)。
   设计形态:大卡 1280×493 的博主/时间/标题【压在封面上】(基础样式已是该形态,故此处不覆盖),
   小卡 631×306 = 封面 631×230 + 6px + 标题(16/22,两行 44px) + 6px + meta(14/20),信息在封面下方。 */
@media (min-width: 769px) {
  /* 1280 版心内两列 631 需要 18px 间距(设计稿 649-631=18,行距同值) */
  .gossip-section__rows {
    gap: 18px;
  }

  .gossip-section__rows .gossip-article {
    height: auto;
    overflow: visible;
    border-radius: 0;
  }

  /* 封面回归文档流并按设计比例;热点角标定位基准随之变成封面本身
     (设计里角标就在封面内 12px 处),不再相对整张卡片 */
  .gossip-section__rows .gossip-article__cover {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 631 / 230;
    border-radius: 20px;
    overflow: hidden;
  }

  .gossip-section__rows .gossip-article__overlay {
    position: static;
    margin-top: 6px;
    gap: 6px;
  }

  /* 设计顺序是标题在前、meta 在后,与模板 DOM 顺序相反;用 order 翻转,
     不动 DOM 以免影响 ≤768 的另一套设计 */
  .gossip-section__rows .gossip-article__title {
    order: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    /* 固定两行(设计 44px):标题长短不一时同排卡片的 meta 行仍对齐 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
  }

  .gossip-section__rows .gossip-article__meta {
    order: 1;
    padding: 0;
    color: var(--text-secondary);
    text-shadow: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
