.index-header {
  background-image: url('/resource/images/header_bg-d798a9918ba17daad31a636f209e61e8.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.index-header-visual {
  display: none;
}
.index .index-header {
  /* 当前主视觉采用统一浅灰底色，完整显示图片时的留白与图片底色一致。 */
  background-color: #f4f4f4;
  background-size: contain;
}
@media screen and (min-width: 768px) and (max-width: 1679px) {
  .index-header .index-header-intro {
    /* 三个区域分别预留空间，文案换行后仍与画面主体及展期保持间距。 */
    left: 5%;
    top: 80px;
    width: 46%;
    max-width: 620px;
  }
  .index-header .index-header-intro h2 {
    font-size: clamp(28px, 2.2vw, 36px);
    margin-bottom: 28px;
  }
  .index-header .index-header-intro p {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.8;
  }
  .index-header .index-header-logo {
    justify-content: flex-end;
    height: 64px;
    margin: 12px 0 0;
  }
  .index-header .index-header-details {
    right: 3%;
    bottom: 36px;
    width: 20%;
    max-width: 240px;
  }
  .index-header .index-header-details > div > div:last-child {
    font-size: clamp(9px, 0.72vw, 11px);
    letter-spacing: clamp(0.3px, 0.05vw, 0.8px);
    line-height: 1.6;
  }
}
@media screen and (max-width: 767px) {
  .index .index-header {
    /* 动态可视高度用于分配三段空间，文字放大时允许自然增高以完整展示内容。 */
    display: grid;
    grid-template-rows: auto minmax(100px, 1fr) auto;
    gap: clamp(12px, 2vh, 20px);
    gap: clamp(12px, 2dvh, 20px);
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: 20px 20px 24px;
    background-color: #f4f4f4;
    /* 移动端主视觉复用后台同一图片，整幅背景仅在桌面端显示。 */
    background-image: none !important;
  }
  .index-header .index-header-intro,
  .index-header .index-header-details {
    position: static;
    max-width: none;
  }
  .index-header .index-header-logo {
    /* 移动端 LOGO 与文案右边缘对齐，不预留额外右侧间距。 */
    justify-content: flex-end;
    margin-top: 12px;
    margin-right: 0;
  }
  .index-header .index-header-visual {
    display: block;
    position: relative;
    min-height: 0;
    height: auto;
    margin: 0 -20px;
    overflow: hidden;
  }
  .index-header .index-header-artwork {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: none;
    height: min(100%, 320px);
    /* 横图主体中心约位于原图宽度的 65.1%，按此位置对齐可保持主体居中。 */
    transform: translate(-65.1%, -50%);
  }
}
@media screen and (max-width: 767px) and (max-height: 740px) {
  .index .index-header {
    /* 短屏收紧间距和行距，为主视觉保留空间，正文保持现有字号。 */
    padding: 12px 16px 16px;
    gap: 8px;
  }
  .index-header .index-header-intro h2 {
    margin-bottom: 10px;
  }
  .index-header .index-header-intro p {
    line-height: 18px;
  }
  .index-header .index-header-logo {
    height: 36px;
  }
  .index-header .index-header-visual {
    margin: 0 -16px;
  }
  .index-header .index-header-details > div {
    row-gap: 8px;
  }
  .index-header .index-header-details p {
    line-height: 18px;
  }
  .index-header .index-header-details > div > div:first-child > p:first-child {
    line-height: 24px;
  }
  .index-header .index-header-details .font-bold {
    line-height: 24px;
  }
  .index-header .index-header-details > div > div:last-child p {
    line-height: 14px;
  }
}
.index-search {
  background-image: url('/resource/images/select_bg-fc8124a37d9c554b376d99d157df0f5d.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.index-search-input.form-control {
  --bs-form-control-bg: rgba(48, 48, 48, 0.25);
  border-radius: 30px;
}
.index-search-input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.index-search-table .table {
  --bs-table-color: #fff;
  --bs-table-border-color: transparent;
  margin-bottom: 60px;
}
.index-join-address::placeholder {
  color: #333333;
  opacity: 0.3;
}
.index .arrow {
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
  border: 10px solid transparent;
}
.index .arrow-left {
  border-right-color: #fff;
}
.index .arrow-right {
  border-left-color: #fff;
}
.index .grid-container {
  display: grid;
  grid-template-areas: 'left left left center-top center-top center-top right-top right-top right-top' 'left left left center-bottom center-bottom center-bottom right-bottom right-bottom right-bottom';
  grid-gap: 10px;
}
@media screen and (max-width: 768px) {
  .index .grid-container {
    grid-template-areas: 'left left center-top center-top' 'left left center-bottom center-bottom ' 'right-top right-top right-bottom right-bottom';
  }
}
@media screen and (max-width: 768px) {
  .index .btn {
    --bs-btn-padding-x: 10px;
    --bs-btn-padding-y: 5px;
    --bs-btn-border-radius: 4px;
    --bs-btn-font-size: 12px;
  }
}
.index .grid-left {
  grid-area: left;
}
.index .grid-center-top {
  grid-area: center-top;
}
.index .grid-right-top {
  grid-area: right-top;
}
.index .grid-center-bottom {
  grid-area: center-bottom;
}
.index .grid-right-bottom {
  grid-area: right-bottom;
}
.index .brand-card-title {
  font-size: 18px;
  font-weight: bold;
}
.index .product-card-title {
  font-size: 16px;
}
@media screen and (max-width: 1565px) {
  .index .brand-card-title {
    font-size: 14px;
  }
  .index .product-card-title {
    font-size: 14px;
  }
}

/* Banner 轮播相关样式 */
.banner-container {
  width: 100%;
  height: 140px;
  overflow: hidden;
  position: relative;
}

.banner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.banner-slide.active,
.banner-slide.op-100 {
  opacity: 1;
  pointer-events: auto;
}

/* 非当前显示的 slide 透明但仍覆盖在同位置，需禁掉指针事件
   否则点击会被最上层的透明 slide 吞掉，导致 <a> 点不响应 */
.banner-slide.op-0 {
  opacity: 0;
  pointer-events: none;
}

.transition-opacity {
  transition: opacity 0.5s ease-in-out;
}

.duration-500-ease-in-out {
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}

.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.banner-slide a:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 768px) {
  .banner-container {
    display: none;
  }
}

