/* ======================================================================
 * 96IDCcart 购物车主题 · 顶栏/左侧目录/移动端导航样式
 * 作者：96IDC   QQ：2386214936   网址：www.96idc.cn
 * 本主题由 96IDC 定制开发，请保留本版权声明，谢谢。
 * ====================================================================== */

.firstgroup_box,
.secondgroup_box {
  min-height: 30px;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 4px 15px 1px rgba(6, 75, 179, 0.06);
  display: flex;
  align-items: center;
}

.firstgroup_box .firstgroup_box_prov,
.secondgroup_box .secondgroup_box_area {
  color: #0e62ff;
  display: inline-block;
  min-width: 60px;
}

.firstgroup_box .firstgroup_box_group,
.secondgroup_box .secondgroup_box_group {
  width: 100%;
  /* display: grid;
    grid-template-columns: repeat(auto-fit, 110px);
    gap: 10px 0; */
}

.firstgroup_box .firstgroup_item,
.secondgroup_box .secondgroup_item,
.pro_box .pro_item {
  height: 28px;
  box-shadow: 0px 4px 15px 1px rgba(6, 75, 179, 0.06);
  border-radius: 1px;
  border: solid 1px #ced1e2;
  margin-left: -1px;
  float: left;
  margin-bottom: 3px;
}

