@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Sans+TC:wght@400;500;700;900&family=IBM+Plex+Sans:wght@400;600;700&display=swap');

:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --text: #0e1726;
  --muted: #4e5d78;
  --line: #dbe4ef;
  --brand: #0057d8;
  --brand-2: #00a58f;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #d5e6ff 0%, var(--bg) 45%), linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  font-family: "Noto Sans SC", "Noto Sans TC", "IBM Plex Sans", sans-serif;
  line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.brand { font-weight: 900; color: #0b274f; letter-spacing: 0.2px; }
main { max-width: 1060px; margin: 0 auto; padding: 30px 18px 60px; }
.hero {
  padding: 40px 28px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(125deg, #0b2d5f, #0658d3 45%, #0cae97 110%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(2, 35, 84, 0.18);
}
.hero h1 { margin: 0 0 10px; line-height: 1.2; font-size: clamp(1.9rem, 5.2vw, 3rem); }
.hero p { margin: 0; max-width: 76ch; opacity: 0.96; }
.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  color: #fff;
  font-weight: 700;
}
.btn.primary { background: #fff; color: #063e92; border: 1px solid #fff; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8, 50, 112, 0.12); }
.card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.latest,
.page-wrap,
.article {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list span { color: var(--muted); margin-left: 8px; }
.meta { color: var(--muted); margin-top: -8px; }
.tags span {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 2px 8px;
  background: #edf3ff;
  border: 1px solid #d5e2ff;
  border-radius: 999px;
  font-size: 0.85rem;
}
.footer {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.content img { max-width: 100%; border-radius: 10px; }
.content table { width: 100%; border-collapse: collapse; }
.content th, .content td { border: 1px solid var(--line); padding: 8px; }
.content pre {
  overflow-x: auto;
  background: #0f1f38;
  color: #d8e5ff;
  padding: 12px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .topbar { position: static; padding: 10px 12px; }
  main { padding: 18px 10px 40px; }
  .hero { padding: 22px 16px; }
}
