/* =====================================================================
   能高賽德克 山村遊 — 靜態網站樣式
   設計系統：見 開發文件/網站改版開發文件 的「設計系統」章節
   ===================================================================== */

:root {
  /* 色彩：取自 logo 與原站插畫 */
  --paper: #ffffff;          /* 紙白：主要底色（沿用原站） */
  --ink: #1b2a27;            /* 墨：插畫描線色，取代純黑 */
  --ink-2: #4a5754;          /* 次要文字 */
  --ink-3: #7c8784;          /* 註解、說明 */
  --red: #e8380d;            /* 織紅：logo 菱形紋，只做重點 */
  --brick: #b9503f;          /* 磚紅：插畫服飾 */
  --sand: #f3eee2;           /* 山砂：資訊底板 */
  --moss: #4b6b45;           /* 苔綠：地圖山林 */
  --line: #dcd8cc;           /* 分隔線 */

  --f-serif: "Noto Serif TC", "Songti TC", serif;
  --f-sans: "Noto Sans TC", "PingFang TC", "Heiti TC", sans-serif;
  --f-num: "Barlow Condensed", "Noto Sans TC", sans-serif;

  /* 字級：1.25 模組比例 */
  --t-xs: .8125rem; --t-sm: .875rem; --t-base: 1rem; --t-md: 1.125rem;
  --t-lg: 1.375rem; --t-xl: 1.75rem; --t-2xl: 2.25rem; --t-3xl: 3rem; --t-4xl: 4.25rem;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: var(--t-base); line-height: 1.85; letter-spacing: .02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: .04em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 16px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.serif { font-family: var(--f-serif); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 菱形紋：取自 logo「村」「遊」字上的紅色菱形，是全站唯一的裝飾記號 */
.diamond { display: inline-block; width: .62em; height: .62em; background: var(--red); transform: rotate(45deg); flex: none; }

/* ------------------------------------------------------------------ 按鈕 */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 46px; padding: 0 1.6em; background: var(--ink); color: #fff; font-size: var(--t-sm); letter-spacing: .12em; transition: background .25s var(--ease); }
.btn:hover { background: var(--red); }
.btn--line { background: none; color: var(--ink); padding: 0; min-height: 0; border-bottom: 1px solid currentColor; letter-spacing: .08em; }
.btn--line:hover { background: none; color: var(--red); }
.btn svg { width: 1em; height: 1em; }
.tag { display: inline-block; padding: .2em .9em; border-radius: 99px; background: var(--ink); color: #fff; font-size: var(--t-xs); letter-spacing: .1em; }

/* ------------------------------------------------------------------ 頁首 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: clamp(16px, 5.5vw, 86px); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__in { height: 68px; }
.logo img { width: clamp(150px, 14vw, 200px); }
.nav { display: flex; align-items: center; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav > li + li::before { content: "/"; color: var(--ink-3); margin-inline: clamp(12px, 2vw, 30px); font-weight: 300; }
.nav__link { position: relative; display: inline-flex; align-items: center; height: 44px; font-size: .9375rem; letter-spacing: .1em; color: var(--ink-2); transition: color .2s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav > li.is-current > .nav__link { color: var(--ink); }
.nav__link[aria-current="page"]::after, .nav > li.is-current > .nav__link::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; background: var(--red); transform: rotate(45deg); }
.nav__sub { position: absolute; top: 100%; left: 50%; min-width: 200px; padding: 10px 0; background: var(--paper); box-shadow: 0 12px 32px -12px rgba(27,42,39,.28); border-top: 2px solid var(--ink); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav > li:hover .nav__sub, .nav > li:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: flex; align-items: center; gap: 10px; padding: 9px 22px; font-size: var(--t-sm); letter-spacing: .08em; white-space: nowrap; color: var(--ink-2); }
.nav__sub a::before { content: ""; width: 5px; height: 5px; background: var(--line); transform: rotate(45deg); transition: background .2s; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.nav__sub a:hover::before, .nav__sub a[aria-current="page"]::before { background: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; }
  .site-header { backdrop-filter: none; background: var(--paper); }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); overflow-y: auto; padding: 8px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .menu-open .site-nav { transform: none; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  .nav > li + li::before { display: none; }
  .nav__link { height: 60px; font-size: var(--t-md); color: var(--ink); justify-content: space-between; width: 100%; }
  .nav__link[aria-current="page"]::after, .nav > li.is-current > .nav__link::after { display: none; }
  .nav__link[aria-expanded]::after { content: ""; position: static; width: 9px; height: 9px; margin: 0 4px 0 0; border-right: 1.5px solid; border-bottom: 1.5px solid; background: none; transform: rotate(45deg); transition: transform .25s; }
  .nav__link[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; min-width: 0; }
  .nav__sub.is-open { display: block; }
  .nav > li:hover .nav__sub, .nav > li:focus-within .nav__sub { transform: none; }
  .nav__sub a { padding: 10px 4px; font-size: var(--t-base); }
  html.scroll-lock { overflow: hidden; }
}

/* 左右側欄：原站的 NENGGAO SEEDIQ 直書與 scroll to top，加上閱讀進度 */
.rail { position: fixed; top: 50%; z-index: 40; transform: translateY(-50%); font-size: var(--t-xs); letter-spacing: .14em; color: var(--ink); writing-mode: vertical-rl; }
.rail--left { left: 22px; transform: translateY(-50%) rotate(180deg); }
.rail--right { right: 22px; display: flex; align-items: center; gap: 14px; transition: opacity .3s; }
.rail--right .rail__bar { position: relative; width: 1px; height: 72px; background: var(--line); }
.rail--right .rail__bar i { position: absolute; top: 0; left: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--ink); }
.rail--right:not(.is-visible) { opacity: 0; pointer-events: none; }
@media (max-width: 1280px) { .rail { display: none; } }

/* ------------------------------------------------------------------ 圖片 */
.ph { position: relative; overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--zoom img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--s, 1)); transition: transform .8s var(--ease); }
a:hover .ph--zoom { --s: 1.04; }

