/* ========== 确保 article 容器为伸展布局，卡片等高 ========== */

.posts-item.sites-item {
  display: flex;
  align-items: stretch;
  /* 让子元素等高 */
  position: relative;
  margin-bottom: 8px;
  /* 行间距，按需调整 */
  box-sizing: border-box;
}

/* ========== 卡片主体 (链接) ========== */

.posts-item.sites-item .sites-body,
.posts-item.sites-item .sites-body:link,
.posts-item.sites-item .sites-body:visited {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  /* 填满父容器以保证等高 */
  padding: 16px 52px 16px 18px;
  /* 右侧留出空间给“查看详情(togo)” */
  background: #ffffff;
  border: 1px solid #e0e0e0;
  /* 默认浅灰边框 */
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  /* 防止文字溢出视觉混乱 */
  box-sizing: border-box;
  z-index: 1;
  /* 保持在小箭头下方，箭头会加更高 z-index */
}

/* ========== 图标、文字区域 ========== */

.posts-item.sites-item .item-image img.fill-cover.sites-icon,
.posts-item.sites-item .item-image img.sites-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.posts-item.sites-item .item-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  /* 关键：允许运行省略号 */
  margin-left: 14px;
  overflow: hidden;
}

.posts-item.sites-item .item-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.posts-item.sites-item .item-body .text-muted,
.posts-item.sites-item .item-body .line1.text-muted {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 悬浮效果：使用 translateY 而非 scale（避免边框放大错位） ========== */

.posts-item.sites-item .sites-body:hover {
  transform: translateY(-3px);
  /* 轻微上移，视觉“悬浮” */
  border-color: #2f80ed;
  /* 悬浮高亮色 */
  box-shadow: 0 10px 26px rgba(47,128,237,0.12);
  z-index: 2;
}

/* ========== 已选 / 激活态 ========== */

.posts-item.sites-item .sites-body.active,
.posts-item.sites-item.active .sites-body,
.posts-item.sites-item.is-selected .sites-body {
  border-color: #2f80ed;
  box-shadow: 0 12px 30px rgba(47,128,237,0.18);
  transform: translateY(-2px);
}

/* ========== 查看详情小箭头：绝对定位、置顶显示，不受卡片 overflow 影响 ========== */

.posts-item.sites-item .sites-tags {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  /* 高于卡片 */
  display: flex;
  align-items: center;
  pointer-events: none;
  /* 默认不拦截鼠标，具体按钮内部可重新开启 */
}

/* togo 按钮本体（可点击） */

.posts-item.sites-item .sites-tags .togo {
  pointer-events: auto;
  /* 允许按钮被点击 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  color: #6b7280;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* 悬停到整个 article 时，确保箭头样式不会被卡片遮挡 */

.posts-item.sites-item:hover .sites-tags .togo {
  background: #fff;
  color: #2f80ed;
  box-shadow: 0 6px 16px rgba(47,128,237,0.08);
}

/* ========== 小屏适配 ========== */

@media (max-width: 576px) {
  .posts-item.sites-item {
    margin-bottom: 8px;
  }

  .posts-item.sites-item .sites-body {
    padding: 12px 14px 12px 12px;
  }

  .posts-item.sites-item .item-image img.fill-cover.sites-icon,
  .posts-item.sites-item .item-image img.sites-icon {
    width: 44px;
    height: 44px;
  }

  .posts-item.sites-item .item-title {
    font-size: 15px;
  }

  .posts-item.sites-item .sites-tags {
    right: 8px;
  }
}

/* ========== 兼容性提示：若主题有更强选择器并覆盖样式，可在必要属性后加 !important ========= */

#carouselNav.carousel-container {
  padding-bottom: 16px;
  /* 电脑端默认16px */
}

@media (max-width: 600px) {
  #carouselNav.carousel-container {
    padding-bottom: 10px;
    /* 手机端8px */
  }
}

