/* =============================
   About Page 樣式 (優化版)
============================= */

/* 通用容器設定 */
.about-hero,
.about-story,
.about-how,
.about-final-cta {
  max-width: 960px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}

/* Hero 區 */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 20px 100px;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
}

.about-hero p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 3rem; /* 加大副標與按鈕間距 */
  white-space: pre-line;
}

.about-hero a {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 999px;
  background-color: var(--brand-blue);
  color: white;
  text-decoration: none;
  min-width: 160px;
  transition: all 0.3s ease;
}

.about-hero a:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Story 卡片區 */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 64px 24px; /* 加大卡片內padding */
  margin: 60px auto;
  text-align: center;
  max-width: 800px;
}

.card h2 {
  margin-top: 1rem;    /* 标题上方 1rem 空白 */
  margin-bottom: 1rem; /* 标题下方 1rem 空白 */
}

.about-page h2,
.subheading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.about-page .paragraph {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-primary, #333);
  white-space: pre-line;
  max-width: 720px;
  margin: 0.5rem auto 3rem auto;
  text-align: center;
}

/* 调整愿景区块内的列表 */
.about-story .paragraph ul {
  list-style-position: inside;  /* bullet 也會隨文字一起置中 */
  text-align: center;           /* 讓整個 UL 內容水平置中 */
  margin: 1.25rem 0;      /* 列表上下各 0.75rem */
  padding-left: 1.5rem;  /* 留点缩进 */
}
.about-story .vision-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  max-width: 640px;
  margin: 1.5rem auto 2rem auto;
}

.about-story .vision-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-primary, #333);
}

.about-story .vision-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-size: 1rem;
  top: 0.2em;
}
.about-page .paragraph {
  max-width: 600px;
  text-align: left;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-primary, #333);
  margin: 0.5rem auto 2.5rem auto;
}

/* 📦 在 about.css 中添加以下樣式 */

/* GIVER 精神時間軸布局 */
.giver-spirit {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

.giver-spirit h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 48px;
  font-weight: 700;
}

