/* 返回顶部、回到首页按钮 */
/* 返回顶部、回到首页按钮 */
#backToTop, #goHome {
    position: fixed;
    bottom: 20px;
    display: none;
    z-index: 1000;
    background-color: #f8f9fa; /* 浅灰色背景 */
    color: #495057; /* 深灰蓝色图标和文本颜色 */
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    opacity: 0.7; /* 提升不透明度以适应深色字体 */
    transition: opacity 0.3s;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #dee2e6; /* 添加边框以增强可见性 */
    box-shadow: 0 2px 4px rgb(0 0 0 / 8%); /* 添加轻微阴影以提升层次感 */
}

#backToTop:hover, #goHome:hover {
    opacity: 1; /* 鼠标悬停时不透明度调整为完全不透明 */
    background-color: #e2e6ea; /* 悬停时的背景颜色略暗，提供视觉反馈 */
}

#backToTop {
    right: 20px;
}

#goHome {
    right: 75px;
}

/* 移动设备调整 */
@media (max-width: 600px) {
    #backToTop, #goHome {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
    }
    #backToTop {
        right: 20px;
    }
    #goHome {
        right: 80px;
    }
}
/* 返回顶部、回到首页按钮结束 */



/* 返回顶部、回到首页按钮结束 */

/* 密码弹窗 */
/* 密码弹窗 - 核心容器样式 */
.pwd-body {
  padding: 24px 30px; /* 优化内边距，更宽松舒适 */
  text-align: center;
  width: 90%;
  max-width: 420px; /* 微调最大宽度，更协调 */
  /* 核心居中样式保留 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 优化视觉样式 */
  background-color: #ffffff;
  color: #2c3e50; /* 更高级的文字色，替代纯黑 */
  border-radius: 12px; /* 更大的圆角，更现代 */
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 柔和的投影，更有层次感 */
  z-index: 9999;
  box-sizing: border-box;
  border: 1px solid #f0f2f5; /* 轻量边框，增加轮廓感 */
}

/* 弹窗标题样式（新增，建议HTML添加<h3 class="pwd-title">） */
.pwd-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f7fa; /* 标题下分割线，区分区域 */
}

/* 遮罩层 - 优化透明度，更柔和 */
.pwd-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  backdrop-filter: blur(2px); /* 背景模糊，提升高级感（兼容现代浏览器） */
}

/* 链接样式优化 */
.modal-link {
  color: #4299e1; /* 更柔和的蓝色，替代偏冷的青色 */
  text-decoration: none; /* 默认移除下划线，更简洁 */
  font-weight: 500;
  transition: all 0.2s ease; /* 过渡更丝滑 */
  padding: 2px 4px; /* 增加点击区域 */
  border-radius: 4px; /* 悬停背景有圆角 */
}

.modal-link:focus,
.modal-link:hover {
  color: #2563eb; /* 更深的蓝色，层次更明显 */
  background-color: #eff6ff; /* 淡蓝色背景，替代浅灰 */
  outline: none; /* 移除默认聚焦轮廓 */
}

.pwd-input-box {
  margin-top: 16px;
  line-height: 1.5;
}

/* 输入框容器优化 */
.input-container {
  width: 100%; /* 填满弹窗宽度，更规整 */
  max-width: none; /* 取消最大宽度限制，适配弹窗 */
  margin: 0 auto;
  padding: 0; /* 移除多余内边距 */
}

/* 输入框样式优化 */
#pwdValue {
  padding: 14px 16px; /* 更舒适的内边距 */
  margin: 8px 0 16px 0; /* 调整间距，更透气 */
  width: 100%; /* 填满容器 */
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e2e8f0; /* 更浅的边框色 */
  font-size: 15px;
  line-height: 1.5;
  color: #2c3e50;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 输入框聚焦样式（新增，提升交互感） */
#pwdValue:focus {
  border-color: #4299e1; /* 聚焦时边框变主题色 */
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1); /* 柔和的聚焦光晕 */
  outline: none; /* 移除默认聚焦样式 */
}

/* 按钮样式大幅优化 */
#subPwd {
  padding: 14px 16px; /* 和输入框内边距统一 */
  margin: 12px 0 8px 0;
  width: 100%; /* 填满容器，更大气 */
  box-sizing: border-box;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background-color: #4299e1; /* 现代感的主题蓝 */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* 按钮悬停/点击效果 */
#subPwd:hover {
  background-color: #2563eb; /* 更深的蓝色，有层次感 */
}

