﻿/* =========================================
   基底設定與重設
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* --- 圖片與連結 --- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  cursor: pointer;
}

/* --- 表格與 Body --- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  font-family:
    Klavika,
    custfont,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans TC",
    "Noto Sans CJK TC",
    "Source Han Sans TC",
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji",
    sans-serif;
  font-size: var(--fs-base);
  line-height: var(--line-height-base);
  color: var(--text-main);
  position: relative;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 全域變數 --- */
:root {
  --fs-xs: clamp(0.75rem, 0.71vw + 0.58rem, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.81vw + 0.68rem, 1rem);
  --fs-base: clamp(1rem, 0.95vw + 0.76rem, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.1vw + 0.85rem, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.34vw + 0.92rem, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.83vw + 1.04rem, 2rem);
  --fs-3xl: clamp(1.75rem, 2.75vw + 1.06rem, 2.2rem);
  --fs-4xl: clamp(2.25rem, 4.2vw + 1.2rem, 3.5rem);
  --fs-5xl: clamp(2.75rem, 6vw + 1.25rem, 4.5rem);

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  --text-main: #212529;
  --text-muted: #40a7ec;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* --- 標題 --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-top: 0;
  margin-bottom: 0.75em;
  letter-spacing: 0.1em;
}

h1 {
  font-size: var(--fs-5xl);
}
h2 {
  font-size: var(--fs-4xl);
}
h3 {
  font-size: var(--fs-3xl);
}
h4 {
  font-size: var(--fs-2xl);
}
h5 {
  font-size: var(--fs-xl);
}
h6 {
  font-size: var(--fs-lg);
}

p {
  margin-top: 0;
  margin-bottom: 1.25em;
  line-height: var(--line-height-relaxed);
}

/* --- 全域文字類 --- */
.text-xs {
  font-size: var(--fs-xs);
}
.text-sm {
  font-size: var(--fs-sm);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

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

/* --- 共用區塊 --- */
.section-wrap {
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
}

.section-wrap img {
  width: 95%;
  max-width: 800px;
  padding: 15px 0;
  margin: 0 auto;
}

.section-wrap img.size2 {
  max-width: 1080px;
}

/* --- 共用區塊 RWD --- */
@media screen and (max-width: 768px) {
  .section-wrap {
    padding: 50px 25px;
  }

  .section-wrap img.size2 {
    width: 80%;
  }
}

/* --- 警語與注意事項 --- */
.notes {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: justify;
  font-size: var(--fs-xs);
  line-height: var(--line-height-relaxed);
  padding: clamp(10px, 3vw, 15px) 0;
  color: #5f5f5f;
}

.text-info {
  color: #3f414c;
  font-weight: bold;
}

/* --- 按鈕 --- */
.btn-wrapper {
  text-align: center;
  margin: 1.2em 0;
}

.btn-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  margin: 2em 0;
}

/* --- 按鈕 RWD --- */
@media screen and (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .btn-wrapper .btn,
  .btn-group .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* --- 按鈕樣式 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  font-weight: bold;
  padding: 16px 90px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
}

.btn i,
.btn .btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}
.btn:hover i,
.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-white {
  background-color: #ffffff;
  color: #3441cb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  color: #9a2cde;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-image: linear-gradient(45deg, #033afc 0%, #1db2ff 100%);
  background-color: #3441cb;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 3px rgb(0 110 198 / 20%);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0 110 198, 0.2);
}

.btn-outline {
  background-image: none;
  background-color: transparent;
  color: #3441cb;
  border: 2px solid #3441cb;
}
.btn-outline:hover {
  background-color: #3441cb;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.3);
}

/* --- 背景色 --- */
.bg-light-blue {
  background-color: #e9f0f8;
}
.bg-sky-blue {
  background-color: #b9dafc;
}

.bg-baby-blue {
  background-color: #cae8ff;
}

/* --- 全域標題 --- */
.global-title-wrapper {
  text-align: center;
  margin-bottom: 25px;
}

