/* 四頁版新增的元件。顏色、字體、緩動都沿用 style.css 的設定。 */

/* ── 頁首選單：目前頁有底線；往下捲收起、往上捲出現 ── */
.top { transition: color .8s ease, background-color .6s ease, padding .6s ease, transform .6s var(--ease); }
html[data-nav="hide"]:not(.menu-open) .top { transform: translateY(-170%); }
.top__nav a:not(.top__line) { position: relative; padding: 4px 0; }
.top__nav a:not(.top__line)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.top__nav a:not(.top__line):hover::after, .top__nav a[aria-current="page"]::after { transform: none; }
.top__nav a[aria-current="page"] { opacity: 1; }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 26px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 clamp(28px, 9vw, 80px); background: var(--ink); color: var(--paper);
  transform: translateY(-101%); transition: transform .8s cubic-bezier(.7, 0, .3, 1); visibility: hidden;
}
.menu-open .mmenu { transform: none; visibility: visible; }
.mmenu a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; text-decoration: none; font-weight: 200; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: .14em; opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .6s ease; }
.mmenu a small { font: italic 400 16px/1 var(--latin); color: var(--gold); letter-spacing: .05em; }
.mmenu a[aria-current="page"] { color: var(--gold); }
.menu-open .mmenu a { opacity: 1; transform: none; transition: opacity .8s ease calc(.3s + var(--i) * .08s), transform 1s var(--ease) calc(.3s + var(--i) * .08s); }
.mmenu .mmenu__line { margin-top: 26px; align-self: flex-start; font-size: 16px; font-weight: 400; letter-spacing: .3em; border: 1px solid var(--gold); border-radius: 999px; padding: 13px 28px 13px 32px; }
html.menu-open .top { color: var(--paper) !important; background: none !important; box-shadow: none !important; }
html.menu-open { overflow: hidden; }
@media (max-width: 720px) {
  .burger { display: block; }
  .top__nav { gap: 6px; }
  .top__line { padding: 6px 14px 6px 17px; }
}

/* ── 換頁布幕 ── */

