/*======================================
//--//-->   STYLES 共用class
======================================*/

body {
  font-family: 'Poppins', '微軟正黑體', 'Arial', sans-serif;
  color: #555555;
  background-repeat: repeat;
  background-position: center;
  background-attachment: scroll;
  display: flex; /* 使用 Flexbox 佈局 */
  min-height: 100vh; /* 最小高度為視窗高度 */
  flex-direction: column; /* 子元素由上到下排列 */
  justify-content: space-between;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #a0753e;
}

a {
  color: #a0753e;
  transition: all 0.5s ease;
}
a:hover {
  color: #61789a;
  text-decoration: none;
}

label {
  display: block;
}

/* 表格內文自動換行 */
.custom-table td,
.custom-table li {
    word-break: break-all; /* 中文英文數字都可以強制斷行 */
    word-wrap: break-word; /* 保險寫法，支援性更好 */
    white-space: normal; /* 避免 nowrap 撐開 */
}

/*===  遊戲內開關閉紐  ===*/

.btn_close {
    width: 22px;
    height: 22px;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 99999; /* 提到最上 */
}

.btn_close a {
  width: 100%;
  height: 100%;
  background: url(../img/btn_close.png) no-repeat;
  display: block;
}

.btn_close a:hover {
  background-position: 0 bottom;
}

/*===  天標 NavPills  ===*/

.navbar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.nav-pills-a.nav-pills .nav-link {
  color: #000000;
  position: relative;
  font-weight: 600;
}
.nav-pills-a.nav-pills .nav-link.active {
  background-color: transparent;
}
.nav-pills-a.nav-pills .nav-link.active:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: #03a9f4;
  z-index: 2;
}

/*===  天標 NAVBAR  ===*/

.text-brand {
  color: #000000;
  font-size: 2rem;
  font-weight: 600;
}

.navbar-default {
  transition: all 0.5s ease-in-out;
  background-color: #0a294f; /* Old browsers */
  background: -moz-linear-gradient(top, #0a294f 1%, #2d4a89 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #0a294f 1%, #2d4a89 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #0a294f 1%, #245683 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0a294f', endColorstr='#2d4a89',GradientType=0 ); /* IE6-9 */
  padding-top: 10px;
  padding-bottom: 10px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 1px 2px 15px rgba(100, 100, 100, 0.3);
}

.navbar-default .nav-search {
  color: #f5e183;
  font-size: 1.5rem;
}

.navbar-default.navbar-reduce {
  box-shadow: 1px 2px 15px rgba(100, 100, 100, 0.3);
}

.navbar-default.navbar-trans,
.navbar-default.navbar-reduce {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-bottom: 4px solid #f5e183;
}

.navbar-default.navbar-trans .nav-item,
.navbar-default.navbar-reduce .nav-item {
  position: relative;
  padding-right: 10px;
  padding-bottom: 8px;
  margin-left: 0;
}

.navbar-nav .nav-item a.nav-link {
  margin-bottom: 0.5rem;
}

.navbar-default.navbar-trans .nav-link,
.navbar-default.navbar-reduce .nav-link {
  font-size: 1.1rem;
  color: #f5e183;
  letter-spacing: 0.03em;
  transition: all 0.1s ease-in-out;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  font-size: 16px;
}

.navbar-default.navbar-trans .nav-link:before,
.navbar-default.navbar-reduce .nav-link:before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 0;
  background-color: #f7e8c1;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: right;
  transform-origin: right;
  transition: opacity 0.2s ease-out 0.3s, -webkit-transform 0.2s ease-out;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out 0.3s;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out 0.3s, -webkit-transform 0.2s ease-out;
}

.navbar-default.navbar-trans .nav-link:hover,
.navbar-default.navbar-reduce .nav-link:hover {
  color: #000000;
}

.navbar-default.navbar-trans .nav-link:hover:before,
.navbar-default.navbar-reduce .nav-link:hover:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transform-origin: left;
  transform-origin: left;
}

.navbar-default.navbar-trans .show > .nav-link:before,
.navbar-default.navbar-trans .active > .nav-link:before,
.navbar-default.navbar-trans .nav-link.show:before,
.navbar-default.navbar-trans .nav-link.active:before,
.navbar-default.navbar-reduce .show > .nav-link:before,
.navbar-default.navbar-reduce .active > .nav-link:before,
.navbar-default.navbar-reduce .nav-link.show:before,
.navbar-default.navbar-reduce .nav-link.active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default.navbar-trans .nav-link:before {
  background-color: #f7e8c1;
}
.navbar-default.navbar-trans .nav-link:hover {
  color: #f5e183;
}

