body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.content {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.article-content {
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.article-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
}

.article-content code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.posts-page-header {
  margin-bottom: 2rem;
}

.posts-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.posts-page-subtitle {
  color: #6c757d;
  margin-bottom: 0;
}

.post-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.post-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.post-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-category {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

a.post-card-category:hover {
  color: #fff;
  background: rgba(13, 110, 253, 0.9);
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.post-card-title a {
  color: #212529;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #0d6efd;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.post-card-excerpt {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.post-card-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.post-card-link:hover {
  color: #0a58ca;
}

.site-footer {
  border-top: 1px solid #e9ecef;
}

.site-footer-social .footer-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-footer-qr {
  margin: 1.25rem auto 1rem;
  max-width: 420px;
}

.site-footer-qr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.35rem;
  margin-top: 0.65rem;
}

.site-footer-qr-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.site-footer-qr-item img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid var(--site-border, #e3e7eb);
  background: var(--site-surface-solid, #fff);
  box-shadow: var(--site-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.04));
}

.site-footer-qr-item figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--site-text-muted, #64748b);
}

.site-social-icon {
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.85rem;
}

.footer-links-title {
  flex: 0 0 100%;
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.footer-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.32rem 0.8rem;
  border: 1px solid #e3e7eb;
  border-radius: 999px;
  background: #fff;
  color: #495057;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-link-item:hover {
  color: #0d6efd;
  border-color: #b9d2fe;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.14);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-link-item {
    transition: none;
  }

  .footer-link-item:hover {
    transform: none;
  }
}
