
@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/static/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/static/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/static/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto/static/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      

      
      .loading {
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
      }
      
      .loading.hide {
        opacity: 0;
        pointer-events: none;
      }
      
      .spinner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(220, 20, 60, 0.2);
        border-radius: 50%;
        border-top-color: #144db8;
        animation: spin 1s linear infinite;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      
  
      
      .breadcrumb {
        padding: 10px 220px;
        font-size: 14px;
        color: #777;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        display: flex;
        align-items: center;
      }
      .location-icon {
        color: #144db8;
        margin-right: 10px;
        font-size: 16px;
      }
      .breadcrumb a {
        color: #777;
        text-decoration: none;
      }
      
      .breadcrumb a:hover {
        color: #144db8;
      }
      
      .banner {
        background: url('../images/product/Products Banner.jpg') center/cover no-repeat;
        height: 600px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
      }
      
      .banner-content {
        background: rgb(34 34 34 / 50%);
      padding: 50px 60px;
      color: #fff;
      margin: 0;
      text-align: center;
      }
      
      .banner-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #fff;
        text-align: center; /* 添加居中对齐 */
      }
      
      .banner-desc {
        font-size: 14px;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 5px;
        text-align: center; /* 添加居中对齐 */
      }
      
      .main-container {
        max-width: 1500px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
      }
      
      .product-section {
        margin-top: -40px; /* 调整上边距，使其与banner更好地衔接 */
        position: relative;
        z-index: 10;
        width: 100%;
      }
      
      .product-header {
        background: #fff;
        padding: 20px 30px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 5px 5px 0 0;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
      }
      
      .product-title {
        font-size: 22px;
        font-weight: 700;
        color: #144db8;
        position: relative;
        padding-left: 15px;
      }
      
      .product-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 22px;
        background: #144db8;
      }
      
      .search-box {
        display: flex;
        align-items: center;
      }
      
      .search-box input {
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        outline: none;
        width: 200px;
      }
      
      .search-box button {
        background: #144db8;
        color: #fff;
        border: none;
        padding: 8px 15px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
      }
      
      .product-container {
        display: flex;
        background: #fff;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        overflow: hidden;
      }
      
      .sidebar {
        width: 330px;
        padding: 30px 0;
        border-right: 1px solid #eee;
      }
      
      .sidebar-title {
        padding: 0 30px;
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 700;
        color: #333;
      }
      
      .categories {
        list-style: none;
      }
      
      .categories li {
        padding: 12px 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        color: #676767;
      }
      .categories li a{

        color: #676767;
      }
      .categories li active {
        background: #f9f9f9;
        color: #144db8;
        font-weight: 500;
      }
      
      .categories li.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: #144db8;
      }
      
      .categories li:hover {
        background: #f9f9f9;
        color: #144db8;
      }
      
      .product-grid {
        flex: 1;
        padding: 30px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
      }
      
      .product-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 5px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
      }
      
      .product-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
      }
      
      .product-card img {
        max-width: 100%;
        
        object-fit: contain;
        margin-bottom: 15px;
      }
      
      .product-card-title {
        font-size: 16px;
        font-weight: 700;
        color: #144db8;
        margin-bottom: 8px;
      }
      
      .product-card-desc {
        font-size: 14px;
        color: #666;
        margin-bottom: 5px;
      }
      
      .product-card-code {
        font-size: 12px;
        color: #999;
      }
      
      .news-section {
        margin-top: -140px;
      }
      
      .news-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
      }
      
      .news-title {
        font-size: 22px;
        font-weight: 700;
        color: #144db8;
        position: relative;
        padding-left: 15px;
      }
      
      .news-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 22px;
        background: #144db8;
      }
      
      .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
      }
      
      @media (max-width: 1500px) {
  
        .news-section {
        margin:50px;
      }
        .news-grid {
          grid-template-columns: repeat(25%, 1fr);
          gap: 20px;
        }
        .product-card img {    height: 250px;}
        .news-card img {
          height: 180px;
        }
        
        .news-card-title {
          font-size: 16px;
          height: 44px;
        }
      }
      
      @media (max-width: 992px) {
        .news-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 15px;
        }
        
        .news-card img {
          height: 160px;
        }
      }
      
      @media (max-width: 768px) {
        .news-grid {
          grid-template-columns: 1fr;
        }
        
        .news-card img {
          height: 200px;
        }
      }
      .news-card {
        background: #fff;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
      }
      
      .news-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        transform: translateY(-5px);
      }
      
      .news-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
      }
      
      .news-card-content {
        padding: 20px;
      }
      
      .news-card-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 50px;
      }
      
      .news-card-date {
        font-size: 12px;
        color: #999;
        margin-top: 15px;
        display: flex;
        justify-content: space-between;
      }
    
      
      @media (max-width: 992px) {
        .product-container {
          flex-direction: column;
        }
        
        .sidebar {
          display: none; /* 隐藏sidebar */
        }
        
        .product-grid {
        flex: 1;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
        }
        
        .banner {
          height: 550px;
        }
        .banner-content {
          padding: 20px 30px;
        }
      }
      
      @media (max-width: 768px) {
  
        
        .breadcrumb {
          padding: 8px 20px;
          font-size: 12px;
        }
        
        .banner {
          height: 400px;
        }
        
        .banner-content {
          padding: 15px 20px;
        }
        
        .banner-title {
          font-size: 22px;
        }
        
        .banner-desc {
          font-size: 13px;
          line-height: 1.4;
        }
        .product-header {
          flex-direction: column;
          align-items: flex-start;
        }
        
        .search-box {
          margin-top: 15px;
          width: 100%;
        }
        
        .search-box input {
          width: 75%;
        }
        
        .product-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 15px;
      
        }
        
        .news-grid {
          grid-template-columns: 1fr;
        }
        .product-card img {
          height: 140px;
      }

      }

