/* ===== Reset ===== */
*, *::before, *::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
img{
  max-width:100%;
  display:block;
}
a{
  text-decoration:none;
  color:inherit;
}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;
  line-height:1.7;
  color:#333;
  background:#f8e3bc;
}

/* ===== Utilities（歷年成果相容） ===== */
.text-center{text-align:center;}
.d-block{display:block;}
.w-100{width:100%;}
.img-fluid{
  max-width:100%;
  height:auto;
}

/* ===== Variables ===== */
:root{
  --brand-green:#fa450e;   /* 主色 */
  --brand-red:#7e5a0d;     /* 價格*/
  --soft-green:#eed48e;    /* 輔助 */
  --soft-cream:#fffcea;    /* 背景 */
  --text-muted:#5b7021;    /* 次要文字 */
  --max-width:1080px;
  --radius-lg:18px;
  --shadow-soft:0 10px 30px rgba(0,0,0,0.06);

  /* 步驟 icon 寬度（桌機） */
  --step-icon-width:240px;
  --step-gap:1.8rem;

  /* 區塊標題圖（title-1~title-6）統一最大寬度 */
  --title-img-max:400px;
}

/* ===== Layout ===== */
.page{
  width:100%;
  max-width:none;
  margin:0;
  background:var(--soft-cream);
  box-shadow:none;
}
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 1.4rem;
}
section{
  padding:3rem 0;
}

/* ===== Header / Navbar ===== */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0.7rem 1.4rem;
  border-bottom:1px solid rgba(0,0,0,0.05);
  background:#ffffff;
  position:sticky;
  top:0;
  z-index:20;
}
.brand-logos{
  display:flex;
  align-items:center;
  gap:0.6rem;
  font-size:0.9rem;
}
.brand-logos img{
  height:32px;
  object-fit:contain;
}
.nav{
  display:flex;
  gap:1rem;
  font-size:0.95rem;
}
.nav a{
  position:relative;
  padding-bottom:0.1rem;
  color:#555;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:var(--brand-green);
  transition:width .2s ease;
}
.nav a:hover::after{
  width:100%;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.7rem 1.6rem;
  border-radius:999px;
  font-size:1.35rem;
  font-weight:700;
  border:2px solid transparent;
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(120deg,var(--brand-green),var(--brand-red));
  color:#fff;
  box-shadow:0 8px 18px rgba(204, 69, 45, 0.35);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(90,138,83,0.45);
}
.btn-outline{
  background:#ffffff;
  color:var(--brand-green);
  border-color:#f8d7c8;
}
.btn-outline:hover{
  background:var(--brand-green);
  color:#fff;
}
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:0.8rem;
  margin-top:1.6rem;
}

/* FB & Group 特別色 */
#FB.btn-outline{
  color:#0866ff;
  border-color:#0866ff;
}
#FB.btn-outline:hover{
  background:#0866ff;
  color:#ffffff;
  box-shadow:0 8px 18px rgba(8,102,255,0.35);
}
#groups.btn-outline{
  color:#8baf2b;
  border-color:#8baf2b;
}
#groups.btn-outline:hover{
  background:#8baf2b;
  color:#ffffff;
  box-shadow:0 8px 18px rgba(139,175,43,0.35);
}

/* ===== Hero ===== */
.hero{
  position:relative;
  overflow:hidden;
  padding:0;
}
.hero-bn img{
  width:100%;
  height:auto;
  display:block;
}
.hero-people{
  position:absolute;
  right:2%;
  bottom:10px;
  width:min(500px,42vw);
  pointer-events:none;
}
.hero-people-float{
  animation:heroFloat 3.5s ease-in-out infinite;
}
.hero-people img{
  width:100%;
  height:auto;
  display:block;
}
@keyframes heroFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* === 手機版 hero-people 位置微調，避免跑出 hero_bn_mobile 範圍 === */
@media (max-width:640px){
  .hero{
    min-height:auto;           /* 交給圖片本身決定高度 */
    padding-bottom:-0.8rem;     /* 下方預留一點空間 */
  }
  .hero-people{
    bottom:0;                  /* 固定在 hero 區塊底部 */
    width:80vw;                /* 🔧 想大一點：改 85vw 或 90vw */
    left:58%;                  /* 🔧 想往右：改 55% / 58% */
    transform:translateX(-50%);
  }
}

/* （備用）Hero 文案置中 */
.hero-copy .hero-text{
  max-width:720px;
  margin:0 auto;
  text-align:center;
}
.hero-copy .hero-title{line-height:1.4;}
.hero-copy .hero-meta{justify-content:center;}
.hero-copy .btn-row{justify-content:center;}

