/* =========================================================
   ID铺子 · 帮助中心搜索结果页
   help-search.css
========================================================= */

:root {
    --help-search-bg: #f7f8fa;
    --help-search-white: #ffffff;

    --help-search-black: #111111;
    --help-search-text: #222222;
    --help-search-secondary: #666666;
    --help-search-muted: #999999;

    --help-search-border: #e8e8e8;
    --help-search-border-light: #eeeeee;

    --help-search-container: 1200px;

    --help-search-radius: 16px;
    --help-search-small-radius: 10px;

    --help-search-transition:
        180ms ease;
}


/* =========================================================
   基础
========================================================= */

.idp-help-search-page {
    min-height: 70vh;
    background: var(--help-search-bg);
    color: var(--help-search-text);
}

.idp-help-search-page *,
.idp-help-search-page *::before,
.idp-help-search-page *::after {
    box-sizing: border-box;
}

.idp-help-search-container {
    width: min(
        calc(100% - 40px),
        var(--help-search-container)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   Hero
========================================================= */

.idp-help-search-hero {
    background: var(--help-search-white);
    border-bottom: 1px solid var(--help-search-border);
}

.idp-help-search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-top: 28px;

    font-size: 13px;
    line-height: 20px;

    color: var(--help-search-muted);
}

.idp-help-search-breadcrumb a {
    color: var(--help-search-secondary);
    text-decoration: none;

    transition:
        color var(--help-search-transition);
}

.idp-help-search-breadcrumb a:hover {
    color: var(--help-search-black);
}

.idp-help-search-breadcrumb-arrow {
    color: #c8c8c8;
}


.idp-help-search-hero-content {
    max-width: 820px;

    margin: 0 auto;

    padding-top: 54px;
    padding-bottom: 64px;

    text-align: center;
}


.idp-help-search-eyebrow {
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;

    color: #999999;
}


.idp-help-search-hero h1 {
    margin: 0;

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    line-height: 1.15;

    font-weight: 700;

    letter-spacing: -0.035em;

    color: var(--help-search-black);
}


.idp-help-search-hero p {
    margin: 16px 0 32px;

    font-size: 16px;
    line-height: 1.8;

    color: var(--help-search-secondary);
}

.idp-help-search-hero p strong {
    color: var(--help-search-black);
    font-weight: 600;
}


/* =========================================================
   Search Form
========================================================= */

.idp-help-search-form {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 62px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #dcdcdc;
    border-radius: 13px;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.05);

    transition:
        border-color var(--help-search-transition),
        box-shadow var(--help-search-transition);
}

.idp-help-search-form:focus-within {
    border-color: #bdbdbd;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


.idp-help-search-form-icon {
    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999999;
}

.idp-help-search-form-icon svg {
    width: 22px;
    height: 22px;

    display: block;
}


.idp-help-search-form input[type="search"] {
    flex: 1;

    width: 100%;
    min-width: 0;

    height: 50px;

    padding: 0 12px;

    border: 0;
    outline: none;

    background: transparent;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;

    color: var(--help-search-text);
}

.idp-help-search-form input[type="search"]::placeholder {
    color: #aaaaaa;
}


.idp-help-search-form button {
    flex: 0 0 auto;

    height: 50px;

    padding: 0 26px;

    border: 0;
    border-radius: 9px;

    background: #111111;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background var(--help-search-transition),
        transform var(--help-search-transition);
}

.idp-help-search-form button:hover {
    background: #2b2b2b;
}

.idp-help-search-form button:active {
    transform: scale(0.98);
}


/* =========================================================
   Results Section
========================================================= */

.idp-help-search-results-section {
    padding: 52px 0 90px;
}


/* =========================================================
   Result Header
========================================================= */

.idp-help-search-result-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 24px;
}


.idp-help-search-result-label {
    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.15em;

    color: #aaaaaa;
}


.idp-help-search-result-header h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.35;

    font-weight: 650;

    letter-spacing: -0.02em;

    color: var(--help-search-black);
}

.idp-help-search-result-header h2 span {
    font-weight: 500;
}


.idp-help-search-result-count {
    flex: 0 0 auto;

    font-size: 13px;
    line-height: 20px;

    color: var(--help-search-muted);
}

.idp-help-search-result-count strong {
    color: var(--help-search-text);
    font-weight: 600;
}


/* =========================================================
   Result List
========================================================= */

.idp-help-search-list {
    background: var(--help-search-white);

    border: 1px solid var(--help-search-border);

    border-radius: var(--help-search-radius);

    overflow: hidden;
}


/* =========================================================
   Result Item
========================================================= */

