:root {
  color-scheme: light;
  --primary: #06c755;
  --primary-hover: #05b94e;
  --ink: #111111;
  --muted: #667085;
  --surface: #ffffff;
  --muted-surface: #f7f8fa;
  --border: #e5e7eb;
  --danger: #ef4444;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1180px);
  height: 76px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--primary); color: white; font-size: 17px; font-weight: 800; }
.header-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.header-button { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 14px; font-weight: 700; text-decoration: none; }

.home-hero {
  display: grid;
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 88px;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; }
.home-hero h1 { margin: 0; font-size: clamp(44px, 13vw, 76px); font-weight: 700; letter-spacing: -0.055em; line-height: 1.06; }
.hero-copy { margin: 28px 0 0; font-size: clamp(20px, 5vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.5; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-points li { padding: 8px 13px; border-radius: 999px; background: var(--muted-surface); color: #344054; font-size: 14px; font-weight: 650; }
.hero-actions { display: grid; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 18px; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.button:active { transform: scale(0.985); }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { border-color: var(--border); background: white; color: var(--ink); }

.hero-visual { display: flex; justify-content: center; }
.journey-card { position: relative; width: min(100%, 430px); min-height: 310px; padding: 34px; border-radius: 32px; background: var(--muted-surface); overflow: hidden; }
.journey-card::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 250px; height: 250px; border-radius: 50%; background: var(--primary); opacity: 0.12; }
.journey-label { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: white; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.journey-route { display: flex; align-items: center; margin: 64px 0 46px; }
.route-dot { width: 16px; height: 16px; border: 4px solid white; border-radius: 50%; background: var(--ink); box-shadow: var(--shadow); }
.route-dot.destination { width: 22px; height: 22px; background: var(--primary); }
.route-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #98a2b3 0 6px, transparent 6px 12px); }
.journey-card strong, .journey-card > span:last-child { position: relative; z-index: 1; display: block; }
.journey-card strong { font-size: 24px; letter-spacing: -0.03em; }
.journey-card > span:last-child { margin-top: 6px; color: var(--muted); }

.section { padding: 88px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 620px; margin-bottom: 36px; }
.section h2, .trust-section h2 { margin: 0; font-size: clamp(28px, 7vw, 42px); line-height: 1.25; letter-spacing: -0.04em; }
.feature-section { background: var(--muted-surface); }
.feature-grid { display: grid; gap: 16px; }
.feature-card { position: relative; display: block; width: 100%; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: white; color: var(--ink); text-align: left; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #effcf4; font-size: 22px; }
.feature-card h3 { margin: 28px 0 4px; font-size: 21px; }
.feature-card p { margin: 0; color: var(--muted); }
.card-arrow { position: absolute; right: 26px; bottom: 27px; color: var(--primary); font-size: 24px; }

.trust-section { display: grid; gap: 48px; padding: 88px max(24px, calc((100vw - 1180px) / 2)); }
.trust-content > p:last-child { max-width: 520px; margin: 20px 0 0; color: var(--muted); }
.trust-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 650; }
.trust-list span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eafff1; color: var(--primary); font-weight: 900; }
.site-footer { display: flex; flex-direction: column; gap: 4px; padding: 40px 24px; background: var(--muted-surface); text-align: center; }
.site-footer span { font-weight: 800; }
.site-footer small { color: var(--muted); }

.page-shell { width: min(100% - 36px, 900px); margin: 0 auto; padding: 48px 0 96px; }
.page-intro { max-width: 680px; margin-bottom: 44px; }
.page-intro h1 { margin: 0; font-size: clamp(42px, 11vw, 64px); line-height: 1.12; letter-spacing: -0.05em; }
.page-intro > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 54px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }

.autofill-status { display: flex; align-items: center; gap: 10px; max-height: 60px; margin: -20px 0 24px; padding: 13px 16px; border-radius: 14px; background: #effcf4; color: #087e39; font-size: 14px; font-weight: 650; overflow: hidden; animation: dismiss-status 600ms ease 4.5s forwards; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid rgba(6, 199, 85, 0.25); border-top-color: var(--primary); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dismiss-status { to { max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } }

.booking-form { display: grid; gap: 20px; }
.form-section { padding: 28px 22px; border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-section-heading { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.section-number { color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.form-section-heading h2 { margin: -5px 0 3px; font-size: 23px; line-height: 1.4; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.form-fields { display: grid; gap: 24px; padding-top: 28px; }
label { display: grid; gap: 9px; color: #344054; font-size: 14px; font-weight: 700; }
.required, .optional { justify-self: start; margin-left: 7px; font-size: 11px; font-weight: 700; }
.required { color: var(--danger); }
.optional { color: #98a2b3; }
input, select, textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: white; color: var(--ink); font-size: 16px; outline: none; transition: border 160ms ease, box-shadow 160ms ease; }
textarea { min-height: 136px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.1); }
.field-row { display: grid; gap: 24px; }
.submit-area { padding: 28px 4px 0; text-align: center; }
.submit-area > p { margin: 0 auto 20px; color: var(--muted); font-size: 14px; }
.submit-button { width: 100%; border: 0; }
.submit-button:disabled { cursor: wait; opacity: 0.58; }

.bookings-page { min-height: calc(100svh - 76px); }
.loading-card, .booking-card { border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.loading-card { position: relative; padding: 28px; color: var(--muted); font-size: 14px; overflow: hidden; }
.loading-card > span { display: block; margin-top: 22px; }
.skeleton-heading, .skeleton-line { height: 16px; border-radius: 999px; background: linear-gradient(90deg, #f0f1f3 25%, #fafafa 50%, #f0f1f3 75%); background-size: 200% 100%; animation: skeleton 1.4s infinite; }
.skeleton-heading { width: 42%; height: 22px; margin-bottom: 24px; }
.skeleton-line { width: 100%; margin-top: 12px; }
.skeleton-line.short { width: 66%; }
@keyframes skeleton { to { background-position: -200% 0; } }
.booking-list { display: grid; gap: 18px; }
.booking-card { position: relative; padding: 28px 24px; overflow: hidden; }
.booking-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); }
.booking-card h2 { margin: 0 0 22px; font-size: 21px; letter-spacing: -0.02em; }
.booking-details { display: grid; grid-template-columns: minmax(92px, 0.7fr) 1.3fr; gap: 12px 16px; margin: 0; }
.booking-details dt { color: var(--muted); font-size: 14px; }
.booking-details dd { margin: 0; font-weight: 650; word-break: break-word; }
.booking-details dd:nth-of-type(4), .booking-details dd:nth-of-type(5) { justify-self: start; padding: 4px 11px; border-radius: 999px; background: #eafff1; color: #07833b; font-size: 13px; font-weight: 750; }
.payment-link { color: var(--primary); font-weight: 750; }

.message { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #eafff1; color: #087e39; font-size: 14px; font-weight: 650; }
.message.error { background: #fff0f0; color: var(--danger); }
.global-banner { position: relative; z-index: 1000; width: min(calc(100% - 32px), 900px); margin: 12px auto 0; padding: 13px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.warning-banner { border: 1px solid #f5cf75; background: #fff9e8; color: #73520b; }
.error-banner { border: 1px solid #fecaca; background: #fff0f0; color: var(--danger); white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }

@media (min-width: 720px) {
  .site-header { height: 88px; }
  .home-hero { grid-template-columns: 1.06fr 0.94fr; min-height: calc(100svh - 88px); padding-top: 72px; }
  .hero-actions { grid-template-columns: 1fr 1fr; max-width: 420px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-section { grid-template-columns: 1fr 1fr; align-items: center; }
  .page-shell { padding-top: 72px; }
  .form-section { padding: 38px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .submit-button { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
