/* ========================================
   永力扶輪社 2026 永續影響力報告書
   共用樣式 v1.0
   ======================================== */

:root {
  /* 主色系 — 奶茶米白 + 扶輪金 + 永續綠 */
  --bg: #F8F5EE;
  --bg-card: #FFFFFF;
  --bg-soft: #F0EBDF;
  --ink: #2A2620;
  --ink-soft: #5C544A;
  --ink-mute: #8A8278;
  --gold: #B8860B;
  --gold-soft: #D4A95A;
  --green: #2E7D5B;
  --line: #E5DFD2;
  --line-soft: #EFE9DB;

  /* 角色階段配色 */
  --role-found: #6D4C3D;   /* 創社／治理 */
  --role-guard: #2C4A6B;   /* 守護／承接 */
  --role-act:   #B0593C;   /* 行動／實踐 */
  --role-cont:  #3E6B4F;   /* 延續／擴散 */

  /* SDGs 17 色（簡化用，篩選 chip 的小色點） */
  --sdg-1:  #E5243B; --sdg-2:  #DDA63A; --sdg-3:  #4C9F38;
  --sdg-4:  #C5192D; --sdg-5:  #FF3A21; --sdg-6:  #26BDE2;
  --sdg-7:  #FCC30B; --sdg-8:  #A21942; --sdg-9:  #FD6925;
  --sdg-10: #DD1367; --sdg-11: #FD9D24; --sdg-12: #BF8B2E;
  --sdg-13: #3F7E44; --sdg-14: #0A97D9; --sdg-15: #56C02B;
  --sdg-16: #00689D; --sdg-17: #19486A;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.08), 0 12px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif TC", "PingFang TC", serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; letter-spacing: 0.02em; }
h2 { font-size: 1.6rem; letter-spacing: 0.02em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; color: var(--ink-soft); }

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green); }

p { margin: 0 0 1em; }

/* === 版面骨架 === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.section-head h2 { margin: 0; }
.section-head .num {
  font-family: "Noto Serif TC", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.section-head .meta {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

/* === Top Nav（與 index.html 一致版型） === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 11px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.topbar .brand:hover { opacity: 0.7; }
.topbar .brand .mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-image: url('../img/yongli-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 0;
  flex-shrink: 0;
  overflow: hidden;
  text-indent: 0;
}
.topbar nav {
  display: flex;
  gap: 28px;
}
.topbar nav a {
  color: var(--ink-2, var(--ink-soft));
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.topbar nav a:hover { color: var(--gold); }

/* 漢堡按鈕（桌面預設隱藏） */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .25s ease, opacity .2s ease;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* topbar 手機版 RWD：漢堡選單收納（緊湊版） */
@media (max-width: 820px) {
  .topbar .inner {
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 8px;
    align-items: center;
  }
  .topbar .brand {
    font-size: 0.92rem;
    line-height: 1.3;
    flex: 1;
  }
  .topbar .brand .mark {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }
  .nav-toggle { display: block; }
  .topbar nav {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .topbar nav.open {
    max-height: 500px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .topbar nav a {
    padding: 10px 4px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--line-soft);
    display: block;
  }
  .topbar nav a:last-child { border-bottom: none; }
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #F8F5EE 0%, #EFE5CD 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 720px;
}
.hero .meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-top: 28px;
}
.hero .meta .pill {
  padding: 4px 12px;
  background: rgba(184, 134, 11, 0.1);
  color: var(--gold);
  border-radius: 999px;
  font-weight: 500;
}

