/* 搜索功能样式 */

.search-results-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
}

.search-results-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-results-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-search-results {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.close-search-results:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results-list {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.result-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.result-type {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.result-description {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-arrow {
    color: #bdc3c7;
    font-size: 1.2rem;
    margin-left: 10px;
}

.search-no-results {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.search-no-results i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.search-no-results p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.search-no-results small {
    color: #95a5a6;
}

.back-to-search {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-to-search:hover {
    background: #2980b9;
}

/* 点击背景关闭功能 */
.search-results-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.search-results-content {
    cursor: default;
    max-width: 600px;
    margin: 50px auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 搜索框样式增强 */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-results-list {
        padding: 10px;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .result-image {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .result-info h4 {
        font-size: 1rem;
    }
    
    .result-description {
        font-size: 0.85rem;
    }
}