@charset "UTF-8";

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
}

body, div, dl, dt, dd, ul, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, figure {
  margin: 0;
  padding: 0;
}

iframe {
  width: 100%;
}

iframe, img {
  border: 0;
}

ul {
  list-style: none;
}

.clear {
  clear: both;
}

.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* 滾輪樣式（深色主題 + 綠色點綴） */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #0d1118;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(124, 207, 0, 0.35);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 207, 0, 0.5);
}

*::-webkit-scrollbar-thumb:active {
  background: rgba(124, 207, 0, 0.6);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 207, 0, 0.35) #0d1118;
}

a {
  text-decoration: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

.block {
  display: block;
}

.t-align-center {
  text-align: center;
}

.t-align-left {
  text-align: left;
}

.w100 {
  width: 100%;
}

.w90 {
  width: 90%;
}

.w80 {
  border-radius: 30px 0 0 30px;
  background-color: #f89c00;
  width: 80%;
}

.w70 {
  width: 70%;
}

.w60 {
  width: 60%;
}

.w55 {
  width: 55%;
}

.w50 {
  width: 50%;
}

.w40 {
  width: 40%;
}

.w30 {
  width: 30%;
}

.w25 {
  width: 25%;
}

.w20 {
  width: 20%;
}

.w15 {
  width: 15%;
}

.w10 {
  width: 10%;
}

.w9 {
  width: 9%;
}

.w8 {
  width: 8%;
}

.w7 {
  width: 7%;
}

.w6 {
  width: 6%;
}

.w5 {
  width: 5%;
}

.w4 {
  width: 4%;
}

.m_10 {
  margin-bottom: 10px;
}

.m_20 {
  margin-bottom: 20px;
}

.m_30 {
  margin-bottom: 30px;
}

.m_40 {
  margin-bottom: 40px;
}

.m_50 {
  margin-bottom: 50px;
}

.m_60 {
  margin-bottom: 60px;
}

.m_70 {
  margin-bottom: 70px;
}

.m_80 {
  margin-bottom: 80px;
}

.m_90 {
  margin-bottom: 90px;
}

.m_170 {
  margin-bottom: 170px;
}

.m_180 {
  margin-bottom: 180px;
}

.m_250 {
  margin-bottom: 250px;
}

.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.justify-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.items-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.col-1 {
  -ms-flex: 0 0 8.333333%;
  -webkit-box-flex: 0;
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}

.col-2 {
  -ms-flex: 0 0 16.666667%;
  -webkit-box-flex: 0;
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-3 {
  -ms-flex: 0 0 25%;
  -webkit-box-flex: 0;
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  -ms-flex: 0 0 33.333333%;
  -webkit-box-flex: 0;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-5 {
  -ms-flex: 0 0 41.666667%;
  -webkit-box-flex: 0;
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-6 {
  -ms-flex: 0 0 50%;
  -webkit-box-flex: 0;
  flex: 0 0 50%;
  max-width: 50%;
}

.col-7 {
  -ms-flex: 0 0 58.333333%;
  -webkit-box-flex: 0;
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-8 {
  -ms-flex: 0 0 66.666667%;
  -webkit-box-flex: 0;
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-9 {
  -ms-flex: 0 0 75%;
  -webkit-box-flex: 0;
  flex: 0 0 75%;
  max-width: 75%;
}

.col-10 {
  -ms-flex: 0 0 83.333333%;
  -webkit-box-flex: 0;
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.col-11 {
  -ms-flex: 0 0 91.666667%;
  -webkit-box-flex: 0;
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
}

.col-12 {
  -ms-flex: 0 0 100%;
  -webkit-box-flex: 0;
  flex: 0 0 100%;
  max-width: 100%;
}

.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    -webkit-box-flex: 1;
    flex-grow: 1;
    max-width: 100%;
  }
  .row-cols-md-1 > * {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .row-cols-md-2 > * {
    -ms-flex: 0 0 50%;
    -webkit-box-flex: 0;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .row-cols-md-3 > * {
    -ms-flex: 0 0 33.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .row-cols-md-4 > * {
    -ms-flex: 0 0 25%;
    -webkit-box-flex: 0;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .row-cols-md-5 > * {
    -ms-flex: 0 0 20%;
    -webkit-box-flex: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }
  .row-cols-md-6 > * {
    -ms-flex: 0 0 16.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-auto {
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }
  .col-md-1 {
    -ms-flex: 0 0 8.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-md-2 {
    -ms-flex: 0 0 16.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-3 {
    -ms-flex: 0 0 25%;
    -webkit-box-flex: 0;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    -ms-flex: 0 0 33.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-5 {
    -ms-flex: 0 0 41.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-md-6 {
    -ms-flex: 0 0 50%;
    -webkit-box-flex: 0;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-7 {
    -ms-flex: 0 0 58.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-md-8 {
    -ms-flex: 0 0 66.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-9 {
    -ms-flex: 0 0 75%;
    -webkit-box-flex: 0;
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-md-10 {
    -ms-flex: 0 0 83.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-md-11 {
    -ms-flex: 0 0 91.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-md-12 {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (min-width: 992px) {
  .col-lg {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    -webkit-box-flex: 1;
    flex-grow: 1;
    max-width: 100%;
  }

  .row-cols-lg-1>* {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-cols-lg-2>* {
    -ms-flex: 0 0 50%;
    -webkit-box-flex: 0;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row-cols-lg-3>* {
    -ms-flex: 0 0 33.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row-cols-lg-4>* {
    -ms-flex: 0 0 25%;
    -webkit-box-flex: 0;
    flex: 0 0 25%;
    max-width: 25%;
  }

  .row-cols-lg-5>* {
    -ms-flex: 0 0 20%;
    -webkit-box-flex: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }

  .row-cols-lg-6>* {
    -ms-flex: 0 0 16.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-auto {
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .col-lg-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .col-lg-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==============================
   Extra large devices (≥1200px)
   ============================== */
@media (min-width: 1200px) {
  .col-xl {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    -webkit-box-flex: 1;
    flex-grow: 1;
    max-width: 100%;
  }

  .row-cols-xl-1>* {
    -ms-flex: 0 0 100%;
    -webkit-box-flex: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-cols-xl-2>* {
    -ms-flex: 0 0 50%;
    -webkit-box-flex: 0;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row-cols-xl-3>* {
    -ms-flex: 0 0 33.333333%;
    -webkit-box-flex: 0;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row-cols-xl-4>* {
    -ms-flex: 0 0 25%;
    -webkit-box-flex: 0;
    flex: 0 0 25%;
    max-width: 25%;
  }

  .row-cols-xl-5>* {
    -ms-flex: 0 0 20%;
    -webkit-box-flex: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }

  .row-cols-xl-6>* {
    -ms-flex: 0 0 16.666667%;
    -webkit-box-flex: 0;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-xl-auto {
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }

  .col-xl-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  .col-xl-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-xl-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-xl-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-xl-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-xl-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-xl-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-xl-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .col-xl-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  .col-xl-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
body {
  color: #fff;
  font-family: "flex", 微软雅黑;
  font-size: 100%;
  position: relative;
  overflow-x: hidden;
  background: #0A0E14;
  background-image: url(../images/bg.png);
  background-size: cover;
}

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin: auto;
  position: relative;
}

.md .md-modal {
  max-width: 660px;
  width: calc(100vw - 100px);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.80) 0%, rgba(26, 31, 46, 0.60) 100%);
  backdrop-filter: blur(10px);
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  visibility: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  -webkit-box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.3);
}

.alert-md .md-modal{
  max-width: 375px;
}

.md .md-modal .md-content {
  position: relative;
  margin: auto;
}

.md .md-modal .md-content video {
  width: 100%;
  height: 100%;
}

.md .md-close {
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 0;
  font-size: 30px;
  line-height: 30px;
  visibility: hidden;
}

.md-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  visibility: hidden;
  top: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  background: #16161691;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.md.active .md-modal {
  visibility: visible;
}

.md.active .md-overlay {
  opacity: 1;
  visibility: visible;
}

.md.active .md-close {
  visibility: visible;
  right: 20px;
  z-index: 1001;
}




.cm {
  position: sticky;
  top: 300px;
  left: 0;
  z-index: 9;
}

.cm a {
  display: block;
}

.img-change img:last-of-type {
  display: none;
}

@media (max-width: 500px) {
  .img-change img:first-of-type {
    display: none;
  }

  .img-change img:last-of-type {
    display: inline-block;
  }
}

.gotop {
  position: fixed;
  bottom: 10%;
  right: 20px;
  z-index: 9;
  display: none;
}

.gotop a {
  width: 40px;
  height: 40px;
  color: #9AE600;
  border-radius: 14px;
  border: 1px solid rgba(124, 207, 0, 0.30);
  background: linear-gradient(90deg, rgba(124, 207, 0, 0.20) 0%, rgba(124, 207, 0, 0.10) 100%);
  background-size: cover;
  display: block;
  position: relative;
}

.gotop a:before {
  content: "\f106";
  color: #9AE600;
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-family: FontAwesome;
  font-weight: 400;
  font-style: normal;
}

.gotop a:hover {
  background: linear-gradient(90deg, rgba(124, 207, 0, 0.40) 0%, rgba(124, 207, 0, 0.20) 100%);
}

.gotop a:hover:before {
  color: #9AE600;
}

/* 浮動 TG 客服按鈕（右下角） */
.float-tg-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-tg-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.5);
  color: #fff;
}

.float-tg-btn svg {
  width: 24px;
  height: 24px;
}

.carousel {
  height: 400px;
}

.carousel .swiper-slide {
  background: #d2d2d2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
}



header .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  z-index: 100;
  padding: 15px;
}

header .container .menu ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
}

header .container .menu ul li a {
  color: #000;
  display: block;
  padding: 0 10px;
}

header .container .menu ul li a:hover {
  color: #007bff;
}

header .menu_mob {
  width: 100%;
  background: #d2d2d2;
  position: absolute;
  z-index: 100;
  display: none;
}

header .menu_mob ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  -ms-flex-direction: column;
  flex-direction: column;
}

header .menu_mob ul li {
  width: 70%;
  text-align: center;
}

header .menu_mob ul li a {
  border-radius: 30px;
  background: #000;
  color: #fff;
  display: block;
  padding: 10px;
  margin-bottom: 10px;
}

header .md-overlay {
  z-index: 99;
}


.menu_button {
  display: inline-block;
  position: relative;
  padding: 0.7rem 0.5rem;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: none;
}

.menu_button .menuicon {
  position: relative;
  width: 2rem;
  height: 0.2rem;
  background: #000;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 2.5rem;
}

.menu_button .menuicon:before,
.menu_button .menuicon:after {
  display: block;
  content: "";
  height: 0.2rem;
  width: 2rem;
  background: #000;
  position: absolute;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  border-radius: 1rem;
}

.menu_button .menuicon:before {
  top: 0.5rem;
}

.menu_button .menuicon:after {
  top: -0.5rem;
}

header .container {
  background: #d2d2d2;
}

.card {
  -webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.card .card_main {
  width: 100%;
  height: 100px;
  line-height: 100px;
  background: #d2d2d2;
  color: #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
  font-size: 2em;
  font-weight: bold;
}

.card .card_text {
  padding: 15px;
}

.flex-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

.flex-container li {
  width: calc(100% / 4 - 20px);
  background: #d2d2d2;
  color: #000;
  margin-right: calc(20px * 4 / 3);
  margin-bottom: 20px;
  line-height: 100px;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
}

.flex-container li:nth-child(4n) {
  margin-right: 0;
}


footer {
  text-align: center;
  font-size: 1.25em;
  padding: 20px 0;
}


@media (max-width: 500px) {
  .md .md-modal {
    width: calc(100vw - 45px);
  }


  .flex-container li {
    width: 100%;
    margin-right: 0;
  }

  .ranking .ranking_table table td {
    font-size: 0.8em;
  }
}



.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== 左側 sidebar：桌機版 ===== */
.sidebar {
  width: 256px;
  /* 展開寬度 */

  /* border-right: 1px solid #1b2130; */
  transition: width 0.2s ease;
  overflow: hidden;
}


@media (max-width:768px) {

  .sidebar {
    background: #0A0E14;
  }
}

.sidebar.collapsed {
  width: 64px;
  /* 收合只剩 icon 寬度 */
}

.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 16px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.menu {
  padding: 8px 6px;
}

.menu .item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfd3e6;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(124, 207, 0, 0.0);

}

.menu .item.active,
.menu .item:hover {
  background: #111827;
  color: #9AE600;
  border-radius: 14px;
  border: 1px solid rgba(124, 207, 0, 0.30);
  background: linear-gradient(90deg, rgba(124, 207, 0, 0.20) 0%, rgba(124, 207, 0, 0.10) 100%);
  backdrop-filter: blur(10px);
}

.menu .item2 {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cfd3e6;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(124, 207, 0, 0.0);

}



.menu .icon {
  flex-shrink: 0;
}

.menu .text {
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 收合時只顯示 icon，隱藏文字 */
.sidebar.collapsed .menu .text {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;

}

/* ===== 右側內容：永遠吃剩下全部寬度 ===== */
.content {
  flex: 1;
  /* ★ 右邊永遠視為 100% 剩餘空間 */
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #111827;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 右邊會員按鈕 */
.topbar-member {
  margin-left: auto;
  /* 把它推到最右邊 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.topbar-member .icon img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* 懸浮卡片：預設隱藏 */
.member-card {
  position: absolute;
  top: 100%;
  /* 在 topbar 下方 */
  right: 16px;
  /* 靠右對齊 topbar */
  width: 260px;
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.80) 0%, rgba(26, 31, 46, 0.60) 100%);
  backdrop-filter: blur(5px);
  border-radius: 14px;
  color: #222;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}

/* 打開狀態：.topbar 加上一個 class 來控制 */
.topbar.member-open .member-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 裡面內容你可以照剛剛的樣式 */
.member-card-header {
  padding: 16px;

  text-align: center;
  color: #fff;
}

.avatar-big {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #B7FF4B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #000;
}

.member-card-actions {
  display: flex;
  padding: 10px 16px 16px;
  gap: 8px;

}

.btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #B7FF4B;
  color: #000;
}

.logout {
  background: none;
  color: #fff;
  border: #5a5a5a 1px solid !important;
}


.hamburger {
  background: none;
  border: 1px solid #4b5563;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 18px;
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page-body {
  padding: 20px 0;
}

.topbar-logo {
  display: none;
}

/* ===== 手機版：sidebar 變成抽屜，不影響內容寬度 ===== */
@media (max-width: 768px) {
  .topbar {
    background: #0A0E14;

  }

  .topbar-logo {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .topbar-member {
    position: relative;
    z-index: 10;
  }

  .topbar-member .member-email {
    display: none;
  }

  .topbar-member .text {
    display: none;
  }



  .layout {
    position: relative;
  }

  /* 右側內容照樣佔 100% 寬度，不用改 */
  .content {
    flex: 1;
  }

  .sidebar {
    position: fixed;
    /* or absolute 也可以 */
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 98;
    width: 256px;
    /* 手機就不玩 collapsed，只用抽屜 */
    transform: translateX(-100%);
    /* 預設藏在左邊 */
    transition: transform 0.25s ease;
  }

  /* 打開抽屜 */
  .sidebar.open {
    transform: translateX(0);
  }

  /* 手機下不需要縮到 64px，那是桌機才用的 */
  .sidebar.collapsed {
    width: 256px;
  }


}

/* 預設：LOGO 只顯示文字，不顯示小 icon */
.logo-icon {
  font-size: 18px;
  margin-right: 0;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transform: scale(0.5);
  transition: opacity 0.2s ease, width 0.2s ease, transform 0.2s ease;
}

/* 預設 LOGO 文字正常顯示 */
.logo-text {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

/* ✅ 桌機收合狀態：文字隱藏，小 ICON 出來 */
.sidebar.collapsed .logo-text {
  opacity: 0;
  transform: translateX(-8px);
  width: 0;
  overflow: hidden;
}

.sidebar.collapsed .logo-icon {
  opacity: 1;
  width: auto;
  transform: scale(1);
}


/* 組件 */
.common-title {
  font-weight: 500;
  font-size: 1.5em;
}

.common-box {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.80) 0%, rgba(26, 31, 46, 0.60) 100%);
  backdrop-filter: blur(5px);
  padding: 20px;
  font-size: 0.875em;
}

.common-box .teach {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.common-box .teach span:nth-child(1) {
  border-left: 1.5px solid transparent;
  display: block;
  padding: 5px 10px;
}

.border-img {
  border-image: linear-gradient(180deg, rgba(124, 207, 0, 1) 0%, rgba(124, 207, 0, 0.2) 100%);
  border-image-slice: 1;
}

.teach-btn {
  color: #000000;
  background-color: #B7FF4B;
  padding: 10px 20px;
  border-radius: 14px;
  display: block;
}

.teach-btn:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .common-box .teach {
    flex-direction: column;

  }
}

.common-box-title {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.common-icon {
  margin-right: 5px;
  padding: 8px;
  border-radius: 10px;
}

.icon-green {
  border: 1px solid #7ccf002b;
  background: #7ccf0010;
}

/* SVG 用 currentColor 時，用 color 控制為綠色 */
.icon-svg-green {
  color: #7ccf00;
}

.icon-orange {
  border: 1px solid #ff8c322b;
  background: #ff8c3210;
}

.icon-yellow {
  border: 1px solid #ffee0010;
  background: #ffee0020;
}

.common-box-body .form-group {

  display: flex;
  gap: 10px;
  flex-direction: column;

}

.form-group input {
  padding: 10px;
  background: #0d1118;
  border: 1px solid transparent;
  color: #fff;

  border-radius: 8px;
}

.form-group-inline {
  flex-direction: row;
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  background: #0d1118;
  border: 1px solid transparent;
}

.form-group-spacebetween {
  padding: 10px;
  border-radius: 8px;
  background: #0d1118;
  border: 1px solid transparent;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #252a36;
  border-radius: 999px;
  transition: 0.3s;
}

/* 小圓球 */
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

/* 開啟時的顏色 + 光暈 */
.switch input:checked+.slider {
  background: #7ccf00;
  box-shadow: 0 0 12px rgba(124, 207, 0, 0.9);
}

.switch input:checked+.slider::before {
  transform: translateX(20px);
}

select {
  background: #0d1118;
  border: 1px solid transparent;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 下拉展開後的每一項背景色 */
select option {
  background-color: #0d1118;
  color: #fff;
}

/* hover（滑鼠經過） */
select option:hover {
  background-color: #222a35;
}

/* 被選中但滑鼠不在上面的選項 */
select option:checked {
  background-color: #1a1f28;
}

/* disabled 的灰掉效果 */
select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

input:focus,
select:focus {
  border-color: #7ccf0080;
  box-shadow: 0 0 5px #7ccf0040;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #0d1118;
  border: 1px solid transparent;
  color: #fff;
  padding: 12px 40px 12px 12px;
  /* 右邊留空給箭頭 */
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  outline: none;
  position: relative;

  background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg"><path d="M4 7 L9 12 L14 7" stroke="%23ffffff66" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}


/* 底部按鈕容器 */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* 共用按鈕樣式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

/* 主按鈕：亮綠色、佔滿左邊 */
.btn-primary {
  flex: 1;

  background: #B7FF4B;
  color: #111;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(181, 255, 41, 0.5);
}

.btn-primary:hover {
  background: #c9ff5a;
  box-shadow: 0 0 22px rgba(181, 255, 41, 0.8);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(181, 255, 41, 0.6);
}

/* 次要按鈕：深色邊框透明底 */
.btn-secondary {
  min-width: 160px;
  background: transparent;
  color: #ffffffcc;
  border-color: #ffffff33;
}

.btn-secondary:hover {
  background: #ffffff08;
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-go {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #d64033;
  /* 基本紅 */
  color: #fff;
  font-size: 15px;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  font-weight: 500;
  transition: 0.2s;
}

/* hover → 更亮 */
.btn-go:hover {
  background: #e05246;
  box-shadow: 0 0 12px rgba(214, 64, 51, 0.5);
}

/* 點擊時微凹下去 */
.btn-go:active {
  background: #c8382c;
  transform: translateY(1px);
}

/* 讓 label 跟小綠點排在同一行 */
label.required {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* label 文字與小綠點間距 */
}

/* 小綠點本體 */
label.required::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #7ccf00;
  box-shadow: 0 0 6px rgba(124, 207, 0, 0.8);
}

.hidden {
  display: none !important;
}

/* 整體區塊 */


.plans-title {
  font-size: 20px;
  margin-bottom: 24px;
}

/* 卡片排成一排 */
.plans-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  /* 螢幕窄時自動換行 */
  justify-content: center;
  /* 水平置中 */
}

/* 單一方案卡片 */
.plan-card {
  background: #0c1018;
  border-radius: 18px;
  overflow: hidden;
  width: 290px;

  /* 每張寬度 */
  display: flex;
  padding: 20px 0;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid #b7ff4b79;
}

/* 上面的龍圖 */
.plan-avatar {

  text-align: center;

}

.plan-avatar img {
  max-width: 100%;
  height: auto;
}

/* 標題 + 價錢區，螢光綠底 */
.plan-header {
  background: #b5ff29;
  color: #111;
  text-align: center;
  padding: 10px 8px;
}

.plan-name {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 20px;
}

.plan-price-row {
  margin-top: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  margin-right: 4px;
}

/* 內容區 */
.plan-body {
  padding: 20px;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: start;
}

.plan-features li+li {
  margin-top: 4px;
}

/* 底部按鈕 */
.plan-footer {
  padding: 0 20px;
  width: 100%;
}

.plan-green {
  color: #B7FF4B;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #d64033;
  /* 基本紅 */
  color: #fff;
  font-size: 15px;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

/* hover → 更亮 */
.btn-plan:hover {
  background: #e05246;
  box-shadow: 0 0 12px rgba(214, 64, 51, 0.5);
}

/* 點擊時微凹下去 */
.btn-plan:active {
  background: #c8382c;
  transform: translateY(1px);
}

.plan-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.plan-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #9AE600;
  font-weight: bold;
  font-size: 1.25em;
}



/* 紀錄 */

.table-wrapper {
  overflow-x: auto;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;

}

.pay-table thead {
  background: #161b27;
}

.pay-table th,
.pay-table td {
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.pay-table th {
  color: #D1D5DC;
  font-weight: 500;
}

.pay-table tbody tr {
  background: #0d1118;
}

.pay-table tbody tr+tr {
  border-top: 1px solid #ffffff10;
}

.pay-record-hint {
  margin: 12px 0 0;
  padding: 0 12px;
  font-size: 13px;
  color: #FF8904;
}

.btn-cancel-order {
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cancel-order:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.btn-cancel-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .btn-cancel-order {
    flex-shrink: 0;
    width: auto;
    max-width: 80px;
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* --- 放款掛單簿 摘要卡片 --- */
.summary-card-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-card-group .summary-card:last-child {
  margin-bottom: 0;
}

.summary-card {
  border-radius: 14px;
  padding: 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.summary-card-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  opacity: 0.6;
}

.summary-card-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.summary-card-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.summary-card-yellow {
  background: linear-gradient(180deg, rgba(255, 238, 0, 0.15) 0%, rgba(255, 238, 0, 0.05) 100%);
  border: 1px solid rgba(255, 238, 0, 0.15);
}

.summary-card-yellow .summary-card-value {
  color: #facc15;
}

.summary-card-red {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.summary-card-red .summary-card-value {
  color: #f87171;
}

.summary-card-green {
  background: linear-gradient(180deg, rgba(124, 207, 0, 0.15) 0%, rgba(124, 207, 0, 0.05) 100%);
  border: 1px solid rgba(124, 207, 0, 0.25);
}

.summary-card-green .summary-card-value {
  color: #7ccf00;
}

.summary-card-orange {
  background: linear-gradient(180deg, rgba(255, 140, 50, 0.15) 0%, rgba(255, 140, 50, 0.05) 100%);
  border: 1px solid rgba(255, 140, 50, 0.25);
}

.summary-card-orange .summary-card-value {
  color: #ff8c32;
}

.summary-card-empty {
  background: rgba(26, 31, 46, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  min-height: 120px;
}

/* 24小時放貸紀錄圖表 + 幣種利率 左右排版 */
.chart-box {
  height: 100%;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

@media (min-width: 768px) {
  .chart-container {
    height: 360px;
  }
}

.currency-rate-box {
  height: 100%;
}

.currency-rate-table-wrapper {
  overflow-x: auto;
}

/* 幣種利率、放款掛單中、放款狀態：桌機版 - 表頭固定，滾輪只在 tbody */
@media (min-width: 769px) {
  .currency-rate-table-wrapper {
    overflow: visible;
  }

  .currency-rate-table,
  .lending-orders-table,
  .lending-status-table {
    display: block;
    width: 100%;
  }

  .currency-rate-table thead,
  .lending-orders-table thead,
  .lending-status-table thead {
    display: block;
    background: #161b27;
  }

  .currency-rate-table thead tr,
  .lending-orders-table thead tr,
  .lending-status-table thead tr {
    display: flex;
  }

  .currency-rate-table thead th,
  .lending-orders-table thead th,
  .lending-status-table thead th {
    flex: 1;
    min-width: 0;
  }

  .currency-rate-table tbody,
  .lending-orders-table tbody,
  .lending-status-table tbody {
    display: block;
    max-height: 280px;
    overflow-y: auto;
  }

  .currency-rate-table tbody tr,
  .lending-orders-table tbody tr,
  .lending-status-table tbody tr {
    display: flex;
  }

  .currency-rate-table tbody td,
  .lending-orders-table tbody td,
  .lending-status-table tbody td {
    flex: 1;
    min-width: 0;
  }

  .currency-rate-table tbody,
  .lending-orders-table tbody,
  .lending-status-table tbody {
    max-height: 320px;
  }
}

/* 幣種利率、放款掛單中、放款狀態：手機版 - 卡片式，超過約 7 列可滾動 */
@media (max-width: 768px) {
  .currency-rate-table-wrapper {
    overflow-y: auto;
    max-height: 480px; /* 約 7 列卡片高度 */
  }

  .lending-orders-wrapper,
  .lending-status-wrapper {
    overflow-y: auto;
    max-height: 480px; /* 約 7 列卡片高度 */
  }
}

/* 幣種利率表標題 */
.currency-rate-header {
  width: 100%;
  justify-content: space-between;
}

.currency-rate-header .btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* 1日波動 正負顏色 */
.fluctuation-up {
  color: #22c55e;
}

.fluctuation-down {
  color: #ef4444;
}

/* --- 放款掛單簿 --- */
.lending-table-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.lending-table-header .lending-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.summary-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.summary-badge.summary-amount {
  background: rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.summary-badge.summary-rate {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.summary-dropdown {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pay-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.pay-table th .sort-icon {
  opacity: 0.6;
  font-size: 12px;
  margin-left: 2px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.status-b1 {
  background: rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.currency-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(75, 85, 99, 0.5);
  color: #d1d5dc;
}

/* --- 手機版：改成卡片式 --- */

@media (max-width: 768px) {
  .pay-table thead {
    display: none;
    /* 隱藏表頭 */
  }

  .pay-table,
  .pay-table tbody,
  .pay-table tr,
  .pay-table td {
    display: block;
    width: 100%;
  }

  .pay-table tr {
    background: #0d1118;
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .pay-table td {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #ffffff0f;
  }

  .pay-table td::after {
    content: attr(data-value);
  }

  .pay-table td > *:last-child,
  .pay-table td > span,
  .pay-table td > small {
    word-break: break-all;
    text-align: right;
    max-width: 65%;
  }

  .pay-table td:last-child {
    border-bottom: none;
  }

  /* 左邊欄位名稱（data-label） */
  .pay-table td::before {
    content: attr(data-label);
    color: #ffffff88;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 付款狀態欄右側對齊 */
  .pay-table td[data-label="付款狀態"] {
    align-items: center;
  }

  .pay-table td[data-label="付款狀態"] > span,
  .pay-table td[data-label="付款狀態"] > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}


.recommend-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.log-box {
  margin: 100px auto 0 auto;
  text-align: center;


}
.log-box img{
  display: block;
  margin: 0 auto;
}


/* Remember me / Forgot password row */
.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Checkbox + Text */
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffffaa;
  font-size: 14px;
}

/* 自訂 checkbox */
.remember input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ffffff33;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

/* 勾勾 */
.remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -3px;
  width: 4px;
  height: 12px;
  border-right: 2px solid #7ccf00;
  border-bottom: 2px solid #7ccf00;
  transform: rotate(45deg);
}

/* Forgot password link */
.forgot-link {
  color: #ffffff66;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
}

.forgot-link:hover {
  color: #ffffffaa;
}

/* Login button */
.btn-login {
  width: 100%;
  padding: 14px;
  background: #b5ff29;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
  display: block;
}

.btn-login:hover {
  background: #cfff48;
  box-shadow: 0 0 15px rgba(181, 255, 41, 0.4);
}

.btn-login:active {
  transform: translateY(1px);
}


.register-extra {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #ffffff88;
}

.register-extra a {
  color: #b5ff29;
  text-decoration: none;
  margin-left: 4px;
  transition: 0.2s;
}

.register-extra a:hover {
  color: #d0ff73;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* 留空間給眼睛 */
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  transition: 0.2s;
  user-select: none; /* 點擊不選字 */
}

.toggle-eye:hover {
  opacity: 1;
}

.invite-box {
  padding: 12px;
  background: #0d1118;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.invite-box:hover {
  background: #131823;
}

/* 忘記密碼 - 驗證碼區塊響應式 */
.verify-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.verify-code-row input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 1200px) {
  .verify-code-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.order-info {
  background: #111;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
}

.order-info div {
  margin-bottom: 8px;
}

#order-address {
  word-break: break-all;
  background: #1c1c1c;
  padding: 10px;
  border-radius: 8px;
  display: block;
}

.status.pending {
  color: orange;
  font-weight: bold;
}

.status.paid {
  color: #00c853;
  font-weight: bold;
}

.status.expired {
  color: #ff5252;
  font-weight: bold;
}

.address-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  word-break: break-all;
}

.address-full {
  font-size: 12px;
  color: #ddd;
}

.copy-btn {
  background: #0ea5e9;
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.status.pending { color: orange; font-weight: 600; }
.status.paid { color: #00c853; font-weight: 600; }
.status.expired { color: #ff5252; font-weight: 600; }
.status.cancelled { color: #9ca3af; font-weight: 600; }
.status.refund-pending { color: #f59e0b; font-weight: 600; }
.status.refunded { color: #9ca3af; font-weight: 600; }
.status.refund-cancelled { color: #6b7280; font-weight: 600; text-decoration: line-through; }

.btn-refund-order {
  padding: 3px 10px;
  font-size: 0.78em;
  background: transparent;
  border: 1px solid #f59e0b;
  color: #f59e0b;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-refund-order:hover { background: rgba(245,158,11,0.12); }
.btn-refund-order:disabled { opacity: 0.5; cursor: not-allowed; }
.status.refund-pending { color: #f59e0b; font-weight: 600; }
.status.refunded { color: #9ca3af; font-weight: 600; }
.status.refund-cancelled { color: #6b7280; font-weight: 600; text-decoration: line-through; }

.address-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}

.address-text {
  font-size: 12px;
  color: #ddd;
}

.copy-icon {
  background: transparent;
  border: 1px solid #0ea5e9;
  color: #0ea5e9;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.2s;
}

.copy-icon:hover {
  background: #0ea5e9;
  color: white;
}

/* ─── 推薦好友頁 RWD ─── */
@media (max-width: 768px) {
  .recommend-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #invite-link.invite-box {
    font-size: 0.78em;
    word-break: break-all;
  }

  .form-group #copy-link-btn,
  .form-group #withdraw-btn {
    width: 100%;
  }

  /* 提領紀錄 / 佣金明細 table 右側長文字不跑版 */
  .pay-table td {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

/* Duration Pills */
#buy-duration-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}
.duration-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  gap: 4px;
}
.duration-pill:hover {
  border-color: rgba(154,230,0,0.5);
  background: rgba(154,230,0,0.06);
}
.duration-pill.active {
  border-color: #9AE600;
  background: rgba(154,230,0,0.12);
}
.duration-days {
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
}
.duration-price {
  font-size: 0.82em;
  color: #9AE600;
}
.duration-pill.active .duration-days {
  color: #9AE600;
}

/* 覆蓋 lity.css 對 .md-close 的影響 */
.md .md-close {
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* ── Buy Modal Step 2 ── */
.confirm-summary-card {
  background: rgba(154, 230, 0, 0.05);
  border: 1px solid rgba(154, 230, 0, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.confirm-row-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  margin-top: 2px;
}
.confirm-label {
  color: #9ca3af;
  font-size: 0.88em;
}
.confirm-value {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.92em;
}
.confirm-price-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
  margin-top: 2px;
}
.confirm-price-main {
  color: #9AE600;
  font-weight: 700;
  font-size: 1.15em;
}
.confirm-price-final {
  color: #9AE600;
  font-weight: 700;
  font-size: 1.15em;
  display: block;
  margin-top: 2px;
}

/* Promo Section */
.promo-section {
  margin-bottom: 14px;
}
.promo-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.promo-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.88em;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
.promo-input-row input:focus {
  border-color: rgba(154,230,0,0.5);
}
.promo-input-row input::placeholder {
  color: #6b7280;
}
.btn-promo-apply {
  padding: 9px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 0.85em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-promo-apply:hover {
  background: rgba(154,230,0,0.1);
  border-color: rgba(154,230,0,0.4);
  color: #9AE600;
}
.btn-promo-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Google 登入按鈕 */
.btn-google {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
  margin-top: 4px;
}
.btn-google:hover {
  background: #f1f1f1;
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}
.btn-google:active {
  transform: translateY(1px);
}

/* Google 登入分隔線 */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #6b7280;
  font-size: 0.85em;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
