    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
/* 修复当有滚动条时背景被拉伸的问题 */
html {
  height: 100%;
  overflow-y: auto; /* 允许页面滚动 */
}

    body {
      min-height: 100vh;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: #1a1a2e;
      position: relative;
  /* 添加这行：使背景图片固定不滚动 */
  background-attachment: fixed !important;
  /* 添加背景切换过渡效果 */
  transition: background-image 0.6s ease-in-out;
    }
    
    body.video-bg {
      background: transparent !important;
    }
    

/* 整个网页的滚动条 - 黑色半透明风格（保持第一次设计） */
::-webkit-scrollbar {
  width: 10px; /* 滚动条宽度 */
  height: 10px; /* 水平滚动条高度 */
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* 黑色半透明轨道 */
  border-radius: 5px; /* 圆角 */
  backdrop-filter: blur(10px); /* 背景模糊效果 */
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2); /* 半透明白色滑块 */
  border-radius: 5px; /* 滑块圆角 */
  border: 2px solid rgba(0, 0, 0, 0.1); /* 黑色半透明边框 */
  transition: background 0.3s ease; /* 过渡效果 */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3); /* 悬停时更亮 */
}

::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.4); /* 点击时更亮 */
}

/* Firefox浏览器支持 */
* {
  scrollbar-width: thin; /* 细滚动条 */
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1); /* 滑块和轨道颜色 */
}

/* 滚动条角落样式 */
::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1); /* 黑色半透明角落 */
}

/* 确保遮罩层也固定 */
.bg-mask {
  position: fixed !important; /* 改为fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: opacity 0.6s ease, background-color 0.6s ease;
}
    
/* 确保主容器不会影响背景 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  transition: min-height 0.3s ease;
  position: relative; /* 添加相对定位 */
  z-index: 1; /* 确保内容在背景之上 */
}
    
    .container.compact {
      min-height: 70vh;
      justify-content: center;
    }
    
    /* 时间和日期样式 */
.time-date {
  margin-top: 10px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: margin 0.3s ease;
  cursor: pointer;
  /* 添加以下代码确保容器即使不显示也占据空间 */
  min-height: 80px; /* 根据实际时间日期显示时的高度设置 */
  opacity: 1;
  transition: opacity 0.3s ease, margin 0.3s ease;
  /* 添加 flex 布局确保内容垂直居中 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 当时间日期不显示时，只是隐藏内容，但仍然保留容器 */
.time-date:empty {
  opacity: 0;
  /* 保持容器高度不变 */
}

.container.compact .time-date {
  margin-top: 0;
  margin-bottom: 60px;
}
    
    .time {
      font-size: 3.8rem;
      font-weight: 300;
      margin-bottom: 10px;
    }
    
    .date {
      font-size: 1rem;
      font-weight: 300;
    }
    
    /* 搜索框样式 */
    .search-container {
      width: 100%;
      max-width: 850px;
      margin-bottom: 10px;
      position: relative;
      transition: margin 0.3s ease;
    }
    
    .container.compact .search-container {
      margin-bottom: 30px;
    }
    
    .search-box {
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.7);
      border-radius: 50px;
      padding: 8px 18px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      position: relative;
    }
    
    .search-box:focus-within {
      background: rgba(255, 255, 255, 0.95);
    }
    
    .engine-selector {
      display: flex;
      align-items: center;
      cursor: pointer;
      margin-right: 25px;
      position: relative; 
    }
    
    .engine-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    
    .engine-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
.engine-list {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 100;
  display: none; /* 默认隐藏，非常重要！ */
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 810px;
}

