/* ==========================================================
   浪台灣 旅行風格指南 /travel-style/<slug>.html（產品規格書 §9，Phase 2）
   ----------------------------------------------------------
   這是「一種旅行風格的指南」，不是人格介紹頁——版面要像攻略（可掃讀、
   看得到目的地與玩法），不要像角色卡。

   全部樣式只寫在這支檔案裡，style.css 一行都不動（Phase 2 凍結清單）。
   共用元件（.btn / .hub-cards / .hub-card / .faq / .breadcrumb / hero）直接沿用
   style.css 既有的，這裡只補這一頁自己的區塊。

   ⭐ 每頁的主色由 <body style="--accent:…"> 帶進來，值直接讀自該人格的抽籤結果頁
   （森林綠 / 泡湯藍綠 / 老街金 / 桃花磚紅）。所以底下一律用 var(--accent)，
   不要寫死顏色——12 頁才會各有各的色，而且跟自己的結果頁對得起來。
   ========================================================== */

.ts-page { --ts-tint: color-mix(in srgb, var(--accent) 7%, #fff); }

/* ---------- 第一屏：沿用全站 hero 規格（文字在左、照片在右，見規範 §7.3） ---------- */
.ts-hero .section-head h1 { max-width: 14em; }
.ts-hero .kicker { color: var(--accent); }
/* 導言排成兩短行（第一行是這種玩法的一句話，第二行是這個人格的籤詩），
   不要擠成一整段長句——短兩行讀起來有呼吸，也跟結果頁的籤詩接得起來。 */
.ts-pitch {
  margin: 16px 0 0; max-width: 26em;
  font-size: 1.02rem; line-height: 2; color: var(--c-text-muted);
}
.ts-cta {
  margin-top: 24px; height: 52px; padding: 0 26px; font-size: 1.02rem;
  background: var(--accent); border-color: var(--accent);
}
.ts-cta:hover { filter: brightness(.92); }
/* 氣氛標籤：一排講「這種旅行是什麼感覺」，補住第一屏左半的空 */
.ts-moods { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.ts-mood {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--c-text-muted);
}
.ts-mood img { width: 22px; height: 22px; flex: none; object-fit: contain; }

/* ---------- 內文欄寬：跟文章一樣好讀，不要整頁通欄 ---------- */
.ts-wrap { max-width: 1000px; }
/* H2 前面一截短色槓：H2 一路排下來如果長得一模一樣，整頁會像一份清單。
   這一截是浪台灣既有的視覺記號（跟結果頁 .reading-mark 同一種語言），給章節節奏。 */
.ts-wrap h2 {
  position: relative; margin: 50px 0 16px; padding-left: 16px;
  font-size: 1.42rem; line-height: 1.35; scroll-margin-top: 90px;
}
.ts-wrap h2::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 4px; height: 1.1em; border-radius: 2px; background: var(--accent);
}
.ts-style { font-size: 1.06rem; line-height: 1.95; color: var(--c-ink); margin: 0; }

/* ---------- 「這種旅行適合什麼人？」橫幅：左說明、右三格重點 ---------- */
.ts-fitband {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px; align-items: center;
  margin: 6px 0 10px; padding: 24px 26px;
  border: 1px solid var(--c-line); border-radius: 18px;
  background: linear-gradient(180deg, #FFFDFB 0%, var(--ts-tint) 100%);
}
.ts-fitband h2 { margin: 0 0 8px; padding-left: 0; font-size: 1.14rem; }
.ts-fitband h2::before { display: none; }
.ts-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ts-fact { flex: 1 1 116px; min-width: 116px; padding: 2px 0 2px 14px; border-left: 1px solid var(--c-line); }
.ts-fact:first-child { border-left: 0; padding-left: 0; }
.ts-fact dt {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: .76rem; color: var(--c-text-muted);
}
.ts-fact dd { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--c-ink); font-weight: 700; }
.ts-fic img { width: 19px; height: 19px; display: block; object-fit: contain; }

/* 區塊標題左邊的線稿圖示（四欄與「適合什麼人」共用） */
.ts-ic { display: inline-flex; margin-right: 9px; vertical-align: -5px; }
.ts-ic img { width: 24px; height: 24px; object-fit: contain; }

/* ---------- 推薦目的地：三張直式大卡，圖上壓「01・縣市・地名」 ---------- */
.ts-dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ts-dest {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.ts-dest:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.ts-dest-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ts-dest-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.ts-dest:hover .ts-dest-img img { transform: scale(1.05); }
/* 圖上的字：一律壓在暗角漸層上，任何照片都讀得到 */
.ts-dest-ov {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 20, .78));
}
.ts-dest-no {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  opacity: .85; margin-right: 8px;
}
.ts-dest-c { font-size: .76rem; letter-spacing: .14em; opacity: .85; }
.ts-dest-t { display: block; margin-top: 3px; font-size: 1.28rem; font-weight: 700; line-height: 1.25; }
.ts-dest-b { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 15px; flex: 1; }
.ts-dest-d { font-size: .9rem; line-height: 1.6; color: var(--c-text-muted); }
.ts-dest-go { margin-top: auto; font-size: .88rem; font-weight: 700; color: var(--accent); }
.ts-dest-go span { display: inline-block; transition: transform .18s var(--ease); }
.ts-dest:hover .ts-dest-go span { transform: translateX(4px); }