/* 視差捲動：data-speed 元素整體位移、data-inner 照片在框內位移（由 site.js 寫入 --py） */
[data-speed] { will-change: transform; }
[data-inner] { overflow: hidden; --s: 1.14; }
[data-inner] > img, [data-inner] .hero__slide img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--s)); will-change: transform; }
[data-inner] > .slideshow { inset: -8% 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
a:hover .ph--zoom[data-inner] { --s: 1.19; }
@media (prefers-reduced-motion: reduce) { [data-inner] { --s: 1; } }
[data-lightbox] { cursor: zoom-in; }

/* 輪播背景（ken burns 淡入） */
.slideshow { position: absolute; inset: 0; overflow: hidden; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.is-on { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ------------------------------------------------------------------ 共用標題列（原站「能高賽德克．山村遊／遊程 01」） */
.rule-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: var(--t-sm); font-weight: 700; letter-spacing: .1em; }
.rule-head .num { font-size: var(--t-md); }

/* ------------------------------------------------------------------ 首頁：主視覺輪播 */
.hero { --ts: clamp(2.5rem, 6.2vw, 5.5rem); position: relative; padding-top: clamp(40px, 6vw, 88px); }
/* 標題只有下緣約三分之一壓在照片上：跨在照片上緣，形成前後層次，不再像被色塊切到 */
.hero__top { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 40px; align-items: end; padding-inline: clamp(16px, 9vw, 130px); position: relative; z-index: 2; margin-bottom: calc(var(--ts) * -.34); will-change: transform; }
.hero__title { font-family: var(--f-serif); font-size: var(--ts); font-weight: 900; line-height: 1.1; letter-spacing: .06em; display: flex; align-items: baseline; gap: .3em; text-shadow: 0 .18em .5em rgba(27, 42, 39, .16); }
.hero__side { margin-bottom: calc(var(--ts) * .34 + clamp(16px, 2vw, 28px)); }
.hero__title .num { font-family: var(--f-num); font-size: .34em; font-weight: 500; color: var(--ink-2); letter-spacing: .06em; }
.hero__copy h2 { font-size: var(--t-md); line-height: 1.6; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
@media (min-width: 1081px) { .hero__copy h2 { white-space: nowrap; } }  /* 桌機版小標不換行 */
.hero__copy p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.8; }
.hero__stage { position: relative; aspect-ratio: 1920 / 800; overflow: hidden; background: var(--sand); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__swap { transition: opacity .45s ease, transform .45s var(--ease); }
.hero.is-swapping .hero__swap { opacity: 0; transform: translateY(8px); }
/* 主視覺導覽：放在文案下方，不壓在照片上 */
.hero__ctrl { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 2px; margin-top: 18px; }
.hero__count { font-size: var(--t-md); font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.hero__count span { color: var(--ink); }
.hero__ctrl > button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.hero__ctrl > button + button { border-left: 0; }
.hero__ctrl > button:hover { border-color: var(--ink); color: var(--red); }
.hero__dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.hero__dots button { position: relative; display: grid; gap: 6px; padding-top: 0; text-align: left; font-size: var(--t-xs); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; transition: color .2s; min-height: 32px; }
.hero__dots button span { order: 2; }
.hero__dots button::before { content: ""; order: 1; height: 2px; background: var(--line); }
.hero__dots button i { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--ink); }
.hero__dots button:hover { color: var(--ink); }
.hero__dots button.is-on { color: var(--ink); font-weight: 700; }
.hero__dots button.is-on i { animation: dotfill var(--dur, 6s) linear forwards; }
.hero.is-paused .hero__dots button.is-on i { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }
@media (max-width: 760px) {
  .hero__top { grid-template-columns: 1fr; gap: 16px; margin-bottom: calc(var(--ts) * -.34); }
  .hero__side { order: -1; margin-bottom: 8px; }
  .hero__stage { aspect-ratio: 4 / 3; }
}

/* 首頁：山村遊計劃 */
.plan { padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 100px); }
.plan__row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.plan__h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.6; padding: 40px clamp(0px, 4vw, 48px) 40px 0; align-self: center; }
.plan__box { position: relative; background: var(--ink); color: rgba(255,255,255,.82); font-size: var(--t-sm); line-height: 2; padding: clamp(32px, 4vw, 56px); margin-top: clamp(-120px, -8vw, 0px); }
.plan__box .explore { position: absolute; right: 0; top: 0; transform: translateY(-100%); background: var(--ink); color: #fff; padding: 12px 22px; font-size: var(--t-sm); letter-spacing: .1em; }
.plan__media { position: relative; aspect-ratio: 4 / 3; }
.plan__text { padding: clamp(32px, 5vw, 64px); align-self: center; }
.plan__text img.logo-mark { width: 210px; margin-bottom: 28px; }
.plan__text h2 { font-size: var(--t-lg); margin-bottom: 16px; }
.plan__text p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 28px; }
@media (max-width: 860px) { .plan__row { grid-template-columns: 1fr; } .plan__box { margin-top: 0; } .plan__box .explore { position: static; transform: none; display: inline-block; margin: -32px 0 20px; background: var(--red); } .plan__h2 { padding-right: 0; } .plan__text { padding-inline: 0; } }

/* 首頁：賽德克體驗 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.feature h2 { font-family: var(--f-serif); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 900; margin: 14px 0 24px; }
.feature p { color: var(--ink-2); }
.feature__links { display: grid; gap: 14px; margin-top: 28px; justify-items: start; }
.feature__links a { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.feature__links a:hover { color: var(--red); border-color: var(--red); }
.feature__links .diamond { width: 7px; height: 7px; }
.feature .ph { aspect-ratio: 1; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .ph { order: -1; } }

/* 影片：直接嵌入 YouTube 播放器（iframe 設 loading="lazy"，捲到附近才載入） */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 90vh; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 首頁：遊程推薦 */
.tours { padding-block: clamp(56px, 8vw, 110px) 40px; }
.tours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); }
.collage { position: relative; min-height: 520px; }
.collage .ph { position: absolute; box-shadow: 0 24px 48px -20px rgba(27,42,39,.35); }
.collage .c1 { left: 0; top: 18%; width: 52%; aspect-ratio: 4/3; }
.collage .c2 { right: 6%; top: 0; width: 34%; aspect-ratio: 1; }
.collage .c3 { left: 24%; top: 38%; width: 40%; aspect-ratio: 3/4; z-index: 2; border-bottom: 18px solid var(--paper); }
.collage .cap { position: absolute; left: 66%; top: 70%; z-index: 3; writing-mode: vertical-rl; font-size: var(--t-xs); letter-spacing: .3em; color: var(--ink-3); }
.tours h2 { font-family: var(--f-serif); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 900; margin-bottom: 24px; }
.tours__lead p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: .4em; }
.tours__lead p.em { color: var(--ink); font-weight: 700; margin-top: .8em; }
.acc { margin-block: 28px 32px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; text-align: left; font-size: var(--t-sm); font-weight: 700; letter-spacing: .06em; }
.acc__btn::after { content: "+"; font-family: var(--f-num); font-size: 1.4em; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); }
.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--red); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { font-size: var(--t-sm); color: var(--ink-2); }
.acc__panel > div > :last-child { padding-bottom: 18px; }
@media (max-width: 860px) { .tours__grid { grid-template-columns: 1fr; } .collage { min-height: 0; aspect-ratio: 1; } }

