/* ==========================================================================
   歐洲台灣醫事聯盟 EFTHA — 網站樣式
   設計靈感：台灣原住民族織紋（泰雅族菱形「祖靈之眼」、排灣族人形牽手紋、
   鋸齒三角紋），以大地紅、薑黃、苔綠與米白紙色，營造溫暖、不分你我的照護感。
   本站刻意不使用任何國旗元素。
   ========================================================================== */

:root {
  --paper: #fbf5ea;
  --paper-2: #f3e6d0;
  --paper-3: #ead8bb;
  --card: #fffaf2;
  --ink: #2a1e17;
  --ink-soft: #5d4b3f;
  --ink-mute: #8a7564;
  --red: #a8322a;        /* 薯榔紅 */
  --red-deep: #7d231d;
  --ochre: #c98a2b;      /* 薑黃 */
  --ochre-soft: #f0d29a;
  --moss: #3d6a4e;       /* 苔綠：健康與山林 */
  --moss-soft: #d8e6d4;
  --night: #221a15;      /* 頁尾深色 */
  --line: rgba(42, 30, 23, .14);
  --shadow: 0 1px 2px rgba(42,30,23,.06), 0 8px 24px rgba(42,30,23,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;

  /* 紋樣（以 mask 方式上色，可隨主題變色） */
  --pat-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 1 47 12 24 23 1 12Z' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M24 6.5 35.5 12 24 17.5 12.5 12Z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M24 10 28 12 24 14 20 12Z'/%3E%3Cpath d='M0 0h6L0 3zM48 0h-6l6 3zM0 24h6l-6-3zM48 24h-6l6-3z'/%3E%3C/svg%3E");
  --pat-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='7' r='4.2'/%3E%3Cpath d='M0 17.5h40v3H0z'/%3E%3Cpath d='M17 12.5h6l2.6 15h-11.2z'/%3E%3Cpath d='M15.5 27h3l-3.2 11h-3.3zM21.5 27h3l3.5 11h-3.3z'/%3E%3C/svg%3E");
  --pat-zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 12 6 0 12 12zM12 0h12L18 12z'/%3E%3C/svg%3E");
  --pat-weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z'/%3E%3Cpath d='M32 16 48 32 32 48 16 32Z'/%3E%3C/g%3E%3Cpath d='M32 27 37 32 32 37 27 32Z'/%3E%3Ccircle cx='0' cy='0' r='2.4'/%3E%3Ccircle cx='64' cy='0' r='2.4'/%3E%3Ccircle cx='0' cy='64' r='2.4'/%3E%3Ccircle cx='64' cy='64' r='2.4'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1612; --paper-2: #261d17; --paper-3: #33271f; --card: #2a2019;
    --ink: #f4e9da; --ink-soft: #d9c7b2; --ink-mute: #a8927d;
    --red: #e0675a; --red-deep: #f08a7e; --ochre: #e6ab4f; --ochre-soft: #5a4220;
    --moss: #8cc29e; --moss-soft: #22362a; --night: #120d0a;
    --line: rgba(244,233,218,.14);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --paper: #1d1612; --paper-2: #261d17; --paper-3: #33271f; --card: #2a2019;
  --ink: #f4e9da; --ink-soft: #d9c7b2; --ink-mute: #a8927d;
  --red: #e0675a; --red-deep: #f08a7e; --ochre: #e6ab4f; --ochre-soft: #5a4220;
  --moss: #8cc29e; --moss-soft: #22362a; --night: #120d0a;
  --line: rgba(244,233,218,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.85; letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.35; margin: 0 0 .5em; letter-spacing: .04em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.mute { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }

/* ---------- 紋樣帶 ---------- */
.band { height: 22px; background: var(--red); -webkit-mask: var(--pat-diamond) repeat-x center / 44px 22px; mask: var(--pat-diamond) repeat-x center / 44px 22px; }
.band.ochre { background: var(--ochre); }
.band.moss { background: var(--moss); }
.band-people { height: 36px; background: var(--ink-soft); opacity: .55; -webkit-mask: var(--pat-people) repeat-x center / 36px 36px; mask: var(--pat-people) repeat-x center / 36px 36px; }
.band-zig { height: 10px; background: var(--ochre); -webkit-mask: var(--pat-zigzag) repeat-x center / 20px 10px; mask: var(--pat-zigzag) repeat-x center / 20px 10px; }
.weave-bg { position: relative; isolation: isolate; }
.weave-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ochre); opacity: .09;
  -webkit-mask: var(--pat-weave) repeat 0 0 / 64px 64px; mask: var(--pat-weave) repeat 0 0 / 64px 64px;
}

/* ---------- 頁首 ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .band-zig { height: 6px; -webkit-mask-size: 12px 6px; mask-size: 12px 6px; }
.head-row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .08em; white-space: nowrap; }
.brand-text span { font-size: .72rem; color: var(--ink-mute); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--red); color: #fff; }
.menu-btn { white-space: nowrap; flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.theme-btn { flex: none; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.15rem; cursor: pointer; padding: 6px; border-radius: 8px; line-height: 1; }
.theme-btn:hover { background: var(--paper-2); }
@media (min-width: 1080px) {
  .nav { display: flex; gap: 2px; }
  .menu-btn { display: none; }
}
.drawer { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.drawer.open { display: block; }
.drawer a { display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.drawer a[aria-current="page"] { color: var(--red); font-weight: 700; }
@media (min-width: 1080px) { .drawer { display: none !important; } }

/* ---------- 按鈕、標籤 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-moss { background: var(--moss); color: #fff; }
.btn-moss:hover { color: #fff; filter: brightness(1.08); }
.tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); letter-spacing: .04em; white-space: nowrap; }
.tag.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.tag.moss { background: var(--moss-soft); color: var(--moss); }
.tag.ochre { background: color-mix(in srgb, var(--ochre) 20%, transparent); color: color-mix(in srgb, var(--ochre) 70%, var(--ink)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; letter-spacing: .22em; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 10px; background: currentColor; -webkit-mask: var(--pat-zigzag) repeat-x center / 10px 5px; mask: var(--pat-zigzag) repeat-x center / 10px 5px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; }
[lang="nan-Latn"] { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", Arial, sans-serif; }
.taigi { font-family: var(--serif); color: var(--moss); }
.taigi i { font-style: normal; font-size: .82em; color: var(--ink-mute); letter-spacing: .04em; margin-left: .4em; }

/* ---------- 首頁主視覺 ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 72px 0 88px; } }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-frame { position: relative; padding: 14px; }
.mosaic-frame::before { content: ""; position: absolute; inset: 0; border-radius: calc(var(--radius) + 10px); background: var(--red); opacity: .9; -webkit-mask: var(--pat-diamond) repeat 0 0 / 30px 15px; mask: var(--pat-diamond) repeat 0 0 / 30px 15px; z-index: -1; }
.mosaic-frame { isolation: isolate; }

/* ---------- 數字 ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--red); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 999px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-top: 4px; }
.card .num { font-family: var(--serif); font-size: 2.4rem; color: var(--ochre); line-height: 1; display: block; margin-bottom: 8px; }
.card.accent { border-top: 6px solid var(--red); }
.card.accent.moss { border-top-color: var(--moss); }
.card.accent.ochre { border-top-color: var(--ochre); }
.why-card { position: relative; overflow: hidden; }
.why-card .motif { width: 56px; height: 28px; background: var(--red); -webkit-mask: var(--pat-diamond) no-repeat center / contain; mask: var(--pat-diamond) no-repeat center / contain; margin-bottom: 14px; }
.why-card.moss .motif { background: var(--moss); }
.why-card.ochre .motif { background: var(--ochre); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.section-head p { margin: 0; max-width: 40em; color: var(--ink-soft); }
.alt { background: var(--paper-2); }

/* 圖片卡 */
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; min-width: 0; }
button.pcard { font: inherit; text-align: left; cursor: pointer; padding: 0; width: 100%; letter-spacing: inherit; line-height: inherit; }
.pcard .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); position: relative; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .ph img { transform: scale(1.04); }
.pcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .body h3 { font-size: 1.08rem; margin: 0; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; color: var(--ink-mute); }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 62px; height: 62px; border-radius: 50%; background: color-mix(in srgb, var(--red) 92%, transparent); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.play span::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: .76rem; padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

