@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');

body {
  margin: 0;
  padding: 0;
  height: 100%;
  opacity: 1;
  font-size: 24px;
  font-weight: 800;
  font-family: '微軟正黑體', 'MS UI Gothic', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: rgb(112, 112, 112);
  background-color: #00a400;
  position: relative;
}
img {
  width: 100%;
}
.mobileOnly {
  display: none;
}
ul {
  text-align: left;
  padding-left: 15px;
  font-size: 1.1rem;
  line-height: 1.8;
}
.noticeWrap,.noticeWrap a {
  color: white;
  text-align: center;
  width: 90%;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 50px;
}
h2,h3,p {
    margin: 0;
}
.content-main {
  background-color: #dff2e6;
  border-radius: 30px;
  margin-bottom: 20px;
  padding: 30px 80px;
}
.highlight {
  color: #DC2626;
  font-weight: 800;
}
.floating-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.floating-btn.show {
  opacity: 1;
  visibility: visible;
}
.section {
  width: 75%;
  margin: auto;
  padding: 40px 0;
}

/* 上下漂移 + 微幅旋轉 */
.floating {
  animation: floatUpDown 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 背景容器，固定在最下層 */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg,
    rgb(200, 80, 200),
    rgb(120, 100, 230),
    rgb(180, 230, 160),
    rgb(130, 230, 190)
  );
  background-size: 300% 300%;
}


.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  background-image: url('../image/gradient.png');
  opacity: .8;
}

.bg-noise {
    background-image: url('../image/texture.png');
    background-repeat: repeat;
    mix-blend-mode: soft-light;
    position: fixed; /* 改成 fixed 才能貼住視口 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* 放在背景下方 */
    pointer-events: none; /* 不擋住前景互動 */
}

.bg-circle {
    background-image: url('../image/circles.svg');
    background-repeat: repeat;
    background-size: cover;
    mix-blend-mode: lighten;
    position: fixed; /* 改成 fixed 才能貼住視口 */
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* 放在背景下方 */
}

/* 背景圖片自動填滿、不變形 */
.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none; /* 防止遮住互動元素 */
}

/* ========== Header ========== */

.logo-wrap {
  display: flex;
  justify-content: center;
  background-color: #fff;
}

.logo-wrap img {
  display: block;
  width: 120px;
  margin: 6px auto;
}


/* Header styles */
.header {
    /* background: linear-gradient(to right, #6366F1, #8B5CF6); */
    color: rgb(31, 0, 137);
    padding: 4rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.header-container {
    display: flex;
    position: relative;
    z-index: 10;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-self: center;
}

.header-image {
    width: 100%;
    max-width: 300px;
    padding: 0 2rem;
    display: block;
    margin: auto;
}

.header-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 
    -0.5px 0 currentColor,
     0.5px 0 currentColor,
     0   -0.5px currentColor,
     0    0.5px currentColor,
     0 2px 8px rgb(0 0 0 / 50%);
}

.header-subtitle {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 2rem;
    text-shadow: 
    -0.2px 0 currentColor,
     0.2px 0 currentColor,
     0   -0.2px currentColor,
     0    0.2px currentColor,
     0 2px 8px rgb(0 0 0 / 100%);
}

.banner img {
  width: 100%;
}

