/* 设计稿：主图 1920×760，咨询条下沿至 825，所有 overlay 用百分比 + cqw 与图同步缩放 */

/* 头部 + 主内容统一居中列（与 1920 设计稿同宽） */
.index-layout {
  width: 100%;
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
  container-type: inline-size;
  container-name: page;
}

.index-main {
  width: 100%;
  overflow-x: hidden;
}

/* 总画布 1920×825（含咨询条向下溢出 65px） */
.banner-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 825;
  container-type: size;
  container-name: banner;
}

.banner-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 92.121%; /* 760/825 */
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.banner-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* —— 主图上的文案与 logo（坐标 / 1920×825）—— */
.image_detail_top {
  position: absolute;
  left: 5.677%;
  top: 13.333%;
  width: 14.01%;
  height: auto;
}

.image_detail_text {
  position: absolute;
  left: 7.24%;
  top: 22.667%;
  font-family: "Source Han Sans CN", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.854cqw, 3.7rem);
  line-height: 1.05;
  font-style: italic;
  background: linear-gradient(0deg, #fcf8e2 0%, #eedc9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.image_detail_text_two {
  position: absolute;
  left: 10.208%;
  top: 34.909%;
  font-family: "Source Han Sans CN", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 3.125cqw, 3rem);
  line-height: 1.15;
  font-style: italic;
  background: linear-gradient(0deg, #fcf8e2 0%, #eedc9f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.image_detail_three {
  position: absolute;
  left: 5.625%;
  top: 52.242%;
  width: 31.563%;
  height: 9.212%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.4rem;
}

.image_detail_three_detail {
  padding: 0 2.65rem;
  font-family: "Source Han Sans CN", sans-serif;
  font-weight: bold;
  font-size: clamp(0.75rem, 2.188cqw, 2.1rem);
  color: #ffffff !important;
  line-height: 1.15;
}

/* —— 立即咨询条（695/825 起，高 130/825）—— */
.banner-info-strip {
  position: absolute;
  left: 0;
  top: 84.242%;
  width: 88.542%;
  height: 15.758%;
  display: flex;
  align-items: center;
  padding: 0 1.5% 0 0;
  background: #ffffff;
  box-shadow: 0 0.1rem 0.8rem 0 rgba(162, 162, 162, 0.2);
  border-radius: 0 3.25rem 3.25rem 0;
}

.banner-info-l {
  flex-shrink: 0;
  width: 0.35rem;
  height: 36.923%;
  margin-left: 12.941%;
  background: #bfa151;
}

.banner-info-text {
  flex-shrink: 0;
  margin-left: 0.9%;
}

.banner-info-textone-top {
  font-weight: 800;
  font-size: clamp(0.75rem, 1.563cqw, 1.5rem);
  color: #bfa151;
  line-height: 1.6;
  white-space: nowrap;
}

.banner-info-textone-bottom {
  font-weight: 500;
  font-size: clamp(0.65rem, 1.042cqw, 1rem);
  color: #bfa151;
  line-height: 1.6;
  white-space: nowrap;
}

.banner-info-three,
.banner-info-four {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.banner-info-three {
  margin-left: 9.412%;
}

.banner-info-three img {
  width: clamp(1rem, 1.667cqw, 1.6rem);
  height: auto;
}

.banner-info-contact-gap-lg {
  margin-left: 1.2rem;
}

.banner-info-contact-gap-sm {
  margin-left: 0.85rem;
}

.banner-info-three-p {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(0.85rem, 1.979cqw, 1.9rem);
  color: #bfa151;
  line-height: 1.25;
  white-space: nowrap;
}

.banner-info-four img {
  width: clamp(0.9rem, 1.458cqw, 1.4rem);
  height: auto;
}

.cut-off,
.cut-off2 {
  flex-shrink: 0;
  width: 0.1rem;
  height: 40%;
  background: #e5e5e5;
}

.cut-off {
  margin: 0 2.5% 0 3.2%;
}

.cut-off2 {
  margin: 0 2.9% 0 2.5%;
}

.banner-info-four-p,
.banner-info-five-p {
  font-weight: 500;
  font-size: clamp(0.65rem, 1.042cqw, 1rem);
  color: #bfa151;
  line-height: 1.6;
  white-space: nowrap;
}

/* —— 主图下方内容（rem，根字号 20px）—— */
.banner-below {
  width: 100%;
}

.attorney-trem {
  margin: 6.4rem 0 1.05rem 11.458%;
  font-weight: 500;
  font-size: 1.2rem;
  color: #bfa151;
  line-height: 2.4rem;
}

.nationwide-triem {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
  box-sizing: border-box;
  width: 100%;
  padding: 0 1.5rem 0 11.458%;
}

.nationwide-triem-one {
  flex-shrink: 0;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5cqw, 2.5rem);
  color: #333333;
  line-height: 1.2;
  white-space: nowrap;
}

/* 右侧筛选区：与标题同一行，空间不够时横向滚动而不是掉行 */
.nationwide-triem__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
  margin-left: 23.5%;
  flex-shrink: 0;
  min-width: 0;
}

.nationwide-triem-two,
.nationwide-triem-three {
  flex-shrink: 0;
  width: 11rem;
  height: 2.75rem;
  background: #ffffff;
  border-radius: 0.2rem;
  border: 0.05rem solid #eeeeee;
}

.nationwide-triem-detail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  white-space: nowrap;
}

.nationwide-triem-detail-one,
.nationwide-triem-detail-keyword {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  font-size: 0.8rem;
  color: #8d8d8d;
  line-height: 1.2;
}

.nationwide-triem-detail-two {
  flex-shrink: 0;
  width: 0.6rem;
  height: auto;
  align-self: center;
}

.nationwide-triem-four {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 2.75rem;
  background: #ffffff;
  border-radius: 0.2rem;
  border: 0.05rem solid #bfa151;
}

.nationwide-triem-four-search {
  width: 1.15rem;
  height: 1.2rem;
}

/* —— 窄屏：仅调整下方区块，banner 仍按百分比随宽度缩放 —— */
@media screen and (max-width: 68.75rem) {
  .banner-info-strip {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0.25rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .attorney-trem {
    margin: 2rem 1.5rem 0.75rem;
  }

  .nationwide-triem {
    padding-left: 1.5rem;
  }

  .nationwide-triem-one {
    font-size: 1.8rem;
  }

  .nationwide-triem__actions {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media screen and (max-width: 48rem) {
  .image_detail_text,
  .image_detail_text_two {
    white-space: normal;
  }

  .banner-info-strip {
    width: 94%;
    border-radius: 0 1.25rem 1.25rem 0;
  }

  .banner-info-l {
    margin-left: 5%;
  }

  .banner-info-three {
    margin-left: 3%;
  }

  .cut-off,
  .cut-off2 {
    display: none;
  }

  .nationwide-triem {
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .nationwide-triem__actions {
    width: 100%;
    margin-left: 0;
  }
}