.engine-list.show {
  display: grid; /* 只在显示时使用网格布局 */
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
    
/* 调整每个引擎选项的样式以适应网格布局 */
.engine-option {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 10px 5px; /* 减少左右padding */
  border-radius: 8px;
  min-height: 50px; /* 固定高度 */
  text-align: center;
}

.engine-option:hover {
  background: #f0f0f0;
}

.engine-option-icon {
  width: 26px; /* 增大图标 */
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px; /* 图标和文字之间的间距 */
  overflow: hidden;
}

.engine-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.engine-option span {
  font-size: 12px; /* 减小字体以适应更多内容 */
  line-height: 1.2;
  max-width: 100%; /* 防止文字溢出 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* 调整引擎选择器图标的样式 */
.engine-icon {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 10px; /* 调整间距 */
}

.engine-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 自定义滚动条样式 */
.engine-list::-webkit-scrollbar {
  width: 8px;
}

.engine-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.engine-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.engine-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
    
    .search-input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 15px;
      outline: none;
      padding: 8px 0;
    }
    
    .search-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .clear-btn {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: #666;
      display: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    
    .clear-btn:hover {
      background: rgba(0, 0, 0, 0.1);
    }
    
    .search-btn {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: #666;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .suggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border-radius: 10px 10px 10px 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      z-index: 99;
      display: none;
      overflow: hidden;
    }
    
    .suggestions.show {
      display: block;
    }
    
    .suggestion-item {
      padding: 10px 20px;
      cursor: pointer;
     color: #555;
      transition: background 0.2s;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .suggestion-item:last-child {
      border-bottom: none;
    }
    
    .suggestion-item:hover {
      background: #f0f0f0;
    }
    
    .history-item {
      display: flex;
     color: #555;
      justify-content: space-between;
      align-items: center;
    }
    
    .delete-history {
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      font-size: 16px;
      padding: 2px 6px;
      border-radius: 3px;
    }
    
    .delete-history:hover {
      background: #ffebee;
      color: #f44336;
    }

/* 历史记录操作行 */
.history-action-row {
  display: flex;
  border-top: 1px solid #f0f0f0;
}

.history-action-row .suggestion-item {
  flex: 1;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  border-bottom: none;
  border-right: 1px solid #f0f0f0;
}

.history-action-row .suggestion-item:last-child {
  border-right: none;
}

.clear-history {
  color: #999;
  font-size: 13px;
}

.toggle-history {
  color: #999;
  font-size: 13px;
}

.clear-history:hover,
.toggle-history:hover {
  color: #4caf50;
  background: #e8f5e9 !important;
}
    
    /* 快速链接样式 */
    .quick-links {
      width: 100%;
      margin-bottom: 50px;
      display: flex;
      justify-content: center;
      transition: all 0.3s ease;
    }
    
    .container.compact .quick-links {
      display: none;
    }
    
    .links-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 20px;
    }
    
    .link-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: box-shadow 0.2s;
      border-radius: 10px;
      padding: 10px;
      position: relative;
  width: 100px; /* 固定链接项宽度 */
  max-width: 120px; /* 最大宽度限制 */
    }
    
    .link-item:hover {
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      background: rgba(255, 255, 255, 0.1);
    }
    
    .link-icon {
      width: 55px;
      height: 55px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      font-size: 24px;
      color: white;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.5);
      transition: all 0.3s ease;
    }
    
    .link-icon.large {
      background: rgba(255, 255, 255, 0.5);
    }
    
    .link-icon.small {
      width: 30px;
      height: 30px;
      font-size: 12px;
      background: rgba(255, 255, 255, 0.5);
    }
    
    .link-icon.medium {
      background: rgba(255, 255, 255, 0.5);
    }
    
    .link-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease;
    }
    
    .link-icon.small img {
      width: 100%;
      height: 100%;
    }
    
    .link-icon.medium img {
      width: 30px;
      height: 30px;
      border-radius: 6px;
    }
    
    .link-name {
      color: white;
      font-size: 14px;
      text-align: center;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

  /* 新增：限制文字显示 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px; /* 可根据图标大小调整 */
  padding: 0 2px;
  margin: 0 auto;
    }
    
/* 不同图标样式下的网站名称调整 */
.link-icon.small + .link-name {
  max-width: 60px; /* 小图标对应较小宽度 */
  font-size: 12px;
}

