:root {
  --pink: #f0528a;
  --orange: #f47b57;
  --teal: #1fbbb3;
  --purple: #8a6bbf;
  --yellow: #ffd60a;
  --blue: #3a7bd5;
  --ink: #2f2a3a;
  --muted: #6e6878;
  --line: #ece7f0;
  --bg: #fffaf7;
  --card: #ffffff;
  --soft: #fff1e6;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--purple); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- 頁首 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; max-width: 1200px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand .name { font-weight: 700; font-size: 17px; }
/* 頁首左側、品牌之後：主辦／協辦 Logo（小字標題在上、Logo 在下） */
.top-orgs { display: flex; align-items: center; gap: 16px; padding-left: 16px; border-left: 1.5px solid var(--line); flex-shrink: 0; }
.top-orgs a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.top-orgs .org-k { font-size: 11px; line-height: 1.2; letter-spacing: .5px; }
.top-orgs img { display: block; height: 30px; object-fit: contain; object-position: left center; }   /* 兩張統一 30px 高的框，標題才會對齊 */
.top-orgs .seedland { width: 163px; }   /* 一口田 Logo 很扁，實際約 16px 高，兩者寬度才接近 */
.top-orgs .harmony { width: 130px; }
@media (max-width: 1240px) and (min-width: 1081px) { .brand .name { display: none; } }   /* 選單還沒收起時，空間不夠放站名 */
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mainnav > a { white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
}
.mainnav > a:hover { background: var(--soft); }
.mainnav > a.on { color: var(--orange); background: var(--soft); }
.mainnav .cta { display: flex; gap: 8px; margin-left: 10px; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); width: 44px; height: 44px; }

