
:root{
  --primary:#009688;
  --primary-2:#00bfa5;
  --ink:#033333;
  --muted:#6b8a8a;
  --bg:#f6fbfb;
  --white:#ffffff;
}
html,body{font-family:'Noto Sans TC','Microsoft JhengHei',system-ui,-apple-system,sans-serif;color:var(--ink);}
body{background:var(--bg);}

.hero{position:relative;color:#fff;min-height:70vh;display:flex;align-items:center;}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,150,136,.75),rgba(0,191,165,.55));}
.hero .hero-img{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.9);}
.hero .container{position:relative;z-index:2;}
.hero h1{font-weight:800;letter-spacing:.02em;}
.hero p.lead{font-size:1.125rem;opacity:.95;}

.btn-pill{border-radius:8px;padding:.7rem 1.25rem;font-weight:700;}
.btn-primary{background:var(--primary);border-color:var(--primary);}
.btn-primary:hover{background:var(--primary-2);border-color:var(--primary-2);}

.btn-hero-secondary{
  background:#fff;
  color:var(--primary);
  border:1px solid rgba(255,255,255,.92);
}
.btn-hero-secondary:hover,
.btn-hero-secondary:focus{
  background:#f2fffc;
  color:#007f72;
  border-color:#f2fffc;
}
.hero-cta-group{flex-wrap:wrap;}
.hero-more-wrap{padding-left:2px;}
.hero-more-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  line-height:1.5;
}
.hero-more-link::before{
  content:"↓";
  font-size:1rem;
  line-height:1;
}
.hero-more-link:hover,
.hero-more-link:focus{
  color:#fff;
  text-decoration:underline;
}
.hero-more-link-dark{
  color:var(--primary);
}
.hero-more-link-dark:hover,
.hero-more-link-dark:focus{
  color:var(--primary-2);
}
@media (max-width: 767.98px){
  .hero-cta-group .btn{
    width:100%;
  }
}


.section{padding:72px 0;background:#fff;}
.section.alt{background:#f0f7f7;}
.section-title{font-weight:800;letter-spacing:.02em;margin-bottom:1rem;}
.section-sub{color:var(--muted);margin-bottom:2rem;}

.icon-card{background:#fff;border-radius:1rem;padding:1.25rem;box-shadow:0 8px 24px rgba(0,0,0,.06);}

.article-card{background:#fff;border-radius:1rem;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.07);height:100%;display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease;}
.article-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,.10);}
.article-card img{width:100%;height:100%;object-fit:cover;}
.article-card .body{padding:1rem 1rem 1.25rem;flex:1 1 auto;}
.article-card .title{font-weight:700;font-size:1.05rem;margin:0 0 .5rem;}
.article-card .meta{color:#6c8c8c;font-size:.9rem;}

/* 線條 icon 樣式（單色，金融沉穩） */
.lineicon-wrap{width:56px;height:56px;border-radius:50%;border:2px solid var(--primary);display:flex;align-items:center;justify-content:center;transition:transform .18s ease, box-shadow .18s ease;}
.lineicon-wrap.sm{width:40px;height:40px;}
.lineicon-wrap:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.08);}
.lineicon{width:22px;height:22px;border:2px solid var(--primary);border-radius:4px;}

/* 服務卡（區塊3） */
.service-card{background:#fff;border-radius:1rem;padding:1.25rem;box-shadow:0 12px 32px rgba(0,0,0,.06);display:flex;flex-direction:column;align-items:flex-start;transition:transform .18s ease, box-shadow .18s ease;}
.service-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.1);}
.svc-title{margin-top:12px;font-weight:800;font-size:1.1rem;}
.svc-desc{color:var(--muted);margin:6px 0 0;}

/* 承諾卡（區塊4） */
.promise-card{background:#fff;border-radius:1rem;padding:1.25rem;box-shadow:0 10px 28px rgba(0,0,0,.06);transition:transform .18s ease, box-shadow .18s ease;}
.promise-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,.10);}
.pm-title{margin-top:10px;font-weight:800;}
.pm-desc{color:var(--muted);margin-top:4px;}

/* 流程條（區塊5） */
.flow-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(1,1fr);gap:12px;}
.flow-step{display:flex;align-items:flex-start;gap:12px;background:#fff;border-radius:12px;padding:12px;box-shadow:0 6px 16px rgba(0,0,0,.05);transition:transform .18s ease, box-shadow .18s ease;}
.flow-step:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.08);}
.flow-title{font-weight:800;}
.flow-desc{color:var(--muted);}
@media(min-width:768px){.flow-steps{grid-template-columns:repeat(2,1fr);}}
@media(min-width:992px){.flow-steps{grid-template-columns:repeat(4,1fr);}}

