/* ==========================================================================
   恒利證券 HengLee Securities — 官網樣式系統
   品牌：深藍 #0B1F3B ＋ 金 #C9A063 ｜ 香港高端券商視覺語言
   ========================================================================== */

:root {
  --navy-950: #05101f;
  --navy-900: #0B1F3B;
  --navy-800: #0F2A4A;
  --navy-700: #16385F;
  --navy-600: #1E4a78;
  --gold: #C9A063;
  --gold-soft: #E3C79A;
  --gold-deep: #A8813F;
  --blue-line: #2E6FB7;

  --paper: #F6F8FB;
  --white: #FFFFFF;
  --ink: #17233A;
  --body: #3D4C63;
  --muted: #7787A0;
  --line: #E2E8F1;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", sans-serif;
  --latin: "Marcellus", "Noto Serif TC", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-1: 0 2px 10px rgba(11, 31, 59, 0.06);
  --shadow-2: 0 16px 40px rgba(11, 31, 59, 0.12);
  --shadow-3: 0 30px 70px rgba(5, 16, 31, 0.35);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-wide {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

::selection {
  background: rgba(201, 160, 99, 0.28);
}

/* ---- 佔位符標示（待替換真實資料） ---- */
.ph {
  color: var(--gold-deep);
  border-bottom: 1px dashed rgba(201, 160, 99, 0.75);
  padding: 0 1px;
  cursor: help;
}

/* ==========================================================================
   頂部資訊條
   ========================================================================== */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 20px;
}

.topbar-l {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s;
}

.topbar a:hover {
  color: var(--gold-soft);
}

.topbar .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.topbar-r {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   導航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-solid {
  box-shadow: 0 6px 24px rgba(11, 31, 59, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word .cn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--navy-900);
  letter-spacing: 0.06em;
}

.brand-word .en {
  margin-top: 5px;
  font-family: var(--latin);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 28px 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.nav-link .caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}

.nav-item:hover>.nav-link {
  color: var(--gold-deep);
}

.nav-item.is-active>.nav-link {
  color: var(--gold-deep);
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

/* 下拉選單 */
.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 236px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-2);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  color: var(--body);
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.dropdown a:hover {
  color: var(--gold-deep);
  background: var(--paper);
  padding-left: 26px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-cta .login {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: .04em;
  padding: 10px 6px;
  transition: color .25s;
}

.nav-cta .login:hover {
  color: var(--gold-deep);
}

/* 語言切換 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  border: 1px solid rgba(201, 160, 99, 0.6);
  font-family: var(--latin);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  transition: all 0.25s var(--ease);
}

.lang-switch:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #16233B;
}

.lang-switch-m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 9px 18px;
  border: 1px solid rgba(201, 160, 99, 0.55);
  border-radius: 2px;
  color: var(--gold-soft) !important;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(201, 160, 99, 0.55) !important;
}

@media (max-width: 860px) {
  .lang-switch {
    height: 30px;
    padding: 0 11px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }
}

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #D8B47C, var(--gold) 45%, #B98F4E);
  color: #16233B;
  box-shadow: 0 8px 24px rgba(201, 160, 99, 0.32);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 160, 99, 0.42);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-ghost-dark {
  border: 1px solid rgba(11, 31, 59, 0.28);
  color: var(--navy-900);
}

.btn-ghost-dark:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--navy-900);
  transition: .3s;
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 21px;
}

.burger span:nth-child(3) {
  top: 27px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: min(86vh, 780px);
  min-height: 600px;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.hero-slide.is-on {
  opacity: 1;
  visibility: visible;
}

.hero-slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero-slide.is-on .bg {
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 16, 31, 0.92) 0%, rgba(7, 20, 38, 0.72) 42%, rgba(11, 31, 59, 0.35) 100%);
}

.hero-in {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.16;
  max-width: 15em;
  text-wrap: balance;
}

.hero h1 .gold {
  color: var(--gold-soft);
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags span {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-dot {
  width: 44px;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.hero-dot i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-on i {
  animation: dotfill 7s linear forwards;
}

@keyframes dotfill {
  to {
    transform: scaleX(1);
  }
}

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 100px;
  z-index: 5;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(rgba(255, 255, 255, .5), transparent);
}

/* 行情示意條 */
.ticker {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--navy-950);
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.18em;
  gap: 9px;
  white-space: nowrap;
}

.ticker-label .ic {
  width: 17px;
  height: 17px;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tick 38s linear infinite;
  padding: 15px 0 15px 140px;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

.tk {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.tk b {
  font-family: var(--latin);
  letter-spacing: .08em;
  color: #fff;
  font-weight: 400;
}

.tk .up {
  color: #E85D5D;
}

.tk .dn {
  color: #3FBF8F;
}

/* ==========================================================================
   版塊通用
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section.paper {
  background: var(--paper);
}

.section.navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-head.center .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.sec-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
}

.sec-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
}

.section.navy .sec-title {
  color: #fff;
}

.section.navy .sec-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* 信任數字欄 */
.statbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.statbar-in {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  padding: 44px 24px;
  text-align: center;
  position: relative;
}

.stat+.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: var(--line);
}

.stat .num {
  font-family: var(--latin);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  color: var(--gold-deep);
  line-height: 1.1;
}

.stat .num small {
  font-size: 0.55em;
  margin-left: 2px;
}

.stat .lbl {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* 核心價值三欄 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vcard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid transparent;
  padding: 44px 36px 40px;
  transition: all 0.35s var(--ease);
}

.vcard:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-2);
  transform: translateY(-5px);
}

.vcard .no {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--latin);
  font-size: 2.4rem;
  color: rgba(11, 31, 59, 0.07);
  line-height: 1;
}