.tour-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px) clamp(56px, 8vw, 110px); }
.tour-card { position: relative; padding: clamp(28px, 3vw, 44px); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; background-color: var(--paper); transition: transform .4s var(--ease); }
.tour-card:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.tour-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); }
.tour-card > * { position: relative; }
.tour-card__no { position: absolute; right: clamp(16px, 3vw, 40px); top: 4px; font-family: var(--f-num); font-weight: 500; font-size: clamp(5rem, 9vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); }
.tour-card h3 { font-size: var(--t-lg); margin-bottom: 14px; }
.tour-card .kind { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 12px; }
.tour-card p { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 26px; }
.tour-card:hover { transform: translateY(-4px); }
.tour-card:hover .tour-card__no { -webkit-text-stroke-color: var(--red); }
@media (max-width: 760px) { .tour-cards { grid-template-columns: 1fr; } .tour-card:nth-child(2) { margin-top: 0; } }

/* 首頁：景點介紹（可拖曳橫向列） */
.portfolio { padding-block: 20px clamp(56px, 7vw, 100px); }
.rail-scroll { position: relative; }
.rail-scroll__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); cursor: grab; }
.rail-scroll__track::-webkit-scrollbar { display: none; }
.rail-scroll__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail-scroll__track.is-drag a { pointer-events: none; }
.p-card { flex: 0 0 clamp(240px, 28vw, 360px); scroll-snap-align: start; }
.p-card .ph { aspect-ratio: 16 / 15; }
.p-card h2 { font-size: var(--t-md); margin-top: 16px; }
.p-card span { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .08em; }
.rail-scroll__nav { display: flex; gap: 6px; margin-top: 18px; }
.rail-scroll__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.rail-scroll__nav button:hover { border-color: var(--ink); }
.rail-scroll__nav button:disabled { opacity: .35; cursor: default; }
.drag-cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; font-size: 11px; line-height: 1.5; letter-spacing: .1em; pointer-events: none; transform: scale(0); transition: transform .25s var(--ease); }
.drag-cursor.is-on { transform: scale(1); }
@media (hover: none) { .drag-cursor { display: none; } }

