/* ===== 喬安互助會 樣式 (針對長輩閱讀優化：大字體、高對比、明亮溫暖希望感) ===== */
:root {
  --primary: #1e7a68;        /* 沉穩翡翠青綠：安心、信賴、生命力 */
  --primary-dark: #145548;
  --primary-light: #e6f4f1;
  --accent: #f59e0b;         /* 明亮暖金橘：溫暖、希望、陽光 */
  --accent-light: #fef3c7;
  --accent-hover: #d97706;
  --bg: #faf7f2;             /* 柔和米白暖底：不刺眼、舒適耐看 */
  --card: #ffffff;
  --text: #222222;           /* 高對比深色文字，好閱讀 */
  --text-sub: #4b5563;
  --muted: #64748b;
  --border: #e2dcd0;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(30, 122, 104, 0.08);
  --shadow-hover: 0 14px 38px rgba(30, 122, 104, 0.15);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 20px; /* 大字體基礎，長輩看得清 */
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4 {
  line-height: 1.4;
  color: var(--primary-dark);
  font-weight: 800;
}

h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 16px; }
h3 { font-size: clamp(22px, 3vw, 26px); margin-bottom: 12px; }
h4 { font-size: 22px; margin-bottom: 10px; }

p { margin-bottom: 18px; color: var(--text); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 頂部快速撥號列 (給長輩一鍵撥打) */
.top-banner {
  background: #fef08a;
  color: #854d0e;
  padding: 10px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #fde047;
}
.top-banner a {
  color: #b45309;
  text-decoration: underline;
  font-size: 20px;
  margin-left: 8px;
}

/* 頂部導覽列 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 24px; color: var(--primary-dark);
}
.brand .logo { width: 40px; height: 40px; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  padding: 10px 18px; border-radius: 999px;
  color: var(--text); font-weight: 700; font-size: 19px;
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.nav-links a.active { color: var(--primary-dark); background: var(--accent-light); font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 800;
  background: var(--primary); color: #ffffff !important; border: none; cursor: pointer;
  font-size: 20px; text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(30,122,104,0.3);
  transition: all 0.2s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,122,104,0.4); }
.btn-lg { padding: 16px 36px; font-size: 22px; }
.btn-accent {
  background: var(--accent); color: #1e1b18 !important;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.btn-accent:hover { background: var(--accent-hover); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--primary) !important;
  border: 2px solid var(--primary); box-shadow: none;
}
.btn-ghost:hover { background: var(--primary-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; font-size: 24px; }

/* 英雄區 (Hero) */
.hero {
  background: linear-gradient(135deg, #1e7a68 0%, #165b4e 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero p { color: #e8f7f4; font-size: 22px; line-height: 1.8; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px; border-radius: 999px;
  font-size: 17px; font-weight: 700; color: #fff;
}
.hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.3);
}
.hero-img-wrap img { width: 100%; height: auto; object-fit: cover; }

/* 主內容區塊 */
.section { padding: 70px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 40px; max-width: 840px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 22px; color: var(--text-sub); line-height: 1.75; }

/* 圖文並茂左右排版 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img {
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); border: 2px solid var(--border);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* 卡片與格線 */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 18px;
}
.card h3 { color: var(--primary-dark); font-size: 24px; }
.card p { font-size: 19px; color: var(--text-sub); }

