:root {
  --bg: #0f1115;
  --panel: #151a22;
  --text: #e9eef6;
  --muted: #aab4c3;
  --line: #243043;
  --accent: #7aa2ff;

  --radius: 16px;
  --pad: 18px;
  --max: 980px;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0f1115;
  --muted: #4b5565;
  --line: #e5e7ee;
  --accent: #2f6bff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0.95;
}

.navlinks a {
  margin-left: 14px;
  color: var(--muted);
}
.navlinks a:hover { color: var(--text); }

.hero {
  padding: 30px 0 18px;
}

.kicker {
  color: var(--muted);
  margin: 0 0 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
}

.sub {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 60ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

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

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.meta {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.post {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.postTitle { font-weight: 700; }
.postMeta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.postBody { color: var(--muted); margin-top: 8px; }

.contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.pill:hover { color: var(--text); border-color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  padding-bottom: 28px;
}

.small { font-size: 12px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}