* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style-type: none;
  font-family: Microsoft Yahei;
}
@media screen and (max-width: 1225px) {
  body {
    width: 1226px;
  }
}
img {
  border: none;
  max-width: 100%;
  max-height: 100%;
}
a {
  border: none;
  text-decoration: none;
  color: #000;
}
.border {
  border: 1px solid #f00;
}
.center {
  margin: 0 auto;
}
.w {
  width: 1226px;
  margin: 0 auto;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clear {
  clear: both;
}
.clearfix::after {
  content: "";
  height: 0;
  display: block;
  clear: both;
  visibility: hidden;
}
.mt20 {
  margin-top: 20px;
}
.mt10 {
  margin-top: 10px;
}
.ml20 {
  margin-left: 20px;
}
.ml40 {
  margin-left: 40px;
}
.mr40 {
  margin-right: 40px;
}
.mb20 {
  margin-bottom: 20px;
}
.border2 {
  border: 2px solid #ff6700;
}
.ft20 {
  font-size: 20px;
}
.ftbc {
  color: #ff6700;
  font-weight: bold;
}
.pr {
  padding-right: 40px;
}
.h3 {
  font-size: 22px;
  font-weight: bold;
}

/* ===== 首页横向轮播商品样式 ===== */
.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #ff6700;
}

.section-title i {
  margin-right: 8px;
  color: #ff6700;
}

#sub_banner,
#flash,
#recommend {
  width: 1226px;
  margin: 30px auto;
  position: relative;
}

.more-link {
  position: absolute;
  right: 0;
  top: 0;
  color: #999;
  font-size: 14px;
}

.more-link:hover {
  color: #ff6700;
}

/* Swiper容器样式 */
.goods-swiper {
  width: 100%;
  padding: 0 40px; /* 为箭头留出空间 */
}

/* 商品卡片样式 */
.goods-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  cursor: pointer;
  height: 320px;
  display: flex;
  flex-direction: column;
}

.goods-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.goods-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.goods-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goods-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.goods-name {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  height: 39px;
}

.goods-price {
  margin: 0 0 8px 0;
  color: #ff6700;
  font-size: 18px;
  font-weight: bold;
}

.price-symbol {
  font-size: 14px;
}

.price-value {
  font-size: 18px;
}

.shop-info {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shop-info i {
  color: #ff6700;
}

/* Swiper箭头样式 */
.goods-swiper .swiper-button-next,
.goods-swiper .swiper-button-prev {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.goods-swiper .swiper-button-next::after,
.goods-swiper .swiper-button-prev::after {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.goods-swiper .swiper-button-next:hover,
.goods-swiper .swiper-button-prev:hover {
  background: #ff6700;
}

.goods-swiper .swiper-button-next:hover::after,
.goods-swiper .swiper-button-prev:hover::after {
  color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  #sub_banner,
  #flash,
  #recommend {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .goods-swiper {
    padding: 0 30px;
  }
  
  .goods-card {
    height: 280px;
  }
  
  .goods-image {
    height: 160px;
  }
  
  .goods-name {
    font-size: 13px;
  }
  
  .goods-price {
    font-size: 16px;
  }
  
  .goods-swiper .swiper-button-next,
  .goods-swiper .swiper-button-prev {
    width: 28px;
    height: 28px;
  }
  
  .goods-swiper .swiper-button-next::after,
  .goods-swiper .swiper-button-prev::after {
    font-size: 12px;
  }
}
