/* ===== 色彩與基礎變數（各校 themeColor 會覆寫 --brand） ===== */
:root {
  --brand: #0b3d5c;          /* 主色：深藍 */
  --accent: #12a39a;         /* 輔色：青綠 */
  --highlight: #f2a93b;      /* 強調：琥珀 */
  --brand-dark: color-mix(in srgb, var(--brand) 75%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
  --ink: #1d2733;
  --muted: #5c6b7a;
  --line: #dfe5eb;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 61, 92, .08);
  --font: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
section[id], #bonus { scroll-margin-top: 84px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ===== 頂部列 ===== */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.topbar-title { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--brand); }

/* Logo 預留位置：拿到素材後換成 <img> */
.logo-slot {
  flex: none;
  min-width: 72px; height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px dashed #b7c3cf; border-radius: 6px;
  font-size: 12px; color: #8796a5;
}
.logo-slot-light { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.8); }
.logo-pair { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.topbar-logo { height: 20px; width: auto; flex: none; }
@media (max-width: 480px) {
  .topbar-title { font-size: 13px; }
  .topic { min-height: 40px; padding: 6px 13px; font-size: 14px; gap: 6px; }
  .topics { gap: 8px; }
}

/* Logo 白底小卡：不同底色、白底 JPG 的 logo 放在一起也整齊 */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: calc(50% - 20px); padding: 8px 4px;
}
.logo-chip img { width: auto; max-width: 100%; height: auto; max-height: 40px; }
.logo-x { font-size: 20px; color: var(--muted); }

/* 學校頁：淺色底圖＋深色文字，內容置中（底圖中央留白） */
.hero.has-banner {
  position: relative; color: var(--ink);
  background-color: #eef8f6; background-size: cover; background-position: center;
  text-align: center;
}
.hero.has-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6));
}
.hero.has-banner .container { position: relative; }
.hero.has-banner .logo-pair { justify-content: center; flex-wrap: nowrap; }
.hero.has-banner .hero-title { color: var(--brand); }
.hero.has-banner .hero-sub, .hero.has-banner .eyebrow { color: #0b7a73; }
.hero.has-banner .hero-tagline { color: var(--ink); opacity: 1; font-weight: 500; }
.hero.has-banner .period-chip {
  background: rgba(255,255,255,.85); border-color: var(--line); color: var(--brand);
}

/* ===== 提示 ===== */
.alert {
  margin-top: 16px; padding: 14px 16px;
  background: #fff6e6; border: 1px solid #f2c97a; border-left: 5px solid var(--highlight);
  border-radius: 10px; font-size: 15px;
}
.alert strong { display: block; color: #8a5300; }
.note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--brand-soft); border-left: 5px solid var(--brand); border-radius: 10px;
}

