/* ===== 色彩與字體（旅行部落格風：米白、沙色、深咖啡） ===== */
:root {
  --cream: #F7EFE4;
  --sand: #EBDCC9;
  --sand-dark: #D9C4AA;
  --paper: #FCF8F2;
  --ink: #3A2E26;
  --muted: #85766A;
  --accent: #A8744C;
  --line: #E2D3C0;
  --todo-bg: #F3E3B5;
  --todo-text: #6E5210;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti TC", "Noto Serif CJK TC", "PMingLiU", serif;
}

/* 越南文：Georgia 在 Windows 上的越南文聲調會疊歪，改用字元齊全的襯線字 */
html[data-lang="vi"] { --serif: Cambria, "Times New Roman", "Noto Serif", serif; }

/* ===== 語言切換：只顯示目前語言的文字 ===== */
html[data-lang="zh"] [data-l]:not([data-l="zh"]),
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="vi"] [data-l]:not([data-l="vi"]) { display: none; }

/* ===== 基本設定（手機優先） ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 400; }

a { color: var(--ink); }

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 3px;
  font-family: var(--sans);
  font-style: normal;
}

.note { margin: 0 0 8px; font-size: 15px; }

/* 正式網站：【待補】改成低調的「即將更新」，圖片檔名提示直接隱藏 */
.is-live .todo { font-size: 0; background: none; padding: 0; }
.is-live .todo::after { font-size: 14px; font-style: italic; color: var(--muted); }
.is-live[data-lang="vi"] .todo::after { content: "Sắp cập nhật"; }
.is-live[data-lang="zh"] .todo::after { content: "即將更新"; }
.is-live[data-lang="en"] .todo::after { content: "Coming soon"; }
.is-live .media > .todo,
.is-live .cover__ph,
.is-live .note:has(> .todo) { display: none; }

