:root {
  --ink: #1b1b1b;
  --gray: #6b7280;
  --paper: #f7f1eb;
  --paper-deep: #efe5d8;
  --card: #fffdfa;
  --sage: #4f7259;
  --sage-deep: #3a5644;
  --sage-mist: #e9efe8;
  --coral: #ef5350;
  --coral-deep: #d84340;
  --line: rgba(79, 114, 89, .24);
  --shadow: 0 18px 46px rgba(79, 114, 89, .13);
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
  --serif: "Noto Serif TC", "Playfair Display", "PingFang TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.75; }
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, .price-value { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; }
.skip-link { position: fixed; left: 16px; top: 10px; transform: translateY(-160%); background: var(--sage-deep); color: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; font-weight: 700; color: var(--sage); }
.site-header nav { display: flex; gap: 26px; font-size: .88rem; font-weight: 500; }
.site-header nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { border-color: var(--coral); color: var(--sage-deep); }

.hero { width: min(calc(100% - 32px), var(--max)); margin: 18px auto 0; }
.hero-copy { max-width: 720px; padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 38px); }
.eyebrow { margin: 0 0 16px; color: var(--sage); font-size: .76rem; line-height: 1.4; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.14; margin: 0; }
.hero h1 em { font-style: normal; color: var(--sage); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: .04em; height: .32em; background: rgba(239, 83, 80, .22); z-index: -1; border-radius: 3px; }
.hero-lead { max-width: 560px; color: var(--gray); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 22px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.99); }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.button-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(239, 83, 80, .32); }
.button-primary:hover { background: var(--coral-deep); box-shadow: 0 14px 30px rgba(239, 83, 80, .38); }
.text-link { font-size: .9rem; font-weight: 700; color: var(--sage-deep); text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: var(--sage); }

