/* 容器架構：限制1600px並置中 */
.site-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
}
.header {
	width: 100%;
  position: fixed;
  z-index: 3;
  background-color: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0px 0px 5px 0px hsla(0, 0%, 0%, 0.1);
  top: 0px;
}
.full_menu_shop{
  max-width: 1600px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
#banner {
  padding-top: 80px;
  position: relative;  
}
.mod_logo{
  padding: 5px;
  text-align: center;
  display: block;
}
.mod_logo img{
  width: 200px;
  padding: 5px;
}
.mod_logo_m{
  display: none;
  padding: 10px;
  text-align: center;
}
.mod_logo_m img{
  width: 300px;  
}
.menu_bar{
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
  max-width: 1920px;
  padding-left: 20px;
  padding-right: 20px;
}
.menu_bar .logo{
  width: 200px;
  display: block;
}
.menu_bar .attr_menu{
  flex: 1;
  display: flex;
  align-items: center; 
  justify-content: center;
}
.menu_shop{
  margin-left: auto;
  margin-right: auto;
  text-align: right;
  padding: 10px;
  font-size: 14px;
}
.menu_shop a{
	text-decoration: none;
}
#m_menu_shop{
	display: none;
}
.shop_br{
	display: inline-block;
}
.shop_br a{
  color: #000000;
}
.attr_menu .menu_li{
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 5px;
	padding-top: 5px;
}
.attr_menu .menu_li>a{
  text-align: center;
  padding-bottom: 5px;
}
.attr_menu .menu_li>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #00A89E;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.attr_menu .menu_li>a:hover::after {
    width: 100%;
}
.attr_menu .menu_li h6{
	font-size: 12px;
}
.attr_menu .menu_li li{
	padding: 10px;
}
.sf-menu, .sf-menu * {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sf-menu li {
	position: relative;
}
.sf-menu ul {
	position: absolute;
	display: none;
	top: 100%;
	left: 0;
	z-index: 99;
}
.sf-menu > li {
	float: left;
}
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
	display: block;
}
.sf-menu ul ul {
	top: 0;
	left: 100%;
}
/*** DEMO SKIN ***/
.sf-menu {
	float: left;
	margin-bottom: 0em;
}
.sf-menu ul {
	box-shadow: 2px 2px 6px rgba(0,0,0,.2);
	min-width: 12em; /* allow long menu items to determine submenu width */
	*width: 12em; /* no auto sub width for IE7, see white-space comment below */
	background-color: rgba(0,0,0,0.70);
}
.sf-menu a {
  text-decoration: none;
  color: #083B4C;
  display: block;
  position: relative;
  font-size: 18px;
  font-weight: bold;
}
.sf-menu a:hover{
  color: #00A89E;
}

.sf-menu li ul li a {
	color: #FFFFFF;
	font-size: 16px;
}
.sf-menu li ul li >a:hover{
  color: #00B4B6;
}
.sf-menu li {
	white-space: nowrap; /* no need for Supersubs plugin */
	*white-space: normal; /* ...unless you support IE7 (let it wrap) */
	-webkit-transition: background .2s;
	transition: background .2s;
}
.sf-menu li.sfHover {
	color: #0054AD;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
	padding-right: 2.5em;
	*padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */
}
/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 1em;
	margin-top: -3px;
	height: 0;
	width: 0;
	/* order of following 3 rules important for fallbacks to work */
	border: 5px solid transparent;
	border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
	border-top-color: rgba(255,255,255,.5);
}
.sf-arrows > li > .sf-with-ul:focus:after,
.sf-arrows > li:hover > .sf-with-ul:after,
.sf-arrows > .sfHover > .sf-with-ul:after {
	border-top-color: white; /* IE8 fallback colour */
}
/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
	margin-top: -5px;
	margin-right: -3px;
	border-color: transparent;
	border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */
	border-left-color: rgba(255,255,255,.5);
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
	border-left-color: white;
}
.sf_arrow{
	background-position: right center;
	background-image: url(../../images/pc/arrow_top.png);
	background-repeat: no-repeat;
	margin-right: 10px;
	padding-right: 20px;
}

/* 手機選單-----------------------------------------*/
.m_menu_box{
	position: fixed;
	z-index: 3;
	width: 100%;
	height: 100%;
	display: none;
	top: 0px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}
/* 手機選單icon */
.m_menu_icon {
  width: 40px;
  height: 29px;
  background-size: 35px 25px;
  background-image: url(/images/mobile/menu_ban.svg);
  background-repeat: no-repeat;
  cursor: pointer;
  margin-top: 0px;
  background-position: center center;
  position: fixed;
  top: 10px;
  z-index: 4;
  display: none;
	left: 5px;
  background-color: hsla(0,0%,100%,0.80);
  border-radius: 4px;
  transition: all 0.5s ease 0s;
}
.m_menu_nav {
	width: 100%;
	height: 100%;
	padding-top: 80px;
	overflow-y: auto;
}
.m_menu_nav .nav {
  height: 40px;
  width: auto;
  font-size: 18px;
  padding-left: 10px;
  text-decoration: none;
  display: block;
  line-height: 38px;
  border-bottom: 1px solid #e1e1e1;
  color: #222222;
}
.m_menu_nav .arrow {
	height: 39px;
	width: 50px;
	float: right;
	background-image: url(/images/mobile/arr.png);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 15px auto;
	display: none;
}
.m_menu_nav .nav_class {
	margin: 0px;
	padding: 0px;
	display: none;
}
.m_menu_nav .nav_class li {
	padding-left: 30px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom-style: solid;
	border-bottom-width: 1px;
	font-size: 16px;
  border-bottom: 1px solid #e1e1e1;
}
.m_menu_nav .nav_class a {
  text-decoration: none;
  font-size: 16px;
  display: block;
  color: #252525;
}
.m_menu_nav .nav_class .class2 {
	padding-left: 40px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-bottom-style: solid;
	border-bottom-width: 1px;
	background-image: url(/images/mobile/arr3.png);
	background-repeat: no-repeat;
	background-position: 20px center;
	background-size: 10px auto;
  border-bottom: 1px solid #e1e1e1;
}

