* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  /* background-color: #f5f5f5; */
  padding-bottom: 50px; /* 为底部tabbar预留空间 */
}

/* 统一圆角样式 */
.carousel-item img, 
.product, 
.third-img img, 
.author-area, 
.fifth-img img, 
.sixth-area {
  border-radius: 12px;
}

/* Nav 栏样式 */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  width: 100%;
  padding: 0 10px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 80px;
  height: 25px;
  background-color: #ffffff;
  border-radius: 6px;
  /* margin-right: 10px; */
}

.desc {
  color: #ffffff;
  font-size: 14px;
  margin-left: 5px;
}

.nav-right {
  display: flex;
  align-items: center;
}

.search {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  /* border-radius: 20px; */
  padding: 2px 10px;
  margin-right: 10px;
  border: 1px solid rgba(0,0,0,0.1);
}

.search-icon {
  width: 16px;
  height: 16px;
  /* background-color: #ff5c93; */
  border-radius: 50%;
}

.search-input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 40px;
}

.login {
  height: 22px;
  background-color: #d2fe79;
  color: #000;
  font-weight: 700;
  border: none;
  padding: 5px 5px;
  font-size: 9px;
  display: flex;
}
.loginImg {
  height: 10px;
  margin-right: 3px;
}

/* 轮播图区域样式 */
.carousel {
  margin: 0 10px;
  position: relative;
  width: calc(100% - 20px);
  overflow: hidden;
  /* 轮播图高度由图片自动撑开 */
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-item img {
  width: 100%;
  display: block; /* 去除图片底部间隙 */
}

.carousel-item.active {
  opacity: 1;
  position: relative; /* 激活状态时恢复文档流位置 */
}

/* 产品区域样式 */
.product-area {
  margin: 10px;
  background-image: url(./img/img2.png);
  background-size: cover; /* 以宽边为主适配容器，保持比例 */
  background-position: center; /* 图片居中显示 */
  background-repeat: no-repeat; /* 不重复平铺 */
  padding: 15px 10px;
  width: calc(100% - 20px);
  border-radius: 12px;
  height: calc((100% - 20px) * 0.8);
  min-height: 280px; /* 确保移动端有足够高度，可根据实际调整 */
}

.product-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  /* padding-bottom: 5px; */
  scrollbar-width: none; /* 隐藏滚动条 */
  margin-top: 20%;
}

.product-scroll::-webkit-scrollbar {
  display: none; /* 隐藏滚动条 */
}

.product {
  flex: 0 0 calc(33.333% - 10px);
  /* background-color: #ffffff; */
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product img {
  width: 100%;
  margin-bottom: 5px;
}

.product-desc1 {
  font-size: 10px;
  color: #333333;
}
.product-desc2 {
  font-size: 8px;
  color: #333333;
}

/* 第三张图片区域样式 */
.third-img {
  margin: -20px 10px 0;
  width: calc(100% - 20px);
  position: relative;
  z-index: 999;
}

.third-img img {
  width: 100%;
  display: block;
}

/* 作者信息区域样式 */
.author-area {
  margin: 10px;
  background-color: #ffffff;
  padding: 15px;
  width: calc(100% - 20px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-info {
  display: flex;
  /* align-items: center; */
  margin-bottom: 10px;
}

.author-avatar {
  min-width: 60px;
  max-width: 60px;
  /* height: 60px; */
  margin-right: 10px;
}

.author-text h3 {
  color: #333333;
  font-size: 16px;
  margin-bottom: 3px;
}

.author-text p {
  color: #666666;
  font-size: 12px;
}
.author-desc {
  margin-top: 15px;
}
.author-desc p{
  font-size: 8px;
  line-height: 15px;
  color: #333333;
}

/* 第五张图片区域样式 */
.fifth-img {
  margin: 10px;
  width: calc(100% - 20px);
}

.fifth-img img {
  width: 100%;
  display: block;
}

/* 第六块区域样式 */
.sixth-area {
  margin: 0 10px 10px;
  width: calc(100% - 20px);
  background-color: #e9e9e9; /* 灰色卡片 */
  padding: 5px 15px;
  display: flex;
  align-items: center;
}

.sixth-img {
  width: 130px;
  /* height: 60px; */
  /* background-color: #ffffff; */
  margin: 5px 20px 0 10px;
}

.sixth-text {
  font-size: 26px;
  font-weight: bold;
  color: #E07EA8;
}

/* Tabbar 样式 */
.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 50px;
  width: 100%;
  background-color: #ee74a7; /* 粉色背景 */
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
}

.tab {
  text-align: center;
  color: #ffffff; /* 未选中文字白色 */
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  width: 50px;
}

.tab.active {
  background-color: #ffffff; /* 选中背景白色 */
  color: #ee74a7; /* 选中文字粉色 */
  font-weight: bold;
}
