:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --white: #fff;
  --ink: #172b25;
  --forest: #173b32;
  --forest-dark: #112e26;
  --muted: #53605a;
  --line: #dddfd8;
  --clay: #b34b32;
  --clay-dark: #943824;
  --peach: #ffba9d;
  --sage: #ecf2ec;
  font-family: "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, legend { line-height: 1.3; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #956629; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }

.site-header { background: var(--paper); }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; background: var(--forest); border-radius: 7px; }
.brand-mark i { position: relative; width: 14px; height: 12px; margin-top: 6px; border: 1.5px solid #fbf5e8; border-top: 0; }
.brand-mark i::before { content: ""; position: absolute; width: 12px; height: 12px; left: 0; top: -5px; border-top: 1.5px solid #fbf5e8; border-left: 1.5px solid #fbf5e8; transform: rotate(45deg); }
.brand-mark i::after { content: ""; position: absolute; width: 4px; height: 6px; left: 3.5px; bottom: 0; border: 1px solid #fbf5e8; border-bottom: 0; }
.nav-link { text-decoration: none; font-size: .9375rem; font-weight: 700; padding: 7px 0; border-bottom: 1px solid #9ea8a0; }
.nav-link:hover { border-color: var(--clay); }

.hero { background: var(--forest-dark); color: var(--white); }
.hero-layout { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(26px, 4.8vw, 70px); align-items: stretch; padding-block: 36px; }
.hero-copy { align-self: center; padding-block: 19px 24px; }
.hero-kicker { color: var(--peach); letter-spacing: .15em; font-weight: 700; font-size: .9375rem; display: flex; align-items: center; gap: 12px; }
.hero-kicker span { display: inline-block; height: 1px; width: 24px; background: currentColor; }
.hero h1 { font-size: clamp(2.45rem, 4.6vw, 4.375rem); font-weight: 850; line-height: 1.12; letter-spacing: .035em; margin-top: 14px; }
.hero-subtitle { color: #d8e1d8; margin-top: 17px; font-size: clamp(.875rem, 1.45vw, 1rem); letter-spacing: .025em; }
.offer { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-block: 23px 28px; }
.offer > div + div { border-left: 1px solid #6a7d6d; padding-left: clamp(18px, 2.4vw, 34px); }
.offer-label { display: block; color: #d8e1d8; font-size: .875rem; }
.offer strong { display: block; color: var(--peach); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.offer b { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 750; letter-spacing: -.055em; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 7px; border: 1px solid transparent; background: var(--forest); color: white; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--forest-dark); }
.button:disabled { opacity: .7; cursor: wait; }
.hero-button { background: var(--clay); min-width: 148px; }
.hero-button:hover { background: var(--clay-dark); }
.hero-visual { position: relative; min-height: 402px; isolation: isolate; overflow: hidden; border-radius: 11px; background: #37584a; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-visual figcaption { position: absolute; right: 12px; bottom: 12px; border-radius: 4px; padding: 3px 8px; color: white; background: #112c24dc; font-size: .8125rem; }

.content-grid { display: grid; grid-template-columns: minmax(205px, .83fr) minmax(0, 2.17fr); gap: clamp(28px, 5vw, 72px); padding-block: 54px 72px; align-items: start; }
.event-details { padding-top: 10px; }
.event-details h2 { font-size: 1.35rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 17px; letter-spacing: .045em; }
.event-details p { color: var(--muted); }
.event-details p + p { margin-top: 12px; }
.event-note { margin: 24px 0 16px; padding: 17px; border-radius: 7px; background: var(--sage); border-left: 3px solid #759180; }
.event-note h3 { font-size: 1rem; margin-bottom: 6px; }
.event-note p { font-size: .9375rem; }
.small-text { font-size: .875rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 5px 23px #172b2508; scroll-margin-top: 20px; min-width: 0; }
.card-heading { margin-bottom: 27px; }
.card-heading h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.card-heading p { color: var(--muted); margin-top: 8px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.form-section { padding-top: 17px; border-top: 1px solid var(--line); margin-bottom: 28px; }
.form-section > legend { padding: 0 11px 0 0; color: var(--forest); font-size: 1.105rem; font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.text-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-weight: 700; }
.required { color: #963b26; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.text-field input { color: var(--ink); background: #fcfcfa; border: 1px solid #c4cbc3; border-radius: 6px; min-height: 47px; min-width: 0; width: 100%; padding: 8px 11px; font-weight: 400; }
.text-field input::placeholder { color: #626e66; }
.text-field input:focus { border-color: var(--forest); }
.question + .question { margin-top: 20px; }
.question legend { color: var(--ink); font-weight: 750; padding: 0; }
.question-hint { display: inline-block; color: var(--muted); font-size: .875rem; font-weight: 450; margin-left: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.option { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .9375rem; min-height: 42px; padding: 7px 11px; border: 1px solid #cdd4cb; border-radius: 6px; cursor: pointer; }
.option:hover, .option:has(input:checked) { background: var(--sage); border-color: #638173; }
.option input, .consent-check input { margin: 0; width: 1rem; height: 1rem; flex: none; accent-color: var(--forest); }
.website-field { display: none; }
.consent-box { background: var(--sage); border-radius: 8px; padding: 16px; }
.consent-box h3 { font-size: 1rem; }
.consent-box details { padding-block: 6px 10px; font-size: .9375rem; color: var(--forest); }
.consent-box summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy-copy { padding: 8px 0 0; color: var(--ink); }
.privacy-copy p + p { margin-top: 6px; }
.consent-check { display: flex; gap: 10px; align-items: start; cursor: pointer; }
.consent-check input { margin-top: .33em; }
.submit-button { width: 100%; margin-top: 16px; }
.form-message { margin-top: 16px; color: var(--ink); }
.form-message.error { color: #85321e; background: #fff0e9; padding: 10px 12px; border-radius: 6px; }
.success-card { padding: 26px 22px; border-radius: 8px; background: var(--sage); }
.success-card h3 { margin-block: 10px 5px; font-size: 1.35rem; }
.success-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--forest); color: white; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: .9375rem; }

.admin-shell { padding-block: 40px 55px; }
.admin-shell .form-card { margin-bottom: 18px; }
.admin-login { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.admin-login .text-field { flex: 1 1 250px; }
.admin-login .button { min-height: 47px; }
.admin-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button-secondary { background: white; color: var(--forest); border-color: #829286; }
.button-secondary:hover { background: var(--sage); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 100%; }
thead { background: var(--sage); }
th, td { padding: 8px 11px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-paging { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 15px; }

@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .masthead { min-height: 65px; }
  .hero-layout { gap: 18px; padding-block: 24px; }
  .hero-visual { min-height: 332px; }
  .content-grid { gap: 25px; padding-block: 34px 42px; }
}
@media (max-width: 630px) {
  .hero-layout, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 2px 4px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.72; }
  .hero h1 { font-size: clamp(2.3rem, 9.4vw, 3.35rem); }
  .offer { margin-block: 18px 21px; }
  .event-details { padding-top: 0; }
  .event-note { margin-top: 17px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 30px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
