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