/* 見證卡（區塊6） */
.testimonial-card{background:#fff;border-radius:1rem;padding:1.25rem;box-shadow:0 10px 28px rgba(0,0,0,.06);transition:transform .18s ease, box-shadow .18s ease;}
.testimonial-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,.10);}
.tst-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.avatar{width:36px;height:36px;border-radius:50%;border:2px solid var(--primary);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--primary);}
.tst-body{color:var(--ink);}

/* feature_list 基本樣式 */
.feature-row{padding-top:8px;padding-bottom:8px}
.feature-img{width:100%;height:auto;object-fit:cover}
.feature-img-wrap{overflow:hidden;border-radius:12px}
.feature-body .lead{color:var(--muted)}

/* footer */
.footer{background:#033;color:#cfe8e6;padding:40px 0;}
.footer a{color:#aef1e5;text-decoration:none;}
.footer a:hover{text-decoration:underline;}

/* 修正 */
.hero {
  min-height: 64vh;
}
@media (min-width: 1200px) {
  .display-5 {
    font-size: 2.7rem;
  }
}

/* 返回首頁按鈕：品牌粉色 + 小型圓 pill */
.return-home-btn {
  display: inline-block;
  padding: .45rem 1rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: 9999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.return-home-btn:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  text-decoration: none;
}

#contactCorp {
  white-space: pre-line;
}

/* === team_grid 顧問團隊 === */
.team-card{
  background:#fff;
  border-radius:1rem;
  padding:1.25rem;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  height: 100%;
  display:flex;
  flex-direction:column;
  /*gap:.9rem;*/
  gap:.2rem;
  transition:transform .18s ease, box-shadow .18s ease;
}
.team-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.team-head{
  display:flex;
  align-items:center;
  gap:12px;
}

.team-avatar{
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  /*border:2px solid var(--primary);*/
  /*flex:0 0 auto;*/
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.team-avatar-fallback{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #eef4f4;
  color: #29673D;
  font-size: 1.6rem;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.team-meta{min-width:0;}

.team-bio{
  color:var(--ink);
  line-height:1.6;
  font-size:.98rem;
}

.team-actions{
  margin-top:auto;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

.team-name{
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: .3rem;
}

.team-name-en{
  font-size: .9rem;
  color: #6c757d;
  margin-top: -2px;
}

.team-role{
  font-size: .95rem;
  font-weight: 700;
  color: #29673D;
  margin-top: .3rem;
}

.team-bio{
  font-size: .95rem;
  line-height: 1.6;
  margin-top: .3rem;
  color: #444;
  white-space: pre-line;
  text-align: center;
}

/* 讓按鈕區塊貼齊卡片底部 */
.team-actions{
  margin-top: auto !important;
  padding-top: .6rem;
}
.team-actions .btn{
  width: 100%;
}

/* 顧問區塊底部的大按鈕 */
.team-main-btn{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
}
.team-main-btn{
  margin-top: 2rem;
}


/* 顧問卡片內按鈕：hover 微動畫（質感版） */
.team-actions .btn{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}

.team-actions .btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  filter: brightness(1.03);
}

.team-actions .btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}


/* 區塊底部大按鈕：hover 微動畫（更有層次） */
.team-main-btn{
  transition: transform .20s ease, box-shadow .20s ease, filter .20s ease;
  will-change: transform;
}

.team-main-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  filter: brightness(1.04);
}

.team-main-btn:active{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}


.team-actions .btn:focus-visible,
.team-main-btn:focus-visible{
  outline: 3px solid rgba(41,103,61,.25);
  outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce){
  .team-actions .btn,
  .team-main-btn{
    transition: none;
  }
  .team-actions .btn:hover,
  .team-main-btn:hover{
    transform: none;
    box-shadow: none;
    filter: none;
  }
}

/* ===============================
   小知識文章專用按鈕
================================ */

.article-btn {
  display: block;
  width: 100%;
  text-align: center;

  padding: 12px 18px;
  border-radius: 8px;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;

  color: #186754;
  background: #f3f8f6;
  border: 1px solid rgba(24, 103, 84, 0.25);

  transition: all .25s ease;
}

/* Hover 效果 */
.article-btn:hover {
  background: #186754;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 103, 84, 0.25);
  text-decoration: none;
}

/* 手機版點擊區更大 */
@media (max-width: 768px) {
  .article-btn {
    padding: 14px 18px;
    font-size: 16px;
  }
}

/* ===============================
   小知識卡片 Hover 效果
================================ */

/* 整張卡片 */
.article-card {
  transition: all .25s ease;
  border-radius: 18px;
  overflow: hidden;
}

/* Hover 效果 */
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* 圖片微放大 */
.article-card img {
  transition: transform .4s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

/* 按鈕跟著亮 */
.article-card:hover .article-btn {
  background: #186754;
  color: #fff;
  border-color: #186754;
  box-shadow: 0 6px 16px rgba(24, 103, 84, 0.25);
}

.article-img-link {
  display: block;
  overflow: hidden;
}

.article-img-link:hover {
  text-decoration: none;
}


/* ===============================
   quiz_grid 心理測驗卡片（不影響小知識/顧問）
================================ */

.quiz-card{
  background:#fff;
  border-radius:1rem;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.07);
  height:100%;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}

.quiz-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.quiz-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .4s ease;
}