.vcard .ic {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
}

.vcard h3 {
  font-size: 1.24rem;
  margin-bottom: 14px;
}

.vcard p {
  font-size: 14.6px;
  color: var(--muted);
}

/* 產品卡片 */
.pcard {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 30px;
  transition: all 0.35s var(--ease);
}

.pcard::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.pcard:hover::before {
  transform: scaleX(1);
}

.pcard .ic {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.pcard h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.pcard p {
  font-size: 14.2px;
  color: var(--muted);
  min-height: 66px;
}

.pcard .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold-deep);
  font-weight: 500;
}

.pcard .more::after {
  content: "→";
  transition: transform .3s;
}

.pcard:hover .more::after {
  transform: translateX(5px);
}

/* 為何選擇（六宮格） */
.why-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
}

.why-card:hover {
  border-color: rgba(201, 160, 99, 0.55);
  box-shadow: var(--shadow-1);
  background: #FFFDFA;
}

.why-card .ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
}

/* 分欄圖文 */
.split-img {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.split-img::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.feature-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature .fn {
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--latin);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.feature h4 {
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.feature p {
  font-size: 14.2px;
  color: var(--muted);
}

/* 時間軸 */
.timeline {
  position: relative;
  margin-top: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--line));
}

.tl-item {
  position: relative;
  padding: 0 0 40px 48px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  background: var(--white);
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

.tl-item .yr {
  font-family: var(--latin);
  font-size: 1.5rem;
  color: var(--gold-deep);
  line-height: 1;
}

.tl-item h4 {
  font-size: 1.1rem;
  margin: 8px 0 4px;
}

.tl-item p {
  font-size: 14.4px;
  color: var(--muted);
}

/* 頁面 Hero（內頁） */
.page-hero {
  position: relative;
  padding: 96px 0 76px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background-size: cover;
  background-position: center;
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: .03em;
  font-weight: 800;
}

.page-hero .crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.page-hero .crumb a:hover {
  color: var(--gold-soft);
}

.page-hero p.lead {
  margin-top: 16px;
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
  font-weight: 300;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 14.6px;
}

table.compare th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 500;
  padding: 16px 20px;
  text-align: left;
  letter-spacing: .06em;
  font-size: 14.5px;
  white-space: nowrap;
}

table.compare td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--body);
}

table.compare tbody tr:nth-child(even) {
  background: var(--paper);
}

table.compare tbody tr:hover {
  background: #FFF9EF;
}

table.compare td:first-child {
  font-weight: 500;
  color: var(--navy-900);
  white-space: nowrap;
}

table.compare .hl {
  color: var(--gold-deep);
  font-weight: 600;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 8px;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy-900);
  font-weight: 600;
  transition: color .25s;
}

.faq-q:hover {
  color: var(--gold-deep);
}

.faq-q .pm {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.faq-q .pm::before,
.faq-q .pm::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform .3s var(--ease);
}

.faq-q .pm::before {
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
}

.faq-q .pm::after {
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
}

.faq-item.open .faq-q .pm::after {
  transform: scaleY(0);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a p {
  padding: 0 40px 26px 8px;
  font-size: 15px;
  color: var(--muted);
}

/* CTA 橫幅 */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  padding: 84px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 160, 99, 0.25);
  border-radius: 50%;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: 20px;
  top: -20px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(201, 160, 99, 0.18);
  border-radius: 50%;
}

.cta-in {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-in h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
}

.cta-in p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   頁腳
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-trust {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0;
}

.footer-trust-in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-brand .brand-word .cn {
  color: #fff;
}

.f-about p {
  margin: 20px 0 0;
  font-size: 13.6px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
}

.f-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.f-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.6px;
  color: rgba(255, 255, 255, .55);
  transition: color .25s, padding-left .25s;
}

.f-col a:hover {
  color: var(--gold-soft);
  padding-left: 4px;
}

.f-contact li {
  padding: 5px 0;
  font-size: 13.6px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  gap: 10px;
}

