/* 增大"我们的优势"区域图标尺寸 */
.advantage-icon {
  font-size: 3.8rem !important;
  width: 120px !important;
  height: 120px !important;
  line-height: 120px !important;
}

/* 修复图标边框问题 */
.advantage-icon i {
  display: inline-block;
  font-size: 3.2rem !important;
  color: var(--primary-color) !important;
}

.advantage-icon:before,
.advantage-icon .layui-icon:before {
  border: none !important;
  box-shadow: none !important;
}

/* 覆盖图标边框样式 */
.advantage-item .layui-icon {
  border: none !important;
  box-shadow: none !important;
}

/* 增大整个优势卡片尺寸 */
.advantage-item {
  padding: 2rem !important;
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* 确保悬浮客服按钮可见 */
.float-service {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 60px;
  height: 60px;
  background-color: #2977f3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 999;
  transition: all 250ms ease;
}

.float-service:hover {
  background-color: #1a66e0;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.float-service i {
  font-size: 1.8rem;
}

.float-service-text {
  position: absolute;
  right: 70px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease;
  white-space: nowrap;
}

.float-service:hover .float-service-text {
  opacity: 1;
  visibility: visible;
}

/* 购物车页面样式 */
.cart-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin: 30px 0;
  padding: 20px;
  transition: all 0.3s ease;
}

.cart-header {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.cart-header h2 {
  color: #333;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.cart-table {
  border: none;
  margin-bottom: 20px;
}

.cart-table thead tr {
  background-color: #f9f9f9;
}

.cart-table th {
  color: #666;
  font-weight: 500;
  text-align: center;
}

.cart-table td {
  padding: 15px;
  text-align: center;
  vertical-align: middle;
}

.cart-product-img {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 80px;
}

.cart-product-img:hover {
  transform: scale(1.05);
}

.cart-product-name {
  color: #333;
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.cart-product-name:hover {
  color: #ff5722;
  text-decoration: none;
}

.cart-quantity {
  align-items: center;
  display: flex;
  justify-content: center;
}

.cart-quantity .layui-btn {
  border-color: #e6e6e6;
  color: #666;
  height: 38px;
  margin: 0;
  transition: all 0.2s ease;
  width: 38px;
}

.cart-quantity .layui-btn:hover {
  background-color: #f2f2f2;
  border-color: #d2d2d2;
  color: #333;
}

.cart-quantity .quantity-input {
  border-left: none;
  border-radius: 0;
  border-right: none;
  color: #333;
  font-weight: 500;
  height: 38px;
  margin: 0;
  text-align: center;
  width: 60px;
}

.cart-delete {
  background-color: transparent;
  border: 1px solid #ff5722;
  color: #ff5722;
  transition: all 0.3s ease;
}

.cart-delete:hover {
  background-color: #ff5722;
  color: white;
}

.cart-footer {
  align-items: center;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
}

.cart-footer-buttons .layui-btn {
  margin-right: 10px;
}

.cart-footer-total {
  align-items: center;
  display: flex;
}

.total-price {
  font-size: 16px;
  margin-right: 20px;
}

.total-price span {
  color: #ff5722;
  font-size: 24px;
  font-weight: 600;
}

.checkout-btn {
  border-radius: 30px;
  font-size: 16px;
  height: 50px;
  line-height: 50px;
  padding: 0 30px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background-color: #ff4409;
  transform: translateY(-2px);
}

.empty-cart {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.empty-cart i {
  color: #d9d9d9;
  font-size: 80px;
  margin-bottom: 20px;
}

.empty-cart p {
  color: #999;
  font-size: 18px;
  margin-bottom: 30px;
}

.empty-cart .layui-btn {
  background-color: #ff5722;
  border-radius: 30px;
  font-size: 16px;
  height: 45px;
  line-height: 45px;
  padding: 0 30px;
  transition: all 0.3s ease;
}

.empty-cart .layui-btn:hover {
  background-color: #ff4409;
  transform: translateY(-2px);
}

.clear-cart {
  background-color: transparent;
  border: 1px solid #ff5722;
  color: #ff5722;
  transition: all 0.3s ease;
}

.clear-cart:hover {
  background-color: #ff5722;
  color: white;
}

/* 购物车动画效果 */
.cart-item {
  transition: all 0.3s ease;
}

.cart-item.hover {
  background-color: #f9f9f9;
}

.cart-item.deleting {
  animation: fadeOutRight 0.3s ease forwards;
  opacity: 0;
  transform: translateX(50px);
}

.highlight {
  animation: highlight 0.5s ease;
}

.fadeOut {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes highlight {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(255, 87, 34, 0.1);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .advantage-icon {
    width: 90px !important;
    height: 90px !important;
    line-height: 90px !important;
    font-size: 3rem !important;
  }
  
  .float-service {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 70px;
  }
  
  .float-service i {
    font-size: 1.5rem;
  }
  
  /* 购物车响应式样式 */
  .cart-container {
    margin: 15px 0;
    padding: 15px;
  }
  
  .cart-header h2 {
    font-size: 20px;
  }
  
  .cart-table thead {
    display: none;
  }
  
  .cart-table, 
  .cart-table tbody, 
  .cart-table tr, 
  .cart-table td {
    display: block;
    width: 100%;
  }
  
  .cart-table tr {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
  }
  
  .cart-table td {
    border: none;
    padding: 8px 0;
    text-align: left;
  }
  
  .cart-table td:before {
    color: #666;
    content: attr(data-th);
    display: inline-block;
    font-weight: 500;
    width: 100px;
  }
  
  .cart-product-img {
    height: 60px;
    width: 60px;
  }
  
  .cart-quantity {
    justify-content: flex-start;
  }
  
  .cart-footer {
    flex-direction: column;
  }
  
  .cart-footer-buttons {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .cart-footer-buttons .layui-btn {
    display: block;
    margin: 0 0 10px 0;
    width: 100%;
  }
  
  .cart-footer-total {
    flex-direction: column;
    width: 100%;
  }
  
  .total-price {
    margin-bottom: 15px;
    margin-right: 0;
    width: 100%;
  }
  
  .checkout-btn {
    width: 100%;
  }
} 