.navbar-default.navbar-trans .show > .nav-link,
.navbar-default.navbar-trans .active > .nav-link,
.navbar-default.navbar-trans .nav-link.show,
.navbar-default.navbar-trans .nav-link.active {
  color: #f5e183;
}

.navbar-default.navbar-reduce {
  transition: all 0.5s ease-in-out;
  padding-top: 3px;
  padding-bottom: 3px;
}

.navbar-default.navbar-reduce .nav-link {
  color: #f5e183;
}

.navbar-default.navbar-reduce .nav-link:before {
  background-color: #f7e8c1;
}

.navbar-default.navbar-reduce .nav-link:hover {
  color: #000000;
}

.navbar-default.navbar-reduce .show > .nav-link,
.navbar-default.navbar-reduce .active > .nav-link,
.navbar-default.navbar-reduce .nav-link.show,
.navbar-default.navbar-reduce .nav-link.active {
  color: #f5e183;
}

.navbar-default.navbar-reduce .navbar-brand {
  color: #000000;
}

.navbar-default .dropdown .dropdown-menu {
  border-top: 0;
  border-left: 4px solid #03a9f4;
  border-right: 0;
  border-bottom: 0;
  -webkit-transform: translate3d(0px, -40px, 0px);
  transform: translate3d(0px, -40px, 0px);
  opacity: 0;
  filter: alpha(opacity=0);
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.3, 0.65, 0.355, 1) 0s, opacity 0.31s ease 0s, height 0s linear 0.36s;
  margin: 0;
  border-radius: 0;
  padding: 12px 0;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item {
  padding: 12px 18px;
  transition: all 500ms ease;
  font-weight: 600;
  min-width: 220px;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item:hover {
  background-color: #ffffff;
  color: #03a9f4;
  transition: all 500ms ease;
}

.navbar-default .dropdown .dropdown-menu .dropdown-item.active {
  background-color: #ffffff;
  color: #03a9f4;
}

.navbar-default .dropdown:hover .dropdown-menu {
  -webkit-transform: translate3d(0px, 0px, 0px);
  transform: translate3d(0px, 0px, 0px);
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=1);
}

/*===  RWD 左側Menu  ===*/

.navbar-toggler {
  position: relative;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: 0;
}

.navbar-toggler span {
  display: block;
  background-color: #f5e183;
  height: 3px;
  width: 25px;
  margin-top: 4px;
  margin-bottom: 4px;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  left: 0;
  opacity: 1;
}

.navbar-toggler span:nth-child(1),
.navbar-toggler span:nth-child(3) {
  transition: -webkit-transform 0.35s ease-in-out;
  transition: transform 0.35s ease-in-out;
  transition: transform 0.35s ease-in-out, -webkit-transform 0.35s ease-in-out;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
  position: absolute;
  left: 12px;
  top: 10px;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  opacity: 0.9;
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
  height: 12px;
  visibility: hidden;
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
  position: absolute;
  left: 12px;
  top: 10px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
  opacity: 0.9;
}

/*===  Box-語系  ===*/

.box-collapse {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 200px;
  z-index: 1040;
  background-color: #ffffff;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  transition: all 0.6s ease;
}

.box-collapse .title-box-d {
  top: 30px;
  left: 60px;
  opacity: 0;
  transition: all 1s ease;
  transition-delay: 0.3s;
}

.box-collapse-wrap {
  opacity: 0;
  position: absolute;
  text-align: center;
  left: 30%;
  top: 6.5rem;
  bottom: 5rem;
  padding-left: 10%;
  padding-right: 10%;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  -webkit-transform: translateY(3rem);
  transform: translateY(3rem);
  transition: opacity 0.5s 0.5s ease, -webkit-transform 0.5s 0.5s ease;
  transition: transform 0.5s 0.5s ease, opacity 0.5s 0.5s ease;
  transition: transform 0.5s 0.5s ease, opacity 0.5s 0.5s ease, -webkit-transform 0.5s 0.5s ease;
}

.navbar-nav-language {
  padding-left: 10%;
  padding-right: 10%;
}