#subPwd:active {
  transform: scale(0.98); /* 点击时轻微缩小，模拟按压感 */
}

/* 禁用状态（可选，新增） */
#subPwd:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.spaced {
  margin-bottom: 20px; /* 调整间距，更紧凑 */
  color: #64748b; /* 辅助文字用浅灰色，更协调 */
}




/* 密码弹窗结束 */









/* 搜索框美化 */
.pwd-body:before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  background-size: contain;
  position: absolute;
  top: -30px; /* 放置在模态框上方 */
  left: 50%;
  transform: translateX(-50%);
}
.important-notice {
  color: #ff461f; /* 设置字体颜色 */
}

/* 去掉可能存在的分割线样式，比如border或者背景图片，具体根据实际情况 */
.line-box {
    border: none; /* 假定.line-box 负责边框线 */
    background-image: none; /* 假定背景图片作为分割线 */
}

/* 稍微向下移动“当前搜索关键词”这段话 */
.user-search {
    display: block; /* 如果需要始终显示 */
    text-align: center; /* 保持居中对齐 */
    padding-top: 10px; /* 向下移动，根据需要调整像素值 */
}

/* 更改搜索内容的颜色 */
#curSearchVal {
    color: #4CAF50; /* 新颜色，这里使用了比较温和的绿色 */
}

/* 现有样式保持不变，只添加新的样式 */

/* 为提示信息添加样式 */
.search-instruction {
    text-align: center; /* 使文本居中 */
    margin-top: 10px; /* 在元素上方添加一些外边距 */
    font-size: 0.7em; /* 设置文字大小，根据需要可调整 */
    color: #6c757d; /* 给提示文本一个较淡的颜色 */
}
/* 搜索框美化结束 */


/* 按钮样式代码比如复制链接弹窗 */
/* 按钮样式代码比如复制链接弹窗 */
.custom-swal-popup {
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 13px;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  margin: auto;
  max-width: 300px;
  background-color: #fafafa; /* 略微淡化的背景色 */
}

.custom-swal-title {
  color: #333333;
  margin: 0 0 16px 0;
  font-weight: 600;
  font-size: 19px;
  text-align: center;
}

.custom-swal-content {
  color: #666666;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.5;
}

