﻿/* =========================================
   Modern Base & Reset
   ========================================= */

*,
*::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;
}

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.5rem);
  --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%;
}

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;
}

/* ------ 共用 ------ */
.section-wrap {
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
}

.section-wrap img {
  width: 95%;
  max-width: 1000px;
  padding: 15px 0;
  margin: 0 auto;
}

/* ------ RWD  ------ */
@media screen and (max-width: 768px) {
  .section-wrap {
    padding: 50px 15px 20px 15px;
  }
}

/* ------ 警語與注意事項 ------ */
.notes {
  width: 100%;
  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;
}

.text-info {
  color: #0099ff;
  font-weight: bold;
}

/*------ 公版按鈕 ------*/

.btn-wrapper {
  text-align: center;
  margin: 0 0 1.5em 0;
}


.btn-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  margin: 2em 0;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  padding: 14px 80px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 2px;
  border: none; 
}


.btn i,
.btn .btn-icon {
  font-size: 0.9em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}


.btn:hover {
  transform: translateY(-3px);
}
.btn:hover i {
  transform: translateX(4px);
}

/* ------ 按鈕顏色 ------ */

.btn-purple {
  background-image: linear-gradient(90deg, #0088ff 0%, #6633ff 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(102, 51, 255, 0.2);
}
.btn-purple:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(102, 51, 255, 0.3);
}

.btn-white {
  background-color: #ffffff;
  color: #00a3ff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  background-color: #f8f9fa;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ------ 手機版 ------ */
@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;
    padding: 14px 20px; 
  }
}

/*------ Header------ */

.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: #00a3ff;
    transition: width 0.3s ease;
  }

  .nav-link:hover {
    color: #00a3ff;
  }

  .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: #00a3ff;
  }
}

/* ------ 手機版 ------ */
@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-section {
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  padding: 120px 20px 100px 20px;
  position: relative;
}

.kv-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.kv-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 153, 255, 0.09) 0%, rgba(0, 153, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none; 
  animation: floatingGlow 12s ease-in-out infinite;
}

