/* 清除浮动 */
.clr {
  clear: both;
  margin: 0;
  padding: 0;
}
.clearfix {
  zoom: 1;
}
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}
/* 通用元素重置 */
blockquote,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
input,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.contenr {
  max-width: 6.5rem;
  margin: 0 auto;
}
/* 头部样式 */
.header {
  text-align: center;
  background: #f8f8f8;
  height: 1.93rem;
}
.header h1 {
  font-size: 24px;
  margin-bottom: 8px;
}
/* 通知栏 */
.notice-bar {
  background: #fff3cd;
  padding: 12px;
  font-size: 14px;
  text-align: center;
}
/* 商品区块 */
.products-section {
  background: #fff;
}
.products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
}
.products-section .product-grid .product-card {
  background: #fff;
  overflow: hidden;
  position: relative;
}
.products-section .product-grid .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.products-section .product-grid .product-card .product-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
.products-section .product-grid .product-card .product-name {
  font-size: 0.14rem;
  color: #333;
  margin: 2px 0;
  font-weight: bold;
  text-align: left;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  padding-right: 0.03rem;
  -webkit-box-orient: vertical;
  height: 0.38rem;
}
.products-section .product-grid .product-card .product-desc {
  font-size: 14px;
  color: #666;
  margin: 5px 0px;
  text-align: center;
  line-height: 1.4;
  /* min-height: 40px; */
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.products-section .product-grid .product-card .price-box {
  position: relative;
  text-align: center;
  margin-bottom: 15px;
  padding-right: 30px;
  display: flex;
}
.products-section .product-grid .product-card .price-box .fa-shopping-cart {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #fc0000;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}
.products-section .product-grid .product-card .price-box .fa-shopping-cart:hover {
  color: #c90000;
}
.products-section .product-grid .product-card .price-box .cur-price {
  color: #fc0000;
  font-size: 14px;
  margin-right: 2px;
  font-weight: bold;
}
.products-section .product-grid .product-card .price-box .old-price {
  color: #999;
  font-size: 14px;
}
.products-section .product-grid .product-card .sales {
  position: absolute;
  top: 10px;
  left: -5px;
  background: #ff4444;
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 0 3px 3px 0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.products-section .product-grid .product-card .sales::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  border-left: 5px solid #dd0000;
  border-top: 5px solid transparent;
}
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 促销横幅 */
.promotion-banner {
  background: #ffe7e7;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
  text-align: center;
}
/* 底部样式 */
footer {
  background: #f8f8f8;
  color: #737373;
  padding: 24px;
  text-align: center;
  height: 1rem;
}
footer .contact-info {
  margin: 16px 0;
}
footer .contact-info p {
  margin: 8px 0;
  font-size: 14px;
}
footer .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
}
.dx-prx {
  background: #5151ff;
  color: #fff;
  height: 0.5rem;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}
.top-bx {
  width: 100%;
  margin: 0 auto;
  background: #ff6500;
}
.top-bx .search-box {
  flex: 0 0 200px;
  position: relative;
  display: flex;
  width: 98%;
  justify-content: center;
  margin: 0 auto;
  padding-top: 10px;
  align-items: center;
}
.top-bx .search-input {
  width: 100%;
  padding: 8px 15px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}
.top-bx .search-icon {
  position: absolute;
  left: 10px;
  top: 60%;
  transform: translateY(-50%);
  color: #666;
}
.top-bx .marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #5157ff;
  color: #fff;
  height: 0.45rem;
  display: flex;
  align-items: center;
  margin: 8px 0;
}
.top-bx .marquee-content {
  position: absolute;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}
.tol-xla {
  color: #fff;
  padding: 10px 15px 20px 15px;
}
.tol-xla h1 {
  color: #ff0;
  font-size: 0.18rem;
  font-weight: bold;
  padding-bottom: 10px;
}
.local-ts-bx {
  background: #ff6500;
  text-align: center;
  padding: 0.2rem 0.1rem 0.1rem 0.1rem;
}
.local-ts-bx h1 {
  color: #fff;
  font-size: 0.22rem;
}
.local-ts-bx h2 {
  padding: 0.15rem;
  font-size: 0.18rem;
  color: #ffefb8;
}
.local-ts-bx h3 a {
  color: #3788fd;
}
.footer-nav {
  display: flex;
  justify-content: space-evenly;
}
.footer-nav .footer-nav__item {
  font-size: 0.12rem;
}
.cap-shop-nav {
  position: fixed;
  bottom: 0;
  z-index: 99;
  display: flex;
  width: 100%;
  left: 0;
  background: #fafafa;
  height: 0.5rem;
  align-items: center;
}
.cap-shop-nav .cap-wechat-nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.cap-shop-nav .cap-wechat-nav a {
  color: #4b4b4b;
}
.cap-shop-nav .cap-wechat-nav li.cap-wechat-nav__item {
  list-style: none;
}
.cap-shop-nav .cap-wechat-nav li.cap-wechat-nav__item a {
  color: #4b4b4b;
}
