.search-history-root,
.Left2-a-seach {
    position: relative;
}
.search-history-panel,
.Left2-a-seach-history {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    box-sizing: border-box;
    display: none;
    padding: 10px;
    border: 1px solid rgba(116, 194, 223, .28);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(44, 88, 105, .16), 0 4px 12px rgba(44, 88, 105, .08);
}
.search-history-panel:before,
.Left2-a-seach-history:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(116, 194, 223, .28);
    border-top: 1px solid rgba(116, 194, 223, .28);
    background: #fff;
    transform: rotate(45deg);
}
.search-history-section + .search-history-section,
.Left2-a-seach-history-section + .Left2-a-seach-history-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(116, 194, 223, .14);
}
.search-history-title-row,
.Left2-a-seach-history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.search-history-title,
.Left2-a-seach-history-top .p6,
.Left2-a-seach-history-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #377f99;
    letter-spacing: .4px;
}
.search-history-title:before,
.Left2-a-seach-history-top .p6:before,
.Left2-a-seach-history-title:before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    margin-right: 6px;
    border-radius: 999px;
    background: #409EFF;
    vertical-align: -2px;
}

.search-history-clear-all,
.Left2-a-seach-history-clear {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    color: #4b9fbd;
    font-size: 12px;
    background: rgba(116, 194, 223, .10);
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}
.search-history-clear-all:hover,
.Left2-a-seach-history-clear:hover {
    color: #287e9d;
    background: rgba(116, 194, 223, .18);
}
/* 历史搜索 */
.search-history-list,
.Left2-a-seach-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 220px;
    overflow: auto;
}
.search-history-history-item,
.Left2-a-seach-history-list li.search-history-history-item {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    background: #f8fdff;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    transition: all .16s ease;
    flex: 0 1 auto;
}
.search-history-history-item:hover,
.Left2-a-seach-history-list li.search-history-history-item:hover {
    transform: translateY(-1px);
    background: #f8fdff;
    color: #1f6f8c;
}
.search-history-history-item .search-history-keyword {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}
.search-history-history-item .search-history-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    border: 0;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: #9db5bf;
    opacity: 0;
    transition: all .16s ease;
}
.search-history-history-item:hover .search-history-delete {
    opacity: 1;
}
.search-history-history-item .search-history-delete:hover {
    color: #287e9d;
    background: rgba(116, 194, 223, .14);
}
.search-history-history-item .search-history-delete svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* 热搜 */
.search-history-hot-list,
.Left2-a-seach-hot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
    max-height: 160px;
    overflow: hidden;
}
.search-history-hot-item,
.Left2-a-seach-history-list li.search-history-hot-item {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 25px;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    background: transparent;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    transition: all .16s ease;
}
.search-history-hot-item:hover,
.Left2-a-seach-history-list li.search-history-hot-item:hover {
    transform: none;
    background: transparent;
    color: #1f6f8c;
}
.search-history-hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 6px;
    background: #edf9fd;
    color: #4b9fbd;
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 auto;
}
.search-history-hot-item:nth-child(1) .search-history-hot-rank {
    color: #fff;
    background: linear-gradient(135deg, #ff5b5b, #ff8a00);
}
.search-history-hot-item:nth-child(2) .search-history-hot-rank {
    color: #fff;
    background: linear-gradient(135deg, #ff8a00, #fbbf24);
}
.search-history-hot-item:nth-child(3) .search-history-hot-rank {
    color: #fff;
    background: linear-gradient(135deg, #4b9fbd, #409EFF);
}
.search-history-history-body {
    min-height: 34px;
}
.search-history-empty,
.Left2-a-seach-history-empty {
    padding: 14px 10px;
    color: #90aeb9;
    font-size: 12px;
    text-align: center;
    background: #f8fdff;
    border: 1px dashed rgba(116, 194, 223, .22);
    border-radius: 8px;
    margin-top: 8px;
}
.search-history-section-history .search-history-empty,
.Left2-a-seach-history-section:first-child .Left2-a-seach-history-empty {
    margin-top: 8px;
}
.search-history-clear-input,
.Left2-a-seach-input-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-top: -9px;
    border: 0;
    border-radius: 50%;
    background: rgba(116, 194, 223, .14);
    cursor: pointer;
    color: #4b9fbd;
    transition: all .16s ease;
}
.search-history-clear-input:hover,
.Left2-a-seach-input-clear:hover {
    background: rgba(116, 194, 223, .24);
    color: #287e9d;
}
.search-history-clear-input svg,
.Left2-a-seach-input-clear svg {
    width: 11px;
    height: 11px;
    display: block;
}