.hero-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:2rem;
  align-items:center;
  padding:2.8rem 1.8rem 3.4rem;
}
.hero-text{
  position:relative;
  z-index:1;
}
.eyebrow{
  font-size:0.8rem;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:var(--brand-green);
  margin-bottom:0.5rem;
}
.hero-title{
  font-size:2rem;
  font-weight:800;
  margin-bottom:0.4rem;
  color:#222;
}
.hero-title span{color:var(--brand-green);}
.hero-subtitle{
  font-size:1rem;
  color:#555;
  margin-bottom:0.3rem;
}
.hero-tagline{
  font-size:0.95rem;
  color:var(--brand-red);
  font-weight:600;
  margin-bottom:0.4rem;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem 0.8rem;
  margin-top:0.8rem;
  color:#ffffff;
}
.pill{
  padding:0.3rem 0.9rem;
  border-radius:999px;
  background:#ed2e68;
  border:1px solid rgba(0,0,0,0.06);
  font-size:0.9rem;
  font-weight:700;
  color:#ffffff;
  display:inline-block;
}
.hero-visual{position:relative;}
.hero-visual .banner-img{
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.hero-curve{
  position:absolute;
  left:-5%;
  right:-5%;
  bottom:-40px;
  height:110px;
  background:radial-gradient(circle at top, var(--soft-green) 0, transparent 60%);
  z-index:0;
}

/* Hero 主標圖 */
.hero-title-img{
  max-width:360px;
  margin:0 auto 0.6rem;
  text-align:center;
}
.hero-title-img img{
  width:100%;
  height:auto;
  display:block;
}

/* 隱藏文字（SEO 用） */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media(max-width:540px){
  .hero-title-img{
    max-width:82vw;
    margin-bottom:0.8rem;
  }
}

/* ===== Section Titles ===== */
.section-eyebrow{
  font-size:1.25rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#ff500a;
  text-align:center;
  margin-bottom:0.3rem;
}
.section-title{
  font-size:1.6rem;
  text-align:center;
  font-weight:700;
  margin-bottom:0.4rem;
  color:#222;
}
.section-subtitle{
  text-align:center;
  font-size:0.95rem;
  color:var(--text-muted);
  margin-bottom:2rem;
}

/* Section 背景色 */
#about{background:#ffffff;}
#menu{background:var(--soft-cream);}
#steps{background:#ffffff;}
#partner{background:var(--soft-cream);}
#notice{background:var(--soft-cream);}
#faq{background:#ffffff;}
.cta-bottom{background:var(--soft-cream);}

/* ===== 累積募集標題區（文字） ===== */
.flip-wrap{
  margin:1.2rem auto 0;
  text-align:center;
}
.flip-label{
  font-size:1.5rem;
  margin-bottom:0.4rem;
  color:#fff67c;
}

/* 舊翻牌表格隱藏（相容用） */
.flip-table{display:none !important;}
.flip-table td,
#mzykmode{display:none !important;}

/* === ABOUT：滿版家庭照背景（拆成上下兩塊） === */
/* === ABOUT：上半｜家庭照背景 + 文字 === */
.about-hero{
  position:relative;
  padding:4rem 0 4rem;
  overflow:hidden;
  color:#fff;
}

.about-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}
.about-hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.about-hero-mask{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:1;
}

/* 文字置中 */
.about-hero-inner{
  position:relative;
  z-index:2;
  max-width:760px;
  margin:0 auto;
  text-align:center;
  padding:0 1.2rem;
}

.about-hero .section-title,
.about-hero .section-subtitle{
  color:#fff;
  text-shadow:0 3px 6px rgba(0,0,0,0.4);
}

.about-hero .hero-title-img{
  margin-bottom:0.8rem;
}

.about-hero .about-tagline{
  font-size:0.95rem;
  color:#fff67c;
  margin-top:0.6rem;
  margin-bottom:0.6rem;
  text-shadow:0 2px 4px rgba(0,0,0,0.5);
}

/* 關於說明文字：置中＋限寬 */
.about-intro{
  max-width:720px;
  margin:0 auto;
  font-size:1.12rem;
  line-height:1.9;
  text-align:center;
}
.about-intro p{
  color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,0.55);
  margin-bottom:0.35rem;
}
.about-intro .about-lead{
  font-weight:700;
  font-size:1.75rem;
  margin-bottom:0.25rem;
}

/* 手機版 about 上半 */
@media (max-width:640px){
  .about-hero{
    padding:3rem 0 2.6rem;
  }
  .about-hero-inner{
    padding:0 1.1rem;
  }
}

/* === ABOUT：下半｜便利貼 3 顆（統一可調） === */
.about-stat{
  background:#feeeb8;
  padding:2.6rem 0 3rem;
}

/* ✅ 你主要只需要改這裡（桌機預設） */
.about-stat{
  --pill-size: 250px;         /* 便利貼大小（桌機） */
  --pill-pad: 18px;           /* 內距 */
  --main-font: 22px;          /* 第一行字 */
  --sub-font: 18px;           /* 第二行字 */
  --divider-w: 100px;         /* 橫線長度 */
  --divider-h: 2px;           /* 橫線粗細 */
  --divider-color: #e94f25;   /* 橫線顏色 */
  --meta-gap: 1.5rem;         /* 三顆之間距（桌機） */
}

