
  .demo-container {
    width: 100%;
    max-width: 1500px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgb(49 145 210);
  }

  .demo-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
  }

  .demo-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .demo-title p {
    color: #7f8c8d;
    font-size: 16px;
  }

  /* 商城头部样式 */
  .mall-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f2f5;
  }

  .mall-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
  }

  @keyframes shimmer {
    0% {
      background-position: 200% 0;
    }

    100% {
      background-position: -200% 0;
    }
  }

  /* Logo样式 */
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  }

  .logo-text {
    display: flex;
    flex-direction: column;
  }

  .logo-text .brand {
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
  }

  .logo-text .tagline {
    font-size: 12px;
    color: #7f8c8d;
    letter-spacing: 0.5px;
  }

  /* 导航菜单样式 */
  .nav-container {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

  .main-nav {
    display: flex;
    list-style: none;
    gap: 10px;
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
  }

  .nav-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.08);
  }

  .nav-link.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
  }

  .nav-link i {
    font-size: 16px;
  }

  /* 下拉菜单样式 */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 15px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
  }

  .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu a {
    display: block;
    padding: 12px 25px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .dropdown-menu a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.08);
    padding-left: 30px;
  }

  .dropdown-menu a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 14px;
  }

  /* 购物车样式 */
  .cart-container {
    display: flex;
    align-items: center;
    position: relative;
  }

  .cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    margin-left: 10px;
  }
    .cart-btn a{
      color: #fff;
    }
  .cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
  }

  .cart-btn:active {
    transform: translateY(0);
  }

  .cart-icon {
    position: relative;
  }

  .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
  }

  /* 响应式设计 */
  @media (max-width: 1024px) {
    .mall-header {
      padding: 0 20px;
    }

    .main-nav {
      gap: 0;
    }

    .nav-link {
      padding: 12px 15px;
      font-size: 14px;
    }
  }

  @media (max-width: 900px) {
    .main-nav {
      display: none;
    }

    .nav-container {
      justify-content: flex-end;
    }

    .menu-toggle {
      display: block;
      background: none;
      border: none;
      font-size: 24px;
      color: #4a5568;
      cursor: pointer;
      padding: 10px;
      margin-right: 15px;
    }

    .demo-title h1 {
      font-size: 24px;
    }
  }

  /* 功能说明 */
  .features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
  }

  .feature {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .feature h3 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .feature h3 i {
    color: #9b59b6;
  }

  .feature p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
  }

  /* 移动端菜单按钮 */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
  }

  .menu-toggle:hover {
    background-color: rgba(52, 152, 219, 0.1);
  }

  /* 在较小屏幕上显示菜单切换按钮 */
  @media (max-width: 900px) {
    .menu-toggle {
      display: block;
    }
  }

