:root {
  --primary: #4c6ef5;
  --primary-dark: #3b5bdb;
  --bg-card: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(255, 255, 255, 0.7);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888aa;
  --shadow-md: 0 8px 32px rgba(76, 110, 245, 0.12);
  --radius: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(116, 143, 252, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(76, 110, 245, 0.28), transparent 45%),
    linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #dbe4ff 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
}
.post-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  transition: var(--transition);
}
.back-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.post-article {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 3rem 2.5rem;
}
.post-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(76,110,245,0.15); }
.post-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  line-height: 1.3;
  background: linear-gradient(135deg, #1a1a2e, var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-meta { color: var(--text-muted); font-size: 0.9rem; }

.post-content { font-size: 1.02rem; line-height: 1.85; color: var(--text-secondary); }
.post-content h1, .post-content h2, .post-content h3 { color: var(--text-primary); margin: 2rem 0 1rem; line-height: 1.4; }
.post-content h2 { font-size: 1.5rem; border-left: 4px solid var(--primary); padding-left: 0.8rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content p { margin: 1rem 0; }
.post-content a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(76,110,245,0.3); transition: var(--transition); }
.post-content a:hover { border-bottom-color: var(--primary); }
.post-content code {
  background: rgba(76,110,245,0.1);
  color: var(--primary-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.9em;
}
.post-content pre {
  background: rgba(26,26,46,0.92);
  color: #e0e0e0;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content blockquote {
  border-left: 4px solid var(--primary-light);
  background: rgba(76,110,245,0.06);
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
}
.post-content img { max-width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); margin: 1.2rem 0; }
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content li { margin: 0.4rem 0; }

@media (max-width: 640px) {
  .post-page { padding: 1rem 0.8rem 3rem; }
  .post-article { padding: 1.5rem 1.2rem; }
  .post-header h1 { font-size: 1.6rem; }
  .post-content { font-size: 0.95rem; }
}