.navbar-nav-language .nav-link {
  padding-left: 3rem;
  padding-right: 2.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: all 0.1s ease-in-out;
}
.navbar-nav-language .nav-link:hover {
  border-bottom: #03a9f4 2px solid;
}
@media screen and (max-width: 575px) {
  .box-collapse {
    max-width: 180px;
  }
  .navbar-nav-language {
    padding-left: 0;
  }
}

.box-collapse-open .click-closed {
  visibility: visible;
}

.box-collapse-open .box-collapse {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  box-shadow: 0 0 65px rgba(0, 0, 0, 0.07);
  opacity: 1;
}

.box-collapse-open .box-collapse .title-box-d {
  -webkit-transform: translate(0);
  transform: translate(0);
  opacity: 1;
}

.box-collapse-open .box-collapse-wrap {
  -webkit-transform: translate(0);
  transform: translate(0);
  opacity: 1;
}

.box-collapse-closed .box-collapse {
  opacity: 0.7;
  transition-delay: 0s;
}

.box-collapse-closed .box-collapse .title-box-d {
  opacity: 0;
  transition-delay: 0s;
}

.box-collapse-closed .box-collapse .form-a {
  opacity: 0;
  transition-delay: 0s;
}

.click-closed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  z-index: 1035;
  background-color: #000000;
  opacity: 0.4;
}

.close-box-collapse {
  position: absolute;
  z-index: 1050;
  top: 2rem;
  font-size: 3.5rem;
  line-height: 1;
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.right-boxed {
  right: 4.2857rem;
}

/**** ↓↓ 暫時 調整 ↓↓ ****/
/* MB版  NAV 無語系及無漢堡 */
@media screen and (max-width: 992px) {
  .navbar-default.navbar-trans .nav-item {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .collapse:not(.show) {
    display: block;
  }
  .navbar-nav {
    flex-direction: initial;
    justify-content: flex-end;
    align-items: center;
  }
  .navbar-toggler {
    display: none;
  }
  .navbar-collapse {
    flex-basis: auto;
  }

  .btn.btn-b-n {
    display: none !important;
  }
  #btn-logout.btn-b-n {
    display: block !important;
  }

  .navbar-default .nav-search {
    display: none;
  }
  .box-collapse {
    display: none;
  }

  .btn-logout span {
    font-size: 24px;
    padding-left: 0.5rem;
  }
}

/*===  VIP 大主標(all)  ===*/

.vip-title {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}
.vip-title h2 {
  margin-bottom: 30px;
}
@media screen and (max-width: 991px) {
  .vip-title h2 {
    margin-bottom: 10px;
  }
}
.vip-title p {
  margin-bottom: 5px !important;
  margin-top: 10px;
  color: #bbb;
}

/*===  Footer  ===*/

footer {
  background: #153d66;
  font-size: 15px;
  text-align: center;
  padding: 20px 0 10px 0;
  margin-top: auto; /* 這會讓 footer 自動推到最下面*/
}
footer .copyright {
  color: #d3cba4;
}
footer a {
  color: #d3cba4;
}
footer a:hover {
  color: #fff;
}

footer span {
  color: #d3cba4;
  padding-left: 0.8rem;
}

/*===  Form Input  ===*/

.form-a label {
  color: #000000;
  position: relative;
}

.form-a select.form-control-lg:not([size]):not([multiple]) {
  height: 3.5rem;
}

.form-a .form-control {
  border-radius: 0;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 15px;
}

.form-a .form-control.form-control-a {
  height: 3.5rem;
}

.form-a .form-control:focus {
  box-shadow: none;
  box-shadow: 0 0 0 0.2rem rgba(2, 166, 242, 0.2);
  border-color: rgba(2, 166, 242);
}

.form-b .form-control {
  color: #495057;
}

/* 浮動標籤的背景透明 */
.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
  background-color: transparent !important;
}

/* 浮動標籤跟內容的距離微調 */
.form-floating > label {
  padding: 0.85rem 0.75rem;
}

.form-floating > #inputGift.form-control,
.form-floating > #inputGift.form-control-plaintext,
.form-floating > #inputGift.form-select {
  overflow-y: hidden !important;
}

/* 下拉式選單的基本樣式 */
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  appearance: none;
  border-radius: 8px; /* 保留圓角 */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 調整浮動標籤與選單內容的距離 */