.quiz-card:hover img{
  transform: scale(1.05);
}

.quiz-card .body{
  padding:1rem 1rem 1.25rem;
  flex:1 1 auto;
}

.quiz-card .title{
  font-weight:700;
  font-size:1.05rem;
  margin:0 0 .5rem;
}

.quiz-card .meta{
  color:#6c8c8c;
  font-size:.9rem;
}

.quiz-img-link{
  display:block;
  overflow:hidden;
}
.quiz-img-link:hover{ text-decoration:none; }

/* 「點我開始」按鈕（quiz 專用） */
.quiz-btn{
  display:block;
  width:100%;
  text-align:center;

  padding:12px 18px;
  border-radius:8px;

  font-size:15px;
  font-weight:500;
  letter-spacing:.5px;

  color:#186754;
  background:#f3f8f6;
  border:1px solid rgba(24, 103, 84, 0.25);

  transition: all .25s ease;
}

.quiz-btn:hover{
  background:#186754;
  color:#fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 103, 84, 0.25);
  text-decoration:none;
}

/* 卡片 hover → 按鈕一起亮 */
.quiz-card:hover .quiz-btn{
  background:#186754;
  color:#fff;
  border-color:#186754;
  box-shadow: 0 6px 16px rgba(24, 103, 84, 0.25);
}