.f-contact .k {
  color: rgba(255, 255, 255, .35);
  flex: 0 0 auto;
}

.footer-license {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0 0;
}

.license-box {
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 26px;
  background: rgba(255, 255, 255, .02);
}

.license-box h5 {
  font-family: var(--sans);
  color: var(--gold-soft);
  font-size: 12.5px;
  letter-spacing: .18em;
  margin-bottom: 10px;
  font-weight: 600;
}

.license-box p {
  font-size: 12.8px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.6px;
  color: rgba(255, 255, 255, .38);
}

.footer-bottom a:hover {
  color: var(--gold-soft);
}

/* 風險披露 */
.risk-note {
  background: #04090f;
  color: rgba(255, 255, 255, .34);
  font-size: 12px;
  line-height: 1.85;
  padding: 26px 0 34px;
}

/* ==========================================================================
   動效
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.1s;
}

.reveal.d2 {
  transition-delay: 0.2s;
}

.reveal.d3 {
  transition-delay: 0.3s;
}

.reveal.d4 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   響應式
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .statbar-in {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat+.stat::before {
    display: none;
  }
}

@media (max-width: 860px) {

  .grid-3,
  .grid-6,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 560px;
    height: auto;
    padding: 130px 0 120px;
  }

  .hero-in {
    padding: 60px 0;
  }

  .topbar-l span.hide-m {
    display: none;
  }

  .cta-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    display: none;
  }

  .nav-cta .login {
    display: none;
  }
}

@media (max-width: 620px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .statbar-in {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: none;
  }

  .wrap,
  .wrap-wide {
    padding: 0 20px;
  }
}

/* 手機選單 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--navy-950);
  padding: 30px 26px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu .mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.mobile-menu .mm-close {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.mobile-menu a {
  display: block;
  padding: 15px 0;
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  letter-spacing: .04em;
}

.mobile-menu a.sub {
  padding-left: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, .55);
}

.mobile-menu .mm-cta {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

/* ==========================================================================
   平台下載專區
   ========================================================================== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid transparent;
  padding: 34px 30px 30px;
  transition: all 0.35s var(--ease);
}

.dl-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-2);
  transform: translateY(-5px);
}

.dl-card.is-web {
  background: linear-gradient(160deg, #FFFDF8, #FFF8EC);
  border-color: rgba(201, 160, 99, 0.42);
}

.dl-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.dl-ic {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.dl-head h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.dl-tag {
  font-family: var(--latin);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.dl-desc {
  font-size: 14.2px;
  color: var(--muted);
}

.dl-meta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.dl-meta li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.4px;
}

.dl-meta .k {
  flex: 0 0 80px;
  color: var(--muted);
}

.dl-meta .v {
  color: var(--navy-900);
  font-weight: 500;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.dl-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* 提示條 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 1200;
  width: calc(100% - 40px);
  max-width: 480px;
  background: var(--navy-900);
  color: #fff;
  border-left: 3px solid var(--gold);
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.75;
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.toast.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   開戶申請（分步表單）
   ========================================================================== */
.acct-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.acct-main {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 42px 44px 40px;
}

/* 步驟條 */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  padding-bottom: 14px;
}

.steps li i {
  font-family: var(--latin);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s;
}

.steps li span {
  font-size: 13.6px;
  color: var(--muted);
  transition: color 0.3s;
}

.steps li.is-on i,
.steps li.is-on span {
  color: var(--navy-900);
}

.steps li.is-on span {
  font-weight: 600;
}

.steps li.is-done i,
.steps li.is-done span {
  color: var(--gold-deep);
}

.steps-bar {
  height: 2px;
  background: var(--line);
  margin-bottom: 38px;
}

.steps-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.45s var(--ease);
}

/* 面板 */
.step-panel {
  display: none;
}

