:root { color-scheme: light; --cream: #f7f1e8; --ink: #1a100c; --brown: #6e321c; --muted: #725f55; --line: #d9cabb; --panel: #fffaf3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif; }
.page-shell { width: min(100% - 2rem, 760px); margin: 0 auto; padding: 2rem 0 4rem; }
.hero { padding: 2rem 0 1.5rem; }
.eyebrow { margin: 0 0 .6rem; color: var(--brown); font-weight: 700; letter-spacing: .08em; }
h1 { max-width: none; margin: 0; font-size: clamp(2.2rem, 8vw, 4rem); line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.3; }
.lead { margin: .8rem 0 1.3rem; font-size: 1.25rem; }
.co-organizer { margin: -.7rem 0 1.3rem; color: var(--brown); font-weight: 800; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 1rem; margin: 0; }
.event-facts div { border-top: 2px solid var(--brown); padding-top: .5rem; }
dt { color: var(--muted); font-size: .86rem; } dd { margin: .2rem 0 0; font-weight: 700; } .addr { font-weight: 400; word-break: keep-all; }
.hero-cta { display: inline-block; width: auto; margin-top: 1.25rem; text-decoration: none; }
.card { margin-top: 1.2rem; padding: clamp(1.2rem, 5vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: 0 8px 28px rgb(67 38 20 / 7%); }
.card p { margin: .65rem 0; }
.payment-card-success { border: 2px solid var(--brown); box-shadow: 0 12px 34px rgb(110 50 28 / 18%); }
.payment-card-success h2 { color: var(--brown); }
.payment-card-success #hsinchu-payment-status { display: grid; gap: .25rem; color: var(--ink); font-size: 1.12rem; }
.payment-card-success #hsinchu-payment-status strong { font-size: 1.35rem; color: var(--brown); }
.calendar-placeholder { margin: 1rem 0; padding: .9rem; border: 1px dashed var(--line); border-radius: .75rem; background: #fffdf9; }
.calendar-placeholder .calendar-action { width: 100%; }
.payment-modal { width: min(90vw, 30rem); max-width: 30rem; padding: 0; border: 0; border-radius: 1.2rem; background: transparent; color: var(--ink); box-shadow: 0 22px 70px rgb(0 0 0 / 28%); }
.payment-modal::backdrop { background: rgb(26 16 12 / 58%); backdrop-filter: blur(2px); }
.payment-modal-card { padding: clamp(1.5rem, 6vw, 2.4rem); background: var(--panel); border: 2px solid var(--brown); border-radius: 1.2rem; }
.payment-modal-kicker { margin: 0 0 .45rem; color: var(--brown); font-size: .85rem; font-weight: 800; letter-spacing: .08em; }
.payment-modal h2 { margin-bottom: .7rem; color: var(--brown); font-size: clamp(1.55rem, 6vw, 2rem); }
.payment-modal-card > p:not(.payment-modal-kicker) { margin: 0 0 1.2rem; font-size: 1.05rem; }
.payment-modal .calendar-action { width: 100%; margin-bottom: .7rem; padding: .8rem 1rem; border: 1px solid var(--brown); border-radius: .6rem; background: #fffaf3; color: var(--brown); font: inherit; font-weight: 800; }
.secondary-action { width: 100%; margin-top: .8rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.field-hint { color: var(--muted); font-size: .85em; font-weight: 400; }
.book-profile { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 1.25rem; align-items: start; }
.book-profile img { width: 100%; max-width: 220px; aspect-ratio: 1007 / 1357; height: auto; border-radius: 10px; box-shadow: 0 12px 28px rgba(40, 27, 20, .18); }
.book-profile h3 { margin-top: 0; }
#book-fields label { display: block; }
.notice { color: var(--brown); font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
label, legend { font-weight: 700; }
input, textarea, select { display: block; width: 100%; margin-top: .35rem; padding: .7rem .75rem; border: 1px solid #bda999; border-radius: .55rem; background: #fff; color: var(--ink); font: inherit; }
a { color: var(--brown); } .isbn { white-space: nowrap; }
input:focus, textarea:focus, select:focus, button:focus { outline: 3px solid #d79b58; outline-offset: 2px; }
fieldset { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.helper, .status { color: var(--muted); font-size: .92rem; }
.attendee-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.consent { display: flex; gap: .55rem; align-items: flex-start; margin: 1.2rem 0; font-weight: 400; }
.form-card > label.consent { display: flex; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .4rem; }
.form-card > label { display: block; margin-bottom: 1rem; }
.field-grid > .helper { grid-column: 1 / -1; margin-top: -.5rem; }
.summary { display: flex; justify-content: space-between; align-items: baseline; margin: 1.3rem 0; padding-top: 1rem; border-top: 2px solid var(--line); }
.summary strong { color: var(--brown); font-size: 1.65rem; }
.summary small { display: block; color: var(--muted); font-size: .86rem; }
.primary { width: 100%; padding: .85rem 1rem; border: 0; border-radius: .6rem; background: var(--brown); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.status .calendar-action { width: auto; margin: 0; text-align: center; }
.status .calendar-action.primary { flex: 1 1 12rem; }
.status .calendar-action.secondary { padding: .85rem 1rem; border: 1px solid var(--brown); border-radius: .6rem; background: #fffaf3; color: var(--brown); font: inherit; font-weight: 800; cursor: pointer; }
.status .calendar-action:last-child { flex-basis: 100%; }
.line-contact-button { display: inline-block; padding: .75rem 1.15rem; border-radius: .6rem; background: #06c755; color: #fff!important; font-weight: 800; text-decoration: none!important; }
.primary:hover { filter: brightness(1.08); }
@media (max-width: 720px) { .book-profile { grid-template-columns: 1fr; } .book-profile img { max-width: 200px; } }
@media (max-width: 560px) { .page-shell { width: min(100% - 2rem, 760px); padding-top: 1rem; } .event-facts, .field-grid, .attendee-row, .book-profile { grid-template-columns: 1fr; } #book-fields label { display: block; } .book-profile img { max-width: 180px; } .card { padding: 1.1rem; border-radius: .9rem; } }
@media (max-width: 380px) { .book-profile h3 { font-size: 1.05rem; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .7rem .55rem; border-bottom: 1px solid #eadfd3; text-align: left; white-space: nowrap; }
th { color: var(--brown); font-weight: 700; }
