   /* CSS变量系统 - 与React版本完全一致 */
    :root {
      --radius: 0.5rem;
      --background: 0 0% 100%;
      --foreground: 220 13% 13%;
      --card: 0 0% 100%;
      --card-foreground: 220 13% 13%;
      --popover: 0 0% 100%;
      --popover-foreground: 220 13% 13%;
      --primary: 217 91% 60%;
      --primary-foreground: 0 0% 100%;
      --secondary: 220 14% 96%;
      --secondary-foreground: 220 13% 13%;
      --muted: 220 14% 96%;
      --muted-foreground: 220 9% 46%;
      --accent: 217 91% 95%;
      --accent-foreground: 217 91% 30%;
      --destructive: 0 84% 60%;
      --destructive-foreground: 0 0% 100%;
      --border: 220 13% 91%;
      --input: 220 13% 91%;
      --ring: 217 91% 60%;
    }

    /* 基础样式重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background-color: hsl(var(--background));
      color: hsl(var(--foreground));
      line-height: 1.6;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      background: none;
    }

    /* Header样式 */
    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      width: 100%;
      border-bottom: 1px solid hsl(var(--border));
      background-color: hsla(var(--background), 0.95);
      backdrop-filter: blur(10px);
    }

    .header-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1rem;
      display: flex;
      align-items: center;
      height: 64px;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 0.625rem;
    }

    .main-nav {
      margin: 0 auto;
    }

    /* 城市选择器 */
    .city-selector {
      position: relative;
      margin-right: 0.625rem;
    }

    .city-selector-trigger {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.5rem 0.75rem;
      border-radius: 0.375rem;
      cursor: pointer;
      transition: background-color 0.2s;
    }

    .city-selector-trigger:hover {
      background-color: hsl(var(--muted));
    }

    .current-city {
      font-size: 0.875rem;
      font-weight: 500;
    }

    .city-arrow {
      width: 16px;
      height: 16px;
      transition: transform 0.3s;
    }

    .city-selector.open .city-arrow {
      transform: rotate(180deg);
    }

    .city-dropdown {
      position: absolute;
      top: 100%;
      left:-135px;
      margin-top: 0.25rem;
      background-color: hsl(var(--background));
      border: 1px solid hsl(var(--border));
      border-radius: 0.5rem;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      min-width: 360px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
    }

    .city-selector.open .city-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .city-dropdown-header {
      padding: 1rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .city-dropdown-header h4 {
      font-size: 0.875rem;
      font-weight: 600;
      margin: 0;
    }

    .city-dropdown-content {
      padding: 0.5rem;
    }

    .city-group {
      margin-bottom: 1rem;
    }

    .city-group-title {
      font-size: 0.75rem;
      font-weight: 600;
      color: hsl(var(--muted-foreground));
      margin-bottom: 0.5rem;
      padding: 0 0.5rem;
    }

    .city-group-items {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.5rem;
      list-style: none;
    }

    .city-item {
      margin: 0;
    }

    .city-item a {
      display: block;
      padding: 0.5rem;
      border: 1px solid hsl(var(--border));
      border-radius: 0.25rem;
      background-color: hsl(var(--background));
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
    }

    .city-item a:hover {
      background-color: hsl(var(--muted));
      border-color: hsl(var(--primary));
    }

    .city-item a:active {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border-color: hsl(var(--primary));
    }

    /* 按钮类型的城市项 */
    .city-group-items button.city-item {
      display: block;
      width: 100%;
      padding: 0.5rem;
      border: 1px solid hsl(var(--border));
      border-radius: 0.25rem;
      background-color: hsl(var(--background));
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
    }

    .city-group-items button.city-item:hover {
      background-color: hsl(var(--muted));
      border-color: hsl(var(--primary));
    }

    .city-group-items button.city-item:active {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border-color: hsl(var(--primary));
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: bold;
      font-size: 1.125rem;
    }

    .logo-image {
      height: 32px;
      width: auto;
    }

    /* 统一响应式导航 */
    .main-nav {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      position: relative;
    }

    /* 导航链接容器 */
    .nav-container {
      position: relative;
      display: flex;
      align-items: center;
    }

    /* 导航链接 */
    .nav-links {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      position: fixed;
      top: 0;
      left: -300px;
      width: 280px;
      height: 100vh;
      background-color: hsl(var(--background));
      box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
      z-index: 100;
      transition: left 0.3s ease;
      overflow-y: auto;
      padding: 1rem;
      padding-top: 3rem;
    }

    .nav-links.active {
      left: 0;
    }

    /* 导航项 */
    .nav-item {
      margin-bottom: 0.25rem;
    }

    .nav-link {
      padding: 0.75rem 1rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: hsl(var(--foreground));
      text-decoration: none;
      border-radius: 0.375rem;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-link:hover {
      color: hsl(var(--primary));
      background-color: hsl(var(--muted));
    }

    .nav-item-trigger {
      cursor: pointer;
      user-select: none;
    }

    /* 导航箭头 */
    .nav-arrow {
      width: 16px;
      height: 16px;
      transition: transform 0.3s;
    }

    .nav-arrow.expanded {
      transform: rotate(180deg);
    }

    /* 子菜单 */
    .nav-submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
      padding-left: 1rem;
      margin-top: 0.25rem;
    }

    .nav-submenu.expanded {
      max-height: 500px;
    }

    .nav-submenu-item {
      display: block;
      padding: 0.625rem 1rem;
      border-radius: 0.375rem;
      margin-bottom: 0.25rem;
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      text-decoration: none;
      transition: all 0.2s;
    }

    .nav-submenu-item:hover {
      background-color: hsl(var(--muted));
      color: hsl(var(--foreground));
    }

    .nav-submenu-separator {
      height: 1px;
      background-color: hsl(var(--border));
      margin: 0.5rem 0;
    }

    /* 移动端菜单按钮 */
    .mobile-menu-button {
      display: flex;
    }

    /* 桌面端样式 */
    @media (min-width: 1024px) {
      .mobile-menu-button {
        display: none !important;
      }

      .nav-links {
        position: static;
        flex-direction: row;
        gap: 0.375rem;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
        white-space: nowrap;
      }

      .nav-link {
        padding: 0.5rem 0.75rem;
        justify-content: flex-start;
        gap: 0.25rem;
        white-space: nowrap;
        font-size: 0.875rem;
      }

      .nav-item {
        position: relative;
        margin-bottom: 0;
        white-space: nowrap;
      }

      .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: hsl(var(--background));
        border: 1px solid hsl(var(--border));
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        margin-top: 0.25rem;
        padding-left: 0;
        max-height: 400px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        z-index: 1000;
      }

      .nav-item:hover .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .nav-submenu-item {
        padding: 0.5rem 1rem;
        margin-bottom: 0;
      }

      .nav-arrow {
        transition: transform 0.3s;
      }

      .nav-item:hover .nav-arrow {
        transform: rotate(180deg);
      }
    }



    /* Header右侧操作按钮 */
    .header-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .icon-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 0.375rem;
      transition: background-color 0.2s;
    }

    .icon-button:hover {
      background-color: hsl(var(--muted));
    }

    .icon-button svg {
      width: 20px;
      height: 20px;
    }

    .cart-badge {
      position: relative;
    }

    .cart-badge-count {
      position: absolute;
      top: -4px;
      right: -4px;
      background-color: hsl(var(--destructive));
      color: hsl(var(--destructive-foreground));
      font-size: 0.75rem;
      font-weight: bold;
      padding: 0 0.375rem;
      border-radius: 9999px;
      min-width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-primary {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      font-size: 0.875rem;
      font-weight: 500;
      transition: opacity 0.2s;
    }

    .btn-primary:hover {
      opacity: 0.9;
    }



    /* 搜索对话框 */
    .search-overlay {
      position: fixed;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 100px;
    }

    .search-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .search-dialog {
      background-color: hsl(var(--background));
      border-radius: var(--radius);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
      width: 90%;
      max-width: 600px;
      max-height: 80vh;
      overflow: hidden;
      transform: scale(0.95);
      transition: transform 0.3s;
    }

    .search-overlay.active .search-dialog {
      transform: scale(1);
    }

    .search-header {
      padding: 1.5rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .search-input-wrapper {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background-color: hsl(var(--muted));
      border-radius: 0.375rem;
      padding: 0.75rem 1rem;
    }

    .search-input-wrapper svg {
      width: 20px;
      height: 20px;
      color: hsl(var(--muted-foreground));
    }

    .search-input {
      flex: 1;
      border: none;
      background: none;
      outline: none;
      font-size: 1rem;
      color: hsl(var(--foreground));
    }

    .search-input::placeholder {
      color: hsl(var(--muted-foreground));
    }

    .search-close {
      padding: 0.5rem;
      border-radius: 0.375rem;
      transition: background-color 0.2s;
    }

    .search-close:hover {
      background-color: hsl(var(--muted));
    }

    .search-close svg {
      width: 20px;
      height: 20px;
    }

    .search-body {
      padding: 1rem;
      max-height: 400px;
      overflow-y: auto;
    }

    .search-results {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .search-result-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.75rem;
      border-radius: 0.375rem;
      transition: background-color 0.2s;
      cursor: pointer;
    }

    .search-result-item:hover {
      background-color: hsl(var(--muted));
    }

    .search-result-image {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 0.375rem;
      flex-shrink: 0;
    }

    .search-result-info {
      flex: 1;
      min-width: 0;
    }

    .search-result-title {
      font-weight: 600;
      margin-bottom: 0.25rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .search-result-price {
      color: hsl(var(--primary));
      font-weight: bold;
    }

    .search-empty {
      text-align: center;
      padding: 3rem 1rem;
      color: hsl(var(--muted-foreground));
    }

    .search-empty svg {
      width: 48px;
      height: 48px;
      margin: 0 auto 1rem;
      opacity: 0.5;
    }

    /* Container */
    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1rem 1rem;
    }

    /* 面包屑 */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
    }

    .breadcrumb a {
      transition: color 0.2s;
    }

    .breadcrumb a:hover {
      color: hsl(var(--foreground));
    }

    .breadcrumb-separator {
      color: hsl(var(--muted-foreground));
    }

    /* 页面标题 */
    .page-header {
      margin-bottom: 2rem;
    }

    .page-title {
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    .page-description {
      color: hsl(var(--muted-foreground));
    }

    /* 网格布局 */
    .products-layout {
      display: grid;
      gap: 1.5rem;
    }

    @media (min-width: 1280px) {
      .products-layout {
        grid-template-columns: 1fr 3fr;
      }
    }

    /* 侧边栏 */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* 卡片 */
    .card {
      background-color: hsl(var(--card));
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      overflow: hidden;
    }

    /* 移动端卡片无边框 */
    @media (max-width: 767px) {
      .card {
        border: none;
        box-shadow: none;
      }
      
      .card-header {
        border-bottom: none;
        padding-bottom: 1rem;
      }
      
      .card-content {
        padding: 1rem;
      }
    }

    .card-header {
      padding: 1.5rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .card-title {
      font-size: 1.125rem;
      font-weight: 600;
    }

    /* 移动端分类列表手风琴 */
    @media (max-width: 767px) {
      .card.category-card .card-header {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .category-arrow {
        width: 20px;
        height: 20px;
        transition: transform 0.3s;
        display: block;
      }

      .category-arrow.expanded {
        transform: rotate(180deg);
      }

      .card.category-card .card-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0 1.5rem;
      }

      .card.category-card .card-content.expanded {
        max-height: 500px;
        padding: 1.5rem;
      }
    }

    @media (min-width: 768px) {
      .category-arrow {
        display: none;
      }
    }

    /* 桌面端卡片内容 */
    @media (min-width: 768px) {
      .card-content {
        padding: 1.5rem;
      }
    }

    /* 分类按钮 */
    .category-list {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .category-button {
      width: 100%;
      text-align: left;
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      transition: all 0.2s;
      font-size: 0.875rem;
      list-style: none;
    }

    .category-button:hover {
      background-color: hsl(var(--muted));
    }

    .category-button.active {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
    }

    /* 产品网格 */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    @media (min-width: 1280px) {
      .products-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* 单列产品网格（用于侧边栏） */
    .products-grid-single {
      grid-template-columns: 1fr !important;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .products-grid-single .product-card {
      margin-bottom: 0;
    }

    /* 产品卡片 */
    .product-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .product-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .product-header {
      padding: 1rem;
      border-bottom: 1px solid hsl(var(--border));
    }

    .product-title {
      font-size: 1rem;
      font-weight: 600;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color 0.2s;
    }

    .product-title:hover {
      color: hsl(var(--primary));
    }

    .product-body {
      padding: 1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .product-info {
      margin-bottom: 1rem;
    }

    .product-price-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }

    .product-price {
      font-size: 1.5rem;
      font-weight: bold;
      color: hsl(var(--primary));
    }

    .badge {
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 500;
      background-color: hsl(var(--secondary));
      color: hsl(var(--secondary-foreground));
    }

    .product-stock {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
    }

    .btn-cart {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border-radius: 0.375rem;
      font-size: 0.875rem;
      font-weight: 500;
      transition: opacity 0.2s;
    }

    .btn-cart:hover:not(:disabled) {
      opacity: 0.9;
    }

    .btn-cart:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-cart svg {
      width: 16px;
      height: 16px;
    }

    /* 空状态 */
    .empty-state {
      text-align: center;
      padding: 3rem 2rem;
    }

    .empty-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 1rem;
      color: hsl(var(--muted-foreground));
    }

    .empty-text {
      color: hsl(var(--muted-foreground));
    }

    /* 分页 */
    .pagination {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
    }

    .page-button {
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      font-size: 0.875rem;
      transition: all 0.2s;
      background-color: hsl(var(--muted));
    }

    .page-button:hover {
      background-color: hsl(var(--muted));
      opacity: 0.8;
    }

    .page-button.active {
      background-color: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
    }

    /* Footer */
    .footer {
      border-top: 1px solid hsl(var(--border));
      background-color: hsl(var(--muted) / 0.3);
      margin-top: 1rem;
    }

    .footer-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 2rem 1rem;
    }

    .footer-grid {
      display: grid;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    /* 移动端footer样式 */
    @media (max-width: 767px) {
      .footer-container {
        padding: 0.75rem 1rem;
      }
      
      .footer-grid {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
      }
      
      .footer-section h3 {
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
      }
      
      .footer-link {
        padding: 0.125rem 0;
        font-size: 0.75rem;
      }
      
      .footer-bottom {
        padding-top: 0.5rem;
      }
      
      .footer-bottom p {
        font-size: 0.75rem;
      }
    }

    @media (min-width: 768px) {
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .footer-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .footer-section h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    /* Footer移动端手风琴 */
    @media (max-width: 767px) {
      .footer-section h3 {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
      }

      .footer-arrow {
        width: 18px;
        height: 18px;
        transition: transform 0.3s;
        display: block;
        flex-shrink: 0;
      }

      .footer-arrow.expanded {
        transform: rotate(180deg);
      }

      .footer-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
      }

      .footer-content.expanded {
        max-height: 500px;
      }
    }

    @media (min-width: 768px) {
      .footer-arrow {
        display: none;
      }
    }

    .footer-section p {
      color: hsl(var(--muted-foreground));
      font-size: 0.875rem;
      line-height: 1.6;
    }

    .footer-links {
      list-style: none;
    }

    .footer-link {
      display: block;
      padding: 0.25rem 0;
      color: hsl(var(--muted-foreground));
      font-size: 0.875rem;
      transition: color 0.2s;
    }

    .footer-link:hover {
      color: hsl(var(--foreground));
    }

    .footer-bottom {
      border-top: 1px solid hsl(var(--border));
      padding-top: 2rem;
      text-align: center;
      color: hsl(var(--muted-foreground));
      font-size: 0.875rem;
    }
    
    /* 移动端适配，防止被固定底部菜单覆盖 */
    @media screen and (max-width:768px){
      .footer-bottom {
        padding-bottom: 60px;
      }
    }

    .footer-bottom p {
      margin-bottom: 0.5rem;
    }



    /* 骨架屏 */
    .skeleton {
      background-color: hsl(var(--muted));
      border-radius: 0.375rem;
      animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    @keyframes pulse {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.5;
      }
    }

    /* 隐藏类 */
    .hidden {
      display: none;
    }

    /* 移动端隐藏 */
    @media (max-width: 767px) {
      .hide-on-mobile {
        display: none !important;
      }
    }

    /* 间距工具类 */
    .mt-8 {
      margin-top: 2rem;
    }

    /* 产品详情页样式 */
    .product-detail-grid {
      display: grid;
      gap: 2rem;
    }

    @media (min-width: 1280px) {
      .product-detail-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .media-container {
      display: grid;
      gap: 1rem;
      grid-template-columns: 80px 1fr;
      min-height: 360px;
    }

    .thumbnail-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      overflow-y: auto;
      padding-right: 0.5rem;
      max-height: 360px;
    }

    @media (max-width: 767px) {
      .media-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        min-height: 300px;
      }
      
      .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.5rem;
        max-height: none;
        order: 2;
      }
      
      .main-media {
        order: 1;
      }
      
      .thumbnail {
        width: 4rem;
        height: 4rem;
      }
    }

    .thumbnail {
      position: relative;
      flex-shrink: 0;
      width: 5rem;
      height: 5rem;
      overflow: hidden;
      border-radius: var(--radius);
      border: 2px solid hsl(var(--border));
      transition: all 0.2s;
      cursor: pointer;
      background: none;
      padding: 0;
    }

    .thumbnail:hover {
      border-color: hsl(var(--primary) / 0.5);
    }

    .thumbnail.active {
      border-color: hsl(var(--primary));
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .main-media {
      overflow: hidden;
      border-radius: var(--radius);
      border: 1px solid hsl(var(--border));
      background-color: hsl(var(--muted));
      aspect-ratio: 1/1;
    }

    .main-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .product-video {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .play-icon-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.3);
      border-radius: var(--radius);
    }

    .play-icon-bg {
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .product-info-section {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .product-price-row {
      display: flex;
      align-items: baseline;
      gap: 1rem;
    }

    .product-original-price {
      font-size: 1rem;
      text-decoration: line-through;
      color: hsl(var(--muted-foreground));
    }

    .quantity-control {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .quantity-control button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      background-color: hsl(var(--background));
      transition: all 0.2s;
    }

    .quantity-control button:hover {
      background-color: hsl(var(--muted));
    }

    .quantity-control span {
      width: 3rem;
      text-align: center;
      font-weight: 500;
    }

    .action-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .btn-lg {
      height: 2.75rem;
      padding: 0 2rem;
      font-size: 1rem;
    }

    .btn-full {
      width: 100%;
    }

    

    /* 文章详情页图片 */
    .article-detail-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: var(--radius);
      margin-bottom: 1.5rem;
    }

    

    /* 文章内容样式 */
    .article-body {
      font-size: 1rem;
      line-height: 1.75;
      color: hsl(var(--foreground));
      max-width: 100%;
    }

    .article-body p {
      margin-bottom: 1.5rem;
    }

    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6 {
      font-weight: 700;
      margin-top: 2.5rem;
      margin-bottom: 1.25rem;
      color: hsl(var(--foreground));
    }

    .article-body h1 {
      font-size: 2rem;
    }

    .article-body h2 {
      font-size: 1.75rem;
    }

    .article-body h3 {
      font-size: 1.5rem;
    }

    .article-body h4 {
      font-size: 1.25rem;
    }

    .article-body h5 {
      font-size: 1.125rem;
    }

    .article-body h6 {
      font-size: 1rem;
    }

    .article-body ul,
    .article-body ol {
      margin-bottom: 1.5rem;
      padding-left: 1.5rem;
    }

    .article-body li {
      margin-bottom: 0.5rem;
    }

    .article-body img {
      max-width: 100%;
      height: auto;
      border-radius: var(--radius);
      margin: 1.5rem 0;
    }

    .article-body a {
      color: hsl(var(--primary));
      text-decoration: none;
    }

    .article-body.prose a:hover {
      text-decoration: underline;
    }

    /* 文章元数据样式 */
    .article-meta {
      display: flex;
      gap: 20px;
      margin-top: 10px;
      font-size: 10px;
      color: #999;
    }

    .article-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #999;
    }

    .article-meta .icon {
      width: 12px;
      height: 12px;
      color: hsl(var(--muted-foreground));
    }

  



    /* 产品导航样式 */
    .product-navigation {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      padding: 0.9rem;
      background-color: hsl(var(--muted));
      border-radius: var(--radius);
    }

    /* 确保一个导航项时占据整个宽度 */
    .product-navigation .nav-item:only-child {
      grid-column: 1 / -1;
    }

    /* 产品导航项样式 - 确保不受其他样式影响 */
    .product-navigation .nav-item {
      display: flex;
      flex: none;
      width: 100%;
    }

    /* 产品导航链接样式 - 确保不受其他样式影响 */
    .product-navigation .nav-link {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      border-radius: var(--radius);
      transition: all 0.2s;
      color: hsl(var(--foreground));
      text-decoration: none;
      max-width: none !important;
      white-space: normal !important;
    }

    /* 重置产品导航中的next-item样式 */
    .product-navigation .next-item {
      text-align: left !important;
      justify-content: flex-end !important;
      min-width: 0 !important;
    }

    /* 重置产品导航中的next-item span样式 */
    .product-navigation .next-item span {
      margin-left: 0.5rem !important;
      order: 2 !important;
      white-space: nowrap !important;
    }

    /* 重置产品导航中的next-item a样式 */
    .product-navigation .next-item a {
      order: 1 !important;
      max-width: none !important;
      white-space: normal !important;
    }

    .product-navigation .prev-item .nav-link {
      justify-content: flex-end;
    }

    .product-navigation .next-item .nav-link {
      justify-content: flex-end;
    }

    .product-navigation .nav-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .product-navigation .nav-title {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      max-width: calc(100% - 24px); /* 减去图标的宽度 */
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .product-navigation {
        gap: 0.5rem;
        padding: 0.5rem;
      }
      
      .product-navigation .nav-item {
        min-width: 0;
      }
      
      .product-navigation .nav-link {
        padding: 0.5rem;
        min-width: 0;
      }
      
      .product-navigation .nav-title {
        font-size: 0.75rem;
        max-width: calc(100% - 16px); /* 手机上减去图标的宽度 */
      }
      
      .product-navigation .nav-icon {
        width: 12px;
        height: 12px;
      }
    }

    /* 确保导航项在任何情况下都能正确显示 */
    .product-navigation .nav-item {
      min-width: 0;
    }

    .product-navigation .nav-link {
      min-width: 0;
    }

    .product-navigation .nav-link:hover {
      background-color: hsl(var(--background));
      color: hsl(var(--primary));
    }

 



    /* 文章网格 */
    .articles-grid {
      display: grid;
      gap: 24px;
      grid-template-columns: 1fr;
      margin-bottom: 32px;
    }

    @media (min-width: 768px) {
      .articles-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1280px) {
      .articles-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* 相关推荐文章列表 */
    .articles-list {
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
      .articles-list {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .article-item {
      transition: all 0.2s;
    }

    .article-item:hover {
      transform: translateY(-2px);
    }

    .article-link {
      display: block;
      padding: 3px 0;
      border-bottom: 0px solid hsl(var(--border));
      transition: all 0.2s;
    }

    .article-link:hover {
      color: hsl(var(--primary));
    }

    .article-title {
      font-size: 0.875rem;
      font-weight: 500;
      line-height: 1.4;
      transition: color 0.2s;
    }

    .article-link:hover .article-title {
      color: hsl(var(--primary));
    }

    /* 文章卡片 */
    .list-article-card {
      text-decoration: none;
      color: inherit;
      display: block;
      height: 100%;
      transition: all 0.3s;
    }

    .list-article-card:hover {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .list-article-card:hover .card {
      border-color: hsl(var(--primary));
    }

    .list-article-image {
      width: 100%;
      height: 192px;
      object-fit: cover;
    }

    .list-article-title {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .list-article-excerpt {
      font-size: 0.875rem;
      color: hsl(var(--muted-foreground));
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .list-article-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.875rem;
    }

    /* 标签 */
    .badge {
      display: inline-block;
      padding: 2px 8px;
      background: hsl(var(--secondary));
      color: hsl(var(--secondary-foreground));
      border-radius: 4px;
      font-size: 12px;
    }

    .list-article-date {
      color: hsl(var(--muted-foreground));
    }

    /* 咨询表单样式 */
    .consult-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .form-group label {
      font-size: 0.875rem;
      font-weight: 500;
      color: hsl(var(--foreground));
    }

    .form-input,
    .form-textarea {
      padding: 0.75rem;
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      transition: all 0.2s;
      background: hsl(var(--background));
      color: hsl(var(--foreground));
    }

    .form-input:focus,
    .form-textarea:focus {
      outline: none;
      border-color: hsl(var(--primary));
      box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .form-actions {
      display: flex;
      gap: 1rem;
      margin-top: 0.5rem;
    }

    .form-actions .btn-primary,
    .form-actions .btn-outline {
      flex: 1;
      padding: 0.75rem 1.5rem;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.2s;
      cursor: pointer;
    }

    .form-actions .btn-primary {
      background: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border: none;
    }

    .form-actions .btn-primary:hover {
      opacity: 0.9;
    }

    .form-actions .btn-outline {
      background: transparent;
      color: hsl(var(--foreground));
      border: 1px solid hsl(var(--border));
    }

    .form-actions .btn-outline:hover {
      background: hsl(var(--muted));
    }

    .hide-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .hide-scrollbar::-webkit-scrollbar {
      display: none;
    }

    .btn-outline {
      border: 1px solid hsl(var(--border));
      background-color: transparent;
      color: hsl(var(--foreground));
      padding: 0.5rem 1rem;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.2s;
    }

    .btn-outline:hover:not(:disabled) {
      background-color: hsl(var(--accent));
    }

    .btn-icon {
      width: 2.5rem;
      height: 2.5rem;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-ghost {
      background-color: transparent;
      color: hsl(var(--foreground));
      padding: 0.5rem 1rem;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.2s;
    }

    .btn-ghost:hover:not(:disabled) {
      background-color: hsl(var(--accent));
    }

    .icon {
      width: 1rem;
      height: 1rem;
      display: inline-block;
    }

    .icon-lg {
      width: 1.25rem;
      height: 1.25rem;
    }

    /* 移动端底部快捷菜单 */	
	.m_foot{
    background-color: #fff;
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    display: none;
    z-index: 999999;
}
.m_foot ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.m_foot li{
    float: left;
    width: 25%;
    list-style: none;
}
.m_foot li a{
    display: block;
    padding: 5px 0;
    text-align: center;
}
.m_foot li a span{
    font-size: 14px;
    color: #333;
}
.m_foot li i{
    display: block;
    width: 25px;
    height: 25px;
    /*background-color: red;*/
    margin: 0 auto 5px;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 25px 25px;
}
.m_foot li:nth-of-type(1) i{
    background-image: url("img/fixed_01.png"); 
}
.m_foot li:nth-of-type(2) i{
    background-image: url("img/fixed_02.png");
    position: relative;
}
.m_foot li:nth-of-type(3) i{
    background-image: url("img/fixed_03.png");
}
.m_foot li:nth-of-type(4) i{
    background-image: url("img/fixed_04.png");
}
.m_foot li:nth-of-type(2) i::after{
    content: "";
    position: absolute;
    right: 5px;
    top: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #f00;
}
@media screen and (max-width:768px){
.m_foot{display: block;}
}

 /* 分页样式*/	
.Meisoft-page {
  padding: 0.375rem 0;
  margin-right: 0.375rem;
  text-align: center;
}

.Meisoft-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  height: 2rem;
  line-height: 1;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0 0.75rem;
  margin-left: 0.1875rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.Meisoft-page a:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  text-decoration: none;
  border-color: hsl(var(--ring));
}

.Meisoft-page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  line-height: 1;
  background: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  margin-left: 0.1875rem;
  border-radius: var(--radius);
  font-weight: 500;
}
