
/* 搜索框外容器 */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    height: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 15px;
    padding: 5px 10px;
    width: fit-content;
}

.search-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.back-button {
    display: flex;
    margin-right: 10px;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    border: none;
}

/* 输入框和按钮容器 */
.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    gap: 10px;
}

/* 搜索按钮样式 */
#search-btn {
    background-color: #0384fd;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 15px;
    cursor: pointer;
    min-width: 60px;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: #0273c1;
}

/* 搜索图标样式 */
.search-icon {
    cursor: pointer;
    margin-right: 5px;
}

.search-icon img {
    width: 25px;
    height: 25px;
}

/* 输入框样式 */
.search-container input[type="text"] {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    outline: none;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.search-container input[type="text"]:focus {
    background-color: #f9f9f9;
    border-color: #0384fd;
    border-radius: 15px;
}

.view-toggle {
    display: flex;
    padding-right: 0.1rem; /* 按钮右侧内边距 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    margin: 0.2rem; /* 按钮间距 */
}
.view-toggle button {
    background-color: transparent; /* 按钮背景透明 */
    color: #333; /* 按钮字体颜色 */
    border: none; /* 边框 */
    border-radius: 12px;
    cursor: pointer; /* 光标样式 */
    transition: background-color 0.3s; /* 过渡效果 */
    height: 100%; /* 按钮高度与父容器一致 */
}

/* 悬停效果 */
.view-toggle button:hover {
    background-color: rgba(3, 132, 253, 0.1); /* 悬停时按钮背景颜色 */
}
/* 图标样式 */
.view-toggle img {
    width: 1.5rem; /* 图标宽度 */
    height: 1.5rem; /* 图标高度 */
    transition: filter 0.3s; /* 过渡效果 */
}
