* {
  margin: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-weight: 400; /* 比细体粗一点，最舒服 */
}
html,
body {
  width: 100%;
  height: 100%;
  background-color: #f5fbf9;
  max-width: 650px;
  margin: 0 auto;
}
body {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  font-size: 0.24rem;
  padding-top: constant(safe-area-inset-top);
  padding-left: constant(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
}
table {
  border-spacing: 0;
  border-collapse: collapse;
}
td,
th {
  word-wrap: break-word;
}
ul,
li {
  list-style: none;
}
img,
fieldset {
  border: none;
  display: block;
}
img {
  width: 100%;
  display: block;
}
input,
select,
textarea {
  vertical-align: middle;
  border: 0 none;
  display: block;
  outline: none;
}
header,
nav,
section,
footer {
  display: block;
}
a {
  text-decoration: none;
  display: block;
  color: #313131;
}
input[type='submit'],
input[type='reset'],
input[type='search'],
input[type='button'],
button,
textarea {
  -webkit-appearance: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-weight: normal;
}
em,
var {
  font-style: normal;
}
/*返回按钮*/
.head {
  position: relative;
  background: #fff;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
/*开始*/
.bgbody {
  min-width: 6.4rem;
  width: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  overflow-y: auto;
}
.df-box {
  min-width: 320px;
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  clear: both;
  margin-bottom: 1.5rem;
}
/*下载app*/
.downloadApp {
  width: 15rem;
  margin: 0 auto;
}
.topArea {
  width: 15rem;
  height: 2.8rem;
  position: fixed;
  overflow: hidden;
  top: 0;
  z-index: 100;
}

.topArea span {
  width: 1.12rem;
  height: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 101;
  display: block;
  text-indent: -999rem;
}

.topArea img {
  width: 100%;
  display: block;
}
/*倒计时*/
.zhenc-model-count_down {
  height: 0.93rem;
  line-height: 1.13rem;
  width: 100%;
  font-size: 0.6rem;
  color: #fff;
  text-align: center;
  position: absolute;
  left: 0px;
  bottom: 0.1rem;
}
.zhenc-model-count_down div {
  display: inline-block;
}
.zhenc-model-count_down span {
  color: #fff;
  width: 0.7rem;
  display: inline-block;
}
/* 头图调品 */
.zhenc-model-head_single_set {
  width: 15rem;
  height: 6.493rem;
  position: relative;
}
.zhenc-model-head_single_set .product_name {
  margin-top: 0.28rem !important;
}
.zhenc-model-head_single_set .product_price {
  margin-top: 0.3rem !important;
}
.zhenc-model-head .products .list .image {
  width: 3.5rem;
  height: 3.5rem;
}
.back_ground_img {
  position: absolute;
}
.products {
  position: absolute;
  padding-left: 0.2rem;
}
.b_name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.products .list {
  width: 4.6rem !important;
  overflow: hidden;
  float: left;
  font-size: 0.44rem;
  padding-bottom: 0;
  margin-right: 0.3rem;
  text-align: center;
  margin-bottom: 0;
  padding: 0 0.2rem;
  box-sizing: border-box;
}
.products .list .product_price {
  margin-top: 0.25rem;
  color: #fffdfe;
  font-size: 0.54rem;
}
.products .list .image {
  margin: 0.58rem auto 0.1rem;
  width: 3.5rem;
  height: 3.5rem;
}

.products .product_name {
  color: #000000;
  width: 100%;
  margin: 0.2rem auto 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 17px;
  padding: 0 0.2rem;
  font-size: 0.45rem;
  font-weight: normal;
}
/* 1带4 */
.zhenc-model-one_with_four {
  position: relative;
  margin-top: 0.5rem;
  height: 10.36rem;
}
.zhenc-model-one_with_four .b_name {
  width: 90%;
  margin: 0 auto;
}
.zhenc-model-one_with_four .list {
  position: absolute;
}
.zhenc-model-one_with_four .image {
  width: 2.5rem !important;
  height: 2.5rem !important;
}
.zhenc-model-one_with_four .product_price {
  color: #e8292d !important;
  margin-top: 0rem !important;
  font-size: 0.5rem !important;
}

.zhenc-model-one_with_four .product_name {
  margin-top: -0.1rem;
  font-size: 0.46rem;
}

.zhenc-model-one_with_four .list:nth-of-type(1) {
  top: -0.05rem !important;
  left: 6.1rem !important;
}
.zhenc-model-one_with_four .list:nth-of-type(2) {
  top: -0.05rem !important;
  left: 10.2rem !important;
}
.zhenc-model-one_with_four .list:nth-of-type(3) {
  top: 4.9rem !important;
  left: 6.1rem !important;
}
.zhenc-model-one_with_four .list:nth-of-type(4) {
  top: 4.9rem !important;
  left: 10.2rem !important;
}

/* 2+6单品集 */
.zhenc-model-tow_six_single_set {
  width: 15rem;
  height: 22.786rem;
  position: relative;
}
.zhenc-model-tow_six_single_set .product_name {
  font-size: 0.56rem;
}
.zhenc-model-tow_six_single_set .products .product_price {
  color: #d21034;
  font-size: 0.56rem;
  margin-top: 0.15rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(3),
.zhenc-model-tow_six_single_set .products .list:nth-of-type(4),
.zhenc-model-tow_six_single_set .products .list:nth-of-type(5),
.zhenc-model-tow_six_single_set .products .list:nth-of-type(6),
.zhenc-model-tow_six_single_set .products .list:nth-of-type(7),
.zhenc-model-tow_six_single_set .products .list:nth-of-type(8) {
  width: 4.76rem;
  height: 6.32rem;
  padding-bottom: 0;
  position: absolute;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(3) .image,
.zhenc-model-tow_six_single_set .products .list:nth-of-type(4) .image,
.zhenc-model-tow_six_single_set .products .list:nth-of-type(5) .image,
.zhenc-model-tow_six_single_set .products .list:nth-of-type(6) .image,
.zhenc-model-tow_six_single_set .products .list:nth-of-type(7) .image,
.zhenc-model-tow_six_single_set .products .list:nth-of-type(8) .image {
  width: 3.6rem !important;
  height: 3.6rem !important;
  margin: 0.1rem auto 0.3rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(1) {
  width: 7.1rem !important;
  height: 8.52rem !important;
  padding-bottom: 0;
  position: absolute;
  top: 0.9rem;
  left: 0.6rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(1) .image {
  width: 5.3rem !important;
  height: 5.3rem !important;
  margin: 0.1rem auto 0.3rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(1) .product_name {
  margin: -0.3rem auto 0.1rem !important;
  font-size: 0.64rem !important;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(1) .product_price {
  font-size: 0.68rem !important;
  margin-top: 0.7rem;
  width: 100%;
  color: #fff !important;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(2) {
  width: 7.3rem !important;
  height: 8.52rem !important;
  padding-bottom: 0;
  position: absolute;
  top: 0.9rem;
  left: 7.6rem;
  text-align: center;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(2) .image {
  width: 5.3rem !important;
  height: 5.3rem !important;
  margin: 0.1rem auto 0.3rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(2) .product_name {
  margin: -0.3rem auto 0.1rem !important;
  font-size: 0.64rem !important;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(2) .product_price {
  font-size: 0.68rem !important;
  margin-top: 0.7rem;
  width: 100%;
  color: #fff !important;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(3) {
  top: 9.6rem;
  left: 0.4rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(4) {
  top: 9.6rem;
  left: 5.2rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(5) {
  top: 9.6rem;
  left: 9.9rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(6) {
  top: 16.1rem;
  left: 0.4rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(7) {
  top: 16.1rem;
  left: 5.2rem;
}
.zhenc-model-tow_six_single_set .products .list:nth-of-type(8) {
  top: 16.1rem;
  left: 9.9rem;
}

/* 1带12 */
.zhenc-model-one_with_twelve {
  position: relative;
  margin-top: 0.5rem;
  height: 29.3rem;
}
.zhenc-model-one_with_twelve .image {
  width: 2.5rem;
  height: 2.5rem;
}
.zhenc-model-one_with_twelve .products {
  margin-top: 3.1rem;
}
.zhenc-model-one_with_twelve .product_price {
  color: #e8292d !important;
}

.zhenc-model-one_with_twelve .products .list .product_price {
  margin-top: 0.1rem;
}

.zhen-model-one-12 .toggle_btn {
  position: absolute !important;
  color: #fff;
  font-size: 0.52rem;
  top: 1.2rem;
  right: 1.5rem;
}

/* 9格品牌图 */
.zhenc-model-nine_brand_pic {
  width: 15rem;
  height: 27.06rem;
  position: relative;
}
.zhenc-model-nine_brand_pic .item:nth-child(1) {
  width: 7.1rem;
  height: 9.8rem;
  left: 0rem;
  top: 0rem;
  z-index: 9;
  position: absolute;
}
.zhenc-model-nine_brand_pic .item:nth-child(2) {
  width: 7.6rem;
  height: 4.8rem;
  left: 7.3rem;
  top: 0rem;
  z-index: 9;
  position: absolute;
}
.zhenc-model-nine_brand_pic .item:nth-child(3) {
  z-index: 9;
  position: absolute;
  width: 7.4rem;
  height: 4.7rem;
  top: 5.1rem;
  left: 7.3rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(4) {
  z-index: 9;
  position: absolute;
  width: 4.8rem;
  height: 7.2rem;
  left: 0.2rem;
  top: 9.9rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(5) {
  z-index: 9;
  position: absolute;
  width: 4.7rem;
  height: 7.1rem;
  left: 5.1rem;
  top: 10rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(6) {
  z-index: 9;
  position: absolute;
  width: 4.8rem;
  height: 7.2rem;
  left: 9.8rem;
  top: 9.9rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(7) {
  z-index: 9;
  position: absolute;
  width: 7.2rem;
  height: 4.6rem;
  left: 0.2rem;
  top: 17.4rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(8) {
  z-index: 9;
  position: absolute;
  width: 7.2rem;
  height: 4.9rem;
  left: 0.1rem;
  top: 22.1rem;
}
.zhenc-model-nine_brand_pic .item:nth-child(9) {
  z-index: 9;
  position: absolute;
  width: 7.1rem;
  height: 10rem;
  left: 7.8rem;
  top: 17.1rem;
}

/* 顶部导航 */
.nav-all {
  height: 1.8rem;
  line-height: 1.8rem;
  font-size: 0.52rem;
  color: #c3c3c3;
  text-indent: 0.56rem;
  display: none;
}
.zhenc-model-navigation {
  width: 15rem;
  background-color: #fff;
  height: 1.8rem;
  position: fixed;
  top: 0;
  z-index: 20;
}
::-webkit-scrollbar {
  display: none;
}
.zhenc-model-navigation ul {
  width: 13.4rem;
  margin: 0 0 0 0.2rem;
  background: #fff;
  height: 1.8rem;
  overflow: scroll;
  white-space: nowrap;
  font-size: 0;
  padding: 0;
}
.zhenc-model-navigation ul li {
  text-align: center;
  color: #363636;
  font-size: 0.48rem;
  border-right: none;
  box-sizing: border-box;
  padding: 0 0.5rem;
  height: 1.8rem;
  line-height: 1.8rem;
  display: inline-block;
  position: relative;
}
.zhenc-model-navigation ul li.current {
  color: #ec0000;
}
.zhenc-model-navigation ul li .location {
  position: absolute;
  top: 0.6rem;
  left: -0.04rem;
  height: 0.56rem;
  width: 0.56rem;
  display: none;
}
.zhenc-model-navigation .more {
  height: 0.68rem;
  width: 0.68rem;
  position: absolute;
  right: 0.36rem;
  top: 0.58rem;
  transform: rotate(0deg);
  transition: all 0.2s;
}
.zhenc-model-navigation ul li.current .location {
  display: inline-block;
  object-fit: contain;
}
.zhenc-model-navigation .nav-open {
  height: auto;
  width: 14.6rem;
  white-space: normal;
  overflow: auto;
  margin: 0 auto;
  background: #f7f7f7;
  padding: 0 0.2rem !important;
}
.zhenc-model-navigation .more-active {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
  transition: all 0.2s;
}
.removeAndEditBox[index='0'] {
  position: relative;
}
.zhenc-model-one_with_twelve .products .product_name {
  margin-top: 0rem;
  line-height: 0.7rem;
  font-size: 0.54rem;
}
.zhenc-model-one_with_twelve .products .list .image {
  width: 3rem;
  height: 3rem;
}
.zhenc-model-one_with_twelve .b_name {
  font-size: 0.54rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.zhenc-model-one_with_twelve .list {
  margin-right: 0rem;
  width: 4.9rem !important;
  text-align: center;
  margin-bottom: 0.2rem;
  height: 6.3rem;
}
.zhenc-model-one_with_twelve .product_price {
  padding-top: 0.01rem;
}
.zhenc-model-one_with_twelve .toggle_btn {
  position: absolute !important;
  color: #fff;
  font-size: 0.52rem;
  top: 1.2rem;
  right: 1.5rem;
}

.rule {
  display: block;
  position: absolute;
  width: 4.2rem;
  height: 4.2rem;
  bottom: 1rem;
  right: 0rem;
  z-index: 1;
}

.fixd-box {
  width: 15%;
  max-width: 1.52rem;
  height: 1.52rem;
  position: fixed;
  bottom: 1.9rem;
  right: 0.32rem;
  background: url(https://pic1.zhen.com/appimg/xq-zhen/to_Top_day.png);
  background-size: 100%;
  display: none;
  z-index: 102;
}

@media only screen and (max-width: 375px) {
  /* 这里写小屏专属样式，按需修改数值 */
  .zhenc-model-one_with_twelve .products .list .product_price {
    margin-top: 0.08rem !important;
  }
  .zhenc-model-one_with_twelve .b_name {
    padding-bottom: 0.01rem !important;
  }
  .zhenc-model-one_with_twelve
    .products
    .list:has(.product_name)
    .product_price {
    margin-top: 0rem !important;
  }
  .zhenc-model-one_with_twelve
    .list:has(.b_name):has(.product_name)
    .product_price {
    margin-top: 0.04rem;
  }
  .zhenc-model-one_with_twelve .list:has(.b_name):has(.product_name) .b_name {
    margin-top: 0rem;
    padding-bottom: 0.08rem;
  }
  .zhenc-model-one_with_twelve
    .list:has(.b_name):has(.product_name)
    .product_name {
    margin-top: -0.01rem;
    padding-bottom: 0.08rem;
  }
  .zhenc-model-one_with_four .list .b_name:not(:has(~ .product_name)) {
    margin-top: 0.25rem;
    font-size: 0.5rem;
    margin-bottom: 0.04rem;
  }
  .zhenc-model-one_with_four .list .product_name:not(:has(~ .b_name)) {
    margin-top: 0.25rem;
    font-size: 0.5rem;
    margin-bottom: 0.04rem;
  }
  .zhenc-model-one_with_four .list:has(.b_name):has(.product_name) .b_name {
    margin-top: -0.1rem;
    font-size: 0.46rem;
  }
  .zhenc-model-one_with_four
    .list:has(.b_name):has(.product_name)
    .product_name {
    margin-top: -0.1rem;
    font-size: 0.46rem;
  }
}
/* 一带4 */
.zhenc-model-one_with_four .list .b_name:not(:has(~ .product_name)) {
  margin-top: 0.25rem;
  font-size: 0.5rem;
  margin-bottom: 0.1rem;
}
.zhenc-model-one_with_four .list .product_name:not(:has(~ .b_name)) {
  margin-top: 0.25rem;
  font-size: 0.5rem;
  margin-bottom: 0.1rem;
}
.zhenc-model-one_with_four .list:has(.b_name):has(.product_name) .b_name {
  margin-top: -0.1rem;
  font-size: 0.46rem;
}
.zhenc-model-one_with_four .list:has(.b_name):has(.product_name) .product_name {
  margin-top: -0.1rem;
  font-size: 0.46rem;
}

/* 下面是一带12 */
/* 1. 只有 b_name，没有 product_name → 样式1 */
.zhenc-model-one_with_twelve
  .list
  .b_name:not(:has(+ .product_name))
  + .product_price {
  margin-top: 0.08rem;
}
.zhenc-model-one_with_twelve
  .list
  .b_name:not(:has(+ .product_name))
  + .product_name {
  margin-top: 0.5rem;
}
/* 1. 只有 b_name，无 product_name */
.zhenc-model-one_with_twelve .list .b_name:not(:has(~ .product_name)) {
  margin-top: 0.4rem;
}
/* 2. 只有 product_name，没有 b_name → 样式2 */
.zhenc-model-one_with_twelve
  .list
  .product_name:not(:has(~ .b_name))
  + .product_price {
  margin-top: 0.14rem;
}
/* 2. 只有 product_name，无 b_name */
.zhenc-model-one_with_twelve .list .product_name:not(:has(~ .b_name)) {
  margin-top: 0.4rem; /* 你要的样式 */
}
/* 两个都有时 product_name 的样式 */
.zhenc-model-one_with_twelve .list .b_name ~ .b_name {
  margin-top: 0.05rem; /* 你要的样式 */
}

.zhenc-model-one_with_twelve .list .b_name ~ .product_name {
  margin-top: 0.04rem; /* 你要的样式 */
}

/* 3. 同时有 b_name + product_name → 样式3 */

.zhenc-model-one_with_twelve
  .list:has(.b_name):has(.product_name)
  .product_price {
  margin-top: 0rem;
}
.zhenc-model-one_with_twelve .list:has(.b_name):has(.product_name) .b_name {
  margin-top: 0.18rem;
  padding-bottom: 0.05rem;
}
.zhenc-model-one_with_twelve
  .list:has(.b_name):has(.product_name)
  .product_name {
  margin-top: 0rem;
  margin-bottom: 0.05rem;
}
/* ======================================
     小屏 ≤375px 样式（你之前要求的）
  ====================================== */
@media only screen and (max-width: 375px) {
  /* 1. 只有 b_name */
  .zhenc-model-one_with_twelve
    .list
    .b_name:not(:has(+ .product_name))
    + .product_price {
    margin-top: 0.05rem;
  }

  /* 2. 只有 product_name */
  .zhenc-model-one_with_twelve
    .list
    .product_name:not(:has(~ .b_name))
    + .product_price {
    margin-top: 0.09rem;
  }

  /* 3. 两个都有 */
  .zhenc-model-one_with_twelve
    .list:has(.b_name):has(.product_name)
    .product_price {
    margin-top: 0.2rem;
  }
}

.zhenc-model-head_single_set .products .product_name {
  font-size: 0.54rem;
}

.zhenc-model-head_single_set .products .price {
  font-size: 0.54rem;
}