.about-stat-inner{
  max-width:960px;
  margin:0 auto;
  text-align:center;
}

/* 桌機橫排 */
.about-stat .hero-meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: var(--meta-gap);
  flex-wrap:wrap;
  margin-bottom:1.2rem;
}

/* 便利貼卡本體 */
.about-stat .hero-meta .pill{
  width: var(--pill-size);
  aspect-ratio: 1 / 1;
  border-radius:0;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: var(--pill-pad);
  background:transparent;
  border:0;
  color:#333;
  line-height:1.25;
}

/* 便利貼底圖 */
.about-stat .hero-meta .pill::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("img/notes01.png") center/contain no-repeat;
  z-index:0;
}

/* 文字浮在便利貼上 */
.about-stat .hero-meta .pill > *{
  position:relative;
  z-index:1;
}

/* 文字規格 */
.about-stat .pill-line-main{
  display:block;
  font-size: var(--main-font);
  font-weight: 900;
  letter-spacing: .02em;
}

.about-stat .pill-line-sub{
  display:block;
  font-size: var(--sub-font);
  margin-top: 2px;
  font-weight: 800;
}

/* 金額那顆的分隔線 */
.about-stat .pill-price .pill-divider{
  width: var(--divider-w);
  height: var(--divider-h);
  background: var(--divider-color);
  opacity: 0.85;
  margin: 8px 0;
  border-radius: 99px;
}

/* 按鈕置中 */
.about-stat .btn-row{
  justify-content:center;
  margin-top:1.2rem;
}

/* =========================
   RWD：平板/手機（你要的桌機/手機都同步調整）
   ========================= */

/* 平板略縮（可留可不留） */
@media (max-width: 900px){
  .about-stat{
    --pill-size: 220px;
    --main-font: 20px;
    --sub-font: 16px;
    --divider-w: 92px;
    --meta-gap: 1rem;
  }
}

@media (max-width: 480px){
  .about-stat{
    padding:2.4rem 0 2.8rem;

    --pill-size: 230px;   /* ✅ 手機便利貼放大：可改 220~250 */
    --pill-pad: 16px;     /* 內距跟著放大 */
    --main-font: 20px;    /* 第一行字稍大 */
    --sub-font: 16px;     /* 第二行字稍大 */
    --divider-w: 92px;    /* 橫線也加長一點 */
    --divider-h: 2px;
    --meta-gap: 1rem;
  }

  .about-stat .hero-meta{
    flex-direction:column;
  }
}

/* 下半區的 flip 區 & 按鈕置中（沿用原本樣式即可） */
.about-stat .flip-wrap{
  margin-top:0.4rem;
}
.about-stat .btn-row{
  justify-content:center;
  margin-top:1.2rem;
}

/* 手機版：3 顆改直排、稍微縮小 */
@media (max-width:480px){
  .about-stat{
    padding:2.4rem 0 2.8rem;
  }
  .about-stat .hero-meta{
    flex-direction:column;
    gap:0.8rem;
  }
 
}

/* ===== Menu / Dishes Gallery ===== */
.menu-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:1.4rem;
}
/* 2 + 2 + 3 排版 */
.menu-grid > .dish-card:nth-child(1){
  grid-column:1 / span 3;
}
.menu-grid > .dish-card:nth-child(2){
  grid-column:4 / span 3;
}
.menu-grid > .dish-card:nth-child(3){
  grid-column:1 / span 3;
}
.menu-grid > .dish-card:nth-child(4){
  grid-column:4 / span 3;
}
.menu-grid > .dish-card:nth-child(5){
  grid-column:1 / span 2;
}
.menu-grid > .dish-card:nth-child(6){
  grid-column:3 / span 2;
}
.menu-grid > .dish-card:nth-child(7){
  grid-column:5 / span 2;
}

.dish-card{
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:1.1rem 1.1rem 1.2rem;
  box-shadow:var(--shadow-soft);
  font-size:0.9rem;
  display:flex;
  flex-direction:column;
  height:100%;
}
.dish-img{
  border-radius:14px;
  overflow:hidden;
  margin-bottom:0.7rem;
}
.dish-name{
  font-weight:700;
  margin-bottom:0.2rem;
  font-size:1.25rem;
}

/* 價格重點放大 */
.dish-price .price-big{
  font-size:1.5em;
  font-weight:bold;
  color:#e94f25;
  margin-left:5px;
}
.dish-price{
  font-size:1.1rem;
  color:#e94f25;
  font-weight:900;
  margin-bottom:0.3rem;
}
.dish-meta{
  font-size:0.88rem;
  font-weight:600;
  color:var(--text-muted);
  margin-bottom:0.4rem;
}
.dish-note{
  font-size:0.8rem;
  color:#555;
  margin-top:auto;
}

