/**
 * 搜索建议下拉框样式
 */

.search-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9eaf0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
}

.suggest-loading {
    padding: 12px 16px;
    text-align: center;
}

.suggest-loading span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ff0000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: suggest-spin 0.6s linear infinite;
}

@keyframes suggest-spin {
    to { transform: rotate(360deg); }
}

.suggest-list {
    padding: 4px 0;
}

.suggest-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #1D2026;
}

.suggest-item:hover {
    background: #FFF5F3;
}

.suggest-item .suggest-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #8C94A3;
    flex-shrink: 0;
}

.suggest-item .suggest-text {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-item .suggest-keyword {
    font-weight: 500;
    color: #ff0000;
}

.suggest-item .suggest-arrow {
    margin-left: 10px;
    color: #8C94A3;
    font-size: 12px;
}

.suggest-history {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    padding-top: 4px;
}

.suggest-history-title {
    padding: 8px 16px 4px;
    font-size: 12px;
    color: #8C94A3;
}

.suggest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.suggest-footer-btn {
    font-size: 12px;
    color: #8C94A3;
    cursor: pointer;
    text-decoration: none;
}

.suggest-footer-btn:hover {
    color: #ff0000;
}

.suggest-empty {
    padding: 20px 16px;
    text-align: center;
    color: #8C94A3;
    font-size: 14px;
}

.suggest-history-item {
    background: #FFF8F6;
}

.suggest-history-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: #ff0000;
    color: #fff;
    border-radius: 3px;
    margin-left: 8px;
}

.suggest-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}