/* === 共識導言 === */
.intro {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.intro p:last-child { margin-bottom: 0; }
.intro h3 { color: var(--gold); margin-top: 0; font-size: 1.05rem; }

/* === 篩選 Bar === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}
.filter-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-right: 4px;
}
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.filter-btn .count {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 0.78rem;
}

/* === 卡片網格 === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 920px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* === 人物卡 === */
.person-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.person-card.hidden { display: none; }
.person-card .accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.person-card[data-role="found"] .accent { background: var(--role-found); }
.person-card[data-role="guard"] .accent { background: var(--role-guard); }
.person-card[data-role="act"]   .accent { background: var(--role-act); }
.person-card[data-role="cont"]  .accent { background: var(--role-cont); }

.person-card .body {
  padding: 24px 22px 22px 26px;
}
.person-card .head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
  border: 2px solid var(--line);
  background-size: cover;
  background-position: center;
}
.avatar.role-found { background-color: #EFE3DA; color: var(--role-found); border-color: #D9C7B7; }
.avatar.role-guard { background-color: #DCE6F0; color: var(--role-guard); border-color: #BAC9DA; }
.avatar.role-act   { background-color: #F4DCD0; color: var(--role-act);   border-color: #E2BFAE; }
.avatar.role-cont  { background-color: #DCE9DF; color: var(--role-cont);  border-color: #BBD0BF; }

.person-card .name {
  font-family: "Noto Serif TC", serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.person-card .title-line {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.person-card .theme {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  margin: 8px 0 12px;
}
.person-card .quote {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-card .sdg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.person-card .more {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}
.person-card .more::after { content: " →"; }

/* === SDG chips === */
.sdg-chip {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #fff;
  text-align: center;
  line-height: 22px;
  font-weight: 600;
  font-family: "Noto Sans TC", sans-serif;
}
.sdg-chip-1  { background: var(--sdg-1); }
.sdg-chip-2  { background: var(--sdg-2); }
.sdg-chip-3  { background: var(--sdg-3); }
.sdg-chip-4  { background: var(--sdg-4); }
.sdg-chip-5  { background: var(--sdg-5); }
.sdg-chip-6  { background: var(--sdg-6); }
.sdg-chip-7  { background: var(--sdg-7); }
.sdg-chip-8  { background: var(--sdg-8); }
.sdg-chip-9  { background: var(--sdg-9); }
.sdg-chip-10 { background: var(--sdg-10); }
.sdg-chip-11 { background: var(--sdg-11); }
.sdg-chip-12 { background: var(--sdg-12); }
.sdg-chip-13 { background: var(--sdg-13); }
.sdg-chip-14 { background: var(--sdg-14); }
.sdg-chip-15 { background: var(--sdg-15); }
.sdg-chip-16 { background: var(--sdg-16); }
.sdg-chip-17 { background: var(--sdg-17); }

/* === 服務計畫卡 === */
.service-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}
.service-card.hidden { display: none; }
.service-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-soft);
  background-size: cover;
  background-position: top center;
}
.service-card .body { padding: 18px 20px 20px; }
.service-card .grant {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.4;
}
.service-card .by {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.service-card .by strong { color: var(--ink-soft); font-weight: 600; }
.service-card .sdg-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.service-card .more { font-size: 0.85rem; color: var(--gold); font-weight: 500; }
.service-card .more::after { content: " →"; }

/* === 影像版區塊 === */
.video-section {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) { .video-section { grid-template-columns: 1fr; } }
.video-section .placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #E5DFD2, #C9BD9D);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}
.video-section .placeholder::before {
  content: "▶";
  font-size: 3rem;
  color: rgba(255,255,255,0.85);
  position: absolute;
}
.video-section h3 { margin-top: 0; }

/* === Footer === */
footer {
  background: var(--ink);
  color: #D6CFC2;
  padding: 48px 0 32px;
  margin-top: 32px;
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { footer .container { grid-template-columns: 1fr; } }
footer h4 { color: var(--gold-soft); font-family: "Noto Serif TC", serif; font-size: 0.95rem; margin-bottom: 12px; }
footer p, footer li { font-size: 0.85rem; color: #B5AE9F; line-height: 1.7; margin: 0 0 6px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer a { color: #D6CFC2; }
footer a:hover { color: var(--gold-soft); }
footer .copyright {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #3A332A;
  font-size: 0.8rem;
  color: #7A7468;
}

/* === Profile Page === */
.profile-hero {
  background: var(--bg-card);
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.profile-hero .layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 600px) { .profile-hero .layout { grid-template-columns: 1fr; text-align: center; } }
/* 個人頁大頭照：4:5 portrait（半身可見） */
.profile-hero .avatar-lg {
  width: 200px;
  height: 250px;                    /* 4:5 比例 */
  border-radius: 16px;              /* 圓角矩形 */
  background-color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", serif;
  font-size: 4.2rem;
  color: var(--gold);
  background-size: cover;
  background-position: center top;  /* 對齊頂端：露出頭+肩+胸的半身 */
  overflow: hidden;
  margin: 0 auto;
}
.profile-hero .avatar-lg[style*="background-image"] {
  color: transparent;
  font-size: 0;
}
.profile-hero h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
}
.profile-hero .role-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.profile-hero .theme {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-family: "Noto Serif TC", serif;
}
.profile-hero .meta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 0.88rem; color: var(--ink-mute); }

.profile-section {
  padding: 48px 0;
  border-bottom: 1px dashed var(--line);
}
.profile-section h2 { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 8px; display: inline-block; }
.profile-section h3 { color: var(--ink-soft); margin-top: 28px; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 720px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
.impact-cell {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--gold);
}
.impact-cell .label { font-size: 0.78rem; color: var(--ink-mute); margin-bottom: 4px; }
.impact-cell .val { font-size: 0.95rem; color: var(--ink); font-weight: 500; }

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.callout .label {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tag {
  padding: 4px 12px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.82rem;
}

.profile-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0;
  flex-wrap: wrap;
}
.profile-nav a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: all .15s;
}
.profile-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.profile-nav .home {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.profile-nav .home:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* === Service Page === */
.service-hero {
  background: var(--bg-card);
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.service-hero img.cover {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 24px auto 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.service-hero img.cover:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   Lightbox — 圖片全螢幕預覽
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  animation: lightbox-fade .2s ease;
  padding: 40px 20px;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-image {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  background: #fff;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  margin: 0;
  pointer-events: none;
}
.service-hero h1 { margin: 10px 0 14px; font-size: 2.2rem; line-height: 1.35; }
.service-hero .grant-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.service-hero .by {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.6;
}
.service-hero .by a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.service-hero .by a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* 服務計畫頁的提案人卡（名片風格，比照首頁 §04 member-card 緊湊版） */
.service-hero .proposer-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  margin: 14px 0 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  max-width: 560px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-hero .proposer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.proposer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  background-size: 155%;
  background-position: center 5%;
  flex-shrink: 0;
  overflow: hidden;
}
.proposer-info { display: flex; flex-direction: column; }
.proposer-name {
  font-family: "Noto Serif TC", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.proposer-role {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}
.proposer-theme {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
  margin: 6px 0 6px;
}
.proposer-link {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.service-hero .proposer-card:hover .proposer-link { color: var(--green); }
@media (max-width: 600px) {
  .service-hero .proposer-card {
    grid-template-columns: 56px 1fr;
    padding: 12px 16px;
    gap: 12px;
  }
  .proposer-avatar { width: 56px; height: 56px; }
}

.placeholder-banner {
  background: rgba(184, 134, 11, 0.08);
  border: 1px dashed var(--gold);
  color: var(--ink-soft);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin: 16px 0;
}
.placeholder-banner strong { color: var(--gold); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}
th, td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
}

/* ============================================
   首頁 Hero — 9 位社友橫排（簡潔版）
   ============================================ */
.people-strip {
  margin-top: 44px;
}
.people-strip-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 920px) {
  .people-strip-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  .people-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.person-tile {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  background: transparent;
}
.person-tile:hover { background: transparent; color: inherit; }

.person-tile .avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 0;
  background-size: 105% auto;
  background-position: 50% 2.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", serif;
  font-size: 2rem;
  font-weight: 600;
  background-color: var(--bg-soft);
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.person-tile:hover .avatar-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.45);
}
.person-tile[data-role="found"] .avatar-circle { background-color: #EFE3DA; color: var(--role-found); border-color: var(--role-found); }
.person-tile[data-role="guard"] .avatar-circle { background-color: #DCE6F0; color: var(--role-guard); border-color: var(--role-guard); }
.person-tile[data-role="act"]   .avatar-circle { background-color: #F4DCD0; color: var(--role-act);   border-color: var(--role-act); }
.person-tile[data-role="cont"]  .avatar-circle { background-color: #DCE9DF; color: var(--role-cont);  border-color: var(--role-cont); }

.person-tile .name-label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  font-family: "Noto Serif TC", serif;
  line-height: 1.3;
}
.person-tile .role-label {
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin-top: 3px;
  line-height: 1.4;
}
.person-tile .has-plan-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================
   Profile 內嵌 — 我推動的服務計畫 spotlight
   ============================================ */
.service-spotlight-section {
  background: linear-gradient(135deg, #FCF7E9 0%, #F5EFD8 100%);
  border-bottom: none;
}
.service-spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 36px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, opacity .25s;
  margin-top: 18px;
  align-items: center;                  /* 圖跟右邊文字垂直置中（不再 start 貼頂端）*/
}
.service-spotlight:hover {
  color: inherit;
  transform: translateY(-2px);
  opacity: 0.95;
}
.service-spotlight:hover .thumb { box-shadow: var(--shadow-lg); }
@media (max-width: 720px) {
  .service-spotlight { grid-template-columns: 1fr; gap: 18px; }
}
.service-spotlight .thumb {
  aspect-ratio: 2/1;                    /* V1：最扁，剛好露出海報頂端 */
  background-size: cover;
  background-position: top center;
  background-color: var(--bg-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s;
}
.service-spotlight .info { padding: 4px 0; }
.service-spotlight .info .grant-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: #fff;
  background: var(--green);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.service-spotlight .info h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.4;
}
.service-spotlight .info .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}
.service-spotlight .info .sdg-row { margin-bottom: 16px; }
.service-spotlight .info .more {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
}
.service-spotlight .info .more::after { content: " →"; }

/* ============================================
   多框架影響力分析 section
   ============================================ */
.section-analysis {
  background: linear-gradient(180deg, var(--bg) 0%, #FAF6EC 100%);
}
.analysis-intro {
  background: var(--bg-card);
  padding: 22px 26px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.analysis-intro p {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

.framework-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.framework-label {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(184, 134, 11, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 12px;
}
.framework-block h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--ink);
}
.framework-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* IOOI 流程圖 */
.iooi-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .iooi-flow { grid-template-columns: 1fr; gap: 12px; }
  .iooi-arrow { transform: rotate(90deg); padding: 4px 0; justify-content: center; }
}
.iooi-stage {
  background: var(--bg-soft);
  border-top: 4px solid var(--ink-mute);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}
.iooi-stage[data-color="found"]  { border-top-color: var(--role-found); }
.iooi-stage[data-color="guard"]  { border-top-color: var(--role-guard); }
.iooi-stage[data-color="act"]    { border-top-color: var(--role-act); }
.iooi-stage[data-color="cont"]   { border-top-color: var(--role-cont); }
.iooi-stage[data-color="gold"]   { border-top-color: var(--gold); }
.iooi-step {
  font-family: "Noto Serif TC", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.iooi-name {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 4px 0 12px;
  letter-spacing: 0.04em;
}
.iooi-stage ul {
  padding-left: 16px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
}
.iooi-stage ul li { margin-bottom: 8px; }
.iooi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
}

/* 陪力卡 5 階段 */
.peili-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .peili-grid { grid-template-columns: 1fr; gap: 10px; }
}
.peili-stage {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.peili-num {
  font-family: "Noto Serif TC", serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}
.peili-name {
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 4px;
}
.peili-meaning {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.peili-people {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}
.person-chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  background: var(--bg-card);
  border-left: 3px solid var(--ink-mute);
  text-align: left;
}
.person-chip[data-role="found"] { border-left-color: var(--role-found); color: var(--role-found); }
.person-chip[data-role="guard"] { border-left-color: var(--role-guard); color: var(--role-guard); }
.person-chip[data-role="act"]   { border-left-color: var(--role-act); color: var(--role-act); }
.person-chip[data-role="cont"]  { border-left-color: var(--role-cont); color: var(--role-cont); }
.person-chip-all {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
}

.framework-insight {
  background: rgba(184, 134, 11, 0.06);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  margin-top: 20px;
}
.framework-insight h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.framework-insight ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.framework-insight ul li { margin-bottom: 4px; }

/* 獎助金資源結構 */
.grant-structure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grant-row {
  display: grid;
  grid-template-columns: 180px 60px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg-soft);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}
@media (max-width: 720px) {
  .grant-row { grid-template-columns: 1fr; gap: 6px; }
}
.grant-tier-tag {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-align: center;
  color: #fff;
}
.grant-tier-tag[data-tier="global"]    { background: #B8860B; }
.grant-tier-tag[data-tier="district"]  { background: #C49E60; }
.grant-tier-tag[data-tier="club"]      { background: #2E7D5B; }
.grant-tier-tag[data-tier="community"] { background: #5C7A6B; }
.grant-count {
  font-family: "Noto Serif TC", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}
.grant-list {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 未來可延伸的分析 */
.framework-future {
  background: var(--bg-card);
  border: 1px dashed var(--gold-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
}
.framework-future h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
}
.future-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px) { .future-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .future-grid { grid-template-columns: 1fr; } }
.future-card {
  background: var(--bg-soft);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.future-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(184,134,11,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.future-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: "Noto Serif TC", serif;
}
.future-desc {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.65;
}

/* SROI-ready 結語 */
.sroi-callout {
  background: linear-gradient(135deg, var(--ink) 0%, #3A332A 100%);
  color: #D6CFC2;
  padding: 26px 30px;
  border-radius: var(--radius);
  margin-top: 8px;
}
.sroi-label {
  font-size: 0.74rem;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.sroi-callout p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #E5DFD2;
  margin: 0 0 8px;
}
.sroi-callout p:last-child { margin-bottom: 0; }
.sroi-callout strong { color: var(--gold-soft); }

/* ======================== 多框架分析頁 analysis.html 專用 ======================== */

/* 子框架小標 */
.sub-frame-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 28px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.sub-frame-desc {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0 0 16px;
}

/* IOOI 方法說明摺疊區 */
.iooi-method-toggle {
  margin: 12px 0 20px;
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
}
.iooi-method-toggle summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  padding: 4px 0;
}
.iooi-method-content {
  padding-top: 12px;
}
.iooi-def-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.iooi-def-table th,
.iooi-def-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.iooi-def-table th {
  background: #F5EFE3;
  color: var(--ink);
  font-weight: 600;
}

/* IOOI 深化版 — ul 內每條的歸因標籤 */
.iooi-flow-detail .iooi-stage ul li .attr {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.72rem;
  background: var(--gold);
  color: white;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.iooi-flow-detail .iooi-stage ul li em {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: #B89A5C;
  font-style: normal;
  background: #FAF3E0;
  padding: 3px 8px;
  border-radius: 4px;
}

/* 7 計畫切換器 */
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
}
.plan-tab {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.plan-tab:hover {
  background: #FBF8F2;
  color: var(--ink);
}
.plan-tab.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  font-weight: 600;
}

.plan-iooi {
  display: none;
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 6px;
}
.plan-iooi.active { display: block; }

.plan-iooi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.plan-iooi-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
}
.plan-iooi-meta {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 4px;
}
.completeness {
  font-size: 0.82rem;
  background: white;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.completeness-top {
  background: linear-gradient(135deg, #B8860B, #C49E60);
  color: white;
  border-color: transparent;
}

.plan-iooi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.plan-iooi-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
  background: white;
}
.plan-iooi-table .layer {
  width: 90px;
  background: #F5EFE3;
  font-weight: 600;
  color: var(--gold);
}
.plan-iooi-table .metric {
  width: 180px;
  font-size: 0.84rem;
  color: var(--ink-mute);
}
.plan-iooi-table .metric em {
  font-style: normal;
  color: #B89A5C;
  background: #FAF3E0;
  padding: 2px 6px;
  border-radius: 3px;
}

.plan-iooi-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: white;
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  border-radius: 0 6px 6px 0;
}

/* 跨計畫比較表 */
.plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}
.plan-compare-table th,
.plan-compare-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: center;
}
.plan-compare-table th {
  background: #F5EFE3;
  color: var(--ink);
  font-weight: 600;
}
.plan-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.plan-compare-table .star {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

/* 四階段循環 */
.four-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 6px;
  margin: 16px 0 8px;
}
@media (max-width: 920px) {
  .four-stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stage-arrow { transform: rotate(90deg); justify-self: center; }
}
.stage-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
}
.stage-card.stage-active {
  background: linear-gradient(135deg, #FAF3E0, #F5EFE3);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,134,11,0.12);
}
.stage-num {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 1px;
}
.stage-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  margin: 4px 0 8px;
}
.stage-desc {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.55;
}
.stage-status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  background: var(--gold);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.stage-card:not(.stage-active) .stage-status {
  background: #C9C2B0;
  color: white;
}
.stage-arrow {
  align-self: center;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  padding: 0 4px;
}

/* 十題評分表 */
.ten-q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 6px;
}
.ten-q-table th,
.ten-q-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: center;
}
.ten-q-table th {
  background: #F5EFE3;
  color: var(--ink);
  font-weight: 600;
}
.ten-q-table td:nth-child(2),
.ten-q-table td:nth-child(3) {
  text-align: left;
}
.ten-q-table .grade {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.grade-a { background: #2E7D5B; color: white; }
.grade-b { background: #5B8DB8; color: white; }
.grade-c { background: #C49E60; color: white; }
.grade-d { background: #C76A4D; color: white; }
.ten-q-table .prio {
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.prio-low { color: #5C7A6B; }
.prio-mid { color: #B89A5C; }
.prio-high { color: #C76A4D; }
.prio-top { background: #C76A4D; color: white; }

/* 風險評估區 */
.risk-section {
  background: linear-gradient(135deg, #FAF6EC, #F5EFE3);
  border-color: var(--gold);
  border-width: 1.5px;
}
.risk-label {
  background: var(--gold) !important;
  color: white !important;
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 820px) {
  .risk-grid { grid-template-columns: 1fr; }
}
.risk-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184,134,11,0.1);
}
.risk-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
  opacity: 0.4;
}
.risk-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  padding-right: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.risk-block {
  margin-bottom: 10px;
}
.risk-block:last-child { margin-bottom: 0; }
.risk-block-label {
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}
.risk-block p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.risk-block-action {
  background: #FAF3E0;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.risk-block-action .risk-block-label {
  color: var(--gold);
}

.risk-footer {
  margin-top: 20px;
  padding: 16px 20px;
  background: white;
  border: 1px dashed var(--gold);
  border-radius: 8px;
}
.risk-footer p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}
.risk-footer strong { color: var(--gold); }

/* 首頁第 3 節入口卡片 */
.analysis-entry-card {
  background: linear-gradient(135deg, #FAF6EC, #F5EFE3);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 26px 28px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.analysis-entry-card h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 600;
}
.analysis-entry-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 14px;
}
.entry-frames {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}
.entry-frame-chip {
  background: white;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.82rem;
  color: var(--ink);
}
.entry-frame-chip strong {
  color: var(--gold);
  font-weight: 600;
}
.entry-btn {
  display: inline-block;
  background: var(--gold);
  color: white !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
}
.entry-btn:hover {
  background: #9c7409;
  transform: translateX(2px);
}

/* ======== 組織整體層 IOOI 改成縱向堆疊（每層橫條，內部 bullets 自動分多欄）======== */
.iooi-flow.iooi-flow-detail {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
}
.iooi-flow-detail .iooi-stage {
  padding: 18px 22px;
  border-top-width: 5px;
}
.iooi-flow-detail .iooi-step {
  display: inline-block;
  vertical-align: middle;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 1.1rem;
  background: #FAF3E0;
  border-radius: 6px;
  margin-right: 12px;
}
.iooi-flow-detail .iooi-name {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
}
.iooi-flow-detail .iooi-stage ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 24px;
  margin-top: 14px;
  padding-left: 18px;
  font-size: 0.92rem;
}
.iooi-flow-detail .iooi-stage ul li {
  margin-bottom: 8px;
  line-height: 1.65;
  break-inside: avoid;
}
.iooi-flow-detail .iooi-arrow {
  transform: rotate(90deg);
  padding: 4px 0;
  margin: 2px auto;
  font-size: 1.5rem;
}
@media (max-width: 600px) {
  .iooi-flow-detail .iooi-stage ul {
    grid-template-columns: 1fr;
  }
}

/* ======================== analysis.html v2 — 三框架簡化版 ======================== */

/* 三軸卡片（人/事/法） */
.three-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 720px) {
  .three-axis { grid-template-columns: 1fr; }
}
.axis-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.axis-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(184,134,11,0.12);
}
.axis-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.55rem;
  font-weight: 600;
  display: inline-block;
  padding: 10px 32px;
  margin: 0 auto 16px;
  border-radius: 999px;
  color: white;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-indent: 0.22em;
}
.axis-people .axis-num { background: linear-gradient(135deg, #B8860B, #D4A847); }
.axis-work .axis-num { background: linear-gradient(135deg, #2E7D5B, #4FA67D); }
.axis-method .axis-num { background: linear-gradient(135deg, #5B6B8C, #7B8FB0); }

.axis-people { border-color: #D4A847; }
.axis-work { border-color: #4FA67D; }
.axis-method { border-color: #7B8FB0; }

.axis-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}
.axis-desc {
  font-size: 1rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* 框架色標籤 */
.overview-label { background: #888 !important; color: white !important; }
.label-people { background: #B8860B !important; color: white !important; }
.label-work { background: #2E7D5B !important; color: white !important; }
.label-method { background: #5B6B8C !important; color: white !important; }

.frame-people { border-left: 4px solid #D4A847; padding-left: 22px; }
.frame-work { border-left: 4px solid #4FA67D; padding-left: 22px; }
.frame-method { border-left: 4px solid #7B8FB0; padding-left: 22px; }
@media (max-width: 600px) {
  .frame-people, .frame-work, .frame-method {
    border-left-width: 3px;
    padding-left: 14px;
  }
}

/* 職業即服務 — 9 條線 row */
.prof-flow {
  margin-top: 16px;
  background: #FBF8F2;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.prof-flow-head {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 40px 1.8fr 1.4fr;
  gap: 10px;
  padding: 12px 18px;
  background: #F5EFE3;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.prof-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 40px 1.8fr 1.4fr;
  gap: 10px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
  transition: background 0.15s;
}
.prof-row:last-child { border-bottom: none; }
.prof-row:hover { background: #FAF6EC; }

.prof-row[data-role="found"] { border-left: 4px solid var(--role-found); }
.prof-row[data-role="guard"] { border-left: 4px solid var(--role-guard); }
.prof-row[data-role="act"] { border-left: 4px solid var(--role-act); }
.prof-row[data-role="cont"] { border-left: 4px solid var(--role-cont); }

.prof-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.prof-role {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.prof-prof {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}
.prof-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
}
.prof-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}
.prof-plan {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 500;
}
.prof-empty {
  color: #B8AB8A;
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 400;
}
.prof-row-pending {
  background: #FCFAF4;
}

@media (max-width: 820px) {
  .prof-flow-head { display: none; }
  .prof-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .prof-arrow { display: none; }
  .prof-name { font-size: 1rem; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
  .prof-prof::before { content: "職業：" ; font-size: 0.74rem; color: var(--ink-mute); margin-right: 4px; }
  .prof-value::before { content: "價值：" ; font-size: 0.74rem; color: var(--ink-mute); margin-right: 4px; }
  .prof-plan::before { content: "計畫：" ; font-size: 0.74rem; color: var(--ink-mute); margin-right: 4px; }
  .prof-plan { color: var(--ink); }
}

/* 下一步精進章節（原風險評估，前向語氣版）*/
.next-section {
  background: linear-gradient(135deg, #F0F7F2, #E8F0EA);
  border-color: #4FA67D;
  border-width: 1.5px;
}
.next-label {
  background: #2E7D5B !important;
  color: white !important;
}
/* 沿用 .risk-grid / .risk-card 樣式但調色 */
.next-section .risk-card {
  border-left: 3px solid #4FA67D;
}
.next-section .risk-num {
  color: #2E7D5B;
}
.next-section .risk-block-action {
  background: #F0F7F2;
  border-left-color: #4FA67D;
}
.next-section .risk-block-action .risk-block-label {
  color: #2E7D5B;
}
.next-section .risk-footer {
  border-color: #4FA67D;
}
.next-section .risk-footer strong {
  color: #2E7D5B;
}

/* 陪力卡每階段加一行白話解釋 */
.peili-explain {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 8px 0 12px;
  padding: 8px 10px;
  background: rgba(184, 134, 11, 0.07);
  border-radius: 5px;
  border-left: 3px solid rgba(184, 134, 11, 0.4);
}

/* 框架標題旁的外部連結（陪力卡完整框架等） */
.ext-link {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 12px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.ext-link:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* ===== V7 語言切換鈕（lang-switch）— build.py 注入的 topbar 元件 ===== */
.topbar .inner nav { margin-left: auto; }
.lang-switch{
  display:inline-flex; align-items:center; justify-content:center;
  margin-left:18px; flex-shrink:0;
  padding:5px 15px;
  border:1.5px solid var(--gold);
  border-radius:999px;
  font-size:14px; font-weight:600; letter-spacing:0.08em;
  color:var(--gold); text-decoration:none; background:transparent;
  font-family:"Inter","Noto Sans TC",sans-serif;
  transition:background .2s ease, color .2s ease;
  white-space:nowrap;
}
.lang-switch:hover{ background:var(--gold); color:#fff; }
@media (max-width: 820px){
  .topbar .inner nav { margin-left: 0; }
  .lang-switch{ margin-left:auto; order:1; padding:4px 11px; font-size:13px; }
  .nav-toggle{ order:2; margin-left:10px; }
}