/* ===== Steps ===== */
#steps{
  background:#ffffff;
  padding:3rem 0;
}
.steps-wrap{
  background:transparent;
  border-radius:0;
  box-shadow:none;
  padding:0;
  margin-top:1.8rem;
}
.steps-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8.5rem;  /* 這一行 = 每顆 icon 之間的距離（上下＋左右） */
  justify-items:center;
}
.step-item{
  text-align:center;
  font-size:0.86rem;
  color:#555;
}
.step-icon{
  width:var(--step-icon-width);
  max-width:100%;
  margin:0 auto 0.8rem;
  display:block;
}
.step-icon img{
  width:90%;
  height:auto;
  display:block;
}
@media (max-width:900px){
  .steps-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.1rem;
  }
  .step-icon{
    width:230px;
  }
}
@media (max-width:640px){
  .steps-grid{
    grid-template-columns:1fr;
    gap:0.3rem;
  }
  .step-icon{
    width:230px;
  }
}

/* ===== Partner / Beneficiaries ===== */
.partner-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:1.6rem;
  align-items:start;
}
.partner-card{
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:1.3rem 1.1rem;
  box-shadow:var(--shadow-soft);
  font-size:0.9rem;
}
.partner-card h3{
  font-size:1rem;
  margin-bottom:0.4rem;
  color:var(--brand-green);
}
.benefit-tags{
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  margin-top:0.5rem;
  font-size:0.8rem;
}
.benefit-tags span{
  padding:0.15rem 0.6rem;
  border-radius:999px;
  background:#f1f1f1;
}

/* ===== Notice / FAQ ===== */
.notice-box{
  max-width:880px;
  margin:0 auto;
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:1.3rem 1.2rem;
  box-shadow:var(--shadow-soft);
  font-size:0.9rem;
}
.notice-title{
  font-weight:700;
  margin-bottom:0.5rem;
  color:#333;
}
.notice-list{
  padding-left:1.2rem;
  font-size:0.86rem;
  color:#555;
}
.notice-list li{
  margin-bottom:0.4rem;
}
.faq-list{
  max-width:880px;
  margin:0 auto;
}
.faq-item{
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:0.9rem 1rem;
  box-shadow:var(--shadow-soft);
  margin-bottom:0.7rem;
  font-size:0.9rem;
}
.faq-q{
  font-weight:700;
  color:#333;
  margin-bottom:0.2rem;
}
.faq-a{
  font-size:0.86rem;
  color:#555;
}

/* ===== CTA Bottom ===== */
.cta-bottom{
  text-align:center;
  padding-bottom:3rem;
}

/* ===== Footer ===== */
footer{
  background:#f9f9f9;
  border-top:1px solid rgba(0,0,0,0.05);
  font-size:0.8rem;
  color:var(--text-muted);
  padding:1.6rem 1.4rem 2rem;
}
.footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  text-align:center;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:0.8rem;
}
.footer-links a{text-decoration:underline;}

/* ===== Back to top ===== */
.back-top{
  position:fixed;
  right:1.2rem;
  bottom:1.2rem;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--brand-green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,0.3);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:50;
}
.back-top.show{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* ===== Scroll Reveal ===== */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}
.reveal.from-left{
  transform:translateX(-32px);
}
.reveal.visible.from-left{
  transform:translateX(0);
}
.reveal.from-right{
  transform:translateX(32px);
}
.reveal.visible.from-right{
  transform:translateX(0);
}
.reveal.from-bottom{
  transform:translateY(32px);
}
.reveal.visible.from-bottom{
  transform:translateY(0);
}
.reveal.delay-1{transition-delay:0.15s;}
.reveal.delay-2{transition-delay:0.3s;}
.reveal.delay-3{transition-delay:0.45s;}

/* ===== RWD ===== */
@media (max-width:640px){
  .hero-inner{
    grid-template-columns:1fr;
    padding:2.2rem 1.4rem 3rem;
  }
  .hero-visual{order:-1;}
  .about-grid,
  .plans-grid,
  .partner-grid,
  .story-grid,
  .menu-grid,
  .history-grid{
    grid-template-columns:1fr;
  }
  .plans-grid,
  .menu-grid,
  .history-grid{
    gap:1rem;
  }
  .menu-grid > .dish-card{
    grid-column:auto !important;
  }
}
@media (max-width:640px){
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:0.5rem;
  }
  .nav{
    flex-wrap:wrap;
    gap:0.6rem 1rem;
    font-size:0.85rem;
  }
  .hero-title{
    font-size:1.6rem;
  }
  section{
    padding:2.4rem 0;
  }
}