.step-panel.is-on {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.panel-sub {
  font-size: 14.4px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* 選項卡 */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pick {
  position: relative;
  display: block;
  cursor: pointer;
}

.pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pick-in {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.pick-in b {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.pick-in i {
  display: block;
  font-style: normal;
  font-size: 13.4px;
  color: var(--body);
}

.pick-in em {
  display: block;
  font-style: normal;
  font-size: 12.6px;
  color: var(--muted);
  margin-top: 8px;
}

.pick:hover .pick-in {
  border-color: rgba(201, 160, 99, 0.6);
}

.pick input:checked+.pick-in {
  border-color: var(--gold);
  background: #FFFDF8;
  box-shadow: inset 3px 0 0 var(--gold);
}

.pick input:focus-visible+.pick-in {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* 欄位 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 24px;
}

.field-full {
  grid-column: 1 / -1;
}

.field>label {
  display: block;
  font-size: 13.6px;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  margin-bottom: 9px;
}

.field>label>em,
.q-title em,
.check-line em {
  font-style: normal;
  color: var(--gold-deep);
  margin-left: 3px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14.6px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%237787A0' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.14);
}

.field input.is-error,
.field select.is-error {
  border-color: #C0392B;
  background: #FFF7F6;
}

.field .hint {
  display: block;
  margin-top: 8px;
  font-size: 12.6px;
  color: var(--muted);
  line-height: 1.7;
}

/* 上傳 */
.upload-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 172px;
  padding: 24px;
  border: 1.5px dashed var(--line);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.upload-box:hover {
  border-color: var(--gold);
  background: #FFFDF8;
}

.upload-box.is-error {
  border-color: #C0392B;
  background: #FFF7F6;
}

.upload-box input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.upload-box .up-ic {
  width: 34px;
  height: 34px;
}

.upload-box .up-t {
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 500;
}

.upload-box .up-s {
  font-size: 12.4px;
  color: var(--muted);
  line-height: 1.7;
}

.upload-box .up-file {
  font-size: 12.6px;
  color: var(--gold-deep);
  font-weight: 500;
  word-break: break-all;
}

/* 問題區塊 */
.q-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.q-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.q-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 16px;
}

.check-grid {
  display: grid;
  gap: 13px;
}

.check-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.2px;
  color: var(--body);
  cursor: pointer;
  line-height: 1.7;
}

.check-line input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #C9A063;
  cursor: pointer;
}

.check-line a {
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(201, 160, 99, 0.5);
}

.check-line a:hover {
  color: var(--navy-900);
}

/* 表單導航 */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* 摘要 */
.summary {
  border: 1px solid var(--line);
  background: var(--paper);
}

.sum-head {
  background: var(--navy-900);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 14px 22px;
}

.sum-row {
  display: flex;
  gap: 20px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.2px;
  background: var(--white);
}

.sum-row:last-child {
  border-bottom: 0;
}

.sum-row .k {
  flex: 0 0 156px;
  color: var(--muted);
}

.sum-row .v {
  color: var(--navy-900);
  font-weight: 500;
}

/* 提交成功 */
.form-success {
  text-align: center;
  padding: 40px 10px 10px;
}

.form-success .ok-ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 26px;
  display: block;
}

.form-success h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.form-success>p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

.form-success>p.note {
  margin-top: 30px;
  font-size: 12.6px;
  color: var(--muted);
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  line-height: 1.9;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 34px 0 0;
}

.success-meta>div {
  background: var(--white);
  padding: 22px 16px;
}

.success-meta .k {
  display: block;
  font-size: 12.6px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.success-meta .v {
  font-family: var(--latin);
  font-size: 1.05rem;
  color: var(--navy-900);
}

.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* 側欄 */
.acct-aside {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.aside-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px 26px;
}

.aside-card h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.aside-list {
  display: grid;
  gap: 18px;
}

.aside-list li {
  display: flex;
  gap: 14px;
}

.aside-list .n {
  font-family: var(--latin);
  font-size: 0.8rem;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 160, 99, 0.5);
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
}

.aside-list b {
  display: block;
  font-size: 14.4px;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 4px;
}

.aside-list p {
  font-size: 13.2px;
  color: var(--muted);
  line-height: 1.8;
}

.aside-kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.8px;
}

.aside-kv li:last-child {
  border-bottom: 0;
}

.aside-kv .k {
  color: rgba(255, 255, 255, 0.5);
}

.aside-kv .v {
  color: #fff;
  font-weight: 500;
}

.aside-contact li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
}

.aside-contact .k {
  color: var(--muted);
  flex: 0 0 46px;
}

.aside-contact a {
  color: var(--navy-900);
  font-weight: 500;
}

.aside-contact a:hover {
  color: var(--gold-deep);
}

.aside-p {
  font-size: 13.4px;
  color: var(--muted);
  line-height: 1.85;
}

.navy-card {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  border-color: transparent;
}

.navy-card h3 {
  color: #fff;
}

.navy-card .ph {
  color: var(--gold-soft);
  border-bottom-color: rgba(227, 199, 154, 0.7);
}

.warn-card {
  border-left: 3px solid var(--gold);
  background: #FFFDF8;
}

@media (max-width: 1180px) {
  .acct-layout {
    grid-template-columns: 1fr;
  }

  .acct-aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .acct-main {
    padding: 30px 24px;
  }

  .acct-aside {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .pick-grid {
    grid-template-columns: 1fr;
  }

  .steps li span {
    font-size: 11.6px;
    letter-spacing: 0;
  }

  .steps li i {
    font-size: 11.5px;
  }

  .success-meta {
    grid-template-columns: 1fr;
  }

  .sum-row {
    flex-direction: column;
    gap: 4px;
  }

  .sum-row .k {
    flex: none;
  }
}

@media (max-width: 620px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-nav .btn {
    width: 100%;
  }
}