@charset "utf-8";
/**
 * 全站搜索 · 结果页（R4，2026-11-23）
 * ---------------------------------------------------------------------------
 * 结构：hero（大搜索框 + 热门词）→ 范围 tab → 结果头（计数 + 排序）→ 结果行 → 分页 / 空态。
 *
 * 三个刻意的设计决定：
 *   1. 结果行不是卡片：同屏混排资产/服务/资讯/帮助，卡片墙会互相打架，行式扫读更快；
 *   2. 高亮底色 = #FFE900（用户 2026-11-23 指定）：纯黄在黑字下对比最高，
 *      ⛔ 不要改成品牌紫淡底（紫底 + 黑字读作「已选中」而不是「命中」）；
 *   3. 价格右列固定三行（价格/类型/日期），视线不用在行内来回跳。
 *
 * 响应式：≥1200 三列（96 封面 + 正文 + 116 元信息）；900–1199 封面 80；<900 单列，
 * 元信息并到标题下方一行，tab 横向滚动（隐藏滚动条）。
 */

/* ══════════════════════════════════════════════════════════════
   ① 骨架
   ══════════════════════════════════════════════════════════════ */
.search-page {
    padding: 24px 0 56px;
    background: #f6f8fa;
}

.search-page .container {
    max-width: 1200px;
}

/* ══════════════════════════════════════════════════════════════
   ② hero：大搜索框 + 热门词
   ══════════════════════════════════════════════════════════════ */
.search-hero {
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 14px;
    padding: 22px 24px 18px;
}

.search-hero__field {
    display: flex;
    gap: 10px;
}

.search-hero__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 16px 0 40px;
    border: 1px solid #dde1e6;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A9099' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
    font-size: 15px;
    color: #14161a;
    outline: none;
    transition: border-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.search-hero__input::placeholder {
    color: #a8aeb6;
}

.search-hero__input:focus {
    border-color: #423dff;
}

.search-hero__submit {
    flex: 0 0 auto;
    width: 104px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #423dff;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s ease;
}

.search-hero__submit:hover {
    background: #2f2ae0;
}

.search-hero__hot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    font-size: 13px;
}

.search-hero__hotlabel {
    color: #8a9099;
}

.search-hero__hotlink {
    color: #5a6068;
    text-decoration: none;
}

.search-hero__hotlink:hover {
    color: #423dff;
}

/* ══════════════════════════════════════════════════════════════
   ③ 范围 tab + 结果头
   ══════════════════════════════════════════════════════════════ */
.search-tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 16px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 12px;
    height: 48px;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tabs__item {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    flex: 0 0 auto;
    padding: 0 2px;
    font-size: 14px;
    color: #5a6068;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.search-tabs__item:first-child {
    margin-left: 12px;
}

.search-tabs__item:hover {
    color: #14161a;
}

.search-tabs__item.is-active {
    color: #423dff;
    border-bottom-color: #423dff;
}

.search-tabs__num {
    font-size: 12px;
    color: #8a9099;
}

.search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px 10px;
}

.search-head__total {
    margin: 0;
    font-size: 13px;
    color: #5a6068;
}

.search-head__total b {
    font-weight: 500;
    color: #14161a;
}

.search-head__sorts {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.search-head__sortlabel {
    color: #8a9099;
}

.search-head__sort {
    color: #5a6068;
    text-decoration: none;
}

.search-head__sort:hover {
    color: #14161a;
}

.search-head__sort.is-active {
    color: #14161a;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   ④ 结果行
   ══════════════════════════════════════════════════════════════ */
.search-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 12px;
    overflow: hidden;
}

.search-list > li + li {
    border-top: 1px solid #f0f2f4;
}

.search-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 116px;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background .12s ease;
}

.search-row:hover {
    background: #fafbfc;
}

.search-row__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 72px;
    border-radius: 8px;
    background: #f1f3f6;
    overflow: hidden;
}

.search-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-row__badge {
    font-size: 12px;
    color: #8a9099;
    letter-spacing: .5px;
}

.search-row__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.search-row__title {
    font-size: 15px;
    line-height: 1.55;
    color: #14161a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-row:hover .search-row__title {
    color: #423dff;
}

.search-row__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #8a9099;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 高亮：#FFE900（用户指定）。只染底，不改字重，避免行内粗细跳变 */
.search-page mark {
    background: #ffe900;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.search-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    font-size: 12px;
    color: #8a9099;
}

.search-row__price {
    font-size: 15px;
    font-weight: 500;
    color: #14161a;
    white-space: nowrap;
}

.search-row__price.is-text {
    color: #8a9099;
    font-weight: 400;
}

.search-row__type,
.search-row__time {
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   ⑤ 空态
   ══════════════════════════════════════════════════════════════ */
.search-empty {
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
}

.search-empty__title {
    margin: 0;
    font-size: 15px;
    color: #14161a;
}

.search-empty__hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #8a9099;
    line-height: 1.7;
}

.search-empty__entries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.search-empty__entry {
    padding: 4px 14px;
    border-radius: 14px;
    background: #f1f3f6;
    color: #5a6068;
    font-size: 13px;
    text-decoration: none;
}

.search-empty__entry:hover {
    background: #eeedfe;
    color: #423dff;
}

/* ══════════════════════════════════════════════════════════════
   ⑥ 响应式
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .search-row {
        grid-template-columns: 80px minmax(0, 1fr) 104px;
        gap: 14px;
        padding: 14px 16px;
    }

    .search-row__cover {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 899px) {
    .search-page {
        padding: 16px 0 40px;
    }

    .search-hero {
        padding: 16px 16px 14px;
        border-radius: 12px;
    }

    .search-hero__input {
        height: 44px;
        font-size: 14px;
    }

    .search-hero__submit {
        width: 84px;
        height: 44px;
        font-size: 14px;
    }

    .search-tabs {
        gap: 18px;
        height: 44px;
        margin-top: 12px;
    }

    .search-tabs__item {
        height: 44px;
        font-size: 13px;
    }

    .search-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 2px 8px;
    }

    .search-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 14px 16px;
    }

    .search-row__cover {
        width: 64px;
        height: 48px;
        border-radius: 6px;
    }

    .search-row__badge {
        font-size: 11px;
        letter-spacing: 0;
    }

    .search-row__title {
        font-size: 14px;
    }

    .search-row__meta {
        grid-column: 2 / 3;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .search-row__price {
        font-size: 14px;
    }

    .search-empty {
        padding: 36px 16px;
    }
}
