/* Mobile-first clone overrides */
html {
  font-size: 10px;
  -webkit-text-size-adjust: 100%;
}

body.st {
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.st-navtip .alert {
  margin-bottom: 0;
  border-radius: 0;
  font-size: 12px;
  padding: 10px 30px 10px 12px;
}

.st-navtip .btn-primary {
  margin-top: 6px;
  background: #4285f4;
  border-color: #4285f4;
}

.st-header .navbar-toggle {
  margin: 0;
  border-color: #d8d8d8;
}

.st-header .navbar-brand img {
  max-height: 36px;
  width: auto;
  margin: 8px auto;
  display: block;
}

body.st .st-header > .container-fluid > .row {
  margin-left: 0;
  margin-right: 0;
}

body.st .st-header .navbar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px calc(14px + env(safe-area-inset-right, 0px)) 8px 8px;
  box-sizing: border-box;
  overflow: visible;
}

body.st .st-header,
body.st .st-header .container-fluid,
body.st .st-header .navbar-header {
  overflow: visible;
}

body.st .st-header .navbar-header > [class*='col-'] {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}

body.st .st-header .navbar-header .col-xs-2 {
  flex: 0 0 46px;
  z-index: 2;
}

body.st .st-header .navbar-header .col-xs-6 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: min(52vw, 200px);
  padding: 0;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

body.st .st-header .navbar-header .col-xs-6 .navbar-brand {
  float: none;
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
  pointer-events: auto;
}

body.st .st-header .navbar-header .col-xs-6 .navbar-brand img {
  max-height: 34px;
  width: auto;
  margin: 0 auto;
}

body.st .st-header .navbar-toggle {
  margin: 0;
  padding: 9px 10px;
  border-radius: 4px;
  border-color: #d8d8d8;
}

/* 用户菜单：手机端两列，不挤成多行横排 */
body.st .st-header .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

body.st #nav-user.st-nav-user-panel {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
  padding: 0 0 12px;
  max-height: none;
  overflow: visible;
  background: #fafafa;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

body.st .st-mobile-user-menu {
  padding: 10px 12px 4px;
}

body.st .st-mobile-user-heading {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

body.st .st-mobile-user-heading--sub {
  margin-top: 14px;
}

body.st #nav-user .st-nav-auth-welcome {
  margin: 0 0 10px;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  color: #4285f4;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

body.st #nav-user .st-nav-auth-welcome[hidden] {
  display: none !important;
}

body.st .st-mobile-user-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 8px;
}

body.st .st-mobile-user-grid > li {
  min-width: 0;
}

body.st .st-mobile-user-grid > li[hidden] {
  display: none !important;
}

body.st .st-mobile-user-grid > li > a {
  display: block;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.st .st-mobile-user-grid > li > a:active {
  background: #f0f0f0;
}

body.st .st-mobile-user-settings {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.st .st-mobile-user-setting-item {
  margin-bottom: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

body.st .st-mobile-user-setting-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  background: #fff;
  font-size: 14px;
  color: #333;
  text-align: left;
  cursor: pointer;
}

body.st .st-mobile-user-setting-btn[aria-expanded='true'] {
  background: #f5f5f5;
}

body.st .st-mobile-user-setting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eee;
  background: #fafafa;
}

body.st .st-mobile-user-setting-list[hidden] {
  display: none !important;
}

body.st .st-mobile-user-setting-list a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

body.st .st-mobile-user-setting-list .active a {
  color: #4285f4;
  font-weight: 600;
}

body.st .st-header .navbar-header .col-xs-4.st-header-actions {
  flex: 0 1 auto;
  margin-left: auto;
  max-width: calc(50% - 8px);
  overflow: visible;
  z-index: 2;
}

body.st .st-header-actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 36px;
  max-width: 100%;
}

body.st .st-nav-login {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #4285f4;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #9ec2f9;
  border-radius: 5px;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

body.st .st-nav-login:hover,
body.st .st-nav-login:focus {
  color: #3367d6;
  border-color: #4285f4;
  text-decoration: none;
  background: #f8fbff;
}

body.st .st-header-actions .st-header-cart {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0 2px 0 0;
  font-size: 22px;
  line-height: 1;
  color: #666;
  text-decoration: none;
}

body.st .st-header-actions .st-header-cart > i {
  padding-left: 0;
  display: block;
}

body.st .st-header-actions .st-header-cart > span.st-cartnum {
  top: 0;
  left: 12px;
  font-size: 10px;
  line-height: 14px;
}

/* 左侧分类菜单 — 手机端 */
body.st #nav-product-categories.st-nav-categories-panel {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
  padding: 0 0 12px;
  max-height: none;
  overflow: visible;
  background: #fafafa;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

body.st #nav-product-categories .st-nav-search-form {
  margin: 12px 12px 8px;
  padding: 0;
  border: none;
  width: auto;
}