.global-title-block {
  display: inline-block;
  background: linear-gradient(90deg, #004ed8 0%, #2d74f2 100%);
  color: #ffffff;
  padding: 12px 35px;
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
}

.global-subtitle {
  text-align: center;
  color: #0e2c68;
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.global-desc {
  text-align: justify;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
  font-size: var(--fs-base);
  line-height: var(--line-height-relaxed);
  font-weight: 500;
}

/* --- 全域標題 RWD --- */
@media screen and (max-width: 768px) {
  .global-title-block {
    font-size: var(--fs-2xl);
    padding: 10px 25px;
  }
  .global-subtitle {
    font-size: var(--fs-xl);
  }
}

/* =========================================
   頁首
   ========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  height: 100%;
}

.logo {
  width: 180px;
  display: block;
}
.logo img {
  width: 100%;
  display: block;
}

.menu-checkbox {
  display: none;
}

/* --- 桌機版 --- */
@media screen and (min-width: 992px) {
  .menu-icon,
  .menu-overlay {
    display: none;
  }

  .nav-menu {
    margin-left: auto;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    color: #333333;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #3441cb;
    transition: width 0.3s ease;
  }

  .nav-link:hover {
    color: #3441cb;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .dropdown-arrow {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    transition: transform 0.3s ease;
  }

  /* --- 下拉選單 --- */
  .has-dropdown {
    position: relative;
  }

  .dropdown-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .has-dropdown:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-list li a {
    display: block;
    padding: 12px 20px;
    color: #555555;
    text-decoration: none;
    font-size: 15px;
    transition:
      background-color 0.2s,
      color 0.2s;
  }

  .dropdown-list li a:hover {
    background-color: #f5f9ff;
    color: #3441cb;
  }
}

/* --- 手機版 --- */
@media screen and (max-width: 991px) {
  .logo {
    width: 140px;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
  }

  .menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-checkbox:checked ~ .menu-icon .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-checkbox:checked ~ .menu-icon .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-checkbox:checked ~ .menu-icon .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
  }

  .menu-checkbox:checked ~ .nav-menu {
    right: 0;
  }

  .menu-checkbox:checked ~ .menu-overlay {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid #eeeeee;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
  }

  .dropdown-list {
    list-style: none;
    padding: 0 0 15px 0;
    margin: 0;
    background-color: #f9f9f9;
  }

  .dropdown-list li a {
    display: block;
    padding: 15px 25px 15px 45px;
    color: #666666;
    text-decoration: none;
    font-size: 15px;
    border-top: 1px dashed #e0e0e0;
  }

  .dropdown-arrow {
    display: none;
  }
}

/* =========================================
   主視覺區
   ========================================= */
.kv-hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 180px 20px 140px 20px;
  z-index: 1;
}

/* --- 背景圖層 --- */
.kv-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.kv-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kv-hero-container {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* --- 標題圖片容器 --- */
.kv-title-wrapper {
  width: 100%;
  display: block;
}

.kv-title-wrapper picture,
.kv-title-wrapper img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* --- 描述對話框 --- */
.kv-desc-box {
  background-color: #ffffff;
  border: 2px solid #bce2ff;
  border-radius: 12px;
  padding: 15px 40px;
  box-shadow: 0 4px 15px rgba(0, 90, 200, 0.08);
}

.kv-desc-box p {
  margin: 0;
  font-size: var(--fs-lg);
  color: #333333;
  line-height: var(--line-height-relaxed);
  font-weight: 500;
  letter-spacing: 1px;
}

.kv-desc-box .highlight {
  color: #033afc;
  font-weight: 700;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 2px;
}

/* --- 吉祥物定位 --- */
.kv-mascot {
  position: absolute;
  bottom: 8%;
  width: 100%;
  max-width: 280px;
  z-index: 5;
}

.mascot-left {
  left: calc(50% - 540px);
}
.mascot-right {
  right: calc(50% - 540px);
}

/* --- 懸浮圖表動畫 --- */
.floating-chart {
  position: absolute;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 90, 200, 0.08);
  animation: floatUp 4s ease-in-out infinite;
}