/* ── 一天的路線、公司沿革：線往下畫 ── */
.route { position: relative; margin-top: clamp(50px, 7vw, 90px); --q: 0; }
/* 彎彎的路：底下一條淡虛線，走過的部分變成金色實線，圓點沿著路走 */
.route svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route__bg path { stroke: rgba(27,18,32,.28); stroke-dasharray: 2 9; }
.route__fg { clip-path: inset(0 0 calc((1 - var(--q)) * 100%) 0); }
.route__fg path { stroke: var(--gold-deep); stroke-width: 2; }
.route__dot { position: absolute; left: 0; top: 0; z-index: 2; width: 15px; height: 15px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 6px rgba(138,106,54,.16); will-change: transform; }
.route__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-deep); animation: ping 2.8s ease-out infinite; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { width: 41%; min-height: 230px; display: flex; flex-direction: column; justify-content: center; text-align: right; opacity: .18; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.stops li:nth-child(even) { margin-left: 59%; text-align: left; }
.stops li.on { opacity: 1; transform: none; }
.stops em { font-style: normal; font-size: 14px; letter-spacing: .4em; color: var(--gold-deep); }
.stops h3 { margin: .35em 0; font-weight: 400; font-size: clamp(1.45rem, 2.5vw, 2.05rem); letter-spacing: .06em; line-height: 1.45; }
.stops p { margin: 0; opacity: .82; }

/* ── 常見問題 ── */
.faq { max-width: 58rem; margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid rgba(27,18,32,.42); }
.faq__item { border-bottom: 1px solid rgba(27,18,32,.2); }
.faq__q { position: relative; width: 100%; padding: 27px 56px 27px 0; border: 0; background: none; text-align: left; font: inherit; font-size: clamp(1.14rem, 1.8vw, 1.45rem); letter-spacing: .06em; color: inherit; cursor: pointer; transition: padding .7s var(--ease); }
.faq__q:hover, .faq__item.open .faq__q { padding-left: 16px; }
.faq__q i { position: absolute; right: 8px; top: 50%; width: 15px; height: 15px; margin-top: -7px; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 1px; background: var(--gold-deep); transition: transform .7s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.open .faq__q i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { max-width: 38em; margin: 0; padding: 0 0 30px 16px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s ease; }
.faq__item.open .faq__a p { opacity: .86; transform: none; transition: opacity .9s ease .25s, transform 1s var(--ease) .25s; }

/* ── 關於：三個大字、車上的熱茶、客人的話 ── */
.lede { max-width: 26em; margin: 0; font-weight: 300; font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.8; letter-spacing: .06em; }

 

/* ── 行程頁：公告 ── */
.notice { padding: clamp(26px, 3.2vw, 44px); border: 1px solid rgba(27,18,32,.24); }
.js .notice.rv { transition: opacity 1.1s ease calc(var(--i, 0) * .11s), transform 1.3s var(--ease) calc(var(--i, 0) * .11s), border-color .6s ease; }
.notice:hover { border-color: var(--gold-deep); }
.notice time { font-size: 14px; letter-spacing: .22em; color: var(--gold-deep); }
.notice h3 { margin: .45em 0 .7em; font-weight: 400; font-size: 1.5rem; letter-spacing: .06em; }
.notice ul { margin: 0; padding-left: 1.2em; line-height: 1.95; }

/* ── 頁尾 ── */
.contact--foot { padding-top: 0; }
.contact--foot .foot { margin-top: 0; border-top: 0; padding-top: 70px; }
.foot p { margin: 0; }

@media (max-width: 720px) {
  .route svg { width: 56px; }
  .stops li, .stops li:nth-child(even) { width: auto; margin-left: 76px; min-height: 190px; text-align: left; }
                }

/* ── 四個數字：深色獨立段落，數字像里程表滾到定位，說明隨後浮現 ── */
.stats { padding: clamp(100px, 14vw, 200px) clamp(24px, 7vw, 120px); background: var(--ink); color: var(--paper); }
.stats h2 { margin: 0; font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.4; letter-spacing: .06em; }
.stats .kicker { color: var(--gold); }

/* ════════ 字體細修 ════════
   1. 數字一律用等高數字（原本 5、9 會往下掉，和中文排在一起高低不齊）。
   2. 最細的 200 字重只留給超大字，其餘用 300 以上，筆畫才不會斷。
   3. 小標、標籤放大一級並加重，拉寬的字距收一點。
   4. 米白底的區塊不用細化的反鋸齒，深色字才不會發虛。
   5. 段落避免最後一行只剩一兩個字；行首的全形標點不留空。 */
* , *::before, *::after { font-variant-numeric: lining-nums !important; }
body { text-rendering: optimizeLegibility; font-kerning: normal; text-spacing-trim: trim-start; }
p, li, dd { text-wrap: pretty; }

.mmenu a { font-weight: 300; }
.cap__title, .contact h2, .stats h2 { font-weight: 300; letter-spacing: .05em; }
.cap__body { font-weight: 400; }

.kicker, .cap__eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .32em; }
.cap__eyebrow i { font-size: 18px; }
.top__mark { font-size: 16px; letter-spacing: .34em; }
.top__nav { font-size: 14px; letter-spacing: .22em; }
.trip__meta { font-size: 14px; letter-spacing: .16em; }
.trip__region { font-weight: 500; letter-spacing: .28em; }
.tag { font-size: 13px; }
.stops em { font-size: 15px; font-weight: 500; letter-spacing: .3em; }
.foot { font-size: 14px; }
.draftbar { font-size: 13px; font-weight: 500; }
@media (max-width: 720px) {
  .top__mark { font-size: 15px; letter-spacing: .26em; }
  .kicker, .cap__eyebrow { letter-spacing: .26em; }
}

/* ════════ 主視覺除閃（2026-11-27） ════════
   使用者回報推近時一直閃、還有一條白帶橫過地圖。原因與處理：
   - 底片顆粒每秒跳好幾次、整個舞台跟著重畫 → 拿掉。
   - 圖片「慢慢呼吸」的縮放讓衛星照的細紋一直抖 → 拿掉，只留跟著捲動的推進。
   - 霧的圖層在換景時提早透出來，變成一條白帶 → 拿掉。
   - 地圖的淡出遮罩每一格都要重算 → 改成直接做進圖檔。
   - 地點標記跟著地圖一起被放大 → 反向縮放，維持原本大小。 */
.reel__stage::after { display: none; }
.fit > img { animation: none; }

/* ── 主視覺：山路影片與靜態圖（2026-11-28）── */
.fit > .still, .fit > .seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fit > .seq { object-fit: cover; pointer-events: none; }
.fit > .seq { opacity: 0; transition: opacity .6s ease; }
.fit > .seq.is-on { opacity: 1; }
/* 讓字和導覽列站得住：兩側和上下都壓一點暗 */
.scene--shade-lr::after { background:
  linear-gradient(180deg, rgba(20,12,24,.45) 0%, rgba(20,12,24,0) 20%, rgba(20,12,24,0) 76%, rgba(20,12,24,.42) 100%),
  linear-gradient(90deg, rgba(20,12,24,.58) 0%, rgba(20,12,24,.24) 28%, rgba(20,12,24,0) 44%, rgba(20,12,24,0) 56%, rgba(20,12,24,.24) 72%, rgba(20,12,24,.54) 100%); }
.reel__note { position: absolute; right: clamp(16px, 2.4vw, 36px); bottom: 18px; margin: 0; z-index: 6; font-size: 12px; letter-spacing: .08em; opacity: .7; }
@media (max-width: 720px) {
  .scene--shade-lr::after { background: linear-gradient(180deg, rgba(20,12,24,.55) 0%, rgba(20,12,24,0) 20%, rgba(20,12,24,0) 34%, rgba(20,12,24,.78) 70%, rgba(20,12,24,.94) 100%); }
  .reel__note { right: 24px; bottom: 20px; font-size: 11px; }
}

/* ── 精簡頁尾（2026-11-28）：一列品牌與選單，下面兩行小字 ── */
.foot--min { margin-top: 0; padding-top: 28px; border-top: 1px solid rgba(244,241,234,.14); font-size: 13px; line-height: 1.8; letter-spacing: .04em; opacity: 1; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px; margin-bottom: 10px; }
.foot__mark { text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .24em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; }
.foot__nav a { padding: 8px 0; text-decoration: none; opacity: .78; }
.foot__nav a:hover { opacity: 1; }
.foot--min .foot__note { margin: 0; opacity: .5; }

/* ── 線條圖示（四頁共用）：捲進畫面時一筆一筆描出來。圖示集內嵌在各頁最前面，原始檔 img/icons.svg ── */
.ic { width: 56px; height: 56px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--gold-deep); }
.js .rv .ic, .js .stops li .ic { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .rv.in .ic, .js .stops li.on .ic { animation: icdraw 1.9s var(--ease) calc(.2s + var(--i, 0) * .12s) both; }
@keyframes icdraw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } 99% { stroke-dasharray: 1; stroke-dashoffset: 0; } to { stroke-dasharray: none; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .rv .ic, .js .stops li .ic { stroke-dasharray: none; stroke-dashoffset: 0; } }
/* 有 hidden 屬性的元素一律不顯示：按鈕類的 display 設定會蓋掉瀏覽器預設，行程頁「再看更多」曾因此露出負數 */
[hidden] { display: none !important; }