.link-icon.large + .link-name {
  max-width: 100px; /* 大图标对应较大宽度 */
}

    .add-link {
      /* 移除了背景色 */
    }
    
    /* Sortable.js 拖拽样式 */
    .sortable-ghost {
      opacity: 0.5;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 10px;
    }
    
    .sortable-chosen {
      transform: scale(1.05);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .sortable-drag {
      opacity: 0.8;
      transform: rotate(5deg);
    }
    
    /* 右键菜单 */
    .context-menu {
      position: fixed;
      background: white;
      border-radius: 5px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      display: none;
    }

    /* 添加全局右键菜单样式 */
    .global-context-menu {
      position: fixed;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      z-index: 9999;
      min-width: 180px;
      opacity: 0;
      transform: scale(0.95);
      transition: opacity 0.2s, transform 0.2s;
      pointer-events: none;
    }
    
    .global-context-menu.show {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    
    .global-context-item {
      padding: 10px 15px;
      cursor: pointer;
      transition: background 0.2s;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      font-size: 14px;
      display: flex;
      align-items: center;
    }
    
    .global-context-item:last-child {
      border-bottom: none;
    }
    
    .global-context-item:hover {
      background: rgba(0, 0, 0, 0.05);
    }
    
    .global-context-item .icon {
      margin-right: 8px;
      font-size: 16px;
    }
    
    .global-context-item.add .icon { color: #4CAF50; }
    .global-context-item.settings .icon { color: #2196F3; }
    .global-context-item.compact .icon { color: #FF9800; }
    
    .context-menu.show {
      display: block;
    }
    
    .context-item {
      padding: 10px 15px;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .context-item:hover {
      background: #f0f0f0;
    }
    
/* 设置按钮 - 白色线条风格 */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 50px;
  opacity: 0.7;

}

/* 使用CSS绘制白色线条齿轮 */
.settings-btn::before {
  content: "";
  display: block;
  width: 25px;  /* 进一步增大 */
  height: 25px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M638.293333 960.853333c-22.186667 0-44.373333-10.24-59.733333-25.6-17.066667-18.773333-51.2-44.373333-69.973333-44.373333-20.48 0-54.613333 25.6-69.973334 44.373333-22.186667 23.893333-61.44 32.426667-90.453333 18.773334l-3.413333-1.706667-105.813334-61.44c-29.013333-20.48-40.96-61.44-25.6-93.866667 1.706667-6.826667 6.826667-20.48 6.826667-32.426666 0-47.786667-37.546667-87.04-85.333333-87.04h-5.12c-30.72 0-54.613333-23.893333-61.44-61.44 0-1.706667-8.533333-49.493333-8.533334-90.453334 0-39.253333 8.533333-87.04 8.533334-90.453333 6.826667-35.84 32.426667-59.733333 63.146666-59.733333h3.413334c47.786667 0 85.333333-39.253333 85.333333-87.04 0-11.946667-5.12-27.306667-6.826667-32.426667-13.653333-32.426667-3.413333-71.68 25.6-92.16l3.413333-1.706667 112.64-63.146666c32.426667-13.653333 68.266667-5.12 90.453333 18.773333 17.066667 17.066667 49.493333 42.666667 68.266667 42.666667s52.906667-23.893333 68.266666-40.96c22.186667-22.186667 59.733333-30.72 88.746667-18.773334l3.413333 1.706667 109.226667 61.44c29.013333 20.48 40.96 61.44 27.306667 93.866667-1.706667 5.12-6.826667 20.48-6.826667 32.426666 0 47.786667 37.546667 87.04 85.333333 87.04h3.413334c30.72 0 54.613333 23.893333 61.44 61.44 0 1.706667 8.533333 51.2 8.533333 90.453334s-8.533333 87.04-8.533333 90.453333c-6.826667 37.546667-32.426667 61.44-63.146667 61.44H887.466667c-47.786667 0-85.333333 39.253333-85.333334 87.04 0 11.946667 5.12 27.306667 6.826667 32.426667 13.653333 32.426667 3.413333 71.68-25.6 92.16l-3.413333 1.706666-110.933334 61.44c-8.533333 3.413333-18.773333 5.12-30.72 5.12z m-129.706666-121.173333c52.906667 0 105.813333 59.733333 109.226666 61.44 6.826667 8.533333 22.186667 11.946667 30.72 6.826667l105.813334-59.733334c10.24-6.826667 13.653333-20.48 8.533333-30.72-1.706667-3.413333-11.946667-29.013333-11.946667-52.906666 0-76.8 61.44-138.24 136.533334-138.24h3.413333c3.413333 0 10.24-6.826667 11.946667-18.773334 0 0 8.533333-46.08 8.533333-80.213333s-8.533333-80.213333-8.533333-80.213333c-1.706667-11.946667-8.533333-18.773333-11.946667-18.773334L887.466667 426.666667c-75.093333 0-136.533333-61.44-136.533334-138.24 0-27.306667 11.946667-54.613333 11.946667-54.613334 3.413333-8.533333 0-22.186667-8.533333-29.013333l-104.106667-59.733333c-11.946667-5.12-23.893333-1.706667-32.426667 6.826666-1.706667 1.706667-54.613333 56.32-105.813333 56.32s-104.106667-56.32-105.813333-58.026666c-6.826667-8.533333-22.186667-10.24-30.72-6.826667L267.946667 204.8c-10.24 6.826667-13.653333 20.48-8.533334 30.72 0 0 11.946667 27.306667 11.946667 52.906667 0 76.8-61.44 138.24-136.533333 138.24h-5.12c-5.12 0-10.24 6.826667-11.946667 18.773333 0 0-8.533333 46.08-8.533333 80.213333s8.533333 80.213333 8.533333 80.213334c3.413333 13.653333 8.533333 18.773333 11.946667 18.773333h5.12c75.093333 0 136.533333 61.44 136.533333 138.24 0 23.893333-10.24 47.786667-11.946667 52.906667-5.12 10.24-1.706667 23.893333 8.533334 30.72l102.4 58.026666c3.413333 1.706667 6.826667 1.706667 10.24 1.706667 8.533333 0 17.066667-3.413333 20.48-8.533333 0 1.706667 54.613333-58.026667 107.52-58.026667z' fill='%23ffffff'/%3E%3Cpath d='M508.586667 701.44c-95.573333 0-174.08-78.506667-174.08-175.786667 0-97.28 78.506667-175.786667 174.08-175.786666S682.666667 428.373333 682.666667 525.653333c0 97.28-78.506667 175.786667-174.08 175.786667z m0-300.373333c-66.56 0-122.88 56.32-122.88 124.586666s54.613333 124.586667 122.88 124.586667c66.56 0 122.88-56.32 122.88-124.586667s-54.613333-124.586667-122.88-124.586666z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.settings-btn:hover {
  transform: scale(1.1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6); /* 悬停时边框更白 */
}
    
    /* 设置面板 */
    .settings-panel {
      position: fixed;
      top: 0;
      right: -400px;
      width: 400px;
      height: 100vh;
      background: white;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      transition: right 0.3s ease;
      z-index: 1000;
      overflow-y: auto;
      padding: 20px;
    }
    
    .settings-panel.open {
      right: 0;
    }
    
    .settings-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eee;
    }
    
    .settings-header button {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      color: #999;
      transition: color 0.2s;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .settings-header button:hover {
      color: #333;
      background: #f5f5f5;
      border-radius: 50%;
    }
    
    .settings-tabs {
      display: flex;
      margin-bottom: 20px;
      border-bottom: 1px solid #eee;
    }
    
    .settings-tab {
      padding: 10px 12px;
      cursor: pointer;
      border-bottom: 2px solid transparent;
    }
    
    .settings-tab.active {
      border-bottom: 2px solid #4a6cf7;
      color: #4a6cf7;
    }
    
    .settings-content {
      margin-bottom: 20px;
    }
    
    .setting-item {
      margin-bottom: 15px;
    }
    
    .setting-label {
      display: block;
      margin-bottom: 5px;
      font-weight: 500;
    }
    
    .background-previews {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
  max-height: 330px; /* 设置固定高度 */
  overflow-y: auto; /* 垂直滚动 */
  padding-right: 5px; /* 给滚动条留出空间 */
    }
    
.background-preview {
  width: 160px;
  height: 100px;
  border-radius: 5px;
  cursor: pointer;
  object-fit: cover; /* 替代 background-size: cover */
  border: 2px solid transparent;
  transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.background-preview:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.background-preview.active {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(74, 108, 247, 0.5);
}
    
    /* 搜索引擎列表美化 */
    .engines-list {
      margin-top: 10px;
      border: 1px solid #eee;
      border-radius: 8px;
      overflow: hidden;
  max-height: 360px; /* 设置固定高度 */
  overflow-y: auto; /* 垂直滚动 */
    }

/* 自定义滚动条样式 */
.background-previews::-webkit-scrollbar,
.engines-list::-webkit-scrollbar {
  width: 6px;
}

.background-previews::-webkit-scrollbar-track,
.engines-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.background-previews::-webkit-scrollbar-thumb,
.engines-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.background-previews::-webkit-scrollbar-thumb:hover,
.engines-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

    .aboults-item {
      padding-top: 1.5rem;
      font-size: 12px;
      line-height: 32px;
     }

    .aboults-links {
      padding-top: 1.5rem;
      font-size: 12px;
      line-height: 32px;
      color: #666;
     }

    .aboults-links a {
      padding: 10px;
      font-size: 12px;
      line-height: 32px;
      color: #666;
     text-decoration: none;
     }
  
    .engine-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 15px;
      border-bottom: 1px solid #f5f5f5;
      transition: background 0.2s;
    }
    
    .engine-item:last-child {
      border-bottom: none;
    }
    
    .engine-item:hover {
      background: #f9f9f9;
    }
    
    .engine-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .engine-item-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      overflow: hidden;
    }
    
    .engine-item-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .engine-actions {
      display: flex;
      gap: 8px;
    }
    
    .engine-action-btn {
      padding: 4px 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: white;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
    }
    
    .engine-action-btn:hover {
      background: #f0f0f0;
    }
    
    .engine-action-btn.delete:hover {
      background: #ffebee;
      border-color: #f44336;
      color: #f44336;
    }
    
    /* 添加/编辑链接模态框 */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      display: none;
    }
    
    .modal-overlay.show {
      display: flex;
    }
    
    .modal {
      background: white;
      border-radius: 10px;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
    }
    
    .modal-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #999;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    .form-group {
      margin-bottom: 15px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 5px;
      font-weight: 500;
    }
    
    .form-input {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 5px;
      font-size: 16px;
    }
    
    .icon-type-options {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }
    
    .icon-type-option {
      flex: 1;
      text-align: center;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 5px;
      cursor: pointer;
    }
    
    .icon-type-option.active {
      border-color: #4a6cf7;
      background: #f0f5ff;
    }
    
    .modal-footer {
      padding: 15px 20px;
      border-top: 1px solid #eee;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }
    
    .btn {
      padding: 8px 15px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 14px;
    }
    
    .btn-primary {
      background: #4a6cf7;
      color: white;
    }
    
    .btn-secondary {
      background: #f0f0f0;
      color: #333;
    }
  
    /* 添加搜索引擎模态框 */
    .engine-form-group {
      margin-bottom: 15px;
    }
    
    .form-help {
      font-size: 12px;
      color: #666;
      margin-top: 5px;
    }

    .setting-ziyuan-links {
      padding-top: 3px;
      font-size: 12px;
      line-height: 20px;
      color: #666;
     }

    .setting-ziyuan-links a {
      padding: 10px;
      font-size: 12px;
      line-height: 32px;
      color: #666;
     text-decoration: none;
     }
    
    /* 图标样式选项 */
    .icon-style-options {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }
    
    .icon-style-option {
      flex: 1;
      text-align: center;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 5px;
      cursor: pointer;
    }
    
    .icon-style-option.active {
      border-color: #4a6cf7;
      background: #f0f5ff;
    }
    
    .icon-preview {
      display: flex;
      justify-content: center;
      margin-top: 15px;
      gap: 20px;
    }
    
    .preview-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .preview-icon {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      background: rgba(255, 255, 255, 0.5);
      overflow: hidden;
    }
    
    .preview-icon.small {
      width: 30px;
      height: 30px;
    }
    
    .preview-icon.medium {
      background: rgba(255, 255, 255, 0.5);
    }
    
    .preview-icon.large {
      background: rgba(255, 255, 255, 0.5);
    }
    
    .preview-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .preview-icon.medium img {
      width: 30px;
      height: 30px;
      border-radius: 6px;
    }
    
    /* 图标预览 */
    .icon-preview-container {
      margin-top: 10px;
      text-align: center;
    }
    
    .icon-preview-img {
      max-width: 100px;
      max-height: 100px;
      border-radius: 8px;
      margin-top: 10px;
      display: none;
    }
    
    .icon-preview-img.show {
      display: inline-block;
    }
    
    /* 图标类型预览 */
    .icon-type-preview {
      display: flex;
      justify-content: center;
      margin-top: 15px;
      gap: 20px;
    }
    
    .icon-type-preview-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .icon-type-preview-icon {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      background: rgba(255, 255, 255, 0.5);
      overflow: hidden;
    }
    
    .icon-type-preview-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    /* 小树叶按钮 */
.leaf-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  z-index: 10;
  opacity: 0.7;
}

/* 树叶按钮 - 简洁风格 */
.leaf-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.leaf-toggle:hover {
  transform: scale(1.1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6); /* 悬停时边框更白 */
}
    /* 视频背景 */
    .video-background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -2;
  /* 确保视频不会移动 */
  position: fixed !important;
  transition: opacity 1s ease;
    }

    /* 分类标签栏样式 */
    .categories-container {
      margin: 20px auto 10px;
      max-width: 1200px;
      overflow-x: auto;
      white-space: nowrap;
      padding: 5px 0;
      scrollbar-width: thin;
    }
    
    .categories-tabs {
      display: inline-flex;
      gap: 8px;
      padding: 0 10px;
    }
    
    .category-tab {
      padding: 6px 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.9);
      user-select: none;
    }
    
    .category-tab:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    
    .category-tab.active {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .category-tab.editing {
      background: rgba(255, 255, 255, 0.25);
      border-color: rgba(255, 255, 255, 0.4);
    }
    
    .category-tab input {
      background: transparent;
      border: none;
      color: white;
      font-size: 14px;
      width: 60px;
      outline: none;
      text-align: center;
    }
    
    .add-category-tab {
      padding: 6px 12px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      color: rgba(255, 255, 255, 0.7);
      border: 1px dashed rgba(255, 255, 255, 0.3);
      font-size: 14px;
      min-width: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .add-category-tab:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.4);
    }
    
    /* 分类内容区域 */
    .category-content {
      display: none;
    }
    
    .category-content.active {
      display: block;
    }
    
    /* 拖拽样式 */
    .drag-over-category {
      background: rgba(100, 200, 255, 0.2) !important;
      border-color: rgba(100, 200, 255, 0.5) !important;
    }
    
    .drag-over-link {
      transform: scale(1.05);
      transition: transform 0.2s;
    }
    
    /* 分类右键菜单 */
    .category-context-menu {
      position: fixed;
      background: rgba(30, 30, 30, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 8px 0;
      min-width: 180px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      z-index: 10000;
      backdrop-filter: blur(10px);
      display: none;
    }
    
    .category-context-menu.show {
      display: block;
    }
    
    .category-context-item {
      padding: 10px 16px;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.9);
      transition: background 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .category-context-item:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    
    .category-context-item i {
      font-style: normal;
      font-size: 16px;
    }

    /* 分类管理美化 */
.category-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.category-manage-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
  background: #fff;
}

.category-manage-info {
  display: flex;
  flex-direction: column;
}

.category-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
}