@media (max-width: 1080px) {   /* 頁首多了主辦／協辦 Logo 與中英切換鈕，選單要早一點收起 */
  .menu-btn { display: block; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .mainnav.open { display: flex; }
  .mainnav > a { border-radius: 10px; padding: 12px 14px; }
  .mainnav .cta { margin: 10px 0 0; }
  .mainnav .cta .btn { flex: 1; padding: 10px; }
}
@media (max-width: 640px) {
  .brand .name { display: none; }
  .top-orgs { gap: 10px; padding-left: 10px; }
  .top-orgs .org-k { font-size: 10px; }
  .top-orgs img { height: 24px; }
  .top-orgs .seedland { width: 122px; }
  .top-orgs .harmony { width: 104px; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; color: #fff;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-pink { background: var(--pink); }
.btn-teal { background: var(--teal); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-sm { padding: 6px 16px; font-size: 14px; }

/* ---------- 首頁 Hero ---------- */
.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: 200px; height: 200px; }
.hero h1 { margin: 16px 0 0; font-size: 34px; line-height: 1.3; }
.hero .en { color: var(--muted); font-size: 18px; letter-spacing: .5px; }
.hero .meta {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  margin: 20px 0 28px; font-weight: 700;
}
.hero .meta span { background: var(--soft); padding: 6px 16px; border-radius: 999px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.rainbow {
  height: 6px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal), var(--blue), var(--purple), var(--pink));
}

section { padding: 40px 0; }
section h2 { font-size: 24px; margin: 0 0 16px; }
section h2::before {
  content: ""; display: inline-block; width: 6px; height: 22px; border-radius: 3px;
  background: var(--pink); margin-right: 10px; vertical-align: -3px;
}

/* ---------- 組別卡片（截圖 3 樣式） ---------- */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.route {
  border-radius: var(--radius);
  padding: 20px 22px;
  background: linear-gradient(135deg, #fde3e8, #ffd9cf);
  border: 1.5px solid #f6c3cf;
}
.route h3 { margin: 0 0 8px; font-size: 19px; }
.route p { margin: 0; color: #5b5262; }

.price {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.price div {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.price b { display: block; font-size: 26px; color: var(--pink); }
.note { color: var(--muted); font-size: 14px; }

.contact {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.contact p { margin: 4px 0; }



/* ---------- 步驟列（截圖 2 樣式） ---------- */
.steps {
  display: flex; justify-content: center; align-items: flex-start; gap: 4px;
  padding: 32px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.step { text-align: center; width: 110px; color: #b9b4bf; font-weight: 700; font-size: 14px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: #c9c5cd; color: #fff; font-size: 20px;
}
.step.on { color: var(--orange); }
.step.on .num { background: var(--orange); }
.step.done .num { background: var(--teal); }
.dots { color: #c9c5cd; letter-spacing: 4px; padding-top: 10px; }

/* ---------- 表單 ---------- */
.panel { background: #f4f4f4; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel .k { color: var(--orange); font-weight: 700; margin-right: 24px; }

.formcard { background: var(--soft); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.formcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.formcard-head .ico {
  width: 36px; height: 36px; border-radius: 6px; background: var(--orange);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.formcard-head h3 { margin: 0; color: var(--orange); font-size: 19px; }
.formcard-head .req-hint { margin-left: auto; font-size: 13px; font-weight: 700; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.field label.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: #d0021b; margin-left: 4px; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=date], .field input[type=number], .field textarea, .field select {
  width: 100%; padding: 9px 18px; border-radius: 999px; border: 1.5px solid transparent;
  background: #fff; font: inherit; font-size: 15px; color: var(--ink);
}
.field textarea { border-radius: 14px; min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field.err input, .field.err textarea { border-color: #d0021b; }
.field .msg { color: #d0021b; font-size: 13px; min-height: 0; }

.radios { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 2px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radios input { width: 22px; height: 22px; accent-color: var(--orange); margin: 0; }

.subhead { color: var(--orange); font-weight: 700; font-size: 17px; margin: 24px 0 10px; }

/* 第 1 步：選擇組別 */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.choice {
  position: relative; display: block; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,87,.15); }
.choice b { display: block; font-size: 17px; }
.choice span { color: var(--muted); font-size: 14px; }
.choice .amt { color: var(--pink); font-weight: 700; font-size: 18px; }

.bar { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 48px; }
.bar .btn:only-child { margin-left: auto; }

/* 第 3 步：核對 */
.review { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); padding: 8px 22px; margin-bottom: 16px; }
.review h4 { margin: 14px 0 6px; color: var(--orange); }
.review dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; margin: 0 0 12px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 700; word-break: break-all; }
.total { text-align: right; font-size: 20px; font-weight: 700; }
.total b { color: var(--pink); font-size: 26px; }

/* 第 4 步：完成 */
.done-box { text-align: center; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); padding: 40px 24px; margin-bottom: 48px; }
.done-box .big { font-size: 26px; font-weight: 700; color: var(--teal); }
.done-box .ref { display: inline-block; margin: 12px 0; padding: 8px 22px; background: var(--soft); border-radius: 999px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }

.alert { background: #fdecef; color: #a1123a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.hidden { display: none !important; }

/* 捐款金額 */
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts label {
  cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 20px; font-weight: 700;
}
.amounts input { position: absolute; opacity: 0; }
.amounts label:has(input:checked) { border-color: var(--pink); color: var(--pink); }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero img { width: 150px; height: 150px; }
  .step { width: 72px; font-size: 12px; }
  .step .num { width: 36px; height: 36px; font-size: 17px; }
  .dots { letter-spacing: 1px; }
  .review dl { grid-template-columns: 1fr; }
  .review dd { margin-bottom: 6px; }
  .brand .name { font-size: 15px; }
  .formcard { padding: 18px; }
}

/* ---------- 聯絡我們（參考圖樣式） ---------- */
.contact-sec { background: #fff0f0; padding: 32px 0 48px; }
.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--orange); font-size: 28px; font-weight: 700; margin: 0 0 20px;
}
.sec-title::before, .sec-title::after {
  content: "❯❯❯"; color: #fbd6c4; font-size: 30px; letter-spacing: -4px;
}
.sec-title::after { content: "❮❮❮"; }

.contact-card {
  background: #fff; border: 1.5px solid var(--orange); border-radius: 20px; padding: 28px 32px;
}
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.contact-info > div { border-bottom: 1px solid #d8d4dc; padding-bottom: 14px; }
.contact-info .k { color: var(--orange); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.contact-info p { margin: 2px 0; font-weight: 700; font-size: 14px; }
.contact-info .tip { color: var(--muted); font-weight: 400; }

.contact-card h3 { text-align: center; color: var(--orange); font-size: 20px; margin: 28px 0 12px; }
.form-hint { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.contact-card .field input[type=text], .contact-card .field input[type=email],
.contact-card .field input[type=tel], .contact-card .field textarea { background: #ededed; }

.captcha { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 18px; font-weight: 700; font-size: 14px; }
.captcha .code {
  font-family: "Comic Sans MS", cursive; font-size: 20px; letter-spacing: 3px; font-style: italic;
  user-select: none; padding: 0 6px; color: #555;
}
.captcha button { background: none; border: 0; font-size: 20px; cursor: pointer; color: #555; }
.captcha input { width: 110px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid transparent; background: #ededed; font: inherit; }
.captcha.err input { border-color: #d0021b; }
.form-actions { display: flex; justify-content: center; gap: 24px; }
.btn-orange { background: var(--orange); min-width: 140px; }
.btn-gray { background: #707070; min-width: 140px; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .contact-info { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { padding: 20px 18px; }
  .sec-title::before, .sec-title::after { font-size: 20px; }
  .form-actions .btn { min-width: 0; flex: 1; }
}

/* ---------- 頁尾：主辦／協辦 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0 36px; }
.site-footer p { margin: 4px 0; }
.org-k { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }

/* ---------- 內頁標題 ---------- */
.page-head { text-align: center; padding: 40px 0 8px; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- 子頁簽 ---------- */
.tabs {
  position: sticky; top: 64px; z-index: 5; background: var(--bg);
  display: flex; justify-content: center; gap: 8px; padding: 16px 0;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0; padding: 8px 20px; border-radius: 999px; text-decoration: none;
  font-weight: 700; color: var(--muted); background: #fff; border: 1.5px solid var(--line);
}
.tabs a.on { color: #fff; background: var(--orange); border-color: var(--orange); }

.tab-panel h2 { margin-top: 8px; }
.lead { font-size: 18px; font-weight: 700; color: var(--purple); }
.prose p { margin: 0 0 14px; }

/* 子區塊標題（活動詳情底下的六項） */
.h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 28px 0 12px; }
.h3 .ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--soft); font-size: 17px; }

/* 一般卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h4 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: #5b5262; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.tag-main { background: #fde3e8; color: #c2185b; }
.tag-co { background: #e0f5f3; color: #0f7f78; }
.card.accent-pink { border-top: 5px solid var(--pink); }
.card.accent-teal { border-top: 5px solid var(--teal); }
.card.accent-purple { border-top: 5px solid var(--purple); }
.card.accent-orange { border-top: 5px solid var(--orange); }
.card.accent-yellow { border-top: 5px solid var(--yellow); }
.card.accent-blue { border-top: 5px solid var(--blue); }

/* 安多酚／FUN 的意義 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.feature > div { border-radius: var(--radius); padding: 20px 22px; }
.feature > div:first-child { background: linear-gradient(135deg, #fff4c2, #ffe3d3); }
.feature > div:last-child { background: linear-gradient(135deg, #e3f6f4, #ece5f8); }
.feature h4 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; }

.quote {
  margin: 24px 0; padding: 18px 22px; border-left: 5px solid var(--pink); background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700;
}

/* 機構介紹 */
.badge-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.badge-line span { background: var(--soft); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }

/* 八大活動目標 */
.goals { counter-reset: g; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.goals li { counter-increment: g; position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 64px; }
.goals li::before {
  content: counter(g); position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--orange);
}
.goals li:nth-child(6n+2)::before { background: var(--teal); }
.goals li:nth-child(6n+3)::before { background: var(--purple); }
.goals li:nth-child(6n+4)::before { background: var(--pink); }
.goals li:nth-child(6n+5)::before { background: var(--blue); }
.goals li:nth-child(6n+6)::before { background: #e0a800; }

/* 重點資訊列（預熱活動） */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.facts div { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.facts b { display: block; color: var(--orange); font-size: 13px; }

/* 待公佈 */
.tbc {
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, #fbf6f2 10px, #fbf6f2 20px);
  border: 1.5px dashed #e3d6cc; border-radius: var(--radius); padding: 18px 20px; color: var(--muted); text-align: center;
}

@media (max-width: 640px) {
  .tabs { justify-content: flex-start; }
  .feature { grid-template-columns: 1fr; }
  .goals { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}

/* 活動回顧：照片卡 */
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.card.photo .body { padding: 12px 16px 16px; }

/* 首頁主視覺：背景照片 */
.hero-photo {
  position: relative; color: #fff;
  background: url("pic/mainPage.jpg") center bottom / cover no-repeat;   /* 人在圖片最底部，貼底對齊，裁掉的是天空 */
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,20,50,.15) 0%, rgba(40,20,50,.45) 100%);
}
.hero-photo .hero { position: relative; padding: 40px 16px max(120px, 11vw); }   /* 底部留給跑步人群，按鈕不壓到人 */
.hero-photo .hero img { background: #fff; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero-photo .hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-photo .hero .en { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-photo .hero .meta span { background: rgba(255,255,255,.92); color: var(--ink); }

.site-footer .tip { color: var(--muted); }

/* 首頁已有大尺寸主辦／協辦區，頁尾就不重複 */
body[data-page=index] .site-footer .orgs { display: none; }

/* ---------- 主辦／協辦 Logo（兩張圖已裁掉留白，統一用固定高度的框） ---------- */
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto 18px; }
.orgs > div, .orgs > a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.orgs img { display: block; width: 100%; height: 48px; object-fit: contain; }

/* 首頁：兩張等寬白卡並排 */
.orgs-lg { max-width: none; gap: 20px; }
.orgs-lg > a {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 28px 26px; transition: border-color .15s, box-shadow .15s;
}
.orgs-lg > a:hover { border-color: var(--orange); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.orgs-lg .org-k { color: var(--orange); }
.orgs-lg img { height: 64px; }   /* 一口田 Logo 很扁、會先頂到寬度；致和堂不再放大，兩者份量才接近 */

@media (max-width: 640px) {
  .orgs { grid-template-columns: 1fr; gap: 20px; }
  .orgs img { height: 44px; }
  .orgs-lg img { height: 52px; }
  .orgs-lg > a { padding: 16px 14px 20px; }
}

/* 「了解更多」連結：圓角外框鈕，取代帶底線的文字連結 */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid #f6c9b8; background: #fff;
  color: var(--orange); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.more::after { content: "→"; transition: transform .15s; }
.more:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.more:hover::after { transform: translateX(3px); }

/* 關於我們：機構名片卡（白底 Logo 放進白卡上半部，兩個機構同一版型） */
.org-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 8px; }
.org-logo { padding: 28px 32px; border-bottom: 1.5px solid var(--line); }
.org-logo img { display: block; width: 100%; max-width: 600px; height: 88px; margin: 0 auto; object-fit: contain; }
.org-meta { padding: 16px 24px 20px; text-align: center; }
.org-meta b { display: block; font-size: 20px; line-height: 1.4; }
.org-meta .en { display: block; color: var(--muted); font-size: 14px; }
.org-meta .badge-line { margin: 10px 0 0; justify-content: center; }

@media (max-width: 640px) {
  .org-logo { padding: 20px; }
  .org-logo img { height: 60px; }
}

/* 小手機：頁首主辦／協辦 Logo 再縮，才放得下選單鈕 */
@media (max-width: 420px) {
  .topbar .wrap { gap: 8px; }
  .top-orgs { gap: 8px; padding-left: 8px; }
  .top-orgs img { height: 20px; }
  .top-orgs .seedland { width: 100px; }
  .top-orgs .harmony { width: 86px; }
}

/* ---------- 中英切換 ---------- */
/* 中英各寫一份的區塊：只顯示目前語言（data-lang 由 <head> 的小段程式及 common.js 設定） */
html:not([data-lang="en"]) [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="zh-Hant"] { display: none !important; }
.lang-btn {
  order: 5; flex-shrink: 0; margin-left: 4px; min-width: 52px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 1080px) {
  .lang-btn { order: 0; margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 420px) {
  .lang-btn { min-width: 0; height: 30px; padding: 0 8px; font-size: 13px; }
  .menu-btn { width: 36px; }
  .top-orgs .seedland { width: 92px; }
  .top-orgs .harmony { width: 78px; }
}
/* 英文選單字比較長：頁首最寬 1200px 放不下英文站名，一律藏起來；選單也更早收起（收起後的樣式同上方 1080px 那段） */
html[data-lang="en"] .brand .name { display: none; }
@media (max-width: 1180px) {
  html[data-lang="en"] .menu-btn { display: block; margin-left: 0; }
  html[data-lang="en"] .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  html[data-lang="en"] .mainnav.open { display: flex; }
  html[data-lang="en"] .mainnav > a { border-radius: 10px; padding: 12px 14px; }
  html[data-lang="en"] .mainnav .cta { margin: 10px 0 0; }
  html[data-lang="en"] .mainnav .cta .btn { flex: 1; padding: 10px; }
  html[data-lang="en"] .lang-btn { order: 0; margin-left: auto; }
}
@media (max-width: 380px) {
  .brand img { width: 38px; height: 38px; }
  .top-orgs .seedland { width: 84px; }
  .top-orgs .harmony { width: 70px; }
}

/* ---------- 回到最頂 ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pink); }
@media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* ---------- 第二層頁簽（活動詳情底下的六項） ---------- */
.tabs.sub {
  position: static; justify-content: flex-start; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 16px; margin: 8px 0 4px; background: none;
}
.tabs.sub a { padding: 6px 16px; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.tabs.sub a.on { color: var(--orange); background: var(--soft); border-color: var(--orange); }
.sub-panel { padding: 8px 0 0; }
.sub-panel > .h3:first-child { margin-top: 4px; }

/* ---------- 活動顧問 ---------- */
.advisors { display: grid; gap: 16px; margin-top: 20px; }
.advisor { background: #fff; border: 1.5px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 18px 22px; }
.advisor:nth-child(3n+2) { border-left-color: var(--pink); }
.advisor:nth-child(3n+3) { border-left-color: var(--purple); }
.advisor h3 { margin: 0 0 8px; font-size: 19px; }
.advisor p { margin: 0; color: #5b5262; }
.note-order { color: var(--muted); font-size: 14px; }

/* ---------- 首頁頁尾：版權下方的大會聲明 ---------- */
.site-footer .disclaimer { margin-top: 10px; font-size: 12px; }
@media (max-width: 340px) {   /* 最窄的手機（320px）再縮一次 */
  .topbar .wrap { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .top-orgs { gap: 6px; padding-left: 6px; }
  .top-orgs .seedland { width: 70px; }
  .top-orgs .harmony { width: 60px; }
  .lang-btn { padding: 0 6px; }
}
