/* 覓境 MIJING — 共用樣式
   方向：human-approachable（冷白底、深墨字、深青綠單一強調色） */
:root {
  --bg:      oklch(98% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(20% 0.02 240);
  --muted:   oklch(50% 0.018 240);
  --border:  oklch(90% 0.006 240);
  --accent:  oklch(47% 0.142 257);

  --accent-strong: oklch(45% 0.142 257);
  --accent-press:  oklch(36% 0.12 257);
  --accent-soft:   oklch(95% 0.025 250);
  --brand-teal: oklch(72.5% 0.107 183);
  --brand-green: oklch(73.6% 0.111 158);
  --brand-orange: oklch(73.8% 0.154 56);
  --ink:       oklch(22% 0.03 220);
  --ink-2:     oklch(30% 0.03 220);
  --on-ink:    oklch(96% 0.006 220);
  --on-ink-muted: oklch(78% 0.015 220);
  --warn:      oklch(52% 0.14 55);
  --warn-soft: oklch(95% 0.04 70);
  --danger:    oklch(50% 0.17 25);
  --danger-soft: oklch(95% 0.03 25);
  --field:     oklch(97% 0.004 240);

  --font-display: 'Söhne', 'Avenir Next', 'PingFang TC', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, Menlo, monospace;

  --r-sm: 10px; --r: 14px; --r-lg: 18px;
  --shadow-1: 0 1px 2px oklch(20% 0.02 240 / .06), 0 4px 14px oklch(20% 0.02 240 / .06);
  --shadow-2: 0 2px 4px oklch(20% 0.02 240 / .08), 0 14px 34px oklch(20% 0.02 240 / .12);
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 var(--font-body); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid oklch(62% 0.13 257 / .55); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }

/* ---------- 原型提示列 ---------- */
.proto-bar {
  background: var(--ink); color: var(--on-ink-muted);
  font-size: 13px; text-align: center; padding: 7px 16px;
}
.proto-bar b { color: var(--on-ink); font-weight: 600; }

.pause-bar { background: var(--warn-soft); color: oklch(40% 0.12 55); font-size: 14px; font-weight: 600; text-align: center; padding: 9px 16px; border-bottom: 1px solid oklch(88% 0.05 70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: oklch(94% 0.006 240); border-color: oklch(84% 0.008 240); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: oklch(32% 0.03 220); }
.btn-ghost-light { background: oklch(100% 0 0 / .12); color: #fff; border-color: oklch(100% 0 0 / .5); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: oklch(100% 0 0 / .26); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { background: oklch(90% 0.006 240); color: oklch(60% 0.01 240); cursor: not-allowed; border-color: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg); border-bottom: 1.5px solid var(--border); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--fg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: oklch(100% 0 0 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header.scrolled { box-shadow: var(--shadow-1); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.logo-mark { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .08em; }
.logo-img { height: 56px; width: auto; display: block; }
.logo-en { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-item.open > .nav-link { background: oklch(95% 0.006 240); }
.nav-link[aria-current="page"] { font-weight: 700; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.icon-btn:hover { background: oklch(95% 0.006 240); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 32px 0 36px; }
.mega-intro h3 { font-size: 22px; margin-bottom: 10px; }
.mega-intro p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.mega-col h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mega-col h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-col .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mega-col li a { font-size: 14px; color: var(--muted); }
.mega-col li a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: oklch(18% 0.02 240 / .6); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 90vw); background: var(--surface); color: var(--fg); overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px calc(28px + env(safe-area-inset-bottom)); box-shadow: -12px 0 32px oklch(18% 0.02 240 / .2); display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.drawer-nav a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 17px; font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--border); cursor: pointer; list-style: none; }
.drawer-nav a:active, .drawer-nav summary:active { background: oklch(96% 0.004 240); }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary .chev { transform: rotate(180deg); }
.drawer-nav .chev { width: 16px; height: 16px; transition: transform .2s; }
.drawer-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0 16px; border-bottom: 1px solid var(--border); }
.drawer-nav .drawer-sub a { min-height: 48px; padding: 0 14px; justify-content: flex-start; font-size: 15px; font-weight: 600; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--field); }
.drawer-nav .drawer-sub a:active { background: oklch(93% 0.006 240); }
.drawer .btn { margin-top: 24px; flex-shrink: 0; }

