/* =====================================================================
   四健會協會 — 入會申請流程樣式
   原則：一頁做一件事、字大、按鈕大、少說明。老人到小孩都要能自己完成。
   配色與後台同一套莫蘭迪色；深色是夜晚版。
   ===================================================================== */
:root {
    color-scheme: light;
    --bg: #f2efe8;
    --surface: #fffdf8;
    --text: #2f2d28;
    --muted: #5d574c;
    --line: #8f8a7c;         /* 輸入框邊線：對卡面對比 3 以上 */
    --line-soft: #d9d5c9;
    --primary: #4c5641;
    --primary-hover: #3d4634;
    --on-primary: #ffffff;
    --tint: #e4e7dd;
    --danger: #8c3a2a;
    --danger-bg: #f2e1dc;
    --ok: #3d5a3f;
    --focus: #8a5a45;
    --radius: 14px;
    --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1f1e1b;
    --surface: #2a2825;
    --text: #ece8de;
    --muted: #c3bcae;
    --line: #807a6e;
    --line-soft: #3a3833;
    --primary: #a8b495;
    --primary-hover: #bcc6aa;
    --on-primary: #1f1e1b;
    --tint: #363c2f;
    --danger: #efae9f;
    --danger-bg: #4a2f29;
    --ok: #c3d4b5;
    --focus: #cf9a83;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 1.125rem;      /* 18px：長輩不用放大也看得清 */
    line-height: 1.7;
}
img { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }   /* 中文詞句、地址、帳號不要從中間斷行 */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; padding: 10px 16px; background: var(--surface); }

/* ---------- 頁首 ---------- */
.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 16px;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 700; }
.site-brand img { width: 36px; height: 36px; }
.theme-btn {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px;
    color: var(--text); background: transparent;
    border: 1px solid var(--line-soft); border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
}

/* ---------- 流程進度（圖像化：現在在哪一步） ---------- */
.steps {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    margin: 4px auto 0;
    padding: 0 16px;
    list-style: none;
}
.steps li {
    position: relative;
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.3;
    text-align: center;
}
.steps li::before {           /* 連接線 */
    content: "";
    position: absolute; top: 18px; right: 50%;
    width: 100%; height: 2px;
    background: var(--line-soft);
}
.steps li:first-child::before { display: none; }
.steps .dot {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 2px solid var(--line-soft); border-radius: 50%;
    background: var(--bg);
    font-weight: 700; font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.steps li.is-done { color: var(--text); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--primary); }
.steps li.is-done .dot { border-color: var(--primary); background: var(--tint); color: var(--primary); }
.steps li.is-current { color: var(--text); font-weight: 700; }
.steps li.is-current .dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
@media (max-width: 560px) {
    .steps li .step-label { display: none; }
    .steps li.is-current .step-label { display: block; position: absolute; top: 46px; white-space: nowrap; }
    .steps { margin-bottom: 30px; }
}

/* ---------- 版面 ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.page-wide { max-width: 960px; }
.page-title { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.3; text-align: center; text-wrap: balance; }
.page-lead { margin-top: 8px; color: var(--muted); text-align: center; text-wrap: balance; }
.card {
    margin-top: 24px;
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
@media (min-width: 600px) { .card { padding: 32px; } }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px;
    padding: 0 28px;
    font: inherit; font-weight: 700; font-size: 1.125rem;
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent; border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.btn-primary { color: var(--on-primary); background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap-reverse; gap: 12px; margin-top: 28px; }   /* 手機上換行時，主要按鈕在上、「上一步」在下 */
.actions .btn { flex: 1 1 200px; }
.actions .btn-ghost { flex: 0 1 auto; }

/* ---------- 選會員類別 ---------- */
.choices { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 820px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 24px 20px;
    color: var(--text); text-align: center; text-decoration: none;
    background: var(--surface);
    border: 2px solid var(--line-soft); border-radius: var(--radius);
    transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--primary); }
