:root {
  --ink: #24302d;
  --muted: #68726d;
  --paper: #ffffff;
  --surface: #ffffff;
  --blush: #d99094;
  --rose: #ad5a64;
  --jade: #4d766a;
  --jade-dark: #233f39;
  --gold: #b88a50;
  --line: #e6d7c8;
  --soft: #ffffff;
  --shadow: none;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-page {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px 96px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 0 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.2;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-link {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(77, 118, 106, 0.25);
  border-radius: 0;
  color: var(--jade-dark);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

main {
  display: grid;
  gap: 14px;
}

.hero-card,
.gallery-card,
.partner-card,
.summary-card,
.signup-card,
.confirmation-card,
.lookup-card {
  border: 1px solid rgba(230, 215, 200, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.52) 46%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18));
}

.hero-copy {
  padding: 26px 20px 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 280px;
  margin-bottom: 10px;
  color: var(--jade-dark);
  font-family:
    "Noto Serif TC",
    "PMingLiU",
    Georgia,
    serif;
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  color: var(--jade-dark);
  font-size: 1.25rem;
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  color: var(--jade-dark);
  font-size: 1rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 320px;
  margin-bottom: 16px;
  color: #4d5752;
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-action {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 9px 18px;
  background: var(--jade-dark);
  color: #ffffff;
  font-weight: 900;
}

.hero-meta span,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(77, 118, 106, 0.2);
  border-radius: 0;
  background: #ffffff;
  color: var(--jade-dark);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.gallery-card,
.partner-card,
.summary-card,
.signup-card,
.lookup-card,
.confirmation-card {
  padding: 18px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(226px, 76%);
  gap: 12px;
  margin: 0 -18px;
  padding: 0 18px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  scroll-snap-align: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 292px;
  object-fit: cover;
  object-position: center;
}

.gallery-item.wide-photo img {
  object-position: 52% center;
}

.gallery-item figcaption {
  min-height: 64px;
  margin: 0;
  padding: 11px 12px 12px;
  color: #4a5550;
  font-size: 0.86rem;
  font-weight: 650;
}

.partner-links {
  display: grid;
  gap: 10px;
}

.partner-link {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.partner-link strong,
.partner-link small {
  display: block;
}

.partner-link strong {
  color: var(--jade-dark);
  font-size: 1rem;
  line-height: 1.3;
}

.partner-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.partner-link b {
  min-width: 46px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(77, 118, 106, 0.24);
  color: var(--jade-dark);
  font-size: 0.8rem;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row.compact {
  align-items: center;
  margin-bottom: 10px;
}

.section-title-row.compact h3 {
  margin-bottom: 0;
}

.mobile-timeline {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}

.mobile-timeline strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: rgba(77, 118, 106, 0.12);
  color: var(--jade-dark);
  font-size: 0.82rem;
}

.mobile-timeline span {
  color: #4a5550;
  font-weight: 700;
}

.signup-card {
  display: grid;
  gap: 18px;
}

.google-form-intro {
  margin-bottom: 0;
  color: #4a5550;
  font-size: 0.98rem;
  font-weight: 650;
}

.google-form-summary {
  display: grid;
  gap: 10px;
}

.google-form-summary div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.google-form-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.google-form-summary strong {
  color: var(--jade-dark);
  font-size: 0.95rem;
  line-height: 1.42;
}

.signup-actions {
  display: grid;
  gap: 10px;
}

.form-section {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.slot-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.upload-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--jade-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9c9ba;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(77, 118, 106, 0.15);
}

.availability {
  display: grid;
  gap: 8px;
}

.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 80, 0.35);
  border-radius: var(--radius);
  background: #ffffff;
}

.availability-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.availability-row strong {
  color: var(--jade-dark);
  white-space: nowrap;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 2px;
}

.consent-row input {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.consent-row span {
  margin: 0;
  color: #45514d;
  font-size: 0.9rem;
  font-weight: 650;
}

.primary-action,
.lookup-form button,
.bottom-cta button,
.bottom-cta a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.primary-action,
.bottom-cta button,
.bottom-submit {
  width: 100%;
  background: var(--jade-dark);
  color: white;
}

.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(77, 118, 106, 0.3);
  background: #ffffff;
  color: var(--jade-dark);
  font-weight: 900;
}

.lookup-form button {
  background: var(--jade);
  color: white;
}

.bottom-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(77, 118, 106, 0.3);
  color: var(--jade-dark);
  background: #ffffff;
}

.form-note {
  min-height: 22px;
  margin: -6px 0 0;
  color: var(--jade-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.confirmation-card {
  border-color: rgba(77, 118, 106, 0.28);
  background: #ffffff;
}

.confirmation-card.is-hidden {
  display: none;
}

.confirmation-card h2 {
  margin-bottom: 8px;
}

.confirmation-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.confirmation-row,
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: #ffffff;
}

.confirmation-row span,
.progress-row span {
  color: var(--muted);
}

.confirmation-row strong,
.progress-row strong {
  color: var(--jade-dark);
  text-align: right;
}

.lookup-card {
  margin-bottom: 8px;
}

.lookup-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.progress-panel {
  display: grid;
  gap: 8px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.mobile-footer {
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(230, 215, 200, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

@media (min-width: 720px) {
  body {
    background: #ffffff;
  }

  .mobile-page {
    padding-top: 18px;
  }

  .app-topbar {
    border-radius: var(--radius);
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-card {
    min-height: 470px;
  }

  .signup-card {
    gap: 20px;
  }

  .bottom-cta {
    border: 1px solid rgba(230, 215, 200, 0.9);
    border-bottom: 0;
    border-radius: 0;
  }
}
