:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1c1f2a;
  --muted: #646a7a;
  --border: #e3e6ee;
  --accent: #4b5bd6;
  --accent-text: #ffffff;
  --warn-bg: #fff4e5;
  --warn-text: #8a4b00;
  --code-bg: #eef0f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161d;
    --surface: #1d2029;
    --text: #e8eaf0;
    --muted: #9aa0b2;
    --border: #2d313d;
    --accent: #7d8bf0;
    --accent-text: #10121a;
    --warn-bg: #3a2a12;
    --warn-text: #f5c27a;
    --code-bg: #262a35;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, "Microsoft JhengHei", "PingFang TC", sans-serif;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.top .wrap { padding-top: 20px; padding-bottom: 16px; }
.top h1 { margin: 0; font-size: 24px; letter-spacing: .02em; }
.tagline { margin: 2px 0 0; color: var(--muted); }

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.notice.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.setup summary { cursor: pointer; font-weight: 600; }
.setup ol { margin: 10px 0 0; padding-left: 20px; }
.setup li { margin: 6px 0; }
pre { background: var(--code-bg); border-radius: 6px; padding: 8px 10px; overflow-x: auto; font-size: 13px; margin: 6px 0; }

.section-head { display: flex; align-items: baseline; gap: 10px; }
.section-head h2 { font-size: 18px; margin: 0 0 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-head { display: flex; gap: 12px; align-items: center; }
.card h3 { margin: 0; font-size: 16px; }
.icon { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.icon.placeholder { display: grid; place-items: center; background: var(--code-bg); font-weight: 700; font-size: 22px; }
.meta { margin: 0; color: var(--muted); font-size: 13px; }
.summary { margin: 0; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 8px;
}
.btn:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
a { color: var(--accent); }
footer { padding-top: 32px; padding-bottom: 32px; font-size: 13px; }
