/* ==========================================================================
   子沐到府坐月子 — 前台樣式
   設計方向：溫柔、乾淨、資訊層次清楚；行動裝置優先
   ========================================================================== */

:root {
    --brand:        #E0779A;
    --brand-dark:   #C2537A;
    --brand-soft:   #FCEFF3;
    --brand-softer: #FEF8FA;
    --accent:       #C9A227;
    --ink:          #33272C;
    --ink-soft:     #5C4F55;
    --muted:        #8A7D84;
    --line:         #F0E2E7;
    --bg:           #FFFCFD;
    --surface:      #FFFFFF;

    --radius-sm: 8px;
    --radius:    16px;
    --radius-lg: 28px;

    --shadow-sm: 0 1px 2px rgba(51, 39, 44, .06), 0 2px 8px rgba(51, 39, 44, .04);
    --shadow:    0 4px 12px rgba(51, 39, 44, .07), 0 12px 32px rgba(51, 39, 44, .06);
    --shadow-lg: 0 12px 28px rgba(194, 83, 122, .12), 0 32px 64px rgba(51, 39, 44, .08);

    --header-h: 78px;
    --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
            "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--brand-softer); }
.section--tint { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); }

/* ---------- 標題 ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head--left { text-align: left; margin-inline: 0; }

.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--brand);
    margin-bottom: 12px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--brand); vertical-align: middle; margin-right: 10px; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); color: var(--ink); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 999px;
    font-weight: 700; font-size: .97rem; letter-spacing: .02em;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--lg { padding: 17px 40px; font-size: 1.03rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(224, 119, 154, .32); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(194, 83, 122, .38); }
.btn--ghost { border: 1.5px solid var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-white { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--brand-dark); }

/* ---------- 公告列 ---------- */
.notice-bar { background: var(--ink); color: #fff; font-size: .84rem; }
.notice-bar__inner { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.notice-bar .icon { width: 17px; height: 17px; fill: var(--accent); flex-shrink: 0; }
.notice-bar p {
    line-height: 1.6; opacity: .92;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 252, 253, .9);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: auto; height: 50px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav > ul a {
    display: block; padding: 9px 14px; border-radius: 999px;
    font-size: .95rem; font-weight: 500; color: var(--ink-soft);
    transition: color .18s ease, background-color .18s ease;
}
.site-nav > ul a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.site-nav > ul a.is-active { color: var(--brand-dark); font-weight: 700; background: var(--brand-soft); }
.site-nav__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-top: 1px solid var(--line);
        padding: 12px 20px 28px; box-shadow: var(--shadow);
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
    }
    .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav > ul a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
    .site-nav__cta { margin-top: 16px; }
    .site-nav__cta .btn { flex: 1; padding: 14px; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-soft); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(51,39,44,.72) 0%, rgba(51,39,44,.45) 46%, rgba(51,39,44,.12) 100%);
}
@media (max-width: 820px) {
    .hero__media::after { background: linear-gradient(180deg, rgba(51,39,44,.42) 0%, rgba(51,39,44,.76) 100%); }
}

.hero__inner {
    position: relative; z-index: 2;
    min-height: clamp(520px, 74vh, 720px);
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(64px, 9vw, 110px) 0;
    max-width: 660px; color: #fff;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(6px);
    padding: 7px 17px; border-radius: 999px;
    font-size: .84rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.05rem, 5.4vw, 3.5rem);
    line-height: 1.28; letter-spacing: .02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero h1 em { font-style: normal; color: #FFD9E5; }
.hero__lead {
    margin-top: 20px; font-size: clamp(1rem, 1.9vw, 1.15rem);
    line-height: 1.9; color: rgba(255,255,255,.92); max-width: 540px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 38px; font-size: .92rem; color: rgba(255,255,255,.88); }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; fill: #FFD9E5; flex-shrink: 0; }

.hero__dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .25s ease, background-color .25s ease; }
.hero__dots button.is-active { width: 30px; background: #fff; }

/* ---------- 信任數據 ---------- */
.stats { position: relative; z-index: 4; margin-top: -46px; }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.stats__item { background: var(--surface); padding: 30px 20px; text-align: center; }
.stats__num { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.stats__num small { font-size: .5em; font-weight: 700; margin-left: 3px; }
.stats__label { font-size: .89rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 720px) {
    .stats { margin-top: -30px; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); }
    .stats__item { padding: 22px 14px; }
}

/* ---------- 卡片通用 ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.08rem; color: var(--ink); }
.card__text {
    font-size: .93rem; color: var(--ink-soft); line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more { margin-top: auto; padding-top: 6px; font-size: .89rem; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.card__more::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__more::after { transform: translateX(4px); }

.grid { display: grid; gap: 26px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- 服務項目 ---------- */
.service-card .card__media { aspect-ratio: 3 / 2; }
.service-card__index {
    position: absolute; left: 14px; top: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--brand-dark);
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}

