:root {
  color-scheme: light dark;
  --text: #1d1b20;
  --muted: #5d5a63;
  --line: #d9d4dd;
  --panel: #ffffff;
  --page: #f6f3ee;
  --accent: #6a3fb5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ece6f0;
    --muted: #b9b3bf;
    --line: #47434d;
    --panel: #232027;
    --page: #17151a;
    --accent: #c9aefc;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--page);
  color: var(--text);
  font: 16px/1.75 system-ui, -apple-system, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
  overflow-wrap: anywhere;
}
main, nav { max-width: 760px; margin: 0 auto; }
h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
p, li, td, th { white-space: pre-line; }
p { margin: 12px 0; }
ul { margin: 12px 0; padding-left: 1.4em; }
li + li { margin-top: 6px; }
a { color: var(--accent); }
.summary { color: var(--muted); }
.notice {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.9rem;
}
.action {
  display: inline-block;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--page);
  font-weight: 700;
  text-decoration: none;
}
section {
  margin: 16px 0;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--page); }
nav { margin-top: 32px; }
nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav li + li { margin-top: 0; }
nav a, nav span { display: inline-block; min-height: 48px; padding: 12px 0; }
nav span { color: var(--muted); font-weight: 700; }
@media (max-width: 560px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 10px 0; border-top: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 700; }
  td:not(:first-child)::before { content: attr(data-label) "："; color: var(--muted); }
}
