:root {
  --target-ui-red: #7cb89a;
  --target-ui-orange: #4a8f6e;
  --target-ui-text: #252525;
  --target-ui-muted: #8c8c8c;
  --target-ui-line: #eee;
  --target-ui-bg: #f7f7f7;
  --target-ui-width: 480px;
  --target-ui-font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

html {
  min-height: 100%;
  background: #f0f1f4;
}

body.target-ui-page {
  width: 100%;
  min-width: 0;
  max-width: var(--target-ui-width);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  color: var(--target-ui-text);
  background: var(--target-ui-bg);
  font-family: var(--target-ui-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.target-ui-page *,
.target-ui-page *::before,
.target-ui-page *::after {
  box-sizing: border-box;
}

.target-ui-page a {
  color: inherit;
  text-decoration: none;
}

.target-ui-page img {
  max-width: 100%;
}

.target-footer-space {
  width: 100%;
  height: calc(54px + env(safe-area-inset-bottom));
  clear: both;
}

.target-bottom-nav.footerdi {
  position: fixed;
  right: 0;
  bottom: 0 !important;
  left: 0;
  z-index: 1200;
  width: 100%;
  max-width: var(--target-ui-width);
  height: calc(54px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 0 0 env(safe-area-inset-bottom);
  border-top: 1px solid #ececec;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .025);
}

.target-bottom-nav .f_menu,
.target-bottom-nav .menu_box {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0;
}

.target-bottom-nav .menu_box {
  display: flex;
  align-items: stretch;
  list-style: none;
}

.target-bottom-nav .menu_item {
  position: relative;
  flex: 1 1 20%;
  width: 20%;
  height: 54px;
  margin: 0;
  padding: 0;
  text-align: center;
}

.target-bottom-nav .menu_item > a {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 54px;
  gap: 2px;
  color: #202020;
}

.target-bottom-nav .tab-icon-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: #111;
}

.target-bottom-nav .tab-bar-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.target-bottom-nav .tab-icon-slot--anno {
  width: 36px;
  height: 32px;
  margin-top: -13px;
  border: 1px solid #f4d986;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95);
}

.target-bottom-nav .tab-bar-icon--anno-medal {
  width: 31px;
  height: 31px;
}

.target-bottom-nav .item_txt {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
}

.target-bottom-nav .menu_item.cur > a {
  color: var(--target-ui-red);
}

.target-bottom-nav .menu_item.cur:not(.menu_item--anno) .tab-bar-icon {
  filter: invert(72%) sepia(21%) saturate(627%) hue-rotate(98deg) brightness(91%) contrast(86%);
}

.target-bottom-nav .nav_cart_num {
  position: absolute;
  top: -5px;
  right: -8px;
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--target-ui-red);
  font-size: 9px;
  line-height: 12px;
  text-align: center;
}

.target-bottom-nav .nav_cart_num:not(:empty) {
  display: block;
}

/* YunGouCMS common title bars mapped to the target gradient header. */
.target-ui-page .g-header,
.target-ui-page .header,
.target-ui-page .m-header,
.target-ui-page .m-simpleHeader,
.target-ui-page .f-header,
.target-ui-page .top-header {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: none;
  height: 50px;
  margin: 0;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #2d6b4f 0%, #4a8f6e 50%, #7cb89a 100%);
  box-shadow: none;
}

.target-ui-page .g-header h2,
.target-ui-page .header h1,
.target-ui-page .header h2,
.target-ui-page .m-header h1,
.target-ui-page .m-header h2,
.target-ui-page .m-simpleHeader h1,
.target-ui-page .m-simpleHeader h2 {
  height: 50px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 50px;
  text-align: center;
}

.target-ui-page .g-header .head-l,
.target-ui-page .g-header .head-r,
.target-ui-page .header .return,
.target-ui-page .header .back,
.target-ui-page .m-header .back,
.target-ui-page .m-simpleHeader .back {
  top: 0;
  width: 50px;
  height: 50px;
  color: #fff;
  line-height: 50px;
}

.target-ui-page input,
.target-ui-page textarea,
.target-ui-page select,
.target-ui-page button {
  font-family: var(--target-ui-font);
}

.target-ui-page .orange,
.target-ui-page .red,
.target-ui-page em {
  color: var(--target-ui-red);
}

.target-ui-page .smailnav,
.target-ui-page #top_div,
.target-ui-page #btnGotoTop3 {
  display: none !important;
}

@media (min-width: 481px) {
  body.target-ui-page {
    box-shadow: 0 0 20px rgba(28, 34, 45, .08);
  }
}