/* ---------- 價目表 ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

.plan {
    position: relative; background: var(--surface);
    border: 1.5px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px 26px; display: flex; flex-direction: column; gap: 16px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan__tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: .76rem; font-weight: 700;
    padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.22rem; color: var(--ink); }
.plan__prices { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-block: 1px dashed var(--line); }
.plan__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__price span { font-size: .85rem; color: var(--muted); }
.plan__price b { font-size: 1.35rem; color: var(--brand-dark); font-weight: 800; }
.plan__price b small { font-size: .6em; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan__desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.8; flex: 1; }
.plan .btn { width: 100%; }

.price-note {
    margin-top: 26px; padding: 18px 22px;
    background: var(--brand-softer); border: 1px dashed var(--brand);
    border-radius: var(--radius); font-size: .89rem; color: var(--ink-soft); line-height: 1.85;
}
.price-note strong { color: var(--brand-dark); }

/* ---------- 月嫂 ---------- */
.nanny-card .card__media { aspect-ratio: 1 / 1; }
.nanny-card__level {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    background: rgba(51,39,44,.78); color: #fff; backdrop-filter: blur(4px);
    font-size: .76rem; font-weight: 700; padding: 5px 13px; border-radius: 999px;
}

/* ---------- 服務地區（GEO） ---------- */
.area-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-cloud li {
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 22px; font-size: .94rem; font-weight: 500; color: var(--ink-soft);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.area-cloud li:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }

/* ---------- 關於／富文本 ---------- */
.rich-text { line-height: 2; color: var(--ink-soft); }
.rich-text > * + * { margin-top: 1.1em; }
.rich-text h2, .rich-text h3, .rich-text h4 { color: var(--ink); margin-top: 1.6em; }
.rich-text img { border-radius: var(--radius); margin-inline: auto; }
.rich-text a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.rich-text table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rich-text td, .rich-text th { border: 1px solid var(--line); padding: 10px 14px; }
.rich-text--clamp { max-height: 460px; overflow: hidden; position: relative; }
.rich-text--clamp::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
    background: linear-gradient(180deg, rgba(255,252,253,0), var(--bg));
}

/* ---------- 最新消息 ---------- */
.news-item {
    display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-item:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.news-item__media { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-soft); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item time { font-size: .84rem; color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.news-item h3 { font-size: 1.08rem; margin-top: 6px; color: var(--ink); }
.news-item p {
    margin-top: 8px; font-size: .92rem; color: var(--ink-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 620px) {
    .news-item { grid-template-columns: 1fr; gap: 16px; }
    .news-item__media { aspect-ratio: 16 / 9; }
}

/* ---------- FAQ（AEO） ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px 24px; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex-shrink: 0; color: var(--brand); font-size: 1.05rem; font-weight: 800; }
.faq-item summary::after {
    content: ""; flex-shrink: 0; margin-left: auto; align-self: center;
    width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-item__answer { padding: 0 24px 22px 58px; color: var(--ink-soft); font-size: .96rem; line-height: 1.95; }

/* ---------- 快捷卡片 ---------- */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
.quick-link {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.quick-link img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.quick-link b { display: block; font-size: .97rem; color: var(--ink); }
.quick-link span { font-size: .82rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
.cta p { margin-top: 14px; font-size: 1.02rem; color: rgba(255,255,255,.9); max-width: 620px; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.site-footer__grid {
    display: grid; grid-template-columns: 1.6fr 1.2fr 1fr; gap: 48px;
    padding: clamp(48px, 6vw, 76px) 0;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.site-footer__brand p { margin-top: 18px; font-size: .92rem; line-height: 1.9; max-width: 380px; }
.site-footer h2 { font-size: 1.02rem; color: #fff; margin-bottom: 18px; }
.site-footer address p { display: flex; gap: 12px; font-size: .91rem; line-height: 1.9; }
.site-footer address span { flex-shrink: 0; width: 40px; color: rgba(255,255,255,.45); }
.site-footer a:hover { color: var(--brand); }
.link-list li + li { margin-top: 9px; }
.link-list a { font-size: .91rem; }

.social-list { display: flex; gap: 10px; margin-top: 22px; }
.social-list a {
    display: grid; place-items: center; min-width: 46px; height: 38px; padding-inline: 12px;
    border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.social-list a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.site-footer__bar small { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- 常駐行動列 / 回頂 ---------- */
.quick-bar { display: none; }
@media (max-width: 820px) {
    .quick-bar {
        position: fixed; inset: auto 0 0 0; z-index: 90;
        display: grid; grid-template-columns: repeat(3, 1fr);
        background: var(--surface); border-top: 1px solid var(--line);
        box-shadow: 0 -4px 20px rgba(51,39,44,.1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .quick-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; font-size: .74rem; color: var(--ink-soft); }
    .quick-bar svg { width: 21px; height: 21px; fill: var(--brand); }
    .quick-bar a.is-primary { background: var(--brand); color: #fff; }
    .quick-bar a.is-primary svg { fill: #fff; }
    body { padding-bottom: 62px; }
}

.to-top {
    position: fixed; right: 22px; bottom: 26px; z-index: 80;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; fill: var(--brand-dark); }
@media (max-width: 820px) { .to-top { bottom: 78px; right: 16px; } }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Placeholder 頁 ---------- */
.placeholder { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.placeholder h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.placeholder p { margin-top: 14px; color: var(--muted); }
.placeholder .btn { margin-top: 28px; }
