/* =========================================================
   ShupaGo Design Tokens — v4 · 淡底 × 暖辣食慾色
   所有頁面只需 <link rel="stylesheet" href="/static/css/tokens.css">
   Tailwind class 也可直接用 (透過 inline tailwind.config)
   ========================================================= */

:root {
  /* Brand */
  --chili: #d94c2b;
  --chili-deep: #a62e12;
  --caramel: #e89446;
  --mustard: #e8b23f;
  --forest: #3d5a3d;

  /* Neutrals */
  --cream: #fcfaf6;
  --cream-deep: #f2ede3;
  --ink: #2a2520;        /* §0.2 改 #1f1410 → #2a2520 */
  --ink-soft: #6b5948;
  --ink-muted: #c9b99e;
  --line: #ece5d6;

  /* Radius */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadow (hard) */
  --sh-ink: 0 4px 0 var(--ink);
  --sh-ink-sm: 0 2px 0 var(--ink);
  --sh-chili: 0 4px 0 var(--chili-deep);
  --sh-chili-sm: 0 3px 0 var(--chili-deep);
  --sh-drop: 0 16px 40px rgba(31,20,16,0.18);
  --sh-drop-lg: 0 30px 60px rgba(31,20,16,0.25);

  /* Type */
  --font-sans: "Noto Sans TC", "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---------- Utility primitives (非 tailwind 的專屬樣式) ---------- */

.chapter-tag {
  font-size: 13px;
  color: var(--chili);
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 800;
  border-radius: var(--r-md);
  padding: 18px 32px;
  font-size: 16px;
  transition: transform 0.08s ease;
}
.btn:active { transform: translateY(2px); }
.btn-chili  { background: var(--chili); color: var(--cream); box-shadow: var(--sh-chili); }
.btn-ink    { background: var(--ink);   color: var(--cream); box-shadow: 0 4px 0 #000; }
.btn-cream  { background: var(--cream); color: var(--chili); box-shadow: 0 4px 0 var(--cream-deep); }
.btn-sm     { padding: 12px 22px; font-size: 14px; border-radius: var(--r-pill); box-shadow: var(--sh-chili-sm); }

.card-hard {
  border: 2px solid var(--ink);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-ink);
  background: var(--cream);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--cream-deep);
  color: var(--ink);
}
.pill-dark  { background: var(--ink); color: var(--mustard); }
.pill-chili { background: var(--chili); color: var(--cream); }

/* dashed divider */
.divider-dashed {
  border-top: 1.5px dashed var(--caramel);
}

/* focus */
:focus-visible {
  outline: 3px solid var(--chili);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Nav (§0.1 膠囊容器版) ---------- */
.nav-item { padding: 8px 18px; border-radius: 12px; font-weight: 600; color: var(--ink); }
[data-nav] {
  display: inline-flex; gap: 4px;
  padding: 6px;
  background: var(--cream-deep);
  border-radius: 999px;
}
[data-nav] [data-key].is-current { background: var(--ink); color: var(--cream); font-weight: 700; }

/* ---------- FAQ item v2 — 線條極簡風 (Round 4，2026-04-23) ---------- */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.faq-item {
  background: var(--cream);
  border: 2px solid var(--ink-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--chili);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  font-size: 16px; font-weight: 800; list-style: none;
  color: var(--ink);
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream-deep); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-toggle {
  background: var(--chili); color: var(--cream);
}
.faq-body {
  padding: 0 24px 20px;
  font-size: 15px; line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 500;
}
.faq-body p { margin: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