.form-floating > label {
  padding: 0.85rem 0.75rem;
}

/* 下拉選單的高度與輸入框一致 */
.form-floating > .form-select {
  height: calc(3.5rem + calc(var(--bs-border-width) * 2));
  min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
  line-height: 1.25;
}

/*======================================
//--//-->   BUTTON
======================================*/

.btn {
  transition: 0.5s ease;
}
.btn.btn-yes,
.btn.btn-in,
.btn.btn-copy,
.btn.btn-teach,
.btn.btn-out,
.btn.btn-submit {
  color: #ffffff;
  width: 100%;
  font-size: 20px;
  margin-bottom: 10px;
  padding: 1rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease-out;
  transition-behavior: normal;
  transition: transform 0.1s ease;
}

.btn.btn-yes,
.btn.btn-in,
.btn.btn-teach,
.btn.btn-copy {
  background: rgb(243, 226, 199); /* Old browsers */
  background: -moz-linear-gradient(top, rgba(243, 226, 199, 1) 0%, rgba(193, 158, 103, 1) 50%, rgba(233, 212, 179, 1) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgba(243, 226, 199, 1) 0%, rgba(193, 158, 103, 1) 50%, rgba(233, 212, 179, 1) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(
    to bottom,
    rgb(249, 225, 187) 0%,
    rgba(193, 158, 103, 1) 50%,
    rgb(230, 200, 153) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
}
.btn.btn-out {
  background: rgb(243, 226, 199); /* Old browsers */
  background: -moz-linear-gradient(top, rgb(239, 238, 236) 0%, rgb(169, 168, 166) 50%, rgb(199, 199, 199) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgb(239, 238, 236) 0%, rgb(169, 168, 166) 50%, rgb(199, 199, 199) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgb(239, 238, 236) 0%, rgb(169, 168, 166) 50%, rgb(199, 199, 199) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
}
.btn.btn-yes:hover,
.btn.btn-in:hover,
.btn.btn-copy:hover,
.btn.btn-teach:hover,
.btn.btn-out:hover {
  background: rgb(243, 226, 199); /* Old browsers */
  background: -moz-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
  color: #fff;
}

.btn-submit {
  background: rgb(243, 226, 199); /* Old browsers */
  background: -moz-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
}

.btn-submit:hover {
  box-shadow: rgba(37, 44, 97, 0.1) 0 0px 10px 0, rgba(93, 100, 148, 0.1) 0 4px 6px 0;
  color: #fff;
}

.btn.focus,
.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0rem rgba(0, 123, 255, 0.25);
}

.btn-submit:focus {
  outline: none;
  box-shadow: none;
}

.btn-submit {
  display: inline-block;
  transition: transform 0.1s ease;
  border: #fff;
}

.btn-submit:active {
  transform: scale(0.96);
  color: #fff !important;
}

.btn-verify {
  color: #ffffff;
  margin: 1rem 2rem;
  font-size: 20px;
  margin-bottom: 10px;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease-out;

  width: 130px;
  height: 130px;
  border-radius: 50%;
  font-size: 1rem;

  background: rgb(243, 226, 199); /* Old browsers */
  background: -moz-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgb(187, 209, 249) 0%, rgb(103, 131, 193) 50%, rgb(153, 177, 230) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
}

.btn-verify i {
  font-size: 2rem;
}

.btn-verify {
  display: inline-block;
  transition: transform 0.1s ease;
  border: #fff;
}

.btn-verify:active {
  transform: scale(0.96);
  border: none;
  color: #fff !important;
}

.btn-verify:focus,
.btn-verify:hover {
  color: #fff !important;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: rgb(103, 131, 193);
  border-color: rgb(103, 131, 193);
}

.page-link {
  color: rgb(103, 131, 193);
}

/*語系*/
.btn.btn-b-n {
  background-color: rgba(3, 169, 244, 0);
  color: #f5e183;
  border-radius: 5px;
  font-size: 22px;
}
.btn.btn-b-n:hover {
  background-color: #f5e183;
  color: #18416b;
}

/*===  BTN 回頂部  ===*/

.back-to-top {
  position: fixed;
  display: none;
  background: #ccb16f;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .navbar-default.navbar-trans .nav-item,
  .navbar-default.navbar-reduce .nav-item {
    margin-left: 15px;
  }
  .navbar-default .dropdown .dropdown-menu {
    border-top: 4px solid #03a9f4;
    border-left: 0;
    display: block;
    position: absolute;
    box-shadow: 0 2px rgba(17, 16, 15, 0.1), 0 2px 10px rgba(20, 19, 18, 0.1);
  }
  .box-collapse {
    width: 23%;
    max-width: 200px;
  }
  .intro .owl-theme .owl-dots {
    right: 200px;
  }
  .card-box-b:hover .img-b {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
  .text-brand {
    font-size: 1.8rem;
  }

  .tb-order th,
  .tb-order td {
    font-size: 16px;
  }
  .btn.btn-yes,
  .btn.btn-in,
  .btn.btn-out {
    font-size: 16px;
  }
}

@media screen and (max-width: 575px) {
  .vip-title h2 {
    margin-bottom: 0px;
    font-size: 24px;
  }
  .vip-title p {
    font-size: 15px;
  }
  .box-collapse .title-box-d {
    left: 35px;
  }

  .form-control-lg {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }
  .form-group,
  .form-a .form-control,
  .county,
  .district {
    font-size: 14px;
  }

  .btn.btn-teach {
    width: 46.333333% !important;
    font-size: 14px;
  }

  .ul-action {
    margin-block-start: 0.5em;
  }
  .ul-action li,
  .ul-notice li h6 {
    line-height: 25px;
    font-size: 14px;
  }
  .container hr {
    margin-top: 0.5rem;
  }
  .tb-order th,
  .tb-order td {
    font-size: 15px;
  }

  .line h4 {
    font-size: 1.2rem;
  }
  .line h4 span {
    border-bottom: none;
  }
  .line span {
    font-size: 1rem;
    border-bottom: 1px double #d6b181;
  }

  .btn.btn-yes {
    padding: 1rem 0rem;
  }
}

@media screen and (max-width: 380px) {
  .btn.btn-teach {
    width: 45.333333% !important;
    margin-right: 5px;
    font-size: 14px !important;
  }
}

/*===  備註小字  ===*/

.login-note2 {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #999999;
}

.login-note2 span {
  color: #b48444;
  /* border-bottom: 1px solid #d6b181; */
}

/*===  Section 區域  ===*/

section {
  position: relative;
  height: auto;
  line-height: 1.8rem;
  /* margin-top: 96px; */
  margin-top: 1rem;
}

.section-s {
  padding-top: 3.5rem;
  margin-bottom: 3rem;
}
@media screen and (max-width: 991px) {
  .section-s {
    padding-top: 0rem !important;
    padding: 0 1rem;
  }
}

.sec_01 .text_01.serial-contect-a,
.sec_01 .text_02.serial-contect-b {
  width: 60%;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .sec_01 .text_01.serial-contect-a,
  .sec_01 .text_02.serial-contect-b {
    width: 90%;
    text-align: left;
  }
}

/*===  登入遊戲Icon  ===*/

.card-box-b {
  position: relative;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-box-b .img-b {
  transition: 0.8s all ease-in-out;
}

.img-box-b {
  text-align: center;
}

.card-shadow {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-shadow:before {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-footer-c {
  text-align: center;
}

.index :hover {
  font-weight: bold;
}
.index a .card-footer-c {
  padding-top: 10px;
}

/* 領獎身分驗證&領取獎項按鈕 */

.top_button_vertify {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top_button {
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 991px) {
  /**** 登入頁 遊戲ICON ****/
  .section-s .col-md-3 {
    padding-left: 50px;
    padding-right: 50px;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
  }

  .index a .card-footer-c {
    font-size: 16px;
  }
}

@media screen and (max-width: 991px) {
  .index a .card-footer-c {
    font-size: 15px;
    margin-bottom: 2rem;
  }

  .top_button {
    display: flex;
    justify-content: space-evenly;
  }
}
/*===  Section_01 區域  ===*/

.text_01 {
  text-align: center;
}

.text_01.serial-contect-a {
  margin: auto;
}

.text_01.serial-contect-a {
  width: 70%;
  margin: auto;
  /* border-radius: 0px 8px 8px 8px; */
}

.text_02.serial-contect-b {
  width: 100%;
  margin: auto;
}

@media screen and (max-width: 992px) {
  .text_01.serial-contect-a,
  .text_02.serial-contect-b {
    width: 100%;
    text-align: justify;
  }
}

@media screen and (max-width: 768px) {
  .text_01.serial-contect-a,
  .text_02.serial-contect-b {
    width: 90%;
    padding: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .text_01.serial-contect-a,
  .text_02.serial-contect-b {
    width: 100%;
  }

  .top_button_vertify {
    flex-direction: column;
  }
}

.serial-contect-b {
  padding: 2rem;
  margin: 1rem;
  background: linear-gradient(135deg, transparent 15px, #f3f3f3 0), linear-gradient(45deg, transparent 15px, #004085 0);

  /* 垂直置中設定 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text_02 p {
  margin-bottom: 0;
}

.text_02 ul {
  margin-bottom: 0;
}

.btn_box {
  position: relative;
  display: flex;
  justify-content: center;
}

.sec_top {
  margin-top: 1rem;
}

/*===  Section_02 區域  ===*/

.sec_02 {
  margin-bottom: 5%;
}

.nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  justify-content: center;
}

.nav-link {
  cursor: pointer;
}

.nav-link i {
  display: none;
}

.nav-link.active i {
  display: inline;
}

.btn-id.active {
  background: rgb(170, 132, 71); /* Old browsers */
  background: -moz-linear-gradient(top, rgb(192, 167, 127) 0%, rgb(172, 135, 76) 50%, rgb(238, 203, 148) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top, rgb(192, 167, 127) 0%, rgb(172, 135, 76) 50%, rgb(238, 203, 148) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, rgb(223, 186, 127) 0%, rgb(177, 129, 51) 50%, rgb(230, 191, 129) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3e2c7', endColorstr='#e9d4b3',GradientType=0 ); /* IE6-9 */
  color: #ffffff;
}

/* 身分驗證_簡訊驗證 */
#idAndMoreUploadSection,
#passportUploadSection {
  display: none;
}

.form-control {
  border-radius: 8px;
}

.iti button:focus,
.iti input:focus {
  box-shadow: none;
  border-color: rgb(103, 131, 193);
  outline: none;
}

.form-control:focus {
  box-shadow: none;
  border-color: rgb(103, 131, 193);
  outline: none;
}

.tab_content {
  width: 70%;
  text-align: left;
  margin: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2rem 3rem;
  margin-top: 2rem;
}

.tab_content1 {
  width: 60%;
  text-align: left;
  margin: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2rem 3rem;
  margin-top: 2rem;
}

@media screen and (max-width: 992px) {
  .tab_content1,
  .tab_content {
    width: 100%;

    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
  }
}

.tab_content_banknum {
  width: 100%;
  text-align: left;
  margin: auto;
  /* border: 1px solid #ccc; */
  border-radius: 8px;
  padding: 1rem 0 0 0;
  /* padding: 1rem 2rem 0rem 2rem; */
}

.tab_content_banknum th {
  border-right: 1px solid #dee2e6;
  vertical-align: middle;
}

.tab_content_banknum td {
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  .tab_content_banknum {
    padding: 0rem;
    font-size: 0.9rem;
  }
}

.table_caption {
  margin: 1rem;
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
}
.table_caption img {
  width: 36px;
  border-radius: 5px;
  margin: 2px;
}

.row_d {
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: 0px;
  margin-left: 0px;
  text-align: center;
}

.row_d_column {
  flex-direction: column;
}

.btn-login {
  color: #fff;
  background-color: rgb(103, 131, 193);
  border-color: rgb(103, 131, 193);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 0rem;
  margin-left: 1rem;
}

.btn-upload {
  height: 2.5rem;
  color: #fff;
  background-color: rgb(103, 131, 193);
  border-color: rgb(103, 131, 193);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 0rem;
  margin-left: 0rem;
}

.btn-write {
  height: 2.5rem;
  color: #fff;
  background-color: #b48444;
  border-color: rgb(180, 132, 68);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 0rem;
  margin-left: 0rem;
}

.bi-chevron-right {
  opacity: 0.5;
}

#ujModal .btn.btn-ture:hover,
#ujModal .btn.btn-back:hover,
#ujModal .btn.btn-faq-r:hover,
#ujModal .btn.btn-faq-l:hover {
  background-color: #f4c191;
  color: #ffffff;
}

.btn-login:hover,
.btn-upload:hover {
  background-color: rgb(153, 177, 230);
  border-color: rgb(153, 177, 230);
}

.btn-write:hover {
  background-color: rgb(206, 160, 99);
  border-color: rgb(206, 160, 99);
}

@media screen and (max-width: 576px) {
  .btn-login,
  .btn-write,
  .btn-upload {
    /* margin: 0.8rem 0; */
    height: 2.5rem;
  }

  .login-note2 {
    margin-top: 0px;
  }

  .bi-chevron-right {
    display: none;
  }
}

#login_phone .form-floating > .form-control,
#login_phone .form-floating > .form-control-plaintext {
  padding: 1rem 0.75rem;
  width: 294px;
}

.tel_floating {
  flex-wrap: wrap;
}

#form-control_borderbottom .form-control {
  border-radius: 0px;
  border: 0;
  border-bottom: 1px solid #dee2e6;
}

#login_email {
  width: 294px;
}

#tabFooter {
  width: 100%;
  margin: 1rem auto;
  text-align: center;
  text-wrap: nowrap;
}

#tabFooter button {
  max-width: 25%;
  margin: auto;
  margin: 1rem;
  border-radius: 50px;
}

@media screen and (max-width: 768px) {
  #tabFooter button {
    max-width: 40%;
    margin: auto;
    margin: 1rem;
  }
}

@media screen and (max-width: 376px) {
  #tabFooter button {
    max-width: 40%;
    margin: auto;
    margin: 0.5rem;
  }
}

.modal-body {
  max-height: calc(100vh - 200px); /* 確保裁切視窗的內容不會超出視窗高度 */
  overflow-y: auto;
}

.upload-box {
  border: 2px dashed #ccc;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-box-big {
  border: 2px dashed #ccc;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  width: 100%;
  height: auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 576px) {
  .upload-box-big {
    min-height: 200px;
  }
}

.upload-box img {
  max-width: 100%;
  max-height: 100%;
}

.upload-note {
  font-size: 12px;
  color: #888;
  position: absolute;
  bottom: 5px;
  text-align: center;
  width: 100%;
}

@media screen and (max-width: 576px) {
  .upload-box {
    height: 200px;
    margin: 0.5rem 0;
  }
}

/* 完成表格 */
#finish-table2.tab_content,
#finish-table.tab_content {
  padding: 1.2rem;
}