.chart-left-top {
  top: 22%;
  left: calc(50% - 380px);
  max-width: 150px;
  animation-delay: 0s;
}

.chart-left-bottom {
  top: 35%;
  left: calc(50% - 560px);
  max-width: 160px;
  animation-delay: 1.5s;
}

.chart-right-top {
  top: 20%;
  right: calc(50% - 360px);
  max-width: 120px;
  animation-delay: 0.8s;
}

.chart-right-bottom {
  top: 36%;
  right: calc(50% - 500px);
  max-width: 140px;
  animation-delay: 2.2s;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* --- 平板版 --- */
@media screen and (max-width: 1080px) {
  .kv-hero-section {
    padding: 100px 40px 140px 40px;
  }

  .kv-mascot {
    max-width: 240px;
    bottom: 4%;
  }

  .mascot-left {
    left: 3%;
  }
  .mascot-right {
    right: 3%;
  }

  .chart-left-top {
    top: 22%;
    left: 14%;
    max-width: 140px;
  }
  .chart-right-top {
    top: 24%;
    right: 16%;
    max-width: 120px;
  }

  .chart-right-bottom {
    top: 40%;
    right: 6%;
    max-width: 140px;
  }

  .chart-left-bottom {
    top: 38%;
    left: 6%;
    max-width: 130px;
  }
}

/* --- 較窄平板區間 --- */
@media screen and (max-width: 900px) {
  .kv-title-wrapper picture,
  .kv-title-wrapper img {
    max-width: 460px;
  }

  .kv-mascot {
    max-width: 190px;
    bottom: 3%;
  }
  .mascot-left {
    left: 2%;
  }
  .mascot-right {
    right: 2%;
  }

  .chart-left-top {
    top: 22%;
    left: 14%;
    max-width: 120px;
  }
  .chart-right-top {
    top: 22%;
    right: 12%;
    max-width: 100px;
  }

  .chart-right-bottom {
    top: 40%;
    right: 6%;
    max-width: 120px;
  }

  .chart-left-bottom {
    top: 38%;
    left: 6%;
    max-width: 110px;
  }
}

/* --- 手機版 --- */
@media screen and (max-width: 768px) {
  .kv-hero-section {
    min-height: 650px;
    padding: 100px 15px 160px 15px;
  }

  .kv-title-wrapper img {
    max-width: 90%;
  }
  .kv-desc-box {
    padding: 15px 20px;
  }
  .kv-desc-box p {
    font-size: var(--fs-base);
  }

  .kv-mascot {
    max-width: 155px;
    bottom: 2%;
  }
  .mascot-left {
    left: 5%;
  }
  .mascot-right {
    right: 5%;
  }

  .floating-chart {
    display: none;
  }
}

/* =========================================
   長期投資頁籤
   ========================================= */

/* --- 頁籤按鈕 --- */
.tab-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.tab-btn {
  position: relative;
  background-color: #ffffff;
  color: #004ed8;
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-icon {
  display: none;
  margin-right: 8px;
}

.tab-btn.active {
  background-color: #004ed8;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(3, 58, 252, 0.3);
}

.tab-btn.active .tab-icon {
  display: inline-block;
}

/* --- 對話框小三角形 --- */
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #004ed8 transparent transparent transparent;
}

/* --- 卡片內容 --- */
.tab-content-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.tab-flex-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.tab-img-col {
  flex: 1;
  text-align: center;
}

.tab-img-col img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tab-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tab-content-title {
  font-size: var(--fs-2xl);
  color: #333333;
  margin-bottom: 20px;
}

/* --- 重點提示框 --- */
.callout-box {
  background-color: #f0f6ff;
  color: #004ed8;
  font-size: var(--fs-lg);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-block;
  align-self: flex-start;
}

.callout-box i {
  margin-right: 5px;
  color: #004ed8;
}

.tab-content-desc {
  color: #555555;
  font-size: var(--fs-base);
  line-height: var(--line-height-base);
  text-align: justify;
  margin: 0;
}

/* --- 內文重點字 --- */
.tab-key-points {
  color: #537cf4;
  font-size: var(--fs-base);
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: var(--line-height-base);
  letter-spacing: 1px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RWD 調整 --- */
@media screen and (max-width: 768px) {
  .tab-nav-container {
    gap: 10px;
    margin-bottom: 15px;
  }
  .tab-btn {
    padding: 12px 20px;
    font-size: var(--fs-sm);
    flex: 1 1 calc(50% - 10px);
  }

  .tab-flex-card {
    flex-direction: column-reverse;
    padding: 30px 20px;
    gap: 25px;
  }

  .callout-box {
    align-self: center;
    text-align: center;
  }
  .tab-content-title {
    text-align: center;
  }

  .tab-btn.active::after {
    display: none;
  }
}

/* =========================================
   ETF 定義
   ========================================= */

.etf-definition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.etf-definition .text-col {
  flex: 1;
  font-size: var(--fs-base);
  text-align: justify;
  font-weight: 500;
  color: #333333;
  line-height: var(--line-height-relaxed);
}

/* --- 吉祥物與對話框 --- */
.character-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-col.align-end {
  justify-content: flex-end;
}

.section-wrap img.mascot-img {
  width: 140px;
  max-width: 140px;
  height: auto;
  padding: 0;
  margin: 15px auto 0 auto;
}

.section-wrap img.mascot-cloud {
  width: 260px;
  max-width: 260px;
}

/* --- 對話框樣式 --- */
.speech-bubble {
  background: #ffffff;
  border-radius: 40px;
  padding: 15px 30px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #333333;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

/* --- 對話框小三角形 --- */
.speech-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.bubble-left::after {
  border-width: 15px 15px 0 0;
  border-color: #ffffff transparent transparent transparent;
  bottom: -10px;
  left: 120px;
}

.bubble-right::after {
  border-width: 20px 10px 0 10px;
  border-color: #ffffff transparent transparent transparent;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* =========================================
   ETF 比較卡片
   ========================================= */

.etf-comparison {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.etf-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 20px 20px 20px;
  width: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #333333;
}

.card-desc {
  font-size: var(--fs-base);
  color: #666666;
  margin-bottom: 20px;
}

/* --- 圖片容器 --- */
.card-image {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 20px;
}

.section-wrap .card-image img {
  width: auto;
  max-width: none;
  max-height: 140px;
  padding: 0;
  margin: 0 auto;
}

/* --- 卡片底部標籤 --- */
.card-tag {
  padding: 8px 0;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 6px;
}

.tag-blue {
  background-color: #dceafb;
  color: #3d75c0;
}

.tag-yellow {
  background-color: #fff3c4;
  color: #ed980f;
}

/* --- RWD 調整 --- */
@media screen and (max-width: 768px) {
  .etf-definition {
    flex-direction: column;
    text-align: center;
    margin: 0 auto 20px auto;
  }

  .bubble-left::after {
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 10px 0 10px;
  }

  .etf-card {
    width: 90%;
    max-width: 360px;
  }

  .etf-comparison {
    flex-direction: column;
    align-items: center;
  }

  .character-col.align-end {
    margin-top: 20px;
  }
}

/* =========================================
   ETF 常見迷思
   ========================================= */

/* --- 背景與列表容器 --- */
.bg-grid-pattern {
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, #f0f0f0 1px, transparent 1px),
    linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
  background-size: 40px 40px;
}

.myth-list-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 60px;
}

/* --- 共用列排版 --- */
.myth-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.myth-row.reverse {
  flex-direction: row-reverse;
}

/* --- 圖片容器 --- */
.myth-img-col {
  flex: 0 0 240px;
  text-align: center;
}

.section-wrap .myth-img-col img {
  width: 100%;
  max-width: 240px;
  height: auto;
  padding: 0;
  margin: 0 auto;
  display: block;
}

/* --- 文字容器 --- */
.myth-text-col {
  flex: 0 1 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.myth-title {
  color: #033afc;
  font-size: var(--fs-2xl);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.myth-subtitle {
  color: #333333;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 20px;
}

.myth-desc {
  color: #555555;
  font-size: var(--fs-base);
  line-height: var(--line-height-relaxed);
  text-align: justify;
  margin: 0;
}

/* --- 底部藍色圓角按鈕 --- */
.btn-primary-rounded {
  display: inline-block;
  background-color: #033afc;
  color: #ffffff;
  padding: 15px 40px;
  font-size: var(--fs-lg);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(3, 58, 252, 0.2);
}

.btn-primary-rounded:hover {
  background-color: #0225a3;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 58, 252, 0.3);
}

.btn-primary-rounded i {
  margin-left: 8px;
}

/* --- RWD 調整 --- */
@media screen and (max-width: 768px) {
  .myth-row,
  .myth-row.reverse {
    flex-direction: column;
    gap: 25px;
  }

  .myth-img-col,
  .myth-text-col {
    flex: 1 1 auto;
    width: 100%;
  }

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

  .myth-desc {
    text-align: left;
  }

  .myth-title {
    font-size: var(--fs-xl);
  }
  .myth-subtitle {
    font-size: var(--fs-lg);
  }
}

/* =========================================
   投資防詐
   ========================================= */

/* --- 父層與波浪 --- */
#anti-fraud {
  position: relative;
  z-index: 10;
}

#anti-fraud::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 35px;
  background-image: radial-gradient(
    40px 35px at 50% 0,
    #cae8ff 96%,
    transparent 100%
  );
  background-size: 70px 35px;
  background-repeat: repeat-x;
  pointer-events: none;
}

/* --- 容器與排版 --- */
.fraud-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.fraud-text-col {
  flex: 1 1 50%;
}

.fraud-img-col {
  flex: 1 1 50%;
  text-align: center;
}

.section-wrap .fraud-img-col img {
  width: 100%;
  max-width: 500px;
  height: auto;
  padding: 0;
  display: block;
  margin: 0 auto;
}

.fraud-text-col .title-left-wrapper {
  text-align: left;
  margin-bottom: 20px;
}

.fraud-text-col .global-subtitle,
.fraud-text-col .global-desc {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
}

/* --- 三不原則 --- */
.fraud-rules {
  margin-top: 30px;
}

.rules-title {
  color: #033afc;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 20px;
}

.rules-list li {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
}

.rules-list li i {
  color: #033afc;
  margin-right: 8px;
  font-size: var(--fs-lg);
}

/* --- 平板版過渡 RWD --- */
@media screen and (max-width: 992px) {
  .fraud-container {
    gap: 25px;
    padding: 0 30px;
  }

  .fraud-text-col {
    flex: 1 1 60%;
  }

  .fraud-img-col {
    flex: 1 1 40%;
  }

  .section-wrap .fraud-img-col img {
    max-width: 360px;
  }
}

/* --- 手機版 RWD --- */
@media screen and (max-width: 768px) {
  .fraud-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .fraud-text-col .title-left-wrapper,
  .fraud-text-col .global-subtitle {
    text-align: center;
  }

  .fraud-text-col .global-desc {
    text-align: justify;
  }

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

  .rules-list {
    justify-content: center;
  }
}

/* =========================================
   退休理財
   ========================================= */

/* --- 背景與容器 --- */
.bg-beach {
  background-image: url("image/bg_beach.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 80px 0 120px 0;
}

.retirement-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.retirement-text-col {
  flex: 1 1 50%;
}

.retirement-text-col .title-left-wrapper {
  text-align: left;
  margin-bottom: 20px;
}

.retirement-text-col .global-subtitle,
.retirement-text-col .global-desc {
  text-align: left;
  margin-left: 0;
  max-width: 100%;
}

/* --- 計算機卡片 --- */
.retirement-card-col {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  position: relative;
}

.calc-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 60px 40px 50px 40px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* --- 紙膠帶效果 --- */
.calc-card .tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 100px;
  height: 25px;
  background-color: #ffccd5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.calc-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: #1a3c6b;
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* --- 標題螢光筆效果 --- */
.calc-title .highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.calc-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #d6eaff;
  z-index: -1;
}

.calc-desc {
  font-size: var(--fs-lg);
  color: #333333;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.5;
}

/* --- 放大鏡吉祥物 --- */
.mascot-magnifier {
  position: absolute;
  bottom: -40px;
  left: -120px;
  z-index: 5;
}

.section-wrap img.mascot-magnifier {
  width: 180px;
  max-width: 180px;
  height: auto;
  padding: 0;
  margin: 0;
}

/* --- 中大尺寸 RWD --- */
@media screen and (max-width: 992px) {
  .retirement-container {
    flex-direction: column;
    gap: 50px;
    padding: 0 20px;
  }

  .retirement-text-col .title-left-wrapper,
  .retirement-text-col .global-subtitle {
    text-align: center;
  }

  .retirement-text-col .global-desc {
    text-align: justify;
  }

  .mascot-magnifier {
    left: -120px;
    bottom: -40px;
  }

  .section-wrap img.mascot-magnifier {
    width: 150px;
    max-width: 150px;
  }
}

/* --- 手機版 RWD --- */
@media screen and (max-width: 768px) {
  .bg-beach {
    padding: 60px 0;
  }

  .retirement-container {
    gap: 40px;
  }

  .mascot-magnifier {
    left: -20px;
    top: -40px;
  }

  .section-wrap img.mascot-magnifier {
    width: 120px;
    max-width: 120px;
  }
}

/* =========================================
   更多資訊
   ========================================= */

/* --- 網格佈局 --- */
.info-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 10px;
}

/* --- 卡片樣式 --- */
.info-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px 20px 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.section-wrap .info-card img.info-icon {
  width: auto;
  height: 75px;
  max-width: 75px;
  margin: 0 auto 20px auto;
  padding: 0;
}

.info-title {
  font-size: var(--fs-xl);
  color: #1a3c6b;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

/* --- 卡片按鈕 --- */
.btn-dark-blue {
  display: inline-block;
  background-color: #132a5e;
  color: #ffffff;
  padding: 10px 35px;
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-dark-blue i {
  margin-left: 5px;
  font-size: var(--fs-sm);
  transition: transform 0.3s ease;
}

.btn-dark-blue:hover {
  background-color: #0b193a;
  color: #ffffff;
}

.btn-dark-blue:hover i {
  transform: translateX(3px);
}

/* --- 平板版 RWD --- */
@media screen and (max-width: 992px) {
  .info-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- 手機版 RWD --- */
@media screen and (max-width: 768px) {
  .info-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-card {
    padding: 30px 20px;
  }
}

/* =========================================
   頁尾
   ========================================= */

#site-footer {
  max-width: 1400px;
  margin: 0 auto;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
}

.footer-top-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.footer-brand {
  flex: 0 0 200px;
}
.footer-brand img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}
.brand-license {
  border-top: 4px solid #d25b20;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #333333;
  letter-spacing: 1px;
}

.footer-info {
  flex: 1;
  min-width: 280px;
  padding: 0 20px;
}
.info-title {
  color: #132a5e;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.info-details {
  font-size: 13px;
  color: #222222;
  line-height: 1.6;
}

.footer-hotline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.hotline-text {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}
.hotline-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #f8801a;
  letter-spacing: 1px;
}

.disclaimer-list {
  list-style-type: disc;
  padding-left: 20px;
  color: #666666;
  text-align: justify;
  line-height: var(--line-height-relaxed);
}

.disclaimer-list span {
  font-weight: bold;
  color: #0099ff;
}
.disclaimer-list li {
  margin-bottom: 8px;
}

/* --- 頁尾 RWD --- */
@media screen and (max-width: 992px) {
  .footer-top-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-info {
    padding: 0;
  }

  .footer-brand {
    flex: 0 0 60px;
  }
}

@media screen and (max-width: 500px) {
  .footer-hotline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .footer-brand {
    flex: 0 0 60px;
  }
}