/* 首頁：最新消息 */
.news { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 120px); }
.news h2.big { font-family: var(--f-serif); font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 900; margin: 32px 0 36px; }
.news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(24px, 4vw, 48px); }
.n-card .ph { aspect-ratio: 3 / 2; }
.n-card__meta { display: flex; gap: 8px; margin-top: 14px; font-size: var(--t-xs); color: var(--ink-3); }
.n-card h3 { font-size: var(--t-md); margin: 6px 0 10px; transition: color .2s; }
.n-card:hover h3 { color: var(--red); }
.n-card p { font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 760px) { .news__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ 頁尾 */
.site-footer { position: relative; padding-top: clamp(80px, 12vw, 180px); }
.site-footer__img { position: absolute; right: 0; top: 0; width: 66%; height: 78%; }
.site-footer__panel { position: relative; width: min(100%, 760px); background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px) clamp(24px, 10vw, 150px); }
.site-footer__panel .flogo { width: min(260px, 60%); margin-left: auto; margin-bottom: 24px; }
.site-footer__panel h2 { color: #fff; font-family: var(--f-serif); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.6; margin-bottom: 18px; }
.site-footer__panel p { font-size: var(--t-sm); line-height: 1.9; margin-bottom: 40px; }
.site-footer__panel .sponsor { width: 210px; }
@media (max-width: 760px) { .site-footer { padding-top: 0; } .site-footer__img { position: relative; width: 100%; height: auto; aspect-ratio: 3/2; } }

/* ------------------------------------------------------------------ 景點／體驗內頁 */
.p-hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; color: #fff; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--ink); }
.p-hero::after { content: ""; position: absolute; inset: 0; background: rgba(15,25,22,.32); }
.p-hero__in { position: relative; z-index: 2; padding-inline: var(--gutter); }
.p-hero h1 { font-family: var(--f-serif); font-size: clamp(3rem, 8vw, 6.25rem); font-weight: 900; letter-spacing: .08em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.p-hero .sub { display: block; margin-top: 18px; font-size: clamp(1rem, 2vw, 1.625rem); font-weight: 400; letter-spacing: .12em; }
.p-hero__scroll { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: var(--t-xs); letter-spacing: .14em; }
.p-hero__scroll i { width: 1px; height: 40px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.p-hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.p-intro { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(64px, 9vw, 120px); }
.p-intro h2 { font-size: var(--t-lg); }
.p-intro p { color: var(--ink-2); }
@media (max-width: 760px) { .p-intro { grid-template-columns: 1fr; } }

.p-sec { padding-block: clamp(56px, 8vw, 110px); }
.p-sec__text h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.p-sec__text .subt { font-weight: 500; margin-bottom: 18px; color: var(--ink); }
.p-sec__text p { color: var(--ink-2); font-size: var(--t-md); line-height: 1.9; }
.band { height: clamp(260px, 52vw, 640px); overflow: hidden; }
.band img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band--trim img { width: 104%; max-width: none; height: 124%; margin-left: -2%; }  /* 原圖帶白框時，略放大裁到畫面外 */

/* 圖片輪播：中間主圖＋左右露出 */
.carousel { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.carousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - 1150px) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - 1150px) / 2)); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 min(1150px, 100vw - 2 * var(--gutter)); aspect-ratio: 16 / 9; scroll-snap-align: start; }
.carousel__ui { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.carousel__ui button.arrow { width: 44px; height: 44px; display: grid; place-items: center; }
.carousel__ui button.arrow:hover { color: var(--red); }
.carousel__dots { display: flex; gap: 0; }
.carousel__dots button { width: 22px; height: 44px; display: grid; place-items: center; }
.carousel__dots button::after { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.carousel__dots button.is-on::after { width: 18px; background: var(--ink); }
.carousel__count { font-family: var(--f-num); font-size: var(--t-sm); color: var(--ink-3); min-width: 3.5em; text-align: center; }

/* 底部膠囊索引（原站黑色 pill，加上目前位置） */
.pill-nav { position: fixed; z-index: 45; left: 50%; bottom: 20px; transform: translate(-50%, 140%); width: min(1380px, calc(100% - 32px)); background: var(--ink); border-radius: 99px; transition: transform .45s var(--ease); }
.pill-nav.is-visible { transform: translate(-50%, 0); }
.pill-nav.is-past, .pill-nav.is-avoid { transform: translate(-50%, 140%); }
/* 首頁版本：寬度依內容 */
.pill-nav--compact { width: auto; max-width: calc(100% - 32px); }
.pill-nav--compact ul { justify-content: center; gap: 4px; padding: 4px 10px; }
.pill-nav--compact a { padding: 10px 18px; }
@media (max-width: 560px) { .pill-nav--compact ul { justify-content: flex-start; } .pill-nav--compact a { padding: 10px 12px; } }
.pill-nav ul { display: flex; justify-content: space-around; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.pill-nav ul::-webkit-scrollbar { display: none; }
.pill-nav a { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; font-size: var(--t-sm); letter-spacing: .06em; color: rgba(255,255,255,.62); transition: color .2s; }
.pill-nav a::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.pill-nav a:hover { color: #fff; }
.pill-nav a.is-on { color: #fff; }
.pill-nav a.is-on::before { transform: rotate(45deg) scale(1); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.pager a { padding: 36px var(--gutter); display: grid; gap: 4px; transition: background .25s; }
.pager a:hover { background: var(--sand); }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager small { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .14em; }
.pager span { font-weight: 700; font-size: var(--t-md); }

/* ------------------------------------------------------------------ 飲食／植物 */
.split { display: grid; grid-template-columns: minmax(0, 42%) 1fr; }
.split__imgs { display: grid; gap: 10px; }
.split__imgs .ph { aspect-ratio: 3 / 2; }
.split__text { position: relative; }
.split__sticky { position: sticky; top: var(--header-h); padding: clamp(40px, 7vw, 96px) clamp(var(--gutter), 9vw, 150px) 60px clamp(var(--gutter), 6vw, 96px); }
.split__text h6 { font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; letter-spacing: .14em; margin-bottom: 12px; }
.split__text h1 { font-family: var(--f-serif); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 900; line-height: 1.35; margin-bottom: 26px; }
.split__text p { font-size: var(--t-sm); color: var(--ink-2); }
.dish { margin-top: 30px; display: grid; gap: 8px; }
.dish .acc__btn { background: var(--sand); padding: 14px 18px; font-size: var(--t-sm); }
.dish .acc__btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.dish .acc__btn[aria-expanded="true"]::after { color: #fff; }
.dish .acc__panel p { padding: 14px 18px 6px; }
.dish .acc__item { border: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__text { order: -1; } .split__sticky { position: static; padding-inline: var(--gutter); } .split__imgs { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ 文章 */
.article { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 100px); }
.article h1 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin: 16px 0 10px; }
.article .meta { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 28px; }
.article .lead { aspect-ratio: 16/9; margin-bottom: clamp(32px, 5vw, 56px); }
.prose { font-size: var(--t-md); color: var(--ink-2); }
.prose h4 { color: var(--ink); font-size: var(--t-lg); margin: 2em 0 .6em; }
.prose figure { margin: 2.2em -6%; }
.prose figure .ph { aspect-ratio: 16/10; }
.prose figcaption { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-3); text-align: center; }
.contact-note { margin-top: 48px; padding: 24px 28px; background: var(--sand); font-size: var(--t-sm); }
.contact-note h4 { font-size: var(--t-md); margin: 0 0 8px; }
.placeholder { display: inline-block; padding: 0 .5em; border: 1px dashed var(--ink-3); color: var(--ink-3); font-size: .92em; }

/* ------------------------------------------------------------------ 關於 */
.about-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.about-head h1 { font-family: var(--f-serif); font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: .08em; margin-top: 18px; }
.about-head h1 small { display: block; font-family: var(--f-sans); font-size: clamp(1rem, 1.8vw, 1.375rem); font-weight: 500; letter-spacing: .1em; color: var(--ink-2); margin-top: 6px; }
.about-hero { position: relative; aspect-ratio: 1920 / 760; }
/* 關於頁 SEEDIQ BALE：三張照片重疊拼貼＋右側文案（同原站） */
.bale { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.collage--bale { min-height: 0; aspect-ratio: 1 / .92; }
.collage--bale .c1 { left: 0; top: 7%; width: 40%; aspect-ratio: 3 / 4; }
.collage--bale .c2 { right: 0; top: 0; width: 44%; aspect-ratio: 3 / 2; }
.collage--bale .c3 { left: 26%; top: 24%; width: 52%; aspect-ratio: 5 / 7; border-bottom: 0; }
.collage--bale .cap { left: calc(78% + 10px); top: auto; bottom: 4%; }
.bale > div:last-child { padding-top: clamp(0px, 2vw, 24px); }
.bale h6 { font-size: var(--t-xs); letter-spacing: .3em; color: var(--red); font-weight: 700; }
.bale h2 { font-family: var(--f-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 10px 0 24px; }
.bale p { color: var(--ink-2); }
@media (max-width: 760px) { .bale { grid-template-columns: 1fr; } .collage--bale { aspect-ratio: 1 / 1.05; } }

/* ------------------------------------------------------------------ 聯絡 */
.contact-hero { aspect-ratio: 1920/700; margin-top: 28px; }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 110px); padding-block: clamp(48px, 7vw, 96px); }
.contact h2.big { font-family: var(--f-serif); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 900; margin-bottom: 24px; }
.contact__main { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.contact__main h4 { font-size: var(--t-md); margin-bottom: 8px; }
.contact__main .tel { font-size: var(--t-sm); }
.contact__main .tel a { font-weight: 700; border-bottom: 1px solid; }
.contact__main .hours { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 20px; }
.qr { width: 112px; height: 112px; margin-top: 18px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.qr--empty { display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--ink-3); border-style: dashed; line-height: 1.5; }
.org-group { border-top: 3px dotted var(--ink); padding-block: 26px; }
.org-group h3 { font-size: var(--t-lg); margin-bottom: 8px; }
.org { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.org + .org { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.org__name { font-size: var(--t-sm); font-weight: 500; }
.org__person { font-weight: 700; margin: 6px 0 12px; }
.org .btn { min-height: 40px; }
.org__qr { display: grid; justify-items: center; gap: 8px; font-size: var(--t-xs); }
.org__qr .qr { margin-top: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__main { position: static; } }

/* ------------------------------------------------------------------ 燈箱 */
html.scroll-lock { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,22,20,.94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; font-family: var(--f-num); letter-spacing: .1em; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { color: #fff; width: 48px; height: 48px; display: grid; place-items: center; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
.lightbox__thumbs { display: flex; gap: 6px; justify-content: center; padding: 12px; overflow-x: auto; }
.lightbox__thumbs button { width: 64px; height: 44px; opacity: .45; flex: none; }
.lightbox__thumbs button.is-on { opacity: 1; outline: 2px solid var(--red); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ 動態：只有一次頁面載入的進場，其他互動皆為使用者觸發 */
.intro-anim > * { opacity: 0; transform: translateY(14px); animation: introUp .9s var(--ease) forwards; }
.intro-anim > *:nth-child(2) { animation-delay: .12s; } .intro-anim > *:nth-child(3) { animation-delay: .24s; }
@keyframes introUp { to { opacity: 1; transform: none; } }