.giver-timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.giver-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, 
    #FF6B6B 0%, 
    #4ECDC4 25%, 
    #45B7D1 50%, 
    #96CEB4 75%, 
    #FFEAA7 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
  opacity: 0;
  transform: translateX(-20px);
  animation: timelineSlideIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes timelineSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-letter {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #2c3e50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-letter {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 為每個字母添加不同的顏色 */
.timeline-item:nth-child(1) .timeline-letter {
  border: 3px solid #FF6B6B;
  color: #FF6B6B;
}

.timeline-item:nth-child(2) .timeline-letter {
  border: 3px solid #4ECDC4;
  color: #4ECDC4;
}

.timeline-item:nth-child(3) .timeline-letter {
  border: 3px solid #45B7D1;
  color: #45B7D1;
}

.timeline-item:nth-child(4) .timeline-letter {
  border: 3px solid #96CEB4;
  color: #96CEB4;
}

.timeline-item:nth-child(5) .timeline-letter {
  border: 3px solid #FFEAA7;
  color: #e17055;
}

.timeline-content {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.timeline-item:nth-child(1):hover .timeline-content {
  border-left-color: #FF6B6B;
}

.timeline-item:nth-child(2):hover .timeline-content {
  border-left-color: #4ECDC4;
}

.timeline-item:nth-child(3):hover .timeline-content {
  border-left-color: #45B7D1;
}

.timeline-item:nth-child(4):hover .timeline-content {
  border-left-color: #96CEB4;
}

.timeline-item:nth-child(5):hover .timeline-content {
  border-left-color: #FFEAA7;
}

.timeline-word {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.timeline-meaning {
  color: #6c757d;
  line-height: 1.6;
  font-size: 1rem;
}

.giver-spirit-footer {
  text-align: center;
  font-size: 1.2rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
  font-style: italic;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .giver-spirit {
    padding: 32px 20px;
  }
  
  .giver-spirit h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .giver-timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
    margin-bottom: 32px;
  }

  .timeline-letter {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-word {
    font-size: 1.2rem;
  }

  .timeline-meaning {
    font-size: 0.9rem;
  }

  .giver-spirit-footer {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .giver-timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-letter {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    left: 0;
  }
}

/* How It Works 區 */
.section-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 1rem auto 2rem auto;
  color: var(--gray-600);
  text-align: center;
}

.about-how h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 2.5rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 240px;

  background: var(--color-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 可選：加個 hover 效果 */
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.step-card p {
  font-size: 1rem;
  margin: 0;           /* 取消預設上下 margin */
  color: var(--color-text-secondary, #666);
  line-height: 1.5;    /* 讓 multi-line 文字比較好閱讀 */
}

/* Final CTA 區 */
.about-final-cta {
  margin-top: 100px;
}

.about-final-cta .paragraph {
  font-size: 1.125rem;
  color: var(--color-text-primary, #333);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-final-cta a {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 999px;
  background-color: var(--brand-blue);
  color: white;
  text-decoration: none;
  min-width: 160px;
  transition: all 0.3s ease;
}

.about-final-cta a:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* 手機版優化 */
@media (max-width: 768px) {
  .about-hero,
  .about-story,
  .about-story .card h2 {
    margin-top: 1.5rem;  /* 或者 1.25rem，按需求微调 */
  }
  .about-how,
  .about-final-cta {
    margin: 60px auto;
    padding: 0 16px;
  }

  .about-page h2,first-child {
    margin-top: 2rem;  /* 例如 2rem，看起來就不會太靠上了 */
  }

  .about-page .paragraph,
  .step-card p {
    font-size: 1rem;
  }
}
.dual-column {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 960px;
  margin: 80px auto;
  padding: 0 20px;
}

.dual-column .column {
  flex: 1;
}

.text-col {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.text-col .paragraph {
  margin-top: 1rem;
}

.image-col img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* 手機版自動變直向排列 */
@media (max-width: 768px) {
  .dual-column {
    flex-direction: column;
    text-align: center;
  }

  .text-col {
    text-align: left;
  }

  .image-col img {
    max-width: 300px;
    margin-top: 24px;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: none;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* 🔧 修正標題置中問題 - 在現有 CSS 中添加以下樣式 */

/* 新增：統一的區塊容器樣式 */
.who-is-giver,
.giver-spirit,
.name-origin,
.founder-note,
.final-cta {
  max-width: 960px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

/* 修正：確保所有卡片樣式統一置中 */
.card,
.who-is-giver,
.giver-spirit,
.name-origin {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 64px 24px;
  margin: 60px auto;
  text-align: center;
  max-width: 800px;
}

/* 🔧 關鍵修正：覆蓋 giver-spirit 的標題樣式 */
.giver-spirit h2,
.about-how h2 {
  text-align: center !important;
  font-size: 2rem !important;
  color: var(--brand-blue) !important;
  margin-bottom: 2rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
}

/* 確保時間軸容器置中 */
.giver-spirit-table {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 修正時間軸樣式，確保整體置中 */
.giver-timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  text-align: left; /* 時間軸內容左對齊，但整個容器置中 */
}

/* 修正：How It Works 區塊置中 */
.about-how {
  max-width: 960px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}

/* 修正：步驟容器置中 */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 48px auto 0 auto;
  max-width: 960px;
  padding: 0;
}

/* 修正：步驟卡片編號樣式 */
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  background: var(--color-surface, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 新增：步驟編號樣式 */
.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: var(--brand-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 確保創辦者手記也置中 */
.founder-note {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 64px 24px;
  margin: 60px auto;
  text-align: center;
  max-width: 800px;
}

.founder-note h2 {
  text-align: center !important;
  font-size: 2rem !important;
  color: var(--brand-blue) !important;
  margin-bottom: 1.5rem !important;
  font-weight: 700 !important;
}

.founder-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brand-blue);
  margin: 2rem auto;
  padding: 1.5rem;
  border-left: 4px solid var(--brand-blue);
  background: #f8f9ff;
  border-radius: 8px;
  max-width: 600px;
  white-space: pre-line;
}

/* Final CTA 樣式修正 */
.final-cta {
  margin: 100px auto;
  padding: 64px 24px;
  text-align: center;
}

.final-cta h2 {
  text-align: center !important;
  font-size: 2rem !important;
  color: var(--brand-blue) !important;
  margin-bottom: 1.5rem !important;
  font-weight: 700 !important;
}

/* 手機版優化 */
@media (max-width: 768px) {
  .who-is-giver,
  .giver-spirit,
  .name-origin,
  .founder-note,
  .final-cta,
  .about-how {
    margin: 60px auto;
    padding: 32px 16px;
  }

  .giver-spirit h2,
  .about-how h2,
  .founder-note h2,
  .final-cta h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
  }
}

.how-it-works {
  max-width: 960px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}

.how-it-works h2 {
  text-align: center !important;
  font-size: 2rem !important;
  color: var(--brand-blue) !important;
  margin-bottom: 2rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  width: 100% !important;
  display: block !important;
}