/* ===== 君城人文 - 主樣式（優化版） ===== */

/* ---- 變數 ---- */
:root {
  --teal: #1fa4b8;
  --teal-dark: #0b4b57;
  --teal-soft: #e9f7f9;
  --pink: #f68b94;
  --navy: #0e2330;
  --gray: #5f6b73;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 38px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.16);
  --transition: transform 0.2s ease, box-shadow 0.2s ease;
  --page-pad: 7vw;
  --section-pad: 64px;
}

/* ---- 重置與基底 ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  color: var(--navy);
  background: #f5e6e8;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
main { min-height: 70vh; }

/* ---- 頂部導覽 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 75, 87, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--page-pad);
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--gray);
  font-weight: 600;
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
}
.nav-links a.active {
  font-weight: 700;
}

/* ---- 按鈕 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2ac0d4, #18859c);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}
.btn-alt,
.btn.alt {
  background: linear-gradient(135deg, #f9adb6, #f68b94);
}
.btn--full { width: 100%; }

/* ---- 區塊與標題 ---- */
section {
  padding: var(--section-pad) var(--page-pad);
}
h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--teal-dark);
}
.section-desc {
  max-width: 900px;
  color: var(--gray);
  margin-bottom: 22px;
}

/* ---- Hero 首頁 ---- */
.hero {
  padding: var(--section-pad) var(--page-pad) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.hero-card {
  background: var(--card);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 75, 87, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, #e5f9fb 0%, transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-desc {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero-visual {
  background: linear-gradient(140deg, #e9f7f9, #fff);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 75, 87, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.badge {
  background: linear-gradient(145deg, #f5fdff, #e3f4f8);
  border: 1px solid rgba(15, 75, 87, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  color: #0f2f34;
  font-weight: 700;
}
.team-photo-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  background: #fff;
}
.team-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}
.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 75, 87, 0.85), transparent);
  padding: 20px 18px 16px;
  color: #fff;
}
.team-caption {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.team-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Pills ---- */
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.pill-row--mb { margin-bottom: 18px; }
.pill-row--mt { margin-top: 16px; }
.pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 75, 87, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  font-weight: 700;
  color: var(--teal-dark);
}
.pill--muted {
  background: #f5f5f5;
  border-color: rgba(15, 75, 87, 0.1);
}
.pill--teal {
  background: linear-gradient(145deg, #e8fbff, #d3f2f8);
}
.pill--pink {
  background: linear-gradient(145deg, #fff3f5, #ffe0e5);
  border-color: rgba(246, 139, 148, 0.2);
  color: #b23b49;
}

/* ---- 卡片與網格 ---- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid rgba(15, 75, 87, 0.06);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card--pad { padding: 24px; }
.card--form {
  padding: 28px;
  max-width: 720px;
}

/* ---- 快速導覽 ---- */
.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}
.subnav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(15, 75, 87, 0.08);
  color: var(--teal-dark);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}
.subnav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ---- 時間軸 ---- */
.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.timeline-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(15, 75, 87, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(31, 164, 184, 0.18);
}

/* ---- 發展里程：由下至上敘事性時間軸（設計版）---- */
.timeline-page {
  background: linear-gradient(180deg, rgba(233, 247, 249, 0.6) 0%, transparent 30%);
  padding-bottom: 48px;
}
.timeline-intro {
  text-align: center;
  margin-bottom: 40px;
}
.timeline-intro .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.timeline-read-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 14px;
  background: rgba(31, 164, 184, 0.08);
  border: 1px dashed rgba(11, 75, 87, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
}
.timeline-read-hint__arrow {
  font-size: 16px;
  opacity: 0.9;
}

