:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.75;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .5px;
}

.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.hero {
  padding: 56px 0 36px;
}

.hero h1 {
  font-size: 34px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero h1 .dot { color: var(--accent); }

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.section-title {
  font-size: 18px;
  margin: 30px 0 14px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

.post-list { display: flex; flex-direction: column; gap: 14px; }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s, box-shadow .15s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.post-card h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.post-card .date {
  color: var(--muted);
  font-size: 13px;
}

.post-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.game-banner {
  margin: 26px 0 10px;
  background: linear-gradient(135deg, #0d9488, #0ea5b7);
  color: #fff;
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.game-banner h3 { font-size: 20px; margin-bottom: 4px; }
.game-banner p { opacity: .88; font-size: 14px; }

.btn {
  display: inline-block;
  background: #fff;
  color: #0d9488;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  transition: transform .1s;
}

.btn:hover { transform: scale(1.04); }

article.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 32px;
  margin: 24px 0;
}

article.post h1 { font-size: 26px; margin-bottom: 6px; }
article.post .meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
article.post h2 { font-size: 19px; margin: 22px 0 8px; }
article.post p { margin-bottom: 12px; }
article.post code {
  background: #f1f5f9;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 14px;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { text-decoration: underline; }

.game-page {
  display: flex;
  justify-content: center;
  padding: 30px 20px 40px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
