.mt-spa-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}
.mt-spa-header-inner {
  max-width: 1500px;
  min-height: 74px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}
.mt-spa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  text-decoration: none;
  color: #222;
}
.mt-spa-brand img {
  width: 150px;
  height: 48px;
  object-fit: contain;
}
.mt-spa-brand strong {
  font-size: 22px;
  white-space: nowrap;
}
.mt-spa-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.mt-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.mt-spa-nav a {
  color: #444;
  text-decoration: none;
}
.mt-mobile-text,
.mt-nav-recharge-label {
  display: none;
}
.mt-spa-nav a:hover { color: #007bff; }
.mt-spa-nav .red { color: #e53935; }
.mt-spa-nav .green { color: #28a745; }
.mt-spa-nav .purple { color: #7b1fa2; }
.mt-spa-nav .blue { color: #0d47a1; }
.mt-spa-nav .orange { color: #ef6c00; }
.mt-spa-nav .teal { color: #17a2b8; }
.mt-spa-nav .login { color: #444; }
.mt-spa-search {
  width: 210px;
}
.mt-spa-search input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 9px 14px;
  outline: 0;
  font-size: 13px;
  background: #fff;
}
#app > div > header,
#app header:first-of-type,
#app header:not(.mt-spa-header),
body > header:not(.mt-spa-header),
.mt-default-header-hidden {
  display: none !important;
}
#app footer,
#app footer:not(.mt-spa-footer),
body > footer:not(.mt-spa-footer),
.mt-default-footer-hidden {
  display: none !important;
}
html,
body,
#app,
.theme-page,
.theme-surface-soft {
  background: #fff !important;
}
.mt-spa-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 42px 18px 28px;
}
.mt-spa-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 50px;
}
.mt-spa-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}
.mt-spa-footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.mt-spa-footer-text {
  margin: 22px 0 0;
  color: #777;
  line-height: 1.8;
}
.mt-spa-footer-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}
.mt-spa-footer-links {
  display: grid;
  gap: 13px;
  color: #666;
}
.mt-spa-footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.mt-spa-footer a {
  color: inherit;
  text-decoration: none;
}
.mt-spa-footer a:hover {
  color: #007bff;
}
.mt-spa-contact-link {
  display: block;
  max-width: 260px;
  margin-bottom: 14px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 12px 18px;
  background: #f7f7f8;
  color: #444;
}
.mt-spa-footer-bottom {
  max-width: 1280px;
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #777;
  font-size: 13px;
}
.mt-spa-footer-legal {
  display: flex;
  gap: 20px;
}
@media (max-width: 1320px) {
  .mt-spa-nav { gap: 12px; font-size: 14px; }
  .mt-nav-row { gap: 12px; }
  .mt-spa-brand { min-width: 250px; }
  .mt-spa-brand img { width: 120px; }
}
@media (max-width: 900px) {
  .mt-spa-header-inner {
    display: block;
    min-height: auto;
    padding: 8px 10px 9px;
  }
  .mt-spa-brand,
  .mt-spa-search,
  .mt-nav-desktop-only {
    display: none !important;
  }
  .mt-spa-nav {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: visible;
    gap: 7px;
    padding: 0;
    font-size: 14px;
  }
  .mt-nav-row {
    width: 100%;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mt-nav-row::-webkit-scrollbar {
    display: none;
  }
  .mt-nav-primary {
    order: 1;
  }
  .mt-nav-recharge-row {
    order: 2;
  }
  .mt-nav-recharge-label {
    display: inline;
    color: #333;
    font-weight: 800;
  }
  .mt-desktop-text {
    display: none;
  }
  .mt-mobile-text {
    display: inline;
  }
  .mt-spa-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mt-spa-footer-row {
    flex-wrap: wrap;
    gap: 12px 16px;
    white-space: normal;
  }
  .mt-spa-footer-bottom {
    flex-direction: column;
  }
}

/* mt-detail-main-image-fix 商品详情主图:完整显示(不裁切)+居中,取消4:3裁切的上对齐 */
img.aspect-\[4\/3\].object-cover{object-fit:contain !important;object-position:center !important;background:#fff !important;}

/* mt-mobile-header-static 手机端:导航不固定置顶,随页面滚动消失 */
@media (max-width: 768px){
  .mt-spa-header{ position: static !important; top: auto !important; }
}