body.st #nav-product-categories .st-nav-search-form .input-group {
  width: 100%;
}

body.st #nav-product-categories .st-nav-search-form .form-control {
  height: 40px;
  font-size: 14px;
}

body.st #nav-product-categories .st-nav-search-form .input-group-addon {
  cursor: pointer;
  background: #fff;
}

body.st .st-mobile-categories {
  padding: 0 12px;
}

body.st .st-mobile-categories-heading {
  margin: 0 0 8px;
  padding: 8px 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

body.st .st-mobile-cat-root {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.st .st-mobile-cat-item {
  margin-bottom: 6px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

body.st .st-mobile-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.st .st-mobile-cat-btn[aria-expanded='true'] {
  background: #f5f5f5;
}

body.st .st-mobile-cat-btn .caret {
  flex-shrink: 0;
  margin-left: 8px;
}

body.st .st-mobile-cat-children {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

body.st .st-mobile-cat-children[hidden] {
  display: none !important;
}

body.st .st-mobile-cat-children > li > a,
body.st .st-mobile-cat-leaf a {
  display: block;
  padding: 10px 14px 10px 20px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

body.st .st-mobile-cat-children > li > a:active,
body.st .st-mobile-cat-leaf a:active {
  background: #eee;
}

body.st .st-mobile-cat-nested {
  padding: 0;
}

body.st .st-mobile-cat-label {
  display: block;
  padding: 10px 14px 4px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

body.st .st-mobile-cat-leaf {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

body.st .st-mobile-cat-leaf a {
  padding-left: 28px;
  font-size: 13px;
}

.st-banner .container {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.st-banner .carousel,
.st-banner .carousel-inner,
.st-banner .item,
.st-banner .item img {
  width: 100%;
}

.st-banner .item img {
  display: block;
  max-height: 220px;
  object-fit: cover;
}

.carousel-indicators li {
  border: 1px solid gray;
  width: 8px;
  height: 8px;
  margin: 0 3px;
}

.carousel-indicators .active {
  border: 1px solid #fff;
  background: gray;
}

.st-home-product > .container {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.st-home-product .page-header {
  margin: 16px 0 10px;
  border: none;
  padding: 0 12px;
}

.st-home-product .page-header h4 {
  margin: 0;
  font-size: 16px;
}

.st-home-product .st-home-product-title {
  font-weight: 600;
}

.st-home-product .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 10px;
  padding: 0 12px 16px;
  box-sizing: border-box;
}

.st-home-product .st-product-trigger {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.st-home-product .product-card .caption h5 a {
  color: inherit;
  text-decoration: none;
}

.st-home-product .product-card {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.st-home-product .product-card .st-thumb {
  display: block;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #fafafa;
}

.st-home-product .product-card .st-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.st-home-product .product-card .caption {
  padding: 6px 8px 10px;
}

.st-home-product .product-card .caption h5 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: normal;
}

.st-home-product .product-card .caption h5 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: auto;
  max-height: 2.7em;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.st-home-product .product-card .st-home-product-price {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #080808;
}

.st-home-product .product-card .st-home-product-sold {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.product-section + .product-section {
  margin-top: 4px;
}

.st-footer {
  padding-top: 24px;
}

.st-footer-service {
  padding-bottom: 16px;
}

.st-footer-service .container {
  padding-left: 16px;
  padding-right: 16px;
}

/* 手机/窄屏：页脚 2×2，间距不撑出容器 */
body.st .st-footer,
body.st .st-footer-service,
body.st .st-footer-service .container {
  max-width: 100%;
  overflow-x: hidden;
}

body.st .st-footer-service .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 16px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

body.st .st-footer-service .row::before,
body.st .st-footer-service .row::after {
  display: none;
}

body.st .st-footer-service .row > [class*='col-'] {
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  float: none !important;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

body.st .st-footer-service dl {
  margin: 0;
}

body.st .st-footer-service dt {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

body.st .st-footer-service dd {
  margin-left: 0;
  font-size: 14px;
  line-height: 1.6;
}

body.st .st-footer-service-icon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.st .st-footer-service-icon > a {
  padding-right: 0;
  color: #555;
}

body.st .st-footer-service-icon > a > i {
  font-size: 22px;
}

body.st .st-footer-service-signup {
  padding-top: 4px;
}

body.st .st-footer-service-signup p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

body.st .st-footer-service-signup .input-group {
  display: block;
  width: 100%;
  max-width: 100%;
}

body.st .st-footer-service-signup .form-control {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  height: 40px;
  box-sizing: border-box;
}

body.st .st-footer-service dt,
body.st .st-footer-service-signup p {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

body.st .st-footer-service-signup .input-group-addon {
  display: block;
  width: 100%;
  border-radius: 4px;
  text-align: center;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #333;
  color: #fff;
}

.st-footer-beian .container {
  padding: 12px 16px 16px;
  line-height: 1.5;
  word-break: break-word;
}

.st-footer-service-signup .input-group-addon {
  cursor: pointer;
}

@media (min-width: 768px) {
  body.st {
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  }
}

.st-shop-modal[hidden] {
  display: none !important;
}

.st-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.st-register-modal:not([hidden]),
.st-login-modal:not([hidden]) {
  z-index: 2010;
}

.st-shop-modal:not([hidden]) {
  pointer-events: auto;
}

.st-shop-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.st-shop-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 720px);
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  animation: st-shop-modal-in 0.25s ease-out;
}

@keyframes st-shop-modal-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-shop-home {
  position: relative;
  z-index: 1;
}

body.st-product-modal-open #home-banner,
body.st-product-modal-open #product-sections,
body.st-register-modal-open #home-banner,
body.st-register-modal-open #product-sections,
body.st-login-modal-open #home-banner,
body.st-login-modal-open #product-sections {
  pointer-events: none;
  user-select: none;
}

body.st-product-modal-open,
body.st-register-modal-open,
body.st-login-modal-open {
  overflow: hidden;
}

body.st-product-modal-open .st-header,
body.st-product-modal-open #home-banner,
body.st-product-modal-open #product-sections,
body.st-product-modal-open #site-footer,
body.st-register-modal-open .st-header,
body.st-register-modal-open #home-banner,
body.st-register-modal-open #product-sections,
body.st-register-modal-open #site-footer,
body.st-login-modal-open .st-header,
body.st-login-modal-open #home-banner,
body.st-login-modal-open #product-sections,
body.st-login-modal-open #site-footer {
  filter: brightness(0.72);
}

.st-register-panel {
  padding: 0 12px 16px;
}

.st-register-title {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
}

.st-register-subtitle {
  font-size: 13px;
  margin-bottom: 16px;
}

.st-register-form .form-group {
  margin-bottom: 12px;
}

.st-register-form .checkbox {
  font-size: 13px;
  margin: 12px 0 16px;
}

.st-register-form .checkbox a {
  pointer-events: none;
  color: #4285f4;
}

.st-login-form .st-login-forgot {
  margin: -4px 0 16px;
  font-size: 13px;
}

.st-login-forgot a,
.st-login-switch a {
  color: #4285f4;
}

.st-login-switch {
  margin-top: 14px;
  font-size: 14px;
}

.st-auth-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.st-auth-status--error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c2;
}

.st-auth-status--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.st-product-detail {
  padding: 12px;
}

.st-product-detail .main-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #fafafa;
}

.st-product-detail h1 {
  font-size: 16px;
  line-height: 1.4;
  margin: 12px 0 8px;
}

.st-product-detail .price {
  font-size: 20px;
  font-weight: bold;
  color: #ea4335;
  margin-bottom: 16px;
}

.st-product-detail .st-product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 12px;
}

.st-product-detail .st-product-actions .btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.25;
  min-height: 46px;
  border-radius: 4px;
}

.st-product-detail .btn-buy {
  background: #4285f4;
  border-color: #4285f4;
}

.st-product-detail .btn-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.st-product-shipping {
  margin-top: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid #e8e8e8;
  animation: st-shipping-expand 0.25s ease-out;
}

@keyframes st-shipping-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-product-shipping-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.st-product-shipping-hint {
  margin: 0 0 12px;
  font-size: 13px;
}

.st-product-shipping-form .form-group {
  margin-bottom: 12px;
}

.st-product-shipping-form label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.st-product-shipping-form label font {
  color: #ea4335;
}

.st-product-shipping-form .form-control {
  font-size: 14px;
  border-radius: 4px;
}

.st-product-shipping-status {
  margin: 4px 0 0;
  font-size: 13px;
}

.st-product-detail .btn-home {
  background: #fff;
  border: 1px solid #dadce0;
  color: #333;
}

.st-product-back {
  display: inline-block;
  margin: 12px;
  color: #666;
}

.st-product-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.st-product-gallery img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fafafa;
}

.st-product-gallery img.active {
  border-color: #4285f4;
}