:root {
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --accent: #0b6bcb;
  --border: #dde3ea;
  --warn-bg: #fff6e5;
  --warn-text: #7a4b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --card: #17202a;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --accent: #5aa9ff;
    --border: #2a3644;
    --warn-bg: #2b2210;
    --warn-text: #f3c77a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

header.site a.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

nav a { margin-left: 16px; }
nav a:first-child { margin-left: 0; }

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

h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }

.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
}

.notice {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 0;
}

ul { padding-left: 1.3em; }
li { margin: 4px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