.hero-gallery { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: clamp(340px, 42vw, 480px); }
.hero-gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--paper-deep); }
.hero-gallery .gallery-main { grid-row: 1 / span 2; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-gallery figure:hover img { transform: scale(1.03); }
.quick-facts { margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-facts li { display: flex; flex-direction: column; gap: 3px; font-size: .95rem; }
.quick-facts span { color: var(--gray); font-size: .74rem; letter-spacing: .14em; font-weight: 700; }
.quick-facts strong { font-weight: 700; }

.section { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: clamp(68px, 9vw, 116px) 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .booking-intro h2, .trust-copy h2, .price-section h2, .policy-section h2 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.22; }
.section-heading-wide { max-width: none; display: grid; grid-template-columns: 1fr .66fr; gap: 60px; align-items: end; }
.section-heading-wide > p { margin: 0; color: var(--gray); }

.fit-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.fit-card { border-radius: var(--radius-lg); padding: clamp(28px, 4.6vw, 48px); }
.fit-card h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); max-width: 460px; line-height: 1.25; margin: 30px 0 22px; }
.fit-yes { background: var(--sage); color: #fdfbf7; }
.fit-yes .check-list li::before { background: #fdfbf7; color: var(--sage-deep); }
.fit-no { background: var(--card); border: 1px solid var(--line); }
.fit-no p { border-top: 1px solid var(--line); padding-top: 22px; color: var(--gray); font-size: .95rem; }
.fit-no .plain-list li { color: var(--gray); }
.card-number { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; opacity: .85; }
.check-list, .plain-list { padding: 0; list-style: none; margin: 0; }
.check-list li, .plain-list li { margin: 13px 0; padding-left: 34px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--sage); color: #fdfbf7; font-size: .72rem; font-weight: 900; }
.plain-list li::before { content: "—"; position: absolute; left: 0; font-weight: 700; opacity: .5; }

.course-section { border-top: 1px solid var(--line); }
.syllabus { list-style: none; margin: 46px 0 0; padding: 0; border-top: 2px solid var(--sage); }
.syllabus li { display: grid; grid-template-columns: 72px 1fr 180px; gap: 26px; align-items: center; padding: 34px 4px; border-bottom: 1px solid var(--line); }
.lesson-index { width: 54px; aspect-ratio: 1; border-radius: 50%; background: var(--sage-mist); color: var(--sage-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.lesson-tag { margin: 0 0 4px; color: var(--sage); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.syllabus h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.syllabus p:not(.lesson-tag) { color: var(--gray); margin: 8px 0 0; max-width: 560px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skill-chips span { font-size: .74rem; font-weight: 500; color: var(--sage-deep); background: var(--sage-mist); border-radius: 999px; padding: 4px 12px; }
.lesson-result { font-size: .8rem; font-weight: 700; color: var(--sage-deep); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; text-align: center; }

.trust-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 7vw, 84px); align-items: center; }
.trust-visual { position: relative; margin: 0; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.trust-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trust-visual blockquote { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; background: rgba(255, 253, 250, .93); backdrop-filter: blur(6px); border-radius: var(--radius-md); padding: 24px 26px; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; font-weight: 700; }
.trust-visual blockquote small { display: block; margin-top: 8px; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--sage); }
.trust-copy > p:not(.eyebrow):not(.coach-note) { font-size: 1.05rem; color: var(--gray); }
.trust-points { margin: 30px 0; }
.trust-points div { padding: 17px 0; display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.trust-points dt { font-weight: 700; }
.trust-points dd { margin: 0; color: var(--gray); }
.coach-note { background: var(--card); border-left: 4px solid var(--coral); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 18px; font-size: .85rem; color: var(--gray); }

.booking-section { width: 100%; max-width: none; background: var(--sage-mist); padding-left: max(16px, calc((100% - var(--max))/2)); padding-right: max(16px, calc((100% - var(--max))/2)); }
.booking-intro { max-width: 720px; margin-bottom: 42px; }
.booking-intro > p:not(.eyebrow) { color: var(--gray); }
.sync-note { display: inline-flex; gap: 9px; align-items: center; font-size: .82rem; font-weight: 700; color: var(--sage-deep); }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(79, 114, 89, .16); }
.booking-shell { display: grid; grid-template-columns: 1fr .88fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.calendar-panel, .booking-form { padding: clamp(26px, 4.6vw, 48px); }
.calendar-panel { background: var(--paper); }
.booking-form { background: var(--card); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.panel-heading span { font-size: .68rem; color: var(--sage); font-weight: 700; letter-spacing: .18em; }
.panel-heading h3 { margin: 3px 0 0; font-size: 1.5rem; }
.refresh-button { border: 0; border-bottom: 1px solid currentColor; padding: 3px 0; background: transparent; color: var(--sage-deep); font-size: .78rem; font-weight: 700; cursor: pointer; transition: opacity .2s ease; }
.refresh-button:hover { opacity: .7; }
.refresh-button:disabled { opacity: .45; cursor: wait; }
.status-banner { padding: 13px 16px; border-radius: 12px; font-size: .82rem; margin-bottom: 18px; }
.status-banner.is-loading { background: var(--paper-deep); }
.status-banner.is-success { background: #ddebdc; color: var(--sage-deep); }
.status-banner.is-coming { background: #f6e8c8; color: #6e5518; }
.status-banner.is-full, .status-banner.is-error { background: #fbdad5; color: #8c2f24; }
.slot-list { display: grid; gap: 10px; min-height: 132px; }
.slot-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: var(--card); color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.slot-card:hover:not(:disabled) { border-color: var(--sage); box-shadow: 0 6px 18px rgba(79, 114, 89, .14); }
.slot-card strong { font-size: 1rem; font-weight: 700; }
.slot-card span { font-size: .78rem; color: var(--gray); }
.slot-card em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--sage-deep); }
.slot-card[aria-pressed="true"] { border: 2px solid var(--sage); background: var(--sage-mist); box-shadow: 0 8px 20px rgba(79, 114, 89, .18); }
.slot-card:disabled { opacity: .6; cursor: not-allowed; }
.slot-card.state-sold_out em, .slot-card.state-closed em, .slot-card.state-unavailable em { color: #8c2f24; }
.slot-card.is-low em { color: var(--coral-deep); }
.empty-slots { padding: 30px 20px; text-align: center; color: var(--gray); border: 1px dashed var(--line); border-radius: 14px; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .7rem; color: var(--gray); }
.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.slot-legend .legend-low { background: var(--coral); }
.slot-legend .legend-full { background: #b3ada3; }
.booking-form fieldset { margin: 0; padding: 0; border: 0; }
.booking-form fieldset:disabled { opacity: .58; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.form-row label, .form-row > span { font-size: .78rem; font-weight: 700; }
.form-row input, .form-row select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; background: #fff; color: var(--ink); transition: border-color .2s ease; }
.form-row input:hover, .form-row select:hover { border-color: var(--sage); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-summary { min-height: 76px; background: var(--paper); border-radius: 11px; padding: 11px 14px; justify-content: center; }
.form-summary strong { font-size: 1.2rem; font-family: var(--serif); }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 8px 0 18px; font-size: .78rem; color: var(--gray); }
.consent-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--sage); }
.consent-row a { font-weight: 700; color: var(--sage-deep); }
.turnstile-wrap { min-height: 66px; margin: 8px 0 18px; display: flex; justify-content: center; }
.form-message { display: none; margin: 8px 0 14px; background: #fbdad5; color: #8c2f24; border-radius: 10px; padding: 11px 14px; font-size: .82rem; }
.form-message.is-visible { display: block; }
.button-checkout { width: 100%; border-radius: 14px; background: var(--coral); color: #fff; justify-content: space-between; box-shadow: 0 10px 24px rgba(239, 83, 80, .28); }
.button-checkout:hover { background: var(--coral-deep); }
.button-checkout:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.payment-note { margin: 13px 0 0; color: var(--gray); text-align: center; font-size: .7rem; }

.price-section { display: grid; grid-template-columns: 1fr .8fr; gap: 64px; align-items: center; }
.price-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--coral); box-shadow: var(--shadow); border-radius: var(--radius-lg); padding: clamp(28px, 4.6vw, 46px); }
.price-label { font-size: .74rem; font-weight: 700; letter-spacing: .15em; color: var(--sage); margin: 0; }
.price-value { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: 6px 0 24px; }
.check-list.compact { margin-bottom: 0; font-size: .9rem; }

.faq-section { border-top: 1px solid var(--line); }
.faq-list { border-top: 2px solid var(--sage); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-family: var(--serif); font-size: clamp(1rem, 1.9vw, 1.2rem); font-weight: 700; transition: color .2s ease; }
.faq-list summary:hover { color: var(--sage-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--sage); transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; color: var(--gray); margin: -3px 0 28px; }

.policy-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding-left: clamp(26px, 5.6vw, 64px); padding-right: clamp(26px, 5.6vw, 64px); margin-bottom: 120px; }
.policy-section h2 { max-width: 720px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }
.policy-grid article { border-top: 2px solid var(--sage); padding-top: 4px; }
.policy-grid h3 { font-size: 1.05rem; }
.policy-grid p { color: var(--gray); font-size: .85rem; }
.support-line { margin: 36px 0 0; font-weight: 700; }
.support-line a { color: var(--sage-deep); text-underline-offset: 4px; }

.sticky-cta { position: fixed; z-index: 20; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(calc(100% - 28px), 620px); border: 1px solid var(--line); background: rgba(255, 253, 250, .94); color: var(--ink); box-shadow: 0 16px 44px rgba(27, 27, 27, .18); backdrop-filter: blur(12px); border-radius: 999px; padding: 9px 10px 9px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-cta div { display: flex; flex-direction: column; font-size: .72rem; line-height: 1.35; color: var(--gray); }
.sticky-cta strong { color: var(--ink); font-size: .9rem; font-weight: 700; }
.sticky-cta .button { min-height: 44px; padding: 0 20px; }

footer { background: var(--sage-deep); color: #f2efe8; padding: 68px max(20px, calc((100% - var(--max))/2)) 96px; }
.footer-brand { color: #f2efe8; }
.footer-brand small { color: rgba(242, 239, 232, .7); }
footer p { color: rgba(242, 239, 232, .82); max-width: 520px; }
.copyright { margin-top: 36px; color: rgba(242, 239, 232, .5); font-size: .72rem; }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .hero-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); height: clamp(320px, 60vw, 430px); }
  .hero-gallery .gallery-main { grid-row: 1; grid-column: 1 / -1; }
  .quick-facts { grid-template-columns: 1fr; gap: 14px; }
  .fit-grid, .trust-section, .booking-shell, .price-section { grid-template-columns: 1fr; }
  .section-heading-wide { grid-template-columns: 1fr; gap: 20px; }
  .syllabus li { grid-template-columns: 60px 1fr; }
  .lesson-result { grid-column: 2; justify-self: start; }
  .booking-intro h2 { max-width: 700px; }
  .booking-form { border-top: 1px solid var(--line); }
  .trust-visual { min-height: 420px; }
  .policy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .brand { font-size: 1rem; }
  .hero { margin-top: 6px; }
  .hero-copy { padding-top: 20px; }
  .hero h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-gallery { gap: 10px; height: auto; grid-template-rows: 58vw 38vw; }
  .quick-facts { margin-top: 22px; }
  .fit-card { min-height: 0; }
  .syllabus li { grid-template-columns: 48px 1fr; gap: 14px; }
  .lesson-index { width: 42px; font-size: 1rem; }
  .lesson-result { grid-column: 1 / -1; }
  .trust-visual { min-height: 360px; }
  .trust-visual blockquote { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px; }
  .trust-points div { grid-template-columns: 1fr; gap: 3px; }
  .booking-section { padding-top: 72px; padding-bottom: 84px; }
  .calendar-panel, .booking-form { padding: 24px 18px; }
  .form-columns { grid-template-columns: 1fr; gap: 0; }
  .slot-card { grid-template-columns: 1fr; }
  .slot-card em { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .panel-heading { align-items: flex-end; }
  .policy-section { width: calc(100% - 24px); margin-bottom: 100px; }
  .sticky-cta { bottom: 10px; padding-left: 16px; }
  .sticky-cta div { max-width: 155px; }
  .sticky-cta .button { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
