body,
html {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* 垂直居中容器 */
.main-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  padding: 20px;
}

/* 搜索框外层包装，用于定位下拉菜单 */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* 很长的搜索框 */
  z-index: 10;
}

/* 搜索框整体样式 */
.search-form .input-group {
  background: #fff;
  border-radius: 50px; /* 全圆角设计，更显融合 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* 悬浮感阴影 */
  padding: 5px; /* 内部留白，使圆角更自然 */
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

/* 获得焦点时的样式增强 */
.search-form .input-group:focus-within {
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15); /* 蓝色光晕 */
  border-color: #86b7fe;
}

/* 输入框样式 */
.search-input {
  border: none !important; /* 移除默认边框 */
  box-shadow: none !important;
  font-size: 1.25rem; /* 大号字体 */
  padding: 12px 20px;
  background: transparent;
  color: #333;
  height: auto;
}

.search-input:focus {
  background: transparent;
}

/* 占位符颜色 */
.search-input::placeholder {
  color: #aaa;
}

/* 搜索按钮样式 - 融入一体 */
.search-btn {
  background: transparent;
  border: none;
  color: #6c757d; /* 默认灰色 */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #f0f2f5;
  color: #0d6efd; /* 悬停变蓝 */
}

.search-btn:active {
  transform: scale(0.95);
}

.search-icon {
  font-size: 1.5rem;
}

/* 热门搜索下拉框 */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  margin-top: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  display: none; /* 默认隐藏 */
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

/* 下拉框动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestions-header {
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #999;
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #495057;
  transition: background 0.1s;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.suggestion-item i {
  margin-right: 10px;
  font-size: 1rem;
  color: #ccc;
}

/* 简单的 Logo 或 标题区域 */
.site-branding {
  margin-bottom: 40px;
  text-align: center;
}
.site-title {
  font-size: 3rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.site-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
}

.suggestions-list-wrapper {
  /* 关键：限制高度以显示前5个。
       假设每个item高度约44px (12px上下padding + 20px文字)，
       5个item大约是 44 * 5 = 220px。设置240px留点余量。
    */
  max-height: 240px;
  overflow-y: auto; /* 超出高度显示滚动条 */
}
