/* 版面概念：圖書館借書卡——冷調紙白、藏青墨水、印章紅只用在評分與重點 */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --text: #1c2230; --muted: #5d6677;
  --line: #dde1e8; --accent: #1f4e79; --accent-ink: #ffffff; --chip: #e9edf3;
  --star: #b8412c; --danger: #b3261e;
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius: 6px; --shadow: 0 1px 2px rgba(28,34,48,.06), 0 4px 14px rgba(28,34,48,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #12161e; --surface: #1b212c; --text: #e6e9ef; --muted: #9aa3b2;
    --line: #2c3442; --accent: #7fb0e0; --accent-ink: #12161e; --chip: #232a36; --star: #e8866f; --danger: #f2877c;
    --shadow: none; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #12161e; --surface: #1b212c; --text: #e6e9ef; --muted: #9aa3b2;
  --line: #2c3442; --accent: #7fb0e0; --accent-ink: #12161e; --chip: #232a36; --star: #e8866f; --danger: #f2877c;
  --shadow: none; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.85 var(--font-body); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo::before { content: "書"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px;
  background: var(--star); color: var(--surface); border-radius: 3px; font-size: 17px; letter-spacing: 0; vertical-align: -4px;
  box-shadow: inset 0 0 0 2px var(--star), inset 0 0 0 3px var(--surface); }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: .05em; }
