/* ── Blog Post Shared Styles ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }

/* ── Post Nav ── */
.post-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 1rem 2rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #94a3b8; font-weight: 500; font-size: 0.95rem;
  transition: color 0.3s;
}
.back-link:hover { color: #3b82f6; }

/* ── Post Article ── */
.post {
  max-width: 720px; margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.post-header { margin-bottom: 2.5rem; }
.post-meta {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.post-meta time {
  font-size: 0.85rem; color: #64748b;
}
.post-tags { display: flex; gap: 0.5rem; }
.post-tags span {
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 20px;
  background: rgba(6, 182, 212, 0.1); color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.15);
}
.post-header h1 {
  font-size: 2.25rem; font-weight: 900; line-height: 1.3;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Post Body ── */
.post-body { font-size: 1.05rem; line-height: 2; color: #cbd5e1; }
.post-body h2 {
  font-size: 1.4rem; font-weight: 700; color: #e2e8f0;
  margin: 2.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid #3b82f6;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  list-style: none;
}
.post-body ul li {
  position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem;
}
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 6px; border-radius: 50%; background: #06b6d4;
}
.post-body strong { color: #e2e8f0; }
.post-body code {
  background: rgba(59, 130, 246, 0.1); color: #93c5fd;
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.9em;
}
.post-body pre {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 12px; padding: 1.25rem;
  overflow-x: auto; margin: 1.25rem 0;
  font-size: 0.9rem; line-height: 1.6;
}
.post-body pre code {
  background: none; padding: 0;
}
.post-body blockquote {
  border-left: 3px solid #3b82f6;
  padding: 0.75rem 1.25rem; margin: 1.25rem 0;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0 8px 8px 0;
  color: #94a3b8; font-style: italic;
}
.post-body img {
  max-width: 100%; border-radius: 12px; margin: 1.5rem 0;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

/* ── Post Footer ── */
.post-footer {
  max-width: 720px; margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .post { padding: 2rem 1.25rem 3rem; }
  .post-header h1 { font-size: 1.75rem; }
  .post-body { font-size: 1rem; }
}