/* ---------- Section headings ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.section-title { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: .02em; }
.section-sub { color: var(--muted); margin-top: 8px; max-width: 34em; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: oklch(95% 0.006 240); color: var(--fg); }
.chip-onimg { position: absolute; top: 12px; left: 12px; background: oklch(100% 0 0 / .92); box-shadow: var(--shadow-1); backdrop-filter: blur(6px); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--accent-soft); color: var(--accent-press); }
.status-few { background: var(--warn-soft); color: var(--warn); }
.status-full { background: oklch(94% 0.004 240); color: var(--muted); }

/* ---------- Trip card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.trip-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s, border-color .2s; }
.trip-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: transparent; }
.trip-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: oklch(92% 0.006 240); }
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.trip-card:hover .trip-media img { transform: scale(1.04); }
.trip-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trip-path { font-size: 12px; color: var(--muted); }
.trip-title { font-size: 18px; font-weight: 700; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.trip-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.next-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.level { display: inline-flex; align-items: center; gap: 6px; }
.level-dots { display: inline-flex; gap: 3px; }
.level-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.level-dots i.on { background: var(--fg); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: oklch(80% 0.01 240); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px oklch(62% 0.13 257 / .2); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field-err { display: none; font-size: 13px; color: var(--danger); }
.field.invalid .field-err { display: block; }
.hint { font-size: 13px; color: var(--muted); }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check-chip span:hover { border-color: oklch(78% 0.01 240); }
.check-chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.check-chip input:focus-visible + span { outline: 3px solid oklch(62% 0.13 257 / .55); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo-mark { color: var(--on-ink); }
.site-footer .logo-en { color: var(--on-ink-muted); }
.footer-about { margin-top: 14px; font-size: 14px; max-width: 26em; }
.site-footer h4 { color: var(--on-ink); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid oklch(100% 0 0 / .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.todo { color: oklch(82% 0.09 75); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(15% 0.02 230 / .05) 30%, oklch(15% 0.02 230 / .72)); }
.page-hero .wrap { position: relative; z-index: 1; padding: 48px 0; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: .03em; }
.page-hero p { margin-top: 12px; max-width: 36em; color: oklch(94% 0.006 240); font-size: 17px; }

/* Split hero: 照片有人臉時，文字放在照片旁邊而不是壓在上面 */
.page-hero.split { background: var(--ink); min-height: 420px; align-items: center; }
.page-hero.split img { left: 50%; width: 50%; }
.page-hero.split::after { display: none; }
.page-hero.split .wrap { padding: 64px 0; }
.page-hero.split .wrap > * { max-width: calc(50% - 48px); }
@media (max-width: 860px) {
  .page-hero.split { flex-direction: column; align-items: stretch; }
  .page-hero.split img { position: relative; left: 0; width: 100%; height: 240px; order: -1; }
  .page-hero.split .wrap { padding: 32px 0 40px; }
  .page-hero.split .wrap > * { max-width: none; }
}

/* ---------- LINE 報名 ---------- */
.line-ic { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.next-label { font-size: 13px; color: var(--muted); }
.next-date { font-weight: 700; color: var(--fg); font-size: 15px; }
.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.date-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 8px 8px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.date-list li.is-full { background: oklch(97% 0.004 240); }
.date-list li.is-full .dl-date { color: var(--muted); }
.date-list li.is-full .status { margin-right: 8px; }
.dl-date { font-weight: 700; font-size: 15px; }
.dl-date small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.date-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 12px 16px; border: 1px dashed var(--border); border-radius: var(--r-sm); font-weight: 700; }

.date-none { padding: 14px 16px; border: 1px dashed var(--border); border-radius: var(--r-sm); font-weight: 700; color: var(--muted); }
.date-booking { border-style: solid; background: var(--accent-soft); border-color: oklch(88% 0.04 257); color: var(--fg); font-weight: 500; }
.date-booking b { display: block; color: var(--accent-press); font-size: 17px; margin-bottom: 2px; }

