/* ===========================================================
   京都 · 古寺與和味 — 深色電影感 ＋ 京都紅金
   完整版（桌機＋手機）
   =========================================================== */

:root{
  --ink:#0c0a09; --ink-2:#141010; --ink-3:#1c1715;
  --cream:#f4ece0; --sand:#d4c7b3; --mute:#9d8f7c;
  --red:#c2362f; --red-deep:#9d2233;
  --gold:#c8a04a; --gold-soft:rgba(200,160,74,.30); --gold-line:rgba(200,160,74,.22);
  --glass:rgba(24,19,17,.55); --hair:rgba(244,236,224,.12);
  --maxw:1240px; --ease:cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--ink); color:var(--cream);
  font-family:"Noto Sans TC",system-ui,sans-serif; font-weight:400;
  line-height:1.85; letter-spacing:.02em; overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--red); color:#fff; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding-left:clamp(20px,5vw,56px); padding-right:clamp(20px,5vw,56px); }
/* App 分畫面：切到某畫面時對齊視窗頂端（已無固定頂部導覽列） */
section[id], article[id], div[id], footer[id]{ scroll-margin-top:0; }

/* ====================== 導覽列 ====================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px clamp(20px,5vw,56px);
  transition:background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
.nav.is-scrolled{
  background:rgba(12,10,9,.82); backdrop-filter:blur(14px) saturate(120%);
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  padding-top:16px; padding-bottom:16px; border-bottom:1px solid var(--hair);
}
.nav__brand{ display:flex; align-items:baseline; gap:10px; }
.nav__brand-jp{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:22px; letter-spacing:.18em; color:var(--cream); }
.nav__brand-sub{ font-size:11px; letter-spacing:.42em; color:var(--gold); text-transform:uppercase; }
.nav__links{ display:flex; gap:clamp(20px,3vw,42px); }
.nav__links a{ position:relative; font-size:14px; letter-spacing:.22em; color:var(--sand); padding:4px 0; transition:color .3s; }
.nav__links a::after{ content:""; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--gold); transition:width .35s var(--ease); }
.nav__links a:hover{ color:var(--cream); }
.nav__links a:hover::after{ width:100%; }
.nav__chk{ position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.nav__toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.nav__toggle span{ display:block; width:24px; height:1.5px; background:var(--cream); transition:.3s var(--ease); }

/* ====================== 首屏 Hero ====================== */
.hero{ position:relative; min-height:100svh; display:flex; flex-direction:column; justify-content:center; padding:0 clamp(20px,5vw,56px); overflow:hidden; }
.hero__bg{ position:absolute; inset:0; background-size:cover; background-position:center 38%; transform:scale(1.06); animation:heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom{ to{ transform:scale(1); } }
.hero__scrim{ position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(10,8,7,.74) 0%,rgba(10,8,7,.18) 32%,rgba(10,8,7,.10) 55%,rgba(10,8,7,.86) 100%),radial-gradient(120% 80% at 50% 60%,transparent 40%,rgba(10,8,7,.55) 100%); }
.hero__ghost{ position:absolute; left:50%; top:46%; transform:translate(-50%,-50%); font-family:"Cormorant Garamond",serif; font-weight:600; font-size:clamp(120px,26vw,460px); letter-spacing:.06em; color:rgba(244,236,224,.05); white-space:nowrap; pointer-events:none; user-select:none; }
.hero__inner{ position:relative; z-index:2; text-align:center; }
.hero__kicker{ font-family:"Cormorant Garamond",serif; font-style:italic; font-size:clamp(13px,1.4vw,16px); letter-spacing:.5em; text-indent:.5em; color:var(--gold); margin-bottom:26px; text-transform:uppercase; opacity:0; animation:fadeUp 1s .2s var(--ease) forwards; }
.hero__title{ font-family:"Noto Serif TC",serif; font-weight:900; font-size:clamp(88px,17vw,230px); line-height:.92; letter-spacing:.04em; color:var(--cream); text-shadow:0 8px 60px rgba(0,0,0,.5); opacity:0; animation:fadeUp 1.1s .35s var(--ease) forwards; }
.hero__title-gap{ display:inline-block; width:clamp(20px,4vw,60px); }
.hero__subtitle{ font-family:"Noto Serif TC",serif; font-weight:500; font-size:clamp(17px,2.3vw,26px); letter-spacing:.3em; text-indent:.3em; color:var(--cream); margin-top:24px; opacity:0; animation:fadeUp 1.1s .5s var(--ease) forwards; }
.hero__tags{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:34px; opacity:0; animation:fadeUp 1.1s .65s var(--ease) forwards; }
.hero__tags li{ display:flex; }
.hero__tags a{ display:block; font-size:13px; letter-spacing:.26em; color:var(--sand); padding:8px 20px; border:1px solid var(--gold-line); border-radius:100px; backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); transition:color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.hero__tags a:hover{ color:var(--cream); border-color:var(--gold); background:rgba(200,160,74,.14); }
.hero__meta{ position:absolute; left:0; right:0; bottom:42px; z-index:2; display:flex; justify-content:center; align-items:center; gap:14px; flex-wrap:wrap; font-size:12.5px; letter-spacing:.2em; color:var(--sand); padding:0 24px; opacity:0; animation:fadeUp 1.1s .8s var(--ease) forwards; }
.hero__meta .dot{ color:var(--gold); }
.hero__scroll{ position:absolute; left:50%; bottom:96px; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px; opacity:0; animation:fadeUp 1.1s 1s var(--ease) forwards; }
.hero__scroll-line{ width:1px; height:46px; background:linear-gradient(var(--gold),transparent); animation:scrollPulse 2.4s var(--ease) infinite; }
.hero__scroll-text{ font-size:10.5px; letter-spacing:.34em; color:var(--gold); writing-mode:vertical-rl; }
@keyframes scrollPulse{ 0%,100%{ transform:scaleY(.6); opacity:.5; transform-origin:top; } 50%{ transform:scaleY(1); opacity:1; } }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:translateY(0); } }