.kv-section::after {
  content: "";
  position: absolute;
  bottom: 0%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(104, 52, 235, 0.1) 0%, rgba(104, 52, 235, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: floatingGlow 15s ease-in-out infinite reverse;
}

/* ------ 光暈動畫 ------*/
@keyframes floatingGlow {
  0% {
    transform: scale(1) translate(0, 0);
  }
  33% {
    transform: scale(1.05) translate(30px, -20px);
  }
  66% {
    transform: scale(0.95) translate(-20px, 30px);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

/* ------ 左側內容區 ------ */
.kv-content {
  flex: 0 0 45%;
  padding-left: 2%;
  z-index: 10;
}

.kv-title {
  font-size: var(--fs-4xl, 3rem);
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #0099ff 0%, #6834eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.pc-space {
  display: inline; 
}

.mobile-br {
  display: none;
}

.kv-subtitle {
  font-size: var(--fs-2xl, 1.75rem);
  color: #0099ff;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.kv-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.kv-link {
  background-color: #ffffff;
  border: 1px solid #eef0f2; 
  border-radius: 6px;
  padding: 15px 20px;
  font-size: var(--fs-lg, 1.125rem);
  font-weight: 500;
  color: #444444;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); 
}

.kv-link::before {
  content: "";
  display: block;
  width: 5px;
  height: 20px; 
  background-color: #0099ff; 
  border-radius: 4px; 
  margin-right: 15px; 
}

.kv-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.kv-visual img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* ------ 手機版 ------ */
@media screen and (max-width: 1024px) {
  .kv-title { font-size: var(--fs-4xl); }
  .kv-subtitle { font-size: var(--fs-xl); }
}

@media screen and (max-width: 768px) {
  .kv-section { padding: 140px 20px 40px 20px; }  
  .kv-container { flex-direction: column; text-align: left; gap: 30px; } 
  .kv-content { padding-left: 0; flex: auto; } 
  .kv-title {margin-bottom: 10px;}
  .kv-subtitle { margin-bottom: 20px; }
  .kv-links-wrapper { margin: 0; width: 100%; } 
  .kv-link { justify-content: flex-start; }
  .pc-space {display: none;  }
  .mobile-br { display: block; }
  .kv-visual { width: 100%; justify-content: center; }
  .kv-visual img { max-width: 95%; }
  .kv-section::before {
    width: 300px;
    height: 300px;
    top: -5%;
    left: -15%;
  }

  .kv-section::after {
    width: 350px;
    height: 350px;
    bottom: 5%;
    right: -20%;
  }
}


/* ------ 引言區塊 ------ */
.quote-banner {
  width: 100%;
  background: linear-gradient(90deg, #0088ff 0%, #6633ff 100%);
  padding: clamp(3.125rem, 5vw + 1.875rem, 5rem) 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.quote-wrapper {
  position: relative;
  max-width: 800px;
  padding: 0 clamp(2.5rem, 4vw, 3.75rem);
  text-align: center;
}

.quote-text {
  color: #ffffff;
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: var(--line-height-base);
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  position: absolute;
  color: #ffffff;
  font-size: clamp(3.125rem, 4vw + 2rem, 5rem);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1;
  opacity: 0.9;
}

.left-quote {
  top: -0.2em;
  left: 0;
}

.right-quote {
  bottom: -0.4em;
  right: 0;
}

/* ------ 駕馭多變市場 ------ */
.split-bg-section {
  width: 100%;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.strategy-container {
  display: flex;
  align-items: stretch;
}

.strategy-intro {
  flex: 0 0 38%;
  position: relative;
  background-color: #00a3ff;
  padding: 80px 40px;
  z-index: 5;
}

.strategy-intro::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  background-color: #00a3ff;
  z-index: -1;
}

.strategy-intro::after {
  content: "";
  position: absolute;
  display: block;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 24px solid #00a3ff;
  right: -24px;
  top: 100px;
  width: 0;
  height: 0;
  z-index: 10;
}

.intro-title {
  font-size: var(--fs-3xl);
  color: #ffffff;
}

.intro-text {
  font-size: var(--fs-lg);
  color: #ffffff;
  margin-bottom: 0;
  text-align: justify;
}

.strategy-features {
  flex: 0 0 62%;
  position: relative;
  background-color: #f6f7f9;
  padding: 80px 20px 80px 60px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
}

.strategy-features::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #f6f7f9;
  z-index: -1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.feature-icon {
  flex: 0 0 100px;
}

.feature-icon img {
  width: 100%;
  max-width: 110px;
  height: auto;
  display: block;
}

.feature-title {
  font-size: var(--fs-xl);
  color: var(--text-main);
  margin-bottom: 0.25em;
  letter-spacing: 2px;
}

.feature-desc {
  font-size: var(--fs-base);
  color: #555555;
  margin-bottom: 0;
}

@media screen and (max-width: 850px) {
  .strategy-container {
    flex-direction: column;
  }

  .strategy-intro {
    flex: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .strategy-intro::after {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: -20px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #00a3ff;
    border-bottom: none;
  }

  .strategy-features {
    flex: auto;
    padding: 60px 20px;
  }
}

@media screen and (max-width: 500px) {
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
}
/*------ 績效區塊 ------*/
.performance-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 1080px;
  margin: 0 auto 60px auto;
  padding: 60px 40px 20px 40px;
}

.performance-card .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid #e3e2f0; 
  border-radius: 10px; 
}


.performance-card table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--fs-base);
  text-align: center;
  border: none; 
}

.performance-card tr:first-child th {
  border-top: none;
}
.performance-card tr:last-child td {
  border-bottom: none;
}
.performance-card th:first-child,
.performance-card td:first-child {
  border-left: none;
}
.performance-card th:last-child,
.performance-card td:last-child {
  border-right: none;
}
/* ------ 桌機版 ------*/

.performance-card th {
  background-color: #4a4a4a;
  color: #ffffff;
  padding: 12px 10px;
  font-weight: 500;
  border: 1px solid #e3e2f0;
}

.performance-card td:first-child {
  background-color: #4a4a4a !important;
  color: #ffffff;
  font-weight: 500;
}

.performance-card td {
  padding: 18px 10px;
  color: #333333;
  border: 1px solid #e3e2f0;
}


.performance-card tbody tr:nth-child(even) td:not(:first-child) {
  background-color: #f4f4f4;
}
.performance-card tbody tr:nth-child(odd) td:not(:first-child) {
  background-color: #ffffff;
}

/* ------ 手機版 ------ */
@media screen and (max-width: 768px) {
  .performance-card {
    padding: 30px 15px 20px 15px;
    margin: 0 auto 30px auto;
  }

  
  .performance-card .table-responsive {
    border: 1px solid #e3e2f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important; 
    width: 100%;
  }


  .performance-card table {
    display: flex;
    flex-direction: row; 
    border: none !important; 
    width: 100%;
    min-width: 100%;
  }

  .performance-card thead {
    display: flex;
    flex: 0 0 32%; 
  }

  .performance-card tbody {
    display: flex;
    flex-direction: row;
    flex: 1; 
  }

  .performance-card tr {
    display: flex;
    flex-direction: column; 
    flex: 1;
  }


  .performance-card th,
  .performance-card td {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    border: none !important;
    border-bottom: 1px solid #e3e2f0 !important; 
    border-right: 1px solid #e3e2f0 !important; 
    width: 100%;
    height: 55px; 
    font-size: 0.9em;
    box-sizing: border-box; 
  }

  .performance-card th:last-child,
  .performance-card td:last-child {
    border-bottom: none !important;
  }
  .performance-card tbody tr:last-child td {
    border-right: none !important;
  }


  .performance-card th {
    background-color: #f4f4f4 !important; 
    color: #333333 !important; 
  }

  .performance-card th:first-child,
  .performance-card td:first-child {
    height: 90px;
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.3;
  }

  .performance-card td:nth-child(even) {
    background-color: #ffffff !important;
  }

  .performance-card td:nth-child(odd):not(:first-child) {
    background-color: #fcfcfc !important; 
  }
}

/* ------主動投資優勢區塊 ------*/

.advantage-section {
  width: 100%;
  overflow: hidden;
}

.advantage-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: stretch;
}


.advantage-intro {
  flex: 0 0 32%;
  position: relative;
  background-color: #0099ff; 
  padding: 80px 40px;
  z-index: 5;
}

.advantage-intro::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  background-color: #0099ff;
  z-index: -1;
}


