/* 通用响应式基础设置 */
.home {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 12px;
  }
  .el-col{
    margin-bottom: 10px;
  }

  .banner-container {
    width: 100%;
    max-width: 1440px;   
    margin: 0 auto;       
    overflow: hidden;    
  }
  
  .banner-container picture,
  .banner-container img {
    display: block;
    width: 100%;
    height: auto;          
    object-fit: cover;    
  }
  .new-price {
    color: #e74c3c;
    font-weight: bold;
  }
  
  .old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
  }
  .add-to-cart-btn {
    background-color: #ff4d4f !important;  
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .add-to-cart-btn:hover {
    background-color: #e63946 !important;  
    transform: translateY(-2px);
  }
  
  

  .pay-now-btn {
    background-color: #409eff;  
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .pay-now-btn:hover {
    background-color: #337ecc;  
    transform: translateY(-2px);
  }
  
  
 
  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
  }
  
  h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #409eff;
    border-radius: 2px;
  }
  

  .category-box {
    padding: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
  }
  
  .category-box:hover {
    transform: translateY(-5px);
  }
  
  .category-box img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
  }
  
  .category-box p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
  }
  

  .hot-sales-section {
    overflow-x: auto;
    margin-bottom: 2rem;
  }
  
  .el-table {
    min-width: 600px;
  }
  
  .el-table__body {
    white-space: nowrap;
  }
  

  .el-col {
    padding: 8px !important;
  }
 
  .product-section .add-to-cart-btn,
  .flash-sale-section .add-to-cart-btn {
    background-color: #ff4d4f !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .product-section .add-to-cart-btn:hover,
  .flash-sale-section .add-to-cart-btn:hover {
    background-color: #e63946 !important;  
    transform: translateY(-2px);
  }
  

  .add-to-cart-btn {
    background-color: #ff4d4f !important;  
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .add-to-cart-btn:hover {
    background-color: #e63946 !important; 
    transform: translateY(-2px);
  }
  
  
  .product-section .add-to-cart-btn:hover,
  .flash-sale-section .add-to-cart-btn:hover {
    background-color: #e63946 !important; 
    transform: translateY(-2px);
  }
  
  

  .pay-now-btn {
    background-color: #409eff; 
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .pay-now-btn:hover {
    background-color: #337ecc;  
    transform: translateY(-2px);
  }
  
  
  .service-card {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .service-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
  }
  
  .service-icon {
    font-size: 2.5rem !important;
    color: #409eff;
    margin-bottom: 1rem;
  }
  

  .best-rated-card {
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .best-rated-card:hover {
    transform: translateY(-5px);
  }
  
  .best-rated-img {
    height: 180px;
    width: 100%;
    object-fit: contain;
    padding: 12px;
  }
  
  .price {
    color: #ff4444;
    font-weight: 600;
    margin: 12px 0;
  }
  

  @media (max-width: 1200px) {
    .category-box img {
      height: 100px;
    }
  }
  
  @media (max-width: 992px) {
    h2 {
      font-size: 1.3rem;
      margin: 2rem 0 1.2rem;
    }
  
    .service-card {
      height: 180px;
      padding: 16px;
    }
  }
  
  @media (max-width: 768px) {
    .banner-top {
      padding-top: 45%;
    }
  
    .category-box {
      padding: 8px;
    }
  
    .category-box img {
      height: 80px;
    }
  
    .service-card {
      height: auto;
      margin-bottom: 12px;
    }
  
    .best-rated-img {
      height: 150px;
    }
  }
  
  @media (max-width: 576px) {
    h2 {
      font-size: 1.2rem;
      padding-bottom: 0.5rem;
    }
  
    h2::after {
      width: 40px;
      height: 2px;
    }
  
    .category-box p {
      font-size: 0.85rem;
    }
  
    .el-table {
      font-size: 0.9rem;
    }
  }
  
  .pay-now-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .el-card {
    transition: box-shadow 0.3s ease;
  }
  
  .el-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  
  .flash-sale-section,
  .category-section,
  .product-section,
  .hot-sales-section,
  .service-section,
  .best-rated-section {
    margin-bottom: 2.5rem;
  }
  
  .product-card {
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
  }
  
  .product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .product-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 5px;
  }
  
  .price {
    font-size: 16px;
    color: red;
  }
  
  .add-to-cart-btn {
    background-color: #ff4d4f !important; 
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
  }
  
  .add-to-cart-btn:hover {
    background-color: #e63946 !important;  
    transform: translateY(-2px);
  }