.custom-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-bottom: 0px;
}

#finish-table2 .custom-table th,
#finish-table .custom-table th {
  width: 20%;
  vertical-align: middle;
  border: 1px solid #ccc;
}

#finish-table2 .custom-table td,
#finish-table .custom-table td {
  width: 80%;
}

#finish-table2 .table td,
#finish-table2 .table th,
#finish-table .table td,
#finish-table .table th {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  color: #555555;
}

span.t-wait {
  color: #b48444;
  font-weight: bold;
}

span.t-gray {
  color: #aaa;
  font-weight: bold;
}

span.t-none {
  color: #c23a3a;
  font-weight: bold;
}

span.t-dashed {
  text-decoration: underline;
  font-weight: bold;
}

@media screen and (max-width: 576px) {
  .custom-table {
    font-size: 0.9rem;
  }

  #finish-table2.tab_content,
  #finish-table.tab_content {
    padding: 0rem;
  }
  .custom-table th {
    font-size: 0.9rem;
    text-wrap: nowrap;
  }

  .t-small {
    font-size: 0.8rem;
    padding: 0.2rem;
  }
}

/* 檢視領獎身分資料 */
.alert_delete {
  display: flex;
  justify-content: space-between;
  width: 70%;
  margin-bottom: -2rem !important;
  font-size: 0.9rem;
}

