:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #17181a;
  --muted: #5f6368;
  --line: #e3e1db;
  --accent: #1f4fd8;
  --draft-bg: #fff3cd;
  --draft-ink: #6b4e00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1b1d20;
    --ink: #f1f1ee;
    --muted: #a3a7ad;
    --line: #2c2f34;
    --accent: #8fb0ff;
    --draft-bg: #4a3b00;
    --draft-ink: #ffe9a6;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
.top, main, footer { max-width: 920px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 26px; height: 26px; color: var(--accent); }
nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.lang { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.lang:hover { border-color: var(--muted); }

.hero { padding: 72px 0 56px; }
.kicker { margin: 0 0 14px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.025em; max-width: 16em; text-wrap: balance; }
.lede { margin: 22px 0 0; font-size: 20px; color: var(--muted); max-width: 34em; }

.block { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 20px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head img { border-radius: 14px; flex: none; }
.card h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.platform { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.card > p { margin: 18px 0 22px; }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { opacity: 0.86; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.card-links .link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }

.contact-list { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list li > span:first-child { width: 120px; color: var(--muted); }
.draft-tag { background: var(--draft-bg); color: var(--draft-ink); border-radius: 6px; padding: 1px 8px; font-size: 14px; }

.prose { padding-top: 40px; padding-bottom: 40px; max-width: 720px; }
.prose h1 { font-size: 40px; margin-bottom: 12px; }
.prose h2 { margin: 36px 0 8px; font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.muted { color: var(--muted); }

footer { padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p { margin: 0; }

@media (max-width: 640px) {
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  nav { gap: 12px; }
  nav a { display: none; }
  .hero { padding: 44px 0 40px; }
  .lede { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .contact-list li > span:first-child { width: 100%; }
}