/* 底部大按鈕（查看更多互動） */
.quiz-main-btn{
  width:100%;
  max-width:520px;
  margin:0 auto;
  display:block;
  border-radius:8px;
  font-size:1.05rem;
  padding:0.85rem 1.5rem;

  transition: transform .20s ease, box-shadow .20s ease, filter .20s ease;
  will-change: transform;
}
.quiz-main-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  filter: brightness(1.04);
}
.quiz-main-btn:active{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
@media (max-width: 768px){
  .quiz-btn{ padding:14px 18px; font-size:16px; }
}
@media (prefers-reduced-motion: reduce){
  .quiz-card, .quiz-btn, .quiz-main-btn{ transition:none; }
  .quiz-card:hover{ transform:none; box-shadow:0 10px 28px rgba(0,0,0,.07); }
  .quiz-card:hover img{ transform:none; }
  .quiz-btn:hover, .quiz-main-btn:hover{ transform:none; box-shadow:none; filter:none; }
}


/* =========================
   Summernote 文章內：心理測驗 + 分享文案區塊
========================= */
.sn-quiz{ border:1px solid rgba(0,0,0,.10); border-radius:16px; padding:16px; margin:16px 0; background:#fff; }
.sn-quiz__opts{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.sn-quiz__opt{
  text-align:left; width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px; padding:12px 12px;
  background:#fff; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sn-quiz__opt:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.sn-quiz__opt.is-active{ border-color: rgba(0,0,0,.30); box-shadow: 0 10px 24px rgba(0,0,0,.10); }

.sn-quiz__key{ display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; border-radius:10px; border:1px solid rgba(0,0,0,.18); margin-right:8px; font-weight:700; }
.sn-quiz__results{ margin-top:14px; padding-top:14px; border-top:1px dashed rgba(0,0,0,.15); }

/* 分享文案（結果頁下方） */
.quiz-share{
  margin-top:18px;
  padding:16px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background: rgba(0,0,0,.02);
}
.quiz-share__title{ font-weight:700; margin-bottom:10px; line-height:1.5; }
.quiz-share__auto{
  font-size:15px;
  line-height:1.7;
  margin-bottom:12px;
  white-space:pre-line;
  opacity:.92;
}
.quiz-share__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.quiz-share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.16);
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.quiz-share-btn:hover{
  transform: translateY(-1px);
  background-color: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.24);
}


/* ====== Quiz Share buttons (IG) ====== */
.quiz-share .quiz-share-btn.ig{
  color:#fff;
  border:0;
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.quiz-share .quiz-share-btn.ig:hover{
  filter: brightness(1.03);
}


/* quiz-share buttons: copy / copylink / line / fb / ig */
.quiz-share-btn.copylink{ }
.quiz-share-btn.ig{ }

/* ===============================
   Toast（取代 alert / confirm）
=============================== */
.toast-wrap{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(92vw, 520px);
  pointer-events: none;
}

.toast-msg{
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(0,0,0,.82);
  color: #fff;

  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);

  animation: toastIn .18s ease both;
}

.toast-text{
  font-size: .95rem;
  line-height: 1.35;
}

.toast-action{
  appearance: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 9999px;
  padding: .38rem .75rem;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.toast-action:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.toast-close{
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.toast-out{
  animation: toastOut .18s ease both;
}

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

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

@media (prefers-reduced-motion: reduce){
  .toast-msg{animation:none;}
  .toast-out{animation:none;}
  .toast-action{transition:none;}
}

/* Header Nav */
.navbar { z-index: 999; }
.navbar-nav .nav-link { font-weight: 500; margin-left: 10px; }
.navbar .btn { border-radius: 20px; }

/* Footer */
.footer a { color: #333; margin: 0 8px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Header Navigation ===== */
.fudeki-topnav{
  position: sticky;
  top: 0;
  z-index: 1030;
}

html{
  scroll-padding-top: 90px;
}

.fudeki-topnav .navbar-brand{
  font-weight: 800;
}

.fudeki-topnav .nav-link{
  font-weight: 500;
}

.fudeki-topnav .dropdown-menu{
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.fudeki-topnav .dropdown-item{
  white-space: nowrap;
}

/* 手機版：避免超出畫面 */
@media (max-width: 991.98px){
  .fudeki-topnav .dropdown-menu{
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }

  .fudeki-topnav .dropdown-item{
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
  }
}

/* ===== Footer nav ===== */
.footer-nav{
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1rem;
}

.footer-nav a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus{
  color: #ffffff;
  text-decoration: underline;
}

.footer #contactPhone{
  color: rgba(255,255,255,.92);
}

.footer #contactPhone:hover,
.footer #contactPhone:focus{
  color: #ffffff;
}



/* ===== Loan entry block ===== */
.loan-entry-section{padding-top:16px;}
.loan-entry-card{
  background:linear-gradient(135deg,#f5f9ff 0%,#ffffff 100%);
  border:1px solid rgba(40,93,179,.12);
  border-radius:24px;
  padding:32px;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
}
.loan-entry-badge{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 12px;
  border-radius:999px;
  background:#eef4ff;
  color:#2c5fb8;
  font-weight:700;
  font-size:.92rem;
}

/* ===== Loan calculator ===== */
.loan-page{background:#f4f8f7;}
.loan-hero{padding:42px 0 24px;}
.loan-shell{max-width:1160px;margin:0 auto;}
.loan-card,.loan-note-card,.loan-tips-card,.loan-faq-card{
  background:#fff;
  border:1px solid rgba(3,51,51,.09);
  border-radius:24px;
  box-shadow:0 12px 32px rgba(3,51,51,.06);
}
.loan-card{padding:28px;}
.loan-note-card,.loan-tips-card,.loan-faq-card{padding:24px;}
.loan-hero-panel{
  background:linear-gradient(135deg,#f7fbfb 0%,#eef7f5 100%);
  border:1px solid rgba(0,150,136,.14);
  border-radius:28px;
  padding:34px;
  box-shadow:0 12px 30px rgba(3,51,51,.05);
}
.loan-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:7px 14px;
  border-radius:999px;
  background:rgba(0,150,136,.10);
  color:#006b61;
  font-weight:800;
  font-size:.92rem;
}
.loan-hero-title{font-size:clamp(2rem,4vw,2.2rem);font-weight:800;line-height:1.18;margin-bottom:14px;color:#033333;max-width:760px;}
.loan-hero-sub{font-size:1.05rem;color:#46605f;max-width:820px;line-height:1.9;}
.loan-highlight-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}
.loan-highlight-item{background:#fff;border:1px solid rgba(0,150,136,.18);border-radius:999px;padding:8px 14px;font-weight:700;color:#006b61;}
.loan-note-card-soft{background:rgba(255,255,255,.82);backdrop-filter:blur(4px);}

.loan-live-card{
  margin-top:20px;
  background:#fff;
  border:1px solid rgba(0,150,136,.16);
  border-radius:22px;
  padding:20px 22px;
  box-shadow:0 10px 24px rgba(3,51,51,.06);
  max-width:520px;
}
.loan-live-label{
  font-size:1rem;
  font-weight:800;
  color:#006b61;
  margin-bottom:6px;
}
.loan-live-value{
  font-size:clamp(2.15rem,5vw,3.4rem);
  line-height:1.05;
  font-weight:800;
  color:#033333;
  letter-spacing:-.02em;
}
.loan-live-caption{
  margin-top:8px;
  color:#5d6f6d;
  font-size:.95rem;
  line-height:1.7;
}
.loan-live-side{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,150,136,.12);
}
.loan-live-side-label{
  font-size:.86rem;
  color:#6b7d7b;
  margin-bottom:4px;
}
.loan-live-side-value{
  font-size:1rem;
  font-weight:700;
  color:#214240;
}
.loan-live-note{
  margin-top:12px;
  font-size:1rem;
  line-height:1.8;
  color:#244846;
}
.loan-live-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}
.loan-form-label{font-weight:700;color:#24324a;margin-bottom:8px;}
.loan-form-text{color:#6b7280;font-size:.92rem;margin-top:6px;}
.loan-result-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;}
.loan-result-title{font-size:1.25rem;font-weight:800;color:#033333;margin-bottom:4px;}
.loan-result-sub{color:#6b7280;margin:0;}
.loan-method-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:rgba(0,150,136,.10);color:#006b61;font-weight:700;}
.loan-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px;}
.loan-result-box{border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;background:#fbfdff;}
.loan-result-label{font-size:.92rem;color:#6b7280;margin-bottom:8px;}
.loan-result-value{font-size:clamp(1.35rem,3vw,2rem);font-weight:800;color:#033333;line-height:1.2;}
.loan-result-box.featured{background:linear-gradient(135deg,#2c5fb8 0%,#3d74d9 100%);border-color:transparent;}
.loan-result-box.featured .loan-result-label,.loan-result-box.featured .loan-result-value{color:#fff;}
.loan-schedule-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 10px;}
.loan-schedule-table-wrap{overflow:auto;border:1px solid rgba(15,23,42,.08);border-radius:18px;}
.table-loan{margin-bottom:0;min-width:640px;}
.table-loan thead th{background:#f4f7fb;color:#344256;font-weight:700;font-size:.95rem;border-bottom:1px solid rgba(15,23,42,.08);}
.table-loan td{vertical-align:middle;color:#334155;}
.loan-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px;}
.loan-kpi{padding:16px;border-radius:18px;background:#f7f9fc;border:1px solid rgba(15,23,42,.06);}
.loan-kpi-label{font-size:.9rem;color:#6b7280;margin-bottom:8px;}
.loan-kpi-value{font-size:1.1rem;font-weight:800;color:#033333;}
.loan-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;}
.loan-disclaimer{font-size:.92rem;color:#6b7280;margin-top:18px;line-height:1.7;}
.loan-presets{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.loan-preset-btn{border-radius:999px;border-color:rgba(0,150,136,.35);color:#006b61;}
.loan-preset-btn:hover,.loan-preset-btn:focus{background:#009688;border-color:#009688;color:#fff;}
.loan-tip-list,.loan-faq-list{margin:0;padding-left:1.15rem;color:#425b5b;line-height:1.8;}
.loan-small{font-size:.92rem;color:#5b6b6b;}
@media (max-width: 991.98px){
  .loan-result-grid,.loan-kpis{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
  .loan-card,.loan-note-card,.loan-tips-card,.loan-faq-card,.loan-entry-card,.loan-hero-panel{padding:20px;}
  .loan-result-top,.loan-schedule-head{flex-direction:column;align-items:flex-start;}
}

@media (max-width: 767.98px){
  .loan-live-card{padding:18px;}
  .loan-live-side{width:100%;min-width:0;}
  .loan-live-actions .btn{width:100%;}
  .loan-live-value{font-size:2.4rem;}
}


/* ===== Loan lead modal ===== */
.loan-precise-cta{min-width:260px;}
.loan-modal{border:0;border-radius:24px;overflow:hidden;box-shadow:0 18px 42px rgba(3,51,51,.18);}
.loan-modal .modal-header,.loan-modal .modal-body{padding-left:24px;padding-right:24px;}
.loan-modal-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,150,136,.10);
  color:#006b61;
  font-weight:800;
  font-size:.88rem;
}
.loan-modal-sub{color:#5e7271;line-height:1.8;}
.loan-gender-group{display:flex;gap:10px;flex-wrap:wrap;}
.loan-gender-group .form-check{min-width:120px;background:#fff;}
.loan-policy-text{font-size:.92rem;line-height:1.7;color:#5b6b6b;}
.loan-policy-text a{font-weight:700;color:#006b61;text-decoration:none;}
.loan-policy-text a:hover{text-decoration:underline;}
.loan-form-alert{border-radius:16px;}
.loan-form-success{
  text-align:center;
  padding:24px 8px 10px;
}
.loan-form-success-icon{
  width:64px;
  height:64px;
  margin:0 auto 14px;
  border-radius:50%;
  background:rgba(0,150,136,.12);
  color:#006b61;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  font-weight:800;
}
@media (max-width: 767.98px){
  .loan-precise-cta{width:100%;}
  .loan-gender-group .form-check{width:100%;}
}

/* Hero 主按鈕區 */
.hero-main-actions{
  align-items:center;
}

/* 免費貸款試算按鈕 */
.hero-loan-btn{
  background:#ffc107;
  border-color:#ffc107;
  color:#212529;
  font-weight:800;
}

.hero-loan-btn:hover,
.hero-loan-btn:focus{
  background:#ffcd39;
  border-color:#ffcd39;
  color:#212529;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

/* Hero 下方文字連結 */
.hero-sub-actions{
  display:block;
}

.hero-more-link{
  display:inline-block;
  color:#ffffff;
  font-weight:700;
  text-decoration:none;
  line-height:1.6;
  opacity:.96;
  transition:opacity .18s ease, transform .18s ease;
}

.hero-more-link:hover,
.hero-more-link:focus{
  color:#ffffff;
  opacity:1;
  text-decoration:none;
  transform:translateY(-1px);
}

/* 品牌區塊按鈕 */
.brand-main-actions{
  align-items:center;
}

/* 品牌區塊的次要按鈕更穩定一點 */
.brand-main-actions .btn-outline-secondary{
  border-width:1.5px;
  font-weight:700;
}

/* Hero / Brand 按鈕的共同微動效 */
.hero-main-actions .btn,
.brand-main-actions .btn{
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.hero-main-actions .btn:hover,
.brand-main-actions .btn:hover{
  transform:translateY(-1px);
}

/* 手機版調整 */
@media (max-width: 767.98px){
  .hero-main-actions,
  .brand-main-actions{
    gap:.75rem !important;
  }

  .hero-main-actions .btn,
  .brand-main-actions .btn{
    width:100%;
    justify-content:center;
  }

  .hero-sub-actions{
    margin-top:1rem !important;
  }

  .hero-more-link{
    font-size:1rem;
    line-height:1.7;
  }
}

/* ===== Home Loan Calculator ===== */
.loan-home-section{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;}
.loan-home-copy,.loan-home-form-card{background:#fff;border-radius:24px;padding:30px 30px;box-shadow:0 12px 30px rgba(3,51,51,.05);height:100%;}
.loan-home-copy{display:flex;}
.loan-home-copy-inner{display:flex;flex-direction:column;justify-content:flex-start;gap:2px;width:100%;min-height:100%;}
.loan-home-intro{margin-bottom:10px;}
.loan-home-section-title{margin:0 0 10px;font-size:2rem;line-height:1.2;font-weight:900;color:#143f49;}
.loan-home-section-sub{margin:0;color:#607171;font-size:1.05rem;line-height:1.85;}
.loan-home-feature-card{display:flex;gap:18px;align-items:flex-start;padding:18px 0;border-top:1px solid rgba(3,51,51,.08);}
.loan-home-feature-card--first{padding-top:18px;}
.loan-home-feature-icon{width:96px;min-width:96px;height:96px;border-radius:24px;background:linear-gradient(135deg,rgba(0,150,136,.16),rgba(0,191,165,.06));color:#1c7f77;display:flex;align-items:center;justify-content:center;}
.loan-home-feature-icon svg{width:58px;height:58px;}
.loan-home-feature-icon--alt{background:linear-gradient(135deg,rgba(3,51,51,.08),rgba(0,150,136,.05));color:#335f5f;}
.loan-home-feature-title{font-size:1.55rem;line-height:1.3;font-weight:800;margin:4px 0 8px;color:#1f4f5a;}
.loan-home-feature-text{margin:0;color:#4d6464;line-height:1.9;font-size:1rem;}
.loan-home-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
button.loan-home-tag{appearance:none;border:1px solid rgba(0,150,136,.14);background:#f3fbfb;color:#1d6f69;display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;font-size:.92rem;font-weight:700;line-height:1.2;transition:all .2s ease;}
button.loan-home-tag:hover,button.loan-home-tag:focus{border-color:rgba(0,150,136,.34);background:#e8f7f6;color:#145b56;box-shadow:none;outline:none;}
button.loan-home-tag.is-active{background:rgba(0,150,136,.12);border-color:rgba(0,150,136,.38);color:#0f7068;}
.loan-home-note{margin:14px 0 0;color:#6b7777;font-size:.92rem;line-height:1.8;}
.loan-home-label{font-weight:800;color:var(--ink);margin-bottom:8px;}
.loan-home-input-group .form-control,.loan-home-input-group .input-group-text{border:1px solid rgba(3,51,51,.16);border-radius:16px;min-height:58px;background:#fff;}
.loan-home-input-group .input-group-text{border-top-right-radius:0;border-bottom-right-radius:0;background:#f7fbfb;color:#334;min-width:72px;justify-content:center;font-weight:700;}
.loan-home-input-group .form-control + .input-group-text{border-radius:0 16px 16px 0;min-width:54px;}
.loan-home-input-group .form-control{box-shadow:none;color:#223;}
.loan-home-input-group .form-control:focus{border-color:rgba(0,150,136,.5);box-shadow:0 0 0 .2rem rgba(0,150,136,.10);}
.loan-home-help{margin-top:8px;color:#7a8686;font-size:.94rem;}
.loan-home-result-input-group .form-control{font-size:2rem;line-height:1.15;font-weight:800;color:#0f7068;background:#fff;}
.loan-home-result-input-group .form-control[readonly],.loan-home-result-input-group .input-group-text{background:#fff;}
.loan-home-cta-copy{margin-top:8px;margin-bottom:14px;}
.loan-home-cta-title{font-size:1.5rem;line-height:1.35;font-weight:900;color:#143f49;}
.loan-home-cta-sub{margin-top:6px;font-size:.98rem;line-height:1.8;color:#677575;}
.loan-home-actions{display:flex;flex-wrap:wrap;gap:12px;}
.loan-home-actions .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;}
.loan-home-cta-alt{color:#3a2a00;font-weight:800;font-size:1rem;padding-left:1.35rem;padding-right:1.35rem;}
.loan-modal-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef7f5;color:#1e5b57;font-size:12px;font-weight:800;margin-bottom:8px;}
.loan-modal-sub{color:#667676;font-size:.95rem;}
.loan-modal-trust-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.loan-modal-trust-tag{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef7f5;color:#1e5b57;font-size:12px;line-height:1.4;font-weight:700;}
.loan-gender-group{display:flex;gap:10px;flex-wrap:wrap;}
.loan-policy-text{color:#687878;font-size:.9rem;line-height:1.7;}
.loan-form-success{text-align:center;padding:14px 0 6px;}
.loan-form-success-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#eef7f5;color:#17806d;font-size:1.8rem;font-weight:900;}

/* ===== services_block2 ===== */
.service-card2{background:#fff;border-radius:18px;padding:18px 18px 16px;box-shadow:0 12px 28px rgba(3,51,51,.06);display:flex;flex-direction:column;border:1px solid rgba(3,51,51,.05);}
.service-card2-body{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;}
.service-card2-title{font-size:1.55rem;line-height:1.25;font-weight:800;color:#143f49;margin:0 0 12px;}
.service-card2-media{width:100%;display:flex;justify-content:center;align-items:center;min-height:110px;margin-bottom:8px;}
.service-card2-media img{max-width:100%;max-height:100px;object-fit:contain;}
.service-card2-desc{color:#516666;line-height:1.75;font-size:.98rem;margin:0;}
.service-card2-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
.service-card2-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;font-size:.95rem;font-weight:800;}
.service-card2-btn--ghost{background:#0d5d67;border:1px solid #0d5d67;color:#fff;}
.service-card2-btn--ghost:hover{color:#fff;opacity:.92;}
.service-card2-btn--primary{background:#157d74;border:1px solid #157d74;color:#fff;}
.service-card2-btn--primary:hover{color:#fff;opacity:.92;}
.service-card2-cta{background:linear-gradient(145deg,#0d4f7a,#0d6381);color:#fff;border:0;}
.service-card2-cta-inner{height:100%;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}
.service-card2-cta-title{font-size:1.75rem;line-height:1.25;font-weight:900;margin:0 0 10px;}
.service-card2-cta-desc{color:rgba(255,255,255,.88);line-height:1.8;font-size:.98rem;margin:0 0 18px;}
.service-card2-cta-btn{background:#f5b700;border:1px solid #f5b700;color:#2f2a00;min-height:48px;border-radius:12px;padding:.8rem 1.4rem;font-weight:900;}
.service-card2-cta-btn:hover{color:#2f2a00;opacity:.94;}

@media (max-width: 991.98px){
  .loan-home-copy,.loan-home-form-card{padding:24px 22px;}
  .loan-home-copy-inner{justify-content:flex-start;}
  .loan-home-section-title{font-size:1.85rem;}
}
@media (max-width: 767.98px){
  .loan-home-copy,.loan-home-form-card{padding:20px 18px;border-radius:20px;}
  .loan-home-section-title{font-size:1.65rem;}
  .loan-home-section-sub{font-size:1rem;line-height:1.75;}
  .loan-home-feature-card{gap:14px;padding:16px 0;}
  .loan-home-feature-icon{width:84px;min-width:84px;height:84px;border-radius:20px;}
  .loan-home-feature-icon svg{width:46px;height:46px;}
  .loan-home-feature-title{font-size:1.22rem;}
  .loan-home-result-input-group .form-control{font-size:1.55rem;}
  .loan-home-actions .btn{width:100%;}
  .loan-home-cta-title{font-size:1.22rem;}
  .service-card2-title{font-size:1.35rem;}
  .service-card2-cta-title{font-size:1.5rem;}
}

/* 首頁貸款試算 modal 修正：避免 backdrop 蓋住表單 */
#homeLoanLeadModal{
  z-index: 2000;
}

.modal-backdrop.show{
  z-index: 1990;
}

#homeLoanLeadModal .modal-dialog,
#homeLoanLeadModal .modal-content{
  pointer-events: auto;
}

/* services_block2 按鈕 hover 修正 */
.services_block2 .btn,
.services_block2 a.btn {
  transition: all 0.2s ease;
}

.services_block2 .btn:hover,
.services_block2 a.btn:hover {
  color: #fff !important;
  background-color: #1e6f6a !important; /* 深一點的綠 */
  border-color: #1e6f6a !important;
}



/* ===== testimonials2 ===== */
.testimonials2-wrap{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #eef7fb 0%, #f7fbfd 40%, #ffffff 100%);
  box-shadow: 0 12px 30px rgba(3,51,51,.06);
}
.testimonials2-hero{
  position: relative;
  padding: 42px 28px 64px;

  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.testimonials2-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:8px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.82) 100%
  );
  pointer-events:none;
}
.testimonials2-cloud{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonials2-title{
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.testimonials2-sub{
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255,255,255,.98);
  font-size: 1.05rem;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,.18);
}
.testimonials2-hero-actions{
  margin-top: 18px;
}
.testimonials2-hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.45rem;
  border-radius: 12px;
  border: 1px solid #f4c327;
  background: #f4c327;
  color: #3c2e00;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(60,46,0,.18);
}
.testimonials2-hero-btn:hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.testimonials2-body{
  position: relative;
  z-index: 1;
  padding: 6px 24px 28px;
  margin-top: 0;
}
.testimonials2-body-title-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin: 0 0 6px;
}
.testimonials2-body-line{
  display:block;
  width: clamp(56px, 12vw, 150px);
  height: 1px;
  background: rgba(19,63,73,.18);
}
.testimonials2-body-title{
  text-align: center;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 900;
  color: #143f49;
  margin: 0;
  white-space: nowrap;
}
.testimonials2-card{
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(3,51,51,.08);
  border: 1px solid rgba(3,51,51,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.testimonials2-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(3,51,51,.12);
}
.testimonials2-card-media{
  display:block;
  background:#f6fbfb;
}
.testimonials2-card-media img{
  width:100%;
  height:190px;
  object-fit:cover;
  transition: transform .35s ease;
}
.testimonials2-card:hover .testimonials2-card-media img{
  transform: scale(1.04);
}
.testimonials2-card-body{
  padding: 16px 16px 10px;
}
.testimonials2-card-title{
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 900;
  color: #143f49;
  margin: 0 0 8px;
}
.testimonials2-card-desc{
  margin: 0;
  color: #556868;
  line-height: 1.8;
  font-size: .96rem;
}
.testimonials2-card-actions{
  padding: 0 16px 16px;
  margin-top: auto;
}
.testimonials2-card-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #29673D;
  background: #29673D;
  color: #ffffff;
  font-weight: 800;
}
.testimonials2-card-btn:hover{
  color: inherit;
  filter: brightness(1.03);
}
@media (max-width: 767.98px){
  .testimonials2-wrap{
    border-radius: 22px;
  }
  .testimonials2-hero{
    padding: 32px 18px 50px;
    background-position: center bottom;
  }
  .testimonials2-hero::after{
    height: 12px;
    background: radial-gradient(120% 18px at 50% 0, rgba(255,255,255,.98) 55%, rgba(255,255,255,0) 56%);
  }
  .testimonials2-sub{
    font-size: .98rem;
    line-height: 1.75;
  }
  .testimonials2-body{
    padding: 0 16px 20px;
  }
  .testimonials2-body-title-wrap{
    gap: 12px;
  }
  .testimonials2-body-title{
    font-size: 1.4rem;
  }
  .testimonials2-body-line{
    width: 56px;
  }
  .testimonials2-card-media img{
    height: 176px;
  }
}
