/* --- 搜索结果页样式 --- */

.search-result-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: 1900; /* 比应用详情页低一点，但高于其他所有内容 */
    overflow-y: auto;
    color: var(--text-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.search-result-page.show {
    opacity: 1;
    pointer-events: auto;
}

/* 头部样式，复用应用详情页的样式 */
.search-result-header {
    padding: 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--primary-bg);
    z-index: 1901;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-result-header .back-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.search-result-header-name {
    margin-left: 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 100px);
}

/* 结果内容区域 */
.search-result-content {
    padding: 20px;
}

/* 空状态和加载状态的容器 */
.search-result-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: var(--light-text-color);
}

.search-result-state i {
    font-size: 4em;
    opacity: 0.5;
    margin-bottom: 20px;
}
/* 新增：为 Lottie 搜索加载动画容器设置样式 */
#lottie-search-loader {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}
.search-result-state p {
    font-size: 1.1em;
}

/* 搜索结果列表，直接复用 app-list 的网格布局 */
@media (min-width: 992px) {
    .search-result-content .app-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}