/* ============================================================
   橋語翻譯 — 家庭看護頁（family/index.html）專用樣式
   依 docs/橋語 LINE 雙向翻譯服務首頁.png 還原；載入於 landing-v2.css 之後。
   header / footer / .btn / .phone / .msg / .bubble 沿用 landing-v2.css（原版），
   本檔只新增 .f-* 元件與 .page-family 範圍內的覆寫，不影響首頁。
   尺寸換算：mockup 寬 1024 → 1280px viewport（×1.25）。
   ============================================================ */

.page-family {
  /* palette — sampled from the family mockup */
  --f-ink: #071B36;          /* 標題 */
  --f-text: #46506A;         /* 卡片內文 */
  --f-green: #07705A;        /* icon、勾勾、步驟數字 */
  --f-teal: #045256;         /* 人物標籤 */
  --f-band: #004A5A;         /* 最終 CTA 底色 */
  --f-pro: #03625A;          /* Pro 卡片標頭 */
  --f-lime: #A8EF42;         /* 標題底線 */
  --f-arrow: #2DB585;
  --f-mint: #EEF6EE;         /* hero 左側 */
  --f-beige: #FBF6F0;        /* 痛點區 */
  --f-res: #E6F0EA;          /* 資源區 */
  --f-free-head: #E9F2EE;
  --f-badge: #FCE674;
  --f-chat: #A2BADC;         /* LINE 聊天背景 */
  --f-chat-head: #182C4C;
  --f-me: #D0F8AC;
  --f-line-soft: #DCE6E1;

  background: #FCFDFC;
}
/* 主內容欄寬依 mockup（約 1172px）；header / footer 仍用原版 1200px */
.page-family main .container { max-width: calc(1172px + var(--gutter) * 2); }

