/* Shared Blog Shell */
.blog-shell {
  background: #ffffff;
  color: #1f1f1f;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(46, 23, 95, 0.12);
  text-align: left;
}

.blog-shell .blog-meta {
  color: #6c5aa7;
  font-size: 0.95rem;
}

/* Blog Index */
.blog-index .blog-card {
  border: none;
  background: #f8f6ff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-index .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(46, 23, 95, 0.12);
}

.blog-index .blog-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(148, 127, 252, 0.4), rgba(217, 213, 253, 0.8));
}

.blog-index .blog-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2e175f;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9rem;
}

.blog-index .blog-excerpt {
  color: #5b4f75;
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.1rem;
}

/* Blog Show */
.blog-show .blog-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
}

.blog-show .blog-title {
  font-weight: 700;
  color: #2e175f;
}

.blog-show .blog-body {
  color: #3d3359;
  line-height: 1.8;
  font-size: 1.02rem;
}

.blog-show .blog-body h1,
.blog-show .blog-body h2,
.blog-show .blog-body h3,
.blog-show .blog-body h4 {
  color: #2e175f;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-show .blog-body h1 {
  font-size: 2rem;
}

.blog-show .blog-body h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #f0ecff;
  padding-bottom: 0.5rem;
}

.blog-show .blog-body h3 {
  font-size: 1.3rem;
}

.blog-show .blog-body p {
  margin-bottom: 1.2rem;
}

.blog-show .blog-body ul,
.blog-show .blog-body ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

.blog-show .blog-body li {
  margin-bottom: 0.5rem;
}

.blog-show .blog-body blockquote {
  border-left: 4px solid #947ffc;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #5b4f75;
  font-style: italic;
}

.blog-show .blog-body code {
  background: #f8f6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #6c5aa7;
}

.blog-show .blog-body pre {
  background: #f8f6ff;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-show .blog-body pre code {
  background: none;
  padding: 0;
}

.blog-show .blog-body strong {
  color: #2e175f;
  font-weight: 600;
}

.blog-show .blog-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid #f0ecff;
}

.blog-show .blog-body a {
  color: #6c5aa7;
  text-decoration: underline;
}

.blog-show .blog-body a:hover {
  color: #947ffc;
}

.blog-show .blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 1.6rem auto;
  box-shadow: 0 12px 26px rgba(46, 23, 95, 0.08);
}

.blog-show .gallery-grid img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  height: 180px;
}

.blog-show .recommend-card {
  background: #f8f6ff;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.blog-show .recommend-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-media-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .blog-shell {
    padding: 18px;
  }

  .blog-index .blog-cover {
    height: 180px;
  }

  .blog-index .blog-title {
    font-size: 1rem;
  }

  .blog-index .blog-excerpt {
    font-size: 0.92rem;
  }

  .blog-show .blog-cover {
    max-height: 220px;
  }

  .blog-show .blog-body {
    font-size: 0.98rem;
  }

  .blog-show .blog-body h1 {
    font-size: 1.5rem;
  }

  .blog-show .blog-body h2 {
    font-size: 1.3rem;
  }

  .blog-show .blog-body h3 {
    font-size: 1.1rem;
  }

  .blog-show .gallery-grid img {
    height: 140px;
  }

  .blog-show .recommend-card img {
    height: 160px;
  }
}