/* ===== 活動相關資訊（若未使用可保留不顯示） ===== */
.info-section{
  padding:2.4rem 0 0;
}
.info-box{
  max-width:880px;
  margin:0 auto;
  background:var(--soft-cream);
  border-radius:var(--radius-lg);
  padding:1.4rem 1.3rem;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.9rem 1.4rem;
}
.info-text{
  flex:1 1 220px;
}
.info-title{
  font-size:1.05rem;
  font-weight:700;
  margin-bottom:0.2rem;
  color:#333;
}
.info-desc{
  font-size:0.9rem;
  color:var(--text-muted);
}
.info-links{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
}
.info-link-sub{
  font-size:0.85rem;
  color:var(--brand-green);
  text-decoration:underline;
  align-self:flex-end;
}
@media (max-width:640px){
  .info-box{align-items:flex-start;}
}

/* ===== 歷年成果 Swiper ===== */
.history-section .swiper{
  width:100%;
  height:100%;
  position:relative;
  margin-top:1.5rem;
}
.history-section .swiper-slide{
  text-align:center;
  font-size:0;
  background:transparent;
  display:flex;
  justify-content:center;
  align-items:center;
}
.history-section .swiper-slide img{
  display:block;
  width:100%;
  height:auto;
}
.history-section .swiper-pagination{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  text-align:center;
  z-index:10;
}
.history-section .swiper-wrapper{
  margin-bottom:2.4rem;
}

/* ===== Partner Hero 背景 ===== */
#partner.partner-hero{
  position:relative;
  background:url('img/holding-hand3.jpg') center center/cover no-repeat;
  color:#ffffff;
}
#partner.partner-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(0,0,0,0.6),rgba(0,0,0,0.2));
}
.partner-hero-inner{
  position:relative;
  z-index:1;
  max-width:660px;
  margin:0 auto;
  padding:4rem 1.5rem;
}
.partner-hero .section-eyebrow,
.partner-hero .section-title,
.partner-hero .section-subtitle{
  color:#ffffff;
  text-align:left;
}
.partner-text-block{
  margin-top:1.2rem;
  max-width:720px;
  font-size:0.95rem;
  line-height:1.8;
}
.partner-text-block p{
  margin-bottom:0.6rem;
}
.partner-note{
  font-size:0.85rem;
  margin-top:0.6rem;
  opacity:0.9;
}
.partner-btn-row{
  margin-top:1.2rem;
}
.partner-hero .btn-outline{
  background:transparent;
  color:#ffffff;
  border-color:#ffffff;
}
.partner-hero .btn-outline:hover{
  background:#fbc600;
  color:var(--brand-red);
}
@media (max-width:640px){
  .partner-hero-inner{
    padding:3rem 1.25rem;
    max-width:360px;
  }
}

/* ===== Odometer（SCIF 風格、無光暈） ===== */
#odometer{
  font-size:90px;
  font-weight:900;
  color:#ffffff;
  text-shadow:none;
  background:rgba(255,255,255,0.20);
  padding:0.6rem 1.6rem;
  border-radius:22px;
  display:inline-block;
}
@media (max-width:640px){
  #odometer{
    font-size:5rem;
    padding:0.4rem 1rem;
  }
}


/* =========================
 * 手機版 RWD 修正（≤ 480px）
 * 直接貼在 style.css 最底即可
 * ========================= */
