:root {
  --green: #1e3a2f;
  --green2: #2c5244;
  --green3: #3d6b58;
  --gold: #b08d3e;
  --gold2: #d3b56a;
  --cream: #faf8f3;
  --cream2: #f2eee4;
  --ink: #26261f;
  --muted: #6b6a5f;
  --line: #e2dccd;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(30, 58, 47, 0.08);
  --shadow-lg: 0 18px 45px rgba(30, 58, 47, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green2); text-decoration: none; }
a:hover { color: var(--green3); }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 頂部導覽 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 60%, #8a6a28);
  color: var(--green);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; line-height: 1.3; }
.brand-sub { font-size: 0.72rem; color: var(--gold2); letter-spacing: 2px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #dbe7df;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover, .site-nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 1.2rem;
  width: 44px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 36, 28, 0.88) 0%, rgba(16, 36, 28, 0.55) 55%, rgba(16, 36, 28, 0.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 84px; }
.hero-eyebrow {
  display: inline-block;
  color: var(--gold2);
  border: 1px solid rgba(211, 181, 106, 0.55);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.15);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.25;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}
.hero .lead {
  font-size: 1.15rem;
  color: #e8efe9;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-outline { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* 小型 hero(內頁) */
.page-hero {
  position: relative;
  background: var(--green);
  color: #fff;
  padding: 64px 0 54px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 181, 106, 0.22), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumb { color: var(--gold2); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: 2px; }
.page-hero p { color: #dbe7df; margin-top: 10px; max-width: 640px; }

/* ── 區塊 ── */
.section { padding: 72px 0; }
.section.alt { background: var(--cream2); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--green); letter-spacing: 1px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-head .bar {
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin-top: 14px;
}
.section-head.center .bar { margin-left: auto; margin-right: auto; }

/* ── 按鈕 ── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, background 0.2s, box-shadow 0.2s, color 0.2s;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(176, 141, 62, 0.35);
}
.btn:hover { background: #c09a4a; color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ── 統計列 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.stat-card b {
  display: block;
  font-size: 2rem;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
}
.stat-card span { color: var(--muted); font-size: 0.9rem; }

/* ── 卡片網格 ── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green);
  color: var(--gold2);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { color: var(--green); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: 1px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--gold); }
.card .more:hover { color: var(--green2); }

/* ── 關於區塊(文+圖) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split .art { position: relative; }
.split .art::after {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 62%;
  height: 62%;
  border-radius: var(--radius);
  background: var(--gold2);
  opacity: 0.18;
  z-index: -1;
}
.split h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--green); margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 12px; }

/* ── 新聞時間軸 ── */
.timeline { position: relative; margin-left: 12px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--gold), var(--green3));
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-item .date { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; }
.tl-item h3 { color: var(--green); font-size: 1.15rem; margin: 2px 0 6px; }
.tl-item .body { color: var(--muted); font-size: 0.97rem; white-space: pre-line; }
.tl-item .pic {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 560px;
  border: 1px solid var(--line);
  background: #111;
}
.tl-item .pic img { width: 100%; cursor: zoom-in; }

/* 新聞卡(首頁摘要) */
.news-list { display: grid; gap: 16px; }
.news-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.news-item .ndate { color: var(--gold); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.news-item h3 { font-size: 1.02rem; color: var(--green); }
.news-item p { color: var(--muted); font-size: 0.9rem; }

/* ── 活動紀實 ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  background: #efe9da;
  border: 1px solid var(--line);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 9px;
  background: linear-gradient(transparent, rgba(20, 38, 30, 0.82));
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ── 聯絡 CTA ── */
.cta {
  background: var(--green);
  border-radius: 22px;
  padding: 52px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 181, 106, 0.25), transparent 65%);
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 1px; margin-bottom: 10px; }
.cta p { color: #dbe7df; margin-bottom: 26px; }
.cta .btn { background: var(--gold2); color: var(--green); }
.cta .btn:hover { background: #e2c87c; }

/* ── 聯絡資訊卡 ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream2);
  color: var(--gold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { color: var(--green); font-size: 0.95rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 0.93rem; }
.contact-card a { color: var(--green2); font-weight: 700; }

/* ── 頁尾 ── */
.site-footer { background: var(--green); color: #c8d8cd; margin-top: 0; }
.site-footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 1px; }
.site-footer p { font-size: 0.9rem; line-height: 1.9; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #c8d8cd; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--gold2); }
.site-footer .fb { display: inline-block; margin-top: 12px; color: var(--gold2); font-size: 0.9rem; font-weight: 700; }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #93a89a;
}

/* ── Lightbox ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 19, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox .lb-stage { max-width: 92vw; max-height: 88vh; text-align: center; }
#lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}
#lightbox .lb-caption { color: #dbe7df; font-size: 0.92rem; margin-top: 12px; }
#lightbox .lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 210;
}
#lightbox .lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
#lightbox .lb-prev { left: 18px; }
#lightbox .lb-next { right: 18px; }
#lightbox .lb-close {
  position: fixed;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
}
#lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ── 表格(組織資訊) ── */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 15px 20px; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.info-table th { background: var(--green); color: #fff; width: 200px; font-weight: 600; letter-spacing: 1px; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table td { color: var(--ink); }

/* ── 表格(貸款專案比較) ── */
.loan-table { border: 1px solid var(--line); }
.loan-table thead th { width: auto; text-align: center; background: var(--green); color: #fff; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.loan-table thead th:first-child { border-radius: 0; }
.loan-table tbody th, .loan-table tbody td { vertical-align: top; }
.loan-table small { display: block; margin-top: 4px; font-size: 0.82rem; font-weight: 500; color: #7a7a6d; }
.loan-table .tag { display: inline-block; background: #f6f2e8; border: 1px solid var(--line); color: var(--gold); font-weight: 700; border-radius: 4px; padding: 2px 8px; font-size: 0.82rem; white-space: nowrap; }

/* ── 原則列表 ── */
.principles { display: grid; gap: 18px; }
.principle { display: flex; gap: 18px; align-items: flex-start; }
.principle .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.principle h3 { color: var(--green); font-size: 1.08rem; margin-bottom: 4px; }
.principle p { color: var(--muted); font-size: 0.95rem; }

/* ── 服務細節區塊 ── */
.svc-item { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; }
.svc-item + .svc-item { border-top: 1px dashed var(--line); }
.svc-item .icon-big {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--green);
  color: var(--gold2);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.svc-item h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 10px; letter-spacing: 1px; }
.svc-item p { color: var(--muted); margin-bottom: 10px; }
.svc-item .points { margin-top: 6px; }
.svc-item .points li {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 5px 0 5px 26px;
  position: relative;
}
.svc-item .points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}
.svc-item .art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* ── 響應式 ── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .svc-item { grid-template-columns: 1fr; gap: 28px; }
  .svc-item .art { order: -1; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 54px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    gap: 6px;
    display: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: 10px; }
  .hero { min-height: 70vh; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 40px 24px; }
  .info-table:not(.loan-table) th { display: none; }
  .info-table:not(.loan-table) td { display: block; border-bottom: 1px solid var(--line); }
  .info-table:not(.loan-table) td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--gold); font-size: 0.8rem; }
  .info-table:not(.loan-table) tr { display: block; }
  .loan-table { display: block; overflow-x: auto; white-space: nowrap; }
  .loan-table th, .loan-table td { white-space: normal; min-width: 140px; }
  .news-item { flex-direction: column; gap: 6px; }
  .tl-item .pic { max-width: 100%; }
}