.custom-swal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.custom-swal-confirm-button,
.custom-swal-cancel-button,
.custom-swal-deny-button {
  border-radius: 25px;
  padding: 8px 22px; /* 略微增大按钮 */
  border: none;
  font-size: 13px; /* 略微增大字体 */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-swal-confirm-button {
  background-color: #4CAF50;
  color: #ffffff;
}

.custom-swal-confirm-button:hover {
  background-color: #45a049;
  box-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.custom-swal-cancel-button {
  background-color: #f8f8f8;
  color: #333333;
}

.custom-swal-cancel-button:hover {
  background-color: #f0f0f0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.custom-swal-deny-button {
  background-color: #f44336;
  color: #ffffff;
}

.custom-swal-deny-button:hover {
  background-color: #e53935;
  box-shadow: 0 3px 6px rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
}

.hide {
  display: none;
}

/* 按钮样式代码比如复制链接弹窗结束 */



/* 底部guang告 */
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* 控制按钮之间的间隔 */
}

.button-container a.button {
  background-color: #f0f0f0; /* 浅灰色背景，可根据需求更改 */
  color: #333; /* 字体颜色，可根据需求更改 */
  text-decoration: none;
  padding: 8px 16px;
  border: none; /* 没有边框 */
  border-radius: 4px; /* 可选的轻微边框圆角 */
  width: calc(50% - 12px); /* 减去间隙的一半宽度 */
  box-sizing: border-box;
  font-size: 14px; /* 字体大小，默认情况下为14px */
  margin-bottom: 10px; /* 控制垂直间隔 */

  /* Flexbox 用于水平和垂直居中 */
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */

  /* 文本在一行内显示，超出部份隐藏 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 手机端字体大小调整为12px */
@media (max-width: 768px) {
  .button-container a.button {
    font-size: 12px; /* 手机端字体大小为12px */
  }
}

/* 底部guang告结束 */

/* 点击获取颜色开始*/
/* styles.css */

/* 定义一个弹性盒子容器，用于布局下载图标和“点击”按钮 */
.show {
  display: flex; /* 使用弹性盒子布局 */
  align-items: center; /* 垂直居中对齐子元素 */
  justify-content: flex-end; /* 将“点击”按钮移动到最右边 */
  flex-grow: 1; /* 子元素在空间允许的情况下尽可能扩展 */
}

/* 定义下载图标的样式 */
.download-icon {
  font-size: 24px; /* 设置图标大小为24像素 */
  margin-right: 5px; /* 设置图标右侧的边距为5像素 */
  color: #1769D8; /* 设置图标的颜色为蓝色 */
}

/* 定义“点击”按钮的样式 */
.click-get {
  font-size: 14px; /* 设置文字大小为14像素 */
  color: #1769D8; /* 设置文字颜色为蓝色 */
  cursor: pointer; /* 鼠标悬停时显示手型光标 */
  transition: color 0.3s ease; /* 添加颜色过渡效果 */
}

/* 定义按钮点击后的样式 */
.click-get:active {
  color: #07c160; /* 设置点击后的文字颜色为微信绿 */
}

/* 定义按钮悬停时的样式 */
.btn:hover {
  background-color: #07c160; /* 设置按钮悬停时的背景颜色为深蓝色 */
}

/* 点击获取颜色结束*/

/* 显示在弹窗下层开始 */
.pwd-modal {
    /* 其他样式 */
    z-index: 1000; /* 较高的z-index值确保它在上层 */
    /* 确保position不是static，否则z-index不会有任何效果 */
    position: fixed; /* 或 absolute */
}

/* 按钮的样式，确保它们的z-index值较低 */
#backToTop, #goHome {
    /* 其他样式 */
    z-index: 1; /* 较低的z-index值确保它们在下层 */
    position: fixed; /* 可以是fixed或absolute */
}
/* 显示在弹窗下层结束 */






/* 公告区域的样式 */
.announcement-area {
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    display: block; /* 设置为显示 */
}

.announcement-content {
    color: #FA5151; /* 字体颜色 */
    font-size: 0.95em; /* 字体大小 */
    line-height: 1.6; /* 行高 */
    font-weight: normal;
}

.announcement-content a {
    color: #FFFFFF; /* 链接文字颜色 */
    background-color: #FF7043; /* 链接背景颜色 */
    padding: 6px 6px; /* 内间距 */
    border-radius: 0px; /* 圆角 */
    text-decoration: none; /* 去掉下划线 */
    transition: background-color 0.3s ease; /* 过渡效果 */
}

.announcement-content a:hover {
    background-color: #FF5722; /* 悬停时背景色 */
}


    /* 搜索和热门内容的css */
.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 10px 2px;
}

    .hot-search-title {
        text-align: center;
        margin: 5px 0;
        font-size: 1em; /* 调整字体大小 */
        color: #FF4400; /* 更改颜色为绿色 */
        font-weight: bold; /* 加粗字体 */
    }
    .user-search {
        margin-top: 20px;
        padding: 10px;
        background-color: #f9f9f9;
        border-radius: 5px;
    }
    /* 搜索和热门内容的css结束 */
    
    
    
    #searchError {
  display: none;
  color: #336699;
  background-color: #E0F2F7;
  border: 1px solid #C6E2F1;
  border-radius: 5px;
  padding: 10px;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  text-align: center;
}

#searchError span.error-icon {
  margin-right: 5px;
  font-size: 20px;
}


 /* 资源缩略图 */
.answer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    max-width: 100%;
}

.answer-text {
    flex: 1;
    order: 1;
    min-width: 0;
}

.answer-image {
    width: 100px;
    max-width: 30%;
    order: 2;
    cursor: pointer;
}

.result-image {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.result-image:hover {
    transform: scale(1.05);
}

.enlarged-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.enlarged-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

 /* 资源缩略图结束 */
 
 
 
 
     .modal-link {
        text-decoration: none; /* 移除下划线 */
        color: #007bff; /* 链接文字颜色 */
        background-color: #f0f0f0; /* 设置背景颜色 */
        padding: 8px 10px; /* 添加内边距 */
        border-radius: 5px; /* 圆角边框 */
        transition: background-color 0.3s; /* 背景色的过渡效果 */
    }
    
    .modal-link:hover {
        background-color: #e0e0e0; /* 鼠标悬停时的背景颜色 */
    }

    /* 其他样式保持不变 */
    @media (max-width: 600px) {
        #customAlert {
            padding: 15px; /* 更小的内边距 */
            width: 90%; /* 在小屏幕上全宽 */
        }

        h2 {
            font-size: 18px; /* 字体更小 */
        }

        p {
            font-size: 13px; /* 字体更小 */
        }

        button {
            padding: 7px 12px; /* 更小的按钮内边距 */
            font-size: 13px; /* 字体更小 */
        }
    }