/**
 * NailLume 首页定制样式（作用域限定 .page-home，不影响其它页面）
 * 配合 home.blade.php 的 USP 保障条与 design_setting 模块配置使用
 */

/* ========== 1. 首屏幻灯：全宽大屏 ========== */
.page-home {
  overflow-x: hidden;
}

/* 全宽铺满：抵消父级容器与内边距，两侧不留白 */
@media (min-width: 768px) {
  .page-home .module-img-text-slideshow-2 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }
  .page-home .module-img-text-slideshow-2 .image-wrap img {
    width: 100%;
    height: clamp(500px, 36vw, 720px);
    object-fit: cover;
    object-position: center;
  }
}

/* 大屏正文限宽：与头部、保障条对齐，避免内容拉得太开
   （首屏幻灯不受影响：它的全宽由自身 100vw + 负外边距实现） */
@media (min-width: 1500px) {
  .page-home .modules-box .container-fluid {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 767.98px) {
  .page-home .module-img-text-slideshow-2 .image-wrap img {
    height: clamp(280px, 56vw, 420px);
    object-fit: cover;
    object-position: center;
  }
}

/* 底部柔和渐变：让分页圆点在任何图上都可读 */
.page-home .module-img-text-slideshow-2 .swiper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(45, 32, 32, 0.28), transparent);
  pointer-events: none;
  z-index: 1;
}

/* 幻灯文案可读性：浅色底图上加柔和白色光晕 */
.page-home .module-img-text-slideshow-2 .image-text-wrap .text-wrap {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 26px 34px;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(214, 137, 158, 0.22);
}
.page-home .module-img-text-slideshow-2 .text-wrap .sub-title {
  color: #d4547a;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.page-home .module-img-text-slideshow-2 .text-wrap .title {
  color: #2d2020;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.18;
  margin-bottom: 0.5rem;
}
.page-home .module-img-text-slideshow-2 .text-wrap .description {
  color: #6d5a5a;
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}
.page-home .module-img-text-slideshow-2 .text-wrap .btn {
  background: #2d2020;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.7rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.page-home .module-img-text-slideshow-2 .text-wrap .btn:hover {
  background: #d4547a;
  transform: translateY(-1px);
}

/* 文案定位：大屏下垂直居中偏下，离边缘更远 */
@media (min-width: 992px) {
  .page-home .module-img-text-slideshow-2 .image-text-wrap .content-wrap {
    padding-bottom: 56px;
  }
}

/* 分页圆点：品牌化胶囊 */
.page-home .module-img-text-slideshow-2 .swiper-pagination {
  bottom: 22px !important;
}
.page-home .module-img-text-slideshow-2 .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.75);
  opacity: 1;
  transition: all 0.25s ease;
}
.page-home .module-img-text-slideshow-2 .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ========== 2. USP 保障条 ========== */
.nl-usp {
  background: linear-gradient(180deg, #fdf6f8 0%, #ffffff 100%);
  border-bottom: 1px solid #f3e9ec;
  padding: 18px 0;
}
.nl-usp .usp-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}
.nl-usp .usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d2020;
  font-size: 0.9rem;
}
.nl-usp .usp-item i {
  color: #d4547a;
  font-size: 1.35rem;
  line-height: 1;
}
.nl-usp .usp-item b {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}
.nl-usp .usp-item small {
  display: block;
  color: #9a8a8a;
  font-size: 0.78rem;
}

/* ========== 3. 模块节奏 ========== */
@media (min-width: 768px) {
  .page-home .module-item {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
.page-home .module-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1.3rem;
}
.page-home .module-sub-title {
  margin: -0.9rem auto 1.4rem;
  font-size: 0.95rem;
}

/* ========== 4. 商品卡片：桌面 5 列 + 圆角悬浮 ========== */
@media (min-width: 1200px) {
  .page-home .product-grid.col-md-3 {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
  }
}
.page-home .product-wrap {
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .page-home .product-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(214, 137, 158, 0.18);
  }
}
.page-home .product-wrap .image-wrap,
.page-home .product-wrap .product-image {
  border-radius: 12px;
  overflow: hidden;
}
.page-home .product-wrap .product-name {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-top: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.page-home .product-price {
  margin-top: 0.25rem;
}
.page-home .product-price .price-new {
  color: #2d2020;
  font-size: 1rem;
  font-weight: 600;
}
/* 有划线价时，现价显示促销红 */
.page-home .product-price:has(.price-old) .price-new {
  color: #e02b27;
}
/* 卡片悬浮按钮：缩小，不喧宾夺主 */
.page-home .product-wrap .button-wrap .btn {
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

/* ========== 5. 分类图标 ========== */
@media (min-width: 992px) {
  .page-home .module-icons .image-item {
    max-width: 148px;
    margin: 0 auto;
  }
  .page-home .module-icons .image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
}
.page-home .module-icons .image-item img {
  border-radius: 16px;
  transition: transform 0.35s ease;
}
@media (hover: hover) {
  .page-home .module-icons .image-item:hover img {
    transform: scale(1.04);
  }
}
.page-home .module-icons .title {
  font-size: 0.92rem;
}

/* ========== 6. 促销横幅（双图 + 大横幅） ========== */
.page-home .img-text-banner-multiple .image-item img,
.page-home .module-icons img {
  transition: transform 0.4s ease;
}
.page-home .img-text-banner-multiple a.image-wrap:hover .image-item img {
  transform: scale(1.04);
}
.page-home .img-text-banner-multiple .image-item,
.page-home .img-text-banner .image-item {
  border-radius: 16px;
  overflow: hidden;
}
.page-home .img-text-banner-multiple .text-wrap .text-title {
  font-weight: 800;
  font-size: 1.3rem;
  color: #2d2020;
}
.page-home .img-text-banner-multiple .text-wrap .btn {
  background: #2d2020;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1.3rem;
  border: none;
  font-size: 0.88rem;
}
.page-home .img-text-banner-multiple .text-wrap .btn:hover {
  background: #d4547a;
}

/* ========== 7. 滚动文字条：更轻 ========== */
.page-home .module-swiper-img-scroll-text-2 {
  border-bottom: 1px solid #f3e9ec;
}

/* ========== 8. 移动端适配 ========== */
@media (max-width: 767.98px) {
  .page-home .module-img-text-slideshow-2 .image-text-wrap .content-wrap {
    justify-content: center !important;
    padding: 0 16px;
  }
  .page-home .module-img-text-slideshow-2 .image-text-wrap .text-wrap {
    max-width: 100%;
    padding: 14px 18px;
  }
  .page-home .module-img-text-slideshow-2 .text-wrap .title {
    font-size: 1.3rem;
  }
  .page-home .module-img-text-slideshow-2 .text-wrap .description {
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
  }
  .page-home .module-img-text-slideshow-2 .text-wrap .btn {
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
  }
  /* 保障条：2×2 网格 */
  .nl-usp .usp-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .nl-usp .usp-item i {
    font-size: 1.15rem;
  }
  .nl-usp .usp-item b {
    font-size: 0.82rem;
  }
  .nl-usp .usp-item small {
    font-size: 0.72rem;
  }
  /* 分类图标 3 列 → 收窄 */
  .page-home .module-icons .image-item {
    max-width: 104px;
    margin: 0 auto;
  }
}
