:root {
    /* 淺色系・專業：白底、海軍藍為主色、暖金細線點綴，紅色只用在提醒 */
    --brand: #1d3b5c;        /* 海軍藍：標題、按鈕、主色 */
    --brand-dark: #132a44;   /* 深海軍藍：hover、翻牌背面 */
    --gold: #b08d57;         /* 暖金：細線、強調 */
    --sand: #e8edf3;         /* 淺藍灰：分頁、標籤底 */
    --blush: #f3f6f9;        /* 極淺藍灰：hover、提示底 */
    --cream: #ffffff;        /* 主背景：白 */
    --cream-deep: #f5f7fa;   /* 淺色交錯區塊 */
    --red: #b4533f;          /* 磚紅：提醒、重點 */
    --text: #1f2933;         /* 內文：深石板灰 */
    --muted: #5a6675;        /* 次要文字 */
    --border: #e1e6ec;       /* 分隔線 */
    --line: #06c755;         /* LINE 官方綠，不更動 */
    --on-brand: #e4ebf3;     /* 海軍藍底上的內文色 */
    --radius: 8px;
    --shadow: 0 6px 20px rgba(29, 59, 92, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.75;
    letter-spacing: .02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(29, 59, 92, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-row { display: flex; align-items: baseline; gap: 10px; }
.brand-main { font-size: 1.75rem; font-weight: 700; letter-spacing: .18em; margin-right: -.18em; line-height: 1; color: var(--text); }
.brand-sub { font-size: 1rem; font-weight: 500; letter-spacing: .2em; color: var(--brand); }
.brand-en { font-size: .66rem; font-weight: 500; letter-spacing: .16em; margin-top: 6px; color: var(--muted); text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    padding: 8px 12px; border-radius: 6px; font-weight: 500; color: var(--text);
    transition: background .2s, color .2s;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--blush); color: var(--brand); }
.site-nav a.is-active:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--brand); }
.site-nav .nav-cta { background: var(--brand); color: #fff; margin-left: 8px; font-weight: 700; padding-inline: 18px; border-radius: 999px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta.is-active { background: var(--brand-dark); color: #fff; }

.nav-toggle {
    display: none; width: 44px; height: 40px; padding: 10px;
    border: 1px solid var(--border); border-radius: 6px; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 999px; font-weight: 500; font-size: 1rem;
    border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--line { background: var(--line); color: #fff; }
.btn--line:hover { background: #05b04b; }

/* ---------- 輪播（共用：首頁大圖、好評） ---------- */
.carousel { position: relative; --per-view: 1; --gap: 0px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: var(--gap); transition: transform .6s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.carousel-slide { flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view)); min-width: 0; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(196, 154, 92, .5); cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--brand); font-size: 1.7rem; line-height: 1;
    display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s;
}
.carousel-arrow:hover { background: var(--brand); color: #fff; }
.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #d3dce6; cursor: pointer; transition: width .3s, background .3s; }
.carousel-dot[aria-current="true"] { width: 28px; background: var(--brand); }
html:not(.js) .carousel-arrow, html:not(.js) .carousel-dots { display: none; }
html:not(.js) .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js) .carousel-slide { scroll-snap-align: start; }

/* ---------- 首頁全版大圖 ---------- */
.hero-carousel { background: #f5f7fa; } /* 取自大圖左側留白的底色 */
.hero-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; }
.hero-slide { position: relative; display: grid; }
.hero-slide__img { grid-area: 1 / 1; width: 100%; height: clamp(440px, 38vw, 620px); object-fit: cover; object-position: right center; }
.hero-slide__content { grid-area: 1 / 1; align-self: center; position: relative; z-index: 1; }
.hero-slide__content > * { max-width: min(520px, 44vw); }
.hero-slide__title { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--brand); letter-spacing: .06em; line-height: 1.35; margin-bottom: .3em; }
.eyebrow {
    display: inline-block; background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .15em;
    padding: 4px 14px; border-radius: 999px; font-size: .85rem; margin: 0 0 16px;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* 切換到該張時，文字依序浮上來 */
.js .hero-slide__content > * { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.js .hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .12s; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .24s; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(4) { transition-delay: .36s; }

/* ---------- Page banner (服務內頁) ---------- */
.page-banner {
    /* 淺色橫幅：底色取自圖片邊緣，與插圖無縫銜接 */
    background: #f5f7fa var(--banner) no-repeat center / cover;
    text-align: center; padding: 72px 0; border-bottom: 1px solid rgba(196, 154, 92, .25);
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand); letter-spacing: .15em; margin-bottom: .2em; }
.page-banner p { margin: 0; color: #8a6d42; letter-spacing: .2em; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--cream-deep); }
.section-title {
    text-align: center; color: var(--brand); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .12em;
    position: relative; padding-bottom: 16px; margin-bottom: 16px;
}
.section-title::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; height: 3px;
    background: var(--gold); transform: translateX(-50%); border-radius: 2px;
}
.section-title--left { text-align: left; }
.section-title--left::after { left: 0; transform: none; }
.section-lead { text-align: center; color: var(--muted); margin: 0 0 40px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.service-card {
    background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center;
    box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(29, 59, 92, .14); }
.service-card img { width: 112px; margin-bottom: 12px; }
.service-card h3 { color: var(--brand); font-size: 1.25rem; }
.service-card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.service-card .more { color: var(--gold); font-weight: 500; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-img { border-radius: 50%; background: var(--blush); mix-blend-mode: multiply; }
/* 關於我：會計師照片（後方錯位金框＋名牌） */
.profile-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 400px); }
.profile-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 18px; }
.profile-photo img { position: relative; width: 100%; height: auto; /* 依照片原本比例，不裁切 */ border-radius: 18px; background: var(--sand); box-shadow: 0 18px 40px rgba(29, 59, 92, .14); }
.about-firm { margin-top: 24px; padding: 16px 20px; background: var(--blush); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--muted); font-size: .95rem; }
.about-firm span { display: block; font-size: .75rem; letter-spacing: .15em; color: var(--brand); font-weight: 700; margin-bottom: 2px; }
.about-firm { line-height: 1.7; }

