:root {
  --brand: #0f4d36;
  --brand-deep: #0a3324;
  --brand-soft: #e7f3ec;
  --accent: #c4a35a;
  --ink: #1c2a24;
  --muted: #5a6b62;
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: rgba(15, 77, 54, 0.18);
  --shadow: 0 18px 50px rgba(10, 51, 36, 0.12);
  --radius-pill: 999px;
  --font-display: "Fraunces", "Noto Serif TC", serif;
  --font-body: "Manrope", "Noto Sans TC", sans-serif;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(15, 77, 54, 0.12), transparent 50%),
    linear-gradient(180deg, #eef6f1 0%, var(--paper) 28%, #f3efe6 100%);
  line-height: 1.75;
  min-height: 100vh;
}

/* 中英文顯示切換 */
html.lang-zh .lang-en,
html.lang-en .lang-zh {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 240, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0 1rem;
  box-sizing: border-box;
  height: 4.5rem;
  display: flex;
  align-items: center;
}

.header-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  height: 100%;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  box-sizing: border-box;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 18rem;
}

.brand-logo {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.nav-toggle {
  display: none;
  appearance: none;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1.5px solid var(--brand);
  border-radius: 0.55rem;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
}

.pill-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  height: 2.25rem;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pill-nav a:hover,
.pill-nav a.is-active {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(15, 77, 54, 0.16);
}

.lang-toggle {
  height: 2rem;
  min-height: 2rem;
  min-width: 2.6rem;
  padding: 0 0.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-deep);
  background: var(--brand-deep);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(15, 77, 54, 0.16);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-stage {
  position: relative;
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(10, 51, 36, 0.92) 12%, rgba(15, 77, 54, 0.72) 48%, rgba(10, 51, 36, 0.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(196, 163, 90, 0.35), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80c20-18 40-18 60 0s40 18 60 0 40-18 60 0' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='2'/%3E%3Cpath d='M0 110c20-18 40-18 60 0s40 18 60 0 40-18 60 0' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #0a3324, #1f6b4b 55%, #2f7d58);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(247, 245, 240, 0.95));
  pointer-events: none;
}

.site-banner {
  display: block;
  line-height: 0;
  background: #d7eef8;
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 首屏 banner 蓋住 hero；碌落去 banner 淡出，hero 字釘住唔郁 */
.hero-stage.is-pinned {
  height: 260vh;
}

.hero-stage.is-pinned .hero-pin {
  position: sticky;
  top: var(--header-h, 4.5rem);
  height: calc(100vh - var(--header-h, 4.5rem));
  min-height: 22rem;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@supports (height: 100svh) {
  .hero-stage.is-pinned .hero-pin {
    height: calc(100svh - var(--header-h, 4.5rem));
  }
}

.hero-stage.is-pinned .hero {
  min-height: 0;
  height: 100%;
}

.hero-stage.is-pinned .hero-inner {
  animation: none;
  padding: 3.25rem 0 3rem;
}

.hero-stage.is-pinned .site-banner {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  background: #d7eef8;
}

.hero-stage.is-pinned .site-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  /* contain：成張海報都見到；兩邊可能有淡藍邊；淡出／sticky 動畫照用 */
  object-fit: contain;
  object-position: center center;
}

.hero-scroll-hint {
  display: none;
}

.hero-stage.is-pinned .hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 6;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.85rem 0.2rem;
  border: 0;
  background: rgba(10, 51, 36, 0.42);
  color: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-scroll-chevron {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  animation: hero-hint-bounce 1.55s ease-in-out infinite;
}

.hero-scroll-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes hero-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  45% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage.is-pinned {
    height: auto;
  }

  .hero-stage.is-pinned .hero-pin {
    position: static;
    height: auto;
    overflow: visible;
  }

  .hero-stage.is-pinned .site-banner {
    position: static;
    opacity: 1 !important;
    transform: none;
  }

  .hero-stage.is-pinned .site-banner img {
    height: auto;
    object-fit: unset;
  }

  .hero-stage.is-pinned .hero-scroll-hint {
    display: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 14ch;
}

html.lang-en .hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  max-width: none;
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-en {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 45rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(196, 163, 90, 0.28);
}

.btn-primary:hover {
  background: #d4b56d;
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-hero-donate {
  background: #3b82f6;
  border-color: #3b82f6;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

.btn-hero-donate:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
  animation: rise 0.7s ease both;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.1rem);
  color: var(--brand-deep);
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
  font-size: 1.12rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 2.75rem 0;
  animation: rise 0.8s ease both;
}

.section + .section {
  padding-top: 0.5rem;
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.story {
  display: grid;
  gap: 1.5rem;
  padding: 1.6rem 1.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.story p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.info-table th,
.info-table td {
  padding: 1.05rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.65;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 11.5rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.info-table th span[lang="en"] {
  display: inline-block;
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}

.info-table td {
  background: rgba(255, 255, 255, 0.72);
}

.table-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.7rem;
}

.table-list li::marker {
  color: var(--brand);
}

.awards-panel p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.awards-panel p:last-child {
  margin-bottom: 0;
}

.awards-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.map-panel {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-panel img {
  width: 100%;
  border-radius: 0.9rem;
}

.map-legend {
  margin-top: 0.9rem;
  padding: 0.35rem 0.45rem 0.55rem;
}

.map-notes {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.map-notes li + li {
  margin-top: 0.35rem;
}

.map-legend-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.legend-table {
  width: min(720px, 100%);
  border-collapse: collapse;
  background: var(--white);
}

.legend-table td {
  border: 1px solid #222;
  padding: 0.55rem 0.8rem;
  vertical-align: middle;
  font-weight: 600;
}

.legend-table .legend-symbol {
  width: 4.5rem;
  text-align: center;
  white-space: nowrap;
}

.legend-swatch {
  display: inline-block;
  vertical-align: middle;
}

.legend-swatch-start {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #e03131;
  border: 1px solid #111;
}

.legend-swatch-route {
  width: 2.6rem;
  height: 0.7rem;
  background: #7b2cbf;
  border-radius: 2px;
}

.legend-swatch-cp1 {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #228be6;
  border: 1px solid #111;
}

.legend-swatch-cp2 {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fd7e14;
  border: 1px solid #111;
}

.legend-swatch-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #2f9e44;
}

.legend-swatch-out {
  width: 2.4rem;
  height: 0.55rem;
  background: #e8c547;
  border-radius: 2px;
}

.legend-swatch-back {
  width: 2.4rem;
  height: 0.55rem;
  background: #e03131;
  border-radius: 2px;
}

.notes-list,
.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.notes-list li,
.plain-list li {
  padding-left: 0.2rem;
}

.notes-pay-table {
  width: 100%;
  margin-top: 0.7rem;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.98rem;
}

.notes-pay-table th,
.notes-pay-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.notes-pay-table tr:last-child th,
.notes-pay-table tr:last-child td {
  border-bottom: 0;
}

.notes-pay-table th {
  width: 8.5rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.notes-pay-table td ul {
  margin: 0;
  padding-left: 1.15rem;
}

.notes-pay-table td li + li {
  margin-top: 0.45rem;
}

.pay-logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.pay-logo-grid img {
  height: 1.65rem;
  width: auto;
  display: block;
}

.panel {
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--brand-soft);
  font-family: var(--font-display);
  color: var(--brand-deep);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-row-split {
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.cta-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.refund-note {
  margin: 0;
  margin-left: auto;
  max-width: 22rem;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9aa39e;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--brand-deep);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  min-height: 2.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand);
  background: var(--white);
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.is-active,
.tab-btn:hover {
  background: var(--brand);
  color: var(--white);
}

.form-panel[hidden],
.form-section[hidden],
.form-grid[hidden],
[hidden] {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  color: var(--brand-deep);
}

.field label:has(+ [required])::after,
.field label:has(+ .amount-with-currency [required])::after {
  content: "*";
  color: #c1121f;
  margin-left: 0.22em;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
}

.check-list label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
}

.check-list input {
  margin-top: 0.3rem;
}

.check-cert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.check-cert label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 500;
  flex: 0 1 auto;
}

.check-cert input[type="checkbox"] {
  margin-top: 0;
}

.check-cert input[type="text"] {
  width: 11rem;
  flex: 0 0 11rem;
  min-height: 2rem;
  margin-top: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.form-block-title {
  margin: 1.4rem 0 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--brand-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.4;
}

.form-block-title.is-required::after {
  content: "*";
  color: #c1121f;
  margin-left: 0.22em;
}

.req-star {
  color: #c1121f;
  margin-left: 0.15em;
  font-weight: 700;
}

.form-block-title:first-child,
.form-panel > .form-block-title:first-child {
  margin-top: 0;
}

.form-block-title-with-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}

.form-block-note {
  flex: 1 1 14rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--brand-deep);
}

.tax-note {
  margin: 1rem 0 1.15rem;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--brand-deep);
  font-weight: 600;
}

/* 表單分段白框（同 fundraise.html） */
.form-section,
.fund-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0 0 1.15rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, white);
}

.form-section > .form-block-title:first-child,
.fund-section > .form-block-title:first-child,
.form-section > h3:first-child,
.fund-section > h3:first-child {
  margin-top: 0;
}

.money-row {
  display: grid;
  gap: 0.85rem;
}

.money-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.money-inline.money-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.amount-with-currency {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.amount-with-currency .currency-prefix {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--brand-deep);
}

.amount-with-currency input[type="number"] {
  flex: 1 1 auto;
  max-width: 20rem;
}

.field > .amount-with-currency {
  margin-top: 0.35rem;
}

.money-inline label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 500;
  line-height: 1.45;
}