.category-count {
  font-size: 13px;
  color: #666;
}

.category-manage-actions {
  display: flex;
  gap: 8px;
}

.category-action-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.category-action-btn:hover {
  background: #f5f5f5;
}

.category-action-btn.delete:hover {
  background: #ffebee;
  border-color: #f44336;
  color: #f44336;
}

.btn-primary {
  background: #4a6cf7;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #3a5ce5;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

/* 数据管理按钮美化 */
.data-manage-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.data-manage-btn {
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.data-manage-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.data-manage-btn.export {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-color: #a5d6a7;
  color: #2e7d32;
}

.data-manage-btn.export:hover {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  border-color: #81c784;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.data-manage-btn.import {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #90caf9;
  color: #1565c0;
}

.data-manage-btn.import:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  border-color: #64b5f6;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.data-manage-btn.reset {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-color: #ef9a9a;
  color: #c62828;
}

.data-manage-btn.reset:hover {
  background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
  border-color: #e57373;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

/* 图标样式 */
.data-manage-btn i {
  margin-right: 8px;
  font-size: 16px;
  font-style: normal;
}

.data-manage-btn.export i {
  color: #4caf50;
}

.data-manage-btn.import i {
  color: #2196f3;
}

.data-manage-btn.reset i {
  color: #f44336;
} 




/* 为分类容器添加过渡效果 */
.categories-container {
  margin: 20px auto 10px;
  max-width: 1200px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 5px 0;
  scrollbar-width: thin;
  transition: all 0.3s ease;
}

/* 为分类标签添加过渡效果 */
.categories-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 0 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 为单个分类标签添加悬停效果 */
.category-tab {
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.category-tab.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 添加分类切换时的动画效果 */
.category-switch-enter-active, 
.category-switch-leave-active {
  transition: all 0.3s ease;
}

.category-switch-enter-from {
  opacity: 0;
  transform: translateX(20px);
}

.category-switch-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}

/* 为快速链接网格添加过渡效果 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  transition: all 0.3s ease;
  opacity: 1;
}

.links-grid.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* 浅绿色系"移动到分类"弹窗美化 */
.small-modal {
  background: rgba(240, 255, 240, 0.97); /* 浅绿色半透明背景 */
  border-radius: 16px; /* 圆角 */
  border: 1px solid rgba(102, 187, 106, 0.3); /* 浅绿色边框 */
  box-shadow: 
    0 20px 50px rgba(102, 187, 106, 0.2), /* 绿色外阴影 */
    0 8px 25px rgba(102, 187, 106, 0.1), /* 柔和阴影 */
    0 0 0 1px rgba(102, 187, 106, 0.15), /* 内边框 */
    inset 0 1px 0 rgba(255, 255, 255, 0.9); /* 顶部内发光 */
  backdrop-filter: blur(15px) saturate(160%); /* 背景模糊和饱和 */
  -webkit-backdrop-filter: blur(15px) saturate(160%); /* Safari支持 */
  overflow: hidden; /* 隐藏溢出 */
  max-width: 400px; /* 限制最大宽度 */
  max-height: 520px; /* 限制最大高度 */
  position: relative; /* 相对定位 */
}

/* 添加顶部装饰线 */
.small-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784, #A5D6A7);
  border-radius: 16px 16px 0 0;
}

.small-modal .modal-header {
  background: linear-gradient(135deg, rgba(165, 214, 167, 0.4), rgba(102, 187, 106, 0.4)); /* 浅绿色渐变背景 */
  padding: 22px 24px; /* 内边距 */
  border-bottom: 1px solid rgba(102, 187, 106, 0.2); /* 浅绿色底部边框 */
  position: relative; /* 相对定位 */
  border-radius: 16px 16px 0 0; /* 顶部圆角 */
}

.small-modal .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent);
}

