.smart-search {
    box-sizing: border-box;
    width: min(1200px, calc(100% - 40px));
    margin: 92px auto 100px;
    color: #24384f;
}

.smart-search-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.smart-search-heading {
    margin-bottom: 24px;
}

.smart-search-kicker {
    margin-bottom: 7px;
    color: #39735e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.smart-search-heading h1 {
    color: #153b67;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.smart-search-tool {
    position: relative;
    z-index: 5;
    padding: 28px 30px 8px;
    border: 1px solid #d7e1ec;
    border-top: 3px solid #216db3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 61, 96, 0.08);
}

.smart-search-mode {
    width: fit-content;
    margin-bottom: 12px;
    padding: 3px;
    border: 1px solid #d3dee8;
    border-radius: 5px;
    display: inline-flex;
    gap: 2px;
    background: #f2f6f9;
}

.smart-search-mode label {
    min-width: 108px;
    height: 34px;
    padding: 0 12px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #5a6f83;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.smart-search-mode label:hover {
    color: #1e5f98;
}

.smart-search-mode label.is-selected {
    color: #174e7f;
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 69, 103, 0.12);
}

.smart-search-mode input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.smart-search-mode .iconfont {
    font-size: 14px;
}

.smart-search-ai-mark,
.smart-search-ai-badge {
    border: 1px solid #2f8268;
    border-radius: 3px;
    color: #286f5a;
    background: #edf8f3;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

.smart-search-ai-mark {
    width: 22px;
    height: 20px;
}

.smart-search-bar {
    --smart-search-submit-width: 112px;
    --smart-search-bar-gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--smart-search-submit-width);
    gap: var(--smart-search-bar-gap);
}

.smart-search-input-wrap {
    position: relative;
    min-width: 0;
}

.smart-search-input-wrap input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 50px 0 46px;
    border: 1px solid #bfcddd;
    border-radius: 5px;
    color: #1f3248;
    background: #fbfdff;
    font-size: 15px;
    line-height: 50px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.smart-search-input-wrap input:focus {
    border-color: #2475bd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 117, 189, 0.12);
}

.smart-search-input-wrap input::-webkit-search-cancel-button {
    display: none;
}

.smart-search-input-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #4e7397;
    font-size: 18px;
    pointer-events: none;
}

.smart-search-input-clear {
    position: absolute;
    z-index: 3;
    right: 7px;
    top: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    color: #6e8093;
    background: transparent;
    cursor: pointer;
}

.smart-search-input-clear:hover,
.smart-search-input-clear:focus-visible {
    color: #1f5f99;
    background: #edf4fa;
}

.smart-search-input-clear .iconfont {
    font-size: 15px;
}