.choice-icon {
    display: grid; place-items: center;
    width: 72px; height: 72px;
    color: var(--primary); background: var(--tint);
    border-radius: 50%;
    font-size: 2rem;
}
.choice-name { margin-top: 6px; font-size: 1.4rem; font-weight: 700; }
.choice-who { color: var(--muted); }
.choice-fee { margin-top: 6px; font-size: 1.05rem; }
.choice-fee strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.choice-fee small { display: block; color: var(--muted); font-size: .9rem; }
.choice .btn { margin-top: 14px; width: 100%; }
@media (max-width: 819px) {
    .choice { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; text-align: left; }
    .choice-icon { grid-row: span 3; }
    .choice-name { margin-top: 0; }
    .choice .btn { grid-column: 1 / -1; }
}

/* ---------- 表單 ---------- */
.step-title { font-size: 1.4rem; line-height: 1.35; }
.field { margin-top: 22px; }
.field > label, .field > legend, .choice-group > legend { display: block; padding: 0; font-weight: 700; }
.field .optional, .choice-group .optional { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: 1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field input[type="file"], .field select, .field textarea, .date-row select {
    display: block; width: 100%;
    min-height: 56px;
    margin-top: 6px;
    padding: 12px 16px;
    font: inherit; font-size: max(1.125rem, 1em);
    color: var(--text); background: var(--surface);
    border: 2px solid var(--line); border-radius: 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .date-row select:focus-visible { outline-offset: 1px; border-color: var(--primary); }
.field [aria-invalid="true"], .date-row [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field-error { display: flex; gap: 8px; margin-top: 6px; color: var(--danger); font-weight: 700; }
.date-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }

fieldset.choice-group { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chips label {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 18px;
    border: 2px solid var(--line); border-radius: 999px;
    cursor: pointer;
}
.chips input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.chips label:has(input:checked) { border-color: var(--primary); background: var(--tint); font-weight: 700; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; margin: 4px 0 0; accent-color: var(--primary); }

.alert {
    display: flex; gap: 12px;
    margin-top: 20px; padding: 16px 18px;
    color: var(--danger); background: var(--danger-bg);
    border: 2px solid var(--danger); border-radius: 12px;
    font-weight: 700;
}
.alert ul { margin: 0; padding-left: 1.2em; }
.alert:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 簽名板 */
.sign-pad { position: relative; margin-top: 10px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 650 / 260; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.sign-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #7a7468; font-size: 1.3rem; letter-spacing: .15em; pointer-events: none; }
.sign-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.sign-tools .btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }

/* ---------- 完成頁：接下來要做的事 ---------- */
.done-mark { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 12px; color: var(--ok); background: var(--tint); border-radius: 50%; font-size: 2.6rem; }
.ticket { margin-top: 18px; padding: 14px; text-align: center; background: var(--tint); border-radius: 12px; }
.ticket strong { display: block; font-size: 1.6rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.todo { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: todo; }
.todo > li { position: relative; margin-top: 18px; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); counter-increment: todo; }
.todo > li::before {
    content: counter(todo);
    position: absolute; left: 18px; top: 20px;
    display: grid; place-items: center; width: 38px; height: 38px;
    color: var(--on-primary); background: var(--primary); border-radius: 50%; font-weight: 700;
}
.todo h2 { font-size: 1.25rem; line-height: 1.4; }
.todo .btn { margin-top: 14px; }
.amount { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank { margin: 12px 0 0; display: grid; gap: 6px; }
.bank div { display: grid; grid-template-columns: 3.4em 1fr; gap: 8px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.bank .acct { font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.copy-btn { min-height: 48px; margin-top: 12px; padding: 0 18px; font-size: 1rem; }
.note { margin-top: 10px; color: var(--muted); font-size: 1rem; }

.center-note { margin-top: 24px; text-align: center; }

.site-foot { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: .95rem; text-align: center; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- 最新消息 ---------- */
.news-list { margin: 24px 0 0; padding: 0; list-style: none; }
.news-list li + li { margin-top: 12px; }
.news-list a { display: grid; gap: 4px; padding: 18px 20px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.news-list a:hover { border-color: var(--primary); }
.news-date { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.news-pin { margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .9rem; font-weight: 700; }
.news-title { font-size: 1.2rem; line-height: 1.4; }
.news-excerpt { color: var(--muted); }
.news-list.compact { margin-top: 12px; }
.news-list.compact a { padding: 12px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.news-list.compact li + li { margin-top: 0; }
.news-list.compact li:first-child a { border-top: 0; }
.news-body { margin-top: 16px; overflow-wrap: anywhere; }

/* ---------- 會員專區 ---------- */
.member-facts div { grid-template-columns: 5.4em 1fr; }
.status-pill { display: inline-block; padding: 2px 14px; border-radius: 999px; font-weight: 700; background: var(--tint); color: var(--primary); white-space: nowrap; }
.status-pill.status-suspended, .status-pill.fee-unpaid, .status-pill.fee-overdue { background: var(--danger-bg); color: var(--danger); }
.fee-list { margin: 12px 0 0; padding: 0; list-style: none; }
.fee-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.fee-list li:first-child { border-top: 0; }
.amount-sm { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-box { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--tint); }
@media (max-width: 480px) { .fee-list li { grid-template-columns: 1fr auto; } .fee-list li .status-pill { grid-column: 1 / -1; justify-self: start; } }
.notice { display: flex; gap: 10px; margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--tint); color: var(--ok); font-weight: 700; }
.pay-report { margin-top: 14px; }
.role-list li { grid-template-columns: 1fr auto; }
.year-roc { margin-left: 10px; color: var(--muted); font-size: 1rem; font-weight: 400; }
.fee-when { display: block; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.year-total { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--line-soft); text-align: right; }

/* ---------- 會員卡 ---------- */
.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
.member-card {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    max-width: 480px;
    min-height: 220px;                   /* 接近卡片的比例；名稱長或欄位多時自己長高，不裁掉內容 */
    margin: 0 auto;
    padding: 22px 24px;
    color: #fbf7ee;
    background: linear-gradient(135deg, #5f6a52 0%, #4c5641 55%, #3d4634 100%);
    border-radius: 20px;
    box-shadow: 0 14px 30px -18px rgba(40, 46, 34, .7);
}
.member-card-mark {                      /* 右下角淡淡的大四葉草（正式標誌，不改圖，只調透明度） */
    position: absolute; right: -34px; bottom: -40px;
    width: 210px; height: 210px;
    opacity: .1;
    pointer-events: none;
}
.member-card-head { position: relative; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.member-card-head img { flex: none; padding: 4px; border-radius: 10px; background: #fbf7ee; }
.member-card-head span:first-of-type { white-space: nowrap; font-size: clamp(.8rem, 4.2vw, 1rem); }   /* 協會名稱不從中間斷行，窄螢幕縮小字 */
.member-card-kind { margin-left: auto; padding: 2px 12px; border: 1px solid rgba(251, 247, 238, .55); border-radius: 999px; font-size: .9rem; font-weight: 400; white-space: nowrap; }
.member-card-name { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: auto 0 12px; padding-top: 14px; font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.member-card-name .member-card-status { font-size: 1rem; }
.member-card-body { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.member-card-facts { margin: 0; display: grid; gap: 8px; min-width: 0; }
.member-card-facts dt { color: rgba(251, 247, 238, .78); font-size: .85rem; }
.member-card-facts dd { margin: 0; font-weight: 700; white-space: nowrap; }
.member-card-no { font-size: 1.2rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.member-card-status { display: inline-block; padding: 1px 14px; border-radius: 999px; background: #fbf7ee; color: #3d4634; }
.member-card-status.is-suspended { background: #f2e1dc; color: #8c3a2a; }
.member-card + .card { margin-top: 20px; }
@media print {
    body { background: #fff; }
    .site-head, .site-foot, .card, .actions, main > form { display: none !important; }
    .member-card { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.btn-wrap { white-space: normal; max-width: 100%; padding-block: 10px; border-radius: 16px; text-align: left; }   /* 名稱很長的按鈕可以換行 */
.member-card-foot { position: relative; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(251, 247, 238, .3); font-size: .95rem; }
.prepay-tag { display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .85rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }

/* 會員卡上的 QR code：白底、四周留白，掃描器才讀得到；點一下放大 */
.member-card-qr { flex: none; width: 104px; height: 104px; padding: 0; border: 0; border-radius: 12px; background: #fff; cursor: zoom-in; overflow: hidden; }
.member-card-qr svg, .code-qr svg { display: block; width: 100%; height: 100%; }
.card-code-hint { margin-top: 10px; text-align: center; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--primary); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.code-dialog { width: min(92vw, 420px); padding: 24px; border: 0; border-radius: 20px; background: #fff; color: #2f2d28; text-align: center; }   /* 不跟深色模式變色：條碼要白底黑條 */
.code-dialog::backdrop { background: rgba(20, 22, 18, .72); }
.code-dialog h2 { font-size: 1.3rem; line-height: 1.35; overflow-wrap: anywhere; }
.code-qr { width: min(100%, 260px); aspect-ratio: 1; margin: 14px auto 0; }
.code-bar { margin-top: 14px; }
.code-bar svg { display: block; width: 100%; height: 84px; }
.code-no { margin: 6px 0 18px; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* =====================================================================
   首頁：柔和的霧面背景、標誌光暈、進場與捲動顯現
   動態原則：只動位移與透明度；每個動畫只跑一次，沒有一直在動的東西；
   使用者設定「減少動態」時完全不播（寫在 prefers-reduced-motion: no-preference 裡）。
   ===================================================================== */
:root {
    --mist-sage: rgba(122, 143, 111, .30);
    --mist-clay: rgba(181, 128, 107, .20);
    --mist-cool: rgba(111, 135, 148, .22);
    --h-hands: #e6dccb;  --h-hands-ink: #6e5410;
    --h-head: #dfe6ea;   --h-head-ink: #34556a;
    --h-health: #e3e9dd; --h-health-ink: #3d5a3f;
    --h-heart: #f0e2da;  --h-heart-ink: #8a4a30;
}
[data-theme="dark"] {
    --mist-sage: rgba(168, 180, 149, .16);
    --mist-clay: rgba(207, 154, 131, .12);
    --mist-cool: rgba(137, 161, 173, .14);
    --h-hands: #463d27;  --h-hands-ink: #e3cf98;
    --h-head: #2f3c43;   --h-head-ink: #b8ccd6;
    --h-health: #34402f; --h-health-ink: #c3d4b5;
    --h-heart: #47352c;  --h-heart-ink: #e9bda8;
}
.home-body {
    background:
        radial-gradient(60vw 46vh at 88% -6%, var(--mist-sage), transparent 70%),
        radial-gradient(54vw 40vh at -8% 22%, var(--mist-clay), transparent 70%),
        radial-gradient(70vw 50vh at 50% 108%, var(--mist-cool), transparent 72%),
        var(--bg);
    background-attachment: fixed;
}
.home { max-width: 1040px; margin: 0 auto; padding: 0 16px 56px; }

.hero { display: grid; gap: 28px; justify-items: center; padding: 5vh 0 8px; text-align: center; }
.hero-emblem {
    order: -1;
    position: relative;
    display: grid; place-items: center;
    width: min(56vw, 230px); aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, var(--surface) 0 56%, transparent 57%);
    box-shadow: 0 30px 60px -34px rgba(60, 70, 52, .55);
}
.hero-emblem::before {                       /* 標誌後面的柔光環 */
    content: "";
    position: absolute; inset: -14%;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--mist-sage), var(--mist-cool), var(--mist-clay), var(--mist-sage));
    filter: blur(22px);
    z-index: -1;
}
.hero-emblem img { width: 62%; height: auto; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hero-emblem:hover img { transform: rotate(-6deg) scale(1.04); }
.hero-title { font-size: clamp(2rem, 8.4vw, 3.4rem); line-height: 1.18; letter-spacing: .02em; text-wrap: balance; }
.hero-intro { max-width: 26em; margin: 14px auto 0; color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.hero-actions { display: grid; gap: 12px; width: min(100%, 360px); margin: 26px auto 0; }
.hero-actions .btn { min-height: 62px; font-size: 1.2rem; }
.hero-actions .btn-primary { box-shadow: 0 16px 28px -18px rgba(60, 70, 52, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.hero-actions .btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-arrow { transition: transform .2s ease; }
.hero-actions .btn { transition: translate .2s ease, scale .1s ease, background-color .15s ease; }
.hero-actions .btn:hover { translate: 0 -2px; }   /* 用 translate／scale 屬性：進場動畫佔用 transform，兩者才不會互相蓋掉 */
.hero-actions .btn:hover .btn-arrow { transform: translateX(4px); }
.hero-actions .btn:active { transform: none; scale: .98; }

@media (min-width: 900px) {
    .hero { grid-template-columns: 1.1fr .9fr; align-items: center; justify-items: start; gap: 48px; padding-top: 9vh; text-align: left; }
    .hero-emblem { order: 0; justify-self: center; width: min(32vw, 340px); }
    .hero-intro { margin-left: 0; }
    .hero-actions { margin-left: 0; grid-template-columns: 1fr 1fr; width: min(100%, 460px); }
    .hero-actions .btn-primary { grid-column: 1 / -1; }
}

.about {
    max-width: 720px;
    margin: 52px auto 0;
    padding: 32px 22px;
    text-align: center;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
}
.about h2 { font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.4; }
.about p { margin-top: 16px; color: var(--muted); }
.four-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.four-h li {
    display: grid; justify-items: center; gap: 2px;
    padding: 16px 4px 14px;
    border-radius: 20px;
    transition: translate .25s cubic-bezier(.2, .8, .2, 1);
}
.four-h li:hover { translate: 0 -4px; }
.four-h i { font-size: 1.3rem; }
.four-h strong { font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.15; }
.four-h span { font-size: .85rem; opacity: .85; }
.four-h .h-hands { background: var(--h-hands); color: var(--h-hands-ink); }
.four-h .h-head { background: var(--h-head); color: var(--h-head-ink); }
.four-h .h-health { background: var(--h-health); color: var(--h-health-ink); }
.four-h .h-heart { background: var(--h-heart); color: var(--h-heart-ink); }
.about-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
@media (max-width: 380px) { .four-h { grid-template-columns: repeat(2, 1fr); } }

/* 進場：由下往上淡入，一個接一個，只跑一次 */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    @keyframes emblem-in { from { opacity: 0; transform: scale(.82) rotate(-10deg); } to { opacity: 1; transform: none; } }
    .hero-emblem { animation: emblem-in .8s cubic-bezier(.2, .8, .2, 1) both; }
    .hero-title { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .12s both; }
    .hero-intro { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .22s both; }
    .hero-actions .btn { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
    .hero-actions .btn:nth-child(1) { animation-delay: .32s; }
    .hero-actions .btn:nth-child(2) { animation-delay: .40s; }
    .hero-actions .btn:nth-child(3) { animation-delay: .48s; }

    /* 往下捲到介紹區時，四格依序浮上來（純裝飾，瀏覽器不支援就直接顯示） */
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        .about, .four-h li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
        .four-h li:nth-child(2) { animation-range: entry 8% entry 78%; }
        .four-h li:nth-child(3) { animation-range: entry 16% entry 86%; }
        .four-h li:nth-child(4) { animation-range: entry 24% entry 94%; }
    }
}

/* 會員專區：申請更正姓名、生日 */
.form-subtitle { margin-top: 28px; }
.change-list li { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.change-label { color: var(--muted); }
.change-value { font-size: 1.15rem; overflow-wrap: anywhere; text-wrap: balance; }
.change-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.change-state form { margin: 0; }
.fee-list.change-list li { grid-template-columns: 1fr; }
.fee-list.change-list li .status-pill { grid-column: auto; }
.change-list .btn { justify-self: start; }
