/* SearchBox 搜索框组件样式 */
.search_box {
    display: flex;
    /* gap: 20px; */
    width: 100%;
    min-height: 200px;
}

.search_l {
    width: 180px;
    flex-shrink: 0;
    margin-right: 16px;
}

.search_item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sl-font-sans);
    font-size: var(--sl-font-size-medium);
    font-weight: var(--sl-font-weight-normal);
    color: var(--sl-color-neutral-700);
    transition: var(--sl-transition-fast) all;
    user-select: none;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 4px;
}

.search_item:hover {
    background-color: var(--sl-color-neutral-100);
}

.search_item .item_tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #F0F1F4;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
    color: #333;
}

.search_item .item_title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search_r {
    flex: 1;
    display: flex;
    flex-direction: column;
    --item-height: 64px;
    min-width: 0; /* 允许 flex 子元素缩小 */
}

.search_r .search_box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background-color: transparent;
    border-radius: 0;
    flex: 1;
    padding: 0;
    color: #333;
    overflow-y: auto;
    max-height: 320px;
}

.search_r .box_item {
    height: var(--item-height);
    display: flex;
    align-items: center;
    cursor: pointer;
    width: calc(50% - 4px);
    box-sizing: border-box;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.search_r .box_item:hover {
    background-color: #f4f4f5;
}

.search_r .box_item .info_s {
    color: #666;
    font-size: 12px;
}

.search_r .box_item img {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.search_r .box_item .item_btn {
    display: none;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 56px;
    background-color: var(--apps-primary-color);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.search_r .box_item .item_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}

.search_r .box_item .item_info .info_con {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search_r .box_item .item_info .info_t {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.search_r .box_item .item_info .info_s {
    font-size: 12px;
    color: #666;
}

.search_r .box_item:hover .item_btn {
    display: flex;
}

.search_r .box_item:hover .info_con {
    display: none;
}

.his_title {
    font-weight: bold;
    font-size: 14px;
    height: 0;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 8px;
}

.his_title.img1 {
    width: 56px;
    background-image: url('images/search1.png');
}

.his_title.img2 {
    width: 92px;
    background-image: url('images/search2.png');
}

.search_item img {
    width: 20px;
    margin-left: 8px;
}

/* 第一个搜索项（编号1，红色） */
.search_l .search_item:first-of-type .item_tag,
.search_l .search_item:nth-of-type(1) .item_tag {
    background-color: #FE2D46;
    color: #fff;
}

/* 第二个搜索项（编号2，橙色） */
.search_l .search_item:nth-of-type(2) .item_tag {
    background-color: #FF6600;
    color: #fff;
}

/* 第三个搜索项（编号3，橙色） */
.search_l .search_item:nth-of-type(3) .item_tag {
    background-color: #FF6600;
    color: #fff;
}

.search_item + .search_item {
    margin-top: 8px;
}

.use_box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #F5F7F9;
    border-radius: 8px;
    padding: 0 8px;
}