.small-modal .modal-header h3 {
  color: #2E7D32; /* 深绿色文字 */
  font-weight: 600; /* 字体粗细 */
  font-size: 19px; /* 字体大小 */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); /* 白色文字阴影 */
  margin: 0; /* 移除边距 */
  display: flex;
  align-items: center;
  gap: 10px;
}

.small-modal .modal-header h3::before {
  content: '📂';
  font-size: 20px;
  opacity: 0.8;
}

.small-modal .modal-close {
  background: rgba(76, 175, 80, 0.1); /* 浅绿色背景 */
  border-radius: 50%; /* 圆形 */
  width: 34px; /* 宽度 */
  height: 34px; /* 高度 */
  color: #2E7D32; /* 深绿色图标 */
  font-size: 20px; /* 字体大小 */
  transition: all 0.3s ease; /* 过渡效果 */
  border: 1px solid rgba(76, 175, 80, 0.2); /* 浅绿色边框 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-modal .modal-close:hover {
  background: rgba(76, 175, 80, 0.2); /* 悬停时背景 */
  transform: rotate(90deg); /* 旋转效果 */
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.3); /* 发光效果 */
  color: #1B5E20; /* 更深的绿色 */
  border-color: rgba(76, 175, 80, 0.4);
}

.small-modal .modal-body {
  padding: 24px; /* 内边距 */
  max-height: 420px; /* 最大高度 */
  overflow-y: auto; /* 垂直滚动 */
  background: rgba(245, 255, 245, 0.7); /* 浅绿色背景 */
  border-radius: 0 0 16px 16px; /* 底部圆角 */
}

