/* 亞東紀念醫院麻醉部 網站樣式 */
:root {
  /* 預設配色：原版深藍青綠。其他配色見 theme-*.css（由 build.py 產生） */
  --heading: #0b3c5d;
  --accent: #12857f;
  --accent-soft: #e6f4f3;
  --page: #ffffff;
  --surface: #ffffff;
  --bg: #f5f8fa;
  --text: #1f2a33;
  --muted: #5b6b78;
  --line: #dde5ea;
  --wood: transparent;
  --hero-bg: linear-gradient(135deg, #072a42 0%, #0b3c5d 45%, #12857f 100%);
  --hero-text: #ffffff;
  --hero-dot: #ffffff;
  --ecg: rgba(255,255,255,.6);
  --head-bg: linear-gradient(120deg, #0b3c5d 0%, #12857f 100%);
  --head-text: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #0b3c5d;
  --ghost-border: rgba(255,255,255,.7);
  --th-bg: #0b3c5d;
  --footer-bg: #072a42;
  --footer-text: #c9d6df;
  --footer-head: #ffffff;
  --footer-muted: #93a6b4;
  --warn-bg: #fff7e8;
  --warn-line: #e8a33d;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 60, 93, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.4; color: var(--heading); letter-spacing: .02em; }
h2 { font-size: 1.45rem; margin: 2.4em 0 .8em; padding-left: .7em; border-left: 5px solid var(--accent); }
h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--page);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text small { font-size: .75rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .1em; white-space: nowrap; }

.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--text); font-size: .98rem; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.main-nav .sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 260px; padding: 8px; list-style: none; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 75vh; overflow-y: auto;
}
.main-nav .sub a { font-size: .93rem; padding: 6px 12px; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { display: block; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--heading); cursor: pointer; }

/* ---------- 首頁主視覺 ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background: var(--hero-bg); border-bottom: 6px solid var(--wood);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 80% 20%, var(--hero-dot) 0 2px, transparent 3px),
                    radial-gradient(circle at 20% 80%, var(--hero-dot) 0 1.5px, transparent 2.5px);
  background-size: 48px 48px, 64px 64px;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: var(--hero-text); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; letter-spacing: .08em; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; opacity: .92; }
.hero .ecg { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 60px; color: var(--ecg); z-index: 1; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-text); margin: 8px 10px 0 0;
}
.btn:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: var(--hero-text); border: 1.5px solid var(--ghost-border); }
.btn.teal { background: var(--accent); color: #fff; }

/* ---------- 內頁標題列 ---------- */
.page-head { background: var(--head-bg); color: var(--head-text); border-bottom: 6px solid var(--wood); }
.page-head .container { padding-top: 48px; padding-bottom: 44px; }
.page-head h1 { color: var(--head-text); margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: .06em; }
.page-head .en { opacity: .8; font-size: .95rem; letter-spacing: .04em; margin-top: 4px; }
.breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: 10px; }
.breadcrumb a { color: var(--head-text); }