/* 購物與會員頂部選單 (menu_shop) 圓形黑底圖標與搜尋懸浮樣式 */
.menu_shop_wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
	flex-wrap: wrap;
}
.menu_shop_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #00a89e;
  color: #ffffff !important;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  z-index: 0;
}
.menu_shop_btn:hover {
	background-color: #333333;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	color: #ffffff !important;
}
.menu_shop_btn svg {
	width: 17px;
	height: 17px;
	stroke: #ffffff;
	stroke-width: 2.2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.menu_shop_btn .user_char {
	font-size: 15px;
	font-weight: bold;
	color: #ffffff;
	line-height: 1;
}
.menu_shop_badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background-color: #e53935;
	color: #ffffff !important;
	font-size: 11px;
	font-weight: bold;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	border: 1.5px solid #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
	box-sizing: border-box;
}
.menu_shop_search_box {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.menu_shop_search_dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 9999;
	display: none;
	background: #ffffff;
	padding: 6px 8px 6px 15px;
	border-radius: 24px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.18);
	border: 1px solid #d9d9d9;
	white-space: nowrap;
	align-items: center;
	box-sizing: border-box;
}
.menu_shop_search_box.active .menu_shop_search_dropdown {
	display: inline-flex;
}
.menu_shop_search_input {
	width: 200px;
	padding: 5px 8px 5px 5px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
	color: #333333;
	box-sizing: border-box;
}
.menu_shop_search_submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: #1a1a1a;
	color: #ffffff;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}
.menu_shop_search_submit:hover {
	background-color: #333333;
	transform: scale(1.05);
}
.menu_shop_search_submit svg {
	width: 14px;
	height: 14px;
	stroke: #ffffff;
	stroke-width: 2.2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* 置頂按鈕 (Back to Top Button) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: #083B4C;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(8, 59, 76, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  cursor: pointer;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(8, 59, 76, 0.5);
  color: #FFFFFF;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-line-btn {
  background-color: #06C755;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  text-decoration: none;
}
.nav-line-btn:hover {
  transform: translateY(-2px);
}

/* 桌面窄版（1201px - 1509px）：Logo 在左側上下垂直置中，右上為會員購物圖標，右下為選單（與附圖一致） */
@media screen and (min-width: 1201px) and (max-width: 1509px) {
  .menu_bar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo shop"
      "logo menu";
    align-items: center;
  }
  .menu_bar > div:first-child,
  .menu_bar > .header_logo_box {
    grid-area: logo;
    align-self: center;
    display: flex;
    align-items: center;
  }
  .menu_bar > .full_menu_shop {
    grid-area: shop;
    max-width: none;
    padding: 0;
    margin: 0;
    justify-self: end;
  }
  .menu_bar > .menu_bar_box {
    grid-area: menu;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
  }
  .menu_bar > .menu_bar_box .attr_menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

/* 桌面寬版（大於 1510px）：Logo 最左、選單置中、會員購物圖標最右，且上下置中 */
@media screen and (min-width: 1510px) {
  .menu_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .menu_bar > div:first-child,
  .menu_bar > .header_logo_box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  .menu_bar > .menu_bar_box {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu_bar > .menu_bar_box .attr_menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu_bar > .full_menu_shop {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
  }
}

/* 平板版（768px - 1200px）：.full_menu_shop 靠右 */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .full_menu_shop {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex;
    justify-content: flex-end;
  }
  .menu_shop {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
  }
  .menu_shop_wrap {
    justify-content: flex-end;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {

#header {
	width: 100%;
}
.attr_menu {
    display: none !important;
}
.m_menu_icon {
	display: block;
}
.mod_logo{
  display: none;
}
.mod_logo_m{
	display: block;
}
#header .logo {
	margin-left: 60px;
}
.menu_shop {
	width: 100%;
}
.menu_shop{
	width: 100%;
}

}

@media screen and (max-width: 768px) {
  .mod_logo{
    display: none;
  }
  .mod_logo_m{
    display: block;
  }
  .attr_menu {
    display: none !important;
  }
  .full_menu_shop {
    position: fixed !important;
    z-index: 3;
    top: 0px;
    box-shadow: 0px 0px 5px hsla(0,0%,0%,0.1);
    width: 100%;
  }
  .full_menu_shop {
    width: 100%;
    background-color: #FFFFFF;
  }
  .shop_ban_h{
    height: 60px;
  }
  .m_menu_icon {
    display: block;
  }
  .menu_bar {
    justify-content: center;
    margin-top: 60px;
  }
  #banner {
      padding-top: 0px;
  }
  .menu_shop{
  width: 100%;
  }
  .shop_br{
    display: none;
  }
  .header{
    position: relative;
    box-shadow: 0px 0px 0px 0px hsla(0,0%,0%,0.1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: hsl(0deg 0% 100% / 0%);
  }
  .menu_shop_search_dropdown {
    right: -5px;
    max-width: calc(100vw - 30px);
  }
  .menu_shop_search_input {
    width: 140px;
  }
  .nav-line-btn {
    padding: 5px 15px;
  }
  .nav-line-btn .nav-line-btn-text {
    display: none;
  }
  .nav-line-btn::after {
    content: "加 LINE 諮詢";
    font-size: 16px;
    font-weight: 700;
  }
  .mod_logo_m img {
    width: 200px;
  }

}