.idp-help-search-item {
    position: relative;

    display: flex;
    align-items: center;

    gap: 30px;

    padding: 28px 30px;

    text-decoration: none;

    background: #ffffff;

    border-bottom: 1px solid var(--help-search-border-light);

    transition:
        background var(--help-search-transition);
}

.idp-help-search-item:last-child {
    border-bottom: 0;
}

.idp-help-search-item:hover {
    background: #fafafa;
}


.idp-help-search-item-main {
    flex: 1;
    min-width: 0;
}


/* =========================================================
   Category
========================================================= */

.idp-help-search-item-category {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    margin-bottom: 9px;

    padding: 3px 9px;

    border-radius: 6px;

    background: #f2f3f5;

    font-size: 11px;
    line-height: 18px;

    color: #777777;
}


/* =========================================================
   Title
========================================================= */

.idp-help-search-item-title {
    margin: 0;

    font-size: 18px;
    line-height: 1.55;

    font-weight: 600;

    letter-spacing: -0.015em;

    color: var(--help-search-black);

    transition:
        color var(--help-search-transition);
}

.idp-help-search-item:hover
.idp-help-search-item-title {
    color: #555555;
}


/* =========================================================
   Excerpt
========================================================= */

.idp-help-search-item-excerpt {
    max-width: 850px;

    margin: 8px 0 14px;

    font-size: 14px;
    line-height: 1.75;

    color: #777777;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* =========================================================
   Highlight
========================================================= */

.idp-help-search-item mark {
    padding: 1px 3px;

    border-radius: 3px;

    background: #fff1a8;

    color: inherit;
}


/* =========================================================
   Meta
========================================================= */

.idp-help-search-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    font-size: 12px;
    line-height: 18px;

    color: #aaaaaa;
}

.idp-help-search-item-meta .meta-dot {
    color: #d0d0d0;
}


/* =========================================================
   Arrow
========================================================= */

.idp-help-search-item-arrow {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #aaaaaa;

    transition:
        background var(--help-search-transition),
        color var(--help-search-transition),
        transform var(--help-search-transition);
}

.idp-help-search-item-arrow svg {
    width: 18px;
    height: 18px;
}

.idp-help-search-item:hover
.idp-help-search-item-arrow {
    background: #f0f0f0;

    color: #222222;

    transform: translateX(3px);
}


/* =========================================================
   Pagination
========================================================= */

.idp-help-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 36px;
}

.idp-help-search-pagination .page-numbers {
    min-width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 3px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    line-height: 1;

    color: #666666;

    transition:
        background var(--help-search-transition),
        color var(--help-search-transition);
}

.idp-help-search-pagination a.page-numbers:hover {
    background: #eaecef;

    color: #111111;
}

.idp-help-search-pagination
.page-numbers.current {
    background: #111111;

    color: #ffffff;

    font-weight: 600;
}

.idp-help-search-pagination
.page-numbers.dots {
    color: #aaaaaa;

    background: transparent;
}


/* =========================================================
   Empty
========================================================= */

.idp-help-search-empty {
    padding: 80px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--help-search-border);

    border-radius: var(--help-search-radius);
}


.idp-help-search-empty-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2f3f5;

    color: #888888;
}

.idp-help-search-empty-icon svg {
    width: 34px;
    height: 34px;
}


.idp-help-search-empty h2 {
    margin: 0 0 10px;

    font-size: 22px;
    line-height: 1.4;

    font-weight: 650;

    color: #111111;
}

.idp-help-search-empty p {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #777777;
}

.idp-help-search-empty p strong {
    color: #222222;
}


.idp-help-search-empty-tips {
    max-width: 420px;

    margin: 28px auto 0;

    padding: 18px 20px;

    text-align: left;

    background: #f7f8fa;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.7;

    color: #777777;
}

.idp-help-search-empty-tips span {
    color: #333333;
    font-weight: 600;
}

.idp-help-search-empty-tips ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.idp-help-search-empty-tips li {
    margin: 3px 0;
}


.idp-help-search-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    margin-top: 28px;

    padding: 0 22px;

    border-radius: 9px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background var(--help-search-transition);
}

.idp-help-search-empty-button:hover {
    background: #2b2b2b;
}


/* =========================================================
   Start
========================================================= */

.idp-help-search-start {
    padding: 70px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--help-search-border);

    border-radius: var(--help-search-radius);
}


.idp-help-search-start-label {
    margin-bottom: 10px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.15em;

    color: #aaaaaa;
}


