/* 股票搜索结果样式 */
.stock-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.stock-search-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.stock-search-item:hover {
    background-color: #f3f4f6;
}

.stock-code {
    font-weight: 600;
    color: #1a237e;
    margin-right: 1rem;
}

.stock-name {
    color: #4b5563;
    flex-grow: 1;
}

.stock-market {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.text-red-500 {
    color: #f44336;
    /* 移除或修改背景颜色 */
    background-color: transparent; /* 或使用更淡的颜色如 #fff5f5 */
}

.text-blue-500 {
    color: #2196f3;
    background-color: #e3f2fd;
}

/* 搜索框焦点样式增强 */
#stock-code-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}