/* ========== 置顶导航栏样式 ========= */

/* 主导航字体和颜色 */

.header-nav nav.switch-container .nav > li > a {
  font-size: 16px;
  /* 适中字号 */
  color: #333333;
  /* 深灰色，更柔和 */
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px 15px;
}

/* 主导航悬停字体颜色 */

.header-nav nav.switch-container .nav > li > a:hover,
.header-nav nav.switch-container .nav > li.current-menu-item > a,
.header-nav nav.switch-container .nav > li.current-menu-ancestor > a {
  color: #1e90ff;
  /* 亮蓝色，突出当前 */
  text-decoration: none;
}

/* 下拉菜单容器隐藏 */

.header-nav nav.switch-container .nav .sub-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 160px;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  top: 100%;
  left: 0;
}

/* 鼠标悬停主菜单时显示下拉菜单 */

.header-nav nav.switch-container .nav > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

/* 下拉菜单项样式 */

.header-nav nav.switch-container .nav .sub-menu li a {
  font-size: 14px;
  color: #555;
  padding: 8px 20px;
  display: block;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* 下拉菜单项悬停效果 */

.header-nav nav.switch-container .nav .sub-menu li a:hover {
  background-color: #1e90ff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* 多级菜单箭头样式微调 */

.header-nav nav.switch-container .nav > li.menu-item-has-children > a > .icon-arrow-b {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* 鼠标悬停箭头旋转 */

.header-nav nav.switch-container .nav > li.menu-item-has-children:hover > a > .icon-arrow-b {
  transform: rotate(180deg);
}

/* 移动端折叠菜单展开动画 */

.mobile-nav .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* 移动端折叠菜单展开状态 */

.mobile-nav .menu-item-has-children.is-open > .sub-menu {
  max-height: 500px;
  /* 预估最大高度，足够显示所有子菜单 */
}

/* 移动端主菜单字体与颜色 */

.menu-btn + .mobile-nav .nav > li > a {
  font-size: 16px;
  color: #333;
  padding: 12px 20px;
}

/* 移动端下拉菜单字体 */

.mobile-nav .sub-menu li a {
  font-size: 14px;
  color: #555;
  padding-left: 40px;
  background: #f9f9f9;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease;
}

/* 移动端子菜单悬停高亮 */

.mobile-nav .sub-menu li a:hover {
  border-left-color: #1e90ff;
  background: #e6f0ff;
  color: #1e90ff;
}

/* 用户菜单下拉美化 */

.navbar-header-menu .nav-login .sub-menu {
  min-width: 280px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  background: #fff;
}

/* 用户菜单按钮统一间距 */

.menu-user-btn {
  margin: 5px 4px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 5px;
}

/* 搜索按钮颜色 */

.header-icon-btn.nav-search a {
  color: #333;
  transition: color 0.3s ease;
}

.navbar-header li.current-menu-item > a,
.navbar-header li > a:hover,
.header-nav .navbar-header a,
.navbar-header li > a {
  color: #333333 !important;
  /* 普通深灰色，使用 !important 保证生效 */
  text-decoration: none;
  /* 去掉下划线，保持干净 */
  transition: color 0.3s ease;
}

/* 取消底部边框和阴影 */

.navbar-header li.current-menu-item > a,
.navbar-header li > a:hover,
.header-nav .navbar-header a,
.navbar-header li > a {
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
  outline: none !important;
  position: relative;
}

/* 侧边栏样式 */

.ioui-content.switch-container.home-container.sidebar_no.container-fluid {
  padding-right: 40px;
  padding-left: 40px;
}

.switch-container.search-container.content.container-fluid {
  padding-right: 45px;
  padding-left: 45px;
}

.apd.my-3.container.home-content {
  padding-right: 45px;
  padding-left: 45px;
}


.search-list-menu.no-scrollbar.overflow-x-auto.slider-ul {
  
}

#search.big-search.mx-auto {
  
}