/* ===== 主視覺 ===== */
.hero {
  color: #fff;
  padding: 48px 0 52px;
  background:
    radial-gradient(circle at 85% 20%, rgba(18,163,154,.45), transparent 55%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  background-size: cover; background-position: center;
}
.hero-school { padding-top: 32px; }
.eyebrow { font-size: 13px; letter-spacing: .12em; color: #9fe3dc; font-weight: 700; margin-bottom: 10px; }
.hero-title { font-size: clamp(28px, 7.5vw, 46px); font-weight: 900; letter-spacing: .02em; }
.hero-sub { color: #9fe3dc; }
.hero-tagline { margin-top: 12px; font-size: clamp(16px, 4.2vw, 19px); opacity: .92; }
.period-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 22px; padding: 8px 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-size: 14px; font-weight: 500;
}

/* ===== 區塊 ===== */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(22px, 5.6vw, 28px); font-weight: 900; color: var(--ink); margin-bottom: 18px; }
.kicker {
  display: block; font-size: 12px; letter-spacing: .18em; font-weight: 700;
  color: var(--accent); margin-bottom: 4px;
}
.section-desc { color: var(--muted); margin: -8px 0 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.grid-2 { display: grid; gap: 14px; }

.mission { border-top: 5px solid var(--brand); }
.mission-teacher { border-top-color: var(--accent); }
.mission h3 { font-size: 20px; margin: 8px 0 6px; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand);
}
.mission-teacher .badge { background: #e3f6f4; color: #0b7a73; }

/* ===== 步驟 ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 18px 18px 18px 78px; min-height: 92px;
}
.step-icon {
  position: absolute; left: 18px; top: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); font-size: 22px;
}
.step-no { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== 學校入口 ===== */
.entry-hint {
  padding: 16px; border-radius: var(--radius); background: var(--brand-soft);
  font-weight: 500; color: var(--brand);
}
.school-list { display: grid; gap: 10px; margin-top: 14px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; font-weight: 700; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 16px 16px; color: var(--muted); }

/* ===== 主題卡片 ===== */
.topic-groups { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.topic-groups > .topic-group { flex: 1 1 auto; max-width: 100%; }

/* 每個產品一個小區塊：標題列＋分界線＋主題按鈕 */
.topic-box {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  border-left: 4px solid var(--accent); overflow: hidden;
}
.topic-box .topic-group-title {
  margin: 0; padding: 10px 14px; background: var(--brand-soft);
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.topic-box .topics { padding: 12px 14px 14px; }
.topic-box .topic { min-height: 38px; padding: 5px 13px; font-size: 14px; }
.topic-groups.is-collapsed { display: grid; }
.topic-group-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 10px;
}
.topic-group-title .pending { margin-left: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-summary {
  padding: 12px 16px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700;
}
.topic-groups.is-collapsed { gap: 10px; }
.topic-groups.is-collapsed > .topic-group { flex: none; }
.topic-dropdown { background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
.topic-dropdown[open] { border-color: var(--brand); }
.topic-dropdown-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 56px; padding: 12px 48px 12px 16px; position: relative;
  cursor: pointer; list-style: none; font-weight: 700; color: var(--brand);
}
.topic-dropdown-head::-webkit-details-marker { display: none; }
.topic-dropdown-head::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.topic-dropdown[open] .topic-dropdown-head::after { transform: translateY(-30%) rotate(-135deg); }
.topic-count { font-size: 13px; font-weight: 500; color: var(--muted); }
.topic-dropdown-head .pending { margin-left: 0; }
.topic-dropdown .topics { padding: 0 12px 12px; }
.topic {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 44px; padding: 8px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 15px; box-shadow: 0 1px 4px rgba(11, 61, 92, .06);
  text-decoration: none; color: var(--ink); font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
a.topic:hover, a.topic:focus-visible { border-color: var(--brand); box-shadow: var(--shadow); }
.topic-name { flex: none; }
.topic .pending { margin-left: 0; }
.topic-arrow { color: var(--accent); font-weight: 700; font-size: 14px; }
.pending {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 22px;
  background: #fff1cc; color: #8a5300; border: 1px solid #f2c97a;
}

/* 主題按鈕輕輕漂浮：每顆節奏不同，滑過時停下並浮起；系統設定「減少動態效果」時不播放 */
@keyframes topic-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-3px) rotate(-.6deg); }
  70% { transform: translateY(1px) rotate(.5deg); }
}
.topic { animation: topic-float 5s ease-in-out infinite; transition: border-color .15s, box-shadow .15s, transform .15s; }
.topic:nth-child(3n+1) { animation-duration: 4.6s; animation-delay: -1.2s; }
.topic:nth-child(3n+2) { animation-duration: 5.4s; animation-delay: -2.7s; }
.topic:nth-child(4n+3) { animation-duration: 6s; animation-delay: -.6s; }
a.topic:hover, a.topic:focus-visible { animation-play-state: paused; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .topic { animation: none; } }

/* ===== 任務 ===== */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.task {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.task-no {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 900; font-size: 17px;
}
.task-body h3 { font-size: 17px; margin-bottom: 4px; }
.task-body p { font-size: 15px; color: var(--muted); }
.chip {
  display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; background: #e3f6f4; color: #0b7a73; font-weight: 500;
}
.quota { margin-top: 12px; font-weight: 700; color: #8a5300; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-lg { width: 100%; min-height: 56px; font-size: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-secondary:hover { filter: brightness(1.1); }
.btn-outline:hover { background: var(--brand-soft); }
.btn.is-disabled { background: #cfd7df; color: #5c6b7a; border-color: transparent; cursor: not-allowed; pointer-events: none; }
.cta-wrap { margin-top: 20px; }
.btn:focus-visible, a.topic:focus-visible, summary:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }

/* ===== 頁首右側禮品欄 ===== */
.hero-split { display: grid; gap: 24px; }
.gift-panel {
  text-align: left; background: rgba(255,255,255,.94); border-radius: var(--radius);
  border-top: 5px solid var(--highlight); padding: 18px; box-shadow: 0 6px 24px rgba(11, 61, 92, .12);
}
.gift-panel-title { font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.gift-panel .gifts { gap: 8px; }
.gift-panel .gift { padding: 10px 12px; gap: 10px; }
.gift-panel .gift-tier { font-size: 13px; min-width: 4.4em; text-align: center; }
.teacher-tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 22px; white-space: nowrap; vertical-align: 1px;
  background: #e3f6f4; color: #0b7a73; border: 1px solid #a8ddd7;
}

/* 頁首快速跳轉按鈕：只在電腦／平板顯示（手機用底部固定按鈕） */
.hero-actions { display: none; }
@media (min-width: 720px) {
  .hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
  .hero.has-banner .hero-actions { justify-content: center; }
  .hero-actions .btn { min-width: 150px; min-height: 50px; box-shadow: 0 4px 14px rgba(11, 61, 92, .18); }
}
@media (min-width: 1024px) { .hero-school.has-banner .hero-actions { justify-content: flex-start; } }

/* 任務：情境＋回報內容 */
.task-body .chip { margin: 0 0 6px; }
.task-scene { font-size: 15px; color: var(--ink); }
.task-body .task-note { font-size: 13px; color: #8a5300; margin-top: 6px; }
.task-submit {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--bg-alt);
  font-size: 14px; color: var(--ink);
}
.task-submit strong { color: var(--brand); }

/* ===== 動態效果（系統設定「減少動態效果」時全部關閉） ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 頭獎一列：一道光澤每隔幾秒掃過 */
.gift-top { position: relative; overflow: hidden; border-color: #f2c97a; background: #fffaf0; }
.gift-top::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.85), transparent);
  animation: gift-shine 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes gift-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* 馬上填答：緩慢呼吸光暈 */
.btn-glow { animation: btn-breathe 2.6s ease-in-out infinite; }
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 163, 154, .45); }
  50% { box-shadow: 0 0 0 10px rgba(18, 163, 154, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gift-top::after, .btn-glow { animation: none; }
}

/* 老師挑戰：標題旁的名額標籤 */
.quota-tag {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 12px; padding: 3px 12px; border-radius: 999px;
  background: #fff6e6; border: 1px solid #f2c97a; color: #8a5300;
  font-size: 14px; font-weight: 700; letter-spacing: 0; white-space: nowrap;
}

/* 老師挑戰：服務流程步驟 */
.flow-title { font-size: 17px; margin: 4px 0 12px; color: var(--ink); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--accent); padding: 16px 18px; box-shadow: var(--shadow);
}
.flow-no { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--accent); }
.flow-step h4 { font-size: 17px; margin: 4px 0 6px; }
.flow-step p { font-size: 15px; color: var(--muted); }
.flow-step:last-child { border-top-color: var(--highlight); background: #fffaf0; }
.flow-step:last-child .flow-no { color: #b7791f; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .flow-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-weight: 900; font-size: 16px; z-index: 1;
  }
}

