/* Community 页面顶部区：渐变底图 + 面包屑 + FAQ 标题图。
   渐变层 absolute inset:0，hero 高度即「视口顶 → faq 图片下边缘」。 */

.community-page .community-hero {
  --community-hero-header-fallback: 60px;
  --community-hero-header-offset: var(
    --header-h,
    var(--community-hero-header-fallback)
  );
  position: relative;
  padding-top: calc(var(--community-hero-header-offset) + 24px);
  padding-bottom: 0;
}

/* 渐变背景：拉伸铺满，保证顶/底渐变色准确落位 */
.community-page .community-hero .community-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #c5ccd5 0%, #fff 100%);
  pointer-events: none;
}

.community-page .community-hero .community-hero__top-right-bg {
  position: absolute;
  z-index: 1;
  top: var(--community-hero-header-offset);
  right: 0;
  width: 309px;
  aspect-ratio: 441 / 1179;
  background: url('../../../images/community/bg-top-right.svg') right top / contain no-repeat;
  pointer-events: none;
}

.community-page .community-hero .community-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
}

.community-page .community-hero .community-hero__breadcrumb {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #303030;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
}

.community-page .community-hero .community-hero__breadcrumb-home {
  display: block;
  flex-shrink: 0;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.community-page .community-hero .community-hero__breadcrumb-home:hover {
  opacity: 0.8;
}

.community-page .community-hero .community-hero__breadcrumb-home:focus-visible {
  opacity: 0.8;
}

.community-page .community-hero .community-hero__breadcrumb-icon {
  width: 20px;
  height: 21px;
  -o-object-fit: contain;
     object-fit: contain;
}

@media (max-width: 639px) {
  .community-page .community-hero .community-hero__breadcrumb {
    position: relative;
    top: auto;
    left: auto;
  }

  .community-page .community-hero .community-hero__top-right-bg {
    width: min(110px, 29vw);
  }
}

@media (min-width: 960px) and (max-width: 1679px) {
  .community-page .community-hero .community-hero__top-right-bg {
    width: calc(309px * 0.65);
  }
}

.community-page .community-hero .community-hero__breadcrumb-separator,
.community-page .community-hero .community-hero__breadcrumb-current {
  color: #303030;
}

/* FAQ 标题图：水平居中，下边缘紧贴折叠列表 */
@media (min-width: 640px) {
  .community-page .community-hero {
    --community-hero-header-fallback: 84px;
  }
}

@media (min-width: 768px) {
  .community-page .community-hero .community-hero__breadcrumb {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  .community-page .community-hero {
    --community-hero-header-fallback: 96px;
  }
}

@media (min-width: 1860px) {
  .community-page .community-hero {
    --community-hero-header-fallback: 100px;
  }
}