.money-inline input[type="radio"],
.money-inline input[type="checkbox"],
.check-list input[type="radio"],
.check-list input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.money-inline input[type="number"],
.money-inline input[type="text"] {
  width: 8.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
}

.money-inline input[readonly] {
  background: #eef4f0;
  color: var(--brand-deep);
  font-weight: 700;
}

.pay-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pay-methods-table th label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 700;
  color: inherit;
}

.pay-methods-table th input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.pay-methods-table .pay-logo-grid {
  margin-bottom: 0.55rem;
}

@media (max-width: 640px) {
  .pay-methods-table,
  .pay-methods-table tbody,
  .pay-methods-table tr,
  .pay-methods-table th,
  .pay-methods-table td {
    display: block;
    width: 100%;
  }

  .pay-methods-table th {
    border-bottom: 0;
  }

  .pay-methods-table tr + tr th {
    border-top: 1px solid var(--line);
  }
}

.form-msg {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.45;
}

.form-msg.is-ok {
  background: #e7f6ec;
  color: #0f4d36;
  border: 1px solid rgba(15, 77, 54, 0.2);
}

.form-msg.is-err {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #fde8e8;
  color: #8a1f11;
  border: 1px solid rgba(180, 40, 40, 0.25);
  box-shadow: 0 4px 16px rgba(138, 31, 17, 0.08);
}