.smart-search-submit {
    height: 50px;
    border: 1px solid #1765aa;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #1e70b8;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.smart-search-submit:hover,
.smart-search-submit:focus-visible {
    border-color: #14538d;
    background: #175d9c;
}

.smart-search-submit .iconfont {
    font-size: 16px;
}

.smart-search-suggest {
    position: absolute;
    z-index: 20;
    top: 56px;
    left: 0;
    right: 0;
    max-height: 390px;
    overflow-y: auto;
    border: 1px solid #cbd7e3;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(25, 55, 87, 0.16);
}

.smart-search-suggest-section + .smart-search-suggest-section {
    border-top: 1px solid #e4ebf2;
}

.smart-search-suggest-heading {
    min-height: 34px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64778c;
    background: #f6f9fc;
    font-size: 12px;
    font-weight: 700;
}

.smart-search-suggest-clear {
    border: 0;
    color: #356d9e;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.smart-search-suggest-item {
    box-sizing: border-box;
    width: 100%;
    min-height: 45px;
    padding: 9px 14px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 0;
    border-top: 1px solid #eef2f6;
    color: #263c54;
    background: #fff;
    text-align: left;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}

.smart-search-suggest-item:hover,
.smart-search-suggest-item.is-active {
    color: #155b98;
    background: #f1f7fc;
}

.smart-search-suggest-item .iconfont {
    color: #65819e;
    font-size: 15px;
    text-align: center;
}

.smart-search-suggest-item-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.smart-search-suggest-item-type {
    padding: 1px 6px;
    border: 1px solid #cfdae6;
    border-radius: 3px;
    color: #64788f;
    font-size: 11px;
    white-space: nowrap;
}

.smart-search-types {
    min-width: 0;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.smart-search-types-label {
    padding: 0;
    color: #344f70;
    font-size: 13px;
    font-weight: 700;
}

.smart-search-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-search-type-option {
    min-width: 92px;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid #cedae6;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #435970;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.smart-search-type-option:hover {
    border-color: #70a0cc;
    color: #1d6099;
}

.smart-search-type-option.is-selected {
    border-color: #2474bb;
    color: #164f81;
    background: #edf6fd;
}

.smart-search-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.smart-search-results {
    margin-top: 34px;
}

.smart-search-result-head {
    min-height: 54px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #dbe4ed;
}

.smart-search-result-head h2 {
    color: #1d3958;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.smart-search-ai-panel {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid #b9d7ca;
    border-left: 4px solid #38846b;
    border-radius: 6px;
    color: #29483e;
    background: #f7fbf9;
}

.smart-search-ai-panel.is-degraded {
    border-color: #d8dfe6;
    border-left-color: #718397;
    color: #495d70;
    background: #f7f9fb;
}

.smart-search-ai-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.smart-search-ai-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 26px;
    margin-top: 1px;
    color: #fff;
    background: #347c65;
    line-height: 24px;
}

.smart-search-ai-panel.is-degraded .smart-search-ai-badge {
    border-color: #718397;
    background: #718397;
}

.smart-search-ai-panel-head h3 {
    color: #244f42;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.smart-search-ai-panel.is-degraded h3 {
    color: #40556a;
}

.smart-search-ai-panel-head p {
    margin-top: 2px;
    color: #60776f;
    font-size: 12px;
    line-height: 1.6;
}

.smart-search-ai-intent {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.smart-search-ai-intent span {
    padding: 4px 8px;
    border: 1px solid #c9ddd4;
    border-radius: 3px;
    color: #376858;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
}

.smart-search-ai-hint {
    margin-top: 10px;
    color: #60776f;
    font-size: 12px;
    line-height: 1.65;
}

.smart-search-ai-summary {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #d7e6df;
}

.smart-search-ai-summary-status {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #537166;
    font-size: 12px;
}

.smart-search-ai-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #bed7cc;
    border-top-color: #347c65;
    border-radius: 50%;
    animation: smart-search-spin 800ms linear infinite;
}

.smart-search-ai-summary.is-complete .smart-search-ai-summary-status,
.smart-search-ai-summary.is-failed .smart-search-ai-spinner {
    display: none;
}

.smart-search-ai-summary.is-failed .smart-search-ai-summary-status {
    color: #6d7d8b;
}

.smart-search-ai-summary-text {
    color: #304c43;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.smart-search-ai-sources {
    margin-top: 12px;
    display: grid;
    gap: 7px;
}

.smart-search-ai-source {
    min-width: 0;
    padding-left: 13px;
    position: relative;
    color: #536c63;
    font-size: 12px;
    line-height: 1.6;
}

.smart-search-ai-source::before {
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
    background: #4d9473;
}

.smart-search-ai-source a {
    margin-right: 6px;
    color: #1d679e;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.smart-search-result-list > li.is-ai-ranked .smart-search-result-item {
    border-color: #b8d3c7;
}

@keyframes smart-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.smart-search-result-count {
    margin-top: 3px;
    color: #718094;
    font-size: 13px;
    line-height: 20px;
}

.smart-search-result-count span {
    margin-left: 6px;
    color: #3c6287;
    overflow-wrap: anywhere;
}

.smart-search-sort {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.smart-search-sort a {
    position: relative;
    min-width: 78px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #607286;
    font-size: 13px;
    white-space: nowrap;
}

.smart-search-sort a:hover,
.smart-search-sort a.is-active {
    color: #175f9d;
}

.smart-search-sort a.is-active::after {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 3px;
    content: "";
    background: #2574b9;
}

.smart-search-result-list {
    display: grid;
    gap: 12px;
}

.smart-search-result-item {
    position: relative;
    min-height: 168px;
    padding: 24px 74px 22px 26px;
    border: 1px solid #dbe4ec;
    border-radius: 6px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.smart-search-result-item:hover {
    border-color: #91b4d4;
    box-shadow: 0 8px 22px rgba(31, 70, 109, 0.08);
    transform: translateY(-1px);
}

.smart-search-result-meta {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    color: #7a8795;
    font-size: 12px;
    line-height: 22px;
}

.smart-search-content-type {
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid #bfd4e8;
    border-radius: 3px;
    color: #2a6599;
    background: #f1f7fc;
    line-height: 20px;
}

.smart-search-content-type-exhibition {
    border-color: #c5d8c9;
    color: #3d7250;
    background: #f2f8f3;
}

.smart-search-content-type-opportunity {
    border-color: #e2d2ac;
    color: #795f26;
    background: #fcf8ef;
}

.smart-search-result-item h3 {
    max-width: 900px;
    color: #1f3c5c;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.smart-search-result-item h3 a {
    display: inline;
}

.smart-search-result-item h3 a:hover {
    color: #1767aa;
}

.smart-search-snippet {
    max-width: 960px;
    margin-top: 8px;
    color: #5e6f81;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.smart-search-result-item .project-tag-list-card {
    min-height: 0;
    margin: 12px 0 0;
}

.smart-search-reasons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smart-search-reasons span {
    position: relative;
    padding-left: 11px;
    color: #54715f;
    font-size: 12px;
    line-height: 20px;
}

.smart-search-reasons span::before {
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: #4d9473;
}

.smart-search-result-link {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 38px;
    height: 38px;
    border: 1px solid #c8d7e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3e719e;
    background: #fff;
    transform: translateY(-50%);
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.smart-search-result-link:hover {
    border-color: #2673b5;
    color: #fff;
    background: #2673b5;
}

.smart-search-result-link .iconfont {
    font-size: 16px;
}

.smart-search-empty {
    min-height: 280px;
    padding: 52px 24px;
    border: 1px solid #dbe4ec;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7d90;
    background: #fff;
    text-align: center;
}

.smart-search-empty > .iconfont {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid #c9d8e6;
    border-radius: 50%;
    color: #5d83a5;
    background: #f4f8fb;
    font-size: 23px;
    line-height: 54px;
}

.smart-search-empty h3 {
    color: #314b66;
    font-size: 18px;
    font-weight: 700;
}

.smart-search-empty p {
    margin-top: 8px;
    font-size: 13px;
}

.smart-search-empty a {
    margin-top: 20px;
    padding: 8px 18px;
    border: 1px solid #2a73b2;
    border-radius: 4px;
    color: #2267a2;
    font-size: 13px;
}

.smart-search-empty a:hover {
    color: #fff;
    background: #246ca9;
}

.smart-search-pagination {
    padding-top: 28px;
}

@media (max-width: 1024px) {
    .smart-search {
        width: calc(100% - 30px);
        margin-top: 76px;
        margin-bottom: 90px;
    }

    .smart-search-tool {
        padding: 22px 20px 6px;
    }
}

@media (max-width: 750px) {
    .smart-search-page .footer-right {
        display: none;
    }

    .smart-search {
        width: calc(100% - 24px);
        margin-top: 58px;
        margin-bottom: 92px;
    }

    .smart-search-heading {
        margin-bottom: 16px;
    }

    .smart-search-heading h1 {
        font-size: 25px;
    }

    .smart-search-tool {
        padding: 16px 14px 4px;
        border-radius: 5px;
    }

    .smart-search-mode {
        box-sizing: border-box;
        width: 100%;
    }

    .smart-search-mode label {
        min-width: 0;
        flex: 1;
        padding: 0 8px;
    }

    .smart-search-bar {
        --smart-search-submit-width: 82px;
        --smart-search-bar-gap: 7px;
    }

    .smart-search-input-wrap input {
        height: 46px;
        padding-right: 42px;
        padding-left: 40px;
        font-size: 13px;
        line-height: 46px;
    }

    .smart-search-input-icon {
        left: 14px;
    }

    .smart-search-input-clear {
        right: 5px;
        top: 5px;
    }

    .smart-search-submit {
        height: 46px;
        gap: 5px;
        font-size: 13px;
    }

    .smart-search-suggest {
        top: 51px;
        right: calc(0px - var(--smart-search-submit-width) - var(--smart-search-bar-gap));
        max-height: 330px;
    }

    .smart-search-suggest-item {
        grid-template-columns: 21px minmax(0, 1fr);
    }

    .smart-search-suggest-item-type {
        display: none;
    }

    .smart-search-types {
        margin-top: 16px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .smart-search-type-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .smart-search-type-option {
        min-width: 0;
        padding: 4px 5px;
        font-size: 12px;
    }

    .smart-search-results {
        margin-top: 26px;
    }

    .smart-search-ai-panel {
        padding: 15px 14px;
        border-radius: 5px;
    }

    .smart-search-ai-panel-head {
        gap: 9px;
    }

    .smart-search-ai-panel-head h3 {
        font-size: 15px;
    }

    .smart-search-result-head {
        min-height: 0;
        padding-bottom: 0;
        display: block;
    }

    .smart-search-result-head h2 {
        font-size: 19px;
    }

    .smart-search-sort {
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
    }

    .smart-search-sort a {
        flex: 1 0 auto;
        min-width: 74px;
        height: 38px;
    }

    .smart-search-result-item {
        min-height: 0;
        padding: 18px 18px 58px;
    }

    .smart-search-result-item h3 {
        font-size: 16px;
    }

    .smart-search-snippet {
        font-size: 13px;
        line-height: 1.65;
    }

    .smart-search-result-link {
        right: 17px;
        top: auto;
        bottom: 14px;
        width: 32px;
        height: 32px;
        transform: none;
    }

    .smart-search-empty {
        min-height: 230px;
        padding: 38px 18px;
    }
}
