/* --- NELUM 品牌全局比例控制 --- */

/* 基礎容器重置 */
.slider-component, 
.splide__track, 
.splide__list, 
.splide__slide, 
.slider__image-wrapper {
  height: auto !important;
  min-height: unset !important;
  overflow: hidden !important;
}

.slider__image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

/* --- 電腦版樣式 (min-width: 750px) --- */
@media screen and (min-width: 750px) {
  .slider-component, .splide__track {
    aspect-ratio: 2560 / 666 !important; /* 電影感修長比例 */
  }

  .slider__content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
  }

  .slider__content h2 {
    font-size: 6.5rem;
    color: #FFFFFF;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }

  .slider__content p {
    font-size: 2.4rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
}

/* --- 移動端樣式 (max-width: 749px) --- */
/* --- 移動端樣式 (max-width: 749px) --- */
@media screen and (max-width: 749px) {
  .slider-component, .splide__track {
    aspect-ratio: 1 / 1.15 !important; /* 稍微拉高一點比例 */
  }

  .slider__image-wrapper img {
    /* [修改點 1] 70% 確保人物臉部露出 */
    object-position: 70% center !important; 
    object-fit: cover !important;
  }

  .slider__content {
    position: absolute;
    bottom: 0; /* 貼齊底部 */
    left: 0;
    width: 100%;
    padding: 60px 20px 40px; 
    text-align: center;
    z-index: 3;
    pointer-events: none;
  }

  /* [修改點 2] 漸層優化，徹底隱藏黑邊 */
  .slider__content::after {
    content: "";
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%) !important;
    z-index: -1;
  }

  .slider__content h2 {
    font-size: 3.2rem !important;
    color: #FFFFFF !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .slider__content p {
    font-size: 1.6rem !important;
    color: #FFFFFF !important;
  }
}