.idp-help-search-start h2 {
    margin: 0;

    font-size: 26px;
    line-height: 1.4;

    font-weight: 650;

    color: #111111;
}


.idp-help-search-start p {
    margin: 12px 0 28px;

    font-size: 14px;
    line-height: 1.7;

    color: #777777;
}


.idp-help-search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

.idp-help-search-suggestions > span {
    margin-right: 5px;

    font-size: 12px;

    color: #aaaaaa;
}


.idp-help-search-suggestions a {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 13px;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    background: #ffffff;

    color: #666666;

    text-decoration: none;

    font-size: 12px;

    transition:
        background var(--help-search-transition),
        color var(--help-search-transition),
        border-color var(--help-search-transition);
}

.idp-help-search-suggestions a:hover {
    border-color: #d4d4d4;

    background: #f7f7f7;

    color: #111111;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 900px) {

    .idp-help-search-container {
        width: min(
            calc(100% - 32px),
            var(--help-search-container)
        );
    }

    .idp-help-search-hero-content {
        padding-top: 44px;
        padding-bottom: 52px;
    }

    .idp-help-search-result-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .idp-help-search-results-section {
        padding-top: 40px;
    }

    .idp-help-search-item {
        padding: 24px;
    }
}


@media (max-width: 700px) {

    .idp-help-search-container {
        width: calc(100% - 24px);
    }


    .idp-help-search-breadcrumb {
        padding-top: 20px;

        font-size: 12px;
    }


    .idp-help-search-hero-content {
        padding-top: 38px;
        padding-bottom: 40px;
    }


    .idp-help-search-eyebrow {
        margin-bottom: 12px;

        font-size: 10px;
    }


    .idp-help-search-hero h1 {
        font-size: 32px;
    }


    .idp-help-search-hero p {
        margin-top: 13px;
        margin-bottom: 24px;

        font-size: 14px;
    }


    .idp-help-search-form {
        min-height: 56px;

        padding: 5px;

        border-radius: 11px;
    }


    .idp-help-search-form-icon {
        flex-basis: 42px;
    }


    .idp-help-search-form-icon svg {
        width: 20px;
        height: 20px;
    }


    .idp-help-search-form input[type="search"] {
        height: 44px;

        padding: 0 6px;

        font-size: 14px;
    }


    .idp-help-search-form button {
        height: 44px;

        padding: 0 17px;

        border-radius: 8px;

        font-size: 13px;
    }


    .idp-help-search-results-section {
        padding: 30px 0 60px;
    }


    .idp-help-search-result-header {
        margin-bottom: 18px;
    }


    .idp-help-search-result-label {
        font-size: 9px;
    }


    .idp-help-search-result-header h2 {
        font-size: 20px;
    }


    .idp-help-search-result-count {
        font-size: 12px;
    }


    .idp-help-search-list {
        border-radius: 12px;
    }


    .idp-help-search-item {
        align-items: flex-start;

        gap: 12px;

        padding: 20px 18px;
    }


    .idp-help-search-item-category {
        margin-bottom: 7px;

        font-size: 10px;
    }


    .idp-help-search-item-title {
        font-size: 16px;
        line-height: 1.5;
    }


    .idp-help-search-item-excerpt {
        margin-top: 7px;
        margin-bottom: 12px;

        font-size: 13px;
        line-height: 1.65;
    }


    .idp-help-search-item-meta {
        font-size: 11px;
    }


    .idp-help-search-item-arrow {
        flex-basis: 28px;

        width: 28px;
        height: 28px;
    }


    .idp-help-search-item-arrow svg {
        width: 16px;
        height: 16px;
    }


    .idp-help-search-empty {
        padding: 60px 20px;
    }


    .idp-help-search-empty h2 {
        font-size: 20px;
    }


    .idp-help-search-empty p {
        font-size: 13px;
    }


    .idp-help-search-start {
        padding: 55px 20px;
    }


    .idp-help-search-start h2 {
        font-size: 22px;
    }


    .idp-help-search-suggestions {
        gap: 7px;
    }


    .idp-help-search-suggestions > span {
        width: 100%;
        margin: 0 0 3px;
    }


    .idp-help-search-pagination {
        margin-top: 28px;
    }


    .idp-help-search-pagination .page-numbers {
        min-width: 34px;
        height: 34px;

        margin: 0 2px;
    }
}


@media (max-width: 380px) {

    .idp-help-search-form button {
        padding: 0 14px;
    }

    .idp-help-search-form-icon {
        flex-basis: 36px;
    }

    .idp-help-search-item {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .idp-help-search-page *,
    .idp-help-search-page *::before,
    .idp-help-search-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}