/* ====================== 區塊 ====================== */
.section{ position:relative; }
.section--dark{ background:var(--ink-2); }
.section-head{ display:flex; gap:clamp(20px,4vw,56px); align-items:flex-start; max-width:var(--maxw); margin:0 auto; padding:clamp(90px,12vw,160px) clamp(20px,5vw,56px) clamp(40px,6vw,64px); }
.section-head--sub{ padding-top:clamp(64px,8vw,110px); }
.section-head__num{ font-family:"Cormorant Garamond",serif; font-weight:500; font-size:clamp(40px,6vw,90px); line-height:1; color:var(--gold); opacity:.85; flex-shrink:0; }
.section-head__label{ font-family:"Cormorant Garamond",serif; font-style:italic; font-size:14px; letter-spacing:.42em; color:var(--gold); text-transform:uppercase; margin-bottom:14px; }
.section-head__title{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:clamp(34px,5.2vw,62px); letter-spacing:.08em; color:var(--cream); line-height:1.15; }
.section-head__lead{ margin-top:22px; max-width:56ch; color:var(--sand); font-size:clamp(15px,1.5vw,17px); line-height:2; }

.sub-title{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:clamp(22px,2.6vw,30px); letter-spacing:.06em; color:var(--cream); margin:clamp(48px,7vw,80px) 0 22px; padding-bottom:16px; border-bottom:1px solid var(--gold-line); display:flex; flex-wrap:wrap; align-items:baseline; gap:14px; }
.sub-title span{ font-family:"Noto Sans TC",sans-serif; font-weight:300; font-size:13px; letter-spacing:.12em; color:var(--mute); }
.note-line{ font-size:13.5px; line-height:1.9; color:var(--sand); margin:16px 0 4px; }
.note-line b{ color:var(--cream); font-weight:500; }

