:root {
  --bg: #0d1424;
  --bg-2: #141d33;
  --glass: rgba(255, 255, 255, 0.05);
  --line: rgba(232, 200, 130, 0.22);
  --text: #e9e6df;
  --muted: #a9a8b3;
  --gold: #e8c882;
  --gold-soft: #cdb07a;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1d2a4a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.75 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: #f5dca6; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.brand { color: var(--gold); text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
.brand small { color: var(--muted); font-weight: 400; margin-left: 6px; }

.langs { display: flex; gap: 6px; }
.langs button {
  background: var(--glass); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }

h1 { font-size: 30px; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
h2 { font-size: 20px; margin: 36px 0 8px; color: var(--gold); font-weight: 600; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin: 16px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

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

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }

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

/* Both languages show when scripts are off; lang.js hides the other one. */
.lang-block[hidden] { display: none; }

/* Landing page */
.hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hero h1 { font-size: 40px; color: var(--gold); }
.hero .zh { font-size: 22px; color: var(--muted); margin: 0 0 20px; }
.hero p.lead { max-width: 520px; margin: 0 auto 8px; }
.hero .soon {
  display: inline-block; margin: 24px auto 0; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold-soft); font-size: 14px;
}

@media (max-width: 520px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 32px; }
}