.btn-delete {
  background-color: #e9ecef;
  color: #495057;
  font-size: 0.9rem;
}

.btn-delete:hover {
  background-color: #d6e1eb;
  color: #495057;
}

/* 領取獎像清單表格 */
.tab_content2 {
  width: 100%;
}

#list-table.tab_content {
  padding: 2rem 2rem 0 2rem;
  /* text-align: center; */
}

#list-table .table td,
#list-table .table th {
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  color: #555555;
  min-height: 2.5rem;
}

/* #list-table.tab_content_banknum .custom-table th:first-child {
  width: 20%;
  text-align: center;
} */

#list-table .table td:first-child {
  text-align: center;
}

#list-table .custom-table th:nth-child(2),
#list-table .custom-table th:nth-child(3),
#list-table .custom-table th:nth-child(4),
#list-table .custom-table th:nth-child(5) {
  width: 30%;
}

#list-table .custom-table th:nth-child(5) {
  width: 10%;
}

#profile .text_02 {
  width: 100%;
  text-align: left;
}

@media screen and (max-width: 768px) {
  /* 使表格自適應手機屏幕寬度 */
  #list-table.tab_content {
    width: 90%;
    padding: 0rem;
  }

  #profile .text_02 {
    width: 90%;
  }

  #list-table .custom-table th,
  #list-table .custom-table td {
    width: 100%;
    display: block;
    text-align: left;
    padding: 10px 0;
    border-top: 0px;
  }

  /* 偶數列淡藍色 */
  .table.custom-table tbody tr:nth-child(even) td {
    background-color: #f0f8ff !important;
  }

  #list-table .custom-table tr:last-child td:last-child {
    border-bottom: 0px;
  }

  #list-table .custom-table th {
    display: none;
  }

  #list-table .custom-table td {
    position: relative;
    padding-left: 40%;
  }

  /* 為每個 td 添加標籤 */
  #list-table .custom-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: bold;
    color: #555555;
    padding-left: 0.5rem;
  }

  /* 按鈕調整 */
  .btn-upload {
    margin-top: 8px;
  }

  .table-label {
    margin: 1rem;
  }

  #list-table .table td:first-child {
    text-align: left;
  }
}

