:root {
  --theme-primary: #0a7fc2;
  --theme-primary-dark: #0568a8;
  --theme-primary-light: #3aa8e8;
  --theme-gradient: linear-gradient(135deg, #0d5f9a 0%, #1a8fd4 55%, #4db8f0 100%);
}

body.has-mobile-tabbar {
  padding-bottom: 1.2rem;
}

/* 购物车等 Tab 页：底部结算条需上移到主导航之上，避免被遮挡 */
body.has-mobile-tabbar .payList {
  bottom: 1rem;
  z-index: 910;
}

body.has-mobile-tabbar .payList40 {
  bottom: calc(1rem + 0.667rem);
}

body.has-mobile-tabbar .payListK {
  height: calc(2.5rem + 1rem);
}

/* 搜索栏：购物车图标与搜索框同一行 */
.searchs-row {
  width: 100%;
}

.searchs:has(> form.dv1),
.searchs:has(> .dv1:first-child) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.16rem;
}

.searchs:has(> form.dv1) > form.dv1,
.searchs:has(> .dv1:first-child) > .dv1:first-child {
  flex: 1;
  min-width: 0;
}

.searchs > form.dv1 + .dv2,
.searchs > .dv1 + .dv2 {
  flex-shrink: 0;
  width: auto;
  max-width: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 分类页顶部红色区域 */
.HongRed--cate {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  background-color: var(--theme-primary) !important;
}

.HongRed--cate .topHongw--cate {
  padding-top: 0.12rem;
  padding-bottom: 0.08rem;
}

.HongRed--cate .searchs {
  margin-top: 0;
  margin-bottom: 0.1rem;
}

.HongRed--cate .scrollType {
  padding: 0.06rem 0 0.1rem !important;
  margin: 0 !important;
  line-height: 0;
  font-size: 0;
  max-height: none !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.HongRed--cate .scrollType a {
  font-size: 0.3rem;
  line-height: 1.2;
  padding: 0.12rem 0 0.16rem;
  margin: 0 0.36rem 0 0;
  vertical-align: top;
}

.HongRed--cate .scrollType a.active::before {
  display: none !important;
}

.HongRed--cate .scrollType a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0.32rem;
  height: 0.05rem;
  background: #fff;
  border-radius: 0.04rem;
  transform: translateX(-50%);
}

.fusheDIV {
  margin-top: 0 !important;
  margin-bottom: 0.533rem !important;
  border: 1px solid var(--theme-primary) !important;
  background-color: rgba(10, 127, 194, 0.06);
}

.fusheDIV .s2 {
  color: var(--theme-primary) !important;
  border-left-color: var(--theme-primary) !important;
}

.fusheDIV .s2 div {
  color: var(--theme-primary) !important;
}

/* 首页 Banner：单张通屏，无左右边距 */
.banner-carousel-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0.32rem;
  padding: 0;
  overflow: hidden;
}

.banner-carousel.mySwipers {
  width: 100%;
  margin-top: 0;
  padding-bottom: 0.48rem;
  border-radius: 0;
  overflow: hidden;
}

.banner-carousel .swiper-slide.banner-slide {
  width: 100%;
  height: 4.2rem;
  overflow: hidden;
  border-radius: 0;
  transform: none;
  opacity: 1;
  border: none;
  box-shadow: none;
}

.banner-slide__media,
.banner-slide__media img,
.banner-slide__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #0a1628;
}

.banner-carousel .swiper-pagination {
  bottom: 0.1rem !important;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: stretch;
  height: 1rem;
  background: #fff;
  border-top: 1px solid #e8ecf0;
  box-shadow: 0 -0.04rem 0.2rem rgba(10, 40, 80, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  color: #666;
  font-size: 0.2rem;
  text-decoration: none;
}

.mobile-tabbar__item.is-active {
  color: var(--theme-primary);
  font-weight: 600;
}

.mobile-tabbar__icon {
  width: 0.44rem;
  height: 0.44rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon {
  opacity: 1;
}

.mobile-tabbar__icon--mine {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
}

.mobile-tabbar__icon--cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}

.mobile-tabbar__icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.mobile-tabbar__icon--cate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zM4 20h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon--mine {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a7fc2'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon--cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a7fc2'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a7fc2'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.mobile-tabbar__item.is-active .mobile-tabbar__icon--cate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a7fc2'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zM4 20h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
}

.site-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.site-splash.is-hide {
  opacity: 0;
  pointer-events: none;
}

.site-splash__img {
  flex: 1;
  width: 100%;
  object-fit: cover;
}

.site-splash__bar {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.12rem 0.28rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border-radius: 0.4rem;
  font-size: 0.24rem;
}

.business-register-form-only {
  padding-top: 0.3rem;
}

.business-register-form-only .Title {
  display: none;
}

/* 冷色主题：覆盖原红色主色 */
[style*="#FF3434"],
[style*="#ff3434"],
[style*="#F23C3C"],
[style*="#f23c3c"] {
  background-color: var(--theme-primary) !important;
}

body {
  --override-red: var(--theme-primary);
}

.fusheDIV .s1 path,
.fusheDIV .s1 g path {
  fill: var(--theme-primary) !important;
}

.zuZhiTs[style*="FF3434"],
.zuZhiTs[style*="ff3434"] {
  background-color: var(--theme-primary) !important;
}

.layui-btn-danger,
.layui-btn-red,
.rBtns .rBtn1,
.rBtns .rBtn2.active,
.code,
.tijiao,
.btnRed,
.redBtn {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

[class*="F23C3C"],
[style*="F23C3C"],
[style*="f23c3c"],
[style*="E81212"] {
  color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

svg [fill="#f23c3c"],
svg [fill="#F23C3C"] {
  fill: var(--theme-primary) !important;
}

/* index.css 主色批量覆盖 */
.topHong {
  display: none;
}

.topHongw {
  padding-top: 0.2rem;
}

[style*="background-color: #F23C3C"],
[style*="background-color:#F23C3C"],
[style*="background-color: #f23c3c"],
[style*="background-color:#f23c3c"],
[style*="background-color: #E81212"],
[style*="background-color:#E81212"],
[style*="background-color: #FF3434"],
[style*="background-color:#FF3434"] {
  background-color: var(--theme-primary) !important;
}

[style*="color: #F23C3C"],
[style*="color:#F23C3C"],
[style*="color: #f23c3c"],
[style*="color:#f23c3c"] {
  color: var(--theme-primary) !important;
}

[style*="border: 1px solid #F23C3C"],
[style*="border:1px solid #F23C3C"],
[style*="border: 1px solid #f23c3c"] {
  border-color: var(--theme-primary) !important;
}