/* 加碼挑戰：窄窄的橫向提示帶，低調但看得到 */
.section-bonus { background: #fffcf2; border-top: 1px solid #f8ecc9; border-bottom: 1px solid #f8ecc9; padding: 32px 0; }
.section-bonus { position: relative; overflow: hidden; }
.section-bonus > .container { position: relative; z-index: 1; }
/* 右側裝飾：頁首底圖的右下角實驗桌，蓋一層同色淡黃、往左淡出融入底色 */
.section-bonus::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(48%, 600px);
  background:
    linear-gradient(rgba(255, 244, 212, .5), rgba(255, 244, 212, .5)),
    url("../assets/img/bonus-corner.jpg") right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
          mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  pointer-events: none;
}
@media (max-width: 719px) { .section-bonus::before { width: 70%; opacity: .45; } }
.section-bonus .kicker { color: #b07400; }
.section-bonus .section-desc { color: var(--ink); margin: -8px 0 14px; }
.bonus-btn { background: #fff; color: #8a5300; border-color: #f2c97a; min-height: 44px; }
.bonus-btn:hover { background: #fff1cc; }
/* 加碼挑戰按鈕：和主題膠囊一樣輕微漂浮 */
.bonus-actions .btn { animation: topic-float 5s ease-in-out infinite; }
.bonus-actions .btn:nth-child(2n) { animation-duration: 5.6s; animation-delay: -2.2s; }
.bonus-actions .btn:nth-child(3n) { animation-duration: 4.6s; animation-delay: -1.1s; }
@media (prefers-reduced-motion: reduce) { .bonus-actions .btn { animation: none; } }

/* 已訂購主題說明文字下方：學習資源按鈕 */
.resource-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 20px; }
.resource-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.resource-btn { background: #fff; color: var(--brand); border-color: var(--line); min-height: 42px; }
.resource-btn:hover { border-color: var(--brand); background: var(--brand-soft); }

/* 學生挑戰：標題旁的使用手冊／教學影片按鈕 */
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 18px; }
.title-row .section-title { margin-bottom: 0; }
.title-links { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; }
.title-links[hidden] { display: none; }

/* 頁首提醒（例如：先申請個人帳號） */
.hero-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.88); border: 1px dashed #f2c97a;
}
.hero-note-text { font-size: 15px; font-weight: 700; color: #8a5300; }
.hero-note-text::before { content: "⚠️ "; }
.hero-note-btn { background: var(--highlight); color: #3d2600; min-height: 40px; }
.hero-note-btn:hover { filter: brightness(1.05); }
@media (min-width: 1024px) { .hero-school .hero-note { justify-content: flex-start; display: inline-flex; } }

/* 加碼挑戰：多個題目按鈕 */
.bonus-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-bonus-jump { background: #fff8e8; color: #8a5300; border-color: #f2c97a; }
.btn-bonus-jump:hover { background: #fff1cc; }

/* ===== 活動注意事項 ===== */
.notices {
  margin: 0; padding: 18px 18px 18px 38px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 10px; font-size: 15px; color: var(--ink);
}
.notices li::marker { color: var(--accent); }

/* ===== 嵌入表單／提示 ===== */
.form-hint {
  margin: -6px 0 18px; padding: 10px 14px; border-radius: 10px;
  background: #fff; border: 1px dashed var(--line); font-size: 14px; color: var(--muted);
}
ul.form-hint { list-style: none; display: grid; gap: 4px; }
.form-embed {
  margin-top: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.form-embed iframe { display: block; width: 100%; height: 80vh; min-height: 560px; border: 0; }
.form-fallback { margin-top: 10px; font-size: 14px; text-align: center; color: var(--muted); }
.line-notice { background: #fff6e6; border-bottom: 1px solid #f2c97a; padding: 12px 0; font-size: 14px; }
.line-notice .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.line-notice .btn { min-height: 44px; font-size: 15px; }

/* ===== 禮品 ===== */
.gifts { display: grid; gap: 10px; }
.gift {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.gift-tier {
  padding: 4px 10px; border-radius: 8px; background: var(--highlight); color: #3d2600;
  font-weight: 900; font-size: 14px; white-space: nowrap;
}
.gift-item { font-weight: 500; }
.gift-qty { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ===== 活動資訊 ===== */
.info { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info > div { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.info > div:last-child { border-bottom: 0; }
.info dt { font-size: 13px; font-weight: 700; color: var(--accent); }
.info dd { margin: 2px 0 0; }

/* ===== 頁尾 ===== */
.footer { background: #0a2233; color: #c9d6e2; padding: 28px 0; font-size: 14px; text-align: center; }
.footer-small { font-size: 12px; opacity: .7; margin-top: 6px; }
.footer a { color: #9fe3dc; text-decoration: none; white-space: nowrap; }
.footer a:hover { text-decoration: underline; }
.footer-sep { margin: 0 6px; opacity: .6; }
.is-school .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ===== 手機底部快捷按鈕 ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}

/* ===== 平板／桌機 ===== */
@media (min-width: 720px) {
  .hero { padding: 72px 0 76px; }
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { padding: 24px; text-align: center; }
  .step-icon { position: static; margin: 0 auto 10px; width: 56px; height: 56px; font-size: 26px; }
  .school-list { grid-template-columns: repeat(3, 1fr); }
  .btn-lg { width: auto; min-width: 280px; }
  .cta-wrap { text-align: center; }
  .info > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
  .info dd { margin: 0; }
  .sticky-cta { display: none; }
  .is-school .footer { padding-bottom: 28px; }
  .logo-chip { max-width: none; height: 64px; padding: 10px 18px; }
  .logo-chip img { height: 100%; max-height: none; }
  .hero.has-banner { padding: 80px 0 88px; }
}

/* ===== 電腦（寬螢幕）：內容拉寬，卡片多欄排列，減少換行 ===== */
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) minmax(320px, 36%); align-items: center; gap: 40px; }
  .hero-school.has-banner { text-align: left; }
  .hero-school.has-banner .logo-pair { justify-content: flex-start; }
  .gift-panel { padding: 22px; }
  body { font-size: 17px; }
  .container { padding: 0 32px; }
  .hero.has-banner { padding: 104px 0 112px; }
  .logo-chip { height: 72px; }
  .tasks { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .task { flex-direction: column; }
  .school-list { grid-template-columns: repeat(4, 1fr); }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; }
  .info { grid-template-columns: 1fr 1fr; }
  .info > div { grid-template-columns: 110px 1fr; border-right: 1px solid var(--line); }
  .info > div:nth-child(2n) { border-right: 0; }
  .info > div:nth-last-child(-n+2) { border-bottom: 0; }
  .card p { max-width: 75ch; }
}