.advantage-intro::after {
  content: "";
  position: absolute;
  display: block;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 24px solid #0099ff;
  right: -24px;
  top: 100px;
  width: 0;
  height: 0;
  z-index: 10;
}

.advantage-intro-title {
  font-size: var(--fs-3xl);
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.advantage-intro-text {
  font-size: var(--fs-lg);
  color: #ffffff;
  margin-bottom: 0;
  text-align: justify;
  line-height: var(--line-height-relaxed);
}


.advantage-features {
  flex: 0 0 68%;
  position: relative;
  background-color: #f6f7f9;
  padding: 80px 20px 80px 60px;
  z-index: 1;
}

.advantage-features::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #f6f7f9;
  z-index: -1;
}


.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 60px;
  height: 100%;
  align-content: center;
}

.advantage-item {
  display: flex;
  flex-direction: column;
}

.advantage-title {
  font-size: var(--fs-xl);
  color: var(--text-main);
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}

.advantage-icon {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.advantage-icon img {
  max-height: 100%;
  width: auto;
}


.advantage-desc {
  font-size: var(--fs-base);
  color: #555555;
  line-height: var(--line-height-relaxed);
  text-align: justify;
  margin-bottom: 0;
}

/* ------ 手機與平板版 ------ */
@media screen and (max-width: 992px) {

  .advantage-container {
    flex-direction: column;
  }

  .advantage-intro,
  .advantage-features {
    flex: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .advantage-intro::after {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: -24px;
    border-top: 24px solid #0099ff;
    border-bottom: none;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
  }

  .advantage-intro-text {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 40px; 
  }
  .advantage-desc {
  text-align: center;

}
}

/* ------ 動態長條圖------ */
#market-return-chart {
  background-color: #f3f7fb;
}

.bar-chart-container {
  max-width: 850px;
  margin: 0 auto 40px auto;
  position: relative;
  padding: 10px 0;
}


.chart-y-axis {
  position: absolute;
  left: 120px; 
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #d8d8d8;
  z-index: 1;
}

.chart-unit {
  position: absolute;
  right: 0;
  top: -30px;
  font-size: var(--fs-xl);
  color: #333333;
  font-weight: 500;
}


.bar-row {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}


.bar-label {
  flex: 0 0 120px;
  text-align: right;
  padding-right: 20px;
  font-size: var(--fs-lg);
  font-weight: bold;
  color: #333333;
}


.bar-area {
  flex: 1;
  display: flex;
  align-items: center;
}


.bar-fill {
  height: 35px;
  background: linear-gradient(90deg, #007bff 0%, #00bfff 100%);
  border-radius: 0 4px 4px 0;
  width: 0;
}


.bar-value {
  margin-left: 15px;
  font-size: var(--fs-xl);
  font-weight: bold;
  color: #0099ff;
  opacity: 0;
}

/* ================= 動畫魔法核心 ================= */


.bar-row.aos-animate .bar-fill {
  animation: growBar 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.bar-row.aos-animate .bar-value {
  animation: fadeInNum 0.5s ease forwards;
  animation-delay: 0.9s; 
}


@keyframes growBar {
  0% {
    width: 0;
  }
  100% {
    width: var(--bar-width);
  }
}


@keyframes fadeInNum {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------ 手機版 ------ */
@media screen and (max-width: 768px) {
  .chart-main-title {
    font-size: var(--fs-2xl);
    letter-spacing: 4px;
  }

  .bar-chart-container {
    width: 90%;
    margin: 0 auto;
    padding: 10px 0;
  }

  .chart-y-axis {
    display: none; 
  }

  .bar-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .bar-label {
    flex: auto;
    text-align: left;
    padding-right: 0;
    margin-bottom: 8px;
  }

  .bar-area {
    width: 100%; 
  }

  .bar-fill {
    height: 20px;
    border-radius: 4px; 
  }

  .chart-unit {

  top: 0px;
}
}

/* ------ 推薦基金區塊 ------*/

.fund-cta-section {
  width: 100%;
  background: linear-gradient(90deg, #0099ff 0%, #6834eb 100%);
  padding: 80px 20px;
  box-sizing: border-box;
}


.cta-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


.fund-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fund-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.fund-info {
  display: flex;
  align-items: center;
}

.fund-name {
  display: flex;
  align-items: center;
  font-size: var(--fs-lg); 
  color: #333333;
  font-weight: normal;
  margin-bottom: 0;
  letter-spacing: 1px;
}


.fund-name::before {
  content: "";
  display: block;
  width: 5px;
  height: 24px;
  background-color: #0099ff;
  border-radius: 4px;
  margin-right: 18px;
}

/* ------ 手機版 ------ */
@media screen and (max-width: 768px) {
  .fund-cta-section {
    padding: 60px 20px;
  }

  .fund-card {
    flex-direction: column; 
    align-items: flex-start; 
    padding: 30px 25px;
    gap: 25px; 
  }

  .fund-name {
    font-size: var(--fs-lg);
  }

  .fund-action {
    width: 100%; 
  }
  

  .fund-action.btn-wrapper .btn {
    max-width: 100%;
  }
}

/*------ Footer ------*/
#site-footer {
  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: #005598;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  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;
}

@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;
  }
}
