html, body {
  min-height: 100vh;
  height: 100%;
}
body {
  box-sizing: border-box;
}
html { font-size: 16px; }
body { 
  margin: 0; 
  padding: 0; 
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
  background: linear-gradient(180deg, #d4e4d2 0%, #e8efe7 30%, #f5f5f5 100%);
  min-height: 100vh;
}

/* 顶部区域 */
.header {
  padding: 1rem 1.2rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.header-left {
  display: flex;
  flex-direction: column;
}
.company-name {
  font-size: 22px;
  font-weight: bold;
  color: #2d5a3d;
}
.company-slogan {
  font-size: 12px;
  color: #6b8f7a;
  margin-top: 0.2rem;
}
.header-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.header-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 轮播图 - 圆角卡片 */
.banner {
  margin: 0.8rem 1rem;
  height: 9rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.banner-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
/* 文字类型的轮播图slide */
.banner-slide-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
/* 绿色渐变背景 */
.banner-slide-gradient-green {
  background: linear-gradient(135deg, #4a7c59, #6b9b7a);
}
/* 棕色渐变背景 */
.banner-slide-gradient-brown {
  background: linear-gradient(135deg, #8b7355, #a08060);
}
/* 轮播图图片 - 项目4，根目录使用 */
.banner-slide-img-1 {
  background-image: url('./images/商品3/轮播大图/gynm.jpg');
}
/* 轮播图图片 - 项目4，cg子目录使用 */
.banner-slide-img-1-cg {
  background-image: url('./images/商品3/轮播大图/gynm.jpg');
}
.banner-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.banner-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* 功能区 - 四宫格 */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  margin: 0 0.5rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
/* 车品图标 - 汽车 */
.icon1 { 
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9); 
}
.icon1::before {
  content: '🚗';
}
/* 户外图标 - 帐篷 */
.icon2 { 
  background: linear-gradient(135deg, #fff3e0, #ffe0b2); 
}
.icon2::before {
  content: '⛺';
}
/* 生活图标 - 礼物 */
.icon3 { 
  background: linear-gradient(135deg, #fce4ec, #f8bbd9); 
}
.icon3::before {
  content: '🎁';
}
/* 全部图标 - 网格 */
.icon4 { 
  background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
}
.icon4::before {
  content: '📦';
}
.feature-label { font-size: 12px; color: #333; font-weight: 500; }

/* 内容区域 */
.content-section {
  background: #fff;
  border-radius: 1.2rem 1.2rem 0 0;
  margin-top: 0.5rem;
  padding: 1.2rem 1rem 5rem;
  min-height: 40vh;
}

/* 区块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
}
.section-more {
  font-size: 12px;
  color: #999;
}

/* 商品区 - 横向滚动 */
.product-scroll {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
}
.product-scroll::-webkit-scrollbar { display: none; }

.product-card {
  flex-shrink: 0;
  width: 7.5rem;
  background: #fff;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-card .product-img {
  width: 100%;
  height: 7.5rem;
  background-size: cover;
  background-position: center;
  background-color: #f9f9f9;
}
.product-card .product-info {
  padding: 0.6rem;
}
.product-card .product-name {
  font-size: 12px;
  color: #333;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .product-price {
  font-size: 15px;
  color: #2d5a3d;
  font-weight: bold;
}
.product-card .product-price::before {
  content: '¥';
  font-size: 11px;
}
.product-card .product-orig {
  font-size: 10px;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 0.3rem;
}

/* 资讯区 - 双列网格 */
.news-section {
  margin-top: 0.5rem;
}
.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-title {
  padding: 0.8rem 0.8rem 0.5rem;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-author {
  display: flex;
  align-items: center;
  padding: 0 0.8rem 0.8rem;
  font-size: 11px;
  color: #999;
}
.news-avatar {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  object-fit: cover;
}

/* 底部导航 */
.footer-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  font-size: 10px;
}
.nav-item.active { color: #2d5a3d; }
.nav-icon { 
  width: 1.4rem; 
  height: 1.4rem; 
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
/* 首页图标 */
.nav-home::before { content: '🏠'; }
/* 分类图标 */
.nav-pipe::before { content: '📋'; }
/* 我的图标 */
.nav-card::before { content: '👤'; }

/* 弹窗 */
.popup-mask {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.popup-mask img { max-width: 85vw; max-height: 75vh; border-radius: 12px; }

.main-content {
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.footer-nav a { display: flex; flex-direction: column; align-items: center; }
.nav-item.active a { color: #2d5a3d; }