/* ====================== 行前須知 ====================== */
.before-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(20px,3vw,40px) clamp(28px,5vw,72px); }
.before-item{ display:flex; gap:20px; align-items:flex-start; }
.before-item__n{ font-family:"Cormorant Garamond",serif; font-size:40px; line-height:1; color:var(--gold); flex-shrink:0; width:44px; border-right:1px solid var(--gold-line); }
.before-item h3{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:19px; letter-spacing:.05em; color:var(--cream); margin-bottom:8px; }
.before-item p{ font-size:14.5px; line-height:1.95; color:var(--sand); }
.before-note{ margin-top:clamp(34px,5vw,56px); padding:22px 26px; border-left:2px solid var(--red); background:rgba(157,34,51,.10); font-size:14px; line-height:1.9; color:var(--sand); border-radius:0 4px 4px 0; }

/* ====================== 四天動線卡片 ====================== */
.day-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; padding-bottom:clamp(40px,6vw,80px); }
.day-card{ position:relative; display:flex; flex-direction:column; border:1px solid var(--hair); border-radius:4px; overflow:hidden; background:var(--ink-2); transition:transform .5s var(--ease), border-color .5s var(--ease); }
.day-card__img{ height:300px; background-size:cover; background-position:center; filter:saturate(.92) brightness(.82); transition:transform .8s var(--ease), filter .6s var(--ease); }
.day-card:hover{ transform:translateY(-6px); border-color:var(--gold-soft); }
.day-card:hover .day-card__img{ transform:scale(1.06); filter:saturate(1) brightness(.95); }
.day-card__body{ padding:22px; }
.day-card__tag{ font-family:"Cormorant Garamond",serif; font-size:13px; letter-spacing:.34em; color:var(--gold); }
.day-card__title{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:20px; letter-spacing:.06em; color:var(--cream); margin:10px 0 12px; }
.day-card__spots{ font-size:12.5px; color:var(--mute); letter-spacing:.04em; line-height:1.7; }

/* ====================== 逐日行程 ====================== */
.days{ background:var(--ink); }
.day{ position:relative; }
.day + .day{ border-top:1px solid var(--hair); }
.day__hero{ position:relative; min-height:62vh; background-size:cover; background-position:center; display:flex; align-items:flex-end; }
.day__hero-scrim{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,8,7,.55) 0%,rgba(10,8,7,.15) 40%,rgba(10,8,7,.92) 100%); }
.day__hero-text{ position:relative; z-index:2; max-width:var(--maxw); width:100%; margin:0 auto; padding:0 clamp(20px,5vw,56px) clamp(36px,5vw,60px); }
.day__tag{ font-family:"Cormorant Garamond",serif; font-size:clamp(13px,1.4vw,16px); letter-spacing:.28em; color:var(--gold); }
.day__title{ font-family:"Noto Serif TC",serif; font-weight:900; font-size:clamp(40px,7vw,86px); letter-spacing:.04em; color:var(--cream); line-height:1.05; margin:14px 0 12px; text-shadow:0 6px 40px rgba(0,0,0,.5); }
.day__spots{ font-size:clamp(13px,1.6vw,16px); letter-spacing:.12em; color:var(--sand); }
.day__body{ padding-top:clamp(40px,5vw,64px); padding-bottom:clamp(56px,8vw,100px); }
.day__intro{ font-family:"Noto Serif TC",serif; font-weight:400; font-size:clamp(17px,2vw,21px); line-height:1.9; color:var(--cream); max-width:62ch; }
.day__meta{ display:flex; flex-wrap:wrap; gap:14px 32px; margin:26px 0 8px; font-size:13px; letter-spacing:.06em; color:var(--sand); }
.day__meta b{ color:var(--gold); font-weight:500; margin-right:8px; letter-spacing:.1em; }

