.blog-page {
  padding-top: 64px;
}

.blog-banner {
  background: linear-gradient(135deg, #f7f8fa 0%, #e8f3ff 100%);
  padding: 60px 20px;
  text-align: center;
}

.blog-banner h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 12px;
}

.blog-banner .subtitle {
  font-size: 17px;
  color: #86909c;
}

.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.blog-categories {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-categories .cat-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e6eb;
  background: #fff;
  color: #4e5969;
  transition: all 0.3s ease;
}

.blog-categories .cat-btn:hover,
.blog-categories .cat-btn.active {
  background: #165DFF;
  color: #fff;
  border-color: #165DFF;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-cover {
  width: 100%;
  height: 160px;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cdd4;
  font-size: 13px;
  overflow: hidden;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 13px;
  color: #86909c;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #c9cdd4;
}

.blog-card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f5ff;
  color: #165DFF;
  border-radius: 4px;
  font-size: 12px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #165DFF;
}

.sidebar-search {
  display: flex;
  gap: 8px;
}

.sidebar-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  font-size: 13px;
}

.sidebar-search button {
  padding: 8px 16px;
  background: #165DFF;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.hot-article-list {
  list-style: none;
}

.hot-article-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f2f3f5;
  font-size: 14px;
  line-height: 1.6;
}

.hot-article-list li a {
  color: #4e5969;
  transition: color 0.3s ease;
}

.hot-article-list li a:hover {
  color: #165DFF;
}

.hot-article-list li:last-child {
  border-bottom: none;
}

.hot-article-list li .hot-rank {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  background: #f2f3f5;
  color: #86909c;
}

.hot-article-list li:nth-child(1) .hot-rank {
  background: #165DFF;
  color: #fff;
}

.hot-article-list li:nth-child(2) .hot-rank {
  background: #4080ff;
  color: #fff;
}

.hot-article-list li:nth-child(3) .hot-rank {
  background: #91caff;
  color: #fff;
}

.sidebar-cta {
  background: linear-gradient(135deg, #165DFF 0%, #4080ff 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.sidebar-cta h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.sidebar-cta .btn {
  background: #fff;
  color: #165DFF;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .blog-main {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-banner {
    padding: 40px 20px;
  }

  .blog-banner h1 {
    font-size: 26px;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

.blog-detail-page {
  padding-top: 64px;
}

.blog-detail-banner {
  background: linear-gradient(135deg, #f7f8fa 0%, #e8f3ff 100%);
  padding: 40px 20px;
}

.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  font-size: 13px;
  color: #86909c;
}

.breadcrumb a {
  color: #86909c;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #165DFF;
}

.breadcrumb .sep {
  margin: 0 8px;
}

.blog-detail-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.blog-detail-article h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #86909c;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f2f3f5;
}

.article-meta .meta-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #f0f5ff;
  color: #165DFF;
  border-radius: 4px;
  font-size: 12px;
}

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #4e5969;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1d2129;
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: #f7f8fa;
  border-left: 4px solid #165DFF;
  border-radius: 0 8px 8px 0;
  color: #4e5969;
}

.article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f2f3f5;
}

.article-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f7f8fa;
  color: #4e5969;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.article-tags .tag:hover {
  background: #f0f5ff;
  color: #165DFF;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #f2f3f5;
}

.article-nav-item {
  padding: 16px 20px;
  background: #f7f8fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.article-nav-item:hover {
  background: #f0f5ff;
}

.article-nav-item .nav-label {
  font-size: 12px;
  color: #86909c;
  margin-bottom: 6px;
}

.article-nav-item .nav-title {
  font-size: 14px;
  color: #1d2129;
  font-weight: 500;
  line-height: 1.5;
}

.article-nav-item.next {
  text-align: right;
}

.related-section {
  margin-top: 48px;
}

.related-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.related-card-cover {
  width: 100%;
  height: 120px;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cdd4;
  font-size: 12px;
}

.related-card-body {
  padding: 14px;
}

.related-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-detail-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #165DFF 0%, #4080ff 100%);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #fff;
}

.blog-detail-cta h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-detail-cta p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.blog-detail-cta .btn {
  background: #fff;
  color: #165DFF;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .blog-detail-article h1 {
    font-size: 24px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail-cta {
    padding: 28px 20px;
  }
}