@media (max-width:480px){

  /* 避免整頁左右滑動 */
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }

  /* 每個 section 稍微收窄 padding，畫面比較緊實 */
  section{
    padding:2.2rem 0;
  }

  /* Topbar：維持你原本的「上下堆疊」但再收一點間距 */
  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:0.4rem;
    padding:0.6rem 1rem;
  }
  .nav{
    flex-wrap:wrap;
    gap:0.4rem 0.8rem;
    font-size:0.85rem;
  }

  /* Hero 區：改成一欄直排，圖片在上、文字在下 */
  .hero-inner{
    grid-template-columns:1fr;
    padding:2rem 1.2rem 2.6rem;
  }
  .hero-visual{
    order:-1;
  }
  .hero-title{
    font-size:1.5rem;
  }

  /* 浮動人物圖：縮小一點、往上拉，避免吃到下面區塊 */
  .hero-people{
    left:50%;
    transform:translateX(-50%);
    bottom:-90px;
    width:88vw;
  }

  /* ===== ABOUT：上半（滿版家庭照 + 說明文字） ===== */
  .about-hero{
    padding:2.6rem 0 2.4rem;
  }
  .about-hero-inner{
    padding:0 1.1rem;
  }
  .about-hero .about-tagline{
    font-size:0.95rem;
  }
  .about-intro{
    font-size:0.9rem;
    line-height:1.8;
  }

  /* ===== ABOUT：下半（3 顆圓 + SCIF 數字 + CTA） ===== */
  .about-stat{
    padding:2.4rem 0 2.6rem;
  }

  /* 3 顆圓形改成直排、等寬 */
  .about-stat .hero-meta{
    flex-direction:column;
    align-items:center;
    gap:0.8rem;
    margin-bottom:1rem;
  }
  }

  /* 三顆圓裡的上下兩行字再縮小一點，避免擠到換行 */
  .about-stat .hero-meta .pill .pill-line-main{
    font-size:18px;
  }
  .about-stat .hero-meta .pill .pill-line-sub{
    font-size:14px;
  }

  /* SCIF 數字縮小，避免撐出橫向卷軸 */
  #odometer{
    font-size:3.2rem;
    padding:0.4rem 0.9rem;
  }

  /* CTA 按鈕列置中 */
  .about-stat .btn-row{
    justify-content:center;
    margin-top:1.1rem;
  }

  /* ===== 年菜一覽：改成單欄直排 ===== */
  .menu-grid{
    grid-template-columns:1fr;
    gap:1rem;
  }
  .menu-grid > .dish-card{
    grid-column:auto !important; /* 把原本 2+2+3 的格線吃掉 */
  }

  /* ===== 捐贈步驟：手機改一欄直排，間距拉開一點 ===== */
  .steps-grid{
    grid-template-columns:1fr;
    gap:1rem;
  }
  .step-icon{
    width:230px;
  }

  /* ===== Partner / FAQ 等兩欄區塊：改為一欄 ===== */
  .partner-grid{
    grid-template-columns:1fr;
    gap:1rem;
  }
  .info-box{
    flex-direction:column;
    align-items:flex-start;
  }

  /* 歷年成果輪播，下方留白少一點 */
  .history-section .swiper-wrapper{
    margin-bottom:1.6rem;
  }

/* === 手機版 Navbar：圓形漢堡鈕 + 展開選單 === */

/* 基本漢堡鈕（桌機隱藏、手機再開） */
.nav-toggle{
  display:none;
  border:none;
  background:#ffffff;
  border-radius:50%;
  width:40px;
  height:40px;
  padding:0;
  margin-left:0.75rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}

/* 三條線 */
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#e94f25;
  transition:transform .2s ease, opacity .2s ease, width .2s ease;
}

/* 變成 X 的動畫 */
.nav-toggle.is-open span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2){
  opacity:0;
  width:0;
}
.nav-toggle.is-open span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* 手機版 navbar 佈局 */
@media (max-width:768px){
  .topbar{
    padding:0.6rem 1rem;
    justify-content:space-between;
    align-items:center;
    gap:0.5rem;
  }

  /* logo 置中 */
  .brand-logos{
    flex:1 1 auto;
    justify-content:center;
  }

  /* 手機版展開選單（預設收起） */
  .nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#ffffff;
    padding:0.6rem 1.4rem 1rem;
    flex-direction:column;
    align-items:flex-start;
    gap:0.4rem;
    font-size:0.95rem;
    box-shadow:0 10px 28px rgba(0,0,0,0.15);
    border-radius:0 0 18px 18px;
    display:none;
    z-index:30;
  }

  /* 打開狀態：body 加 nav-open 時顯示 */
  body.nav-open .nav{
    display:flex;
  }

  .nav a{
    padding:0.25rem 0;
  }

  /* 手機才顯示漢堡鈕 */
  .nav-toggle{
    display:flex;
  }
}


/* ===== Section Floating Decorations ===== */
section{
  position:relative; /* 讓裝飾圖可以相對於每個區塊定位 */
}

/* 共用容器：放在每一區塊分界線上方 */
.section-decoration{
  position:absolute;
  top:-40px;               /* 圖片中心大約落在分界線，可視覺再微調 */
  left:80%;
  transform:translateX(-50%);
  z-index:6;
  pointer-events:none;     /* 不會擋住連結與按鈕 */
}

/* 圖片大小 + 漂浮動畫：桌機版 */
.section-decoration img{
  width:200px;                           /* 桌機尺寸 */
  height:auto;
  animation:sectionFloat 6s ease-in-out infinite;
}

/* 漂浮關鍵影格 */
@keyframes sectionFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
}

/* 可以選擇左右偏移／大小與速度微調用 */
.section-decoration--left{
  left:18%;
  transform:none;
}
.section-decoration--right{
  left:auto;
  right:18%;
  transform:none;
}
.section-decoration--small img{
  width:170px;            /* 小一點的版本（桌機） */
}
.section-decoration--slow img{
  animation-duration:8s;
}
.section-decoration--fast img{
  animation-duration:4.5s;
}

/* 手機版：ICON 縮小 */
@media (max-width:640px){
  .section-decoration{
    top:-50px;
  }

  /* 手機版 ICON 統一放大 */
  .section-decoration img{
    width:150px;   /* ← 原本 120px，改大一點 */
  }

  /* 如果 icon3 / icon4 有加 .section-decoration--small，就再放大一點 */
  .section-decoration--small img{
    width:135px;   /* 可再視覺調整 130～140 之間 */
  }
}