main { padding-bottom: 72px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { border: 0; padding: 0; margin: 0 0 .3em; font-size: 1.8rem; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; color: var(--text);
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(11,60,93,.14); text-decoration: none; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb svg { width: 56px; height: 56px; color: var(--accent); }
.card .body { padding: 18px 20px 22px; flex: 1; }
.card h3 { margin: 0 0 .35em; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.card .tag { align-self: flex-start; display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.feature { padding: 28px; }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .icon svg { width: 28px; height: 28px; }

.grid.five { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- 內文元件 ---------- */
.keypoints {
  background: var(--accent-soft); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0 8px;
  border-left: 6px solid var(--accent);
}
.keypoints h2 { margin: 0 0 .5em; border: 0; padding: 0; font-size: 1.15rem; color: var(--accent); }
.keypoints ul { margin: 0; }
.callout { border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; background: var(--bg); border: 1px solid var(--line); }
.callout.warn { background: var(--warn-bg); border-color: #f3d9a8; border-left: 6px solid var(--warn-line); }
.callout strong:first-child { color: var(--heading); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 56px; margin: 0; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--heading); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { color: var(--heading); }
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .97rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
td:first-child, th:first-child { white-space: nowrap; }
th { background: var(--th-bg); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: var(--bg); }
.table-wrap { overflow-x: auto; }
figure { margin: 24px 0; }
figure img { border-radius: 12px; border: 1px solid var(--line); margin: 0 auto; }
figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.fig-sm img { max-width: 420px; width: 100%; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .95rem; margin: 0; }

details { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: var(--surface); }
details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--heading); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "＋"; color: var(--accent); margin-right: 10px; }
details[open] > summary::before { content: "－"; }
details > div { padding: 0 20px 16px; }
details.pro { background: var(--bg); margin-top: 48px; }
details.pro > summary { color: var(--muted); }

.page-meta { margin-top: 48px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
.next-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.next-links a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .93rem; }

/* 飛行比喻 */
.flight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.flight > div { padding: 22px; background: var(--surface); border-right: 1px solid var(--line); }
.flight > div:last-child { border-right: 0; }
.flight .stage { font-size: .8rem; color: var(--accent); letter-spacing: .1em; font-weight: 700; }
.flight h3 { margin: .2em 0 .3em; }
.flight p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 團隊 */
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.doctor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doctor .photo { aspect-ratio: 4 / 5; background: var(--accent-soft); overflow: hidden; }
.doctor .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor .photo .initial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--accent); font-weight: 700; }
.doctor .info { padding: 16px 18px 6px; }
.doctor h3 { margin: 0; font-size: 1.2rem; letter-spacing: .12em; }
.doctor .title { color: var(--accent); font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.doctor .spec { font-size: .9rem; color: var(--text); margin: 8px 0 4px; }
.doctor details { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
.doctor details > summary { font-size: .88rem; padding: 10px 18px; font-weight: 500; }
.doctor details ul { font-size: .85rem; color: var(--muted); padding-left: 1.2em; margin: 0; }

/* 聯絡 */
.contact-box { background: var(--bg); border-radius: var(--radius); padding: 28px; }
.contact-box dt { font-weight: 700; color: var(--heading); margin-top: 12px; }
.contact-box dd { margin: 0; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: .92rem; }
.site-footer .container { padding-top: 48px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--footer-head); margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: var(--footer-text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .8rem; color: var(--footer-muted); }

/* ---------- 手機版 ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--page); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; max-height: none; }
  .footer-grid, .two-col { grid-template-columns: 1fr; }
  .flight { grid-template-columns: 1fr; }
  .flight > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero .container { padding-top: 64px; padding-bottom: 88px; }
  body { font-size: 16.5px; }
}
@media print {
  .site-header, .site-footer, .next-links { display: none; }
  .page-head { background: none; color: var(--heading); }
  .page-head h1 { color: var(--heading); }
}

.narrow > h2:first-child { margin-top: 48px; }

/* ---------- 配色預覽切換（定案後移除） ---------- */
.theme-switch { position: fixed; right: 18px; bottom: 18px; z-index: 100; background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 10px 12px; font-size: .85rem; color: #333; }
.theme-switch b { display: block; margin-bottom: 6px; }
.theme-switch button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.theme-switch button:hover, .theme-switch button.on { background: #f1f1f1; }
.theme-switch i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

/* ---------- 2026-10-16 新增 ---------- */
/* 首頁兩欄卡片 */
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* 比較表（多模式止痛） */
.compare-fig { margin: 28px 0; }
table.compare { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .96rem; margin: 0; }
table.compare th, table.compare td { text-align: center; vertical-align: middle; padding: 12px 14px; }
table.compare thead th { font-size: 1.05rem; letter-spacing: .06em; background: var(--th-bg); color: #fff; }
table.compare thead th:first-child { background: var(--th-first, var(--wood)); }
table.compare thead th.mma { background: var(--accent); }
table.compare tbody th { background: var(--bg); color: var(--heading); font-weight: 600; white-space: nowrap; }
table.compare tbody td { background: var(--surface); }
table.compare tbody td.mma { background: var(--accent-soft); color: var(--heading); font-weight: 600; }
table.compare tr:nth-child(even) td { background: var(--surface); }
table.compare tr:nth-child(even) td.mma { background: var(--accent-soft); }
html[lang="en"] table.compare tbody th { white-space: normal; }
html[lang="de"] table.compare tbody th { white-space: normal; }
html[lang="id"] table.compare tbody th { white-space: normal; }
html[lang="vi"] table.compare tbody th { white-space: normal; }

/* 語言切換按鈕 */
.main-nav li.lang { margin-left: 6px; }
.main-nav li.lang > a { border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }
.main-nav li.lang > a:hover { background: var(--accent); color: #fff; }
.main-nav li.lang .sub { left: auto; right: 0; min-width: 150px; }
.main-nav li.lang .sub a.active { font-weight: 700; }
.main-nav li.lang .sub a.active::after { content: " ✓"; }

/* 日文版 */
html[lang="ja"] body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, "PingFang TC", sans-serif; }
html[lang="ja"] .main-nav a { font-size: .94rem; padding: 8px 10px; }

/* 英文版（台語羅馬字版共用同一組設定） */
html[lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; }
html[lang="de"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; }
html[lang="id"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; }
html[lang="vi"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; }
html[lang="nan-Latn-TW"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.7; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: 0; }
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3 { letter-spacing: 0; }
html[lang="id"] h1, html[lang="id"] h2, html[lang="id"] h3 { letter-spacing: 0; }
html[lang="vi"] h1, html[lang="vi"] h2, html[lang="vi"] h3 { letter-spacing: 0; }
html[lang="nan-Latn-TW"] h1, html[lang="nan-Latn-TW"] h2, html[lang="nan-Latn-TW"] h3 { letter-spacing: 0; }
html[lang="en"] .brand-text strong { letter-spacing: .01em; }
html[lang="de"] .brand-text strong { letter-spacing: .01em; }
html[lang="id"] .brand-text strong { letter-spacing: .01em; }
html[lang="vi"] .brand-text strong { letter-spacing: .01em; }
html[lang="nan-Latn-TW"] .brand-text strong { letter-spacing: .01em; }
html[lang="en"] .main-nav a { font-size: .94rem; padding: 8px 11px; }
html[lang="de"] .main-nav a { font-size: .94rem; padding: 8px 11px; }
html[lang="id"] .main-nav a { font-size: .94rem; padding: 8px 11px; }
html[lang="vi"] .main-nav a { font-size: .94rem; padding: 8px 11px; }
html[lang="nan-Latn-TW"] .main-nav a { font-size: .94rem; padding: 8px 11px; }
html[lang="en"] .hero h1 { letter-spacing: .01em; }
html[lang="de"] .hero h1 { letter-spacing: .01em; }
html[lang="id"] .hero h1 { letter-spacing: .01em; }
html[lang="vi"] .hero h1 { letter-spacing: .01em; }
html[lang="nan-Latn-TW"] .hero h1 { letter-spacing: .01em; }
html[lang="en"] .doctor h3 { letter-spacing: .01em; }
html[lang="de"] .doctor h3 { letter-spacing: .01em; }
html[lang="id"] .doctor h3 { letter-spacing: .01em; }
html[lang="vi"] .doctor h3 { letter-spacing: .01em; }
html[lang="nan-Latn-TW"] .doctor h3 { letter-spacing: .01em; }
.doctor .zh-name { font-size: .85rem; color: var(--muted); font-weight: 500; letter-spacing: .08em; margin-left: 4px; }
html[lang="en"] .flight .stage { letter-spacing: .12em; }
html[lang="de"] .flight .stage { letter-spacing: .12em; }
html[lang="id"] .flight .stage { letter-spacing: .12em; }
html[lang="vi"] .flight .stage { letter-spacing: .12em; }
html[lang="nan-Latn-TW"] .flight .stage { letter-spacing: .12em; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--page); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; max-height: none; }
  .main-nav li.lang { margin: 8px 0 0; }
  .main-nav li.lang > a { display: inline-block; }
  .main-nav li.lang .sub { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0 0; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .nav-toggle { flex-shrink: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-text small { font-size: min(.62rem, 2.6vw); letter-spacing: .04em; }
  .brand-text strong { font-size: 1rem; }
  html[lang="en"] .brand-text strong { font-size: min(.95rem, 3.7vw); }
  html[lang="nan-Latn-TW"] .brand-text strong { font-size: min(.95rem, 4.1vw); }
  html[lang="de"] .brand-text strong { font-size: min(.95rem, 4.1vw); }
  html[lang="id"] .brand-text strong { font-size: min(.95rem, 4.1vw); }
  html[lang="vi"] .brand-text strong { font-size: min(.95rem, 4.1vw); }
}

/* 衛教單張數位版：自費項目一覽、就醫提問單（2026-10-20） */
main p, main li, .callout, .hub-item p { text-wrap: pretty; }
.lead { font-size: 1.12rem; line-height: 1.8; margin-top: 32px; }
.hub-list { display: grid; gap: 14px; margin: 22px 0; }
.hub-item { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; }
.hub-item:hover { text-decoration: none; box-shadow: var(--shadow); }
.hub-item img { width: 84px; height: 84px; flex: none; }
.hub-item h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--accent); }
.hub-item p { margin: 0 0 6px; line-height: 1.7; }
.hub-item .more, .q-opt .more { font-weight: 700; color: var(--accent, #00831D); white-space: nowrap; }
.hub-dl { margin: 22px 0; }
.hub-dl .btn, .hub-links .btn { min-height: 44px; display: inline-flex; align-items: center; margin: 6px 6px 0 0; }
.hub-ask, .privacy { color: var(--muted); }
.clear-def { color: var(--muted); }
.q-list { padding-left: 1.4em; }
.q-list > li { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px dotted var(--line); }
.q-list .q { font-weight: 700; font-size: 1.08rem; margin: 0 0 8px; }
.q-opt { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 14px; padding: 10px 12px; margin: 6px 0; border-radius: 12px; background: var(--bg, #F4F8F7); }
.q-opt label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; flex: 1 1 260px; min-height: 44px; }
.q-opt input { width: 26px; height: 26px; margin-top: 2px; accent-color: #00831D; flex: none; }
.q-opt b { display: block; }
.q-opt small { display: block; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.q-opt .more { align-self: center; }
.hub-links { margin-top: 18px; }
@media (max-width: 600px) { .hub-item { align-items: flex-start; } .hub-item img { width: 64px; height: 64px; } }

/* 中文只在標點處換行，避免詞語被拆開；句子過長時才逐字換行（2026-10-20） */
html[lang="zh-Hant-TW"] main p, html[lang="zh-Hant-TW"] main li, html[lang="zh-Hant-TW"] main td,
html[lang="zh-Hant-TW"] main h1, html[lang="zh-Hant-TW"] main h2, html[lang="zh-Hant-TW"] main h3,
html[lang="zh-Hant-TW"] .page-head h1, html[lang="zh-Hant-TW"] .callout { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 首頁：麻醉島互動導覽橫幅 ---------- */
.island-band { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; background: linear-gradient(180deg, #E4F1EF 0%, #C9E5EE 40%, #9DCBE4 100%); }
.island-art { position: absolute; top: 18px; bottom: 18px; right: 0; left: max(40%, calc(50% - var(--max, 1120px) / 2 + 470px)); display: block; }
.island-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: transform .35s ease, filter .3s ease; }
.island-art:hover img { transform: scale(1.015); filter: saturate(1.08); }
.island-inner { position: relative; z-index: 1; width: 100%; padding-top: 44px; padding-bottom: 44px; pointer-events: none; }
.island-card { pointer-events: auto; max-width: 450px; background: rgba(255,255,255,.97); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,45,70,.14); padding: 26px 28px 24px; }
.island-tag { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.island-card h2 { border: 0; padding: 0; margin: .5em 0 .4em; font-size: 1.7rem; line-height: 1.35; color: var(--heading); }
.island-card h2 .sep { color: var(--accent); margin: 0 .12em; }
.island-card p { margin: 0 0 14px; line-height: 1.8; color: var(--text); }
.island-5w { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.island-5w li { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; }
.island-5w b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: #1B4A73; color: #fff; font-size: .85rem; }
.island-card p b.am { color: var(--accent); font-weight: 900; }
.island-card p.island-meta { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.island-card .btn { margin: 6px 0 0; }
@media (max-width: 920px) {
  .island-band { flex-direction: column; align-items: stretch; min-height: 0; }
  .island-inner { order: 0; padding-top: 32px; padding-bottom: 8px; }
  .island-card { max-width: none; }
  .island-art { order: 1; position: relative; top: auto; bottom: auto; left: auto; right: auto; height: auto; padding: 4px 8px 12px; }
  .island-art img { height: auto; }
}
@media (max-width: 600px) {
  .island-art { padding: 0 0 6px; }
  .island-art img { height: 230px; object-fit: cover; object-position: 55% 50%; }
}
@media (max-width: 480px) {
  .island-card { padding: 22px 20px 20px; }
  .island-card h2 { font-size: 1.45rem; }
  .island-card h2 .sep { display: none; }
  .island-card h2 .sub { display: block; font-size: 1.15rem; margin-top: .2em; }
}