/* ---------- 看完目的地 → 一日遊工具的出口 ----------
   動線檢查抓到的最大問題：這頁只有「抽籤」入口，沒有「排行程」出口。
   全站的迴圈是 心情 → 籤 → 內容 → 工具 → 出發，看完目的地正是最想動手排的時候。 */
.ts-plan {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin: 22px 0 4px; padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--c-line));
  border-radius: 14px;
  background: linear-gradient(90deg, var(--ts-tint), rgba(255, 255, 255, .5));
}
.ts-plan-t { margin: 0; font-size: .98rem; font-weight: 700; color: var(--c-ink); }
.ts-plan-btn { flex: none; border-color: var(--accent); color: var(--accent); }
.ts-plan-btn:hover { background: var(--accent); color: #fff; }

/* ---------- 四欄：玩法／住宿／交通／吃 ---------- */
/* align-items:stretch + 欄內 flex：列數不一樣的欄（交通只有 2 列）底部的「查看更多」
   才會跟隔壁欄切齊，不會浮在半空中。 */
.ts-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px; align-items: stretch; }
.ts-quad .ts-col { display: flex; flex-direction: column; }
.ts-quad .ts-col h2 { margin: 40px 0 14px; padding-left: 0; font-size: 1.04rem; }
.ts-quad .ts-col h2::before { display: none; }

/* 列表卡：圖示 + 主標（+副標）。住宿／交通／行前提醒三欄共用同一種列，才會整齊 */
.ts-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ts-row {
  display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 9px 12px;
  border: 1px solid var(--c-line); border-radius: 12px; background: #fff;
}
.ts-row-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.ts-row-ic img { width: 24px; height: 24px; object-fit: contain; }
.ts-row-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ts-row-t { font-size: .92rem; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.ts-row-d { font-size: .78rem; line-height: 1.45; color: var(--c-text-muted); }
/* 每欄底部的「查看更多」，三欄對齊 */
.ts-colmore {
  display: block; margin-top: auto; padding-top: 14px; text-align: center;
  font-size: .85rem; font-weight: 700; color: var(--accent); text-decoration: none;
}
.ts-colmore:hover { text-decoration: underline; }

/* 玩法用兩欄標籤格，跟右邊三欄的列高對得起來 */
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chip {
  display: inline-flex; align-items: center; padding: 6px 13px;
  border: 1px solid transparent; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, #fff);
  font-size: .89rem; color: var(--c-ink);
}
/* 住宿與吃用描邊、玩法用實心底：四欄並排時一眼看得出是不同種類的東西 */
.ts-chips--soft .ts-chip {
  background: transparent; border-color: var(--c-line); color: var(--c-text-muted);
}

/* ---------- 攻略卡：標題放寬成兩行 ----------
   全站 .hub-card 的標題是「單行 + ellipsis」，分類頁那種一排兩張的寬度還讀得完，
   但這裡標題被切在「金針花季 8 月中最美？六十石山赤科…」，最關鍵的資訊剛好被吃掉。
   只在 .ts-wrap 裡放寬，全站元件一行都不改。 */
.ts-wrap .hub-card .b h3 {
  white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- 攻略卡下面的「看更多」 ---------- */
.ts-more { margin: 18px 0 0; text-align: center; }
.ts-more a { font-size: .95rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.ts-more a:hover { text-decoration: underline; }

/* ---------- FAQ ＋ 側邊抽籤卡 ---------- */
.ts-faqband {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px; align-items: start;
}
.ts-faqband .faq { margin-top: 0; }
.ts-endcta {
  margin-top: 62px; padding: 26px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--c-line));
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, var(--ts-tint));
}
.ts-endcta-img { display:block; width:92px; height:92px; margin:0 auto 10px; object-fit:contain; }
.ts-endcta-k {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .7rem; letter-spacing: .28em; color: var(--accent); margin-bottom: 10px;
}
.ts-endcta-t { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; line-height: 1.45; color: var(--c-ink); }
.ts-endcta-d { margin: 0 0 18px; font-size: .9rem; line-height: 1.7; color: var(--c-text-muted); }
.ts-endcta .btn { background: var(--accent); border-color: var(--accent); width: 100%; }
.ts-endcta .btn:hover { filter: brightness(.92); }

@media (max-width: 900px) {
  .ts-fitband { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .ts-quad { grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
  .ts-faqband { grid-template-columns: 1fr; gap: 8px; }
  .ts-endcta { margin-top: 28px; }
}
@media (max-width: 620px) {
  .ts-wrap h2 { margin: 38px 0 13px; font-size: 1.24rem; }
  .ts-cta { width: 100%; justify-content: center; }
  .ts-moods { gap: 8px 16px; margin-top: 18px; }
  .ts-dests { grid-template-columns: 1fr; gap: 14px; }
  .ts-dest-t { font-size: 1.16rem; }
  .ts-quad { grid-template-columns: 1fr; }
  .ts-quad .ts-col h2 { margin-top: 30px; }
  .ts-plan { padding: 15px 16px; }
  .ts-plan-btn { width: 100%; }
  .ts-fact { flex: 1 1 100%; }
}
