/* 心勻小腳丫旅行 — 手機優先樣式 */
:root {
  /* 日系加強版：米白底不變，焦糖木＋深灰綠＋陶土橘重點色 */
  --bg: #FAF7F2;
  --paper: #F3EEE6;
  --ink: #333A40;
  --ink-soft: #5E656B;
  --muted: #565C61;
  --line: #D9CFC0;
  --wood: #A97C50;
  --wood-soft: #F0E2CD;
  --wood-dark: #6E4E2A;   /* 文字用木色，確保對比 */
  --sage: #6E8F6A;
  --sage-soft: #E0E8DB;
  --sage-dark: #3F5A3D;   /* 標籤文字用 */
  --accent: #B9562B;      /* 陶土橘：按鈕、熱門標籤、h2 色條 */
  --accent-dark: #93401C; /* hover／小字用 */
  --accent-soft: #F7E3D6;
  --card: #FFFDF9;
  --radius: 6px;
  --shadow: none;
  --max: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .02em;
}
a { color: var(--ink); text-decoration-color: var(--wood); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); text-decoration-color: var(--accent); }
h1, h2, h3 { font-weight: 600; letter-spacing: .03em; color: var(--ink); }
img, svg { max-width: 100%; }

/* header / footer */
.site-header {
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--wood); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px; height: 0; border-top: 1.5px solid var(--ink); }
.site-nav a { font-size: .9rem; color: var(--muted); text-decoration: none; margin-left: 18px; letter-spacing: .05em; }
.site-nav a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 18px; padding-right: 18px; }
main { padding-bottom: 64px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .85rem; padding: 32px 0 40px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 6px 0; }

/* hero */
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: 1.85rem; line-height: 1.45; font-weight: 600; margin: 0 0 14px; }
.hero p { color: var(--muted); margin: 0; }
.hero .tagline { display: inline-block; background: transparent; color: var(--accent-dark); font-weight: 600; font-size: .82rem; letter-spacing: .12em; padding: 0 0 4px; border-bottom: 2px solid var(--accent); border-radius: 0; margin-bottom: 18px; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0; padding: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--wood); }
.card a { display: block; color: inherit; text-decoration: none; }
.card a:hover h2 { color: var(--accent-dark); }
.card-body { padding: 18px 20px 22px; }
.card h2 { font-size: 1.12rem; line-height: 1.55; font-weight: 600; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.85; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 500; color: var(--wood-dark); font-size: .88rem; letter-spacing: .05em; border-bottom: 1px solid var(--wood); }

/* covers: 低飽和線條幾何（純 CSS，沿用原本 span 結構） */
.cover { position: relative; height: 150px; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.cover span { position: absolute; display: block; }

/* 香港：細線太陽＋單棟屋形＋地平線 */
.cover-hk { background: #F3EEE6; }
.cover-hk .c1 { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--wood); top: 26px; right: 18%; }
.cover-hk .c2 { width: 56px; height: 44px; border: 2px solid var(--ink-soft); border-bottom: 0; bottom: 28px; left: 22%; }
.cover-hk .c3 { width: 40px; height: 40px; border-top: 2px solid var(--ink-soft); border-left: 2px solid var(--ink-soft); transform: rotate(45deg); bottom: 52px; left: calc(22% + 8px); }
.cover-hk .c4 { width: 100%; height: 0; border-top: 1px solid var(--ink-soft); bottom: 28px; left: 0; opacity: .6; }

/* 台北：細長塔形＋兩道山稜線＋小圓點 */
.cover-tp { background: var(--sage-soft); }
.cover-tp .c1 { width: 14px; height: 96px; border: 2px solid var(--ink-soft); border-bottom: 0; bottom: 28px; left: 50%; margin-left: -7px; }
.cover-tp .c2 { width: 30px; height: 0; border-top: 2px solid var(--ink-soft); bottom: 64px; left: 50%; margin-left: -15px; box-shadow: none; }
.cover-tp .c3 { width: 120px; height: 60px; border: 2px solid var(--sage); border-bottom: 0; border-radius: 60px 60px 0 0; bottom: 28px; left: 8%; }
.cover-tp .c4 { width: 150px; height: 75px; border: 2px solid var(--sage); border-bottom: 0; border-radius: 75px 75px 0 0; bottom: 28px; right: 6%; }
.cover-tp .c5 { width: 12px; height: 12px; background: var(--wood); border-radius: 50%; top: 28px; left: 18%; }
.cover-tp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 28px; border-top: 1px solid var(--ink-soft); opacity: .6; }