/* ---------- 翻牌卡 ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flip { perspective: 1200px; border-radius: var(--radius); outline: none; cursor: pointer; }
.flip:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.flip-inner {
    display: grid; height: 100%; transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4, .2, .2, 1);
}
.flip-face {
    grid-area: 1 / 1; /* 正反面疊在同一格，高度自動取較高的一面 */
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: var(--radius); padding: 32px 28px; min-height: 380px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.flip-front { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.flip-front img {
    width: 140px; height: 140px; border-radius: 50%; margin-bottom: 12px;
    border: 4px solid #fff; box-shadow: 0 6px 16px rgba(29, 59, 92, .12);
}
.flip-front h3 { color: var(--brand); font-size: 1.5rem; letter-spacing: .1em; }
.flip-front ul { list-style: none; padding: 0; margin: 0; }
.flip-front li { padding: 4px 0; }
.flip-back { background: var(--brand-dark); color: #fff; transform: rotateY(180deg); gap: 10px; border: 1px solid rgba(196, 154, 92, .6); }
.flip-back h3 { font-size: 1.5rem; letter-spacing: .1em; margin-bottom: 0; }
.flip-back p { margin: 0 0 8px; opacity: .85; }
.btn--light { background: #fff; color: var(--brand); min-width: 160px; padding: 10px 24px; }
.btn--light:hover { background: var(--sand); }
.flip:focus-visible .flip-inner, .flip:has(:focus-visible) .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) {
    .flip:hover .flip-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
    .flip-inner { transition: none; }
    .select-wrap::after { animation: none; }
    .plan-picker__hint, .plan-picker__list { animation: none; }
    .carousel-track { transition: none; }
    .js .hero-slide__content > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.steps span { display: block; font-size: 2.2rem; font-weight: 700; color: var(--sand); line-height: 1; margin-bottom: 8px; }
.steps h3 { color: var(--brand); font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Pricing (稅務記帳) ---------- */
.pricing-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.plan-tabs { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 108px; }
.plan-tab {
    background: var(--sand); color: var(--brand); padding: 14px 18px; font-weight: 500; border-radius: 2px;
    transition: background .2s, color .2s;
}
.plan-tab:hover { background: #dde5ee; }
.plan-select { display: none; }
.plan-select label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; line-height: 1.3; color: var(--brand); font-weight: 700; }
.plan-select label small { font-size: .8rem; font-weight: 500; color: var(--red); }
.select-wrap { position: relative; flex: 1; min-width: 0; }
.select-wrap select {
    width: 100%; font: inherit; font-weight: 700; color: #fff; cursor: pointer;
    background: var(--brand); border: 0; border-radius: 999px; padding: 12px 92px 12px 20px;
    box-shadow: 0 4px 14px rgba(29, 59, 92, .25); appearance: none; -webkit-appearance: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.select-wrap select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.select-wrap::after { /* 紅色「切換」標籤，讓人一看就知道可以點 */
    content: "更多 ▾"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: #fff; color: var(--brand); font-size: .85rem; font-weight: 700; letter-spacing: .05em;
    padding: 6px 14px; border-radius: 999px; pointer-events: none;
    animation: nudge 1.2s ease-in-out .6s 3;
}
@keyframes nudge { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.15); } }
.plan-select option { color: var(--text); background: #fff; font-weight: 400; }

/* 自訂下拉面板（有 JS 時取代原生 select） */
.plan-picker { display: none; position: relative; }
.js .plan-select .select-wrap { display: none; }
.js .plan-picker { display: block; }
.plan-picker__button {
    width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer;
    font: inherit; color: #fff; text-align: left;
    background: var(--brand); border: 0; border-radius: 999px; padding: 6px 6px 6px 8px;
    box-shadow: 0 6px 18px rgba(29, 59, 92, .28); transition: background .2s;
}
.plan-picker__button:hover { background: var(--brand-dark); }
.plan-picker__button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.plan-picker__icon { width: 34px; height: 34px; padding: 5px; flex: none; object-fit: contain; background: radial-gradient(circle closest-side, var(--cream) 98%, transparent 100%); }
.plan-picker__current { flex: 1; min-width: 0; font-weight: 700; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-picker__hint {
    flex: none; background: #fff; color: var(--brand); font-size: .85rem; font-weight: 700;
    padding: 6px 14px; border-radius: 999px; animation: pulse 1.2s ease-in-out .6s 3;
}
.plan-picker__caret { display: inline-block; transition: transform .2s; }
.plan-picker__button[aria-expanded="true"] .plan-picker__caret { transform: rotate(180deg); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.plan-picker__list {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20;
    list-style: none; margin: 0; padding: 8px; max-height: min(70vh, 520px); overflow-y: auto;
    background: #fff; border-radius: 18px; border: 1px solid rgba(196, 154, 92, .35);
    box-shadow: 0 20px 44px rgba(20, 38, 60, .28);
    animation: picker-pop .18s ease-out;
}
.plan-picker__list::before { /* 指向按鈕的小尖角 */
    content: ""; position: absolute; top: -8px; right: 40px; width: 14px; height: 14px; background: #fff;
    border-left: 1px solid rgba(196, 154, 92, .35); border-top: 1px solid rgba(196, 154, 92, .35); transform: rotate(45deg);
}
@keyframes picker-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.plan-picker__list li {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    cursor: pointer; outline: none; transition: background .15s;
}
.plan-picker__list li + li { margin-top: 2px; }
.plan-picker__list li:hover, .plan-picker__list li:focus-visible { background: var(--blush); }
.plan-picker__list li:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.plan-picker__list img { width: 40px; height: 40px; padding: 6px; flex: none; object-fit: contain; background: radial-gradient(circle closest-side, var(--cream) 98%, transparent 100%); }
.plan-picker__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.plan-picker__text strong { color: var(--brand); font-weight: 700; }
.plan-picker__text small { color: var(--muted); font-size: .8rem; }
.plan-picker__check { margin-left: auto; color: var(--gold); font-weight: 700; opacity: 0; }
.plan-picker__list li[aria-selected="true"] { background: var(--brand); }
.plan-picker__list li[aria-selected="true"] strong { color: #fff; }
.plan-picker__list li[aria-selected="true"] small { color: var(--on-brand); opacity: .85; }
.plan-picker__list li[aria-selected="true"] .plan-picker__check { opacity: 1; }
.plan-tab.is-active { background: var(--brand); color: #fff; }

.plan-panels { min-width: 0; }
.plan-title { color: var(--brand); font-size: 1.4rem; }
.plan-title small { font-size: .85rem; color: var(--text); margin-left: 12px; font-weight: 400; }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.price-table thead th {
    text-align: center; font-weight: 400; color: var(--brand); padding: 16px; font-size: 1.05rem;
    border-bottom: 3px solid var(--brand);
}
.price-table td, .price-table tbody th { padding: 20px 16px; border-bottom: 1px solid var(--border); }
.price-table tbody th { text-align: left; font-weight: 500; color: var(--text); }
.price-table td { text-align: center; }
.table-scroll { overflow-x: auto; margin-bottom: 8px; }
.table-scroll .price-table { min-width: 480px; }
.table-caption { color: var(--brand); font-size: 1.1rem; margin: 8px 0 4px; padding-left: 12px; border-left: 4px solid var(--gold); }
.plan-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
/* 圓形只是背景圖案（radial-gradient），不用 border-radius，圖示永遠不會被圓框裁切 */
.plan-head img { width: 72px; height: 72px; flex: none; padding: 10px; object-fit: contain; background: radial-gradient(circle closest-side, var(--blush) 98%, transparent 100%); }
.plan-head p { margin: 0; color: var(--muted); }
.plan-cta { margin-top: 28px; }
.ethics-note {
    background: var(--blush); border: 1px dashed var(--gold); border-radius: 8px; padding: 14px 18px;
    color: var(--brand); font-size: .95rem; margin: 0 0 32px;
}
.ethics-note a { color: var(--gold); font-weight: 700; text-decoration: underline; }
.price-table .price { color: var(--red); font-weight: 700; font-size: 1.15rem; }

/* 首頁：4 大類卡片 */
.group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.group-card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 32px 24px 24px;
    box-shadow: var(--shadow); border-top: 3px solid var(--gold); transition: transform .2s, box-shadow .2s;
}
.group-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(29, 59, 92, .14); }
.group-card img { width: 96px; height: 96px; margin: 0 auto 12px; object-fit: contain; }
.group-card h3 { color: var(--brand); font-size: 1.3rem; text-align: center; letter-spacing: .08em; }
.group-card p { color: var(--muted); margin: 0 0 16px; text-align: center; font-size: .95rem; }
.group-card ul { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--border); flex: 1; }
.group-card li + li { margin-top: 2px; }
.group-card li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); font-weight: 500; transition: background .15s, color .15s; }
.group-card li a::before { content: "›"; color: var(--gold); margin-right: 8px; font-weight: 700; }
.group-card li a:hover { background: var(--blush); color: var(--brand); }
.group-card .more { color: var(--gold); font-weight: 500; text-align: center; }

/* 服務頁左側：分組 */
.plan-group { display: flex; flex-direction: column; gap: 8px; }
.plan-group + .plan-group { margin-top: 12px; }
.plan-tabs { gap: 0; }
.plan-group__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 4px; font-size: .82rem; letter-spacing: .12em; color: #8a6d42; font-weight: 700; }
.plan-group__title img { width: 28px; height: 28px; object-fit: contain; }
.plan-picker__group { padding: 10px 12px 2px !important; font-size: .78rem; letter-spacing: .12em; color: #8a6d42; font-weight: 700; cursor: default !important; background: none !important; }
.plan-picker__group:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--border); }

/* 服務頁：子區塊（簽證三種） */
.plan-sections { margin-bottom: 24px; scroll-margin-top: 110px; }
.plan-sections__nav { display: flex; gap: 4px; margin: 0; padding: 0 8px; border-bottom: 2px solid var(--sand); }
.plan-sections__nav a {
    padding: 12px 22px; margin-bottom: -2px; border-radius: 8px 8px 0 0; border: 2px solid transparent; border-bottom: 0;
    color: var(--muted); font-weight: 500; font-size: 1rem; transition: background .15s, color .15s;
}
.plan-sections__nav a:hover { color: var(--brand); background: var(--blush); }
.plan-sections__nav a.is-active { background: #fff; color: var(--brand); font-weight: 700; border-color: var(--sand); box-shadow: inset 0 3px 0 var(--gold); }
.plan-section { background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 24px; scroll-margin-top: 110px; }
.js .plan-sections .plan-section { margin-bottom: 0; }
.js .plan-sections .plan-section:not(.is-active) { display: none; }
.plan-section > h3 { color: var(--brand); font-size: 1.3rem; margin-bottom: 20px; }
.plan-section > h3 small { display: block; font-size: .95rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
.plan-section__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-section__grid h4 { margin: 0 0 8px; font-size: .85rem; letter-spacing: .12em; color: #8a6d42; padding-bottom: 6px; border-bottom: 2px solid var(--sand); }
.plan-section__grid ul { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.plan-section__grid li + li { margin-top: 6px; }
.plan-section__grid li::marker { color: var(--gold); }
.plan-section__grid p { margin: 0; font-size: .95rem; }
.plan-section__note { margin-top: 12px !important; padding: 10px 12px; background: #fdf1ed; border-radius: 8px; font-size: .9rem !important; }
.plan-section__note strong { display: inline-block; font-size: .75rem; color: #fff; background: var(--red); border-radius: 4px; padding: 0 6px; margin-right: 8px; vertical-align: 1px; }

/* 服務頁：辦理流程 */
.plan-steps { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px 8px; margin-bottom: 24px; border-top: 3px solid var(--gold); }
.plan-steps h3 { color: var(--brand); margin-bottom: 4px; }
.plan-steps > p { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.plan-steps .guide-steps { margin-bottom: 0; }
.plan-steps .guide-steps li { padding-bottom: 18px; }
.plan-steps .guide-steps span { font-size: .95rem; }

/* 服務內容：適用對象標籤、服務清單、報價考量與提醒 */
.plan-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.plan-tags li { font-size: .85rem; color: #8a6d42; background: var(--blush); border: 1px solid rgba(196, 154, 92, .35); border-radius: 999px; padding: 2px 12px; }
.plan-includes { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 24px; border-top: 3px solid var(--gold); }
.plan-includes h3 { color: var(--brand); }
.plan-includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.plan-includes li { position: relative; padding-left: 30px; }
.plan-includes li::before {
    content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.plan-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.notice ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.notice ul li + li { margin-top: 8px; }
.notice { background: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.notice h3 { color: var(--brand); }
.notice ol { margin: 0; padding-left: 1.4em; color: var(--muted); }
.notice li + li { margin-top: 8px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--blush); }
/* 好評輪播：一頁幾則由 --per-view 控制 */
.t-carousel { margin-top: 40px; --per-view: 3; --gap: 24px; }
.t-carousel .carousel-viewport { padding: 8px 4px 16px; margin: -8px -4px 0; }
/* 箭頭放在下方與圓點同一列，避免壓到卡片文字 */
.t-carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; row-gap: 16px; column-gap: 16px; }
.t-carousel .carousel-viewport { grid-column: 1 / -1; }
.t-carousel .carousel-arrow { position: static; transform: none; width: 40px; height: 40px; font-size: 1.4rem; }
.t-carousel .carousel-arrow--prev { grid-column: 1; grid-row: 2; }
.t-carousel .carousel-dots { grid-column: 2; grid-row: 2; }
.t-carousel .carousel-arrow--next { grid-column: 3; grid-row: 2; }
.testimonial {
    margin: 0; position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; padding: 40px 28px 24px; box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}
.testimonial::before {
    content: "“"; position: absolute; top: 6px; left: 22px; font-size: 4rem; line-height: 1;
    color: var(--gold); opacity: .45; font-family: Georgia, serif;
}
.testimonial blockquote { margin: 0 0 20px; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--border); }
.t-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: #7fa08a; color: #fff; font-weight: 700; font-size: 1.1rem;
}
.t-who { display: flex; flex-direction: column; line-height: 1.35; }
.t-who strong { color: var(--brand); }
.t-who small { color: var(--muted); font-size: .85rem; }

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(120deg, var(--sand) 0%, var(--blush) 100%); color: var(--text); padding: 48px 0;
    border-top: 1px solid rgba(196, 154, 92, .3);
}
.cta-inner { display: flex; align-items: center; gap: 32px; }
.cta img { width: 160px; border-radius: 50%; background: #fff; flex: none; box-shadow: var(--shadow); }
.cta-text { flex: 1; }
.cta h2 { font-size: 1.8rem; letter-spacing: .1em; margin-bottom: .2em; color: var(--brand); }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.quick {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
    font-weight: 500; white-space: nowrap; transition: transform .15s, filter .2s;
}
.quick:hover { transform: translateY(-2px); filter: brightness(.95); }
.quick__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 3px; }
.quick__icon img { width: 100%; height: 100%; }
.quick--line { background: var(--line); color: #fff; }
.quick--call { background: var(--brand); color: #fff; }
.quick--map { background: #fff; color: var(--brand); border: 1px solid var(--border); }
.contact-map { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream-deep); }
.contact-map iframe { display: block; width: 100%; height: 440px; border: 0; }
.contact-map__link {
    position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--brand); font-weight: 500;
    padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); font-size: .9rem;
}
.contact-map__link:hover { background: var(--brand); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-deep); color: var(--text); padding-top: 56px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-slogan { margin: 16px 0 0; color: var(--brand); font-weight: 500; letter-spacing: .08em; }
.footer-disclose { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-disclose p { margin: 0; }
.footer-disclose__firm { font-weight: 700; color: var(--text); }
.footer-disclose__notice { color: var(--muted); font-size: .82rem; margin-top: 10px !important; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.footer-info { list-style: none; padding: 0; margin: 0; }
.footer-info li { padding: 6px 0; }
.ci-row { display: flex; align-items: baseline; gap: 16px; }
.ci-icon, .ci-chev { display: none; }
.ci-text { display: flex; gap: 16px; min-width: 0; }
.ci-label { min-width: 56px; flex: none; color: var(--brand); font-weight: 500; }
.ci-value { min-width: 0; overflow-wrap: break-word; }
a.ci-row:hover .ci-value { text-decoration: underline; }
.footer-info--light { margin: 24px 0; }
.footer-info--light .ci-label { color: var(--brand); }
.footer-bottom { text-align: center; padding: 18px 16px; font-size: .85rem; border-top: 1px solid var(--border); color: var(--muted); }

/* ---------- LINE 浮動按鈕 ---------- */
.line-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; }
.line-float__label {
    background: #fff; color: var(--text); padding: 6px 14px; border-radius: 999px; font-size: .9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.line-float__icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--line); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: 0;
    box-shadow: 0 6px 18px rgba(6, 199, 85, .4); transition: transform .2s;
}
.line-float:hover .line-float__icon { transform: scale(1.08); }

.site-version { margin-left: 8px; opacity: .55; font-size: .75rem; }

/* ---------- 實務指南 ---------- */
.guides-lead { max-width: 640px; margin-inline: auto; }
.guide-jump { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 56px; }
.guide-jump a {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .2s, transform .2s;
}
.guide-jump a:hover { border-color: var(--gold); transform: translateY(-2px); }
.guide-jump img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.guide-jump span { color: var(--brand); font-weight: 700; line-height: 1.3; }
.guide-jump small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

.guide-group { scroll-margin-top: 100px; }
.guide-group + .guide-group { margin-top: 64px; }
.guide-group__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.guide-group__head img { width: 64px; height: 64px; flex: none; padding: 8px; object-fit: contain; background: radial-gradient(circle closest-side, var(--blush) 98%, transparent 100%); }
.guide-group__head h2 { color: var(--brand); font-size: 1.5rem; letter-spacing: .08em; margin: 0; }
.guide-group__head p { margin: 0; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.guide-grid--home, .guide-grid--related { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guide-card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 24px 24px 20px;
    box-shadow: var(--shadow); border-top: 3px solid var(--gold); transition: transform .2s, box-shadow .2s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(29, 59, 92, .14); }
.guide-card__tag { align-self: flex-start; font-size: .78rem; color: #8a6d42; background: var(--blush); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.guide-card h3 { color: var(--brand); font-size: 1.12rem; }
.guide-card p { color: var(--muted); margin: 0 0 16px; flex: 1; font-size: .95rem; }
.guide-card .more { color: var(--gold); font-weight: 500; }
.guides-more { text-align: center; margin: 40px 0 0; }

/* 文章頁 */
.guide-hero { background: var(--cream-deep); border-bottom: 1px solid rgba(196, 154, 92, .25); padding: 40px 0 44px; }
.guide-hero h1 { color: var(--brand); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: .05em; max-width: 820px; margin: 12px 0 10px; }
.guide-hero__lead { color: var(--muted); max-width: 760px; margin: 0 0 8px; font-size: 1.05rem; }
.guide-hero__meta { color: #8a6d42; font-size: .85rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.guide-section { padding-top: 48px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.guide-body { font-size: 1.04rem; max-width: 780px; }
.guide-body > h2 {
    color: var(--brand); font-size: 1.35rem; margin: 44px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold);
    scroll-margin-top: 100px;
}
.guide-body > h2:first-child { margin-top: 0; }
.guide-body > p { margin: 0 0 16px; }
.guide-list { margin: 0 0 20px; padding-left: 1.3em; }
.guide-list li + li { margin-top: 8px; }
.guide-list li::marker { color: var(--gold); }

.guide-steps { list-style: none; counter-reset: gs; margin: 0 0 24px; padding: 0; }
.guide-steps li { counter-increment: gs; position: relative; padding: 0 0 20px 56px; }
.guide-steps li::before {
    content: counter(gs); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.guide-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--border); }
.guide-steps strong { display: block; color: var(--brand); padding-top: 4px; }
.guide-steps span { color: var(--muted); }

.guide-table-wrap { margin: 0 0 28px; }
.guide-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.guide-table thead th { background: var(--brand); color: #fff; font-weight: 500; text-align: left; padding: 12px 14px; }
.guide-table td, .guide-table tbody th { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.guide-table tbody th { font-weight: 700; color: var(--brand); background: var(--blush); min-width: 7em; }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table-wrap .table-scroll .guide-table { min-width: 560px; }
.guide-table-note { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }

.guide-faq { margin: 0 0 24px; display: grid; gap: 12px; }
.guide-faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid transparent; }
.guide-faq details[open] { border-left-color: var(--gold); }
.guide-faq summary {
    list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--brand); position: relative;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::before { content: "Q"; color: var(--gold); margin-right: 10px; }
.guide-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); font-weight: 400; }
.guide-faq details[open] summary::after { content: "\2212"; }
.guide-faq details p { margin: 0; padding: 0 20px 18px 44px; color: var(--text); }

.guide-callout { border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; background: var(--blush); border: 1px dashed var(--gold); }
.guide-callout--warn { background: #fdf1ed; border: 1px solid #ecc9bf; }
.guide-callout::before { display: inline-block; font-size: .78rem; font-weight: 700; color: #fff; border-radius: 4px; padding: 0 8px; margin-bottom: 6px; }
.guide-callout--tip::before { content: "提醒"; background: var(--gold); }
.guide-callout--warn::before { content: "注意"; background: var(--red); }
.guide-callout__title { display: block; color: var(--brand); margin-bottom: 4px; }
.guide-callout p { margin: 0; }
.guide-callout ul { margin: 0; padding-left: 1.2em; }
.guide-callout li + li { margin-top: 6px; }

.guide-disclaimer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

.guide-toc--inline { display: none; }
.guide-aside { position: sticky; top: 108px; display: grid; gap: 20px; }
.guide-toc--side, .guide-side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.guide-aside h2 { font-size: 1rem; color: var(--brand); margin: 0 0 10px; letter-spacing: .08em; }
.guide-toc ol { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.guide-toc li + li { margin-top: 6px; }
.guide-toc a { color: var(--muted); }
.guide-toc a:hover { color: var(--brand); text-decoration: underline; }
.guide-service { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 8px; transition: background .15s; }
.guide-service:hover { background: var(--blush); }
.guide-service img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.guide-service span { display: flex; flex-direction: column; line-height: 1.35; }
.guide-service strong { color: var(--brand); }
.guide-service small { color: var(--muted); font-size: .8rem; }
.guide-side-card--ask { background: linear-gradient(140deg, var(--sand), var(--blush)); }
.guide-side-card--ask p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.guide-side-card--ask .btn { display: flex; justify-content: center; width: 100%; }
.guide-side-card--ask .btn + .btn { margin-top: 10px; }

/* 文章開頭：什麼情況會需要看這篇 */
.guide-when { margin: 0 0 28px; padding: 16px 20px; background: var(--blush); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.guide-when strong { display: block; font-size: .8rem; letter-spacing: .12em; color: var(--brand); margin-bottom: 6px; }
.guide-when ul { margin: 0; padding-left: 1.2em; }
.guide-when li + li { margin-top: 4px; }
.guide-when li::marker { color: var(--gold); }

/* 文章結尾：怎麼開始 */
.guide-start { margin-top: 44px; padding: 24px 28px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.guide-start h2 { color: var(--brand); font-size: 1.25rem; margin: 0 0 18px; }
.guide-start .guide-steps { margin-bottom: 4px; }
.guide-start__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 試算小工具 */
.guide-calc { margin: 0 0 28px; padding: 22px 24px; background: var(--cream-deep); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-calc h3 { color: var(--brand); font-size: 1.1rem; margin: 0 0 14px; }
.guide-calc__form { display: grid; gap: 12px; margin-bottom: 16px; }
.guide-calc__form > label { display: grid; gap: 4px; font-weight: 500; font-size: .92rem; }
.guide-calc input[type="number"] { font: inherit; font-size: 1.1rem; padding: 10px 12px; border: 1px solid #c9d2dc; border-radius: 8px; background: #fff; width: 100%; max-width: 260px; }
.guide-calc input[type="number"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.guide-calc fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.guide-calc legend { padding: 0; margin-bottom: 4px; font-weight: 500; font-size: .92rem; }
.guide-calc fieldset label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.guide-calc input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; }
.guide-calc__result { margin: 0; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.guide-calc__result > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.guide-calc__result > div + div { border-top: 1px solid var(--border); }
.guide-calc__result dt { color: var(--muted); }
.guide-calc__result dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.guide-calc__result .is-total dt { color: var(--text); font-weight: 700; }
.guide-calc__result .is-total dd { color: var(--brand); font-size: 1.2rem; font-weight: 700; }
.guide-calc__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.guide-calc [hidden] { display: none; }

/* 服務收費頁：延伸閱讀 */
.plan-reading { margin-top: 24px; padding: 20px 24px; background: var(--blush); border-radius: var(--radius); }
.plan-reading h3 { color: var(--brand); font-size: 1.05rem; margin-bottom: 8px; }
.plan-reading ul { margin: 0; padding-left: 1.2em; }
.plan-reading li + li { margin-top: 4px; }
.plan-reading a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.plan-reading a:hover { color: var(--brand); }

@media (max-width: 960px) {
    .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-section__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .plan-section, .plan-sections { scroll-margin-top: 210px; }
    .guide-jump { grid-template-columns: repeat(2, 1fr); }
    .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .guide-aside { position: static; }
    .guide-toc--side { display: none; }
    .guide-toc--inline { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
    .guide-toc--inline summary { cursor: pointer; padding: 14px 20px; font-weight: 700; color: var(--brand); }
    .guide-toc--inline ol { padding: 0 20px 16px 2.6em; }
}

@media (max-width: 760px) {
    .guide-jump { gap: 10px; margin-bottom: 40px; }
    .guide-jump a { padding: 12px; gap: 8px; }
    .guide-group { scroll-margin-top: 80px; }
    .guide-group__head img { width: 52px; height: 52px; }
    .guide-group__head h2 { font-size: 1.3rem; }
    .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .guide-hero { padding: 24px 0 28px; }
    .guide-section { padding-top: 32px; }
    .guide-body { font-size: 1rem; }
    .guide-body > h2 { scroll-margin-top: 84px; font-size: 1.2rem; margin-top: 36px; }
    /* 手機：表格改成一列一張卡片，欄名放在每格上方 */
    .guide-table-wrap .table-scroll { overflow: visible; }
    .guide-table-wrap .table-scroll .guide-table { min-width: 0; }
    .guide-table { box-shadow: none; background: none; border-radius: 0; overflow: visible; }
    .guide-table, .guide-table tbody, .guide-table tr, .guide-table td, .guide-table tbody th { display: block; }
    .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .guide-table tr { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
    .guide-table td, .guide-table tbody th { padding: 10px 14px; border-bottom: 1px solid var(--border); }
    .guide-table tbody tr > :last-child { border-bottom: 0; }
    .guide-table td::before { content: attr(data-label); display: block; color: #8a6d42; font-size: .8rem; font-weight: 500; }
    .guide-faq summary { padding: 14px 44px 14px 16px; }
    .guide-faq details p { padding: 0 16px 16px 16px; }
}

/* ---------- 主選單下拉 ---------- */
.nav-group { position: relative; }
.nav-group__btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 6px;
    background: none; font: inherit; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-group:hover .nav-group__btn, .nav-group.is-open .nav-group__btn { background: var(--blush); color: var(--brand); }
.nav-group.is-active .nav-group__btn { background: var(--blush); color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.nav-group.is-open .nav-caret { transform: translateY(1px) rotate(225deg); }

.nav-drop {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
    display: flex; gap: 8px; padding: 18px 20px; min-width: 300px;
    background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20, 38, 60, .14); border: 1px solid var(--border); border-top: 3px solid var(--brand);
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-group:hover .nav-drop, .nav-group.is-open .nav-drop, .nav-group:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop__col { display: flex; flex-direction: column; min-width: 150px; }
.nav-drop__col--articles { border-left: 1px solid var(--border); padding-left: 16px; margin-left: 8px; min-width: 190px; }
.nav-drop__label { margin: 0 0 6px; padding: 0 10px; font-size: .72rem; letter-spacing: .12em; color: #8a6d42; }
.site-nav .nav-drop a { padding: 7px 10px; border-radius: 6px; font-size: .92rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.site-nav .nav-drop a:hover { background: var(--blush); color: var(--brand); box-shadow: none; }
.site-nav .nav-drop__col--articles a { font-weight: 400; color: var(--muted); }

/* ---------- 多國語言 ---------- */
html[lang="ja"] body { font-family: "Noto Sans JP", "Noto Sans TC", "Hiragino Sans", "Yu Gothic", sans-serif; }
html[lang="en"] .section-title, html[lang="en"] .page-banner h1 { letter-spacing: .03em; }
.site-nav a, .brand-en, .lang-switch a { white-space: nowrap; }
.ls-full { display: none; }
.brand { flex: none; }
.lang-switch { display: flex; align-items: center; flex: none; margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
.site-nav .lang-switch a { padding: 4px 8px; font-size: .8rem; color: var(--on-brand); opacity: .75; border-radius: 4px; }
.site-nav .lang-switch a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.site-nav .lang-switch a.is-current { opacity: 1; color: var(--gold); font-weight: 700; background: none; }

/* ---------- 手機底部導覽列 ---------- */
.tabbar { display: none; }

/* ---------- RWD ---------- */
/* 選單較長（含英文、日文與語言切換），1120px 以下改為漢堡選單 */
@media (max-width: 1120px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(20, 38, 60, .08);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav .nav-cta { margin-left: 0; text-align: center; }
    .lang-switch { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); justify-content: center; gap: 8px; }
    .site-nav .lang-switch a { font-size: .9rem; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
    .site-nav .lang-switch a.is-current { border-color: var(--gold); }
    .ls-short { display: none; }
    .ls-full { display: inline; }
    /* 漢堡選單內：分類變成可展開的區塊，子項目縮排列出 */
    .nav-group { border-bottom: 1px solid var(--border); }
    .nav-group__btn { width: 100%; justify-content: space-between; padding: 12px; }
    .nav-group.is-active .nav-group__btn { box-shadow: inset 3px 0 0 var(--brand); }
    .nav-drop {
        position: static; transform: none; display: none; flex-direction: column; gap: 4px; min-width: 0;
        padding: 4px 8px 12px 20px; background: var(--blush); border: 0; border-radius: 8px; box-shadow: none;
        opacity: 1; visibility: visible;
    }
    .nav-group:hover .nav-drop { display: none; }
    .nav-group.is-open .nav-drop, .nav-group:focus-within.is-open .nav-drop { display: flex; transform: none; }
    .nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { transform: none; }
    .nav-drop__col--articles { border-left: 0; padding: 8px 0 0; margin: 4px 0 0; border-top: 1px solid var(--border); }
    .nav-drop__label { padding: 6px 12px 2px; }
    .site-nav .nav-drop a, .site-nav .nav-drop__col--articles a { color: var(--text); padding: 8px 12px; white-space: normal; }
    .site-nav .nav-drop a:hover { background: #fff; color: var(--brand); }
}

@media (max-width: 960px) {
    .profile-photo { width: min(78%, 340px); }
    /* 平板以下：大圖改為圖上文下，避免插圖壓到文字 */
    .hero-carousel .carousel-arrow { display: none; }
    .hero-slide { display: flex; flex-direction: column; }
    .hero-slide__img { height: auto; aspect-ratio: 16 / 9; object-position: 85% center; }
    .hero-slide__content { padding-top: 24px; padding-bottom: 56px; }
    .hero-slide__content > * { max-width: none; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .t-carousel { --per-view: 2; }
    .flip-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .about, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about-img { max-width: min(360px, 100%); margin-inline: auto; }
    .pricing-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    /* 平板 / 手機：分頁按鈕改為下拉選單，固定在頁首下方 */
    .plan-tabs { display: none; }
    .plan-panels { scroll-margin-top: 190px; }
    .plan-select {
        display: flex; flex-direction: column; gap: 6px;
        position: sticky; top: 84px; z-index: 5; margin: 0 -16px; padding: 10px 16px;
        background: var(--cream); border-bottom: 1px solid rgba(29, 59, 92, .08);
    }
    .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
    .brand-main { font-size: 1.45rem; }
    .brand-sub { font-size: .9rem; }
    .plan-select { top: 68px; }
    .header-inner { min-height: 68px; }
    /* 手機：改用四角構圖的專用橫幅，中央留白放標題 */
    .page-banner {
        min-height: 56vw; display: flex; align-items: center; padding: 32px 0;
        background: #f5f7fa var(--banner-m) center / cover no-repeat;
    }
    .page-banner p { letter-spacing: .1em; font-size: .9rem; max-width: 70%; margin-inline: auto; }
    .hero-actions .btn { flex: 1; padding-inline: 16px; }
    .logo-mark { width: 42px; height: 42px; }
    .section { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .t-carousel { --per-view: 1; --gap: 16px; }
    .hero-slide__img { aspect-ratio: 4 / 3; object-position: 82% center; }
    .contact-map iframe { height: 320px; }
    /* 快速動作：三格圖示方塊 */
    .contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .quick {
        flex-direction: column; justify-content: center; gap: 8px; padding: 16px 6px; border-radius: 16px;
        font-size: .85rem; background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .quick:hover { transform: none; filter: none; }
    .quick:active { transform: scale(.96); }
    .quick__icon { width: 52px; height: 52px; padding: 6px; border-radius: 16px; background: var(--cream-deep); }
    .quick--line .quick__icon { background: #e6f7ec; }
    .quick--call .quick__icon { background: #fbece8; }
    .quick--map .quick__icon { background: #edf3ef; }

    /* 聯絡資訊：App 設定頁風格的分組清單 */
    .footer-info--light {
        background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
    }
    .footer-info--light li { padding: 0; }
    .footer-info--light .ci-row { position: relative; }
    .footer-info--light li + li .ci-row::before { /* 從文字起點開始的分隔線（iOS 設定頁風格） */
        content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--border);
    }
    .footer-info--light .ci-row { align-items: center; gap: 14px; padding: 12px 16px; min-height: 60px; color: var(--text); }
    .footer-info--light a.ci-row:active { background: var(--blush); }
    .footer-info--light a.ci-row:hover .ci-value { text-decoration: none; }
    .footer-info--light .ci-icon {
        display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
        background: var(--cream-deep); padding: 4px;
    }
    .footer-info--light .ci-icon img { width: 100%; height: 100%; }
    .footer-info--light .ci-text { flex-direction: column; gap: 2px; flex: 1; }
    .footer-info--light .ci-label { min-width: 0; font-size: .78rem; color: var(--muted); font-weight: 400; }
    .footer-info--light .ci-value { font-size: 1rem; color: var(--text); }
    .footer-info--light .ci-chev { display: block; flex: none; color: #b8c2ce; font-size: 1.5rem; line-height: 1; }

    /* 底部導覽列：固定在畫面下方，取代右下角的 LINE 浮動按鈕 */
    .line-float { display: none; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
        border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(29, 59, 92, .06);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar__item {
        display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
        font-size: .7rem; color: var(--muted); border-radius: 10px;
    }
    .tabbar__item img { width: 28px; height: 28px; opacity: .75; transition: opacity .2s, transform .2s; }
    .tabbar__item.is-active { color: var(--brand); font-weight: 700; }
    .tabbar__item.is-active img { opacity: 1; transform: translateY(-1px) scale(1.08); }
    .tabbar__item:active { background: var(--blush); }
    .tabbar__item--line { color: #05a648; font-weight: 700; }
    .tabbar__item--line img { opacity: 1; }
    /* 手機版：表格改為卡片，每列一張，欄位名稱標在每個值旁邊 */
    .table-scroll { overflow: visible; }
    .table-scroll .price-table { min-width: 0; }
    .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table tbody th { display: block; }
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .price-table { margin-bottom: 24px; }
    .price-table tr {
        background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
        margin-bottom: 12px; overflow: hidden; border-left: 4px solid var(--gold);
    }
    .price-table tbody th {
        padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--brand); font-weight: 700; background: var(--blush);
    }
    .price-table td {
        display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
        padding: 10px 16px; border-bottom: 1px dashed var(--border); text-align: right;
    }
    .price-table td:last-child { border-bottom: 0; }
    .price-table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; font-size: .95rem; text-align: left; flex: none; }
    .price-table .price { font-size: 1.05rem; }
    /* 只有兩欄的表（項目＋費用）：同一行顯示，不重複欄位名稱 */
    .price-table tr:has(> td:only-of-type) { display: flex; align-items: center; }
    .price-table tr:has(> td:only-of-type) > th { flex: 1; background: none; border-bottom: 0; }
    .price-table tr:has(> td:only-of-type) > td { border-bottom: 0; }
    .price-table tr:has(> td:only-of-type) > td::before { display: none; }
}

@media (max-width: 560px) {
    .group-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    /* 手機：服務大類卡片改精簡版（左圖右文、子項目做成可點的膠囊按鈕） */
    .group-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px 16px 14px; }
    .group-card:hover { transform: none; }
    .group-card img { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; align-self: start; }
    .group-card h3 { text-align: left; font-size: 1.15rem; margin: 0 0 2px; }
    .group-card p { text-align: left; font-size: .88rem; margin: 0; line-height: 1.55; }
    .group-card ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; padding: 14px 0 0; }
    .group-card li + li { margin-top: 0; }
    .group-card li a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--blush); font-size: .9rem; }
    .group-card li a::before { content: none; }
    .group-card li a:active { background: var(--sand); color: var(--brand); }
    .group-card .more { grid-column: 1 / -1; justify-self: end; font-size: .88rem; }
    .plan-section { padding: 22px 20px; }
    .plan-sections__nav { padding: 0; }
    .plan-sections__nav a { flex: 1; text-align: center; padding: 10px 6px; font-size: .92rem; }
    .plan-includes { padding: 20px; }
    .plan-includes ul { grid-template-columns: minmax(0, 1fr); }
    .notice { padding: 22px 20px; }
    .steps { grid-template-columns: 1fr; }
    .plan-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .brand { gap: 10px; }
    .logo-mark { width: 38px; height: 38px; }
    .brand-main { font-size: 1.3rem; letter-spacing: .12em; margin-right: -.12em; }
    .brand-sub { font-size: .85rem; letter-spacing: .1em; }
    .brand-en { font-size: .55rem; letter-spacing: .08em; }
}