.timeline-narrative {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline-narrative__line {
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: linear-gradient(to top, var(--teal) 0%, rgba(31, 164, 184, 0.4) 50%, var(--teal-dark) 100%);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31, 164, 184, 0.15);
}
.timeline-narrative__item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-narrative__item:last-child {
  padding-bottom: 0;
}
.timeline-narrative__node {
  position: absolute;
  left: -36px;
  top: 28px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(31, 164, 184, 0.2);
  z-index: 1;
}
.timeline-narrative__node--current {
  width: 24px;
  height: 24px;
  left: -38px;
  top: 26px;
  background: linear-gradient(145deg, #2ac0d4, var(--teal-dark));
  box-shadow: 0 0 0 6px rgba(31, 164, 184, 0.25), 0 4px 12px rgba(11, 75, 87, 0.3);
}
.timeline-narrative__year {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(11, 75, 87, 0.25);
}
.timeline-narrative__card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(15, 75, 87, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.timeline-narrative__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
  opacity: 0.6;
}
.timeline-narrative__card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}
.timeline-narrative__card--start::before {
  background: linear-gradient(180deg, var(--teal), var(--teal-soft));
}
.timeline-narrative__card--grow::before {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
}
.timeline-narrative__card--now::before {
  background: linear-gradient(180deg, var(--teal-dark), var(--teal));
  opacity: 1;
  width: 5px;
}
.timeline-narrative__phase {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.timeline-narrative__card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.timeline-narrative__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline-narrative__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}
.timeline-narrative__list li:last-child {
  margin-bottom: 0;
}
.timeline-narrative__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}
@media (max-width: 640px) {
  .timeline-narrative {
    padding-left: 32px;
    max-width: 100%;
  }
  .timeline-narrative__line {
    left: 11px;
    width: 5px;
  }
  .timeline-narrative__node {
    left: -28px;
    width: 18px;
    height: 18px;
    top: 26px;
  }
  .timeline-narrative__node--current {
    left: -30px;
    width: 20px;
    height: 20px;
    top: 24px;
  }
  .timeline-narrative__card {
    padding: 20px 18px;
  }
  .timeline-narrative__card h3 {
    font-size: 18px;
  }
}

/* ---- 表單 ---- */
.form-contact {
  display: grid;
  gap: 14px;
}
.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 75, 87, 0.12);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-contact textarea {
  min-height: 120px;
  resize: vertical;
}
.form-contact input:focus,
.form-contact textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 164, 184, 0.1);
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
}

/* ---- 服務項目 ---- */
.flex2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: center;
}
.service-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.service-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ---- 活動與課程 ---- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.activity-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 75, 87, 0.08);
  transition: var(--transition);
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.activity-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--teal-soft);
}
.activity-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.activity-img-wrap .activity-img {
  position: absolute;
  left: 0;
  top: 0;
}
.charity-photo-placeholder {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  background: var(--teal-soft);
}
.charity-photo-placeholder.is-visible {
  display: flex;
}
.activity-info {
  padding: 18px;
}
.activity-info h3 {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 18px;
}
.activity-info p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.course-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 75, 87, 0.08);
}
.course-img-wrapper {
  position: relative;
  width: 100%;
}
.course-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.course-card-img:hover,
.js-modal-open:hover {
  opacity: 0.85;
}
.course-card-info {
  padding: 18px;
}
.course-card-info h3 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 18px;
}
.course-card-info p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}
.course-hint {
  margin-top: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}
.img-placeholder {
  display: none;
  height: 200px;
  background: var(--teal-soft);
  align-items: center;
  justify-content: center;
  color: var(--gray);
  border-radius: 18px 18px 0 0;
}
.course-img-wrapper .img-placeholder {
  display: none;
}
.course-img-wrapper .img-placeholder.is-visible {
  display: flex;
}

/* ---- 慈善協會（員工專區）---- */
.charity-section {
  margin-top: 16px;
}
.charity-logo-card {
  text-align: center;
  margin-bottom: 28px;
}
.charity-logo-img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}
.charity-logo-title {
  margin: 0;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 18px;
}