/* ====== 2026 Stationery Overrides ====== */
/* 捐贈內容只放一張卡時：改成單欄置中 */
.menu-grid--single{
  grid-template-columns: minmax(0, 1fr);
}
.menu-grid--single > .dish-card{
  grid-column: auto !important;
  max-width: 820px;
  margin: 0 auto;
}

/* 參與方式改成 4 步驟：桌機 4 欄，間距縮小 */
.steps-grid--4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
}

@media (max-width:900px){
  .steps-grid--4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}
@media (max-width:640px){
  .steps-grid--4{
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* 螢幕閱讀/SEO 用：視覺隱藏但保留語意 */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* 如果你沒有 Bootstrap 的 img-fluid，就補這個 */
.img-fluid{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

/* 圖片標題置中（通用：各區塊標題圖） */
.section-title-img{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 0 0 12px;
}

.section-title-img img{
  display:block;
  width:100%;
  max-width:var(--title-img-max);
  height:auto;
}

@media (max-width:640px){
  .section-title-img img{
    max-width:min(92vw, var(--title-img-max));
  }
}

/* 視覺隱藏但保留語意（如果你尚未加過） */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}


/* ===== No-JS / script.js 失效時：避免 reveal 內容全空白 ===== */
.no-js .reveal{
  opacity:1 !important;
  transform:none !important;
}

/* ===== Stationery 5圖排版：上2下3（高度一致） ===== */
.stationery-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:14px;
  margin: 0 0 0.9rem;
}
.stationery-item{ margin:0; }
.stationery-item:nth-child(1){ grid-column:1 / span 3; }
.stationery-item:nth-child(2){ grid-column:4 / span 3; }
.stationery-item:nth-child(3){ grid-column:1 / span 2; }
.stationery-item:nth-child(4){ grid-column:3 / span 2; }
.stationery-item:nth-child(5){ grid-column:5 / span 2; }

.stationery-thumb{
  border-radius:14px;
  overflow:hidden;
  background:#f3f3f3;
  height:180px;
}
.stationery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.stationery-item figcaption{
  margin-top:8px;
  font-size:0.92rem;
  font-weight:700;
  color:#333;
  text-align:center;
  line-height:1.35;
}

@media (max-width:900px){
  .stationery-thumb{ height:160px; }
}
@media (max-width:640px){
  .stationery-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .stationery-item:nth-child(1),
  .stationery-item:nth-child(2),
  .stationery-item:nth-child(3),
  .stationery-item:nth-child(4),
  .stationery-item:nth-child(5){
    grid-column:auto;
  }
  .stationery-thumb{ height:140px; }
}

/* ✅ 5個商品卡：上2下3（桌機） */
.donation-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr); /* 6格：上排2張各占3格；下排3張各占2格 */
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.donation-item{
  background:#fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  text-align:center;
}

.donation-item:nth-child(1),
.donation-item:nth-child(2){
  grid-column: span 3;  /* 上排2張 */
}
.donation-item:nth-child(3),
.donation-item:nth-child(4),
.donation-item:nth-child(5){
  grid-column: span 2;  /* 下排3張 */
}

/* 圖片區：固定高度、統一顯示 */
.donation-img{
  width:100%;
  height: 170px;       /* 可改：桌機高度 */
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius: 12px;
}

.donation-img img{
  width:100%;
  height:100%;
  object-fit: contain; /* 商品圖不裁切，統一高度 */
  display:block;
}

.donation-cap{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* ✅ RWD：平板/手機改成2欄或1欄 */
@media (max-width: 900px){
  .donation-grid{ grid-template-columns: repeat(2, 1fr); }
  .donation-item{ grid-column: auto !important; }
  .donation-img{ height: 150px; }
}

@media (max-width: 520px){
  .donation-grid{ grid-template-columns: 1fr; }
  .donation-img{ height: 160px; }
}

/* =========================
 * Lightbox 放大圖（點擊商品圖放大）
 * ========================= */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.72);
  display:none;
  justify-content:center;
  align-items:center;
  padding: 24px;
  z-index: 9999;
}
.lightbox.is-open{ display:flex; }
.lightbox-inner{
  max-width: min(980px, 92vw);
  max-height: 86vh;
  position: relative;
  text-align:center;
}
.lightbox-inner img{
  max-width: 100%;
  max-height: 80vh;
  height:auto;
  display:block;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.lightbox-caption{
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.lightbox-close{
  position:absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border:0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color:#fff;
  font-size: 28px;
  line-height: 44px;
  cursor:pointer;
}
@media (max-width:520px){
  .lightbox{ padding: 14px; }
  .lightbox-inner img{ max-height: 76vh; }
}

.footer-inner{
 color: #ffffff;
}

footer{
  background:#70c957;
}
footer .copyright,
footer .footer-copyright{
  background:transparent;
}

/* ✅ 捐贈組名稱/價格：置中並放大 */
#menu .dish-name,
#menu .dish-price{
  text-align:center;
  width:100%;
}

#menu .dish-name{
  font-size: 40px;     /* 名稱放大 */
  font-weight: 900;
  margin-top: 18px;
  line-height: 1.15;
  letter-spacing: .5px;
}

