* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #0d1017; color: #e6e8f0; line-height: 1.75;
}
a { color: #7aa2ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.site-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid #232838; flex-wrap: wrap; gap: 10px;
}
.brand { font-size: 20px; font-weight: 800; color: #fff; }
.brand:hover { text-decoration: none; }
.site-head nav a { margin-left: 20px; color: #aab2c8; font-size: 15px; }
.site-head nav a:hover { color: #fff; }
.hero { padding: 56px 0 36px; }
.hero h1 {
  font-size: 38px; line-height: 1.3; font-weight: 800;
  background: linear-gradient(90deg, #7aa2ff, #b48cff, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 14px; color: #9aa3b8; font-size: 17px; max-width: 640px; }
.hero-btns { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: #3b5bdb; color: #fff; font-size: 15px;
}
.btn:hover { text-decoration: none; background: #2f4bc0; }
.btn.ghost { background: transparent; border: 1px solid #2b3350; color: #c6cddd; }
.btn.ghost:hover { border-color: #7aa2ff; color: #fff; }
section { padding: 26px 0; }
h2 { font-size: 22px; margin-bottom: 16px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tagbtn {
  padding: 5px 14px; border-radius: 999px; border: 1px solid #2b3350;
  background: transparent; color: #aab2c8; font-size: 14px; cursor: pointer;
}
.tagbtn:hover { border-color: #7aa2ff; color: #fff; }
.tagbtn.active { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.card {
  background: #151a2b; border: 1px solid #262c47; border-radius: 14px;
  padding: 22px 24px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin: 8px 0; line-height: 1.5; }
.card h3 a { color: #fff; }
.card p { color: #aab2c8; font-size: 15px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: #7d8698; font-size: 13px; align-items: center; }
.cat { background: #22315e; color: #9db8ff; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { color: #8b93ad; font-size: 13px; border: 1px solid #2b3350; padding: 2px 10px; border-radius: 999px; }
.post { padding: 36px 0 20px; }
.post h1 { font-size: 30px; line-height: 1.4; margin: 12px 0 10px; }
.content { margin-top: 22px; }
.content h2 { font-size: 22px; margin: 28px 0 12px; }
.content h3 { font-size: 18px; margin: 22px 0 10px; }
.content p { margin-bottom: 14px; color: #c9cede; }
.content ul { margin: 0 0 14px 22px; color: #c9cede; }
.content li { margin-bottom: 6px; }
.content code { background: #1e2438; padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.content pre { background: #12162a; border: 1px solid #262c47; border-radius: 10px; padding: 16px; overflow-x: auto; margin-bottom: 16px; }
.content pre code { background: none; padding: 0; }
.back { margin-top: 28px; }
footer { text-align: center; color: #6b7288; font-size: 13px; padding: 36px 0 48px; border-top: 1px solid #232838; margin-top: 20px; }
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .post h1 { font-size: 24px; }
  .site-head nav a { margin-left: 12px; }
}
