/* 搜索框样式开始 */
.searchall {
	width: 1190px;
	margin: 10px auto;
	position: relative;
	border: 1px solid #A5D478;
	border-radius: 10px;
	background-color: #F9FEF1;
}

.search-container {
	width: 990px;
	margin: 38px auto;
	position: relative;
}

.search-box {
	display: flex;
	border: 2px solid #6dba2b;
	border-radius: 25px;
	padding: 8px 15px;
	background-color: white;
	position: relative;
	height: 25px;
}

/* 搜索引擎图标 */
.search-engine-icon {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding-right: 10px;
	border-right: 1px solid #ddd;
	margin-right: 10px;
}

.search-engine-icon img {
	width: 26px;
	height: 26px;
}

.search-input-container {
	flex: 1;
	display: flex;
	position: relative;
}

.search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 15px;
	height: 30px;
}

.search-actions {
	display: flex;
	align-items: center;
}

.clear-btn {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #999;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin-right: 5px;
}

.search-btn {
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat center;
	border: none;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background-size: contain;
}


/* 搜索图标样式 */
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
 	z-index: 1000;
	width: 100%; /* 改为100%宽度以充分利用容器空间 */
 	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
    padding: 1px;
    box-sizing: border-box;
}

.search-menu{
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #6dba2b;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.engine-option {
    width: calc(16% - 20px); /* 调整为20%，每行显示5个选项 */
	display: flex;
	align-items: center;
	padding: 10px;
	cursor: pointer;
    margin: 5px 10px;
    box-sizing: border-box;
    /* 添加边框和圆角 */
    border: 1px solid transparent;
    border-radius: 3px;
}

.engine-option:hover {
	background-color: #f0f0f0;
    border-color: #6dba2b;
}

.engine-option img {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.custom-engine-option {
	border-top: 1px solid #eee;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	color: #6dba2b;
	font-weight: bold;
	width: calc(16% - 20px); /* 与.engine-option保持一致 */
    margin: 5px 10px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 3px;
	background-color: #f0f0f0;
}

.custom-engine-option:hover {
	background-color: #f0f0f0;
    border-color: #6dba2b;
}

/* 搜索历史联想词样式 */
.suggestions-dropdown, .history-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #6dba2b;
 	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: 999;
	max-height: 500px;
	overflow-y: auto;
}

.suggestion-item, .history-item {
	padding: 7px 10px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.suggestion-item:hover, .history-item:hover {
	background-color: #CFE3CC;
}

.delete-history-btn {
	background: #28a745;
	color: white;
	border: none;
	border-radius: 3px;
	padding: 2px 6px;
	cursor: pointer;
	font-size: 12px;
}

.delete-history-btn:hover {
  background: #218838; /* 深一点的绿色 */
}

.history-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
}

.clear-history-btn,
.close-history-btn {
  background: #28a745; /* 绿色背景 */
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.clear-history-btn:hover,
.close-history-btn:hover {
  background: #218838; /* 深一点的绿色 */
}

/* 搜索框样式结束 */