/* =========================================================
   誠意保 ® 傳承規劃整合平台 — 共用樣式
   設計原則：
   1. 延續原站「深藍＋燙金」家族辦公室質感
   2. 主要讀者 50–80 歲：字級放大（基準 17px）、行距寬、對比高
   3. 手機優先：所有區塊在 375px 寬度可正常閱讀，含漢堡選單
   ========================================================= */

:root {
    --navy: #0f2c59;
    --navy-deep: #081b3a;
    --navy-ink: #16386b;
    --gold: #c5a880;
    --gold-deep: #a9875c;
    --gold-light: #e4d3b3;
    --gold-gradient: linear-gradient(120deg, #a9875c 0%, #e4d3b3 45%, #c5a880 100%);
    --cream: #fbf8f2;
    --paper: #ffffff;
    --bg: #f7f5f0;
    --ink: #1e293b;
    --ink-soft: #475569;
    --muted: #64748b;
    --line: #e7e0d2;
    --line-green: #06c755;
    --line-green-deep: #05a648;
    --shadow: 0 10px 25px -5px rgba(15, 44, 89, 0.08), 0 8px 10px -6px rgba(15, 44, 89, 0.03);
    --shadow-lift: 0 22px 34px -12px rgba(15, 44, 89, 0.18);
    --font-display: 'Noto Serif TC', 'Noto Sans TC', serif;
    --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Microsoft JhengHei', sans-serif;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink);
    line-height: 1.85;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 進場動畫 ---------- */
/* 只有在 script.js 成功載入（<html> 加上 .js）時才隱藏；少了 script.js 內容仍完整顯示 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 導覽列 ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    background: rgba(8, 27, 58, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.5rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--gold);
    font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 1px;
    background: radial-gradient(circle at 30% 25%, #1d4580, var(--navy-deep));
    color: var(--gold-light);
    flex-shrink: 0;
    overflow: hidden;
}
img.brand-mark { width: 48px; height: 48px; object-fit: cover; background: #f3eee4; box-shadow: 0 0 0 2px rgba(197,168,128,.35); }
.footer-logo { width: 150px; border-radius: 12px; border: 1px solid rgba(197,168,128,.4); margin-bottom: .6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; }
.brand-name sup { font-size: 0.6em; color: var(--gold); margin-left: 1px; }
.brand-sub { font-size: 0.78rem; color: var(--gold); letter-spacing: 1.5px; }

.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a {
    position: relative; color: #e7ecf5; text-decoration: none;
    font-weight: 500; font-size: 0.97rem; padding: 4px 0;
    transition: color .3s ease;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--gold-gradient); transition: width .35s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
    background: var(--line-green); color: #fff; padding: 0.5rem 1.1rem; border-radius: 30px; font-weight: 700;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--line-green-deep); color: #fff; }

.nav-toggle {
    display: none; background: none; border: 1px solid rgba(197,168,128,.5); border-radius: 8px;
    width: 46px; height: 46px; color: var(--gold-light); font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 960px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-deep);
        border-bottom: 1px solid rgba(197,168,128,.25);
        max-height: 0; overflow: hidden;
        transition: max-height .4s ease;
    }
    .nav-links.open { max-height: 80vh; overflow-y: auto; }
    .nav-links li { border-top: 1px solid rgba(255,255,255,.06); }
    .nav-links a { display: block; padding: 1rem 1.5rem; font-size: 1.08rem; }
    .nav-links a::after { display: none; }
    .nav-links .nav-cta { margin: 1rem 1.5rem 1.2rem; text-align: center; border-radius: 10px; }
}

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 1rem 2.1rem; border-radius: 10px;
    font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer;
    border: none; transition: all .3s cubic-bezier(.4,0,.2,1);
    min-height: 52px;
}
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 8px 22px rgba(6,199,85,.32); }
.btn-line:hover { background: var(--line-green-deep); transform: translateY(-2px); }
.btn-gold { background: var(--gold-gradient); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(169,135,92,.35); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--gold-light); border: 1px solid rgba(197,168,128,.7); }
.btn-ghost:hover { background: rgba(197,168,128,.12); }
.btn-navy { background: var(--navy); color: var(--gold-light); border: 1px solid rgba(197,168,128,.5); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- 區塊共通 ---------- */
section { padding: 5.5rem 1.5rem; }
.container { max-width: 1140px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }

.section-title { text-align: center; margin-bottom: 3.2rem; }
.eyebrow {
    display: inline-block; color: var(--gold-deep);
    font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.section-title h2 {
    font-family: var(--font-display); font-size: 2.1rem; color: var(--navy);
    font-weight: 700; letter-spacing: .5px; line-height: 1.5;
    position: relative; display: inline-block; padding-bottom: 1rem;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 64px; height: 3px; background: var(--gold-gradient); border-radius: 2px;
}
.section-title p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 10.5rem 1.5rem 6.5rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(197,168,128,.16) 0%, transparent 45%),
        radial-gradient(circle at 82% 0%, rgba(197,168,128,.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 25%, var(--navy-ink) 0%, var(--navy) 55%, var(--navy-deep) 100%);
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(115deg, rgba(197,168,128,.05) 0, rgba(197,168,128,.05) 1px, transparent 1px, transparent 68px);
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(197,168,128,.12); color: var(--gold-light);
    border: 1px solid rgba(197,168,128,.55);
    padding: .45rem 1.4rem; border-radius: 50px; font-size: .92rem; letter-spacing: 1px;
    margin-bottom: 1.8rem;
}
.hero h1 {
    font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
    line-height: 1.5; letter-spacing: 1.5px; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slogan {
    font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light);
    letter-spacing: 2px; margin-bottom: 1.4rem;
}
.hero-lead { font-size: 1.1rem; color: #cbd5e1; max-width: 720px; margin: 0 auto 2.2rem; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.hero-tags span {
    font-size: .95rem; color: var(--gold-light);
    border: 1px solid rgba(197,168,128,.4); background: rgba(255,255,255,.04);
    padding: .4rem 1.1rem; border-radius: 30px;
}

/* 子頁 Hero（較矮） */
.page-hero { padding: 9.5rem 1.5rem 4.5rem; }
.page-hero h1 { font-size: 2.3rem; }

/* ---------- 情境卡 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.6rem; }
.scenario {
    background: var(--paper); border-radius: var(--radius); padding: 2rem 1.8rem;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.scenario:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.scenario .icon {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream); border: 1px solid var(--gold-light); color: var(--gold-deep);
    font-size: 1.3rem; margin-bottom: 1.1rem;
}
.scenario h3 { font-family: var(--font-display); font-size: 1.22rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.55; }
.scenario p { color: var(--ink-soft); font-size: .98rem; }
.scenario-foot { text-align: center; margin-top: 2.6rem; color: var(--ink-soft); font-size: 1.05rem; }
.scenario-foot strong { color: var(--navy); }

/* ---------- 整合平台圖 ---------- */
.hub-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.hub-copy h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); line-height: 1.55; margin-bottom: 1rem; }
.hub-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.hub-copy .note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: .9rem; }
.hub {
    position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; margin: 0 auto;
}
.hub::before {
    content: ''; position: absolute; inset: 13%; border-radius: 50%;
    border: 1px dashed rgba(169,135,92,.55);
}
.hub-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 36%; aspect-ratio: 1/1; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #1d4580, var(--navy-deep));
    border: 2px solid var(--gold);
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    box-shadow: 0 18px 40px rgba(15,44,89,.3);
}
.hub-center strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-light); }
.hub-center span { font-size: .78rem; color: #cbd5e1; letter-spacing: 1px; }
.hub-node {
    position: absolute; transform: translate(-50%,-50%);
    width: 24%; aspect-ratio: 1/1; border-radius: 50%;
    background: var(--paper); border: 1px solid var(--gold-light);
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: .3rem;
}
.hub-node i { color: var(--gold-deep); font-size: 1.15rem; margin-bottom: .2rem; }
.hub-node b { font-size: .86rem; color: var(--navy); line-height: 1.3; }
.hub-node small { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.hub-node.self { background: var(--cream); border: 2px solid var(--gold); }

/* ---------- 四層分析 ---------- */
.layers { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; counter-reset: layer; }
.layer {
    background: var(--paper); border-radius: var(--radius); padding: 2rem 1.5rem 1.8rem;
    border-top: 4px solid var(--gold); box-shadow: var(--shadow); position: relative;
}
.layer-num {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1;
    color: rgba(169,135,92,.35); margin-bottom: .6rem;
}
.layer h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: .2rem; }
.layer .layer-q { color: var(--gold-deep); font-weight: 700; font-size: .95rem; margin-bottom: .7rem; }
.layer p { color: var(--ink-soft); font-size: .94rem; }
.layer:first-child { border-top-color: var(--navy); }
.layers-note { text-align: center; margin-top: 2rem; color: var(--ink-soft); }
.layers-note strong { color: var(--navy); }

/* ---------- 健診 ---------- */
.checkup {
    background:
        radial-gradient(circle at 85% 10%, rgba(197,168,128,.14) 0%, transparent 45%),
        linear-gradient(135deg, #12284d 0%, var(--navy) 100%);
    color: #fff;
}
.checkup .section-title h2 { color: #fff; }
.checkup .section-title p { color: #cbd5e1; }
.checkup .eyebrow { color: var(--gold); }
.quiz {
    max-width: 780px; margin: 0 auto;
    background: rgba(255,255,255,.04); border: 1px solid rgba(197,168,128,.3);
    border-radius: 18px; padding: 2.2rem 2rem;
}
.quiz-progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 6px; margin-bottom: 1.6rem; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold-gradient); transition: width .4s ease; }
.quiz-count { font-size: .9rem; color: var(--gold); letter-spacing: 1px; margin-bottom: .4rem; }
.quiz-dim { display: inline-block; font-size: .8rem; color: var(--gold-light); border: 1px solid rgba(197,168,128,.45); padding: .1rem .7rem; border-radius: 20px; margin-left: .5rem; }
.quiz-q { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.6; margin-bottom: 1.6rem; }
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.quiz-options button {
    min-height: 56px; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
    background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(197,168,128,.45);
    transition: all .25s ease; font-family: inherit;
}
.quiz-options button:hover, .quiz-options button:focus-visible { background: rgba(197,168,128,.22); border-color: var(--gold); outline: none; }
.quiz-back { margin-top: 1.2rem; background: none; border: none; color: #94a3b8; cursor: pointer; font-size: .92rem; font-family: inherit; }
.quiz-back:hover { color: var(--gold-light); }
.quiz-result h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); margin-bottom: .6rem; }
.quiz-result .summary { color: #e2e8f0; margin-bottom: 1.4rem; }
.quiz-result ul { list-style: none; display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.quiz-result li {
    background: rgba(255,255,255,.05); border-left: 3px solid var(--gold);
    padding: .9rem 1.1rem; border-radius: 6px; font-size: .98rem; color: #e2e8f0;
}
.quiz-result li b { color: var(--gold-light); display: block; margin-bottom: .2rem; }
.quiz-result .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.quiz-disclaimer { text-align: center; color: #94a3b8; font-size: .85rem; margin-top: 1.4rem; max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; position: relative; }
.step {
    background: var(--bg); border-radius: 12px; padding: 1.8rem 1.3rem;
    border-left: 4px solid var(--gold); box-shadow: var(--shadow);
}
.step-no {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: var(--gold-light); font-weight: 700; margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy); margin-bottom: .5rem; }
.step p { font-size: .93rem; color: var(--ink-soft); }
.fee-note {
    margin-top: 2.4rem; background: var(--cream); border: 1px solid var(--gold-light);
    border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.fee-note h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; margin-bottom: .8rem; }
.fee-note ul { list-style: none; display: grid; gap: .5rem; }
.fee-note li { display: flex; gap: .7rem; color: var(--ink-soft); font-size: .97rem; }
.fee-note li i { color: var(--gold-deep); margin-top: .45rem; font-size: .8rem; }

/* ---------- 故事卡 ---------- */
.story {
    background: var(--paper); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.story-head { background: var(--navy); color: var(--gold-light); padding: 1rem 1.5rem; font-size: .88rem; letter-spacing: 1px; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.story-body { padding: 1.6rem 1.5rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.story h3 { font-family: var(--font-display); font-size: 1.22rem; color: var(--navy); line-height: 1.55; margin-bottom: .8rem; }
.story p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }
.story .lesson {
    margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line);
    font-family: var(--font-display); color: var(--navy); font-weight: 600; font-size: 1rem;
}
.story .lesson::before { content: '啟示｜'; color: var(--gold-deep); }
.stories-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.6rem; }

/* ---------- 關於 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 3.2rem; align-items: start; }
.about-photo {
    border-radius: var(--radius); overflow: hidden; position: relative;
    box-shadow: 0 20px 40px rgba(15,44,89,.16); border: 1px solid rgba(197,168,128,.35);
    aspect-ratio: 4 / 5; background: #e2e8f0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(197,168,128,.55); border-radius: 10px; pointer-events: none; }
.about-copy h2 { font-family: var(--font-display); font-size: 1.95rem; color: var(--navy); margin-bottom: .2rem; }
.about-role { color: var(--gold-deep); font-weight: 700; margin-bottom: 1.4rem; }
.about-copy p { color: #334155; margin-bottom: 1.1rem; }
.about-lead { font-size: 1.12rem; color: var(--navy) !important; font-weight: 500; border-left: 3px solid var(--gold); padding-left: 1rem; }
.creds { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.6rem; }
.creds span {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(180deg, #fdfbf7, #f8f1e4); border: 1px solid rgba(197,168,128,.55);
    color: var(--navy); font-size: .88rem; font-weight: 700; padding: .4rem .95rem; border-radius: 30px;
}
.creds i { color: var(--gold-deep); }
.quote {
    border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.3rem; margin: 1.6rem 0;
    font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; font-weight: 500;
    background: linear-gradient(90deg, rgba(197,168,128,.1), transparent 70%);
}
.moments { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 2.6rem; }
.moment { background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.moment img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.moment figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--navy); font-weight: 600; }

/* ---------- 承諾 ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
.promise { text-align: center; padding: 2.2rem 1.6rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--gold-light); box-shadow: var(--shadow); }
.promise .en { display: block; font-size: .78rem; letter-spacing: 3px; color: var(--gold-deep); text-transform: uppercase; margin-bottom: .4rem; }
.promise h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: .7rem; }
.promise p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq details {
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
    list-style: none; cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.5rem; position: relative;
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--gold-deep); font-weight: 400; transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.3rem; color: var(--ink-soft); }

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 2.4rem; align-items: start; }
.contact-card {
    background: var(--navy); color: #fff; border-radius: 16px; padding: 2.4rem 2rem;
    border: 1px solid rgba(197,168,128,.35);
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .6rem; color: var(--gold-light); }
.contact-card p { color: #cbd5e1; margin-bottom: 1.4rem; }
.contact-card .btn { width: 100%; margin-bottom: .9rem; }
.contact-card small { display: block; color: #94a3b8; font-size: .86rem; margin-top: .6rem; }
.form { background: var(--paper); border-radius: 16px; padding: 2.2rem 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.35rem; margin-bottom: 1.2rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: .35rem; }
.form label .req { color: #b45309; }
.form input, .form select, .form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem 1rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); font-weight: 400; }
.form .consent input { width: auto; margin-top: .45rem; }
.form .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
    background: radial-gradient(circle at 50% 0%, rgba(197,168,128,.08) 0%, transparent 50%), var(--navy-deep);
    color: #cbd5e1; padding: 3.6rem 1.5rem 2.2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer-grid h4 { color: var(--gold-light); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; display: grid; gap: .35rem; }
.footer-grid a { text-decoration: none; color: #cbd5e1; font-size: .95rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-slogan { font-family: var(--font-display); color: var(--gold-light); font-size: 1.05rem; margin: .8rem 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; font-size: .82rem; color: #94a3b8; line-height: 1.8; }

/* ---------- 懸浮 LINE ---------- */
.float-line {
    position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 900;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--line-green); color: #fff; text-decoration: none; font-weight: 700;
    padding: .85rem 1.3rem; border-radius: 40px; box-shadow: 0 10px 26px rgba(0,0,0,.25);
    font-size: 1rem;
}
.float-line i { font-size: 1.4rem; }
.float-line:hover { background: var(--line-green-deep); }

/* ---------- 合作夥伴頁專用 ---------- */
.value-card { background: var(--paper); padding: 2.4rem 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.value-card .icon { font-size: 2.1rem; color: var(--gold-deep); margin-bottom: 1.1rem; }
.value-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: .8rem; }
.value-card p { color: var(--ink-soft); font-size: .98rem; }
.partner-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.partner-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(197,168,128,.45);
    color: var(--gold-light); padding: .75rem 1.6rem; border-radius: 30px; font-size: 1rem;
}
.partner-tag.recruiting { border-style: dashed; color: #cbd5e1; }
.alliance {
    background: radial-gradient(circle at 85% 15%, rgba(197,168,128,.14) 0%, transparent 45%), linear-gradient(135deg, #1e293b 0%, var(--navy) 100%);
    color: #fff; border-radius: 18px; padding: 3.6rem 2rem; text-align: center; border: 1px solid rgba(197,168,128,.25);
}
.alliance h2 { font-family: var(--font-display); font-size: 1.9rem; }
.alliance p { color: #cbd5e1; margin-top: .6rem; }
.alliance small { display: block; color: #94a3b8; margin-top: 1.4rem; font-size: .88rem; }
.commit-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; }
.commit-list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--navy); font-weight: 500; font-size: 1.06rem; }
.commit-list i { color: #10b981; font-size: 1.3rem; margin-top: .3rem; }
.commit-card { background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%); border: 1px solid var(--gold); border-radius: 16px; padding: 3rem 2.4rem; box-shadow: var(--shadow); position: relative; }
.commit-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(197,168,128,.35); border-radius: 10px; pointer-events: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .layers { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .grid-3, .promises { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hub-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 16.5px; }
    section { padding: 4rem 1rem; }
    .hero { padding: 8rem 1rem 4.5rem; }
    .page-hero { padding: 7.5rem 1rem 3.5rem; }
    .hero h1 { font-size: 1.85rem; letter-spacing: .5px; }
    .page-hero h1 { font-size: 1.7rem; }
    .hero-slogan { font-size: 1.08rem; letter-spacing: 1px; }
    .hero-lead { font-size: 1rem; }
    .hero-actions .btn { width: 100%; }
    .section-title h2 { font-size: 1.6rem; }
    .grid-3, .grid-2, .promises, .layers, .steps, .moments { grid-template-columns: 1fr; }
    .quiz { padding: 1.6rem 1.2rem; }
    .quiz-q { font-size: 1.15rem; }
    .quiz-options { grid-template-columns: 1fr; }
    .form, .contact-card { padding: 1.8rem 1.2rem; }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hub-node b { font-size: .72rem; }
    .hub-node small { display: none; }
    .hub-node i { font-size: .95rem; }
    .hub-center strong { font-size: 1.05rem; }
    .float-line span { display: none; }
    .float-line { padding: .9rem; }
    .brand-sub { font-size: .7rem; letter-spacing: .5px; }
    .commit-card { padding: 2rem 1.3rem; }
}

/* ---------- LINE QR code（只在電腦版顯示；手機直接點按鈕即可） ---------- */
.qr-box {
    display: flex; align-items: center; gap: 1.1rem;
    background: #fff; border-radius: 12px; padding: .9rem 1.1rem; margin: .4rem 0 1rem;
    border: 1px solid rgba(197,168,128,.5); text-align: left;
}
.qr-box img { width: 132px; height: 132px; flex-shrink: 0; }
.qr-box b { display: block; color: var(--line-green-deep); font-size: 1rem; margin-bottom: .2rem; }
.qr-box span { display: block; color: var(--navy); font-weight: 700; font-size: .95rem; }
.qr-box small { display: block; color: var(--muted) !important; font-size: .82rem !important; margin-top: .3rem !important; line-height: 1.6; }
.qr-box-light { max-width: 460px; margin: 2rem auto 0; box-shadow: var(--shadow); }
@media (max-width: 900px), (pointer: coarse) { .qr-box { display: none; } }

/* ---------- LINE QR code 彈窗（電腦版） ---------- */
.line-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(8, 27, 58, 0.72); backdrop-filter: blur(4px);
    display: grid; place-items: center; padding: 1.5rem;
}
.line-modal[hidden] { display: none; }
.line-modal-card {
    position: relative; background: #fff; border-radius: 18px; max-width: 400px; width: 100%;
    padding: 2.2rem 2rem 1.8rem; text-align: center;
    border: 1px solid var(--gold); box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.line-modal-close {
    position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer;
}
.line-modal-close:hover, .line-modal-close:focus-visible { border-color: var(--gold); color: var(--navy); outline: none; }
.line-modal-eyebrow { color: var(--line-green-deep); font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.line-modal-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.4rem; margin-bottom: 1rem; }
.line-modal-card img { width: 240px; height: 240px; margin: 0 auto .6rem; }
.line-modal-name { color: var(--navy); font-weight: 700; margin-bottom: .4rem; }
.line-modal-hint { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; margin-bottom: 1.1rem; }
.line-modal-alt { color: var(--muted); font-size: .86rem; }
.line-modal-alt:hover { color: var(--navy); }

/* ---------- 整合圖：核心專業 vs 依需求連結 ---------- */
.hub-node.extended { border: 1.5px dashed var(--gold-deep); background: rgba(255,255,255,.75); box-shadow: none; }
.hub-node.extended b { color: var(--ink-soft); }
.hub-node.extended i { color: var(--muted); }
.hub-legend { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1rem; display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hub-legend span { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; }
.hub-legend .solid { border: 1.5px solid var(--gold-light); background: #fff; box-shadow: var(--shadow); }
.hub-legend .dashed { border: 1.5px dashed var(--gold-deep); margin-left: .6rem; }
.hub-wrap > div:last-child { min-width: 0; }

/* ---------- 您會拿到什麼 ---------- */
.deliver { margin-top: 2.6rem; }
.deliver h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.35rem; text-align: center; margin-bottom: 1.4rem; }
.deliver-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.deliver-item {
    background: var(--paper); border: 1px solid var(--gold-light); border-radius: var(--radius);
    padding: 1.5rem 1.3rem; text-align: center;
}
.deliver-item i { font-size: 1.6rem; color: var(--gold-deep); margin-bottom: .7rem; display: block; }
.deliver-item b { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: .4rem; }
.deliver-item p { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 900px) { .deliver-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .deliver-grid { grid-template-columns: 1fr; } }

/* ---------- 承諾區補充說明 ---------- */
.promise-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.6rem; }

/* ---------- 表單送出完成 ---------- */
.form-done { text-align: center; }
.form-done h3 { color: var(--line-green-deep); }
.form-done p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.form-done .btn { width: auto; }

/* =========================================================
   照片背景（2026-10 新增）
   每張照片都疊一層深藍遮罩，確保白字、金字在任何照片上都看得清楚
   ========================================================= */

/* 首頁 Hero：人物在右，文字靠左 */
.hero.hero-photo {
    background:
        linear-gradient(90deg, rgba(8,27,58,.95) 0%, rgba(8,27,58,.88) 34%, rgba(8,27,58,.55) 52%, rgba(8,27,58,.15) 78%, rgba(8,27,58,.08) 100%),
        url("images_files/hero-web.jpg") 70% center / cover no-repeat,
        var(--navy-deep);
    text-align: left;
    min-height: 660px;
    display: flex; align-items: center;
}
.hero.hero-photo::before { display: none; }
.hero.hero-photo .hero-inner { max-width: 1140px; width: 100%; }
.hero.hero-photo .hero-inner > * { max-width: 560px; }
.hero.hero-photo .hero-lead { font-size: 1.05rem; }
.hero.hero-photo .hero-lead { margin-left: 0; }
.hero.hero-photo .hero-actions, .hero.hero-photo .hero-tags { justify-content: flex-start; }
.hero.hero-photo h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* 老有所安 情感帶：高級養生村 */
.band-photo {
    position: relative; padding: 0;
    min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center;
    background:
        radial-gradient(ellipse 50% 55% at 50% 50%, rgba(8,27,58,.7) 0%, rgba(8,27,58,.3) 70%, rgba(8,27,58,.15) 100%),
        url("images_files/band-village-web.jpg") center 60% / cover no-repeat,
        var(--navy);
}
.band-inner { padding: 3rem 1.5rem; }
.band-quote {
    font-family: var(--font-display); color: #fff; font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.2rem); letter-spacing: .35em; text-indent: .35em;
    text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.band-sub { color: var(--gold-light); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: .8rem; letter-spacing: .1em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* 健診區：一家人坐下來談 */
.checkup {
    background:
        linear-gradient(180deg, rgba(10,30,62,.9) 0%, rgba(15,44,89,.86) 100%),
        url("images_files/checkup-bg-web.jpg") center / cover no-repeat,
        var(--navy);
}

/* 故事卡圖片 */
.story-img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }

/* 聯絡區照片標頭：人物在右，文字靠左 */
.contact-section { padding-top: 0; }
.contact-banner {
    margin-bottom: 3rem;
    background:
        linear-gradient(90deg, rgba(8,27,58,.9) 0%, rgba(8,27,58,.7) 40%, rgba(8,27,58,.1) 75%),
        url("images_files/contact-bg-web.jpg") 75% center / cover no-repeat,
        var(--navy);
    min-height: 380px; display: flex; align-items: center;
}
.contact-banner .container { width: 100%; }
.contact-banner-text { max-width: 660px; padding: 3.5rem 0; }
.contact-banner-text .eyebrow { color: var(--gold); }
.contact-banner-text h2 { font-family: var(--font-display); color: #fff; font-size: 2.1rem; line-height: 1.5; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.contact-banner-text p { color: var(--gold-light); margin-top: .6rem; font-size: 1.08rem; }

/* 合作夥伴頁 Hero：專業人士會議 */
.hero.hero-photo-partners {
    background:
        linear-gradient(180deg, rgba(8,27,58,.86) 0%, rgba(8,27,58,.74) 100%),
        url("images_files/partners-hero-web.jpg") center / cover no-repeat,
        var(--navy-deep);
}
.hero.hero-photo-partners::before { display: none; }

/* 手機：遮罩加深、文字置中，取景對準人物 */
@media (max-width: 760px) {
    .hero.hero-photo {
        background:
            linear-gradient(180deg, rgba(8,27,58,.86) 0%, rgba(8,27,58,.72) 55%, rgba(8,27,58,.55) 100%),
            url("images_files/hero-web.jpg") 68% center / cover no-repeat,
            var(--navy-deep);
        text-align: center; min-height: 0;
    }
    .hero.hero-photo .hero-inner > * { max-width: none; }
    .hero.hero-photo .hero-actions, .hero.hero-photo .hero-tags { justify-content: center; }
    .band-photo { min-height: 300px; background-position: center, 38% center, center; }
    .band-quote { letter-spacing: .2em; text-indent: .2em; }
    .contact-banner {
        background:
            linear-gradient(180deg, rgba(8,27,58,.85) 0%, rgba(8,27,58,.6) 100%),
            url("images_files/contact-bg-web.jpg") 72% center / cover no-repeat,
            var(--navy);
        min-height: 300px; text-align: center;
    }
    .contact-banner-text { max-width: none; padding: 2.5rem 0; }
    .contact-banner-text h2 { font-size: 1.55rem; }
}

/* =========================================================
   2026-10 重新定位新增：情境卡 LINE 關鍵字、三大服務、長壽時代
   ========================================================= */
.scenario { display: flex; flex-direction: column; }
.scenario p { flex: 1; }
.scenario-cta {
    align-self: flex-start; margin-top: 1.1rem;
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .92rem; font-weight: 700; color: var(--line-green-deep);
    border: 1px solid rgba(6,199,85,.45); background: rgba(6,199,85,.06);
    padding: .4rem .95rem; border-radius: 999px; text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.scenario-cta:hover, .scenario-cta:focus-visible { background: var(--line-green); color: #fff; outline: none; }

.layers-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.layer-list { list-style: none; display: grid; gap: .55rem; }
.layer-list li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.layer-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.longevity { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 3rem; align-items: center; }
.longevity-copy h2 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1.5; margin: .3rem 0 1rem; }
.longevity-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.longevity-copy strong { color: var(--navy); }
.longevity-stats { display: grid; gap: 1rem; }
.stat {
    display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.4rem; box-shadow: var(--shadow);
}
.stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-deep); line-height: 1.2; }
.stat span { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; }
.stat-strong { background: var(--navy); border-color: var(--navy); }
.stat-strong b { color: var(--gold-light); }
.stat-strong span { color: #e2e8f0; }

@media (max-width: 1024px) {
    .layers-3 { grid-template-columns: 1fr; }
    .longevity { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .longevity-copy h2 { font-size: 1.6rem; }
    .stat { grid-template-columns: 1fr; gap: .2rem; }
}

/* 2026-10 排版微調：避免標題與段落最後只剩一兩個字 */
.nb { display: inline-block; }
p, li, summary { text-wrap: pretty; }
.stat { grid-template-columns: 8.5rem 1fr; }
@media (max-width: 640px) { .stat { grid-template-columns: 1fr; } }
