/* 首页专属样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 999;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
}

.nav-menu {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  color: #9ca3af;
}

.nav-icons {
  display: flex;
  gap: 20px;
  font-size: 18px;
}

.cart-badge {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  background-color: #9ca3af;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  font-size: 20px;
}

/* Banner样式 */
.hero-banner {
  margin-top: 80px;
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.banner-content {
  z-index: 1;
  color: #ffffff;
}

.banner-title {
  font-size: 36px;
  margin-bottom: 20px;
}

/* 分类入口样式 */
.categories {
  padding: 60px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: scale(1.03);
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  background-color: rgba(0,0,0,0.3);
  padding: 5px 10px;
  border-radius: 4px;
}

/* 热门推荐样式 */
.bestsellers {
  padding: 40px 0 60px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #9ca3af;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #9ca3af;
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 2px;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 16px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

/* 品牌故事样式 */
.brand-story {
  background-color: #f3f4f6;
  padding: 60px 0;
  margin-bottom: 60px;
}

.story-text p {
    line-height: 30px;
    margin-top: 20px;
}

.story-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.story-text {
  flex: 1;
  font-size: 15px;
  color: #4b5563;
}

.story-img {
  flex: 1;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

/* 页脚样式 */
.footer {
  background-color: #ffffff;
  padding: 60px 0 30px;
  border-top: 1px solid #f3f4f6;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333333;
}

.footer-links {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #9ca3af;
}

.social-icons {
  display: flex;
  gap: 15px;
  font-size: 18px;
  color: #6b7280;
}

.social-icons a:hover {
  color: #9ca3af;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}