/* 美化分类列表 */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* 间距 */
}

.category-option {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 255, 240, 0.9)); /* 白色到浅绿色渐变 */
  border-radius: 12px; /* 圆角 */
  padding: 16px 20px; /* 内边距 */
  color: #2E7D32; /* 深绿色文字 */
  cursor: pointer; /* 手型光标 */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 过渡动画 */
  border: 1px solid rgba(165, 214, 167, 0.5); /* 浅绿色边框 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(165, 214, 167, 0.1); /* 柔和阴影 */
}

/* 添加左侧装饰条 */
.category-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4CAF50, #81C784);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-option:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(224, 242, 241, 0.95)); /* 悬停时更亮 */
  transform: translateX(6px) scale(1.02); /* 向右移动并轻微放大 */
  border-color: #81C784; /* 亮绿色边框 */
  box-shadow: 
    0 6px 18px rgba(129, 199, 132, 0.2), /* 外阴影 */
    0 0 0 1px rgba(129, 199, 132, 0.3); /* 内边框 */
}

.category-option:hover::before {
  opacity: 1;
}

.category-option.disabled {
  background: rgba(236, 239, 241, 0.7); /* 灰色背景 */
  color: #78909C; /* 灰色文字 */
  cursor: not-allowed; /* 禁止光标 */
  border: 1px dashed rgba(176, 190, 197, 0.5); /* 灰色虚线边框 */
  transform: none;
}

