* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-image: url('preview.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  padding: 40px;
}
.tech-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: #e0f8ff;
  text-shadow: 0 0 8px #00a2ff,
               0 0 15px #0066ff,
               0 0 20px #003cff;
  margin: 30px 0;
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  position: relative;
  letter-spacing: 4px;
  background-color: rgba(23, 53, 114, 0.3);
  padding: 15px 30px;
  border: 1px solid #00a2ff;
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.5),
              inset 0 0 10px rgba(0, 162, 255, 0.3);
  text-transform: uppercase;
  backdrop-filter: blur(2px);
  animation: neon-pulse 2s infinite alternate;
}

.tech-title::before,
.tech-title::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid #00a2ff;
  box-shadow: 0 0 5px #00a2ff;
}

.tech-title::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.tech-title::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

@keyframes neon-pulse {
  from {
    text-shadow: 0 0 8px #00a2ff,
                 0 0 15px #0066ff,
                 0 0 20px #003cff;
  }
  to {
    text-shadow: 0 0 10px #00a2ff,
                 0 0 20px #0066ff,
                 0 0 30px #003cff;
  }
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 60px; /* 增加标题与搜索框之间的距离 */
}

.header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.search-section {
  margin-bottom: 30px;
  text-align: center;
}

.search-box-wrapper {
  position: relative;
  display: inline-block;
  width: 80%;
  max-width: 600px;
}

.search-box {
  width: 100%;
  padding: 12px 40px 12px 20px; /* 为清空按钮留出空间 */
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s;
}

.search-box:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

.search-button {
  padding: 12px 25px;
  margin-left: 10px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #357ab8;
}

.clear-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.clear-button:hover {
  color: #e74c3c;
}

.content-section {
  min-height: 400px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-height: 800px; /* 设置更大的最大高度 */
  overflow-y: auto; /* 启用垂直滚动条 */
}

/* 自定义滚动条样式 */
.content-section::-webkit-scrollbar {
  width: 8px; /* 滚动条宽度 */
}

.content-section::-webkit-scrollbar-thumb {
  background-color: #4a90e2; /* 滚动条颜色 */
  border-radius: 4px; /* 滚动条圆角 */
}

.content-section::-webkit-scrollbar-thumb:hover {
  background-color: #357ab8; /* 滚动条悬停颜色 */
}

.content-section::-webkit-scrollbar-track {
  background-color: #f5f5f5; /* 滚动条轨道颜色 */
}

.result-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.result-title {
  color: #1a73e8;
  margin-bottom: 5px;
  font-size: 18px;
}

.result-snippet {
  color: #555;
  font-size: 14px;
}

.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-button {
  padding: 12px 25px;
  margin-left: 10px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.dropdown-button:hover {
  background-color: #357ab8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  padding: 10px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.dropdown-menu label {
  display: block;
  padding: 5px 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.dropdown-menu label:hover {
  background-color: #f5f5f5;
}

.dropdown-menu input[type="checkbox"] {
  margin-right: 10px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.side-buttons {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-button {
  padding: 10px 20px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.side-button:hover {
  background-color: #357ab8;
}

/* 移除弹窗样式 */
/* 
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #e74c3c;
  text-decoration: none;
}
*/

.search-button, .overview-container .search-button, .base64-container .search-button, .image-search-container .search-button, .freq-container .search-button {
    text-decoration: none !important;
}

.return-home-btn {
    position: absolute;
    top: 200px;
    right: 40px;
    z-index: 10;
    display: inline-block;
    margin: 20px 0 0 40px;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    border-radius: 25px;
    text-align: center;
    font-size: 16px;
    text-decoration: none !important;
    transition: background 0.3s;
}
.return-home-btn:hover {
    background-color: #357ab8;
}

@media (max-width: 768px) {
  body {
      padding: 20px;
  }
  
  .header {
      margin-bottom: 40px;
  }
  
  .header h1 {
      font-size: 2rem;
  }
  
  .search-box {
      width: 100%;
      margin-bottom: 10px;
  }
  
  .search-button {
      width: 100%;
      margin-left: 0;
  }
}