.firstgroup_box .firstgroup_item.active,
.firstgroup_box .firstgroup_item:hover,
.secondgroup_box .secondgroup_item.active,
.secondgroup_box .secondgroup_item:hover,
.pro_box .pro_item.active,
.pro_box .pro_item:hover {
  background-color: #0e62ff;
  border-color: #0e62ff;
  box-shadow: 0 4px 15px 1px rgba(6, 75, 179, 0.06);
  border-radius: 1px;
  color: #fff;
}
.firstgroup_box a,
.secondgroup_box a,
.pro_box a,
.firstgroup_box .firstgroup_item,
.secondgroup_box .secondgroup_item,
.pro_box .pro_item {
  color: #495057;
  min-width: 120px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.firstgroup_box a:hover,
.secondgroup_box a:hover,
.pro_box a:hover,
.firstgroup_box .firstgroup_item:hover a,
.secondgroup_box .secondgroup_item:hover a,
.pro_box .pro_item:hover a {
  color: #fff;
}

.smc-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: left;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.smc-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.08), 0 2px 4px 0 rgba(0,0,0,0.04);
}
.smc-card:before {
  content: none;
}
.smc-card .card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  background: #eff6ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  z-index: 2;
}
.smc-card .card-tag:before {
  display: none;
}
.smc-card.card-md .card-top {
  margin: 0;
  padding: 14px 16px 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.smc-card .card-top .title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.smc-card .card-top .desc {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
}

/* 描述列表 */
.smc-card.card-md .card-content {
  margin: 0;
  padding: 10px 16px;
  min-height: auto;
}
.smc-card .card-content ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.smc-card .card-content li {
  height: auto;
  line-height: 20px;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 2px;
}

/* 价格区 */
.smc-card.card-md .card-bottom .bottom-wrap.label-tags {
  height: auto;
  padding: 10px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #f3f4f6;
}
.smc-card .card-bottom .bottom-wrap .price-detail {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  flex-wrap: wrap;
}
.smc-card .card-bottom .bottom-wrap .price-detail .font-num {
  font-size: 22px;
  color: #dc2626;
  font-weight: 700;
  line-height: 1;
}
.smc-card .card-bottom .bottom-wrap .price-detail .desc {
  display: inline;
  line-height: 1;
}
.original_price {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
  text-decoration: line-through;
}
.price-detaily {
  display: inline;
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}
.smc-card .card-bottom .bottom-wrap .button-base {
  display: block;
  width: 100%;
  height: 32px;
  line-height: 32px;
  font-size: 13px;
  font-weight: 600;
  float: none;
  text-align: center;
  border-radius: 6px;
  padding: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  box-sizing: border-box;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.smc-card .card-bottom .bottom-wrap .button-base:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.smc-card .card-bottom .bottom-wrap .button-base.no {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}
.smc-card .card-bottom .bottom-wrap .button-base.no:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.smc-card .card-bottom .bottom-wrap .button-base .button-yellowgradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

a.button-base.button-radius-4.button-blueborder.h34-border.ml16 {
  border: 1px solid #3860f4;
  background: #fff;
  color: #3860f4;
  margin-right: 0;
}

/* ====== 桌面全屏 ====== */
@media (min-width: 769px) {
  /* ================ 左侧菜单 ================ */
  .products-gray-wrap {
    min-width: 0;
    width: 100%;
    height: calc(100vh - 104px);
    background: #f8fafc;
    padding: 44px 0 0 0;
    overflow: hidden;
  }
  /* 左侧菜单大盒子 */
  .products-nav {
    width: 325px; /* 原 260px 的四分之五（×1.25），与 --cart_navmax 同步 */
    flex-shrink: 0;
    height: calc(100vh - 150px);
    overflow: hidden;
    padding: 16px;
    background: transparent;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    float: none;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
    box-sizing: border-box;
  }
  .products-nav::before {
    content: none;
  }

  /* 搜索框 */
  .nav-search-box {
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
  }
  .nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
  }
  .nav-search-input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
  }
  .nav-search-input::placeholder {
    color: #94a3b8;
  }
  .nav-search-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  /* 列表卡片（可滚动） */
  .products-nav > ul.nav-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e8ecf2;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .products-nav > ul.nav-list::after,
  .products-nav > ul.nav-list > li::after,
  .products-nav > ul.nav-list > li::before {
    display: none;
  }

  /* 一级分类 */
  .products-nav > ul.nav-list > li.product_Level {
    position: relative;
    height: auto;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    margin: 2px 0;
    line-height: normal;
  }
  .products-nav > ul.nav-list > li.product_Level > a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: transparent;
    border-radius: 8px;
    border: none;
    line-height: 1.4;
    height: auto;
    min-height: 44px;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    user-select: none;
  }
  .products-nav > ul.nav-list > li.product_Level > a:hover {
    background: #f1f5f9;
    color: #0f172a;
  }

  /* 箭头指示器 */
  .nav-chevron {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
  }
  .nav-chevron.chev-open {
    transform: rotate(180deg);
    color: #2563eb;
  }

  /* 选中态 */
  .products-nav > ul.nav-list > li.product_Level.active > a,
  .products-nav > ul.nav-list > li.product_Level#open > a {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
  }
  .products-nav > ul.nav-list > li.product_Level.active > a .nav-chevron,
  .products-nav > ul.nav-list > li.product_Level#open > a .nav-chevron {
    transform: rotate(180deg);
    color: #2563eb;
  }

  /* 高亮项（新品上市） */
  .products-nav > ul.nav-list > li.product_Level.nav-featured > a {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #c53030;
    border: 1px solid #ffd6d6;
    font-weight: 700;
  }
  .products-nav > ul.nav-list > li.product_Level.nav-featured > a:hover {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd4d4 100%);
  }
  .products-nav > ul.nav-list > li.product_Level.nav-featured.active > a,
  .products-nav > ul.nav-list > li.product_Level.nav-featured#open > a {
    background: linear-gradient(135deg, #ffecec 0%, #ffd6d6 100%);
    color: #9b2c2c;
    border-color: #ffb8b8;
  }
  .products-nav > ul.nav-list > li.product_Level.nav-featured > a .nav-chevron {
    color: #e53e3e;
  }

  /* 二级容器 */
  .products-nav > ul.nav-list > div.list_nome,
  .products-nav > ul.nav-list > div.list_nome1 {
    background: transparent;
    padding: 2px 0 6px 0;
    border: none;
    margin: 0;
  }
  /* 二级项 */
  .products-nav > ul.nav-list > div > li.products-secondary {
    position: relative;
    height: auto;
    padding: 0;
    line-height: normal;
    background: transparent;
    border: none;
    margin: 0;
  }
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod {
    width: auto;
    border: none;
    padding: 0;
  }
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod > a {
    display: block;
    padding: 7px 14px 7px 38px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    line-height: 1.5;
    height: auto;
    background: transparent;
    border-radius: 6px;
    margin: 0;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod > a:hover {
    background: #f8fafc;
    color: #1e293b;
  }
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod.active > a {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
  }

  /* 商品组标签（显示headline） */
  .products-nav .group-tag {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
    color: #fff;
    background: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 3px;
    pointer-events: none;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 菜单滚动条 */
  .products-nav > ul.nav-list::-webkit-scrollbar {
    width: 6px;
  }
  .products-nav > ul.nav-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
  }
  .products-nav > ul.nav-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.15s ease;
  }
  .products-nav > ul.nav-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  /* 搜索过滤后空状态提示 */
  .nav-search-empty {
    display: none;
    padding: 20px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
  }

  /* 覆盖 topbar.css 的冲突样式：清除所有伪元素箭头/圆点 */
  .products-nav > ul.nav-list > li.product_Level::before,
  .products-nav > ul.nav-list > li.product_Level::after,
  .products-nav > ul.nav-list > li.product_Level#open::before,
  .products-nav > ul.nav-list > li.product_Level#open::after,
  .products-nav > ul.nav-list > li.product_Level.active::before,
  .products-nav > ul.nav-list > li.product_Level.active::after,
  .products-nav > ul.nav-list > li.product_Level > a::after,
  .products-nav > ul.nav-list > li.product_Level#open > a::after,
  .products-nav > ul.nav-list > li.product_Level.active > a::after,
  .products-nav > ul.nav-list > div.list_nome::before,
  .products-nav > ul.nav-list > div.list_nome::after,
  .products-nav > ul.nav-list > div.list_nome1::before,
  .products-nav > ul.nav-list > div.list_nome1::after,
  .products-nav > ul.nav-list > div > li.products-secondary::before,
  .products-nav > ul.nav-list > div > li.products-secondary::after,
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod > a::before,
  .products-nav > ul.nav-list > div > li.products-secondary > .product_secnod.active > a::before {
    content: none;
    display: none;
    width: 0;
    height: 0;
    background: none;
    border: none;
    position: static;
    float: none;
    margin: 0;
    padding: 0;
    font-family: none;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
  }
  /* 旧选择器兜底 */
  .products-nav > ul:not(.nav-list) > li.product_Level::before,
  .products-nav > ul:not(.nav-list) > li.product_Level::after {
    content: none;
    display: none;
  }
  .products-nav > ul:not(.nav-list) > li.product_Level {
    height: auto;
    padding: 0;
    line-height: normal;
  }
  .products-nav > ul:not(.nav-list) > li.product_Level > a {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
  }
  .products-nav > ul:not(.nav-list) > div > li.products-secondary {
    height: auto;
    padding: 0;
    line-height: normal;
  }
  .products-nav > ul:not(.nav-list) > div > li.products-secondary::before,
  .products-nav > ul:not(.nav-list) > div > li.products-secondary::after {
    content: none;
    display: none;
  }

  /* ================ 右侧内容区 ================ */
  .products-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 20px 24px 20px 24px;
    margin: 0 auto;
    height: calc(100vh - 110px);
    clear: none;
    overflow: hidden;
    gap: 0;
    box-sizing: border-box;
  }
  .products-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 18px;
    float: none;
    height: calc(100vh - 150px);
  }
  .config-content-parent.product_card {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 0;
    float: none;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    align-content: flex-start;
    background: #f1f5f9;
    border-radius: 12px;
    box-sizing: border-box;
  }
  .container { width: 100%; max-width: none; }
  .configoption_form { width: 100%; max-width: none; }

  /* ---- 产品卡片：4列 ---- */
  .config-content-parent.product_card > .col-sm-product {
    width: calc((100% - 48px) / 4);
    margin: 0;
    display: block;
    vertical-align: top;
    box-sizing: border-box;
  }
  .config-content-parent.product_card > .col-sm-product:nth-child(4n) {
    margin-right: 0;
  }

  /* 右侧内容区滚动条 */
  .config-content-parent.product_card::-webkit-scrollbar {
    width: 6px;
  }
  .config-content-parent.product_card::-webkit-scrollbar-track {
    background: transparent;
  }
  .config-content-parent.product_card::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
  }
  .config-content-parent.product_card::-webkit-scrollbar-thumb:hover {
    background: #64748b;
  }

  /* 面包屑导航 - 固定在顶栏下方紧贴 */
  .products-breadcrumb {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    font-size: 14px;
    color: #475569;
  }
  .products-breadcrumb .bc-inner {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
  }
  .products-breadcrumb .bc-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
    white-space: nowrap;
  }
  .products-breadcrumb .bc-back:hover {
    color: #2563eb;
  }
  .products-breadcrumb .bc-back svg {
    flex-shrink: 0;
  }
  .products-breadcrumb .bc-divider {
    color: #cbd5e1;
    font-size: 16px;
  }
  .products-breadcrumb .bc-cat {
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ====== 通知条通用样式（桌面/手机共用） ====== */
.products-notice-bar {
  position: relative;
  width: calc(100% - 24px);
  margin: 0 12px 12px 12px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.products-notice-bar .notice-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #2563eb;
  margin-top: 2px;
}
.products-notice-bar .notice-text {
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}
.products-notice-bar .notice-text em {
  font-style: normal;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
}
.products-notice-bar .notice-link {
  font-style: normal;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.products-notice-bar .notice-link:hover {
  color: #1e40af;
}

/* GG1 自定义字段区域样式 */
.products-gg1-bar {
  background: #f0fdf4;
  border-color: #86efac;
  margin-top: 16px;
}
.products-gg1-bar .notice-icon {
  color: #16a34a;
}
.products-gg1-bar .notice-text {
  color: #166534;
}
.products-gg1-bar .notice-text em {
  color: #15803d;
}

/* 未登录提示条 */
.products-login-notice {
  position: relative;
  width: calc(100% - 24px);
  margin: 0 12px 12px 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 100%);
  border: 1px solid #b3d4ff;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.products-login-notice .login-notice-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #2563eb;
}
.products-login-notice .login-notice-text {
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}
.products-login-notice .login-notice-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.products-login-notice .login-notice-link:hover {
  color: #1e40af;
}

/* ---- 菜单点击 ---- */
.product_Level > a { cursor: pointer; user-select: none; }

/* ---- 手机端 ---- */
@media (max-width: 768px) {
  .subbar { display: none; }

  /* 移动端：恢复页面滚动，取消固定高度 */
  .products-gray-wrap {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 44px 0 0 0;
  }
  /* 移动端：面包屑导航 */
  .products-breadcrumb {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
  }
  .products-breadcrumb .bc-inner {
    padding: 10px 12px;
    font-size: 13px;
  }
  .products-breadcrumb .bc-back {
    font-size: 13px;
  }
  /* 移动端：隐藏整个左侧导航菜单 */
  .products-nav {
    display: none;
  }
  /* 移动端：右侧内容占满宽度 */
  .products-wrap {
    display: block;
    padding: 12px 12px 0 12px;
    margin: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .products-right {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    overflow: visible;
  }
  .config-content-parent.product_card {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin-left: 0;
    padding: 8px;
    gap: 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
  }
  .config-content-parent.product_card > .col-sm-product {
    width: 100%;
    margin: 0 0 12px 0;
  }
}

/* ====== 移动端独立顶栏和菜单样式 ====== */
/* 基础态：移动 DOM 默认隐藏（UA 嗅探输出移动 DOM 时，桌面端不裸奔） */
.mobile-header,
.mobile-menu { display: none; }

@media (max-width: 768px) {
  /* 移动端顶栏 */
  .mobile-header {
    position: relative; /* 相对定位保持在文档流中随页面滚动（不吸附），同时作为 .mobile-header-back 绝对定位的包含块 */
    left: 0;
    right: 0;
    height: 44px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    padding: 0 12px;
  }
  .mobile-header-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
  }
  .mobile-header-back:active {
    background: #f1f5f9;
  }
  .mobile-header-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    padding: 6px 24px;
    border-radius: 8px;
    transition: background 0.15s ease;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-header-title:active {
    background: #f1f5f9;
  }
  .mobile-title-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .mobile-header-title.menu-open .mobile-title-arrow {
    transform: rotate(180deg);
  }

  /* 移动端菜单遮罩 */
  .mobile-menu {
    display: block;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    transition: visibility 0s linear 0.35s;
  }
  .mobile-menu.menu-open {
    visibility: visible;
    transition-delay: 0s;
  }
  .mobile-menu-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .mobile-menu.menu-open {
    pointer-events: auto;
  }
  .mobile-menu.menu-open .mobile-menu-mask {
    opacity: 1;
  }

  /* 移动端菜单内容 - 全屏覆盖 */
  .mobile-menu-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  .mobile-menu.menu-open .mobile-menu-content {
    transform: translateY(0);
  }

  /* 菜单标题 */
  .mobile-menu-header {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-menu-title-text {
    flex: 1;
    text-align: center;
  }
  .mobile-menu-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mobile-menu-close:active {
    background: #f1f5f9;
    color: #1e293b;
  }

  /* 菜单主体 - 左右分栏 */
  .mobile-menu-body {
    flex: 1;
    display: flex;
    overflow: hidden;
  }

  /* 左侧一级分类 */
  .mobile-menu-left {
    width: 96px;
    flex-shrink: 0;
    background: #f7f8fa;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid #ebedf0;
  }
  .mobile-left-item {
    position: relative;
    padding: 14px 8px;
    font-size: 12px;
    color: #334155;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #ebedf0;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-left-item:active {
    background: #e8eaed;
  }
  .mobile-left-item.active {
    background: #fff;
    color: #2563eb;
    font-weight: 600;
  }
  .mobile-left-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #2563eb;
    border-radius: 0 2px 2px 0;
  }

  /* 右侧二级分类 */
  .mobile-menu-right {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-right-panel {
    display: none;
    padding: 16px;
  }
  .mobile-right-panel.active {
    display: block;
  }
  .mobile-right-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-right-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .mobile-right-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(50% - 5px);
    padding: 10px 8px;
    background: #f7f8fa;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s ease;
    line-height: 1.4;
  }
  .mobile-right-item:active {
    background: #e8eaed;
  }
  .mobile-right-item.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    font-weight: 600;
  }
  .mobile-right-name {
    display: block;
    line-height: 1.4;
  }

  /* 隐藏桌面版面包屑（移动端使用独立顶栏） */
  .products-breadcrumb {
    display: none !important;
  }

  /* 移动端未登录提示条 */
  .products-login-notice {
    margin: 0 12px 12px 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
  }
  .products-login-notice .login-notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .products-login-notice .login-notice-text {
    font-size: 12px;
    line-height: 1.5;
  }
  .products-login-notice .login-notice-link {
    font-size: 12px;
  }

  /* 移动端通知条调整 */
  .products-notice-bar {
    position: relative;
    width: auto;
    margin: 0 12px 12px 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    gap: 8px;
    box-sizing: border-box;
  }
  .products-notice-bar .notice-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
  }
  .products-notice-bar .notice-text {
    font-size: 12px;
    text-align: left;
    flex: 1;
    line-height: 1.5;
  }
  .products-notice-bar .notice-text em {
    font-style: normal;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: underline;
  }
  .products-notice-bar .notice-link {
    font-style: normal;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
  }
  .products-notice-bar .notice-link:active {
    color: #1e40af;
  }

  /* 移动端顶栏已改为 sticky（在文档流内），无需再用大 padding 补偿空白 */
  .products-gray-wrap {
    padding: 0 0 24px 0 !important;
  }
  .products-wrap {
    padding: 0;
  }
  .products-right {
    margin-left: 0;
    padding: 0;
  }
  .config-content-parent.product_card {
    padding: 8px 12px;
  }
}