/* ---------- 新聞列表 ---------- */
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 1fr; gap: 6px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.news-item:hover { border-color: var(--red); transform: translateY(-1px); color: inherit; }
@media (min-width: 760px) { .news-item { grid-template-columns: 130px 1fr auto; align-items: start; } }
.news-item time { font-family: var(--serif); color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1.05rem; margin: 0 0 4px; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.news-item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.news-item .src { font-size: .82rem; color: var(--ink-mute); white-space: nowrap; }
.news-item .arrow { color: var(--red); font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 即將舉行 */
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.event .date { text-align: center; border-radius: 12px; background: var(--red); color: #fff; padding: 10px 6px; line-height: 1.2; font-family: var(--serif); }
.event .date b { display: block; font-size: 1.7rem; }
.event .date small { font-size: .78rem; letter-spacing: .08em; opacity: .9; }
.event.moss .date { background: var(--moss); }
.event.ochre .date { background: var(--ochre); }
.event h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.event p { margin: 0 0 6px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- 時間軸 ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 4px; background: var(--ochre); opacity: .55; -webkit-mask: var(--pat-zigzag) repeat-y center / 4px 8px; }
.timeline li { position: relative; padding: 0 0 30px 48px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 24px; height: 24px; background: var(--red); -webkit-mask: var(--pat-diamond) no-repeat center / 46px 24px; mask: var(--pat-diamond) no-repeat center / 46px 24px; }
.timeline .when { font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 1.05rem; }
.timeline h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.timeline p { color: var(--ink-soft); margin-bottom: .5em; }
.timeline .thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.timeline .thumbs img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
@media (min-width: 900px) {
  .timeline::before { left: 50%; margin-left: -2px; }
  .timeline li { width: 50%; padding: 0 44px 40px 0; text-align: right; }
  .timeline li::before { left: auto; right: -12px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 44px; text-align: left; }
  .timeline li:nth-child(even)::before { right: auto; left: -12px; }
  .timeline li .thumbs { justify-content: flex-end; }
  .timeline li:nth-child(even) .thumbs { justify-content: flex-start; }
}

/* ---------- 人物 ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.person .avatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; color: #fff; background: var(--red); position: relative; }
.person .avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed var(--ochre); }
.person:nth-child(4n+2) .avatar { background: var(--moss); }
.person:nth-child(4n+3) .avatar { background: var(--ochre); }
.person:nth-child(4n+4) .avatar { background: var(--ink-soft); }
.person b { display: block; font-size: 1.08rem; }
.person span { display: block; font-size: .88rem; color: var(--ink-mute); }

/* ---------- 相簿 ---------- */
.masonry { columns: 2 160px; column-gap: 10px; }
@media (min-width: 760px) { .masonry { columns: 3 220px; } }
@media (min-width: 1100px) { .masonry { columns: 4 240px; } }
.masonry button { all: unset; display: block; margin: 0 0 10px; break-inside: avoid; cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; background: var(--paper-3); width: 100%; }
.masonry button:focus-visible { outline: 3px solid var(--ochre); }
.masonry img { width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.masonry button:hover img { transform: scale(1.03); filter: saturate(1.08); }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 46px 0 16px; }
.album-head h2 { margin: 0; font-size: 1.5rem; }

/* 燈箱 */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 12, 9, .97); display: none; align-items: center; justify-content: center; padding: 56px 12px 72px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: #f4e9da; font-size: .95rem; }
.lightbox .lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-close { top: 10px; right: 12px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* 影片視窗 */
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(18,12,9,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { width: min(1000px, 100%); background: var(--night); border-radius: 14px; overflow: hidden; color: #f4e9da; }
.modal-box .screen { aspect-ratio: 16 / 9; background: #000; position: relative; }
.modal-box .screen video, .modal-box .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-box .screen .missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #e8d9c5; }
.modal-box .info { padding: 16px 20px 20px; display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.modal-box h3 { color: #f4e9da; margin: 0 0 4px; font-size: 1.1rem; }
.modal-box p { margin: 0; font-size: .92rem; color: #cdb9a3; }
.modal-box .x { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; flex: none; }

/* ---------- 頁面標頭 ---------- */
.page-hero { padding: 54px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .85rem; color: var(--ink-mute); margin-bottom: 12px; }
.crumbs a { color: var(--ink-mute); }

/* 內文 */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.callout { border-left: 6px solid var(--ochre); background: var(--card); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout.red { border-left-color: var(--red); }
.callout.moss { border-left-color: var(--moss); }
.quote { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.6; color: var(--ink); margin: 0; }
.two-col { display: grid; gap: 36px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.two-col.wide-left { }
@media (min-width: 900px) { .two-col.wide-left { grid-template-columns: 1.3fr .7fr; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.photo img { width: 100%; height: auto; }
.photo figcaption { font-size: .82rem; color: var(--ink-mute); padding: 8px 12px; background: var(--card); }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.fact-list li::before { content: ""; width: 20px; height: 20px; margin-top: 6px; background: var(--moss); -webkit-mask: var(--pat-diamond) no-repeat center / 38px 20px; mask: var(--pat-diamond) no-repeat center / 38px 20px; }

/* 年度行程 */
.schedule { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.schedule li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.schedule li b { color: var(--moss); font-family: var(--serif); }
.year-block { display: grid; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .year-block { grid-template-columns: 1fr 1fr; gap: 44px; } }
.year-label { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--red); line-height: 1; margin: 0 0 6px; opacity: .9; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.strip button { all: unset; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--paper-3); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* CTA */
.cta { background: var(--moss); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 40px 24px; position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 760px) { .cta { padding: 56px; } }
.cta::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .08; z-index: -1; -webkit-mask: var(--pat-weave) repeat 0 0 / 72px 72px; mask: var(--pat-weave) repeat 0 0 / 72px 72px; }
.cta h2, .cta h3 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); }
.cta .btn-line { border-color: #fff; color: #fff; }
.cta .btn-line:hover { background: #fff; color: var(--moss); }
.cta-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta .path { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 24px; }
:root[data-theme="dark"] .cta, :root:not([data-theme="light"]) .cta { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #2c4a37; } }
:root[data-theme="dark"] .cta { background: #2c4a37; }

/* 籌備中 */
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ochre); letter-spacing: .1em; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.iv-card { background: var(--card); border: 1px dashed color-mix(in srgb, var(--ochre) 60%, var(--line)); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.iv-card .ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); position: relative; }
.iv-card .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ochre); -webkit-mask: var(--pat-people) repeat-x center / 26px 26px; mask: var(--pat-people) repeat-x center / 26px 26px; opacity: .55; }

/* ---------- 頁尾 ---------- */
.site-foot { background: var(--night); color: #d9c7b2; margin-top: 0; }
.site-foot .band-people { background: var(--ochre); opacity: .7; }
.foot-grid { display: grid; gap: 30px; padding: 46px 0 30px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 { color: #f4e9da; font-size: 1rem; margin-bottom: 12px; }
.site-foot a { color: #f0d29a; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .94rem; }
.site-foot .fine { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 30px; font-size: .8rem; color: #a8927d; line-height: 1.7; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; }
.foot-brand b { font-family: var(--serif); color: #f4e9da; font-size: 1.1rem; display: block; }

/* 進場動畫 */
.js .reveal { opacity: .35; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .soon::before { animation: none; } }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 14px; }
.hide { display: none !important; }
