
: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);}

.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;
}

.team-actions{
  margin-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;}
}
