.csm-btn{
 background-image:url('../images/button1.png');
 background-repeat: no-repeat;
 background-position: center;
 background-size: contain;
}
.contact-btn{
 background-image:url('../images/button2.png');
 background-repeat: no-repeat;
 background-position: center;
 background-size: contain;
}
.csm-mbtn{
 background-image:url('../images/button_m_1.png');
 background-repeat: no-repeat;
 background-position: center;
 background-size: contain;
}
.contact-mbtn{
 background-image:url('../images/button_m_2.png');
 background-repeat: no-repeat;
 background-position: center;
 background-size: contain;
}
.btn-default{
  width: clamp(90px, 8vw, 121px);
  aspect-ratio: 121 / 265;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px 0 0 15px;
  text-decoration: none;
  color: #fff;

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-default:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

.btn-mdefault{
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 177px;
  height: 68px;
  display: flex;
  flex-direction: column;
  border-radius: 15px 15px 0 0;
}

.arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  top: 68%;
  position: relative;
}
.arrow svg {
  transform: translateX(-6px);
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.arrow svg {
  opacity: 0.7;
  animation: arrowPulse 1.8s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.arrow_m{
  display: flex;
  justify-content: center;
  align-items: ;
  height: ;
  top: 18%;
  position: relative;
  left: 30%;
}
.arrow_m svg {
  transform: translateX(-6px);
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.arrow_m svg {
  opacity: 0.7;
  animation: arrowPulse 1.8s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.btn-default:hover .arrow svg {
  transform: translateX(6px);
  opacity: 1;
}

@keyframes arrowPulse {
  0% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
}




.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;

  opacity: 1;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top svg {
  width: 70%;
  height: 70%;
}

.scroll-top circle {
  fill: #0d4553;
}

/* 顯示狀態 */
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover */
.scroll-top:hover {
  transform: translateY(-6px);
}

.scroll-top.show svg {
  animation: floatUp 1.6s ease-in-out infinite;
}

@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== 浮動按鈕 ===== */
.float-buttons {
  position: fixed;
  inset: auto 0 auto auto;
  top: auto;
  right: 0px;
  top: 60%;
  transform: scale(0.8) translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  right: -10px;
}

.float-buttons .btn {
  width: 90px;
  height: 120px;
  border-radius: 16px;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.hero-btns {	
  display:none;
}

.top-btn {
  width: 50px;
  height: 50px;
  border-radius: 50px;

  border-radius: 50%;
  background: #003366;
  font-size: 24px;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.top-btn.show {
    opacity: 1;
    pointer-events: auto;
	transform: translateY(0);
}

/* ===== 手機版 ===== */
@media (max-width: 810px) {
	.arrow {
	 height: 25px;
	}
   .arrow svg {
	 width: 24px;
   }
   .float-buttons {
     transform: translateY(-150%);
	 right: 0px;
   }
}
@media (max-width: 768px) {

  .float-buttons {
    position: fixed;
    inset: auto 45px 85px auto;
    z-index: 9999;
    pointer-events: auto;
  }

  .csm-btn,
  .contact-btn {
    width: 48%;
    height: 80px;
    border-radius: 14px;
  }

  .top-btn {
	width: 40px;
    height: 40px;
    pointer-events: none;
    transition: opacity .3s ease;
	position: absolute;
  }
 
  .hideBtn{
	display:none !important;
  }

  .hero-btns {	
    position: fixed; /* 絕對定位相對於 banner-mobile */
    bottom: 0;          /* 貼齊底部 */
    left: 50%;          /* 水平置中 */
    transform: translateX(-50%); /* 修正置中偏移 */
    display: flex;
    gap: 10px;          /* 按鈕間距，可調整 */
    padding-bottom: 0px; /* 距離底部的間距，可調整 */
    z-index: 10;        /* 確保按鈕在圖片上方 */
  }
}

.btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-bottom: 6px;
}

.top-btn svg {
  width: 26px;
  height: 26px;
  margin: 0;
}

.btn span {
  line-height: 1.2;
}


/* ===== 滑入動畫 ===== */
@keyframes slideIn {
  from {
    transform: translateX(120px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.float-buttons .btn {
  animation: slideIn .6s ease forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}

.float-buttons .btn:nth-child(1) { animation-delay: .1s; }
.float-buttons .btn:nth-child(2) { animation-delay: .25s; }
.float-buttons .btn:nth-child(3) { animation-delay: .4s; }

.float-buttons .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

