/* ===== 全局基础样式 ===== */

/* 隐藏滚动条 */
* {
  scrollbar-width: none;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 统一字体 */
* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

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

/* ===== 入场动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
.fade-in-up-delay-4 { animation-delay: 0.4s; }

/* ===== 卡片悬停 ===== */
.card-hover {
  transition: all 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* 数字对齐 */
.number-stat {
  font-variant-numeric: tabular-nums;
}

/* ===== 法律/政策侧边栏 ===== */
.sidebar-link {
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sidebar-link:hover {
  color: #4f46e5;
}
.sidebar-link.active {
  color: #4f46e5;
  border-left-color: #4f46e5;
}

/* ===== 帮助中心手风琴 ===== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}
.accordion-item.active .accordion-content {
  max-height: 600px;
  opacity: 1;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-icon {
  transition: transform 0.2s ease;
}

/* 帮助中心侧边栏激活 */
.nav-link.active {
  color: #4f46e5;
  background-color: #eef2ff;
  font-weight: 500;
}

/* ===== 新闻文章列表 ===== */
.article-item {
  transition: all 0.2s ease;
}
.article-item:hover {
  background-color: #FAFAFA;
}
.article-item:hover .article-thumb {
  transform: scale(1.02);
}
.article-thumb {
  transition: transform 0.3s ease;
}
