/* === Hero Banner === */
    .hero-banner {
      position: relative;
      width: 100%;
      height: 400px;
      overflow: hidden;
      background-image: url('https://images.pexels.com/photos/10059833/pexels-photo-10059833.jpeg?auto=compress&cs=tinysrgb&w=1600&h=800');
      background-size: cover;
      background-position: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      padding: 20px;
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.4);
      z-index: 1;
    }

    .hero-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 20px;
      z-index: 2;
      line-height: 1.2;
    }

    .hero-desc {
      font-size: 1.2rem;
      max-width: 800px;
      z-index: 2;
      line-height: 1.6;
    }

    /* === 移动端：隐藏面包屑 === */
    @media (max-width: 767px) {
      
      .hero-banner {
        height: 300px;
      }
      .hero-title {
        font-size: 2.2rem;
      }
      .hero-desc {
        font-size: 1rem;
      }
    }

    /* ========== 左侧菜单栏 ========== */
    .productlist{
      background-color: white;
      padding:30px 0;
    }
    .sidebar {
      width:220px;
      overflow-y: auto;
    }
    .sidebar-menu{
      display: flex;
      flex-direction: column;

    }
    .menu-item {
      list-style: none;
      border-bottom: 1px solid #eee;
    }

    .menu-link {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      color: #333;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s;
    }

    .menu-link:hover,
    .menu-link.active {
      background-color: #e9ecef;
      font-weight: bold;
    }

    .submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      background-color: #fafafa;
    }

    .submenu.show {
      max-height: 500px;
    }

    .submenu .menu-link {
      padding-left: 40px;
      font-size: 14px;
      font-weight: normal;
    }

    .arrow {
      transition: transform 0.3s ease;
    }

    .menu-link.active > .arrow,
    .submenu-toggle.active .arrow {
      transform: rotate(180deg);
    }

    /* ========== 主内容区 ========== */
    .main-content {
      flex: 1;
      padding: 20px;
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 24px;
    }

    .product-card {
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      height: 300px;
      display: flex;
      flex-direction: column;
      transition: box-shadow 0.3s ease;
    }

    .product-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .product-image {
      width: 100%;
      height: 150px;
      margin: 0 auto 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #f9f9f9;
      border-radius: 4px;
      overflow: hidden;
    }

    .product-image img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .product-title {
      font-size: 16px;
      font-weight: bold;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 10px;
    }

    .product-desc {
      font-size: 14px;
      color: #555;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      padding:0 16px;
    }

    /* ========== 分页 ========== */
    .pagination {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 24px;
    }

    .page-btn {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #ccc;
      background: white;
      cursor: pointer;
      border-radius: 4px;
      font-size: 14px;
    }

    .page-btn.active {
      background-color: #c6c7c9;
      color: white;
      border-color: #c6c7c9;
    }

    .page-btn:hover:not(.active) {
      background-color: #c6c7c9;
    }

    /* ========== 移动端适配 ========== */
    @media (max-width: 768px) {
      .sidebar {
        display: none;
      }

      .main-content {
        margin-left: 0;
        padding: 12px;
      }

      .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .product-card {
        height: auto;
        min-height: 280px;
      }
    }