/* 正百牙醫官網 設計稿 v1 — 共用樣式
   ponytail: 純 HTML/CSS 設計稿，色票與字級對應到 Bricks 全域變數，正式製作時照搬 */

:root {
  --teal: #009fa2;        /* Logo 青綠 */
  --teal-deep: #0b5c5e;   /* 標題、頁尾底色 */
  --teal-text: #007a7d;   /* 小字用的青綠，白底與淺底都過 AA */
  --pink: #d2266b;        /* 只用在「看診中」與主要預約按鈕 */
  --pink-soft: #fde8f0;
  --mist: #eaf6f6;        /* 區塊底色 */
  --line: #cfe5e5;
  --ink: #1c2a2b;
  --ink-soft: #4d6163;
  --paper: #ffffff;

  --f-display: "Huninn", "Noto Sans TC", sans-serif;
  --f-body: "Noto Sans TC", system-ui, sans-serif;
  --f-num: "Manrope", "Noto Sans TC", sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.8 var(--f-body); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.num { font-family: var(--f-num); font-weight: 700; letter-spacing: .01em; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--teal-deep); line-height: 1.35; margin: 0; letter-spacing: .04em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--teal-text); letter-spacing: .12em; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 36em; }

/* 待診所提供的內容標記（設計稿用，上線前全部換掉） */
.todo { background: #fff6c8; color: #5a4500; border-radius: 4px; padding: 0 4px; font-size: .92em; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 17px/1 var(--f-body); text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-book { background: var(--pink); color: #fff; }
.btn-book:hover { background: #b81d5c; }
.btn-ghost { border: 1.5px solid var(--teal-deep); color: var(--teal-deep); }
.btn-ghost:hover { background: var(--mist); }
.btn-line { background: #06c755; color: #fff; font-weight: 700; } /* LINE 官方綠（11/18 使用者指定；白字對比 2.3:1，用粗體補） */
.btn-line:hover { background: #05b04b; }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }  /* 參考星悅：頁首 89px，選單 17.85px 中等字重 */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-deep); }
.brand img { height: 52px; width: auto; }
.brand span { font: 400 23px/1.2 var(--f-display); letter-spacing: .08em; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: .03em; }
.nav a:hover, .nav a[aria-current] { color: var(--teal-text); }
/* 頁首「診療項目」下拉選單：滑鼠移上去或用鍵盤 Tab 到這裡時打開 */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.nav-dd .dd { position: absolute; top: 100%; left: 50%; z-index: 30; min-width: 168px; padding: 8px; margin-top: 14px;
  display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(11,92,94,.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-dd .dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* 補上連結和選單中間的空隙，滑鼠移過去不會關掉 */
.nav-dd:hover .dd, .nav-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dd:hover > a::after, .nav-dd:focus-within > a::after { transform: translateY(0) rotate(225deg); }
.nav-dd .dd a { padding: 10px 14px; border-radius: 10px; white-space: nowrap; font-size: 16px; display: flex; align-items: center; }
.nav-dd .dd a .ico { width: 20px; height: 20px; margin-right: 10px; color: var(--teal); }
.nav-dd .dd a:hover, .nav-dd .dd a[aria-current] { background: var(--mist); color: var(--teal-deep); }

.header-tel { font-size: 17px; color: var(--teal-deep); text-decoration: none; white-space: nowrap; }
.site-header .btn { min-height: 46px; padding: 0 22px; font-size: 17px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 12px; height: 44px; padding: 0 14px; font: 500 15px var(--f-body); color: var(--teal-deep); }

/* 區塊 */
.section { padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: 64px; }
.section-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .lead { margin-top: 12px; }
.more { font-weight: 500; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* 圖片預留框 */
.ph { background: #dcefef; border: 1.5px dashed #a9d3d3; border-radius: var(--r-md); display: grid; place-items: center; color: var(--ink-soft); font-size: 14px; text-align: center; padding: 12px; }

/* 頁尾 */
.site-footer { background: var(--teal-deep); color: #d6ecec; padding: 64px 0 120px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.site-footer a { color: #d6ecec; text-decoration: none; display: block; line-height: 2.1; }
.site-footer a:hover { color: #fff; }
.ico-fb { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%203h-3a4%204%200%200%200-4%204v3H5v4h3v7h4v-7h3l1-4h-4V7a1%201%200%200%201%201-1h3z%22%2F%3E%3C%2Fsvg%3E"); }
.ico-ig { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M17.5%206.5h.01%22%2F%3E%3C%2Fsvg%3E"); }
.ico-threads { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M16%208v5a3%203%200%200%200%206%200v-1a10%2010%200%201%200-3.92%207.94%22%2F%3E%3C%2Fsvg%3E"); }
/* 頁尾社群圖示 */
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; line-height: 1; transition: background .2s, color .2s; }
.site-footer .social a:hover { background: #fff; color: var(--teal-deep); }
.site-footer .social .ico { margin: 0; width: 22px; height: 22px; }

.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; font-size: 13px; color: #c3dede; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer .copy a { display: inline; }

/* 手機版底部固定按鈕列 */
.dock { display: none; }

@media (max-width: 960px) {
  .nav, .header-tel, .site-header .btn { display: none; }
  .menu-btn { display: block; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; inset: auto 0 0 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .dock a { display: grid; place-items: center; min-height: 48px; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 15px; }
  .dock .d-line { background: #06c755; color: #fff; font-weight: 700; }
  .dock .d-tel { background: var(--mist); color: var(--teal-deep); }
  .dock .d-book { background: var(--pink); color: #fff; }
}

/* ---- 內頁共用：頁首區、麵包屑、目錄、常見問題、提醒框、預約區 ---- */
.page-head { background: var(--mist); padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.crumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--teal-deep); }
.page-head h1 { margin-bottom: 18px; }
.page-head .lead { margin-bottom: 28px; }
/* 頁首背景照（全站共用）：<section class="page-head bg-photo" style="--bg:url(img/xxx.jpg)">；--pos 調整取景（預設右側置中）
   照片從右邊鋪約 72% 寬，左邊淺青底色漸漸淡進照片，標題放在左邊 */
.page-head.bg-photo { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(340px, 33vw, 500px);
  background: var(--mist) var(--bg) var(--pos, right center) / 72% auto no-repeat; }
.page-head.bg-photo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--mist) 0%, var(--mist) 32%, rgba(234,246,246,.88) 40%, rgba(234,246,246,.45) 50%, rgba(234,246,246,0) 62%),
              linear-gradient(0deg, rgba(234,246,246,.55) 0%, rgba(234,246,246,0) 22%); }
.page-head.bg-photo > .wrap { position: relative; }
.page-head.bg-photo .wrap > :not(.crumb) { max-width: min(560px, 40vw); }   /* 文字不要跑進照片 */
@media (max-width: 767px) { .page-head.bg-photo .wrap > :not(.crumb) { max-width: none; } }
@media (max-width: 767px) {
  .page-head.bg-photo { display: block; min-height: 0; padding-top: 56vw; background-size: 100% auto; background-position: center top; }
  .page-head.bg-photo::before { background: linear-gradient(180deg, rgba(234,246,246,0) 0, rgba(234,246,246,0) 30vw, var(--mist) 60vw); }
}

.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 15px; }
.toc b { font-weight: 500; color: var(--ink-soft); font-size: 13px; letter-spacing: .1em; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 10px; }
.toc a:hover { background: var(--mist); color: var(--teal-deep); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 400 19px/1.5 var(--f-display); color: var(--teal-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 26px var(--f-num); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }
.notice { background: var(--pink-soft); border-radius: var(--r-md); padding: 18px 22px; font-size: 15px; color: #7a1240; }
.cta-inline { background: var(--teal-deep); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inline h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.cta-inline p { color: #cfe7e7; }
.cta-inline .acts { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc b { width: 100%; }
  .toc a { background: var(--mist); }
}

/* ---- 手機選單（popover）---- */
.menu-btn { cursor: pointer; }
.mnav { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(360px, 100%); height: 100dvh; max-height: none; border: 0; padding: 16px 24px 32px; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: -24px 0 48px -24px rgba(11,92,94,.4); }
.mnav::backdrop { background: rgba(11,40,42,.4); }
.mnav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mnav-close { background: none; border: 1.5px solid var(--line); border-radius: 12px; height: 44px; padding: 0 14px; font: 500 15px var(--f-body); color: var(--teal-deep); cursor: pointer; }
.mnav > a, .mnav-sub a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 18px; }
.mnav-label { margin: 18px 0 2px; font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--ink-soft); }
.mnav-sub { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mnav-sub a { font-size: 16px; padding: 12px 4px; }
.mnav-acts { display: grid; gap: 10px; margin-top: 24px; }
.mnav-acts .btn { justify-content: center; }
.mnav-tel { border: 1.5px solid var(--teal-deep); color: var(--teal-deep); }
@media (prefers-reduced-motion: no-preference) {
  .mnav:popover-open { animation: mnav-in .2s ease-out; }
  @keyframes mnav-in { from { transform: translateX(24px); opacity: 0; } }
}
.site-header .mnav .btn { display: inline-flex; min-height: 52px; font-size: 17px; } /* 選單在 header 裡，避開 header 按鈕在手機隱藏的規則 */

/* 實際照片：填滿外框，裁切置中 */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--mist); }

/* 地址連到 Google 地圖 */
.maplink { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,159,162,.5); text-underline-offset: 3px; }
.maplink:hover { color: var(--teal-text); text-decoration-color: currentColor; }
.site-footer .maplink { display: inline; color: inherit; line-height: inherit; text-decoration-color: rgba(255,255,255,.4); }
.hero-where .go { margin-left: 10px; font-size: 13px; color: var(--teal-text); white-space: nowrap; }
.hero-where .go::after { content: " ↗"; }
a.map { display: block; }
a.map:hover img { transform: scale(1.02); }
a.map img { transition: transform .3s; }

/* 圖示（取代「地址／電話／公車」這類文字標籤）*/
.ico { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .45em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico-pin { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022s7-6.2%207-12a7%207%200%201%200-14%200c0%205.8%207%2012%207%2012z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.6%22%2F%3E%3C%2Fsvg%3E"); }
.ico-phone { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.9v3a2%202%200%200%201-2.2%202%2019.8%2019.8%200%200%201-8.6-3.1%2019.5%2019.5%200%200%201-6-6A19.8%2019.8%200%200%201%202.1%204.2%202%202%200%200%201%204.1%202h3a2%202%200%200%201%202%201.7c.1%201%20.4%201.9.7%202.8a2%202%200%200%201-.5%202.1L8.1%209.9a16%2016%200%200%200%206%206l1.3-1.3a2%202%200%200%201%202.1-.4c.9.3%201.8.6%202.8.7a2%202%200%200%201%201.7%202z%22%2F%3E%3C%2Fsvg%3E"); }
.ico-mic { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%222%22%20width%3D%226%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M5%2010a7%207%200%200%200%2014%200M12%2017v4M8%2021h8%22%2F%3E%3C%2Fsvg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011.5c0%204.5-4%208.2-9%208.2-1.3%200-2.5-.2-3.6-.7L3%2021l1.6-4.3A7.9%207.9%200%200%201%203%2011.5C3%207%207%203.3%2012%203.3s9%203.7%209%208.2z%22%2F%3E%3C%2Fsvg%3E"); }
.ico-cal { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%202v4M8%202v4M3%2010h18%22%2F%3E%3C%2Fsvg%3E"); }
.ico-bus { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M4%2010h16M8%2017v3M16%2017v3%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2213.5%22%20r%3D%22.6%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2213.5%22%20r%3D%22.6%22%2F%3E%3C%2Fsvg%3E"); }
.ico-car { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2017v-4.5L5.2%207h13.6L21%2012.5V17M3%2017h18M6.5%2017v2M17.5%2017v2%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2213.5%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%2213.5%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
.site-footer .contact a { display: inline-flex; align-items: center; line-height: 1.9; }
@media (min-width: 961px) { .header-tel { display: inline-flex; align-items: center; } } /* 手機、平板照舊隱藏 */
.nav a, .brand span, .site-header .btn { white-space: nowrap; }
/* 961~1199px（平板橫放、小筆電）：選單放不下，先拿掉頁首電話（右下角和頁尾都有），間距縮小 */
@media (min-width: 961px) and (max-width: 1199px) {
  .header-tel { display: none; }
  .site-header .wrap, .nav { gap: 20px; }
  .nav a { font-size: 16px; }
}
.dock a { display: flex !important; gap: 6px; align-items: center; justify-content: center; }
.way dt { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper); color: var(--teal-deep); }
.way dt .ico { margin: 0; width: 22px; height: 22px; }
.way { align-items: center; }
.way dd { margin: 0; }

/* ---- 右下角快速聯絡（取代原本手機底部按鈕列）---- */
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.22); }
.fab a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 3px;
  text-decoration: none; color: var(--teal-deep); font: 500 11px/1 var(--f-body); letter-spacing: .04em; transition: background .2s; }
.fab a .ico { margin: 0; width: 22px; height: 22px; }
.fab a:hover { background: var(--mist); }
.fab .fab-line .ico { background: #06c755; }
.ico-up { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2019V5M5%2012l7-7%207%207%22%2F%3E%3C%2Fsvg%3E"); }  /* 回頂端用 href="#top"：瀏覽器內建捲到最上面，html 的 scroll-behavior: smooth 讓它平滑捲動 */
.fab .fab-book { background: var(--pink); color: #fff; }
.fab .fab-book:hover { background: #b81d5c; }
.site-footer { padding-bottom: 64px; }
@media (max-width: 767px) {
  /* 手機：直立選單會蓋到文字，改成貼底的橫排，頁面底部留出同樣高度 */
  .fab { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); flex-direction: row; gap: 4px; padding: 5px; border-radius: 22px; }
  .fab a { flex: 1; width: auto; height: 52px; border-radius: 16px; font-size: 11px; }
  .fab a .ico { width: 20px; height: 20px; }
  body { padding-bottom: 76px; }
}

/* 療程圖示 */
.ico-implant { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h10a3%203%200%200%201%203%203c0%202-1.3%203-3%203H7C5.3%209%204%208%204%206a3%203%200%200%201%203-3z%22%2F%3E%3Cpath%20d%3D%22M9%209v2h6V9M10%2011v7.5l2%202.5%202-2.5V11M10%2014h4M10%2017h4%22%2F%3E%3C%2Fsvg%3E"); }
.ico-fullmouth { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%209.5C4%206%207.5%204%2012%204s8%202%208.5%205.5%22%2F%3E%3Cpath%20d%3D%22M3.5%209.5C4%2015%207.5%2020%2012%2020s8-5%208.5-10.5%22%2F%3E%3Cpath%20d%3D%22M7.5%205.5v5M12%204v6.5M16.5%205.5v5M3.8%2010.5h16.4%22%2F%3E%3C%2Fsvg%3E"); }
.ico-denture { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2015c1.5-5%205-8%209-8s7.5%203%209%208z%22%2F%3E%3Cpath%20d%3D%22M7%2015v-3.5M10.3%2015V9.5M13.7%2015V9.5M17%2015v-3.5%22%2F%3E%3Cpath%20d%3D%22M5%2018h14%22%2F%3E%3C%2Fsvg%3E"); }
.ico-veneer { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204C5.8%204%204%205.6%204%208.3c0%202.8%201%204.8%201.6%207.6.5%202.6%201.2%204.1%202.6%204.1%201.5%200%201.6-2.9%202.1-4.7.4-1.4.9-1.9%201.7-1.9s1.3.5%201.7%201.9c.5%201.8.6%204.7%202.1%204.7%201.4%200%202.1-1.5%202.6-4.1.6-2.8%201.6-4.8%201.6-7.6C20%205.6%2018.2%204%2016%204c-1.7%200-2.4.9-4%20.9S9.7%204%208%204z%22%2F%3E%3Cpath%20d%3D%22M20%201.5v3M18.5%203h3%22%2F%3E%3C%2Fsvg%3E"); }
.ico-ortho { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h18%22%2F%3E%3Crect%20x%3D%224.5%22%20y%3D%228%22%20width%3D%224%22%20height%3D%228%22%20rx%3D%221.2%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%224%22%20height%3D%228%22%20rx%3D%221.2%22%2F%3E%3Crect%20x%3D%2215.5%22%20y%3D%228%22%20width%3D%224%22%20height%3D%228%22%20rx%3D%221.2%22%2F%3E%3C%2Fsvg%3E"); }
.ico-general { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M9%207V5.5A1.5%201.5%200%200%201%2010.5%204h3A1.5%201.5%200%200%201%2015%205.5V7M12%2010.5v6M9%2013.5h6%22%2F%3E%3C%2Fsvg%3E"); }

/* 按鈕裡的圖示：間距交給 .btn 的 gap */
.btn .ico { margin-right: 0; width: 1.2em; height: 1.2em; }

/* ---- 背景與捲動效果（11/18 拿掉反光，只留柔光和淡入）---- */
/* 1. 整頁底色：左上淡青綠、右下淡桃紅的大光暈，固定在畫面上 */
body { background:
  radial-gradient(60vw 50vw at 0% 0%, rgba(0,159,162,.13), transparent 70%) fixed,
  radial-gradient(50vw 45vw at 100% 100%, rgba(231,48,121,.08), transparent 70%) fixed,
  var(--paper); }
/* 2. 淺青綠區塊：兩團柔光，捲動時跟著慢慢移動 */
.section-mist { position: relative; isolation: isolate; overflow: hidden; }
.section-mist::before { content: ""; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(35% 45% at 18% 20%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(30% 40% at 85% 80%, rgba(0,159,162,.10), transparent 70%);
  transform: translate3d(calc(var(--sy, 0) * -.04px), calc(var(--sy, 0) * .02px), 0); }
/* 3. 卡片捲進畫面時往上淡入 */
/* 不再用透明度藏內容：某些瀏覽器（App 內建瀏覽器、背景分頁）動畫不跑時，卡片會整個看不到 */
.fx.fx { transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1) var(--fx-d, 0ms), box-shadow .25s; }
.fx.fx-in { transform: none; }
.fx.fx-in:hover { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .fx.fx { transform: none; } .section-mist::before { transform: none; } }