.timeline{ list-style:none; margin:30px 0 0; border-left:1px solid var(--gold-line); }
.timeline li{ position:relative; display:grid; grid-template-columns:84px 1fr; gap:18px; padding:14px 0 14px 26px; }
.timeline li::before{ content:""; position:absolute; left:-5px; top:22px; width:9px; height:9px; border-radius:50%; background:var(--ink); border:1.5px solid var(--gold); }
.timeline__t{ font-family:"Noto Serif TC",serif; font-weight:500; font-size:15px; color:var(--gold); letter-spacing:.08em; padding-top:1px; }
.timeline__d{ font-size:15px; line-height:1.85; color:var(--cream); }
.timeline__d b{ font-weight:500; color:var(--cream); }
.eat{ color:var(--red); font-weight:500; }
.note2{ display:block; margin-top:6px; font-size:12.5px; color:var(--mute); line-height:1.7; padding-left:12px; border-left:2px solid var(--gold-line); }
.note2 b{ color:var(--sand); }
.day__tip{ margin-top:30px; padding:18px 22px; background:rgba(200,160,74,.07); border:1px solid var(--gold-line); border-radius:4px; font-size:13.5px; line-height:1.9; color:var(--sand); }
.day__tip-label{ display:inline-block; font-family:"Cormorant Garamond",serif; font-size:12px; letter-spacing:.3em; color:var(--gold); margin-right:12px; }
.day__maps{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.maplink{ display:inline-flex; align-items:center; gap:8px; font-size:13px; letter-spacing:.06em; color:var(--sand); padding:9px 16px 9px 14px; border:1px solid var(--gold-line); border-radius:100px; transition:.3s var(--ease); }
.maplink::before{ content:"◵"; color:var(--gold); font-size:13px; }
.maplink:hover{ color:var(--cream); border-color:var(--gold-soft); background:rgba(200,160,74,.08); }

/* ====================== 寫真 / 照片牆 ====================== */
.gallery-day{ padding-top:clamp(20px,3vw,40px); padding-bottom:clamp(30px,4vw,56px); }
.gallery-day__label{ font-family:"Noto Serif TC",serif; font-weight:500; font-size:clamp(20px,2.4vw,26px); letter-spacing:.1em; color:var(--cream); margin-bottom:22px; display:flex; align-items:baseline; gap:16px; }
.gallery-day__label span{ font-family:"Cormorant Garamond",serif; font-size:14px; letter-spacing:.3em; color:var(--gold); }
.photo-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.photo{ position:relative; overflow:hidden; border-radius:4px; grid-column:span 3; }
.photo--wide{ grid-column:span 6; }
.photo__img{ height:300px; background-size:cover; background-position:center; filter:brightness(.86) saturate(.95); transition:transform .9s var(--ease), filter .6s var(--ease); }
.photo--wide .photo__img{ height:440px; }
.photo:hover .photo__img{ transform:scale(1.05); filter:brightness(1) saturate(1); }
.photo figcaption{ position:absolute; left:0; right:0; bottom:0; padding:32px 20px 16px; background:linear-gradient(transparent,rgba(8,6,5,.88)); font-size:12.5px; color:var(--sand); line-height:1.6; }
.photo figcaption b{ display:block; font-family:"Noto Serif TC",serif; font-weight:500; font-size:15px; color:var(--cream); letter-spacing:.06em; margin-bottom:3px; }

.food-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:14px; padding-bottom:clamp(40px,6vw,80px); }
.food-grid .photo{ grid-column:span 2; }
.food-grid .photo--wide{ grid-column:span 6; }

