/* 主样式文件，包括整个网站的通用样式定义，如颜色、字体、间距等 */
/* 主题色号
  主题色 #54BC30
  主题文字渐变 background: linear-gradient(to right, #98e05f, #0de3ac);
  主题背景渐变 background: linear-gradient(to right, #e5fcfa, #d7ffdf);
*/
@import url('./variables.css');

/* 基础样式 */
html,
body,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.text-right {
  text-align: right;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.text-center {
  text-align: center;
}

.container {
  width: 8rem;
  margin: 0 auto;
  position: relative;
}

/* 设置页面字体样式 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--light-color);
  color: #333333;
  position: relative;
}

/* 链接样式 */
a {
  color: var(--link-color);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

a:visited {
  color: var(--visited-link-color);
}

/* 列表样式 */
ul,
ol {
  list-style-type: none;
}

/* 表格样式 */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--border-color);
  padding: var(--spacing-sm);
}

/* 表单样式 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

/* 头部样式 */
header {
  width: 100%;
  z-index: 99;
  background-color: var(--light-color);
  text-align: center;
  height: .533rem;
}

.header {
  color: var(--primary-color);
  font-size: var(--font-size-base-sm);
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.logo {
  width: .64rem;
}

.logo img {
  width: 100%;
}

.navbar {
  width: 4.3rem;
}

.navbar a {
  margin: 0 .1rem;
}

.navbar a.active {
  background: linear-gradient(to right, #98e05f, #0de3ac);
}

.header a:hover,
.header a.active {
  background: linear-gradient(to right, #98e05f, #0de3ac);
  display: inline;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-container button {
  width: .133rem;
  height: .133rem;
  border: none;
  background-color: var(--light-color);
  background-image: url('../images/search-icon.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

.sub-navbar {
  margin: 0 .12rem;
}

.sub-navbar a {
  margin: 0 .12rem;
  position: relative;
}

.sub-navbar a:before {
  content: '';
  position: absolute;
  height: .213rem;
  width: .013rem;
  background-color: #e7e7e7;
  left: -0.12rem;
  top: -0.04rem;
}

/* 二维码提示 */
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 1.6rem;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: .08rem;
  padding: .1rem 0;
  position: absolute;
  z-index: 2;
  top: 150%;
  left: 50%;
  margin-left: -0.8rem;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -0.067rem;
  border-width: .067rem;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip div {
  display: flex;
  align-content: center;
  justify-content: center;
}

.tooltiptext img {
  width: 1.4rem;
}

/* 移动端导航 */
.mobile-nav {
  width: .6rem;
  height: .6rem;
  cursor: pointer;
  display: flex;
  position: absolute;
  right: .733rem;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-nav span {
  width: .6rem;
  height: .067rem;
  background: #000;
  display: block;
  -webkit-transition-duration: .5s;
}


/* 页脚样式 */
footer {
  width: 100%;
  background: linear-gradient(to right, #e5fcfa, #d7ffdf);
  border-radius: .56rem .56rem 0 0;
}

.footer {
  margin: 0 auto;
  color: var(--primary-color);
  padding: 62.025px 0 30.975px 0;
  font-size: .093rem;
  box-sizing: border-box;
}

.footer .footer-container {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  width: .8rem;
  margin: 0.34rem 0.4rem;
}

.footer-logo img {
  width: 100%;
}

.footer .link {
  width: 3.467rem;
  border-left: .013rem solid #333333;
  border-right: .013rem solid #333333;
  box-sizing: border-box;
}

.footer .shop-nav,
.footer .help-center {
  float: left;
}

.footer .link h3 {
  margin: 0 0 .2rem 0;
}

.footer .shop-nav {
  padding: 0 .507rem 0 .707rem;
}

.footer a {
  margin: 0px 18px 8.025px 0px;
}

.footer a:hover {
  background: linear-gradient(to right, #98e05f, #0de3ac);
  display: inline;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shop-nav a:last-child {
  margin-bottom: 0px;
}

.footer .shop-nav a {
  float: left;
  clear: none;
}

.footer .shop-nav a:nth-child(2n) {
  clear: both;
}

.footer .help-center a {
  display: block;
}

.footer .qr-code {
  display: flex;
  justify-content: center;
  flex: 1;
  box-sizing: border-box;
  text-align: center;
}

.footer .qr-code-container {
  width: .76rem;
  float: left;
  margin: 0 .267rem;
  font-size: .08rem;
}

.qr-code-container img {
  width: 100%;
}

.footer .copyright {
  /*width: calc(100% - 159.975px);*/
  padding: .133rem 0 0 0;
  border-top: .013rem solid black;
  display: flex;
  justify-content: space-around;
  font-size: .093rem;
  box-sizing: border-box;
}

.footer .friend-link {
  padding-left: .4rem;
  display: flex;
  margin: .1rem 0;
  font-size: .075rem;
}

.footer .friend-link a {
  color: #666;
  display: inline-block;
}

/* 全局边栏 */
.global-sidebar {
  width: 40px;
  height: 260px;
  position: fixed;
  right: 20px;
  bottom: 155px;
  z-index: 999;
}

.global-sidebar li {
  margin-top: 10px;
  position: relative;
}

.global-sidebar li .icon img {
  display: block;
  width: 100%;
  opacity: 0.8;
}

.global-sidebar li.goto-top {
  cursor: pointer;
  display: none;
}

.global-sidebar li:first-child {
  margin-top: 0;
}

.global-sidebar li:hover .icon img {
  opacity: 1;
}

.global-sidebar li .hidden-box {
  width: 2rem;
  ;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(0, -50%);
  font-size: 16px;
  line-height: 1.8;
  padding-right: 20px;
  display: none;
}

.global-sidebar li .hidden-box::before {
  content: "";
  border-top: 8px solid transparent;
  border-left: 8px solid #fff;
  border-bottom: 8px solid transparent;
  display: block;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.global-sidebar li .hidden-box .text {
  background-color: #fff;
  padding: 8px 15px;
}

.global-sidebar li .hidden-box .text a {
  display: block;
}

.global-sidebar li .hidden-box .pic {
  padding: 0 !important;
}

.global-sidebar li .hidden-box .pic img {
  display: block;
  width: 100%;
}

.global-sidebar li:hover .hidden-box {
  display: block;
}


/* 我店个性化样式 */
/* 渐变色调 */
.gradient {
  background: linear-gradient(to right, #98e05f, #0de3ac);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(to right, #98e05f, #0de3ac);
  /* 设置背景裁剪为文本，使得渐变仅应用于文本部分 */
  -webkit-background-clip: text;
  background-clip: text;
  /* 设置文本填充色为透明，以使渐变颜色显示出来 */
  color: transparent !important;
}

/* 二级导航 */
nav {
  background-color: #fafafa;
}

.secondary-nav ul {
  display: flex;
  flex-direction: row;
  height: .333rem;
  align-items: center;
}

.secondary-nav ul li {
  margin-right: .227rem;
  font-size: .107rem;
}

.secondary-nav ul li a.active,
.secondary-nav ul li a:hover {
  background: linear-gradient(to right, #98e05f, #0de3ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* 合作伙伴、品牌加盟介绍：加盟优势 */
.brand-shop-franchise-container .content .box,
.partners-container .content .box {
  margin-bottom: .667rem;
  position: relative;
}

.brand-shop-franchise-container .content .box h3,
.partners-container .content .box h3 {
  text-align: center;
  font-size: .187rem;
  margin-bottom: .533rem;
}

.brand-shop-franchise-container .content .box .article-info,
.partners-container .content .box .article-info {
  display: flex;
  align-items: center;
}

.brand-shop-franchise-container .content .box .article-info .detail-content,
.partners-container .content .box .article-info .detail-content {
  padding-right: .333rem;
  font-size: .147rem;
  width: 50%;
}

.brand-shop-franchise-container .content .box .article-info .detail-content p,
.partners-container .content .box .article-info .detail-content p {
  line-height: 2;
  color: black;
}

.advantage .article-info {
  width: 88%;
  margin: 0 auto;
}

.brand-shop-franchise-container .swiper-container,
.partners-container .swiper-container {
  width: 100%;
  height: 100%;
}

.brand-shop-franchise-container .swiper-slide,
.partners-container .swiper-slide {
  font-size: 18px;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.brand-shop-franchise-container .swiper-slide,
.partners-container .swiper-slide {
  min-height: 2.2rem;
  border-radius: .213rem;
  box-shadow: 0 0 .027rem rgba(247, 247, 247, 0.5);
}

.brand-shop-franchise-container .swiper-button-prev,
.brand-shop-franchise-container .swiper-button-next,
.partners-container .swiper-button-prev,
.partners-container .swiper-button-next {
  position: absolute;
  transform: translateY(100%);
  width: .293rem;
  height: .293rem;
  cursor: pointer;
}

.brand-shop-franchise-container .swiper-button-prev,
.partners-container .swiper-button-prev {
  background-image: url('../images/btn-left.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-shop-franchise-container .swiper-button-prev:hover,
.partners-container .swiper-button-prev:hover {
  background-image: url('../images/btn-left-active.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-shop-franchise-container .swiper-button-next,
.partners-container .swiper-button-next {
  background-image: url('../images/btn-right.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-shop-franchise-container .swiper-button-next:hover,
.partners-container .swiper-button-next:hover {
  background-image: url('../images/btn-right-active.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-shop-franchise-container .swiper-pagination-bullet-active,
.partners-container .swiper-pagination-bullet-active {
  opacity: 1;
  background: linear-gradient(to right, #98e05f, #0de3ac);
}

.brand-shop-franchise-container .swiper-slide,
.partners-container .swiper-slide {
  display: block;
  color: black;
  box-sizing: border-box;
}

.advantage .img-container {
  height: 1.5rem;
}

.brand-shop-franchise-container .advantage .article-info .swiper-container .img-container img,
.partners-container .advantage .article-info .swiper-container .img-container img {
  border-radius: .107rem;
}

.brand-shop-franchise-container .advantage .article-info .swiper-container h3,
.partners-container .advantage .article-info .swiper-container h3 {
  text-align: left;
  margin: 0;
  margin-top: .107rem;
  font-size: .173rem;
}

.brand-shop-franchise-container .advantage .article-info .swiper-container p,
.partners-container .advantage .article-info .swiper-container p {
  color: #999;
  font-size: .107rem;
  line-height: 1.2;
}

.brand-shop-franchise-container .advantage .article-info .swiper-container .swiper-detail-content,
.partners-container .advantage .article-info .swiper-container .swiper-detail-content {
  margin-bottom: .267rem;
}

/* 首页、合作伙伴：合作伙伴 */
.partners {
  margin-bottom: .667rem;
}

.partners .content {
  display: block;
}

.partners .content ul {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 7.5rem;
  margin: 0 auto;
}

.partners .content ul li {
  width: 1.875rem;
  box-sizing: border-box;
  border-left: .013rem solid #f6f6f6;
  border-bottom: .013rem solid #f6f6f6;
  display: flex;
  align-items: center;
  height: .587rem;
  justify-content: center;
}

.partners .content ul li a {
  display: block;
}

.partners .content ul li img {
  width: 1rem;
}

.partners .content ul li:nth-child(1) {
  border-left: none;
}

/* 搜索 */

.search .title {
  margin-top: .4rem;
  margin-bottom: .267rem;
  font-size: .147rem;
}

.search ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.search ul li {
  border-bottom: .013rem dotted #ccc;
  width: 49%;
  line-height: 3;
  font-size: .107rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search ul li::before {
  content: "●";
  color: #ccc;
  display: inline-block;
  width: .107rem;
}

.search ul li span,
.search ul li b {
  background: linear-gradient(to right, #98e05f, #0de3ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search ul li .btn {
  display: inline-block;
  padding: 0 .04rem;
  margin-left: .05rem;
  line-height: 1.5;
  font-size: 0.08rem;
  text-align: center;
  border-radius: .01rem;
  background-color: #ccc;
}

/* 分页 */
.pagination {
  font-size: 14px;
  font-weight: bold;
  line-height: 22px;
  text-align: center;
  clear: both;
  display: inline-block;
  margin: .25rem auto;
}

.pagination a {
  text-decoration: none;
  color: #000;
  width: .25rem;
  height: .25rem;
  line-height: .25rem;
  background-color: transparent;
  border-radius: 50%;
  margin: 0 4px;
  display: block;
  float: left;
  -webkit-transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
  transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
}

.pagination a.active {
  background: #E50012;
  color: #fff;
  -webkit-transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
  transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
}

.pagination a:hover {
  text-decoration: none;
  color: #fff;
  background: #E50012;
  -webkit-transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
  transition: 0.5s cubic-bezier(0.6, 0.2, 0.1, 1);
}

/* search框按钮 */
.search-box {
  position: absolute;
  right: 0;
  display: flex;
  width: 2rem;
  height: 50%;
  margin-right: .267rem;
  display: none;
}

.search-box form {
  width: 100%;
  height: 100%;
}

input[type="text"] {
  width: 100%;
  height: 100%;
  outline: none;
  font-size: .107rem;
}

input[type="text"]:focus {
  border: 1px solid #ccc;
  box-shadow: 0 0 .04rem rgba(0, 0, 0, 0.3);
}

.search-box form {
  display: flex;
  align-items: center;
}

.submit-btn {
  position: absolute;
  right: .067rem;
  width: .133rem;
  height: .133rem;
  border: none;
  background-color: var(--light-color);
  background-image: url('../images/search-icon.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

.clear-button {
  position: absolute;
  right: -.24rem;
  background: none;
  width: .2rem;
  height: .2rem;
  border: none;
  cursor: pointer;
  font-size: .2rem;
  text-align: center;
  color: #999;
  line-height: 1;
}

.clear-button:hover {
  color: #000;
}

/* ===================移动设备==================== */
@media screen and (max-width: 750px) {
  .container {
    width: 8.4rem;
  }

  header {
    height: 1.907rem;
    position: relative;
  }

  .header {
    width: 10rem;
    padding: 0;
  }

  main {
    width: 10rem;
  }

  .logo {
    width: 1.667rem;
    margin-left: .667rem;
  }

  .search-container {
    position: absolute;
    right: 2.293rem;
  }

  .search-container button {
    width: .533rem;
    height: .533rem;
    background-image: url('../images/search.png');
  }

  .sub-navbar {
    display: none;
  }

  .navbar {
    position: absolute;
    top: 1.907rem;
    width: 10rem;
    z-index: 2;
    text-align: center;
    border-top: .013rem solid #ccc;
    padding: 0.32rem 0;
    background: linear-gradient(to right, #e5fcfa, #d7ffdf);
    border-bottom-left-radius: .227rem;
    border-bottom-right-radius: .227rem;
  }

  .header a {
    display: block;
    font-size: .373rem;
    padding: 0;
    margin: 0;
    width: 100%;
    line-height: .80rem;
  }

  .header a:hover {
    width: 100%;
    background-color: #ccc;
  }

  .header a:hover,
  .header a.active {
    display: block;
  }

  .navbar {
    display: none;
  }

  footer {
    width: 10rem;
  }

  .footer {
    padding: 0 .8rem;
    padding-top: .933rem;
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .footer-logo {
    display: none;
  }

  .footer .footer-container {
    display: block;
  }

  .footer .shop-nav {
    padding: 0;
    width: 100%;
  }

  .footer .link {
    border: none;
    width: 100%;
  }

  .footer .link h3 {
    display: none;
  }

  .footer a {
    margin: 0;
    clear: both;
    font-size: .373rem;
    margin-bottom: .8rem;
    font-weight: bold;
    display: block;
    width: 100%;
    position: relative;
  }

  .footer a img {
    width: .187rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  .shop-nav a:last-child {
    margin-bottom: .8rem;
  }

  .footer .shop-nav a {
    clear: both;
  }

  .footer .help-center {
    float: none;
  }

  .footer .help-center a:last-child {
    display: none;
  }

  .footer .qr-code-container {
    margin: 0 .36rem;
    width: 1.96rem;
    font-size: .2rem;
  }

  .footer .copyright {
    display: block;
    text-align: center;
    padding: .427rem 0;
    margin-top: .2rem;
    width: 100%;
    font-size: .2rem;
  }

  .footer .copyright span {
    display: block;
  }

  .footer .friend-link {
    display: none;
  }

  .global-sidebar {
    display: none;
  }

  .service-hotline {
    display: block;
    text-align: center;
    margin-bottom: .467rem;
  }

  .service-hotline span,
  .service-hotline span a {
    display: block;
    font-size: .387rem;
    background: linear-gradient(to right, #98e05f, #0de3ac);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* 合作伙伴 */
  .partners .content ul {
    width: 100%;
  }

  .partners .content ul li {
    /* width: 2.834rem;
    width: 1.875rem; */
    width: 25%;
    height: 1.333rem;
  }

  .partners .content ul li img {
    width: 1.467rem;
  }

  .partners .content ul li:nth-child(1) {
    border-left: none;
  }

  .partners .content ul li:nth-child(3n+1) {
    border-left: none;
  }

  /* search框按钮 */
  .search-box {
    position: absolute;
    top: 1.907rem;
    right: 0;
    display: flex;
    width: 10rem;
    height: 50%;
    margin-right: 0;
    z-index: 100;
    background-color: #fff;
    display: none;
    padding-bottom: .133rem;
  }

  .search-box form {
    width: 80%;
    height: 100%;
    margin: 0 auto;
  }

  input[type="text"] {
    width: 100%;
    height: 100%;
    outline: none;
    font-size: .32rem;
    margin-right: .267rem;
  }

  input[type="text"]:focus {
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }

  .search ul li {
    width: 100%;
    font-size: 0.24rem;
  }

  .search ul li .btn {
    font-size: .2rem;
  }

  .search .title {
    font-size: .3rem;
  }

  .secondary-nav ul {
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .secondary-nav ul li {
    flex: 0 0 30%;
    font-size: .3rem;
    margin-bottom: .05rem;
  }

  .search-box form {
    display: flex;
    align-items: center;
  }

  .search-box form .submit-btn {
    position: relative;
    width: .533rem;
    height: .533rem;
    border: none;
    background-color: var(--light-color);
    background-image: url('../images/search-icon.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
  }

  .clear-button {
    display: none;
  }

  .brand-shop-franchise-container .advantage .article-info .swiper-container h3,
  .partners-container .advantage .article-info .swiper-container h3 {
    font-size: .24rem;
  }

  .brand-shop-franchise-container .advantage .article-info .swiper-container p,
  .partners-container .advantage .article-info .swiper-container p {
    font-size: .2rem;
  }

  .brand-shop-franchise-container .swiper-slide,
  .partners-container .swiper-slide {
    min-height: 3.2rem;
  }

  .brand-shop-franchise-container .content .box h3,
  .partners-container .content .box h3 {
    font-size: .34rem;
  }

  .pagination a {
    width: .5rem;
    height: .5rem;
    line-height: .5rem;
  }

  .secondary-nav ul {
    margin-bottom: .2rem;
  }

  .brand-shop-franchise-container .content .box .article-info .detail-content,
  .partners-container .content .box .article-info .detail-content {
    font-size: .24rem;
  }

  .advantage .img-container {
    height: 4rem;
  }

  .brand-shop-franchise-container .advantage .article-info .swiper-container .swiper-detail-content,
  .partners-container .advantage .article-info .swiper-container .swiper-detail-content {
    margin-bottom: .5rem;
  }

  /* .partners .content ul li:last-child {
    display: none;
  } */
}

@media screen and (min-width: 750px) {
  header {
    position: fixed;
    left: 0;
    top: 0;
  }

  main {
    margin-top: .533rem;
  }

  .mobile-nav {
    display: none;
  }

  .navbar {
    display: block !important;
  }

  .service-hotline {
    display: none;
  }

  .link a img {
    display: none;
  }

  /* 合作伙伴 */
  .partners .content ul li:nth-child(5n+1) {
    border-left: none;
  }
}