/* 沖繩：半圓日出＋海平線＋一條斜線 */
.cover-ok { background: #F1EEE8; }
.cover-ok .c1 { width: 72px; height: 36px; border: 2px solid var(--wood); border-bottom: 0; border-radius: 36px 36px 0 0; bottom: 56px; left: 50%; margin-left: -36px; }
.cover-ok .c2 { width: 100%; height: 0; border-top: 1px solid var(--ink-soft); bottom: 56px; left: 0; opacity: .7; }
.cover-ok .c3 { width: 0; height: 0; border-top: 1px solid var(--sage); width: 38%; bottom: 40px; left: 31%; }
.cover-ok .c4 { width: 0; border-top: 1px solid var(--sage); width: 22%; bottom: 26px; left: 39%; }

.cover-lg { height: 180px; border-radius: var(--radius); border: 1px solid var(--line); margin: 22px 0 12px; }

/* article */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
article h1 { font-size: 1.7rem; line-height: 1.5; font-weight: 600; margin: 18px 0 10px; }
article h2 { font-size: 1.3rem; line-height: 1.5; font-weight: 600; margin: 52px 0 14px; padding-left: 14px; border-left: 4px solid var(--accent); }
article h3 { font-size: 1.08rem; font-weight: 600; margin: 32px 0 8px; }
article p, article li { margin: 0 0 16px; }
article ul, article ol { padding-left: 1.3em; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.lead { font-size: 1.05rem; color: #4A5157; }

.notice { background: var(--wood-soft); border: 0; border-left: 3px solid var(--wood); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 16px; font-size: .9rem; margin: 20px 0; }
.notice strong { color: var(--wood-dark); font-weight: 600; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 6px; font-weight: 600; letter-spacing: .05em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 2px 0; }

/* comparison table: horizontal scroll on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px -18px; padding: 0 18px; }
.table-hint { font-size: .8rem; color: var(--muted); margin: 0 0 4px; }
table.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.65; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--paper); color: var(--ink); font-weight: 600; font-size: .88rem; letter-spacing: .04em; white-space: nowrap; border-bottom: 2px solid var(--wood); }
table.compare tbody th { background: #FBF8F3; font-weight: 600; white-space: nowrap; position: sticky; left: 0; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: .78rem; padding: 0 8px; border-radius: 99px; background: var(--sage-soft); color: var(--sage-dark); margin: 2px 2px 0 0; white-space: nowrap; }
.tag.hot { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.price { font-weight: 600; white-space: nowrap; }

/* hotel blocks */
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 20px 0; }
.item h3 { margin-top: 0; }
.item dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 4px 10px; margin: 8px 0 12px; font-size: .95rem; }
.item dt { color: var(--muted); }
.item dd { margin: 0; }
.btn-aff { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; letter-spacing: .05em; text-decoration: none; padding: 9px 20px; border-radius: 4px; font-size: .9rem; transition: background .2s; }
.btn-aff:hover { background: var(--accent-dark); color: #fff; }
.btn-aff.klook { background: var(--accent); }
.btn-aff.klook:hover { background: var(--accent-dark); }

/* itinerary */
.day { border-left: 2px solid var(--wood); padding: 0 0 6px 16px; margin: 0 0 18px 6px; position: relative; }
.day::before { content: ""; position: absolute; left: -6.5px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box; }
.day h3 { margin-top: 0; }

.disclaimer { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; font-size: .86rem; color: #555C61; margin: 52px 0 0; }
.disclaimer h2 { font-size: .98rem; border: 0; padding: 0; margin: 0 0 8px; }
.disclaimer p { margin: 0 0 6px; }

.related { margin-top: 40px; }
.related ul { padding-left: 1.2em; }

@media (min-width: 720px) {
  body { font-size: 17.5px; }
  .hero { padding: 80px 0 36px; }
  .hero h1 { font-size: 2.2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card h2 { font-size: 1.05rem; }
  :root { --max: 980px; }
  article, .article-wrap { max-width: 760px; margin: 0 auto; }
  .table-wrap { margin: 14px 0; padding: 0; }
  table.compare { min-width: 0; }
  .cover-lg { height: 220px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 圖片（batch2）：主圖、內文圖、首頁卡片圖。照片皆為 Wikimedia Commons CC 授權，圖說含出處 */
figure { margin: 0; }
.hero-img { margin: 22px 0 14px; }
.hero-img img, .photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.hero-img img { aspect-ratio: 16 / 9; object-fit: cover; }
.photo { margin: 28px 0; }
.hero-img figcaption, .photo figcaption { font-size: .78rem; line-height: 1.7; color: var(--muted); margin-top: 8px; letter-spacing: .01em; }
.hero-img figcaption a, .photo figcaption a { color: var(--muted); }
.card .card-credit a { display: inline; color: var(--muted); }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); border-bottom: 1px solid var(--line); }
.card { display: flex; flex-direction: column; }
.card > a { flex: 1; }
.card-credit { margin: 0; padding: 0 20px 14px; font-size: .72rem; line-height: 1.6; color: var(--muted); }