.f-h2 { font-size: var(--f-h2, 32px); font-weight: 900; line-height: 1.3; color: var(--f-ink); letter-spacing: .01em; }
.f-h2-ul::after { content: ""; display: block; width: 110px; height: 7px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, #9BE33A, var(--f-lime)); }
.f-ic { color: var(--f-green); }

/* ---------- buttons（在原版 .btn 之上微調尺寸） ---------- */
.f-btn-hero { min-height: 50px; padding: 8px 26px 8px 18px; font-size: 19px; }
.f-btn-hero .line-badge { width: 34px; height: 32px; }
.f-btn-ghost { min-height: 50px; padding: 8px 26px 8px 20px; background: #fff; color: var(--f-ink); border: 2px solid #2B3B55; font-size: 18px; box-shadow: 0 6px 16px rgba(11, 35, 80, .06); }
.f-btn-ghost .msi { font-size: 28px; }

/* ============================================================
   01 HERO
   ============================================================ */
.f-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--f-mint) 0%, #F3F7F1 36%, #EDE7DD 66%, #E7DFD2 100%); }
.f-hero-inner { position: relative; min-height: 421px; padding-top: 33px; padding-bottom: 28px; }
.f-hero-copy { position: relative; z-index: 2; max-width: 560px; padding-left: 22px; }
.f-tag { display: inline-block; padding: 3px 18px; border-radius: 999px; background: #BEE4DA; color: #0E4A3C; font-size: 16px; font-weight: 800; line-height: 24px; }
.f-hero h1 { margin-top: 14px; font-size: clamp(30px, 3.44vw, 44px); font-weight: 900; line-height: 1.2; color: var(--f-ink); letter-spacing: .02em; }
.f-hl { position: relative; white-space: nowrap; }
.f-hl::after { content: ""; position: absolute; left: 0; right: 2%; bottom: -6px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #2FBF4A, #8EDB5A); z-index: -1; }
.f-lead { margin-top: 16px; font-size: clamp(17px, 1.64vw, 21px); line-height: 1.45; font-weight: 500; color: var(--f-ink); }
.f-hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; }
.f-hero-cta .f-btn-hero { min-width: 248px; }
.f-hero-points { display: flex; flex-wrap: wrap; gap: 6px 10px; width: max-content; max-width: calc(100vw - var(--gutter) * 2); margin-top: 32px; margin-left: -6px; }
.f-hero-points li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 700; color: var(--f-ink); }
.f-hero-points .msi { font-size: 18px; color: #2DBB45; }

/* 照片：右緣貼著手機，左右與下緣淡出 */
.f-hero-photo { position: absolute; z-index: 1; top: 0; bottom: 0; right: calc(var(--gutter) + 282px); width: clamp(260px, 28.8vw, 369px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 94%, transparent 100%); }
.f-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

/* ---------- 家庭版手機（以原版 .phone 為基礎） ---------- */
.f-phone { padding: 7px; border-radius: 44px; }
.f-phone .phone-island { top: 15px; width: 78px; height: 22px; margin-left: -39px; }
.f-status { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 4px 22px 0 30px; border: 3px solid #0B0F17; border-bottom: 0; border-radius: 37px 37px 0 0; background: var(--f-chat-head); color: #fff; font-size: 12.5px; font-weight: 700; }
.f-status-icons { display: inline-flex; gap: 3px; }
.f-status-icons .msi { font-size: 15px; }
.f-phone .phone-bar { padding: 4px 12px 10px; border-radius: 0; border-top: 0; background: var(--f-chat-head); font-size: 15px; }
.f-phone .phone-bar .msi { font-size: 20px; }
.f-phone .phone-bar-icons { gap: 9px; }
.f-phone .chat { gap: 9px; padding: 12px 6px 20px 8px; background: var(--f-chat); }
.f-phone .msg { grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 5px; }
.f-phone .avatar { width: 30px; height: 30px; }
.f-phone .avatar .msi { font-size: 20px; }
.f-av-photo { object-fit: cover; background: #DDE6F0; }
.f-av-bot { background: #fff; color: var(--f-green); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.f-phone .msg-name { margin-bottom: 2px; font-size: 11px; font-weight: 700; color: #22324E; }
.f-phone .bubble { padding: 7px 11px; border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.42; font-weight: 500; color: #0E1A2E; background: #fff; }
.f-phone .bubble.f-me { background: var(--f-me); }
.f-tr { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: #3A6A58; }
.f-phone .msg-time { font-size: 9.5px; color: #33476A; }
.f-mine { display: flex; justify-content: flex-end; align-items: flex-end; gap: 6px; }
.f-mine .bubble { border-radius: 14px 4px 14px 14px; }

.f-hero-phone { position: absolute; z-index: 3; top: 15px; right: calc(var(--gutter) + 2px); width: 280px; }

/* ============================================================
   02 痛點
   ============================================================ */
.f-pain { --f-h2: 34px; background: var(--f-beige); padding: 31px 0 26px; }
.f-pain-grid { display: grid; grid-template-columns: 298px repeat(3, minmax(0, 1fr)); gap: 22px; align-items: center; }
.f-pain-grid .f-h2 { padding-left: 2px; }
.f-pain-card { display: flex; gap: 16px; align-items: flex-start; min-height: 112px; padding: 20px 4px 18px 24px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(80, 60, 30, .06); }
.f-pain-card .f-ic { font-size: 30px; margin-top: 2px; }
.f-pain-card h3 { font-size: 17px; font-weight: 900; line-height: 1.4; color: var(--f-ink); }
.f-pain-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; letter-spacing: -.01em; color: var(--f-text); }

/* ============================================================
   03 雙向翻譯展示
   ============================================================ */
.f-demo { --f-h2: 32px; position: relative; overflow: hidden; min-height: 346px; background: radial-gradient(60% 90% at 78% 100%, #E9F4EE 0%, rgba(233, 244, 238, 0) 70%), linear-gradient(180deg, #FDFEFE 0%, #F6FAF8 100%); }
.f-demo-grid { position: relative; display: grid; grid-template-columns: 345px minmax(0, 1fr); min-height: 346px; }
.f-demo-copy { padding-bottom: 14px; }
.f-demo-copy { padding-top: 32px; }
.f-ul { position: relative; white-space: nowrap; }
.f-ul::after { content: ""; position: absolute; left: 0; right: 8%; bottom: -4px; height: 6px; border-radius: 3px; background: var(--f-lime); z-index: -1; }
.f-demo-sub { margin-top: 14px; font-size: 14.4px; line-height: 1.56; color: #1F2B45; font-weight: 500; }
.f-demo-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.f-demo-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--f-ink); line-height: 1.35; }
.f-demo-list small { font-size: 11.5px; font-weight: 500; color: var(--f-text); }
.f-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--f-green); color: #fff; flex: none; }
.f-dot .msi { font-size: 16px; }
.f-note { display: flex; gap: 4px; align-items: flex-start; margin-top: 8px; font-size: 11px; line-height: 1.5; color: #6A7489; }
.f-note .msi { font-size: 14px; margin-top: 1px; }

/* 舞台：座標換算自 mockup（x − 328）× 1.25 */
.f-stage { position: relative; height: 100%; }
.f-person { position: absolute; top: 81px; width: 124px; text-align: center; }
.f-person-l { left: 6px; }
.f-person-r { left: 700px; }
.f-portrait { width: 124px; height: 124px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #DDF0E8, 0 10px 24px rgba(10, 60, 50, .12); overflow: hidden; }
.f-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.f-pill { position: relative; z-index: 1; display: inline-block; margin-top: -6px; padding: 2px 14px; border-radius: 999px; background: var(--f-teal); color: #fff; font-size: 13px; font-weight: 800; line-height: 22px; white-space: nowrap; box-shadow: 0 4px 10px rgba(4, 82, 86, .25); }
.f-say { position: absolute; z-index: 2; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid #E1ECE7; box-shadow: 0 10px 24px rgba(10, 60, 50, .10); font-size: 16.5px; font-weight: 600; line-height: 1.5; color: var(--f-ink); }
.f-say-l { left: 121px; top: 154px; }
.f-say-l::before { content: ""; position: absolute; left: -9px; top: 22px; width: 16px; height: 16px; background: #fff; border-left: 1px solid #E1ECE7; border-bottom: 1px solid #E1ECE7; transform: rotate(45deg); }
.f-say-r { left: 576px; top: 166px; font-size: 18px; line-height: 1.4; }
.f-say-r::before { content: ""; position: absolute; right: -9px; top: 24px; width: 16px; height: 16px; background: #fff; border-right: 1px solid #E1ECE7; border-top: 1px solid #E1ECE7; transform: rotate(45deg); }
.f-arrow { position: absolute; color: var(--f-arrow); }
.f-arrow-l { left: 213px; top: 113px; width: 68px; height: 40px; }
.f-arrow-r { left: 568px; top: 262px; width: 66px; height: 36px; }
.f-demo-phone { position: absolute; z-index: 1; left: 300px; top: 9px; width: 250px; }
.f-demo-phone .chat { padding-bottom: 40px; }
.f-demo-phone .bubble { font-size: 12.5px; padding: 6px 9px; }
.f-demo-phone .f-status { height: 34px; font-size: 11.5px; }
.f-demo-phone .phone-bar { font-size: 13px; padding: 2px 10px 8px; }
.f-demo-phone .phone-bar .msi { font-size: 18px; }
.f-demo-phone .phone-bar-icons { gap: 6px; }
.f-demo-phone .chat { padding-inline: 6px 3px; }
.f-demo-phone .msg { column-gap: 4px; }

/* 「看翻譯示範」重播：訊息依序出現 */
.f-replay .f-step { animation: f-pop .45s ease .6s both; }
.f-replay .f-step:nth-child(2) { animation-delay: 1.5s; }
.f-replay .f-step:nth-child(3) { animation-delay: 2.5s; }
.f-replay .f-step:nth-child(4) { animation-delay: 3.4s; }
@keyframes f-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ============================================================
   04 使用情境
   ============================================================ */
.f-row { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 0; align-items: center; }
.f-scenes { --f-h2: 32px; padding: 15px 0 12px; }
.f-scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.f-scene { position: relative; min-height: 182px; border-radius: 12px; overflow: hidden; background: #F8F4EE; box-shadow: 0 8px 22px rgba(40, 50, 40, .10); }
.f-scene picture { position: absolute; left: 0; right: 0; top: 0; height: 122px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.f-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.f-scene-cap { position: relative; margin-top: 102px; padding: 0 12px 14px 61px; }
.f-scene-ic { position: absolute; left: 11px; top: -9px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--f-green); box-shadow: 0 4px 10px rgba(0, 0, 0, .10); }
.f-scene-ic .msi { font-size: 24px; }
.f-scene h3 { font-size: 17px; font-weight: 900; line-height: 1.3; color: var(--f-ink); }
.f-scene p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--f-text); }

/* ============================================================
   05 五步驟
   ============================================================ */
.f-steps { --f-h2: 29px; padding: 16px 0 19px; }
.f-step-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.f-step-card { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 128px; padding: 12px 5px 12px; border-radius: 14px; background: #fff; border: 1px solid #ECEFEF; box-shadow: 0 6px 16px rgba(20, 40, 40, .07); text-align: center; }
.f-step-card + .f-step-card::before { content: "chevron_right"; position: absolute; left: -30px; top: 50%; width: 36px; margin-top: -18px; font-family: "Material Symbols Outlined"; font-size: 36px; line-height: 1; color: #8A9096; text-align: center; height: 36px; overflow: hidden; white-space: nowrap; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; }
.no-icons .f-step-card + .f-step-card::before { visibility: hidden; }
.f-num { position: absolute; left: 12px; top: 9px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--f-green); color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1; }
.f-step-ic { display: grid; place-items: center; height: 38px; color: var(--f-green); }
.f-step-ic .msi { font-size: 38px; }
.f-step-ic .msi-fill { font-size: 40px; }
.f-step-line { width: 38px; border-radius: 50%; background: #1FB43A; }
.f-step-line .line-badge { width: 26px; height: 24px; }
.f-step-line .line-badge .line-word { fill: #1FB43A; }
.f-step-card h3 { margin-top: 6px; font-size: 16px; font-weight: 900; line-height: 1.35; color: var(--f-ink); }
.f-step-card p { margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--f-text); }
.f-step-card p b { font-weight: 800; color: var(--f-ink); }

/* ============================================================
   06 方案 + 07 FAQ
   ============================================================ */
.f-plans { --f-h2: 30px; padding: 12px 0 13px; }
.f-plan-grid { display: grid; grid-template-columns: minmax(0, 229fr) minmax(0, 243fr) minmax(0, 271fr) minmax(0, 334fr); column-gap: 16px; align-items: start; }
.f-plan-intro { padding-top: 26px; }
.f-plan-intro p { margin-top: 18px; font-size: 14px; line-height: 1.62; color: #1F2B45; }
.f-plan { position: relative; display: flex; flex-direction: column; min-height: 226px; border-radius: 14px; background: #fff; border: 1px solid #E3EAE7; box-shadow: 0 8px 22px rgba(20, 50, 40, .08); overflow: hidden; }
.f-plan-head { padding: 9px 20px 8px; background: var(--f-free-head); }
.f-plan-head h3 { font-size: 15px; font-weight: 800; color: var(--f-ink); line-height: 1.4; }
.f-price { display: flex; align-items: baseline; gap: 6px; color: var(--f-green); line-height: 1; }
.f-price .cur { font-size: 17px; font-weight: 800; }
.f-price .amt { font-family: "Inter", var(--font-sans); font-size: 35px; font-weight: 800; letter-spacing: -.01em; }
.f-price .per { font-size: 15px; font-weight: 700; }
.f-plan-list { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 12px 18px 10px 20px; }
.f-plan-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: #1F2B45; }
.f-plan-list .msi { font-size: 18px; color: #22B14C; margin-top: 2px; }
.f-plan-list small { display: block; font-size: 11.5px; color: var(--f-text); }
.f-plan .btn { margin: 0 20px 14px; min-height: 37px; padding: 4px 16px; font-size: 15px; }
.f-plan .btn .msi { font-size: 20px; margin-right: -4px; }
.f-btn-outline { background: #fff; color: var(--f-ink); border: 1.5px solid #2C8C78; }
.f-btn-outline:hover { background: #F1FAF6; }
.f-plan-pro { border: 0; box-shadow: 0 14px 30px rgba(3, 98, 90, .18); }
.f-plan-pro .f-plan-head { background: linear-gradient(135deg, #0B7B66 0%, var(--f-pro) 100%); }
.f-plan-pro .f-plan-head h3, .f-plan-pro .f-price { color: #fff; }
.f-btn-pro { box-shadow: 0 8px 18px rgba(3, 163, 29, .28); }
.f-badge { position: absolute; z-index: 1; top: -1px; right: 9px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 0 0 12px 12px; background: var(--f-badge); color: #5A4300; font-size: 13px; font-weight: 900; line-height: 20px; }
.f-badge .msi { font-size: 15px; }

.f-faq { margin-left: 26px; padding-top: 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.f-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f-faq-head h2 { font-size: 26px; font-weight: 900; color: var(--f-ink); line-height: 1.3; }
.f-more { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: #1D6A5E; font-size: 14px; font-weight: 800; }
.f-more .msi { font-size: 20px; transition: transform .2s; }
.f-more[aria-expanded="true"] .msi { transform: rotate(90deg); }
.f-more-close, .f-more[aria-expanded="true"] .f-more-open { display: none; }
.f-more[aria-expanded="true"] .f-more-close { display: inline; }
.f-faq-list, .f-faq-extra { display: flex; flex-direction: column; gap: 4px; }
.f-faq-list { margin-top: 10px; }
.js .f-faq-extra:not(.open) { display: none; }
.f-faq details { border: 1px solid var(--f-line-soft); border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(20, 50, 40, .04); }
.f-faq details[open] { border-color: #B8D8CC; background: #F8FCFA; }
.f-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; padding: 3px 12px 3px 16px; font-size: 14px; font-weight: 700; color: var(--f-ink); line-height: 1.4; cursor: pointer; list-style: none; }
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq summary .msi { font-size: 20px; color: var(--f-ink); transition: transform .2s; }
.f-faq details[open] summary .msi { transform: rotate(45deg); }
.f-faq details p { padding: 0 16px 12px; font-size: 13.5px; line-height: 1.7; color: var(--f-text); }
.f-faq details p a { color: var(--f-green); font-weight: 700; text-decoration: underline; }

/* ============================================================
   08 資源
   ============================================================ */
.f-res { --f-h2: 27px; padding: 12px 0 6px; }
.f-res-panel { display: grid; grid-template-columns: 253px minmax(0, 404fr) minmax(0, 462fr); gap: 24px; align-items: center; margin-inline: -27px -6px; padding: 9px 12px 9px 27px; border-radius: 22px; background: linear-gradient(90deg, #E3EFE7 0%, var(--f-res) 60%, #EAF3EE 100%); box-shadow: 0 8px 22px rgba(20, 60, 40, .06); }
.f-res-card { display: flex; align-items: center; gap: 16px; min-height: 116px; padding: 10px 16px 10px 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(20, 60, 40, .06); }
.f-res-img { flex: none; width: 140px; height: 95px; border-radius: 10px; overflow: hidden; }
.f-res-card + .f-res-card .f-res-img { width: 150px; height: 92px; }
.f-res-img img { width: 100%; height: 100%; object-fit: cover; }
.f-res-card h3 { font-size: 17px; font-weight: 900; line-height: 1.35; color: var(--f-ink); }
.f-res-card p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--f-text); }
/* 尚未上線：狀態標籤（非連結） */
.f-soon { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 1px 10px 1px 7px; border-radius: 999px; background: #EEF3F1; color: #4F6B63; font-size: 12.5px; font-weight: 800; line-height: 22px; }
.f-soon .msi { font-size: 15px; }

/* ============================================================
   09 最終 CTA（原版 footer 之上）
   ============================================================ */
.f-cta { position: relative; overflow: hidden; margin-top: 10px; background: linear-gradient(90deg, #004858 0%, #00505E 50%, #004652 100%); color: #fff; }
.f-cta-deco { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.f-cta-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 60px; min-height: 83px; padding-block: 10px; }
.f-cta h2 { font-size: 31px; font-weight: 900; line-height: 1.3; color: #fff; letter-spacing: .02em; }
.f-cta p { margin-top: 3px; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, .92); }
.f-cta .f-btn-hero { min-width: 240px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* 原版 footer：此頁省略 CTA 列，只保留波浪 + 版權列 */
.page-family .site-footer { margin-top: 0; padding-top: 70px; }
.page-family .wave-footer { height: 84px; }
.page-family .foot-meta { margin-top: 0; border-top: 0; }

/* ---------- 其他介面語言：字串較長，放寬固定尺寸 ---------- */
html:not(:lang(zh)) .f-hero h1 { font-size: clamp(26px, 2.75vw, 36px); line-height: 1.22; }
html:lang(th) .f-hero h1, html:lang(vi) .f-hero h1 { line-height: 1.38; }
html:not(:lang(zh)) .f-hero-copy { max-width: 500px; }
html:not(:lang(zh)) .f-hero-points { width: auto; max-width: 520px; }
html:not(:lang(zh)) .f-pill { white-space: normal; line-height: 1.25; padding: 4px 10px; }
html:not(:lang(zh)) .f-h2 { font-size: calc(var(--f-h2, 32px) * .8); }
html:not(:lang(zh)) :is(.f-pain-card, .f-scene, .f-step-card, .f-res-card) p br, html:not(:lang(zh)) .f-demo-sub br, html:not(:lang(zh)) .f-plan-intro p br { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .f-pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-pain-grid .f-h2 { grid-column: 1 / -1; }
  .f-pain-grid .f-h2 br { display: none; }
  .f-demo { height: auto; }
  .f-demo-grid { grid-template-columns: 1fr; height: auto; }
  .f-demo-copy { padding-top: 34px; text-align: left; }
  .f-stage { width: 827px; max-width: 100%; height: 360px; margin: 10px auto 0; }
  .f-row { grid-template-columns: 1fr; gap: 18px; }
  .f-row > .f-h2 br { display: none; }
  .f-scenes, .f-steps { padding-block: 28px; }
  .f-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; margin-inline: auto; }
  .f-plan-intro { grid-column: 1 / -1; padding-top: 16px; }
  .f-plan-intro br { display: none; }
  .f-plan-intro p { margin-top: 8px; }
  .f-faq { grid-column: 1 / -1; margin-left: 0; }
  .f-plans { padding-block: 28px; }
  .f-res-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; padding: 22px; }
  .f-res-panel .f-h2 { grid-column: 1 / -1; }
  .f-res-panel .f-h2 br { display: none; }
}

@media (max-width: 1024px) {
  /* hero：文字 → 照片 → 手機（手機完整顯示，不裁切） */
  .f-hero { background: linear-gradient(180deg, var(--f-mint) 0%, #F1F5EE 45%, #EAE3D8 100%); }
  .f-hero-inner { display: flex; flex-direction: column; min-height: 0; padding-top: 28px; padding-bottom: 36px; }
  .f-hero-copy { max-width: 640px; padding-left: 0; }
  .f-hero h1 { font-size: clamp(28px, 5vw, 40px); }
  .f-hero-photo { position: relative; right: auto; top: auto; bottom: auto; width: calc(100% + var(--gutter) * 2); max-width: none; height: 400px; margin: 22px calc(-1 * var(--gutter)) 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%); }
  .f-hero-photo img { object-position: 50% 12%; }
  .f-hero-phone { position: relative; top: auto; right: auto; width: 290px; margin: -150px auto 0; }
  .f-cta-inner { flex-direction: column; gap: 14px; padding-block: 26px; text-align: center; }
}

@media (max-width: 900px) {
  /* 翻譯展示：家屬 → 手機 → 看護，依閱讀順序直排 */
  .f-stage { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; grid-template-areas: "pl sl sl" "ph ph ph" "sr sr pr"; gap: 14px; align-items: center; width: 100%; max-width: 480px; height: auto; margin-top: 22px; padding-bottom: 28px; }
  .f-stage > * { position: static; }
  .f-stage > .f-demo-phone, .f-stage > .f-say { position: relative; left: auto; top: auto; }
  .f-person { width: 104px; }
  .f-person-l { grid-area: pl; }
  .f-say-l { grid-area: sl; justify-self: start; }
  .f-demo-phone { grid-area: ph; justify-self: center; width: 290px; margin: 6px 0; }
  .f-demo-phone .chat { padding-bottom: 20px; }
  .f-person-r { grid-area: pr; }
  .f-say-r { grid-area: sr; justify-self: end; }
  .f-portrait { width: 104px; height: 104px; }
  .f-arrow { display: none; }
  .f-pain-card { flex-direction: column; gap: 6px; padding-right: 16px; }
  .f-pain-card p br { display: none; }
  .f-scene-grid { grid-template-columns: 1fr; }
  .f-scene { height: auto; min-height: 0; }
  .f-scene picture { position: relative; height: auto; aspect-ratio: 3 / 1; }
  .f-scene p br { display: none; }
  .f-res-panel { grid-template-columns: 1fr; }
  .f-scene-cap { margin-top: 0; padding-top: 4px; }
  .f-scene-ic { top: -4px; }
  /* 五步驟：改成直向步驟，每張橫排（數字 + icon + 文字） */
  .f-step-row { grid-template-columns: 1fr; gap: 22px; }
  .f-step-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 0; padding: 14px 16px 14px 42px; text-align: left; }
  .f-step-card + .f-step-card::before { content: "expand_more"; left: 50%; top: -25px; margin: 0 0 0 -14px; }
  .f-num { left: 12px; top: 50%; margin-top: -11.5px; }
  .f-step-ic { grid-row: 1 / span 2; width: 52px; height: 52px; }
  .f-step-line { width: 46px; height: 46px; justify-self: center; }
  .f-step-card h3 { margin-top: 0; }
  .f-step-card p { margin-top: 2px; font-size: 13.5px; }
  .f-step-card p br { display: none; }
}

@media (max-width: 760px) {
  .f-pain-grid { grid-template-columns: 1fr; gap: 14px; }
  .f-pain-grid .f-h2 br { display: inline; }
  .f-pain-card { flex-direction: row; gap: 14px; min-height: 0; }
  .f-plan-grid { grid-template-columns: 1fr; max-width: 460px; }
  .f-res-panel { padding: 18px; }
  .f-res-card { align-items: flex-start; }
}

@media (max-width: 640px) {
  .page-family { --f-h2: 26px; }
  .f-pain, .f-demo, .f-scenes, .f-steps, .f-plans, .f-res { --f-h2: 26px; }
  .f-hero-cta { flex-direction: column; align-items: stretch; }
  .f-hero-cta .btn { min-width: 0; }
  .f-lead br { display: none; }
  .f-hero-points { gap: 6px 16px; margin-top: 22px; }
  .f-hero-photo { height: 300px; }
  .f-hero-phone { width: 270px; margin-top: -110px; }
  .f-demo-sub br { display: none; }
  .f-say { font-size: 15px; padding: 10px 14px; }
  .f-say br { display: none; }
  .f-stage { grid-template-columns: 92px minmax(0, 1fr) 92px; }
  .f-person { width: 92px; }
  .f-portrait { width: 92px; height: 92px; }
  .f-pill { font-size: 12px; padding: 1px 10px; }
  .f-scene p br, .f-pain-card p br, .f-res-card p br { display: none; }
  .f-res-card { flex-direction: column; }
  .f-res-img, .f-res-card + .f-res-card .f-res-img { width: 100%; height: 150px; }
  .f-faq-head h2 { font-size: 22px; }
  .f-cta h2 { font-size: 24px; }
  .f-cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .f-hero-phone, .f-demo-phone { width: 250px; }
  .f-stage { gap: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .f-replay .f-step { animation: none; }
}
