.header {
	width: 100%;
	height: auto;
	position: relative;
}

.s-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid #eeeeee;
  position: absolute;
  top: 37px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 98%;
  max-width: 1600px;
  border-radius: 25px;
  box-shadow: 0px 0px 5px 0px hsla(0,0%,0%,0.1);
  transition: all 0.3s ease;
  padding-top: 5px;
  padding-bottom: 5px;
}

.s-bar.is-fixed {
  top: 0;
  position: fixed;
  max-width: 99%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header_bar {
  background-image: linear-gradient(90deg, rgba(255, 66, 0, 1.0) 0%, rgba(185, 0, 0, 1.0) 100%);
  height: 60px;
}

.header_bar a {
    text-decoration: none;
    color: #FFFFFF;
}

.header_bar .f2_1 {
    display: flex;
    justify-content: flex-end;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.header_bar .f_share {
  margin: 0px;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.header_bar .f_share li {
    margin: 0px;
    padding: 8px;
    list-style-type: none;
}

.header_bar .f_share a {
    display: block;
    height: 20px;
    text-indent: 25px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.header_bar .f_share .line {
    background-image: url(/images/pc/icon_svg/white/line.svg);
}

.header_bar .f_share .youtube {
    width: 20px;
    background-image: url(/images/pc/icon_svg/white/youtube.svg);
}

.header_bar .f_share .instagram {
    width: 20px;
    background-image: url(/images/pc/icon_svg/white/ig2.svg);
}

.header_bar .f_share .fb {
    width: 20px;
    background-image: url(/images/pc/icon_svg/white/fb-f.svg);
}

.header_bar .f_share .mail {
    background-image: url(/images/pc/icon_svg/white/email.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px auto;
}

.header_bar .f_share .phone {
    background-image: url(/images/pc/icon_svg/white/phone.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px auto;
    display: flex;
    align-items: center;
}

.attr_menu .menu_li {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 5px;
    padding-top: 5px;
    text-align: center;
}

.attr_menu .menu_li a {
    text-align: center;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    text-decoration: none;
}

.attr_menu .menu_li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #d31212;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.attr_menu .menu_li a:hover::after {
    width: 100%;
}

.attr_menu .menu_li a:hover {
    color: #d31212;
}

.attr_menu .menu_li h6 {
    font-size: 12px;
}

.attr_menu .menu_li li {
    padding: 10px;
}

.attr_menu .menu_li:nth-child(1n+2) {
    border-left-style: solid;
    border-left-width: 1px;
}

/* Fixed Right Buttons */
.fixed-right {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.fixed-btn {
  width: 65px;
  min-height: 65px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px 0 0 12px;
  text-align: center;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.fixed-btn a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}

.fixed-btn img {
  width: 65px;
  margin-bottom: 2px;
  transition: transform 0.3s;
}

.fixed-btn:not(.btn-social):hover {
    width: 80px;
    padding-right: 10px;
}

.fixed-btn iconify-icon { font-size: 32px; margin-bottom: 2px; }
.fixed-btn span { line-height: 1.2; }

.btn-cart { background-color: #d31212; }
.btn-course { background-color: #f39c12; }
.btn-map { background-color: #ffb800; }

.btn-social {
background-color: #ffc107;
width: 45px; /* 寬度約為上方按鈕的一半 */
height: auto;
padding: 15px 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
cursor: default; /* 取消社群按鈕的手型指標 (若需要) */
margin-top: 30px;
}

.btn-social a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-social img{
  width: 30px;  
  transition: transform 0.3s;
  cursor: pointer;
}
.btn-social img:hover{
 transform: translateY(-3px);
}
.btn-social a:first-child iconify-icon {
    background: transparent;
    color: #000;
    font-size: 28px;
    padding: 0;
    border-radius: 0;
}


@media (max-width: 1340px) {
  #header {
      width: 100%;
      position: relative;
  }
  .attr_menu {
      display: none !important;
  }
  #header .logo {
      margin-left: 60px;
  }
  .m_menu_icon {
    display: block;
  }
  .box_td, .box_tr {
    width: 100% !important;
  }
  .s-bar {
    position: fixed;
    max-width: 97%;
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .s-bar img{
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .header_bar {
      position: fixed;
      top: 0px;
      width: 100%;
      z-index: 2;
  }
  .header_bar .f_hide {
      display: none;
  }
  .attr_menu {
      display: none !important;
  }
  .shop_ban_h {
      height: 50px;
  }

}

@media screen and (max-width: 767px) {
  .fixed-right { display: none; }
}