@media screen and (max-width: 576px) {
  #list-table.tab_content {
    width: 100%;
    padding: 0rem;
  }

  .custom-table th {
    font-size: 0.9rem;
    text-wrap: wrap;
  }
}

/*====================================== 補充生日form的問題 ======================================*/
/* 偽浮動 label */
.form-floating-like {
  position: relative;
}

.form-floating-like input.form-control {
  min-height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem 0.25rem; /* 上方留空間給 label */
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-floating-like label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 1rem;
  color: #6c757d;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  background: #fff;
}

.form-floating-like input:focus + label,
.form-floating-like input:not(:placeholder-shown) + label {
  top: -0rem;
  left: 0.65rem;
  font-size: 0.75rem;
  padding: 0 0.25rem;
  background: transparent;
}

/* 原生 date input 樣式 */
input[type='date'].form-control {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  min-height: calc(3.5rem + 2px);
  line-height: 1.5;
  padding: 1rem 0.75rem 0.25rem;
  text-align: left;
}

input[type='date']::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  opacity: 0.6;
  cursor: pointer;
}

/* ── 針對 WebView / 模擬器微調 ── */
body.line-webview input[type='date'].form-control,
body.fb-webview input[type='date'].form-control,
body.game-webview input[type='date'].form-control {
  padding-top: 1.3rem; /* 微調上方空間 */
  padding-bottom: 0.25rem;
  font-size: 0.95rem;
}