.btn-line.fixed {
    background-color: #02c742;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}
.btn-apply.fixed {
    background-image: linear-gradient(60deg, #ff8100, #fffa11, #ff8100);
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 50;
    color: #000;
}
.btn-line:hover,
.btn-apply:hover {
    filter: brightness(110%);
    transform: scale(1.1);
    transition: .2s;
}
.line-button {
  margin-top: 20px;
  width: 95%;
  animation: blink-brightness 0.4s infinite alternate;
}
@keyframes blink-brightness {
  from {
    filter: brightness(100%); 
    transform: translateY(0);
  }
  to {
    filter: brightness(105%); 
    transform: translateY(-6px);
  }
}
.button {
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}
.btn-primary {
    background-color: rgb(20, 7, 255);
    font-size: 1.6rem;
}
.btn-primary:hover {
    filter: brightness(150%);
}

.button-shine {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: rgb(20, 7, 255);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgb(255 255 255 / 50%);
  cursor: pointer;
  border: none;
  font-size: 24px;
  transition: 0.6s;
}

/* ✨ 閃亮效果 */
.button-shine::before {
  content: "";
  display: block;
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  animation: shine 2.5s infinite;
  width: 60px;
  height: 100%;
  top: 0;
  opacity: 0.5;
  filter: blur(30px);
  transform: translateX(-100px) skewX(-15deg);
}
.button-shine:focus {
  outline: 0;
}
.button-shine:after {
  content: "";
  display: block;
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 100%;
  left: 30px;
  top: 0;
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100px) skewX(-15deg);
}
.button-shine:hover {
  background: #004cff;
  cursor: pointer;
  transition: .2s;
}
.button-shine:hover:before {
  transform: translateX(300px) skewX(-15deg);
  opacity: 0.6;
  transition: 0.7s;
}
.button-shine:hover:after {
  transform: translateX(300px) skewX(-15deg);
  opacity: 1;
  transition: 0.7s;
}

.button-pulse {
  display: inline-block;
  border: none;
  cursor: pointer;
  animation: pulse 1.8s infinite;
  transition: transform 0.2s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.cl-a {
  color: #ff4500;
}

.fz-30 {
    font-size: 3rem;
}
.fz-m {
    font-size: 2rem;
}
.fz-15 {
    font-size: 1.5rem;
}
.fz-12 {
    font-size: 1.2rem;
}

.lh-2 {
    line-height: 2;
}
.mt-20 {
    margin-top: 20px;
}

.header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
}

.main {
    margin: 0 auto;
    justify-items: center;
}
h1 {
  font-size: 3rem;
  font-weight: 400;
  margin: 0;
  text-align: center;
  color: #000;
}
.section-heading {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem auto;
    text-align: center;
    text-shadow: 
     0 1px 5px rgb(0 0 0 / 50%);
}
.section-heading.dark {
    color: unset;
    text-shadow: unset;
}
.section {
    margin-bottom: 4rem;
    text-align: center;
}

.grid {
    display: grid;
    gap: .5rem;
}

.one-col {
    display: grid;
}

.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.four-col h3 {
    font-size: 1.7rem;
}
.four-col p {
    opacity: 0.7;
    margin-top: .8rem;
    font-size: 1rem;
}

.two-col {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 1rem;
}

.card {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    /* margin: 2rem 0; */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.one-col .card {
    padding: 6rem 0 1.5rem;
}
.one-col .card p {
    font-weight: 500;
}

.card-heading {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
}

.icon {
    font-size: 2.5rem;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}
.icon img {
    width: 100px;
    height: 100px;
}

.four-col .icon {
    top: -30px;
}

.keyword-fast {
  color: #4b4ff3;
}

.keyword-save {
  color: #13c140;
}

.keyword-profit {
  color: #fc286e;
}

/* 可加動畫與陰影 */
.keyword {
  text-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.indigo { color: #2c30ff; }
.green { color: #03b958; }
.purple { color: #8B5CF6; }
.red { color: #ff0606;}

.bg-example {
    background-color: #ffffe1;
}

.exchange-example {
  background-color: #ffffe1;
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-radius: 1rem;
  text-align: center;
}

.exchange-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 900px;
}

.exchange-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 1rem;
  height: auto;
  margin: 0 auto;
}

.exchange-image .caption {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 1.5rem;
}

.exchange-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-width: 240px;
}

.comparison-box {
  background-color: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.comparison-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comparison-price {
  font-size: 1.5rem;
  font-weight: bold;
}
.comparison-price.bigger {
  font-size: 1.8rem;
}

.logo-img {
  width: 130px;
  margin: 0 auto 0.5rem;
}

.price-diff {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1.5rem;
  color: #111;
}

.price-diff .red {
  color: red;
  font-size: 2.2rem;
  font-weight: 900;
}

.table-container {
  overflow-x: auto;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  min-width: 600px; /* ✅ 加寬避免欄寬過窄 */
  max-width: 1050px;
  width: 100%;
  margin: auto;
  border-collapse: collapse;
  border-radius: 0.75rem;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  white-space: nowrap; /* ✅ 防止換行壓縮欄寬 */
}

.comparison-table thead {
  background-color: #F3F4F6;
}

.comparison-table tbody tr {
  border-top: 1px solid #E5E7EB;
}
.comparison-table td.fz-bigger {
      font-size: 1.5rem;
  }
.comparison-table img {
  max-width: 60px;
  transform: rotate(15deg);
}

.note {
    font-size: 1rem;
    color: #6B7280;
    margin-top: 1rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

.apply-bar {
    text-align: center;
    background-color: #FEFCE8;
    border: 1px solid #FACC15;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.apply-bar h2 {
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.apply-bar p {
    font-size: 1.5rem;
    color: #374151;
    font-weight: 600;
}

.apply-bar .highlight {
    color: #DC2626;
    font-weight: 800;
}
.apply-bar .button {
    margin-top: 2rem;
    box-shadow: 
     0 2px 5px rgb(0 0 0 / 20%);
}
.accordion {
    cursor: pointer;
    font-weight: 600;
    padding: 1rem 0 0.5em;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    outline: none;
    transition: 0.3s;
    font-size: 1.3rem;
    color: rgb(8, 19, 54);
}

.accordion:hover {
    color: #342af5;
}

.accordion-content {
    display: none;
    padding: 0 0.25rem 1rem;
    font-size: 1.05rem;
    text-align: left;
}

.accordion.active + .accordion-content {
    display: block;
}


/* ✨ 動畫定義 */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}



/* 飄移動畫 */
.UpDown {
  animation: floatUpDown 2.5s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
}



/* Footer */
.footer {
    background-color: #008631;
    color: white;
    padding: 1rem;
}

.footer-container {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.footer-heading {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 5em;
    font-size: 1.3rem;
}

.footer-links a {
    
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.footer-links a:hover {
    color: #A5B4FC;
}

.copyright {
    font-size: 0.875rem;
    color: #fff;
}


/* Responsive Design */
@media screen and (max-width: 1050px) {
  .pcOnly {
    display: none;
  }
  .mobileOnly {
    display: block;
  }
  .four-col {
      grid-template-columns: repeat(1, 1fr);
  }
    
}


@media screen and (max-width: 768px) {
  .content-main {
    padding: 20px;
  }
  .fz-m {
    font-size: 1.2rem;
  }
    .section {
      width: 90%;
      margin: auto;
      padding: 20px 0;
    }
    .header-image {
        padding: 0;
        max-width: 200px;
    }
    .header-container {
        display: block;
    }
    .header-title {
        font-size: 3rem;
    }
    .header-subtitle {
        font-size: 1.25rem;
    }
    .btn-primary {
        font-size: 1.2rem;
        padding: 0.5rem 1.25rem;
    }
    
    h1,
    .section-heading {
        font-size: 1.6rem;
    }
    .one-col {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .exchange-example {
        margin: 1rem 0;
    }
    .card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .card.bg-example {
        margin: 0;
    }

    
    .comparison-table th {
        font-size: .9rem;
    }
    .comparison-table td {
        font-size: 1rem;
    }
    .comparison-table td.fz-bigger {
        font-size: 1.2rem;
    }
    .comparison-table img {
      max-width: 40px;
    }


    /* ✅ 視覺提示：可滑動區域 */
    .table-container::after {
        content: "← 滑動比較 →";
        display: block;
        text-align: center;
        font-size: 0.9rem;
        color: #9CA3AF;
        margin-top: 0.5rem;
    }
    .note {
      font-size: 0.9rem;
    }
    .four-col {
        gap: 1rem;
    }
    .four-col .card {
        margin: 15px 0;
    }

    .apply-bar p {
      font-size: 1.3rem;
  }


    .exchange-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .exchange-boxes {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .exchange-image .caption {
        font-size: 1.2rem;
    }
    .footer-links {
        gap: 1.5rem;
        font-size: 1rem;
    }
    .footer-links a img {
        width: 13px;
        height: 13px;
        margin-right: 10px;
    }
}
