/* content.css —— /guide/ 與 /faq/ 這類文章頁專用。
 *
 * 刻意跟 styles.css 分開：那一份是為「滿版地圖 + 浮動面板」寫的，
 * 文章頁需要的是一欄可讀的文字，兩者共用只會互相牽制。
 * 顏色沿用 app 的品牌色，看起來才是同一個站。 */

:root {
  --bg: #faf9f7;
  --surface: #fff;
  --ink: #1c1a17;
  --ink-soft: #6b655c;
  --line: #e5e1db;
  --accent: #c85a0c;
  --accent-dark: #b04f0a;
  --font: "Geist", "Noto Sans TC", system-ui, -apple-system, sans-serif;
}

/* 日文用 Noto Sans JP：index.html 載的 Noto Sans TC 沒有假名，
   漢字也是中文字形（画/直/骨 寫法不同），日文頁用它會變成混字體。 */
html[lang="ja"] { --font: "Geist", "Noto Sans JP", system-ui, -apple-system, sans-serif; }

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ── 頂部 ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: block; line-height: 0; }
.topbar .brand img { width: auto; height: 30px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .9375rem; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.cta {
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  line-height: 1.4;
}
.cta:hover { background: var(--accent-dark); }

/* ── 文章 ── */
main { max-width: 44rem; margin: 0 auto; padding: 40px 24px 24px; }

h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 40px 0 12px; }
.lead { font-size: 1.125rem; color: var(--ink-soft); margin: 0 0 8px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin-bottom: 8px; }
li::marker { color: var(--ink-soft); }
strong { font-weight: 600; }

/* FAQ：每題一張卡，答案第一句就是答案（答案引擎抓的是那一句） */
.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px 20px;
  margin-bottom: 14px;
}
.qa h2 { font-size: 1.0625rem; margin: 20px 0 8px; }
.qa p { margin: 0; }

/* ── 延伸閱讀 / 頁尾 ── */
.next {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.next h2 { font-size: .875rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.next p { margin: 0 0 10px; }
.next p:last-child { margin: 14px 0 0; }

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px 24px 56px;
  font-size: .8125rem;
  color: var(--ink-soft);
}
footer p { margin: 0 0 4px; }
footer a { color: var(--ink-soft); }

@media (max-width: 32rem) {
  body { font-size: 16px; }
  main { padding: 28px 18px 16px; }
  h1 { font-size: 1.625rem; }
  .topbar { padding: 12px 18px; gap: 10px; }
  .topbar nav { gap: 14px; width: 100%; margin-left: 0; }
}
