:root {
  --yu-header-height: 57px;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.72);
  --line-soft: rgba(125, 149, 188, 0.18);
  --title: #183253;
  --text: #51647f;
  --muted: #7a8ba4;
  --shadow: 0 20px 55px rgba(45, 72, 116, 0.11);
  --shadow-soft: 0 10px 28px rgba(45, 72, 116, 0.08);
  --blur: 18px;
}

html {
  scroll-behavior: smooth;
  background: #eef4fb;
}
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(114, 168, 255, 0.16), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(158, 132, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 48%, #f7f9fc 100%);
  color: var(--title);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(65, 99, 145, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 99, 145, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  scrollbar-width: none;
}
.topic-page[hidden] {
  display: none !important;
}

.topic-page ul.list-disc {
  list-style-type: none;
}

.topic-page ul.list-disc > li {
  position: relative;
}

.topic-page ul.list-disc > li::before,
.account-table td li::before {
  content: "";
  position: absolute;
  left: var(--list-dot-left, -0.85em);
  top: 0.75em;
  top: 0.5lh;
  width: var(--list-dot-size, 4px);
  height: var(--list-dot-size, 4px);
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    touch-action: manipulation;
  }

  button,
  a,
  topic-nav,
  topic-nav button,
  guide-nav,
  guide-nav button {
    touch-action: manipulation;
  }
}

/* =========================================================
   Web Components Initial Layout
   避免 Custom Element 尚未註冊時版面跳動
========================================================= */

yu-header,
guide-nav,
topic-nav,
yu-smart-customer,
yu-footer {
  display: block;
}

