.home--icon {
  z-index: 1;
}
.go-top {
  display: none;
  position: fixed;
  z-index: 999;
  right: 10px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-width: 1px;
  border-style: solid;
  border-top-color: rgba(255, 255, 255, 0);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s linear;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}

.go-top.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media screen and (min-width: 1213px) {
  .go-top.is-visible:hover {
    background-color: rgba(0, 0, 0, 1);
    border-top-color: rgba(255, 255, 255, 1);
    border-right-color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.9);
  }
}

.go-top:focus,
.go-top i:focus {
  outline: 0;
}

/* style.css */
/* reset */
/* ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:before,
*:after {
  box-sizing: border-box;
}
a {
  display: block;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  border: 0;
  vertical-align: middle;
}
article,
main,
nav,
section {
  display: block;
}
body {
  margin: 0;
  background-color: #f4d7d3;
  font-family: PingFangTC-regular, Roboto, "LiHei Pro", "Source Han Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft JhengHei", sans-serif;
}
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
.layout--main {
  position: relative;
  z-index: 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
/* 主視覺 */
/* ======================================== */
.logo a,
.sp__visual a {
  display: block;
}
.home--logo {
  z-index: 17;
}
.logo {
  position: absolute;
  z-index: 17;
  top: 1%;
  left: 1%;
  width: 30%;
  max-width: 220px;
}
.sp__visual {
  position: relative;
  z-index: 0;
  width: 100%;
}
.visual--auto {
  display: flex;
  flex-wrap: wrap;
}

.visual__fragment {
  float: left;
  position: relative;
  z-index: 0;
  max-width: 100%;
  vertical-align: middle;
}

@media screen and (min-width: 960px) {
  .visual__fragment {
    width: auto;
  }
}

/* 自適應banner組 */
/* ======================================== */
.banner__title {
  height: 65px;
  background: center top no-repeat;
}
.banner__wrap {
  display: flex;
  flex-wrap: wrap;
}
.banner__item {
  transition: all 0.3s;
  padding-top: 1%;
}
.banner__item img {
  width: 100%;
}

@media screen and (min-width: 767px){
  .banner__item {
    padding: .3%;
  }
}

/* 設定一列2個(50%，3個就33.33%，4個就25%) */

.bn-w2m1 .banner__item {
  float: left;
  width: 100%;
  /* padding-top: 1%; */
  /* margin-bottom: 1%; */
}

@media screen and (min-width: 767px) {
  .bn-w2m1 .banner__item {
    width: 50%;
  }
}

/* 設定點下去與hover動畫 */
.banner__item:hover,
.banner__item:active {
  /* 變小(<1時變小) */
  transform: scale(0.98);
  /* 亮度調暗(<100%時變暗) */
  /*filter: brightness(95%);*/
}

/* 設定一列4個 */
.bn-w4m2 .banner__item {
  float: left;
  width: 50%;
  flex: 1 1 50%;
}
/* 設定點下去與hover動畫 */
.bn-w4m2 .banner__item:hover,
.bn-w4m2 .banner__item:active {
  /* 變大(>1時變大) */
  transform: scale(1.05);
  /* 亮度調亮(>100%時變亮) */
  filter: brightness(115%);
}
@media screen and (min-width: 767px) {
  /* 設定手機時一列2個 */
  .bn-w4m2 .banner__item {
    width: 25%;
    flex: 1 1 25%;
  }
}
/* 設定一列3個 */
.bn-w3m1 .banner__item {
  width: 33.33%;
  flex: 1 1 33.33%;
}
/* 設定點下去與hover動畫 */
.bn-w3m1 .banner__item:hover,
.bn-w3m1 .banner__item:active {
  /* 變大(>1時變大) */
  transform: scale(1.05);
  /* 亮度調亮(>100%時變亮) */
  filter: brightness(115%);
}