.site-header nav a { margin-left: 20px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.3; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 20px; }
input[type=search], input[type=email], select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; width: 100%; }
input:focus, select:focus, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--chip); color: var(--text);
  border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.subchips { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.chip-sub { font-size: 14px; padding: 2px 12px; background: transparent; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding-bottom: 40px; }
.card { display: flex; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card { position: relative; }
.card .seal { position: absolute; top: 12px; right: 12px; }
.card-body { min-width: 0; }
.card h3 { margin: 4px 50px 0 0; font-size: 19px; }
.card p { margin: 4px 0; font-size: 15px; }
.meta { color: var(--muted); font-size: 14px !important; }
.tag { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; }
.stars { color: var(--star); letter-spacing: 1px; }
.stars.big { font-size: 20px; margin: 4px 0; }
.star-half { position: relative; display: inline-block; }
.star-half::before { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* 書封：底色用每本書的 --c，紋樣依子分類（data-g），上方小字是類型 */
.cover { flex: none; position: relative; overflow: hidden; background: var(--c); color: #fff; border-radius: 3px 7px 7px 3px;
  display: flex; flex-direction: column; padding: 10px 9px 9px 15px; font-family: var(--font-display);
  box-shadow: inset 6px 0 0 rgba(0,0,0,.2), var(--shadow); }
.cover::before { content: ""; position: absolute; inset: 0; opacity: .15; background: linear-gradient(#fff, #fff) top / 100% 24% no-repeat; }
.cover::after { content: ""; position: absolute; inset: 5px 5px 5px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; }
.cover > * { position: relative; }
.cover em { font-style: normal; font-family: var(--font-body); font-size: 10px; letter-spacing: .25em; opacity: .9; }
.cover span { font-weight: 700; line-height: 1.3; margin-top: 8px; flex: 1; overflow-wrap: anywhere; }
.cover small { font-family: var(--font-body); font-size: 11px; opacity: .85; line-height: 1.3; }
.cover-sm { width: 84px; height: 120px; font-size: 14px; }
.cover-lg { width: 150px; height: 214px; font-size: 20px; padding: 16px 14px 14px 22px; }
.cover-lg em { font-size: 12px; } .cover-lg small { font-size: 13px; }
.cover[data-g=xian]::before { background: radial-gradient(circle at 50% 100%, transparent 0 5px, #fff 5px 6px, transparent 6px 9px, #fff 9px 10px, transparent 10px) 0 0 / 22px 11px; }
.cover[data-g=xuan]::before { background: repeating-conic-gradient(from 0deg at 50% 115%, #fff 0 3deg, transparent 3deg 12deg); }
.cover[data-g=fantasy]::before { background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 12px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 12px); }
.cover[data-g=scifi]::before { background: linear-gradient(#fff 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, #fff 1px, transparent 1px) 0 0 / 14px 14px; }
.cover[data-g=mystery]::before { background: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 9px); }
.cover[data-g=lit]::before { background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 8px); }

.crumb { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.review-head { display: flex; gap: 24px; padding: 20px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.review-head h1 { margin: 6px 0 0; font-size: 32px; line-height: 1.3; }
.review-head p { margin: 2px 0; }
.lead { margin-top: 12px !important; font-size: 18px; }
article { padding: 12px 0; }
article p { margin: 1.1em 0; }
article ul { margin: 1.1em 0; padding-left: 1.4em; max-width: 38em; }
article li { margin: .35em 0; }
article h2 { font-size: 24px; line-height: 1.4; margin: 1.8em 0 .4em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
article h3 { font-size: 19px; line-height: 1.5; margin: 1.5em 0 .2em; color: var(--accent); }
.tags span { display: inline-block; margin-right: 10px; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { margin-left: auto; color: var(--muted); font-size: 14px; }
.buy, .related { padding: 24px 0 0; }
.buy h2, .related h2 { font-size: 20px; margin: 0 0 12px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 10px; }

.btn { font: inherit; font-size: 15px; display: inline-block; cursor: pointer; text-decoration: none; border-radius: var(--radius);
  padding: 8px 16px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }

.prose { padding: 32px 16px 48px; }
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 20px; }
#newsletter h2 { margin: 0; font-size: 20px; }
#newsletter p { margin: 4px 0 12px; color: var(--muted); }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input { flex: 2 1 220px; width: auto; }
.form-row select { flex: 1 1 120px; width: auto; }
.form-msg { min-height: 1.5em; font-size: 14px; color: var(--danger) !important; }
.form-msg.ok { color: var(--accent) !important; font-size: 17px; }
.copyright { font-size: 13px; color: var(--muted); margin-top: 24px; }

#consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#consent-banner p { margin: 0; flex: 1 1 300px; font-size: 14px; }
.consent-actions { display: flex; gap: 8px; }

#debug-panel { position: fixed; right: 12px; top: 72px; width: 340px; max-height: 60vh; overflow: auto; z-index: 60;
  background: rgba(20,20,20,.92); color: #d7f5d0; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  border-radius: 8px; padding: 10px; }
#debug-panel ol { margin: 6px 0 0; padding-left: 18px; }
#debug-panel li { margin-bottom: 6px; word-break: break-all; }
#debug-panel b { color: #ffd479; }
#debug-panel code { color: #bcd; }

@media (max-width: 560px) {
  .review-head { flex-direction: column; }
  .cover-lg { width: 120px; height: 170px; }
  .share-label { margin-left: 0; width: 100%; }
  #debug-panel { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 35vh; }
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
.lead, article p { max-width: 38em; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

.form-note { font-size: 13px; color: var(--muted); margin: 8px 0 0 !important; }
#unsubscribe { margin-top: 12px; }

/* 書單文與總表頁 */
.listing { padding-top: 32px; padding-bottom: 40px; }
.listing h1 { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.35; margin: 12px 0 8px; }
.listing h2 { font-size: 21px; margin: 28px 0 8px; }
.quick { font-size: 15px; }
.quick a { display: inline-block; margin-right: 14px; }
.in-lists { margin-top: 12px; }
.books { width: 100%; border-collapse: collapse; margin-top: 16px; }
.books th, .books td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.books th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.books td:nth-child(2), .books td:nth-child(3) { white-space: nowrap; }
.books small { color: var(--muted); }
.pick { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pick h3 { margin: 0 0 4px; font-size: 18px; }
.pick p { margin: 4px 0; }
@media (max-width: 600px) {
  .books thead { display: none; }
  .books tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .books td { display: inline; border: 0; padding: 0 8px 0 0; }
  .books td:first-child, .books td:last-child { display: block; padding: 2px 0; }
}

/* ===== 2026-10-03 改版：借書卡主視覺 ===== */
/* 評分印章：印章紅、微傾，全站唯一的評分畫法 */
.seal { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; color: var(--star); border: 2px solid currentColor;
  outline: 1px solid currentColor; outline-offset: -5px; font-family: var(--font-display); font-weight: 700;
  font-size: 16px; line-height: 1; letter-spacing: 0; transform: rotate(-8deg); }
.seal i { font-style: normal; font-size: 9px; margin-top: 2px; }
.seal-lg { width: 84px; height: 84px; font-size: 30px; border-width: 3px; outline-offset: -8px; }
.seal-lg i { font-size: 13px; margin-top: 4px; }
.seal-xs { width: 32px; height: 32px; font-size: 13px; border-width: 1.5px; outline: 0; vertical-align: middle; }
.seal-xs i { display: none; }
.rating { display: flex; align-items: center; gap: 14px; margin: 10px 0 6px !important; }
.pick h3 .seal { margin-left: 6px; }

.quick a { margin: 0 8px 8px 0; padding: 2px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-decoration: none; }
.quick a:hover { border-color: var(--accent); }
@media (max-width: 560px) { .seal-lg { width: 68px; height: 68px; font-size: 24px; } }

/* ===== 設計稿 v2：淡藍色系（大圓角色塊、膠囊按鈕、無框線） ===== */
:root { --bg: #f4f9fd; --surface: #ffffff; --text: #1f3344; --muted: #5b7183; --line: #dbe9f3; --accent: #1f6fa8; --accent-ink: #fff;
  --chip: #e4f1fa; --star: #86560f; --panel: #e4f1fa; --sky: #bfe3f8; --sky-2: #8ccbef; --blue: #4fa3db; --ink: #1f3344; --sun: #c59140; --star-bg: #f6ead2;
  --font-display: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; --radius: 14px;
  --shadow: 0 2px 4px rgba(31,51,68,.04), 0 10px 28px rgba(31,111,168,.09); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0f1a24; --surface: #172633; --text: #e3edf5; --muted: #9db2c3; --line: #263a4b; --accent: #8ccbef; --accent-ink: #0f1a24;
  --chip: #1d3040; --star: #e0aa55; --panel: #172f42; --sky: #1f4660; --sky-2: #2f6a90; --blue: #4fa3db; --ink: #0b141c; --sun: #e0aa55; --star-bg: #3a2f1a; --shadow: none; } }
:root[data-theme="dark"] { --bg: #0f1a24; --surface: #172633; --text: #e3edf5; --muted: #9db2c3; --line: #263a4b; --accent: #8ccbef; --accent-ink: #0f1a24;
  --chip: #1d3040; --star: #e0aa55; --panel: #172f42; --sky: #1f4660; --sky-2: #2f6a90; --blue: #4fa3db; --ink: #0b141c; --sun: #e0aa55; --star-bg: #3a2f1a; --shadow: none; }
body { font-size: 18px; line-height: 1.8; }
.wrap { max-width: 1080px; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }

/* 頁首 */
.site-header { border-bottom: 0; background: transparent; }
.site-header .wrap { height: 76px; }
.logo { font-size: 21px; letter-spacing: .04em; display: inline-flex; align-items: center; }
.logo::before { content: ""; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; box-shadow: none; vertical-align: 0;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5C9.6 5.8 6.6 5.5 4 6.4v10.4c2.6-.9 5.6-.6 8 1.1 2.4-1.7 5.4-2 8-1.1V6.4c-2.6-.9-5.6-.6-8 1.1z' fill='%23fff' stroke='%231f3344' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 7.5v10.4' stroke='%231f3344' stroke-width='1.5'/%3E%3C/svg%3E") center / 24px no-repeat; }
.site-header nav a { margin-left: 8px; padding: 6px 14px; border-radius: 999px; color: var(--text); }
.site-header nav a:hover { background: var(--chip); color: var(--text); }

/* 按鈕：膠囊形 */
.btn { border-radius: 999px; padding: 10px 24px; font-size: 16px; font-weight: 500; border: 0; background: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); color: #1f3344; }
.btn-ghost { background: var(--chip); color: var(--text); }
.btn-ghost[aria-pressed=true] { background: var(--sky); color: var(--text); }

/* 首頁第一屏 */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center;
  background: var(--panel); border-radius: 32px; padding: 48px 56px; margin-top: 8px; }
.eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: .2em; }
.hero2 h1 { margin: 0; font-size: clamp(32px, 5.2vw, 50px); line-height: 1.25; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.facts li { background: var(--surface); border-radius: 999px; padding: 4px 16px; font-size: 15px; color: var(--muted); }
.facts b { color: var(--text); font-size: 18px; margin: 0 2px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero2-art { width: 100%; max-width: 380px; justify-self: center; }

/* 四個入口 */
.start, .latest { padding: 44px 0 0; }
.start h2, .latest h2 { margin: 0 0 16px; font-size: 26px; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .15s; }
.door:hover { transform: translateY(-3px); }
.door-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--chip); color: var(--accent); margin-bottom: 8px; }
.door-ico svg { width: 28px; height: 28px; }
/* 圖示來自 Lucide（ISC 授權，可免費商用）。全站不使用 emoji。 */
.door b { font-size: 18px; line-height: 1.4; }
.door small { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* 搜尋、分類、卡片 */
.latest { padding-bottom: 20px; }
input[type=search], input[type=email], select { border-radius: 999px; padding: 12px 20px; border-color: var(--line); }
.chip { border: 0; padding: 6px 16px; }
.subchips { border-left: 0; padding-left: 0; }
.chip-sub { background: var(--surface); }
.chip-sub.active { background: var(--accent); }
.grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { border: 0; border-radius: 24px; padding: 20px; }
.card .seal { top: 18px; right: 18px; }
.card h3 { margin-right: 64px; }
.tag { border: 0; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.cover { border-radius: 6px 12px 12px 6px; font-family: var(--font-body); }
.cover::after { display: none; }

/* 評分：琥珀色小標籤，取代紅色印章 */
.seal { flex-direction: row-reverse; gap: 3px; width: auto; height: auto; padding: 3px 12px; border: 0; outline: 0; border-radius: 999px;
  background: var(--star-bg); color: var(--star); font-family: var(--font-body); font-size: 15px; line-height: 1.5; transform: none; }
.seal i { font-size: 13px; margin: 0; }
.seal-lg { width: auto; height: auto; padding: 4px 18px; font-size: 22px; }
.seal-lg i { font-size: 18px; margin: 0; }
.seal-xs { width: auto; height: auto; padding: 1px 10px; font-size: 14px; }
.seal-xs i { display: inline; font-size: 12px; }
.stars { color: var(--sun); }

/* 心得頁 */
.review-head { border: 0; border-radius: 28px; background: var(--panel); box-shadow: none; padding: 28px; }
article h2 { border-bottom: 0; padding: 0 0 0 14px; border-left: 6px solid var(--sky-2); border-radius: 3px; }
article h3 { color: var(--text); }
.actions { border: 0; background: var(--surface); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); margin-top: 20px; }
.quick a { border: 0; border-radius: 999px; background: var(--chip); padding: 4px 14px; }
.books th, .books td, .pick { border-color: var(--line); }

/* 頁尾訂閱 */
.site-footer { border-top: 0; background: transparent; padding: 0 0 28px; margin-top: 56px; }
#newsletter { background: var(--panel); border-radius: 28px; padding: 32px; }
#newsletter h2 { font-size: 24px; }
#newsletter .btn { background: var(--sun); color: #1f3344; }
#consent-banner { border: 0; border-radius: 20px; }

@media (max-width: 860px) { .hero2 { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 24px; } .hero2-art { max-width: 260px; order: -1; }
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .review-head { padding: 20px; border-radius: 22px; } .door { padding: 16px; border-radius: 20px; } .site-header nav a { padding: 6px 9px; margin-left: 2px; } }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* ===== 分頁結構（首頁導覽、心得列表頁、書單頁） ===== */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.more { font-size: 15px; text-decoration: none; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 4px 16px; white-space: nowrap; }
.more:hover { background: var(--sky); }
.start .grid { padding-bottom: 0; }
.page-head { padding-top: 12px; }
.page-head h1 { margin: 8px 0 16px; font-size: clamp(28px, 4.5vw, 38px); }
.list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.list-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 24px; background: var(--panel); color: var(--text); text-decoration: none; transition: transform .15s; }
.list-card:hover { transform: translateY(-3px); }
.list-card b { font-size: 18px; line-height: 1.5; }
.list-card span { font-size: 15px; color: var(--muted); line-height: 1.7; }
.list-card small { font-size: 14px; color: var(--muted); margin-top: auto; }
.listing > .list-card { margin-top: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 0 40px; }
.pg { font: inherit; font-size: 16px; min-width: 44px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.pg:hover:not(:disabled) { background: var(--chip); }
.pg.active { background: var(--accent); color: var(--accent-ink); }
.pg:disabled { opacity: .45; cursor: default; }
.pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) { .list-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 4px; }
  .site-header nav { width: 100%; display: flex; gap: 4px; margin-top: 6px; } .site-header nav a { margin-left: 0; background: var(--chip); flex: 1; text-align: center; font-size: 15px; padding: 5px 4px; } }
@media (prefers-reduced-motion: reduce) { .list-card { transition: none; } .list-card:hover { transform: none; } }
@media (max-width: 560px) { #newsletter { padding: 22px; } .form-row input { flex: 1 1 100%; min-width: 0; } }

/* ===== 分類頁、導覽下拉選單、頁尾網站地圖 ===== */
.chip small, .dd-menu small { font-size: 12px; opacity: .7; margin-left: 2px; }
a.chip { text-decoration: none; display: inline-block; }
.cat-links { margin: 14px 0 24px; }
.listing .grid { padding-bottom: 0; }
.dd { position: relative; display: inline-block; }
.dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd-menu { position: absolute; z-index: 40; top: 100%; left: 0; min-width: 210px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px rgba(31,51,68,.16);
  display: none; grid-template-columns: 1fr; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.site-header nav .dd-menu a { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 7px 12px; border-radius: 12px; font-size: 16px; }
.site-header nav .dd-menu a.dd-sub { padding-left: 26px; font-size: 15px; color: var(--muted); }
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-top: 32px; padding: 28px 8px 0; border-top: 1px solid var(--line); }
.sitemap h3 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 500; }
.sitemap a { display: block; padding: 3px 0; font-size: 15px; color: var(--text); text-decoration: none; line-height: 1.5; }
.sitemap a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 560px) { .dd { flex: 1; display: flex; } .dd > a { flex: 1; } .dd > a::after, .dd-menu { display: none !important; } .sitemap { grid-template-columns: 1fr 1fr; padding: 24px 4px 0; } }

/* ===== 回饋表單 ===== */
.fb { display: grid; gap: 20px; margin-top: 20px; background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.fb label, .fb legend { display: block; font-weight: 500; margin-bottom: 6px; }
.fb label small { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 13px; }
.fb input[type=text], .fb input[type=email], .fb textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; width: 100%; }
.fb textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.fb input:focus, .fb textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-types { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-types legend { width: 100%; }
.fb-types label { margin: 0; font-weight: 400; cursor: pointer; }
.fb-types input { position: absolute; opacity: 0; }
.fb-types span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--chip); }
.fb-types input:checked + span { background: var(--accent); color: var(--accent-ink); }
.fb-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fb-row[hidden] { display: none; }
.fb-count { margin: 4px 0 0; text-align: right; font-size: 13px; color: var(--muted); }
.fb p { margin: 0; }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border-radius: 28px; padding: 28px 32px; }
.ask h2 { margin: 0; font-size: 22px; } .ask p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 560px) { .fb { padding: 22px; border-radius: 22px; } .fb-row { grid-template-columns: 1fr; } .ask { padding: 22px; } }
.fb > *, .fb-row > * { min-width: 0; }
.fb-types { min-width: 0; }
.fb input.sr-only { width: 1px; padding: 0; border: 0; left: 0; }

/* ===== 品牌：折角 Dogeared ===== */
.logo span { font-weight: 500; margin-left: 6px; letter-spacing: .02em; color: var(--muted); }
.logo::before { background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5h8.5L19 8v12.5H6z' fill='%23fff' stroke='%231f3344' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M14.5 3.5V8H19z' fill='%238ccbef' stroke='%231f3344' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.hero2 { position: relative; border-top-right-radius: 0; }
.hero2::after { content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 72px; border-bottom-left-radius: 18px;
  background: linear-gradient(225deg, var(--bg) 50%, var(--sky-2) 50%); box-shadow: -4px 4px 10px rgba(31,51,68,.08); }
.hero2 h1 span { font-weight: 500; color: var(--accent); }
.tagline { margin: 10px 0 0; font-size: clamp(18px, 2.4vw, 24px); color: var(--muted); letter-spacing: .06em; }
@media (max-width: 560px) { .hero2::after { width: 52px; height: 52px; border-bottom-left-radius: 14px; } }

/* 標誌（Drew 提供的圖，去背後轉成向量 assets/logo.svg；深色模式用 logo-dark.svg） */
.logo::before { width: 32px; height: 32px; border-radius: 0; background: url("logo.svg") center / contain no-repeat; }
.hero2-art { display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; background: var(--sky); }
.hero2-art img { width: 68%; height: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo::before { background-image: url("logo-dark.svg"); } }
@media (max-width: 860px) { .hero2-art { max-width: 220px; } }
.logo small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: .02em; }
@media (max-width: 720px) { .logo small { display: none; } }

/* 首頁「從這裡開始」：郵票圖示，文字在右 */
.door { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: center; padding: 16px 18px; }
.door-ico { grid-row: 1 / span 2; width: 96px; height: 96px; margin: 0; background: none; border-radius: 0; filter: drop-shadow(0 3px 6px rgba(31,51,68,.18)); transition: transform .2s; }
.door-ico img { width: 100%; height: 100%; display: block; }
.door:hover .door-ico { transform: rotate(-3deg); }
.door b { align-self: end; }
.door small { align-self: start; }
@media (max-width: 900px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .start-grid { grid-template-columns: 1fr; gap: 12px; } .door-ico { width: 84px; height: 84px; } }
@media (prefers-reduced-motion: reduce) { .door-ico { transition: none; } .door:hover .door-ico { transform: none; } }

/* ===== 心得清單（2026-10-21，取代卡片牆）：一列一本，依發布日期由新到舊，同一天只標一次日期 ===== */
.rows { margin: 0; padding: 8px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.row { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; column-gap: 20px; align-items: center;
  padding: 14px 18px; border-radius: 16px; color: var(--text); text-decoration: none; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; border-top: 1px solid var(--line); }
.row.same-day::before { left: 142px; }
.row:hover { background: var(--bg); }
.row:hover::before, .row:hover + .row::before { border-color: transparent; }
.row-date { align-self: start; padding-top: 2px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row.same-day .row-date { visibility: hidden; }
.row-main { min-width: 0; }
.row-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.row:hover .row-title { color: var(--accent); }
.row-sub { margin-left: 12px; font-size: 14px; color: var(--muted); }
.row-sub .tag { margin-left: 10px; vertical-align: 1px; }
.row-sum { display: block; margin-top: 2px; font-size: 15px; line-height: 1.6; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .seal { justify-self: end; }
.listing .rows, section > .rows { margin-bottom: 32px; }
.related .rows { margin-top: 8px; }
@media (max-width: 560px) {
  .rows { padding: 4px 6px; border-radius: 20px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 12px; }
  .row-date { grid-column: 1 / -1; padding: 4px 0 2px; font-size: 13px; font-weight: 500; color: var(--accent); }
  .row.same-day .row-date { display: none; }
  .row.same-day::before { left: 12px; }
  .row + .row::before { left: 12px; right: 12px; }
  .row-title { font-size: 17px; }
  .row-sub { display: block; margin: 0; font-size: 13px; }
  .row-sum { display: none; }
}