/* 管理員登入入口：頁首右上角的低調圖示 */
.admin-entry { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: oklch(58% 0.015 240); }
.admin-entry svg { width: 20px; height: 20px; }
.admin-entry:hover { background: oklch(95% 0.006 240); color: var(--fg); }
.drawer-admin { align-self: center; margin-top: auto; padding-top: 24px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-actions .btn, .header-actions .admin-entry { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .proto-bar { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
main img { background-color: oklch(92% 0.006 240); }
[hidden] { display: none !important; }

/* ---------- 最新消息（首頁、列表、文章頁共用） ---------- */
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; color: var(--fg); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.news-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--field); overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-pin { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-1); }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-meta time { font-family: var(--font-mono); letter-spacing: .04em; }
.news-type { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); color: var(--fg); }
.news-type.t-open { background: var(--accent-soft); border-color: oklch(88% 0.04 257); color: var(--accent-press); }
.news-title { font-size: 19px; font-weight: 800; line-height: 1.4; text-wrap: pretty; }
.news-sum { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.big .news-media { aspect-ratio: 16 / 9; }
.news-card.big .news-title { font-size: clamp(22px, 2.2vw, 28px); }
.news-card.big .news-body { padding: 22px 26px 28px; }
.news-card.row { flex-direction: row; }
.news-card.row .news-media { aspect-ratio: auto; width: 42%; flex: none; min-height: 168px; }
.news-card.row .news-title { font-size: 17px; }
.news-home { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.news-home .side { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1080px) {
  .news-home { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-card.row .news-media { width: 34%; min-height: 128px; }
  .news-card.row .news-body { padding: 14px 14px 16px; gap: 6px; }
  .news-card.row .news-title { font-size: 16px; }
  .news-card.row .news-sum { display: none; }
  .news-grid { grid-template-columns: 1fr; }
}

/* 文章內文 */
.prose { font-size: 17px; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; font-weight: 800; line-height: 1.4; margin-top: 1.8em; }
.prose p, .prose ul { margin-bottom: 0; }
.prose ul { padding-left: 1.3em; display: grid; gap: .4em; }
.prose a { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--fg); }
.prose strong { font-weight: 800; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; border-radius: var(--r); display: block; background: var(--field); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px 22px 58px; position: relative; background: var(--field); border-radius: var(--r); font-size: 18px; font-weight: 600; }
.prose blockquote::before { content: "“"; position: absolute; left: 18px; top: 4px; font-family: Georgia, serif; font-size: 56px; line-height: 1; color: var(--accent); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.video-card { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); color: var(--fg); text-decoration: none !important; margin: 1.6em 0; }
.video-card:hover { box-shadow: var(--shadow-1); border-color: oklch(80% 0.01 240); }
.vc-media { position: relative; display: block; min-height: 124px; background: var(--ink); }
.vc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-media svg { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); }
.vc-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.vc-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.vc-go { color: var(--accent-press); font-weight: 700; font-size: 14px; }
.video-card.is-empty .vc-go { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .video-card { grid-template-columns: 1fr; }
  .vc-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ---------- 照片填滿框框：不靠「百分比高度」 ----------
   手機瀏覽器遇到百分比高度可能不照框框算，照片會變回原始大小、蓋住文字。
   這幾種框框都已經有固定比例，所以直接讓照片用絕對定位撐滿。 */
.art-cover { position: relative; }
.trip-media img, .news-media img, .ptrip-media img, .slot img, .gallery figure img, .art-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---- 護理師帶隊、等級說明、安全與帶隊、團隊頁 ---- */
.nurse-badge { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brand-orange); color: oklch(22% 0.05 56); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.nurse-badge svg { width: 14px; height: 14px; }
.trip-media .nurse-badge { position: absolute; right: 12px; top: 12px; min-height: 26px; font-size: 12px; box-shadow: var(--shadow-1); }
.trust-bar { background: var(--ink); color: var(--on-ink); }
.trust-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding: 14px 0; }
.trust-bar b { font-size: 16px; }
.trust-bar span { color: var(--on-ink-muted); font-size: 14px; }
.trust-bar a { color: var(--on-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trust-bar a:hover { color: #fff; background: oklch(100% 0 0 / .12); }
.nurse-lead { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: var(--r); background: oklch(96% 0.04 70); max-width: 44em; font-size: 15px; }
.nurse-lead b { color: oklch(40% 0.1 56); }
.lv-info { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cond-list { display: grid; gap: 10px; margin: 0 0 20px; }
.cond-list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cond-list dt { font-weight: 700; font-size: 14px; color: var(--muted); }
.cond-list dd { margin: 0; }
.safe-block { padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; }
.safe-block h3 { font-size: 17px; margin-bottom: 8px; }
.safe-block.nurse { border-color: var(--brand-orange); background: oklch(98% 0.02 70); }
.safe-block ul { margin: 0; padding-left: 20px; }
.safe-block li { margin-bottom: 4px; }
.todo-line { color: var(--warn); }
.cat-intro { margin: 0 0 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.cat-intro h2 { font-size: 22px; margin-bottom: 8px; }
.cat-intro dl { margin: 0; display: grid; gap: 10px; }
.cat-intro dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.cat-intro dd { margin: 2px 0 0; font-size: 14px; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lv-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lv-table td:first-child { white-space: nowrap; font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.member { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.member.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 280px 1fr; border-color: var(--brand-orange); }
.member.featured .member-photo { aspect-ratio: auto; min-height: 220px; }
.member-photo { aspect-ratio: 3/2; background: var(--accent-soft); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.member-body { padding: 22px; }
.member-body h3 { font-size: 22px; margin: 8px 0 4px; }
.member-body dl { margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; }
.member-body dt { font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.member-body dd { margin: 0; }
@media (max-width: 760px) { .cat-intro, .member.featured { grid-template-columns: 1fr; } .cond-list div { grid-template-columns: 1fr; gap: 2px; } }

.leader-sec { padding: 56px 0 24px; border-top: 1px solid var(--border); }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.leader { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.leader-photo { background: var(--accent-soft); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; min-height: 140px; position: relative; }
.leader-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader-body { padding: 16px 18px; }
.leader-body h3 { font-size: 18px; margin: 8px 0 2px; }
.leader-title { color: var(--muted); font-size: 14px; }
.leader-body dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.leader-body dt { font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.leader-body dd { margin: 0; }
.leader-note { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.safe-grid .safe-block { margin-bottom: 0; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .leader { grid-template-columns: 1fr; } .leader-photo { min-height: 160px; } }

.routes { margin-bottom: 36px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.routes h2 { font-size: 22px; font-weight: 800; }
.route-sub { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.reg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.reg-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.reg-tab small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.reg-tab:hover { background: var(--accent-soft); }
.reg-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.reg-tab[aria-selected="true"] small { color: var(--on-ink-muted); }
.route-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.route-card { text-align: left; padding: 12px 14px; min-height: 64px; border: 1px solid var(--border); border-radius: var(--r); background: var(--field); cursor: pointer; display: grid; gap: 2px; }
.route-card span { font-size: 13px; color: var(--muted); }
.route-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.route-card[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.route-detail { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.route-detail h3 { font-size: 18px; margin-bottom: 10px; }
.route-detail dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; }
.route-detail dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.route-detail dd { margin: 2px 0 0; }
.route-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- 專案頁（大版面） ---------- */
.proj-list { display: grid; gap: 72px; }
.proj-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.proj-row.flip .proj-media { order: 2; }
.proj-media { display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--field); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.proj-media:hover img { transform: scale(1.03); }
.proj-body h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.3; margin: 14px 0 12px; text-wrap: balance; }
.proj-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.proj-body p { color: var(--muted); font-size: 18px; line-height: 1.8; text-wrap: pretty; }
.proj-acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proj-region { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.proj-cta { padding: 40px 44px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.proj-cta h2 { font-size: 28px; font-weight: 800; }
.proj-cta p { color: var(--on-ink-muted); margin-top: 6px; max-width: 34em; }
.proj-hero { position: relative; color: #fff; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.proj-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(15% 0.02 230 / .15) 20%, oklch(15% 0.02 230 / .78)); }
.proj-hero .wrap { position: relative; z-index: 1; padding: 0 0 48px; }
.proj-hero .crumbs { color: oklch(92% 0.01 240); padding: 0 0 20px; }
.proj-hero h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.25; margin-top: 14px; text-wrap: balance; }
.proj-hero p { margin-top: 14px; max-width: 38em; font-size: 19px; color: oklch(95% 0.006 240); }
.proj-hero .news-type, .proj-hero .proj-region { background: oklch(100% 0 0 / .16); border-color: oklch(100% 0 0 / .4); color: #fff; }
.art-wide { width: min(880px, calc(100% - 48px)); margin: 56px auto; }
.prose-lg { font-size: 19px; line-height: 1.95; }
.prose-lg h2 { font-size: 30px; }
.proj-card { display: grid; gap: 14px; }
.proj-card-media { display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--field); }
.proj-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card-body { display: grid; gap: 8px; }
.proj-card-body b { font-size: 20px; }
.proj-card-body > span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .proj-list { gap: 52px; }
  .proj-row { grid-template-columns: 1fr; gap: 22px; }
  .proj-row.flip .proj-media { order: 0; }
  .proj-body p { font-size: 17px; }
  .proj-cta { padding: 30px 24px; }
  .proj-cta .btn { width: 100%; }
  .proj-hero { min-height: 380px; }
  .art-wide { width: calc(100% - 40px); margin: 40px auto; }
}
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.type-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.type-tabs button:hover { background: var(--field); border-color: oklch(80% 0.01 240); }
.type-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.type-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-empty { grid-column: 1 / -1; text-align: center; padding: 64px 20px; border: 1px dashed var(--border); border-radius: var(--r-lg); color: var(--muted); }
.news-empty b { display: block; color: var(--fg); font-size: 20px; margin-bottom: 6px; }
.not-found { text-align: center; padding: 96px 0; width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.not-found h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }
.reg-tab[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* 手機版：「想在哪個地區」縮小 */
@media (max-width: 640px) {
  .routes { padding: 14px 16px; margin-bottom: 24px; }
  .routes h2 { font-size: 17px; }
  .route-sub { font-size: 12.5px; margin: 2px 0 10px; line-height: 1.5; }
  .reg-tabs { gap: 6px; margin-bottom: 0; }
  .reg-tab { min-height: 40px; padding: 0 14px; font-size: 14px; }
}

/* 手機選單：logo 旁邊寫「首頁」 */
.drawer-home { display: inline-flex; align-items: center; gap: 12px; }
.drawer-home-txt { font-size: 18px; font-weight: 800; color: var(--fg); }