yu-header:not(:defined) {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 82px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

guide-nav:not(:defined) {
  position: sticky;
  top: 82px;
  z-index: 90;
  height: 56px;
  background: rgba(247, 250, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@media (max-width: 767px) {
  yu-header:not(:defined) {
    height: 52px;
  }

  guide-nav:not(:defined) {
    top: 52px;
    height: 56px;
  }

  topic-nav:not(:defined) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    height: calc(68px + env(safe-area-inset-bottom));
    background: rgba(247, 250, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

/* =========================================================
   CTA
========================================================== */

.reference-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: 0.2s ease;
}
.reference-toggle:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.26);
}

/* =========================================================
   Accordion
========================================================== */

.accordionBtn {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.accordionBtn + .accordionContent {
  background: rgba(255, 255, 255, 0.34);
}

/* =========================================================
   Ranking Tabs
========================================================== */

.ranking-tab {
  border-radius: 10px !important;
  border: 1px solid rgba(var(--accent-rgb), 0.17) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ranking-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.2) !important;
}

.ranking-tab[aria-selected="false"] {
  background: rgba(255, 255, 255, 0.52) !important;
  color: #64758f !important;
}

.ranking-panel table {
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ranking-panel thead {
  background: rgba(var(--accent-rgb), 0.07) !important;
  color: #667793 !important;
}
.ranking-panel tbody {
  color: #4e617e;
}
.ranking-panel tbody tr {
  border-color: rgba(var(--accent-rgb), 0.08) !important;
}
.ranking-panel tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.045);
}
.ranking-panel .text-blue-600 {
  color: var(--accent) !important;
}

/* =========================================================
   Deep Sections
========================================================== */

.bg-slate-950.text-white,
.bg-slate-950.text-white h2,
.bg-slate-950.text-white h3,
.bg-slate-950.text-white b,
.bg-slate-950.text-white p {
  color: var(--title) !important;
}
.bg-slate-950.text-white p,
.bg-slate-950.text-white .text-slate-300 {
  color: var(--text) !important;
}
.bg-slate-950.text-white .text-blue-300,
.bg-slate-950.text-white .text-indigo-300,
.bg-slate-950.text-white .text-emerald-300 {
  color: var(--accent) !important;
}

/* =========================================================
   Mobile Bottom Topic Nav
   topic-nav.js 產生的 nav 仍在 Light DOM
========================================================== */

nav.mobile-only {
  background: rgba(247, 250, 255, 0.54) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-color: rgba(130, 154, 189, 0.16) !important;
  box-shadow:
    0 -10px 34px rgba(38, 59, 93, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

nav.mobile-only .global-tab {
  position: relative;
  color: #6f7f96;
  border-radius: 10px !important;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
nav.mobile-only .global-tab[aria-current="page"] {
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* =========================================================
   Guide Nav
========================================================== */

.local-menu-toggle {
  color: #586b88 !important;
  border-color: rgba(124, 149, 187, 0.2) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.local-menu {
  background: transparent;
}

.menu-anchor {
  border: 1px solid rgba(122, 146, 182, 0.12);
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-anchor.bg-blue-50 {
  background: rgba(75, 126, 205, 0.1) !important;
  color: #326cc0 !important;
  border-color: rgba(75, 126, 205, 0.14);
}

/* =========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {
  body::before {
    background-size: 24px 24px;
    opacity: 0.32;
  }

  #guideNav {
    background: rgba(247, 250, 255, 0.48) !important;
  }

  .local-tabs-scroll {
    cursor: grab;
  }

  .local-tabs-scroll.is-pointer-down,
  .local-tabs-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
    -webkit-user-select: none;
    user-select: none;
  }
}
/* =========================================================
   Page Transition
========================================================= */

.topic-page {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.18s ease;
}

/* 離開目前頁面 */
body.page-leaving .topic-page {
  opacity: 0;
  transform: translateY(-8px);
}

/* 新頁面剛進來 */
body.page-entering .topic-page {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================================
   Offers / Services Page
========================================================= */

.offers-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #ededed 0%, #f7f7f7 68%, #e4e4e4 100%);
}

.offers-page a {
  text-decoration: none;
}

.article-tab {
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.72);
  color: #69788f;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.article-tab.is-active,
.article-tab[aria-selected="true"] {
  border-color: #777;
  background: #777;
  color: #fff;
}

.offer-mobile-arrow {
  width: 77px;
  height: 77px;
  transform-origin: center;
  transition: transform 0.15s ease;
}

.group:active .offer-mobile-arrow {
  transform: translateY(-50%) scale(0.9);
}

/* =========================================================
   Glass Card
========================================================= */

.glass-card,
.account-glass-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 1px rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 1px rgba(64, 135, 216, 0.05),
    0 10px 28px rgba(45, 72, 116, 0.08);
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  backdrop-filter: blur(9px) saturate(115%);
}

/* =========================================================
   Modal
========================================================= */

body.modal-open {
  overflow: hidden;
}

[data-modal-panel] {
  overscroll-behavior: contain;
}

.modal-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 120, 145, 0.4) transparent;
}

.modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(90, 120, 145, 0.4);
  border-radius: 999px;
}

/* 影片樣式 */
.app-phone-frame video {
  position: absolute;
  top: 1%;
  left: 2.7%;
  display: block;
  width: 94.6%;
  height: 98%;
  border-radius: 12% / 5.7%;
  background: #f7f8fa;
  object-fit: contain;
  transform: none;
  transform-origin: center;
  pointer-events: none;
}

.app-phone-frame {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 590 / 1225;
  margin-inline: auto;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.app-phone-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../images/phone-frame.png") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.app-phone-frame video.hidden {
  display: none;
}

@media (min-width: 768px) {
  .app-phone-frame {
    width: 250px;
  }
}

/* QA 展開後的標題與內文間距 */
details[open] > summary {
  padding-bottom: 8px !important;
}

details[open] > summary + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

details[open] > summary + div > :first-child {
  margin-top: 0 !important;
}

/* APP 示範封面：與影片使用相同尺寸，首幀準備完成再淡出。 */
/* Keep the static cover above the video until its first frame is ready. */
.app-phone-frame [data-video-cover] {
  position: absolute;
  top: 1%;
  left: 2.7%;
  width: 94.6%;
  height: 98%;
  border-radius: 12% / 5.7%;
  object-fit: contain;
  transform: none;
  transform-origin: center;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}
.app-phone-frame video.hidden + [data-video-cover] {
  display: none;
}
.app-phone-frame video[data-frame-ready] + [data-video-cover] {
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.app-phone-frame video[hidden],
.app-phone-frame video[hidden] + [data-video-cover] {
  display: none;
}

.app-mode-btn,
body[data-page="us"] .us-app-choice {
  border-left-color: #e0e0e0;
  border-bottom: 1px solid #d8e2e9;
  color: #a2a2a2;
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.app-mode-btn.is-active,
body[data-page="us"] .us-app-choice[aria-pressed="true"] {
  border-left-color: #0a9cff;
  background: rgba(255, 255, 255, 0.26);
  color: #0068dd;
}

.app-mode-arrow,
.us-app-arrow {
  width: 42px;
  flex: 0 0 42px;
  opacity: 0;
  pointer-events: none;
}

.app-mode-btn.is-active .app-mode-arrow,
.us-app-choice[aria-pressed="true"] .us-app-arrow {
  opacity: 1;
}

/* 共通區塊標籤：開戶／台股／美股使用相同字級與漸層。 */
.section-label,
.account-section-label {
  display: inline-flex;
  width: fit-content;
  min-width: 110px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(90deg, #0068dd 0%, #19b8ff 100%);
  padding: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* 頁面內容容器：限制動畫造成的水平溢出。 */
.topic-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* 表格清單保留較細的 3px 列點與原本縮排。 */
.account-table td li {
  --list-dot-size: 3px;
  --list-dot-left: 0.6em;
}
/* 非 ul 的兩欄說明亦使用同一個小圓點。 */
.list-dot {
  display: inline-block;
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: calc(0.5lh - 2px);
  border-radius: 50%;
  background: currentColor;
}

/* 共通文字連結：開戶／台股／美股內文與表格。 */
.topic-page a.content-link {
  color: #28a5ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.18s ease;
}
.topic-page a.content-link u {
  text-decoration: none;
}
.topic-page a.content-link:focus-visible {
  outline: 2px solid #0068dd;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .topic-page a.content-link:hover {
    color: #0068dd;
  }
}
@media (prefers-reduced-motion: reduce) {
  .topic-page a.content-link {
    transition: none;
  }
}

/* Text navigation arrows share a continuous underline with their label. */
.link-arrow-control { gap: 0 !important; column-gap: 0 !important; }
.text-link-arrow { display: inline-block; width: 6px; height: 10px; flex: 0 0 6px; margin: 0 !important; vertical-align: middle; }
.link-arrow-underlined { text-decoration: none !important; border-bottom: 1px solid currentColor; }
.link-arrow-underlined u { text-decoration: none !important; }

/* Consistent text links across all pages, including modal buttons. */
a[href], button:not(:disabled), summary, [role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}
a.content-link,
.link-arrow-underlined {
  color: #28A5FF !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.6;
  text-decoration: none !important;
  border-bottom: 1px solid currentColor !important;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.content-link u,
.link-arrow-underlined u {
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}
a.content-link .text-link-arrow path,
.link-arrow-underlined .text-link-arrow path {
  stroke: currentColor;
}
@media (hover: hover) and (pointer: fine) {
  a.content-link:hover,
  .link-arrow-underlined:hover {
    color: #0068DD !important;
    box-shadow: 0 1px 0 currentColor;
  }
}
a.content-link:focus-visible,
.link-arrow-underlined:focus-visible {
  outline: 2px solid #0068DD;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  a.content-link,
  .link-arrow-underlined { transition: none; }
}

/* Keep a small visual gap without breaking the continuous underline. */
.link-arrow-control { gap: 0 !important; column-gap: 0 !important; align-items: center; }
.text-link-arrow {
  margin-left: 4px !important;
  margin-right: 0 !important;
  vertical-align: middle;
}
a.link-arrow-underlined:not(.flex):not(.hidden),
button.link-arrow-underlined:not(.flex):not(.hidden) {
  display: inline-flex;
  align-items: center;
}
.link-arrow-underlined > u {
  display: inline-flex;
  align-items: center;
}

/* APP 操作選單：台股、美股共用左側漸層色條。 */
body[data-page="tw"] .app-mode-btn,
body[data-page="us"] .us-app-choices .us-app-choice {
  position: relative;
  border-left-color: transparent;
}
.app-mode-btn::before,
.us-app-choice::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 8px;
  background: #d9d9d9;
  pointer-events: none;
}
.app-mode-btn.is-active::before,
.us-app-choice[aria-pressed="true"]::before {
  background: linear-gradient(180deg, #19b8ff 0%, #0068dd 100%);
}


/* 四個主題的手機首屏以台股為基準：198px Hero、第一區上方 8px。 */
@media (max-width: 767px) {
  .topic-page {
    --mobile-topic-hero-height: 198px;
    --mobile-topic-hero-padding: 52px;
    --mobile-topic-section-gap: 8px;
  }
  .topic-page :is(#tw-hero, #account-hero, #us-hero, #fund-hero) {
    height: var(--mobile-topic-hero-height);
  }
  #tw-hero > div,
  #account-hero > div,
  #us-hero .us-hero-inner,
  #fund-hero .fund-hero-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--mobile-topic-hero-padding) 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  #account-hero .account-hero-copy,
  #fund-hero .fund-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  #account-hero .account-hero-title,
  #fund-hero .fund-hero-copy h1 {
    font-size: 50px;
    line-height: 1.08;
  }
  #account-hero .account-hero-copy p,
  #fund-hero .fund-hero-copy p {
    margin: 0;
    font-size: 28px;
    line-height: 1;
  }
  .topic-page :is(#tw-intro, #account-start, #us-why, #fund-why) {
    margin-top: 0;
    padding-top: var(--mobile-topic-section-gap);
  }
  #fund-why .fund-tag {
    min-height: 34px;
    font-size: 18px;
    line-height: 1;
    padding-block: 8px;
  }
  #fund-why > h2 {
    margin-top: 14px;
  }
  #us-why > .us-section-heading h2 {
    margin-top: 0;
  }
}


/* 藍色漸層區塊標籤：上下 12px、左右 16px。 */
.topic-page :is(.section-label, .account-section-label, .us-tag) {
  padding-block: 12px;
  padding-inline: 16px;
}
/* 覆蓋基金第一區手機版原有的上下內距。 */
.topic-page #fund-why .fund-tag {
  padding-block: 12px;
}
/* 美股第一區保留原有較寬內距，再左右各增加 4px。 */
#us-why > .us-section-heading .us-tag {
  padding-inline: 24px;
}


