/*导航*/
/* 搜索触发按钮 */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 0px;
    position: relative; /* 新增，让搜索框相对于它定位 */
}
 

/* 搜索按钮中的图标 */
.search-btn i {
    /* 去掉边框和灰色背景 */
    border: none; 
    background: transparent;
}
.search-icon, .close-icon {
    width: 24px;
    height: 24px;
}

.search-input-group {
    position: relative;
    width: 100%;
}

/* 搜索输入框样式调整 */
.search-box input {
    width: 100%;
    padding: 8px 8px 8px 12px; /* 右侧留出图标位置 */
    padding-right: 40px; /* 为搜索图标预留空间 */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

input:focus {
    outline: none;
}

/* 搜索按钮图标定位到输入框内部右侧 */
.search-btn {
    position: absolute;
    right: 3px; /* 距离右侧边框3px */
    top: 50%;
    transform: translateY(-50%); /* 垂直居中 */
    background: none;
    border: none;
    cursor: pointer;
    color: #666; /* 图标颜色 */
    padding: 6px;
    font-size: 16px;
}

/* 其他保持原有样式，可根据需要调整 */
.search-container {
    position: relative;
    display: inline-block;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 5px; 0 0
}
 

.search-box {
    position: absolute;
    top: 200%;
    right: 0;
    z-index: 9991;
    background-color: #fff; 
    padding: 0;
    border-radius: 4px;
    min-width: 250px; /* 搜索框最小宽度 */
}

/* 针对手机屏幕的设置（通常宽度小于768px） */
@media (max-width: 768px) {
    .search-box {
        right: 10px; /* 手机上居右10px */
        left: auto; /* 清除可能存在的left属性影响 */
    }
	.search-toggle {  margin-right: 10px;  }
}



/*内页侧边-分类上边*/
.nei-search-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    margin: 10px auto; 
}

.nei-search-input {
    flex: 1;
    padding: 8px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
	width: 250px;
}

.nei-search-button {
    padding: 8px;
    border: none;
    background-color: #fff;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
	width: 40px;
}

.nei-search-button img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}