/* 文章卡片 (圖文並茂) */
.article-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card .thumb {
  width: 100%; height: 220px; object-fit: cover;
  border-bottom: 2px solid var(--border);
}
.article-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .tag {
  align-self: flex-start;
  background: var(--accent-light);
  color: #92400e;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.article-card h3 { font-size: 22px; line-height: 1.45; margin-bottom: 12px; }
.article-card p { font-size: 18px; color: var(--text-sub); flex: 1; margin-bottom: 20px; }
.article-card .read-more { font-weight: 800; font-size: 18px; color: var(--primary); }

/* 文章詳細頁 */
.article-single { max-width: 860px; margin: 0 auto; background: #ffffff; padding: 48px; border-radius: 24px; box-shadow: var(--shadow); border: 2px solid var(--border); }
.article-single h1 { font-size: 36px; line-height: 1.4; color: var(--primary-dark); }
.article-single .meta { display: flex; gap: 16px; margin: 16px 0 28px; color: var(--muted); font-size: 17px; }
.article-single .hero-pic { width: 100%; border-radius: 16px; margin-bottom: 32px; box-shadow: var(--shadow); }
.article-single .content { font-size: 21px; line-height: 2; color: #2d3748; }
.article-single .content h2 { margin-top: 36px; margin-bottom: 16px; font-size: 28px; border-left: 6px solid var(--primary); padding-left: 14px; }
.article-single .content h3 { margin-top: 28px; margin-bottom: 14px; font-size: 23px; color: var(--primary-dark); }
.article-single .content ul, .article-single .content ol { margin: 16px 0 24px 28px; font-size: 20px; }
.article-single .content li { margin-bottom: 10px; }
.article-single .highlight-box {
  background: var(--primary-light);
  border-left: 6px solid var(--primary);
  padding: 24px;
  border-radius: 0 14px 14px 0;
  margin: 28px 0;
}
.article-single .highlight-box p { margin-bottom: 0; font-weight: 700; color: var(--primary-dark); font-size: 21px; }

/* 聯絡資訊頁面與表單 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card {
  background: var(--primary-light);
  padding: 36px; border-radius: var(--radius);
  border: 2px solid #b2dfdb;
}
.info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-item .icon { font-size: 28px; color: var(--primary); }
.info-item h4 { font-size: 20px; margin-bottom: 4px; }
.info-item p { font-size: 19px; color: var(--text-sub); margin-bottom: 0; }

.contact-form {
  background: #ffffff; padding: 40px; border-radius: var(--radius);
  border: 2px solid var(--border); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 800; font-size: 19px; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  border: 2px solid var(--border); font-size: 19px; font-family: inherit;
  transition: border-color 0.2s; background: #fafafa;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form-tip { font-size: 16px; color: var(--muted); margin-top: 6px; }

/* 底部 Footer */
.site-footer {
  background: #14352e;
  color: #e2e8f0;
  padding: 60px 0 30px;
  margin-top: 70px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 24px; font-weight: 900; color: #ffffff; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; font-size: 18px; }
.footer-links a:hover { color: #fde047; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; text-align: center; font-size: 16px; color: #94a3b8; }

/* 三大互助專案卡片 */
.proj-cards { align-items: stretch; }
.proj-card {
  display: flex; flex-direction: column; border-top: 6px solid var(--primary);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.proj-tag {
  display: inline-block; align-self: flex-start;
  background: var(--primary); color: #fff; font-weight: 800;
  font-size: 16px; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.proj-tag-2 { background: var(--accent); }
.proj-tag-3 { background: #7c3aed; }
.proj-card h3 { color: var(--primary-dark); font-size: 26px; margin-bottom: 10px; }
.proj-amount { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.proj-amount b { color: var(--primary); font-size: 30px; }
.proj-fee { font-size: 19px; color: var(--text-sub); margin-bottom: 14px; font-weight: 700; }
.proj-fee b { color: var(--accent-hover); }
.proj-card .muted { margin-top: auto; font-size: 18px; }
.proj-more {
  display: inline-block; margin-top: 16px; align-self: flex-start;
  color: var(--primary); font-weight: 800; font-size: 18px;
  border: 2px solid var(--primary); border-radius: 999px; padding: 8px 16px;
  transition: background .2s, color .2s;
}
.proj-card:hover .proj-more { background: var(--primary); color: #fff; }


/* 響應式手機版 */
@media (max-width: 860px) {
  body { font-size: 19px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .split, .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .article-single { padding: 24px 18px; }
}

/* ===== 手機專用最佳化（小螢幕、長輩好讀好點） ===== */
@media (max-width: 640px) {
  body { font-size: 21px; line-height: 1.9; }       /* 手機字更大 */
  .container { padding: 0 16px; }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(24px, 6.5vw, 30px); }
  h3 { font-size: clamp(21px, 5.5vw, 25px); }

  /* 頂部電話橫幅：手機變成可點的一鍵撥打 */
  .top-banner { font-size: 20px; padding: 12px 14px; }
  .top-banner a { font-size: 24px; font-weight: 900; display: inline-block; padding: 4px 10px; }

  /* 導覽漢堡選單展開後樣式 */
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; border: 2px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow); padding: 12px; margin-top: 8px;
  }
  .nav-links.open a { font-size: 22px; padding: 14px 12px; text-align: center; }
  .nav-links.open a.btn { font-size: 22px; padding: 16px; margin-top: 6px; }

  /* Hero 區 */
  .hero { padding: 40px 0 48px; }
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-badge { font-size: 18px; padding: 10px 16px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .hero p { font-size: 20px; }
  .cta { flex-direction: column; gap: 14px; }
  .cta .btn { width: 100%; text-align: center; font-size: 22px; padding: 18px; }

  /* 卡片與網格 */
  .grid-3, .grid-2 { gap: 18px; }
  .card { padding: 24px 20px; }
  .card-icon { font-size: 44px; }
  .card p { font-size: 19px; }

  /* 區塊間距 */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }

  /* 聯絡表單：輸入框放大好點 */
  .contact-grid { gap: 26px; }
  .contact-info-card, .contact-form { padding: 26px 20px; }
  .form-group label { font-size: 21px; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 20px; padding: 16px; border-radius: 14px;
  }
  .btn { font-size: 22px; padding: 16px 22px; }
  .form-group input, .form-group select, .form-group textarea, .btn { min-height: 54px; }

  /* 頁尾 */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-links a { font-size: 19px; }
}

/* 超小螢幕（iPhone SE 等）再補強 */
@media (max-width: 380px) {
  body { font-size: 20px; }
  .container { padding: 0 12px; }
  h1 { font-size: 26px; }
}
