:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #5a6878;
  --line: #dde3ea;
  --brand: #1e5493;
  --brand-strong: #0b2039;
  --accent: #2f82c0;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520;
    --surface: #111f2e;
    --text: #e6edf5;
    --muted: #9aabbd;
    --line: #22344a;
    --brand: #7fd4ff;
    --brand-strong: #cfeeff;
    --accent: #7fd4ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav .lang {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  padding: 6px 10px;
}

.button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
}
.button.primary {
  background: var(--brand);
  color: var(--bg);
}

/* Home */
.hero { padding: 72px 0 48px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px rgb(11 32 57 / .25); }
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 20px 0 8px; line-height: 1.2; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section { padding: 40px 0; }
section h2 { font-size: 1.6rem; margin: 0 0 8px; }
section > .wrap > p.lead { color: var(--muted); margin: 0 0 24px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 1.2em; }

ol.steps { padding-left: 1.3em; margin: 0; }
ol.steps li { margin-bottom: 10px; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* Policy */
.policy { padding: 48px 0 24px; }
.policy h1 { font-size: 2rem; margin: 0 0 4px; }
.policy .meta { color: var(--muted); margin: 0 0 28px; }
.policy h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.policy h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.policy th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
