/* 卡片发光效果 */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #165DFF, #36CFC9, #722ED1);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-glow:hover::before {
  opacity: 0.3;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 渐变背景 */
.ai-gradient-bg {
  background-color: #F8FAFC;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination li,.pagination li a {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination li.active {
  background: linear-gradient(135deg, #165DFF, #36CFC9);
  color: white;
}

.pagination li:not(.active):hover {
  background-color: #e2e8f0;
}

/* 文章内容样式 */
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #334155;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #334155;
}

.article-content a {
  color: #165DFF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #36CFC9;
}

.article-content blockquote {
  border-left: 4px solid #165DFF;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #475569;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.article-content .highlight {
  background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* 相关文章卡片样式 */
.related-article-card {
  transition: all 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-5px);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #165DFF, #36CFC9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.4);
}