/* 容器级变量控制 */
.d-1540-container {
  /* 间距变量 */
  --grid-gap: 20px;
  --content-inner-gap: 8px;
    /* -webkit-box-shadow: 1px 9px 25px -6px rgba(255, 255, 255, .3);
    box-shadow: 1px 9px 25px -6px rgba(255, 255, 255, .3); */

  /* 基础布局 */
  width: 100%;
  min-height: var(--container-height);
  background: var(--box-bg-color);
    border-radius: 8px;
    overflow: hidden;
}

/* 左侧背景展示区 */
.d-1540-left {
  flex: 0 0 20%;
  min-width: 320px;
  position: relative;
  
  background-size: cover;
  background-position: center;

  .d-1540-left-content-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    padding: 20px;
    transition: opacity 0.3s ease-in-out;

    .d-1540-left-title {
      font-size: var(--main-title-size);
      color: var(--accent-gold);
      line-height: 1.2;
      margin: 0;
    }

    .d-1540-left-desc {
      font-size: var(--main-desc-size);
      color: var(--text-color);
      margin: 0;
    }
  }
  .d-1540-left-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
}
.d-1540-left:hover .d-1540-left-content-box,
.d-1540-left:hover .d-1540-left-cover {
  opacity: 1;
}

/* 右侧产品展示区 */
.d-1540-right {
  flex: 1;
  min-width: 0;

  .d-1540-section-title {
    font-size: var(--section-title-size);
    color: var(--accent-gold);
    text-align: center;
    margin: 20px 0;
    padding: 0 var(--right-block-padding);
  }

  .d-1540-swiper {
    width: 100%;
    padding-bottom: 35px !important;
    padding: 0 var(--right-block-padding);
    position: relative;
    .swiper {
      position: static;
    }
  }

  .d-1540-card {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .d-1540-image-wrapper {
    width: 100%;
    background-color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .d-1540-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: var(--image-object-fit);
    aspect-ratio: var(--image-aspect-ratio);
  }

  .d-1540-product-info {
    display: flex;
    flex-direction: column;
    gap: var(--content-inner-gap);
  }

  .d-1540-name {
    font-size: var(--product-name-size);
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .d-1540-subname {
    font-size: var(--tag-size);
    color: var(--pagination-color);
  }

  .d-1540-price {
    font-size: var(--price-size);
    color: var(--price-color);
    font-weight: bold;
  }

  /* 自定义导航按钮 */
  .d-1540-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .d-1540-prev {
    left: 10px;
  }
  .d-1540-next {
    right: 10px;
  }

  .d-1540-nav-btn svg {
    width: 30px;
    height: 30px;
  }

  /* 分页器颜色 */
  .d-1540-swiper .swiper-pagination-bullet {
    background: var(--pagination-color);
  }
  .d-1540-swiper .swiper-pagination-bullet-active {
    background: var(--accent-gold);
  }
}


@media only screen and (max-width: 767px) {
  .d-1540-left {
    .d-1540-left-content-box {
      padding: 30px 15px;
      opacity: 1;
    }
    .d-1540-left-cover { opacity: 1;}
  }

  .d-1540-right {
    padding: 30px 0 15px;
    .d-1540-section-title {
      padding: 0 15px;
    }
  }

}