@media screen and (min-width: 767px) {
  /* 設定小網時一列1個 */
  .bn-w3m1 .banner__item {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* BN寬度只佔一半 */
@media screen and (min-width: 767px) {
  .banner__item--half{
    width: 50%;
  }
}

/* 雙輪播用 */
.swiper-slide .slide__block {
  display: flex;
}


/* --- 背景飄落 start --- */
.bg__container .first-layer,
.bg__container .second-layer,
.bg__container .third-layer{
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bg__container .bg--first {
  animation: falling-down linear infinite;
  /* animation-duration調整飄落下來的時間 */
  animation-duration: 52s
}

.bg__container .bg--second {
  transform: translate3d(0, -100%, 0);
  animation: falling-down-2 linear infinite;
  animation-duration: 28s
}

.bg__container .bg--third {
  transform: translate3d(0, -100%, 0);
  animation: falling-down-3 linear infinite;
  animation-duration: 20s
}

@keyframes falling-down {
  0% {
    background-position: 0 0;
    opacity: 0
  }

  10%,
  90% {
    opacity: 1
  }

  100% {
    background-position: 100% 150vh;
    opacity: 0
  }
}

@keyframes falling-down-2 {
  0% {
    transform: translate3d(0, -100%, 0)
  }

  to {
    /* translate3d(x, y, z)調整飄落下來的位置 */
    transform: translate3d(15%, 100%, 0)
  }
}

@keyframes falling-down-3 {
  0% {
    transform: translate3d(0, -100%, 0)
  }

  50% {
    transform: translate3d(-10%, 0, 0)
  }

  to {
    transform: translate3d(15%, 100%, 0)
  }
}

/* --- 背景飄落 end --- */


/* --- 宮格用 --- */
/* rwd title */
.header__wrap.header--show {
  background: #fff;
}

.header__info {
  margin: 0 auto;
  max-width: 960px;
  height: 55px;
  background: #fff;
  padding: 5px;
}

.header__info--sm {
  max-width: 960px;
}

.header__wrap :after {
  clear: both;
  content: "";
  display: block;
  overflow: auto;
}

.community__ico {
  float: right;
}

.header__ico {
  float: left;
}

.header__ico img {
  height: 45px;
  width: auto;
  padding-left: 5px;
}

.bg-line a {
  width: 35px;
  height: 35px;
  background: url("https://www.etmall.com.tw/XML/content/DMSetting/Final/209901/SP_1106167/line.jpg")
    no-repeat;
  background-size: 35px, 35px;
  border-radius: 5px;
}

.bg-facebook a {
  width: 35px;
  height: 35px;
  background: url("https://www.etmall.com.tw/XML/content/DMSetting/Final/209901/SP_1106167/facebook.jpg")
    no-repeat;
  background-size: 35px, 35px;
}

.community__ico li {
  display: inline-block;
  cursor: pointer;
  line-height: 40px;
  margin-top: 4px;
  margin-right: 5px;
}

.community__ico li.bg-line {
  display: none;
}

@media screen and (max-width: 768px) {
  .community__ico li.bg-line {
    display: inline-block;
  }
}

/* margin 調整 */
.margin-top-sm {
  margin-top: 2%;
}

.margin-bottom-sm {
  margin-bottom: 2%;
}

.margin-bottom-md {
  margin-bottom: 4%;
}

.margin-bottom-lg {
  margin-bottom: 8%;
}

/* build & item */
.layout--main {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.build__wrap .item__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

/* ===== RWD 768 ===== */
@media screen and (min-width: 960px) {
  .build__wrap .item__wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

.build__wrap {
  display: flex;
  flex-wrap: wrap;
  /* 過渡期先將此設定各自放在新宮格裡 */
  /* justify-content: space-between; */

  /* 舊宮格樣式 */
  justify-content: space-around;
}

.build__item {
  width: calc(50% - 5px);
  margin-bottom: 10px;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 20%);
  overflow: hidden;
  transition: all 0.16s;
}

/* hover float */
.build__item.hover--float-sm:active,
.build__item.hover--float-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4.5px 0 rgb(0 0 0 / 25%);
}

/* hover scale */
.build__item.hover--scale-xs:active,
.build__item.hover--scale-xs:hover {
  transform: scale(1.03);
}

.build__item.hover--scale-sm:active,
.build__item.hover--scale-sm:hover {
  transform: scale(1.05);
}

/* ===== RWD 960 ===== */
@media screen and (min-width: 960px) {
  .build__item {
    width: calc(25% - 7.5px);
  }
}

.build__item a {
  color: #5d5d5d;
}

.item__pic {
  position: relative;
  z-index: 0;
  padding-top: 100%;
  overflow: hidden;
}

.item__img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
}

.item__info {
  padding: 2%;
}

.item__push {
  width: 100%;
  height: 28px;
  text-align: center;
}

.item__push span {
  position: relative;
  z-index: 0;
  display: block;
  max-height: 28px;
  margin: 0 3%;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 200%;
  color: #cc1e05;
  font-weight: bold;
  overflow: hidden;
}

.item__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  height: 36px;
  line-height: 120%;
  font-size: 15px;
  overflow: hidden;
}

.item__price span:last-child {
  color: #cc1e05;
  font-size: 22px;
}

/* ===== build__banner--1 (750x328) ===== */
.build__banner--1 {
  position: relative;
  width: 100%;
  text-align: center;
  border: 0;
}

.build__banner--1 .item__pic {
  width: 100%;
  /* banner 高(328) / 寬(750) 計算 padding-top*/
  padding-top: 43.4%;
  margin-top: 0;
}

.build__banner--1 .item__pic img {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== build__banner--2 (630x940) ===== */
.build__banner--2 {
  position: relative;
  width: calc(50% - 5px);
  text-align: center;
  border: 0;
}

@media screen and (min-width: 960px) {
  .build__banner--2 {
    position: relative;
    width: calc(25% - 7.5px);
    text-align: center;
    border: 0;
  }
}

.build__banner--2 .item__pic {
  width: 100%;
  /* banner 高(940) / 寬(630) 計算 padding-top*/
  padding-top: 149%;
  margin-top: 0;
}

.build__banner--2 .item__pic img {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== build__banner--3 (正方形圖片) ===== */
.build__banner--3 {
  text-align: center;
  background-color: #626483;
  border: 0;
  box-shadow: none;
}

/* ===== build__banner--4 (470x315) ===== */
.build__banner--4 {
  position: relative;
  text-align: center;
  border: 0;
  box-shadow: none;
}

/* ===== banner__hover ===== */
.banner__hover {
  cursor: pointer;
  transition: 0.2s !important;
}

.banner__hover:active,
.banner__hover:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 2px 4.5px 0 rgb(0 0 0 / 25%) !important;
  filter: brightness(1.05) !important;
}

/* ===== item__price ===== */
.item__price span {
  display: inline-flex;
  height: 20px;
  line-height: 20px;
}

.item__price .price-original {
  text-decoration: line-through;
  color: #999;
}

.item__price .price-t {
  margin-left: 0;
  max-width: 44px;
  overflow: hidden;
}

.item__price .price-unit {
  max-width: 44px;
  overflow: hidden;
}

.item__price .price-t,
.item__price .price-symbol,
.item__price .price-unit {
  color: #cc1e05 !important;
  font-weight: 400;
  font-size: 14px;
}

/* ===== border__arrow--right ===== */
.item--1b4s .border__arrow--right {
  position: relative;
  z-index: 0;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.item--1b4s .border__arrow--right::after {
  transform: rotate(-45deg);
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  z-index: 1;
  width: 60%;
  height: 60%;
  margin-top: 2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0.75;
}

/* ===== animation setting start ===== */
.build__wrap.wow {
  animation: 0.5s bounce-in-left both;
}

@keyframes bounce-in-left {
  from {
    transform: translateX(-30%);
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce-in-left-top {
  from {
    transform: translate(-50%, 0);
  }

  to {
    transform: translate(0, 0);
  }
}
/* ===== animation setting end ===== */

/* banner 表頭 */
.title__wrap {
  max-width: 960px;
  margin: 0.5% auto;
  padding: 0;
}

.title__wrap__img {
  margin: 0;
  height: 65px;
  border: 0;
  background: 50% 0% / auto auto no-repeat;
}
/* banner 表頭 end */

/* ===== item__push & item__btn background-color start ===== */
.item__btn {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5px;
}

.item__btn.btn__solid {
  border-radius: 2px;
}

.item__btn.btn__rounded--right {
  border-radius: 4px 20px 20px 4px;
}

.item__btn.btn__rounded {
  border-radius: 20px;
}

.item__push.bg__blue,
.item__btn.bg__blue {
  background: #3000b1;
  background: -webkit-linear-gradient(to right, #1a00ea, #3000b1, #1a00ea);
  background: linear-gradient(to right, #1a00ea, #3000b1, #1a00ea);
  /* background: -webkit-linear-gradient(90deg, #1A00EA -10%, #3000B1 105%);
  background: linear-gradient(90deg, #1A00EA -10%, #3000B1 105%); */
  border-radius: 20px;
  color: #fff;
  /* letter-spacing: 1.5px; */
}

.item__push.bg__green,
.item__btn.bg__green {
  background: #3ca55c;
  background: -webkit-linear-gradient(to right, #7fc313, #3ca55c, #7fc313);
  background: linear-gradient(to right, #7fc313, #3ca55c, #7fc313);
  /* background: -webkit-linear-gradient(90deg, #7fc313 -10%, #3ca55c 105%);
  background: linear-gradient(90deg, #7fc313 -10%, #3ca55c 105%); */
  border-radius: 20px;
  color: #fff;
  /* letter-spacing: 1.5px; */
}

.item__push.bg__red,
.item__btn.bg__red {
  background: #f01400;
  background: -webkit-linear-gradient(to right, #f07219, #f01400, #f07219);
  background: linear-gradient(to right, #f07219, #f01400, #f07219);
  /* background: -webkit-linear-gradient(90deg, #f07219 -10%, #f01400 105%);
  background: linear-gradient(90deg, #f07219 -10%, #f01400 105%); */
  border-radius: 20px;
  color: #fff;
  /* letter-spacing: 1.5px; */
}
/* ===== item__push & item__btn background-color end ===== */

/* ===== card--material (4px 的 border-radius) ===== */
.card--material .build__item {
  margin-top: 1%;
  margin-bottom: 1%;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.2);
}

/* ===== card--small-space (更小的 margin) ===== */
.card--small-space .build__item {
  margin-top: 0.4%;
  margin-bottom: 0.4%;
}

/* 過渡期宮格縮 */
.build--1260 {
  max-width: 960px !important;
}

.header__info--sm {
  max-width: 960px;
}

/* 因應有些價格命名使用 price-unit 來當價格，先將 max-width 拿掉 */
.item__price .price-unit {
  max-width: none;
}

/* =============== 共用 End =============== */