.display { font-family: var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.script { font-family: var(--serif); font-style: italic; }
.eyebrow { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 12px; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background .2s, color .2s;
}
.btn--dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost-light { border: 1px solid var(--paper); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ===== 圖片框：圖片還沒放時顯示【待補】文字 ===== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 12px;
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 導覽列 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 20px;
  text-decoration: none;
  margin-right: auto;
}
.nav__links {
  order: 3;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: block;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  min-width: 44px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ===== 封面（首頁大圖） ===== */
.cover {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: linear-gradient(160deg, #8A6B52 0%, #5C4636 55%, #3A2E26 100%);
  overflow: hidden;
}
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(30,22,16,.6) 100%);
}
.cover__ph { position: absolute; top: 16px; right: 16px; z-index: 1; font-size: 12px; }
.cover__img + .cover__ph { display: none; }
.cover__text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 56px;
}
.cover h1 { font-size: 64px; line-height: .95; }
.cover__tagline { font-size: 17px; margin: 20px 0 8px; }
.cover__meta { font-size: 14px; opacity: .85; margin: 0 0 28px; max-width: 520px; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 子頁封面 */
.cover--sub { min-height: 46vh; }
.cover--sub h1 { font-size: 48px; }
.cover--sub .cover__meta { margin-bottom: 0; }

/* ===== 區塊共用 ===== */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 20px;
}
.section-title { font-family: var(--serif); font-size: 40px; text-transform: uppercase; margin-bottom: 8px; }
.section-sub { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.sub-title { font-family: var(--serif); font-size: 26px; margin: 48px 0 20px; }

/* ===== 關於我 ===== */
.about { display: grid; gap: 32px; align-items: center; }
.about p { margin: 0 0 24px; }
.about__photo { aspect-ratio: 4 / 5; border-radius: 4px; }

/* ===== 金句帶 ===== */
.band {
  background: var(--sand);
  text-align: center;
  padding: 56px 20px;
}
.band__quote { font-family: var(--serif); font-size: 30px; line-height: 1.25; margin: 0; }
.band__quote em { font-style: italic; text-transform: none; }
.band__caption { font-size: 13px; color: var(--muted); margin: 12px 0 32px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 28px; }
.social a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.social svg { width: 26px; height: 26px; }

/* ===== 卡片（首頁三個部分、各頁的「學了什麼／去了哪裡／做了什麼」） ===== */
.paths { display: grid; gap: 24px; }
.path {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.path .media { aspect-ratio: 3 / 2; }
.path__body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.path__body .eyebrow { margin-bottom: 4px; color: var(--accent); }
.path h3 { font-family: var(--serif); font-size: 30px; text-transform: uppercase; margin-bottom: 12px; }
.path ul { margin: 0 0 24px; padding-left: 20px; }
.path .btn { align-self: flex-start; margin-top: auto; }

.recruiter { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--sand-dark); font-size: 14px; color: var(--muted); }
.recruiter a { margin-left: 6px; font-weight: 700; color: var(--ink); }

.page-intro { max-width: 680px; margin: 0 0 40px; font-size: 17px; }

/* 頁內跳轉按鈕 */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.btn--sm { min-height: 36px; padding: 7px 16px; font-size: 11px; }

/* 每個區塊 */
.block { margin-top: 88px; }
.block__intro { max-width: 680px; margin: 0 0 28px; }
.block__label { font-family: var(--serif); font-size: 22px; margin: 36px 0 16px; }

/* 商品卡（書、App、文具、旅行用品）：放推廣連結 */
.product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.product .media { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.product > :not(.media) { margin-left: 18px; margin-right: 18px; }
.product .eyebrow { margin-bottom: 0; color: var(--accent); }
.product h4 { font-family: var(--serif); font-size: 19px; }
.product__note { margin: 0; font-size: 14px; color: var(--muted); }
.product .btn { margin-top: auto; align-self: flex-start; }

/* 訂房／交通／門票／eSIM 等資源卡 */
.resources { display: grid; gap: 16px; }
.resource {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
}
.resource h4 { font-family: var(--serif); font-size: 21px; }
.resource p { margin: 0; font-size: 15px; }
.resource .btn { margin-top: 8px; align-self: flex-start; }

/* 生活費表 */
.costs { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.costs th, .costs td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.costs td:last-child { text-align: right; }
.costs tfoot td { font-weight: 700; border-bottom: 0; }

/* 小提醒（有編號） */
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: tip; }
.tips li {
  counter-increment: tip;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.tips li::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 13px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
}

/* 常見問題：點一下展開 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

.disclosure-box { margin-top: 72px; padding: 20px; background: var(--sand); border-radius: 4px; }
.disclosure-box .disclosure { margin: 0; }

/* Story：每格滿版，照片在一邊、故事在另一邊（手機上照片在上） */
.stories { display: grid; gap: 32px; }
.stories .path .media { aspect-ratio: 4 / 3; }

/* 橫排：手機上左右滑，電腦上並排 */
.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.row > * { scroll-snap-align: start; }
.row--phones { grid-auto-columns: 62%; }
.row--products { grid-auto-columns: 66%; }

.vlog-section { margin-top: 72px; }
.vlog { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vlog .phone { max-width: 240px; }
.vlog figcaption { font-family: var(--serif); font-size: 18px; text-align: center; }

/* 一個人旅行：每個國家的故事 */
.place__story { margin: 16px 0 0; }

/* ===== 時間軸 ===== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--sand-dark);
}
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--accent);
}
.timeline__date { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.timeline h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.timeline p { margin: 0; }

/* ===== 獎項卡片 ===== */
.cards { display: grid; gap: 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}
.card__badge { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin: 0 0 10px; }
.card h4 { font-family: var(--serif); font-style: italic; font-size: 24px; margin-bottom: 12px; }
.card p { margin: 0 0 10px; }
.card__role { font-size: 15px; color: var(--muted); }
.card__link { display: inline-block; margin-top: 4px; font-size: 14px; text-decoration: none; }

/* ===== 標籤 ===== */
.tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  border: 1px solid var(--ink);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.tags--lang li { background: var(--ink); color: var(--paper); }

/* ===== 手機框（直式影片） ===== */
.phone {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19;
  border: 8px solid #1F1A17;
  border-radius: 34px;
  background: var(--sand);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(58, 46, 38, .25);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 18px;
  border-radius: 999px;
  background: #1F1A17;
  z-index: 1;
}
.phone iframe, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ===== 首頁：最新生活影片 ===== */
.band > .section { padding-top: 0; padding-bottom: 0; text-align: left; }
.vlogs { display: grid; gap: 32px; align-items: center; }
.vlogs p { margin: 0 0 24px; }
.vlogs__phones { display: flex; justify-content: center; gap: 16px; }
.vlogs__phones .phone { flex: 1 1 0; max-width: 160px; }
.vlogs__phones .phone:nth-child(2) { margin-top: 40px; }

/* ===== 聯絡 ===== */
.contact { list-style: none; margin: 0 0 32px; padding: 0; }
.contact li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
}
.contact__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ===== 影片框（橫式） ===== */
.video {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* ===== 我的生活 ===== */
.adventures { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.adventures a { display: block; text-decoration: none; text-align: center; }
.adventures .media { aspect-ratio: 1; border-radius: 4px; font-size: 11px; margin-bottom: 8px; }
.adventures strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.adventures small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }

.place {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.place__title { font-family: var(--serif); font-size: 40px; text-transform: uppercase; }
.place__tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 4px 0 0; }
.place .phone { margin: 0 auto; }

.travel-links {
  margin-top: 24px;
  padding: 40px 24px;
  background: var(--sand);
  border-radius: 4px;
  text-align: center;
}
.travel-links h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 20px; }
.travel-links__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.travel-links__buttons .btn { min-width: 140px; }
.disclosure { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* ===== 語言學習 ===== */
.learn { display: grid; gap: 56px; }
.learn__col h2 { font-family: var(--serif); font-size: 36px; text-transform: uppercase; margin-bottom: 4px; }
.learn__col .sub-title { font-size: 20px; margin: 24px 0 12px; }
.books { list-style: none; margin: 0; padding: 0; }
.book {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
}
.book__status {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}
.book__status--reading { border: 1px solid var(--ink); }
.book__status--done { background: var(--ink); color: var(--paper); }

.footer {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  padding: 32px 20px 48px;
  border-top: 1px solid var(--line);
}

/* ===== 電腦版 ===== */
@media (min-width: 768px) {
  .nav__inner { padding: 0 24px; }
  .nav__links { order: 0; width: auto; gap: 28px; }
  .nav__links a { padding: 20px 0; }

  .cover__text { padding: 80px 40px; }
  .cover h1 { font-size: 112px; }
  .cover__tagline { font-size: 20px; }
  .cover--sub h1 { font-size: 80px; }

  .section { padding: 96px 40px; }
  .section-title { font-size: 56px; }

  .about { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .band { padding: 80px 40px; }
  .band__quote { font-size: 44px; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .paths { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 0; }
  .row--products { grid-template-columns: repeat(4, 1fr); }
  .resources { grid-template-columns: repeat(4, 1fr); }
  .stories { gap: 40px; }
  .stories .path { flex-direction: row; min-height: 380px; }
  .stories .path:nth-child(even) { flex-direction: row-reverse; }
  .stories .path .media { flex: 0 0 48%; aspect-ratio: auto; }
  .stories .path__body { padding: 40px; justify-content: center; }
  .vlogs { grid-template-columns: 1fr 1fr; gap: 64px; }
  .vlogs__phones .phone { max-width: 200px; }

  .contact li { flex-direction: row; gap: 16px; align-items: center; }
  .contact__label { width: 100px; }

  .adventures { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .place { grid-template-columns: 1fr 1fr; padding: 72px 0; }
  .place:nth-of-type(even) .place__text { order: 2; }
  .place__title { font-size: 56px; }

  .learn { grid-template-columns: 1fr 1fr; gap: 48px; }
}
