/* 全局提示样式 */
.global-copy-tip {
  position: fixed;
  bottom: 250px; /* 提示位置距离底部 100px，原来是150px，可调整 */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s ease;
}
/* 全局提示样式 */

/* ==============================
   侧边工具栏 - 三个功能按钮
   返回顶部 / 收藏 / 下载APP
   ============================== */
.side-toolbar {
  position: fixed;
  right: -60px;           /* 默认隐藏在屏幕外 */
  bottom: 12%;            /* 整体高度，可调整 */
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden; 
  background: rgba(245,245,245,0.85); /* 低调科技风 */
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2000;
  /* 初始动画状态 */
  opacity: 0;
  transform: translateX(30px); /* 向右偏移 */
  transition: right 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.side-toolbar.show {
  right: 3px;           /* 滑出时距屏幕右侧的距离 3px */
  opacity: 1;            /* 淡入 */
  transform: translateX(0); /* 滑入到正常位置 */
}
/* 单个按钮样式 */
.tool-btn {
  width: 35px;
  height: 38px;
  border: none;
  background: transparent;      /* 背景由容器提供 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 22px;             /* 图标大小 */
  transition: all 0.2s ease;
}
/* 按钮之间分隔线 */
.tool-btn:not(:last-child) {
  border-bottom: 1px solid rgba(200,200,200,0.3);
}
/* 悬停效果 */
.tool-btn:hover {
  color: #1783d1;
  transform: translateY(-2px);
}
/* 可选：图标光滑渲染 */
.tool-btn i {
  display: block;
}
/* ==============================
   侧边工具栏 - 三个功能按钮
   返回顶部 / 收藏 / 下载APP
   ============================== */
   
   
/*//////// 公告和搜索结果样式一致  开始 ////////*/
.result-item.announcement {
  display: flex;
  align-items: flex-start;
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.result-item.announcement .result-icon {
  margin-right: 12px;
  font-size: 18px;
  line-height: 1.2;
}

.result-item.announcement .result-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-item.announcement .result-title {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  line-height: 1.4;
}

.result-item.announcement .result-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* 关键字高亮 */
.highlight {
  color: #e94b3c;
  font-weight: 600;
}
/*//////// 公告和搜索结果样式一致   结束 ////////*/

/* ====== 标签页样式 ====== */
.tab-container {
  width: 100%;
}

.tab-header {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  color: #9aaec2;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  margin-right: 5px;
}

.tab-btn:hover {
  color: #2b9be6;
}

.tab-btn.active {
  color: #2b9be6;
  border-bottom-color: #2b9be6;
  font-weight: bold;
}

/* 资源数量红色标签样式 */
.resource-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #d00;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  line-height: 1;
  padding: 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 加载状态 */
.loading {
  padding: 40px 20px;
  text-align: center;
  color: #9aaec2;
}