/* ====================== 表格（機票/矩陣/預算/日語） ====================== */
.table-label{ font-size:13px; letter-spacing:.1em; color:var(--gold); margin:26px 0 10px; font-weight:500; }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--hair); border-radius:4px; }
table{ border-collapse:collapse; width:100%; min-width:560px; font-size:13.5px; }
.ftable th, .ftable td, .mtable th, .mtable td, .btable th, .btable td, .jp-table th, .jp-table td{ padding:12px 14px; text-align:left; border-bottom:1px solid var(--hair); white-space:nowrap; }
thead th{ background:rgba(157,34,51,.16); color:var(--cream); font-weight:500; letter-spacing:.06em; font-size:12.5px; white-space:nowrap; }
.ftable tbody tr:hover, .btable tbody tr:hover, .jp-table tbody tr:hover{ background:rgba(200,160,74,.05); }
tbody td{ color:var(--sand); }
.mtable th{ color:var(--cream); }
.mtable tbody th{ background:rgba(200,160,74,.08); font-weight:500; color:var(--gold); }
.mtable th small, .mtable td small{ display:block; font-size:10.5px; color:var(--mute); letter-spacing:.04em; }
.mtable td{ text-align:center; font-variant-numeric:tabular-nums; }
.hl-cell{ background:rgba(245,224,138,.16) !important; color:var(--hl,#f5e08a) !important; font-weight:700; }
.hl-cell-demo{ background:rgba(245,224,138,.18); color:#f5e08a; padding:1px 8px; border-radius:3px; }
.pill{ display:inline-block; font-size:11px; letter-spacing:.08em; padding:3px 10px; border-radius:100px; border:1px solid var(--gold-line); color:var(--sand); }
.pill--red{ border-color:rgba(194,54,47,.5); color:#e07a72; background:rgba(194,54,47,.10); }
.btable__total td{ background:rgba(157,34,51,.14); color:var(--cream); font-weight:500; border-top:1px solid var(--gold-soft); }
.btable__total td:first-child{ color:var(--gold); }
.jp-table td:nth-child(2){ font-size:15px; color:var(--cream); }

/* ---- 已訂機票卡 ---- */
.fcards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:14px; }
.fcard{ border:1px solid var(--gold-line); border-radius:6px; background:linear-gradient(180deg,var(--ink-3),var(--ink-2)); padding:20px clamp(18px,2.4vw,26px); }
.fcard__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:13px; margin-bottom:16px; border-bottom:1px solid var(--hair); }
.fcard__dir{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:15px; letter-spacing:.16em; color:var(--gold); }
.fcard__air{ font-size:12.5px; letter-spacing:.05em; color:var(--sand); text-align:right; }
.fcard__route{ display:flex; align-items:flex-start; gap:clamp(8px,1.6vw,18px); }
.fcard__pt{ display:flex; flex-direction:column; gap:6px; }
.fcard__pt--to{ text-align:right; }
.fcard__time{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:clamp(27px,4.2vw,36px); line-height:1; color:var(--cream); font-variant-numeric:tabular-nums; }
.fcard__code{ font-size:11.5px; letter-spacing:.06em; color:var(--mute); white-space:nowrap; }
.fcard__mid{ display:flex; flex-direction:column; align-items:center; gap:7px; flex:1; padding-top:4px; }
.fcard__date{ font-size:11px; letter-spacing:.08em; color:var(--gold); white-space:nowrap; }
.fcard__bar{ width:100%; min-width:34px; height:1px; background:linear-gradient(90deg,transparent,var(--gold-soft),transparent); }
.fcard__plane{ font-size:11.5px; letter-spacing:.06em; color:#e07a72; white-space:nowrap; }
.fcard__foot{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:16px; font-size:12px; color:var(--sand); }
@media(max-width:680px){ .fcards{ grid-template-columns:1fr; } }

/* ====================== 住宿 ====================== */
.stay-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.stay-card{ position:relative; padding:30px 26px 28px; border:1px solid var(--hair); border-radius:4px; background:var(--ink); transition:border-color .4s var(--ease), transform .4s var(--ease); }
.stay-card:hover{ border-color:var(--gold-soft); transform:translateY(-4px); }
.stay-card__badge{ position:absolute; top:-11px; left:24px; font-size:11px; letter-spacing:.14em; color:#1c1410; background:var(--gold); padding:4px 12px; border-radius:100px; font-weight:500; }
.stay-card h4{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:18px; letter-spacing:.04em; color:var(--cream); margin:8px 0 16px; }
.stay-card ul{ list-style:none; }
.stay-card li{ font-size:13px; line-height:1.8; color:var(--sand); padding:5px 0 5px 16px; position:relative; }
.stay-card li::before{ content:"·"; position:absolute; left:2px; color:var(--gold); }
.stay-card li b{ color:var(--red); font-weight:700; }

/* ====================== 小抄 / 實用 ====================== */
.cheat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.cheat-col{ padding:24px 22px; border:1px solid var(--hair); border-radius:4px; background:var(--ink-2); }
.cheat-col h4{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:16px; letter-spacing:.05em; color:var(--gold); margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--gold-line); }
.cheat-col h4 small{ font-weight:300; font-size:11px; color:var(--mute); letter-spacing:.04em; }
.cheat-col ul{ list-style:none; }
.cheat-col li{ font-size:13px; line-height:1.7; color:var(--sand); padding:6px 0; border-bottom:1px dotted rgba(244,236,224,.07); }
.cheat-col li:last-child{ border-bottom:0; }

.useful-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.useful-cell{ padding:24px 22px; border:1px solid var(--hair); border-radius:4px; background:var(--ink-2); transition:border-color .4s var(--ease); }
.useful-cell:hover{ border-color:var(--gold-soft); }
.useful-cell h4{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:15.5px; letter-spacing:.05em; color:var(--cream); margin-bottom:10px; }
.useful-cell p{ font-size:13px; line-height:1.85; color:var(--sand); }

/* ====================== App / 連結 ====================== */
.applinks{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.applink{ display:flex; flex-direction:column; gap:6px; padding:22px 22px; border:1px solid var(--hair); border-radius:4px; background:var(--ink-2); transition:.4s var(--ease); }
.applink b{ font-family:"Noto Serif TC",serif; font-weight:500; font-size:16px; letter-spacing:.04em; color:var(--cream); }
.applink span{ font-size:12.5px; color:var(--mute); letter-spacing:.04em; }
.applink:hover{ border-color:var(--gold-soft); background:rgba(200,160,74,.07); transform:translateY(-3px); }

/* ====================== 頁尾 ====================== */
.footer{ text-align:center; padding:clamp(100px,13vw,180px) 24px clamp(60px,8vw,90px); border-top:1px solid var(--hair); background:linear-gradient(180deg,var(--ink) 0%,#0a0807 100%); }
.footer__jp{ font-family:"Noto Serif TC",serif; font-weight:500; font-size:clamp(34px,6vw,58px); letter-spacing:.3em; text-indent:.3em; color:var(--cream); }
.footer__lines{ margin:34px auto 0; max-width:46ch; }
.footer__lines p{ font-family:"Noto Serif TC",serif; font-weight:400; font-size:clamp(14px,1.7vw,17px); line-height:2.2; letter-spacing:.12em; color:var(--sand); }
.footer__note{ margin-top:40px; font-size:13px; letter-spacing:.18em; color:var(--sand); }
.footer__credit{ margin-top:14px; font-size:11px; letter-spacing:.08em; color:var(--mute); line-height:1.7; }

/* ====================== 回頂端 ====================== */
.totop{ position:fixed; right:24px; bottom:24px; z-index:40; width:46px; height:46px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--glass); border:1px solid var(--gold-line); color:var(--gold); font-size:18px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; pointer-events:none; transform:translateY(10px); transition:.4s var(--ease); }
.totop.is-show{ opacity:1; pointer-events:auto; transform:none; }
.totop:hover{ background:rgba(200,160,74,.16); }

/* ====================== 文字一律可見（不依賴 JS） ======================
   經驗教訓：文字的「可見」絕不可賭在 JS 或捲動偵測上。
   一律 opacity:1，任何裝置/JS失敗都看得到。 */
.reveal{ opacity:1 !important; transform:none !important; }

/* ====================== 響應式 ====================== */
@media (max-width:1024px){
  .day-cards{ grid-template-columns:repeat(2,1fr); }
  .cheat-grid{ grid-template-columns:repeat(2,1fr); }
  .useful-grid{ grid-template-columns:repeat(2,1fr); }
  .applinks{ grid-template-columns:repeat(2,1fr); }
  .stay-cards{ grid-template-columns:1fr; }
  .food-grid .photo{ grid-column:span 3; }
}
@media (max-width:760px){
  .photo{ grid-column:span 3; }
  .photo--wide{ grid-column:span 6; }
  .photo__img{ height:180px; }
  .photo--wide .photo__img{ height:240px; }
  .food-grid .photo{ grid-column:span 3; }
  .photo figcaption{ font-size:11.5px; padding:24px 14px 12px; }
  .photo figcaption b{ font-size:13.5px; }
}
@media (max-width:680px){
  .nav__links{ position:fixed; inset:0 0 0 auto; width:min(78vw,320px); flex-direction:column; justify-content:center; gap:30px; background:rgba(12,10,9,.97); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); padding:80px 40px; transform:translateX(100%); transition:transform .5s var(--ease); border-left:1px solid var(--gold-line); }
  .nav__chk:checked ~ .nav__links{ transform:translateX(0); }
  .nav__links a{ font-size:18px; }
  .nav__toggle{ display:flex; z-index:60; }
  .nav__chk:checked ~ .nav__toggle span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
  .nav__chk:checked ~ .nav__toggle span:nth-child(2){ opacity:0; }
  .nav__chk:checked ~ .nav__toggle span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }
  .day-cards{ grid-template-columns:1fr; gap:18px; }
  .day-card__img{ height:220px; }
  .section-head{ flex-direction:column; gap:14px; }
  .before-grid{ grid-template-columns:1fr; }
  .cheat-grid, .useful-grid, .applinks{ grid-template-columns:1fr; }
  .hero__meta{ font-size:11px; gap:8px; }
  .timeline li{ grid-template-columns:60px 1fr; gap:12px; padding-left:18px; }
  .timeline__t, .timeline__d{ font-size:14.5px; }
  .day__hero{ min-height:44vh; }
  .day__hero-text{ padding-bottom:28px; }
  .hero__title{ font-size:clamp(76px,19vw,118px); }
  .hero__bg{ background-position:center 34%; }
  .useful-cell p, .note-line{ font-size:14px; }
}

/* 寬表格：手機顯示「可左右滑」提示，釘在左上隨滑動可見 */
@media (max-width:680px){
  .table-scroll[data-hint]::before{
    content:attr(data-hint); display:block; position:sticky; left:0;
    width:max-content; font-size:11px; letter-spacing:.12em; color:var(--gold);
    padding:7px 12px; background:rgba(157,34,51,.14); border-bottom:1px solid var(--gold-line);
  }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .hero__bg{ transform:none; }
}

/* ===========================================================
   App 化：分畫面切換 ＋ 底部 tab ＋ 返回鍵 ＋ 首頁卡片
   切換完全靠 CSS（書籤跳轉 + :target），不依賴 JS。
   安全網：預設 .screen 全部顯示；只有支援 :has() 的瀏覽器
   才進入「一次一頁」。進階規則失效時自動退回長捲動，字不消失。
   =========================================================== */

/* 每個畫面：撐滿一屏、底部留白讓內容不被 tab／返回鍵遮住
   首頁只需替底部 tab 讓路；內頁還要替左下返回鍵多留一段，
   讓畫面最底的按鈕（上一天／回總覽等）停在返回鍵上方、不被壓到。 */
.screen{ display:block; min-height:100svh; padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
.screen:not(.screen--home){ padding-bottom:calc(128px + env(safe-area-inset-bottom)); }

@supports selector(:has(*)){
  /* 剛打開、網址沒指定畫面 → 只顯示首頁 */
  body:not(:has(.screen:target)) .screen:not(.screen--home){ display:none; }
  /* 指定了某畫面 → 只顯示那一個 */
  body:has(.screen:target) .screen{ display:none; }
  body:has(.screen:target) .screen:target{ display:block; }
}

/* 首頁：封面縮短、下接卡片選單 */
.hero--home{ min-height:72svh; }
.footer--home{ padding-top:clamp(70px,10vw,120px); padding-bottom:clamp(36px,6vw,56px); }

/* 首頁卡片選單 */
.home-menu{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding-top:clamp(44px,6vw,76px); padding-bottom:clamp(30px,5vw,56px); }
.menu-card{ position:relative; display:flex; flex-direction:column; border:1px solid var(--hair); border-radius:6px; overflow:hidden; background:var(--ink-2); transition:transform .5s var(--ease), border-color .5s var(--ease); }
.menu-card:hover{ transform:translateY(-6px); border-color:var(--gold-soft); }
.menu-card__img{ height:188px; background-size:cover; background-position:center; filter:saturate(.9) brightness(.8); transition:transform .8s var(--ease), filter .6s var(--ease); }
.menu-card:hover .menu-card__img{ transform:scale(1.06); filter:saturate(1) brightness(.95); }
.menu-card__body{ padding:20px 22px 24px; }
.menu-card__en{ font-family:"Cormorant Garamond",serif; font-style:italic; font-size:12px; letter-spacing:.3em; color:var(--gold); text-transform:uppercase; }
.menu-card__title{ font-family:"Noto Serif TC",serif; font-weight:700; font-size:21px; letter-spacing:.06em; color:var(--cream); margin:9px 0 10px; }
.menu-card__desc{ font-size:12.5px; color:var(--mute); letter-spacing:.03em; line-height:1.7; }

/* 逐日：底部上一天／下一天切換 */
.day-nav{ display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; margin-top:clamp(36px,5vw,56px); padding-top:24px; border-top:1px solid var(--hair); }
.day-nav__btn{ flex:1; min-width:160px; text-align:center; padding:14px 18px; border:1px solid var(--gold-line); border-radius:100px; font-size:13.5px; letter-spacing:.04em; color:var(--sand); transition:.3s var(--ease); }
.day-nav__btn:hover{ color:var(--cream); border-color:var(--gold-soft); background:rgba(200,160,74,.08); }
.day-nav__btn--next{ background:rgba(200,160,74,.07); color:var(--cream); }

/* 返回首頁鍵：非首頁畫面才出現（左下浮動、小顆） */
.backbtn{ display:none; position:fixed; left:12px; bottom:calc(72px + env(safe-area-inset-bottom)); z-index:65; width:44px; height:44px; align-items:center; justify-content:center; border-radius:50%; background:rgba(24,19,17,.78); border:1px solid var(--gold-line); color:var(--gold); font-size:18px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 6px 22px rgba(0,0,0,.5); transition:background .3s var(--ease); }
.backbtn:hover{ background:rgba(200,160,74,.16); }
.backbtn__arrow{ line-height:1; margin-top:-1px; }
@supports selector(:has(*)){
  /* 有指定畫面、且不是首頁 → 顯示返回鍵 */
  body:has(.screen:target):not(:has(.screen--home:target)) .backbtn{ display:flex; }
}

/* 底部固定 tab */
.tabbar{ position:fixed; left:0; right:0; bottom:0; z-index:70; display:flex; justify-content:center; background:rgba(12,10,9,.92); backdrop-filter:blur(16px) saturate(120%); -webkit-backdrop-filter:blur(16px) saturate(120%); border-top:1px solid var(--gold-line); padding-bottom:env(safe-area-inset-bottom); }
.tab{ flex:1; max-width:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:9px 4px 8px; color:var(--mute); transition:color .3s var(--ease); }
.tab__ico{ font-size:18px; line-height:1; }
.tab__label{ font-size:10.5px; letter-spacing:.18em; }
.tab:hover{ color:var(--sand); }
/* 當前畫面對應的 tab 點亮（由 main.js 加 .is-active）。
   這是純視覺加分：就算 JS 沒載入，也只是 tab 不變色，
   切換畫面、返回鍵、文字可見性全部仍由 CSS 保證、照常運作。 */
.tab.is-active{ color:var(--gold); }

/* App 元件的響應式 */
@media (max-width:1024px){
  .home-menu{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .home-menu{ grid-template-columns:1fr; gap:16px; }
  .menu-card__img{ height:200px; }
  .hero--home{ min-height:78svh; }
  .day-nav{ flex-direction:column; }
  .day-nav__btn{ width:100%; min-width:0; }
}
