page {
  background: #f5f5f7;
  min-height: 100vh;
}

/* ═══ 首页容器 ═══ */
.home-page {
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}

/* ═══ Hero 顶部视觉区 ═══ */

.hero-banner-wrap {
  padding: 0 16px;
  padding-top: 6px;

  /* 让Banner Swiper有圆角 */
  .nut-swiper {
    border-radius: 16px;
    overflow: hidden;
  }

  .nut-swiper-item {
    border-radius: 16px;
    overflow: hidden;
  }
}

/* Hero下方的Grid菜单区 */
.hero-grid {
  margin: 0 16px;
  margin-top: -12px;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;

  /* 让NutUI Grid的白色背景更好融入 */
  .nut-grid {
    background: transparent;
  }

  .nut-grid-item__content {
    padding: 10px 0;
  }
}

/* ═══ 公告条 — 自定义样式替代NutUI NoticeBar ═══ */
.notice-strip {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  margin: 0 16px 8px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  gap: 8px;

  &__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
  }

  &__text {
    color: #92400e;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ═══ 热销推荐 ═══ */
.section-hot {
  padding: 20px 0 4px;

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 14px;
  }

  &__title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  &__title {
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
  }

  &__more {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #9ca3af;
  }
}

/* ═══ 通用section间距重置（去掉TrustSection/ContactSection自带的margin） ═══ */
.home-page .trust-section,
.home-page .contact-section {
  margin-left: 0;
  margin-right: 0;
}

/* ═══ 底部购买按钮 ═══ */
.buy-btn {
  height: 64px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 100px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);

  .cart-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px 0 0 100px;
    height: 64px;
  }
}