.category-option.disabled:hover {
  transform: none; /* 禁止移动 */
  background: rgba(236, 239, 241, 0.7); /* 保持原背景 */
  border-color: rgba(176, 190, 197, 0.5); /* 保持原边框 */
  box-shadow: 0 3px 10px rgba(176, 190, 197, 0.1); /* 灰色阴影 */
}

/* 选中状态指示器 */
.category-option::after {
  content: '→';
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #4CAF50; /* 绿色箭头 */
  font-weight: bold;
  font-size: 18px;
}

.category-option:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 分类选项数量样式 */
.category-option .category-count {
  font-size: 13px;
  color: #66BB6A; /* 绿色数量 */
  background: rgba(102, 187, 106, 0.1); /* 浅绿色背景 */
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid rgba(102, 187, 106, 0.2);
}

.category-option:hover .category-count {
  background: rgba(102, 187, 106, 0.2); /* 悬停时深一点 */
  color: #4CAF50;
  border-color: rgba(102, 187, 106, 0.3);
}

/* 分类名称样式 */
.category-option .category-name {
  font-weight: 500;
  font-size: 15px;
  flex-grow: 1;
}

/* 为小模态框添加自定义浅绿色滚动条 */
.small-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

.small-modal .modal-body::-webkit-scrollbar-track {
  background: rgba(230, 245, 230, 0.3); /* 浅绿色轨道 */
  border-radius: 4px;
  box-shadow: inset 0 0 4px rgba(76, 175, 80, 0.1);
}

