:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5d6470;
  --accent: #d24a7a;
  --accent-text: #ffffff;
  --border: #e3e1da;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1e2127;
    --text: #e8e9eb;
    --muted: #a3a9b3;
    --accent: #ef6f9c;
    --accent-text: #15171b;
    --border: #2e323a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; overflow-wrap: anywhere; }
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
header.site nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }
main { padding: 32px 0 64px; }
h1 { font-size: 1.9rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 36px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.play-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
}
.play-btn:hover { filter: brightness(1.08); }
h3 { font-size: 1.08rem; margin: 24px 0 6px; }
h4 { font-size: 1rem; margin: 16px 0 4px; color: var(--muted); }
section { scroll-margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { white-space: nowrap; }
.pending { border-left: 4px solid var(--border); padding-left: 12px; color: var(--muted); }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; padding: 16px 0 32px; }