.form-msg-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: #c1121f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
}

.form-msg-text {
  flex: 1 1 auto;
  min-width: 0;
}

.field.is-field-invalid input,
.field.is-field-invalid textarea,
.amount-with-currency.is-field-invalid input,
input.is-field-invalid,
textarea.is-field-invalid,
select.is-field-invalid {
  border-color: #c1121f !important;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.15);
}

.check-list.is-field-invalid,
.pay-methods-table tr.is-field-invalid th {
  outline: 2px solid rgba(193, 18, 31, 0.35);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.pay-methods label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 500;
}

.pay-methods input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 4.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .contact-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .info-table {
    min-width: 0;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 0.35rem;
  }

  .info-table td {
    padding-top: 0.35rem;
  }

  .info-table tr {
    border-bottom: 1px solid var(--line);
  }

  .info-table tr:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 4.25rem 0 3.5rem;
  }

  .hero-stage.is-pinned .hero-inner {
    padding: 1.1rem 0 1.35rem;
  }

  .hero-stage.is-pinned .hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
    margin-bottom: 0.4rem;
  }

  .hero-stage.is-pinned .hero-en {
    font-size: 1.02rem;
    margin-bottom: 0.65rem;
  }

  .hero-stage.is-pinned .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }

  .notes-pay-table,
  .notes-pay-table tbody,
  .notes-pay-table tr,
  .notes-pay-table th,
  .notes-pay-table td {
    display: block;
    width: 100%;
  }

  .notes-pay-table th {
    width: auto;
    border-bottom: 0;
    padding-bottom: 0.35rem;
  }

  .notes-pay-table td {
    padding-top: 0.35rem;
  }
}

/* 窄過 820px 先出漢堡掣；再闊就收埋，避免電腦見到空框 */
@media (max-width: 820px) {
  /* 手機：完整顯示 banner 海報，唔用 cover 裁切／疊字（桌面 is-pinned 動畫唔改） */
  .hero-stage.is-pinned {
    height: auto;
  }

  .hero-stage.is-pinned .hero-pin {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    transform: none;
  }

  .hero-stage.is-pinned .site-banner {
    position: static;
    inset: auto;
    z-index: auto;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    overflow: visible;
  }

  .hero-stage.is-pinned .site-banner img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: unset;
    object-position: center;
    transform: none !important;
  }

  .hero-stage.is-pinned .hero {
    min-height: auto;
    height: auto;
  }

  .hero-stage.is-pinned .hero-scroll-hint {
    display: none !important;
  }

  .header-inner {
    position: relative;
  }

  .header-right {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    height: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .pill-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.7rem;
    overflow: visible;
    background: rgba(247, 245, 240, 0.98);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .pill-nav.is-open {
    display: flex;
  }

  .pill-nav a {
    width: 100%;
    justify-content: flex-start;
    height: 2.45rem;
    font-size: 0.95rem;
    padding: 0 0.9rem;
  }
}
