html, body {
  min-height: 100vh;
  height: 100%;
}
body {
  box-sizing: border-box;
  /* padding-bottom: 60px;  // 删除或注释掉 */
}
html { font-size: 16px; }
body { margin: 0; padding: 0; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #e3f2fd; }

.banner {
  width: 100vw;
  height: 9.5rem;
  background: url('images/banner.png') no-repeat center/cover;
  /* background: linear-gradient(135deg, #1976d2 0%, #e3f2fd 100%); */
  padding: 0 0 1.2rem 0;
}
.banner-bg {
  position: relative;
  width: 100vw;
  height: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 2.5rem;
}
.banner-title {
  font-size: 28px;
  font-weight: bold;
  color:rgb(42, 92, 255);
  margin-top: 1.2rem;
}
.banner-subtitle {
  font-size: 21px;
  color: #333;
  margin-top: 0.3rem;
  font-weight: 600;
}
.banner-icon {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  width: 3.2rem;
  height: 3.2rem;
  background: url('images/banner-icon.png') no-repeat center/contain;
}

.features {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 1rem;
  margin: -1rem 1rem 1rem 1rem;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  padding: 1rem 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.3rem;
  background: #e3f2fd;
  border-radius: 0.6rem;
}
.icon1 { background: url('./images/feature1.png') no-repeat center/100% #e3f2fd; }
.icon2 { background: url('./images/feature2.png') no-repeat center/100% #e3f2fd; }
.icon3 { background: url('./images/feature3.png') no-repeat center/100% #e3f2fd; }
.icon4 { background: url('./images/feature4.png') no-repeat center/100% #e3f2fd; }
.feature-label { font-size: 15px; color: #333; }

.products {
  margin: 0 1rem;x  
}
.product-list {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.product-item {
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
  flex: 1;
  margin: 0 0.3rem;
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.product-title { font-size: 1rem; font-weight: bold; color:rgb(86, 75, 237); }
.product-desc { font-size: 0.8rem; color: #999; margin: 0.2rem 0 0.5rem 0; }
.product-img { width: 3.5rem; height: 3.5rem; background: #e3f2fd; border-radius: 0.5rem; margin-bottom: 0.3rem; }
.img1 { background: url('./images/product1.png') no-repeat center/cover #e3f2fd; }
.img2 { background: url('./images/product2.png') no-repeat center/cover #e3f2fd; }
.img3 { background: url('./images/product3.png') no-repeat center/cover #e3f2fd; }
.img4 { background: url('./images/product4.png') no-repeat center/cover #e3f2fd; }
.product-price { color:rgb(86, 81, 232); font-size: 1.1rem; font-weight: bold; margin-top: 0.2rem; }
.big-img { width: 48%; height: 4.5rem; background: #e3f2fd; border-radius: 0.8rem; margin: 0 0.3rem; }
.img5 { background: url('./images/product5.png') no-repeat center/cover #e3f2fd; }
.img6 { background: url('./images/product6.png') no-repeat center/cover #e3f2fd; }

.footer-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(25, 118, 210, 0.10);
  z-index: 10000;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  color: #999;
  font-size: 14px;
  justify-content: center;
  height: 100%;
}
.nav-item.active { color:rgb(15, 132, 221); }
.nav-icon { width: 1.6rem; height: 1.6rem; margin-bottom: 0.1rem; }
.nav-home { background: url('./images/nav-home.png') no-repeat center/200% #fff; }
.nav-pipe { background: url('./images/nav-pipe.png') no-repeat center/110% #fff; }
.nav-card { background: url('./images/nav-card.png') no-repeat center/110% #fff; }

/* 弹窗样式 */
.popup-mask {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(25,118,210,0.2); display: flex; align-items: center; justify-content: center; z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.popup-mask img { max-width: 80vw; max-height: 80vh; border-radius: 12px; } 

/* 资讯区样式 */
.news-section {
  margin: 1.5rem 1rem 5rem 1rem;
}
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.news-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  width: calc(50% - 0.5rem);
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-img {
  width: 100%;
  height: 7.5rem;
  background: #e3f2fd;
  background-size: cover;
  background-position: center;
}
.news-img1 { background-image: url('./images/汽车座椅夹缝收纳盒卡通多功能车用缝隙储物盒.jpg'); }
.news-img2 { background-image: url('./images/汽车收纳袋牛津布座椅后背车载置物袋.jpg'); }
.news-img3 { background-image: url('./images/家车两用折叠整理收纳箱.jpg'); }
.news-img4 { background-image: url('./images/创意夜光移车挪车卡电话牌.jpg'); }
.news-img5 { background-image: url('./images/冰凉喷雾夏天车内迅速降温剂.jpg'); }
.news-img6 { background-image: url('./images/厂汽车头枕记忆棉新款车载旅行睡眠儿童座椅侧靠护颈枕.jpg'); }
.news-title {
  font-size: 16px;
  font-weight: 500;
  color: #222;
  margin: 0.7rem 0.8rem 0.3rem 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-author {
  display: flex;
  align-items: center;
  margin: 0 0.8rem 0.8rem 0.8rem;
  font-size: 14px;
  color: #888;
}
.news-avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  object-fit: cover;
} 

.product-list2 {
  display: flex;
  gap: 1.2rem;
  margin: 0 0rem 1.2rem 0rem;
}
.product-card {
  flex: 1;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
  padding: 1.2rem 1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.product-title2 {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.2rem;
}
.product-desc2 {
  font-size: 14px;
  color: #999;
  margin-bottom: 0.7rem;
}
.product-desc3 {
  font-size: 12px;
  color: #999;
  margin-bottom: 0.7rem;
}
.product-imgs {
  display: flex;
  gap: 0.7rem;
  width: 100%;
  margin-bottom: 0.7rem;
  align-items: center;
}
.product-img2 {
  width: 4.2rem;
  height: 3.2rem;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
}
.img11 { background: url('./images/goods1.png') no-repeat center/cover #e3f2fd; }
.img12 { background: url('./images/goods2.png') no-repeat center/cover #e3f2fd; }
.img21 { background: url('./images/goods3.png') no-repeat center/cover #e3f2fd; }
.img22 { background: url('./images/goods4.png') no-repeat center/cover #e3f2fd; }
.product-prices {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.2rem;
  align-items: center;
}
.product-price2 {
  color: #ff4d00;
  font-size: 16px;
  font-weight: bold;
} 

.main-content {
  max-height: calc(100vh - 60px); /* 60px为footer-nav高度 */
  overflow-y: auto;
  max-width: 100vw;
  overflow-x: hidden;
} 

.product-box-list {
  display: flex;
  gap: 0.7rem;
  width: 100%;
}
.product-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: none;
}
.product-img2 {
  width: 3.8rem;
  height: 3.2rem;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.3rem;
}
.product-price2 {
  color: #ff4d00;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
} 

/* ========== 轮播图公共样式 ========== */
.swiper-wrap {
  position: relative;
  width: calc(100% - 2rem);
  margin: 0 1rem;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.12);
}

.swiper-wrap-banner {
  width: calc(100% - 2rem);
  margin: 0.6rem 1rem 1.8rem 1rem;
}

.swiper-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.swiper-slide {
  min-width: 100%;
  width: 100%;
}

.swiper-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: #e8f4fd;
}

/* 轮播图指示器 */
.swiper-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 10;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s, width 0.3s;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background: #1976d2;
  width: 1.1rem;
  border-radius: 0.3rem;
}

/* 轮播图背景图片类（可选） */
.swiper-img1 { background-image: url('./images/爱车主/gyby0101.jpg'); }
.swiper-img2 { background-image: url('./images/爱车主/gyby0104.jpg'); }
.swiper-img3 { background-image: url('./images/爱车主/gyby1226.jpg'); }
.swiper-img4 { background-image: url('./images/爱车主/gyby1229.jpg'); }
.swiper-img5 { background-image: url('./images/爱车主/gycs0112.jpg'); }

a {
  text-decoration: none;
}
.features .feature-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
} 

.footer-nav a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.nav-item.active a {
  color: rgb(15, 132, 221);
} 