/* 圖示提示列：對齊第一行文字，行距與一般內文一致。 */
.topic-page :is(.fund-note, .us-note, .topic-note) {
  align-items: flex-start;
  line-height: 1.65;
}
.topic-page :is(.fund-note, .us-note, .topic-note) > img {
  flex-shrink: 0;
  margin-top: 3px;
  align-self: flex-start;
}
/* 各頁燈泡圖示統一尺寸，避免隨提示文字或畫面寬度縮放。 */
img[src$="/icon-fee.png"] {
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  min-height: 26px;
  max-height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}
.topic-page :is(.fund-note, .us-note, .topic-note) > img[src$="/icon-fee.png"] {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
.topic-page :is(.fund-note, .us-note, .topic-note) > :is(p, div),
.topic-page .topic-note > div > p {
  line-height: 1.65;
}

/* 台股／美股 FAQ 收費表：單層橘框，避免邊框與內陰影重複描邊。 */
.fee-orange-row > td {
  border-top: 6px solid #ff8200 !important;
  border-bottom: 6px solid #ff8200 !important;
}

.fee-orange-row > td:first-child {
  border-left: 6px solid #ff8200 !important;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.fee-orange-row > td:last-child {
  border-right: 6px solid #ff8200 !important;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* 根背景與開戶／美股 body 暖色一致，避免露出預設藍底。 */
html:has(body[data-page="account"]) { background: #fdf5ea; }
html:has(body[data-page="us"]) { background: #fff4f0; }

/* Hero 背景淡出放在文字後方，避免讓原有字色變淡。 */
#account-hero .account-hero-copy,
#us-hero .us-hero-copy,
#fund-hero .fund-hero-copy {
  position: relative;
  z-index: 3;
}
#us-hero .us-hero-inner,
#fund-hero .fund-hero-inner {
  position: relative;
  z-index: 3;
}

/* 全站手機主題 Banner：主標50px、副標28px。 */
@media (max-width: 767px) {
  #account-hero .account-hero-title,
  #tw-hero .hero-title,
  #us-hero .us-hero-copy h1,
  #fund-hero .fund-hero-copy h1 {
    font-size: 50px;
  }
  #account-hero .account-hero-copy p,
  #tw-hero p:has(+ .hero-title),
  #us-hero .us-hero-eyebrow,
  #fund-hero .fund-hero-copy p {
    font-size: 28px;
  }
}