.small-modal .modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #81C784, #66BB6A); /* 绿色渐变滑块 */
  border-radius: 4px;
  border: 1px solid rgba(230, 245, 230, 0.4);
}

.small-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #A5D6A7, #81C784);
}

/* 添加空状态提示 */
.category-list:empty::after {
  content: '暂无其他分类';
  text-align: center;
  padding: 30px;
  color: #78909C;
  font-size: 14px;
  font-style: italic;
}

/* 从 global.scss 移植的淡入淡出动画 */
@keyframes fade-blur-in {
  from {
    filter: blur(20px) brightness(0.8);
    opacity: 0;
  }
  to {
    filter: blur(0) brightness(1);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.category-option.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  color: transparent;
}



/* 弹窗内容区域的绿色滚动条 */
.modal-body::-webkit-scrollbar,
.small-modal .modal-body::-webkit-scrollbar,
.engine-list::-webkit-scrollbar,
.background-previews::-webkit-scrollbar,
.engines-list::-webkit-scrollbar,
.categories-list::-webkit-scrollbar {
  width: 8px; /* 稍细的滚动条 */
}

.modal-body::-webkit-scrollbar-track,
.small-modal .modal-body::-webkit-scrollbar-track,
.engine-list::-webkit-scrollbar-track,
.background-previews::-webkit-scrollbar-track,
.engines-list::-webkit-scrollbar-track,
.categories-list::-webkit-scrollbar-track {
  background: rgba(102, 187, 106, 0.1); /* 浅绿色轨道 */
  border-radius: 4px; /* 圆角 */
}

.modal-body::-webkit-scrollbar-thumb,
.small-modal .modal-body::-webkit-scrollbar-thumb,
.engine-list::-webkit-scrollbar-thumb,
.background-previews::-webkit-scrollbar-thumb,
.engines-list::-webkit-scrollbar-thumb,
.categories-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #66BB6A, #4CAF50); /* 绿色渐变滑块 */
  border-radius: 4px; /* 滑块圆角 */
  border: 2px solid rgba(255, 255, 255, 0.8); /* 白色边框，提高可见度 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* 阴影增强可见度 */
  transition: all 0.3s ease; /* 过渡效果 */
}

.modal-body::-webkit-scrollbar-thumb:hover,
.small-modal .modal-body::-webkit-scrollbar-thumb:hover,
.engine-list::-webkit-scrollbar-thumb:hover,
.background-previews::-webkit-scrollbar-thumb:hover,
.engines-list::-webkit-scrollbar-thumb:hover,
.categories-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #81C784, #66BB6A); /* 悬停时更亮的绿色 */
  transform: scale(1.05); /* 轻微放大 */
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3); /* 增强阴影 */
}

.modal-body::-webkit-scrollbar-thumb:active,
.small-modal .modal-body::-webkit-scrollbar-thumb:active,
.engine-list::-webkit-scrollbar-thumb:active,
.background-previews::-webkit-scrollbar-thumb:active,
.engines-list::-webkit-scrollbar-thumb:active,
.categories-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #4CAF50, #388E3C); /* 点击时深绿色 */
}

/* 弹窗内Firefox滚动条支持 */
.modal-body,
.small-modal .modal-body,
.engine-list,
.background-previews,
.engines-list,
.categories-list {
  scrollbar-width: thin; /* 细滚动条 */
  scrollbar-color: #4CAF50 rgba(102, 187, 106, 0.1); /* 绿色滑块，浅绿色轨道 */
}

/* 极简模式下隐藏分类容器 */
.container.compact .categories-container {
  display: none;
  opacity: 0;
  height: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 调整搜索框在极简模式下的位置 */
.container.compact .search-container {
  margin-bottom: 60px;
  transition: margin 0.3s ease;
}

/* 备案信息样式 */
.beian-info {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.beian-info .hot-links {
  font-size: 14px; /* 稍大的字体 */
  margin-bottom: 2px;
}

.beian-info .hot-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.beian-info .company-info {
  font-size: 12px;
}

.beian-info .company-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* 嵌入式窗口样式 */
.embedded-window {
  width: 1200px;
  max-width: 95vw;
  height: 700px;
  max-height: 95vh;
}

.embedded-window .modal-body {
  padding: 0;
  height: calc(700px - 60px);
}

.embedded-window iframe {
  width: 100%;
  height: 100%;
  border: none;
}
