/* 移动端样式 - 适用于小屏幕设备 */
@media (max-width: 767px) {
  /* 基础样式重置 */
  html, body {
    font-size: 14px;
    overflow-x: hidden;
  }
  
  /* 顶部警告条 */
    .top {
      font-size: 15px!important;
      padding: 8px 30px!important;
      text-align: center!important;
    }
  
  /* 头部容器样式 */
  .container {
    padding: 10px;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Logo 样式调整 */
  .name {
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
  }
  
  .site-logo {
    max-height: 40px;
    width: auto;
  }
  
  /* 搜索框样式 */
  .header-product-search {
    width: 100%;
    max-width: 100%;
    height: 38px;
    margin: 5px 0;
  }
  
  .header-product-search .search-field {
    font-size: 14px;
    padding: 8px;
  }
  
  .header-product-search .search-submit {
    padding: 0 8px;
  }
  
  .search-submit svg {
    width: 18px;
    height: 18px;
  }
  
  /* 账户按钮 */
  .account-button {
    margin: 5px 0;
  }
  
  .account-contents svg {
    width: 20px;
    height: 20px;
  }
  
  /* 右侧工具栏 */
  .site-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
  }
  
  /* Go Retail 按钮 */
  .whole-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .whole-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* 菜单栏样式 */
  .container.menu-bar {
    height: auto;
    padding: 5px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  /* All 按钮样式 */
  .menu-all-btn {
    height: 34px;
    padding: 0 10px;
    margin: 5px;
    font-size: 14px;
  }
  
  .menu-all-btn span {
    font-size: 16px;
  }
  
  /* 轮播区域样式 */
  .carousel-wrapper {
    width: 100%;
    margin: 10px 0;
  }
  
  .carousel-container {
    width: 85%;
  }
  
  /* 标签样式 */
  .tab {
    flex: 0 0 33.33%; /* 移动端每行显示3个 */
    padding: 8px 0;
  }
  
  .circle {
    width: 30px;
    height: 30px;
    border-width: 1px;
  }
  
  .tab-label {
    font-size: 12px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 轮播按钮 */
  .carousel-btn {
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  /* Made-in-China 图标调整 */
  .example-2 .icon-content {
    margin: 60px 5px -30px 0;
  }
  
  .example-2 .position-custom {
    margin: 0px 5px -60px 0;
  }
  
  /* 导航菜单按钮 */
  .menu-toggle {
    display: block;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    margin: 0;
  }
  
  .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px auto;
    transition: all 0.3s ease;
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* 平板设备样式 */
@media (min-width: 768px) and (max-width: 1023px) {
  /* 菜单栏样式 */
  .container.menu-bar {
    height: auto;
  }
  
  /* 标签样式 */
  .tab {
    flex: 0 0 25%; /* 平板端每行显示4个 */
  }
  
  .circle {
    width: 40px;
    height: 40px;
  }
  
  .tab-label {
    font-size: 14px;
  }
  
  /* 搜索框样式 */
  .header-product-search {
    max-width: 300px;
  }
}

/* 横屏手机样式优化 */
@media (max-width: 767px) and (orientation: landscape) {
  .container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .name {
    width: auto;
    margin-right: 10px;
  }
  
  .header-product-search {
    flex: 1;
    max-width: 50%;
  }
  
  .site-right {
    width: auto;
  }
  
  .tab {
    flex: 0 0 25%; /* 横屏时每行显示4个 */
  }
}

/* 触摸设备交互优化 */
@media (hover: none) {
  .tab:active .circle {
    background: #FF6600;
    border-color: #FF6600;
  }
  
  .tab:active .tab-label {
    color: #FF6600;
  }
  
  .carousel-btn:active {
    background: #e65700;
  }
}

/* 极小屏幕设备优化 (小于 375px) */
@media (max-width: 374px) {
  .tab {
    flex: 0 0 50%; /* 极小屏幕每行显示2个 */
  }
  
  .circle {
    width: 28px;
    height: 28px;
  }
  
  .tab-label {
    font-size: 11px;
  }
  
  .header-product-search .search-field {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  /* 1. 整体 container 改为垂直方向 */
  .container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;         /* 缩小各部分间距 */
    padding: 8px !important;      /* 内边距适当增大，避免元素贴边 */
  }

  /* 2. Logo 区域居中并缩小 */
  .container .name {
    margin: 0 !important;
    padding: 0 !important;
    order: 1;                      /* 第一项 */
  }
  .container .name .site-logo {
    max-width: 90px !important;   /* 限制最大宽度 */
    height: auto !important;
  }

  /* 3. 搜索框占满宽度，收缩高度 */
  .header-product-search {
    width: 100% !important;
    max-width: 100% !important;
    height: 32px !important;
    padding: 0 8px !important;
  }
  .header-product-search .search-field {
    font-size: 14px !important;
  }

  /* 4. 账户按钮和语言切换、Go Retail 按钮同一行 */
  .site-right,
  .account-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    order: 3;                     /* 放到最后 */
    width: 100% !important;
    margin-top: -0px !important;
  }

  /* 5. 搜索框之后显示账户等，调整顺序 */
  .account-button {
    margin: 0 !important;
  }

  /* 6. 菜单栏（All + 轮播）放在第二行 */
  .container.menu-bar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 4px 0 !important;
    order: 2;
    width: 100% !important;
    gap: 4px !important;
  }

  .container.menu-bar::-webkit-scrollbar {
    display: none;
  }

  .menu-all-btn {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    height: 32px !important;
  }

  .carousel-wrapper {
    flex: 1 0 auto !important;
    margin: 0 !important;
  }

  .tab {
    flex: 0 0 auto !important;
    padding: 0.8vw 0.5vw !important;
  }
  .circle {
    width: 10vw !important;
    height: 10vw !important;
  }
  .tab-label {
    font-size: 3.5vw !important;
  }
}
@media (max-width: 900px) {
  /* 隐藏搜索栏 */
  .header-product-search {
    display: none !important;
  }

  /* logo 紧贴左侧 */
  .container {
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }
  .container .name {
    margin: 0 !important;
    padding-left: 8px; /* 如果需要留一点边距，可自行调整 */
  }
}
@media (max-width: 900px) {
  /* 1. 隐藏搜索框 */
  .header-product-search {
    display: none !important;
  }

  /* 2. 强制 header 下的 container 水平排列，logo 靠左 */
  .default-header .container,
  .home-header-mobile .container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 8px !important;   /* logo 左侧留一点空 */
  }

  /* 3. 让 logo 区块撑满左边，后续按钮（账户/语言/Go Retail）自动到右侧 */
  .default-header .container .name,
  .home-header-mobile .container .name {
    margin-right: auto !important;
    padding: 0 !important;
  }
}
@media (max-width: 900px) {
  /* 强制覆盖一切对 logo 的限制 */
  header.default-header .site-logo,
  header.home-header-mobile .site-logo {
    max-width: none !important;
    width: auto       !important;
    height: 40px      !important;  /* 根据需要改成 36px / 44px */
    display: block    !important;
  }
  .whole-btn {
  display: inline-flex              !important;
  align-items: center               !important;
  white-space: nowrap               !important;
  background-color: #ff6600         !important;
  border: none                      !important;
  border-radius: 999px              !important;
  padding: 0px 16px                 !important;
  color: #fff                       !important;
  font-weight: 500                  !important;
  cursor: pointer                   !important;
  gap: 6px                          !important;
  text-decoration: none             !important;
}

.whole-btn .sparkle {
  flex-shrink: 0                    !important;
  fill: #fff                        !important;
  width: 24px                       !important;
  height: 24px                      !important;
}
  .whole-btn .text {
  color: #fff !important;
}
  .whole-btn svg {
  display: none !important;
}
    .gt_switcher.notranslate {
    width: 60px         !important;
    margin-right: -10px   !important;
  }
/* 强制放大账户图标，并让外层链接也做 inline-flex 居中对齐 */
.account-button .account-contents {
  display: inline-flex             !important;
  align-items: center              !important;
  justify-content: center          !important;
}

.account-button .account-contents svg.icon {
  width: 23px                      !important; /* 放大到 32px */
  height: 23px                     !important;
  flex-shrink: 0                   !important;
}
@media (max-width: 900px) {
  /* 1. 保证第一行容器是 flex 且垂直居中 */
  header.default-header > .container:not(.menu-bar),
  header.home-header-mobile > .container:not(.menu-bar) {
    display: flex              !important;
    align-items: center        !important;  /* 垂直居中 */
    height: 60px               !important;  /* 或者根据你的设计微调高度 */
    padding: 0 8px             !important;
  }

  /* 2. logo、图标、语言切换、按钮 都单独确保自己垂直居中 */
  .default-header > .container:not(.menu-bar) .name,
  .default-header > .container:not(.menu-bar) .account-contents,
  .default-header > .container:not(.menu-bar) .gt_switcher.notranslate,
  .default-header > .container:not(.menu-bar) .whole-btn,
  .home-header-mobile > .container:not(.menu-bar) .name,
  .home-header-mobile > .container:not(.menu-bar) .account-contents,
  .home-header-mobile > .container:not(.menu-bar) .gt_switcher.notranslate,
  .home-header-mobile > .container:not(.menu-bar) .whole-btn {
    align-self: center         !important;
  }
}
  .account-contents {
  display: inline-block !important;       /* 保证能用 transform */
  transform: translateX(33.5vw) !important; /* 向右平移 12px，可自行调整 */
}

}

@media (max-width: 900px) {
  .container.menu-bar {
    display: none !important;
  }
}