/* 圓角主要 CTA：依設計稿統一水平藍色漸層與白色箭頭。 */
.design-cta.account-btn,
.design-cta.fund-button,
a.design-cta {
  background: linear-gradient(90deg, #003DAE 0%, #327AFF 100%);
}
.design-cta .text-link-arrow path {
  stroke: #fff;
}

/* CTA 文字與箭頭共用垂直中心，避免字型行高使箭頭看起來偏上。 */
a.design-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.design-cta .text-link-arrow {
  display: block;
  align-self: center;
  transform: translateY(1px);
}

/* CTA hover 僅提亮底色，避免 filter 或縮放讓文字重新點陣化。 */
a.design-cta {
  filter: none !important;
  transform: none !important;
  transition: none !important;
}
@media (hover: hover) and (pointer: fine) {
  a.design-cta:hover {
    background: linear-gradient(90deg, #084BBC 0%, #4386FF 100%);
  }
}


/* 星號說明沿用台股註解：手機 13px、桌面 16px、灰字與 1.55 行距。 */
.topic-page .topic-footnote,
.topic-page .topic-footnote p{color:#969696;font-size:13px;line-height:1.55}
.topic-page .us-professional-note{margin-top:12px}
@media(min-width:768px){
 .topic-page .topic-footnote,
 .topic-page .topic-footnote p{font-size:16px}
}


/* 手機 QA 統一台股樣式：題目與答案間不加線，展開保留 18px 間距。 */
@media(max-width:767px){
 :is(#us-faq,.topic-page) details[open] > :is(.faq-summary,.us-faq-item>summary,.account-faq-summary){padding-top:18px;padding-bottom:18px !important;border-bottom:0 !important}
 :is(#us-faq,.topic-page) details[open] > summary + :is(.faq-body,.us-faq-body,.account-faq-body){margin-top:0 !important;padding-top:0 !important;padding-left:0;padding-bottom:24px;font-size:18px;line-height:1.65}
 .topic-page details:last-of-type:has(> :is(.faq-body,.us-faq-body,.account-faq-body)){border-bottom:0 !important}
}