/* ---- 慈善協會跑馬燈：自動輪播、一張一張換、圖片縮小 ---- */
.charity-carousel-wrap {
  margin-bottom: 36px;
}
.charity-carousel-title {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--teal-dark);
  text-align: center;
}
.charity-carousel {
  position: relative;
  width: min(78vw, 1280px);
  max-width: calc(100% - 24px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  aspect-ratio: 21 / 9;
  min-height: 260px;
}
.charity-carousel__track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease-in-out;
}
.charity-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}
.charity-carousel__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  border-radius: 0;
}
.charity-carousel--weixin {
  aspect-ratio: 16 / 10;
  min-height: 360px;
}
.charity-carousel--weixin .charity-carousel__slide img {
  object-fit: contain;
}
.charity-carousel__slide .charity-carousel__placeholder {
  padding: 12px 8px;
  text-align: center;
  color: var(--gray);
  font-size: 12px;
}
.charity-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  color: var(--teal-dark);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.charity-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.charity-carousel__btn--prev {
  left: 4px;
}
.charity-carousel__btn--next {
  right: 4px;
}
.charity-carousel__hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  z-index: 3;
  cursor: pointer;
}
.charity-carousel__hit--prev {
  left: 0;
  cursor: w-resize;
}
.charity-carousel__hit--next {
  right: 0;
  cursor: e-resize;
}
.charity-carousel__dots {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.charity-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.charity-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.9);
}
.charity-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* ---- 徵才 ---- */
.recruitment-section {
  background: linear-gradient(180deg, var(--teal-soft) 0%, transparent 100%);
}
.recruitment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.recruitment-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--teal-dark);
}
.recruitment-card p {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 15px;
}
.recruitment-card--cta {
  display: flex;
  flex-direction: column;
}
.recruitment-card--cta .btn {
  margin-top: 8px;
}
.recruitment-card--cta .btn + .btn {
  margin-top: 8px;
}

/* ---- 組織架構 ---- */
.org-chart {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin: 32px 0;
}
.org-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}
.org-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 75, 87, 0.08);
  text-align: center;
  position: relative;
}
.org-box--branch,
.org-box.branch {
  border-top: 4px solid var(--teal);
  transition: var(--transition);
}
.org-box--branch:hover,
.org-box.branch:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}
.org-box--branch h3,
.org-box.branch h3 {
  color: var(--teal-dark);
  margin: 0 0 8px;
  font-size: 20px;
}
.org-box--branch p,
.org-box.branch p {
  color: var(--gray);
  margin: 4px 0;
  font-size: 14px;
}
.org-logo-img {
  width: 80px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}
.org-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.org-location {
  color: var(--teal);
  font-weight: 700;
  margin-top: 8px;
}
.org-sub {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 75, 87, 0.08);
}
.org-sub-item {
  background: var(--teal-soft);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 13px;
}
.org-sub-item--highlight,
.org-sub-item.highlight {
  background: linear-gradient(145deg, #fff5f6, #ffe2e6);
  color: #b23b49;
  border: 1px solid rgba(246, 139, 148, 0.2);
}

/* ---- 品牌故事 ---- */
.story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0;
}
.story-cards {
  display: grid;
  gap: 18px;
}
.story-image-section {
  position: sticky;
  top: 100px;
  margin-left: 20px;
}
.story-main-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: contain;
  display: block;
}

/* ---- 圖片 Modal ---- */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.image-modal.is-open {
  display: flex;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.3s ease;
}
.modal-close:hover {
  opacity: 0.7;
}
.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 8px;
}

/* ---- 頁尾 ---- */
.site-footer {
  background: var(--navy);
  color: #e9f6fa;
  padding: 28px var(--page-pad) 34px;
  text-align: center;
  font-size: 14px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

/* ---- 響應式 ---- */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .story-layout {
    grid-template-columns: 1fr;
  }
  .story-image-section {
    position: static;
    order: -1;
  }
}
@media (max-width: 768px) {
  .site-header .nav {
    padding: 12px 5vw;
  }
  section,
  .hero {
    padding: 52px 5vw;
  }
  .nav-links {
    display: none;
  }
  .org-branches {
    grid-template-columns: 1fr;
  }
}
