/* 静态首页 — 对齐原 uni-app 首页视觉 */

.home-page {
  background: #f7f7f8;
  min-height: 100%;
  padding-bottom: 4px;
}

/* 顶部粉色区域 + 弧形过渡 */
.home-hero {
  background: #f45d5c;
  position: relative;
  overflow: hidden;
  padding-bottom: 6px;
}

.home-navbar {
  color: #fff;
  text-align: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px;
}

.home-navbar h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.home-swiper-box {
  position: relative;
  z-index: 2;
  padding: 0 15px 8px;
}

.home-banner-img {
  width: 100%;
  display: block;
  border-radius: 10px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.home-swiper-curve {
  background: #fff;
  height: 150px;
  width: 120%;
  border-radius: 50% 50% 0 0;
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* 公告 */
.home-notice-wrap {
  position: relative;
  z-index: 3;
  padding: 18px 15px 0;
  background: #fff;
}

.home-notice {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-notice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 18px;
  padding: 0 8px;
  background: linear-gradient(131deg, #f5877b, #e93d3d);
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}

.home-notice-text {
  flex: 1;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 区块通用 */
.home-box {
  background: #fff;
  margin-top: 10px;
  padding: 12px 15px 14px;
}

.home-section-title {
  color: #121111;
  font-weight: 700;
  position: relative;
  padding-left: 10px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.home-section-title::before {
  content: "";
  position: absolute;
  width: 3.5px;
  height: 13px;
  background: #7a7af9;
  left: 0;
  border-radius: 5px;
  top: 3px;
}

/* 新品推荐列表 */
.home-box .home-goods-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.home-box .home-goods-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #f0f0f0;
}

.home-box .home-goods-row:last-child {
  border-bottom: none;
}

.home-goods-thumb {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.home-goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-goods-info {
  flex: 1;
  min-height: 72px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.home-goods-name {
  font-size: 16px;
  font-weight: 600;
  color: #121111;
  line-height: 1.35;
}

.home-goods-tags {
  margin-top: 0;
}

.home-goods-tags span {
  display: inline-block;
  color: #d50a0a;
  background: #f8d7d6;
  border: 1px solid #ff7c79;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 5px;
  line-height: 1.3;
}

.home-goods-price {
  font-size: 16px;
  color: #fa3534;
  font-weight: 700;
  margin-top: 0;
}