#menu .dish-price{
  font-size: 44px;     /* 價格放大 */
  font-weight: 900;
  margin-top: 8px;
  line-height: 1.1;
}

#menu .dish-price .price-big{
  font-size: 1.35em;   /* 300 再更大 */
}

/* 手機版避免爆版 */
@media (max-width: 520px){
  #menu .dish-name{ font-size: 30px; }
  #menu .dish-price{ font-size: 32px; }
}

/* ===== Steps 中間箭頭（點點圖版 + 淡入）===== */
#steps .steps-grid{ position: relative; }
#steps .step-item{ position: relative; }

/* 前 3 個加箭頭（第4個不加） */
#steps .step-item:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;                           /* ✅ 控制箭頭落在兩卡中間 */
  width: 50px;                            /* ✅ 箭頭大小 */
  height: 50px;
  background: url("img/arrow-dots.png") center/contain no-repeat;

  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  pointer-events: none;

  animation: stepsArrowFade .9s ease forwards;
}

/* 逐一淡入（有節奏） */
#steps .step-item:nth-child(1)::after{ animation-delay: .15s; }
#steps .step-item:nth-child(2)::after{ animation-delay: .35s; }
#steps .step-item:nth-child(3)::after{ animation-delay: .55s; }

@keyframes stepsArrowFade{
  from{ opacity:0; transform: translateY(-50%) translateX(-14px); }
  to  { opacity:1; transform: translateY(-50%) translateX(0); }
}

/* 手機版通常不顯示，避免擠（保留你原本設定） */
@media (max-width: 900px){
  #steps .step-item::after{ display:none; }
}

/* ===== 手機版：箭頭放在卡片下方（像你截圖那樣） ===== */

/* 先：平板以下先不要用右側箭頭（避免兩欄時亂） */
@media (max-width: 900px){
  #steps .step-item:not(:last-child)::after{
    right: auto;
    top: auto;
  }
}

/* 再：真正手機（單欄）才顯示「卡片下方」箭頭 */
@media (max-width: 480px){

  /* 讓每張卡下面有空間放箭頭 */
  #steps .steps-grid{
    row-gap: 64px;   /* ✅ 想要更鬆就加大（例如 70px） */
  }

  /* 箭頭：在卡片正下方、置中、往下指 */
  #steps .step-item:not(:last-child)::after{
    display:block;
    content:"";
    position:absolute;

    left:47%;
    bottom:-70px;                 /* ✅ 箭頭離卡片多遠（-40~-55 自己調） */

    width: 70px;                  /* ✅ 箭頭大小（可改 70~95） */
    height: 86px;

    background: url("img/arrow-dots.png") center/contain no-repeat;

    opacity: 0;
    transform: translateX(-50%) rotate(90deg); /* 往下 */
    pointer-events:none;

    animation: stepsArrowFadeMobile .9s ease forwards;
  }

  /* 逐一淡入 */
  #steps .step-item:nth-child(1)::after{ animation-delay: .15s; }
  #steps .step-item:nth-child(2)::after{ animation-delay: .35s; }
  #steps .step-item:nth-child(3)::after{ animation-delay: .55s; }

  @keyframes stepsArrowFadeMobile{
    from{ opacity:0; transform: translateX(-50%) translateY(-8px) rotate(90deg); }
    to  { opacity:1; transform: translateX(-50%) translateY(0) rotate(90deg); }
  }
}

/* ===== 捐贈組：兩塊按鍵（取代 dish-name / dish-price） ===== */
.menu-cta-btns{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:18px;
}

.menu-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:min(520px, 92%);
  padding:18px 22px;
  border-radius:18px;
  font-weight:900;
  text-align:center;
  line-height:1.1;
  letter-spacing:.5px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.menu-cta-btn:hover{
  transform:none;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  filter:none;
  cursor: default;
  pointer-events: none;
}

.menu-cta-btn--name{
  background:#ffffff;
  color:#333;
  border:2px solid rgba(0,0,0,.06);
  font-size:42px;
}

.menu-cta-btn--price{
  background:#ff5a1f;   /* 你原本的橘色系 */
  color:#ffffff;
  border:2px solid transparent;
  font-size:44px;
}

/* 手機版避免爆版 */
@media (max-width:520px){
  .menu-cta-btn--name{ font-size:30px; padding:16px 18px; }
  .menu-cta-btn--price{ font-size:32px; padding:16px 18px; }
}
