/* ==== 原 list.html 内联样式 ==== */
/* 基础样式 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden; /* 防止横向滚动 */
  /* 确保 body 背景色不会被动态改变 */
  background-color: #f9fafb !important;
}

html {
  /* 确保 html 背景色不会被动态改变 */
  background-color: #f9fafb !important;
}

/* 核心布局 */
.app-container {
  display: flex;
  justify-content: center;
  /* 确保背景色不会被动态改变 */
  background-color: transparent !important;
}

.main-wrapper {
  width: 100%;
  max-width: 1920px;
  display: flex;
  /* 确保背景色不会被动态改变 */
  background-color: transparent !important;
}

/* 左侧导航 */
.side-nav-container {
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 4.5rem;
  height: calc(100vh - 4.5rem);
  overflow-y: auto;
  z-index: 30;
  background: white;
  border-right: 1px solid #f0f0f0;
}

/* 中间内容区 */
.main-content-container {
  flex: 1;
  padding-bottom: 4rem;
  /* 确保背景色不会被动态改变 */
  background-color: transparent !important;
}

/* 隐藏滚动条 */
.side-nav-container::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
  display: none;
}
.side-nav-container,
.right-sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 左侧导航样式 */
.nav-category {
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-item:hover:not(.nav-active) {
  background-color: #f8f9fa;
  color: #0078FF;
}

.nav-item:hover {
  background-color: #f8f9fa;
  color: #0078FF;
}

.nav-item.nav-active:hover {
  background-color: rgba(0, 120, 255, 0.15);
  color: #0078FF;
}

.nav-item i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
  font-size: 15px;
}

/* 常用导航项标星 */
.nav-item.hot i {
  color: #FF7D00;
}

/* 新增导航项提示 */
.nav-new {
  position: relative;
}

.nav-new::after {
  content: "新";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  background-color: #00C48C;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
}

/* 板块hover效果 */
.content-section {
  transition: background-color 0.2s ease;
  /* 确保背景色不会影响整个页面 */
  background-color: transparent;
}

/* 防止任何背景色影响整站 */
.content-section[class*="bg-primary"],
.content-section.bg-primary\/5 {
  background-color: transparent !important;
}

/* 网格布局样式 */
.grid-section {
  padding: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.section-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
  color: #1e293b;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-search {
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 200px;
}

.section-more {
  color: #0078FF;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.section-more:hover {
  text-decoration: underline;
}

/* 筛选按钮样式 */
.grid-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #0078FF;
  color: white;
  border-color: #0078FF;
}

/* 卡片网格样式 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* 卡片样式 */
.card-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-icon-container {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  overflow: hidden;
}

/* 延迟加载图标样式 */
.lazy-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-icon.loaded {
  opacity: 1;
}

.card-icon-container img {
  max-width: 100%;
  max-height: 100%;
}

.card-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.card-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

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

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn.active {
  background: #0078FF;
  color: white;
  border-color: #0078FF;
}

.page-btn:hover:not(.active) {
  background: #f1f5f9;
}

/* 响应式调整 */
@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .side-nav-container {
    display: none; /* 移动端隐藏左侧导航 */
  }
  .main-wrapper {
    width: 100%;
  }
}

/* 页脚样式 */
.footer-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* 顶部导航栏样式 */
.top-header {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}


