:root {
  --mem-primary: #245a63;
  --mem-accent: #d88a3d;
  --mem-text: #1f2937;
  --mem-muted: #6b7280;
  --mem-border: rgba(36, 90, 99, 0.14);
  --mem-surface: rgba(255, 255, 255, 0.92);
  --mem-soft: #f7faf9;
}

body {
  letter-spacing: 0;
}

#page-header.full_page {
  min-height: 100vh;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #102033;
}

#page-header.full_page::before {
  background: linear-gradient(
    180deg,
    rgba(5, 13, 22, 0.22) 0%,
    rgba(5, 13, 22, 0.08) 46%,
    rgba(5, 13, 22, 0.38) 100%
  ) !important;
}

#scroll-down {
  bottom: 34px;
}

#site-title {
  font-weight: 750;
}

#site-subtitle {
  font-weight: 500;
}

#nav.fixed {
  backdrop-filter: saturate(160%) blur(12px);
}

.layout > div:first-child:not(.recent-posts),
.card-widget,
#post,
#page,
#archive,
#tag,
#category {
  border: 1px solid var(--mem-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.recent-post-item {
  min-height: 190px;
  margin-bottom: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(36, 90, 99, 0.12);
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recent-post-item:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 138, 61, 0.36);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.recent-post-item .post_cover {
  width: 34% !important;
  min-width: 220px;
  max-width: 280px;
}

.recent-post-item .post_cover img.post-bg {
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.recent-post-item:hover .post_cover img.post-bg {
  transform: scale(1.035);
}

.recent-post-info {
  padding: 22px 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-post-info .article-title {
  margin-bottom: 10px;
  color: var(--mem-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-meta-wrap {
  color: var(--mem-muted);
  font-size: 0.86rem;
}

.recent-post-info .content {
  margin-top: 12px;
  line-height: 1.8;
}

.recent-posts .recent-post-items {
  display: block !important;
}

.content {
  color: var(--mem-muted);
}

.avatar-img img {
  object-fit: cover;
  transform: rotate(0deg);
  transition: transform 0.5s ease;
}

.avatar-img:hover img {
  transform: rotate(360deg);
}

.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 1.2rem 0 1.6rem;
}

.mem-card {
  display: block;
  padding: 18px 18px 16px;
  border: 1px solid var(--mem-border);
  border-radius: 8px;
  background: var(--mem-surface);
  color: var(--mem-text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 138, 61, 0.5);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mem-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mem-card p {
  margin: 0;
  color: var(--mem-muted);
  line-height: 1.75;
}

#article-container a.mem-card {
  text-decoration: none;
}

#article-container h2 {
  margin-top: 1.6rem;
}

#footer {
  background: linear-gradient(135deg, #102033 0%, #245a63 65%, #d88a3d 100%);
}

[data-theme='dark'] .mem-card {
  background: rgba(31, 41, 55, 0.72);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme='dark'] .recent-post-item {
  background: rgba(31, 41, 55, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .recent-post-info .article-title {
  color: #e5e7eb;
}

[data-theme='dark'] .mem-card p,
[data-theme='dark'] .content {
  color: #aeb7c2;
}

@media (max-width: 768px) {
  .recent-post-item {
    min-height: auto;
  }

  .recent-post-item .post_cover {
    width: 100% !important;
    max-width: none;
  }

  .recent-post-info {
    padding: 18px !important;
  }

  .recent-post-info .article-title {
    font-size: 1.15rem;
  }
}