body.line-webview .form-floating-like label,
body.fb-webview .form-floating-like label,
body.game-webview .form-floating-like label {
  top: 0.7rem;
  font-size: 0.95rem;
}

/* 設定證件上傳圖片高度不超過 */

#crop-image {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ------ 行動電話 (intl-tel-input) 特化 ------ */
.iti input.iti__tel-input,
.iti input.iti__tel-input[type='text'],
.iti input.iti__tel-input[type='tel'] {
    position: relative;
    z-index: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-right: var(--iti-right-hand-selected-country-padding);
    margin-right: 0;
    height: 58px;
}
/* 行動電話_偽浮動 label */
.form-floating-like input.form-control {
    min-height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem 0.25rem; /* 上方留空間給 label */
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* label 固定在左上角 */
.form-floating-like label {
    position: absolute;
    top: 0rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #6c757d;
    background: transparent;
    padding: 0 0.25rem;
    pointer-events: none;
}

/* 讓 iti wrapper 跟 form-control 一樣滿版 */
.form-floating-like .iti {
    width: 100%;
}

.form-floating-like .iti input.iti__tel-input {
    width: 100%;
}

.iti .iti__selected-dial-code {
    margin-top: 1rem;
}

.iti__arrow {
    margin-top: 1rem;
}

.iti__selected-country::before {
    content: '';
    border-right: 1px solid #ced4da;
    width: 3px;
    height: 50%;
    margin-top: 1rem;
}