/* 搜索结果页：沿用公共字体、字号、页头页尾，仅限定本页布局。 */
.search-page [hidden] {
    display: none !important;
}

.search-hero {
    padding: 155rem 0 44rem;
    color: #fff;
    background: #052354;
}

.search-hero.has-banner {
    background-size: cover;
    background-position: center;
    position: relative;
}

.search-hero.has-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 35, 84, 0.72);
}

.search-hero.has-banner .wrap {
    position: relative;
    z-index: 1;
}

.search-eyebrow {
    margin-bottom: 14rem;
    color: #d5dfed;
}

.search-hero h1 {
    line-height: 1.2;
    margin-bottom: 28rem;
}

.search-query-form {
    display: flex;
    align-items: center;
    max-width: 1220rem;
    background: #fff;
    color: #1f2937;
    border: 1px solid #bfbfbf;
}

.search-query-form input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 68rem;
    padding: 0 28rem;
    border: 0;
    outline: none;
    color: #1f2937;
    background: transparent;
    font-family: inherit;
}

.search-query-form input::placeholder {
    color: #667085;
    opacity: 1;
}

.search-query-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16rem;
    align-self: stretch;
    min-width: 145rem;
    padding: 0 24rem;
    color: #fff;
    background: #052354;
    border-left: 1px solid #bfbfbf;
    margin: 5rem;
    cursor: pointer;
}

.search-query-submit svg {
    width: 24rem;
    height: 24rem;
    flex: none;
}

.search-body {
    display: grid;
    grid-template-columns: 235rem minmax(0, 1fr);
    gap: 65rem;
    align-items: start;
    padding-top: 55rem;
    padding-bottom: 120rem;
}

.search-categories {
    position: sticky;
    top: 125rem;
}

.search-categories h2 {
    color: #052354;
    margin-bottom: 26rem;
}

.search-category-list {
    display: flex;
    flex-direction: column;
}

.search-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18rem;
    width: 100%;
    padding: 16rem 18rem;
    text-align: left;
    color: #4c4d51;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.search-category.is-active {
    border-left-color: #aa0f1e;
    color: #fff;
    background: #052354;
    font-weight: 600;
}

.search-category-count {
    color: #667085;
    font-weight: 400;

    min-width: 24rem;
    text-align: right;
}

.search-category.is-active .search-category-count {
    color: #fff;
}

.search-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30rem;
    padding-bottom: 34rem;
    border-bottom: 1px solid #bfbfbf;
    scroll-margin-top: 125rem;
}

.search-query-label {
    margin-bottom: 10rem;
    color: #667085;
}

.search-query-value {
    line-height: 1.35;
    color: #052354;
    overflow-wrap: anywhere;
}

.search-total {
    color: #667085;
    flex-shrink: 0;
    padding-bottom: 3rem;
}

.search-total strong {
    color: #052354;
    font-weight: 600;
}

.search-result-group {
    margin-top: 40rem;
}

.search-group-heading {
    display: flex;
    align-items: baseline;
    gap: 16rem;
    margin-bottom: 26rem;
    color: #052354;
}

.search-group-heading>span {
    color: #667085;
}

.search-result-kind {
    color: #667085;
}

.search-result-description {
    color: #4c4d51;
    line-height: 1.8;
}

.search-result-more {
    display: inline-flex;
    align-items: center;
    gap: 14rem;
    color: #052354;
    line-height: 1.7;

    font-weight: 500;
}

.search-content-item {
    padding: 18rem 0;
    border-bottom: 1px solid #dce1e7;
}

.search-content-item:first-child {
    padding-top: 0;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20rem;
    align-items: center;
    margin-bottom: 16rem;
    color: #667085;
}

.search-result-meta .search-result-kind {
    color: #052354;
    padding-left: 12rem;
    border-left: 2px solid #aa0f1e;
}

.search-content-item .search-result-title {
    line-height: 1.5;
    margin-bottom: 14rem;
    color: #052354;
    font-weight: 600;
}

.search-result-title a {
    color: inherit;
}

.search-content-item .search-result-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16rem;

    max-width: 940rem;
}

.search-reset {
    padding: 12rem 22rem;
    min-height: 44px;
    color: #052354;
    background: #fff;
    border: 1px solid #bfbfbf;
    cursor: pointer;
    font-family: inherit;
}

.search-empty {
    padding: 80rem 20rem;
    text-align: center;
    color: #667085;
}

.search-empty>svg {
    margin-bottom: 24rem;
}

.search-empty h2 {
    color: #052354;
    margin-bottom: 18rem;
}

.search-empty p {
    line-height: 1.8;
    margin-bottom: 26rem;
}

.search-noscript {
    margin-top: 24rem;
    color: #4c4d51;
    line-height: 1.7;
}

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

.search-page .search-body a:focus-visible,
.search-page button:focus-visible {
    outline: 2px solid #aa0f1e;
    outline-offset: 3px;
}

@media (hover: hover) {
    .search-category:not(.is-active):hover {
        color: #052354;
        background: #f1f4f8;
    }

    .search-content-item .search-result-title a:hover,
    .search-result-more:hover {
        color: #005ca7;
    }

    .search-query-submit:hover {
        background: #0c3975;
    }
}

@media (max-width: 1024px) {

    .search-hero {
        padding-top: 150rem;
    }

    .search-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 36rem;
        padding-top: 45rem;
    }

    .search-categories {
        position: static;
    }

    .search-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8rem;
    }

    .search-category {
        width: auto;
        min-height: 44px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 12rem 18rem;
        gap: 12rem;
    }

    .search-category.is-active {
        border-bottom-color: #aa0f1e;
    }

    .search-summary {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 767px) {
    .search-hero {
        padding: 88px 0 28px;
    }

    .search-eyebrow {
        margin-bottom: 14px;
    }

    .search-hero h1 {
        margin-bottom: 24px;
    }

    .search-query-form {
        max-width: none;
    }

    .search-query-form input {
        height: 54px;
        padding: 0 14px;
    }

    .search-query-submit {
        min-width: 80px;
        gap: 8px;
        padding: 0 12px;
    }

    .search-query-submit svg {
        width: 18px;
        height: 18px;
    }

    .search-body {
        padding-top: 28px;
        padding-bottom: 60px;
        gap: 28px;
    }

    .search-categories h2 {
        margin-bottom: 14px;
    }

    .search-category {
        padding: 10px 12px;
    }

    .search-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 24px;
    }

    .search-query-label {
        margin-bottom: 8px;
    }

    .search-result-group {
        margin-top: 28px;
    }

    .search-group-heading {
        margin-bottom: 18px;
        gap: 12px;
    }

    .search-content-item {
        padding: 16px 0;
    }

    .search-result-meta {
        gap: 12px;
        margin-bottom: 10px;
    }

    .search-content-item .search-result-title {
        margin-bottom: 10px;
    }

    .search-content-item .search-result-description {
        margin-bottom: 10px;
    }

    .search-empty {
        padding: 50px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-category {
        transition: none;
    }
}

/* 人员结果复用专业人士列表卡片，仅补充搜索容器内的链接与收缩约束。 */
.search-people-grid.lawyer-grid {
    margin-bottom: 0;
}

.search-person.lawyer-card,
.search-person .card-info {
    min-width: 0;
}

.search-person .card-img a {
    display: block;
    height: 100%;
}

.search-person .card-img img {
    display: block;
}

.search-person .lawyer-name a {
    color: inherit;
}

/* 公共a:hover带important，姓名链接需在深色卡片上明确保持白色。 */
@media (hover: hover) and (min-width: 1025px) {
    .search-person.lawyer-card:hover .lawyer-name a {
        color: #fff !important;
    }
}

/* 搜索页直接沿用公共分页，只调整与结果列表之间的距离。 */
.search-pagination {
    margin-top: 50rem;
}

@media (max-width: 767px) {
    .search-pagination {
        margin-top: 30px;
    }
}

/* 查看详情沿用站内长箭头动效，仅移动箭头，不改变链接占位。 */
.search-result-more>span[aria-hidden="true"] {
    display: inline-block;
    transition: transform .25s ease;
}

@media (hover: hover) {
    .search-result-more:hover>span[aria-hidden="true"] {
        transform: translateX(6px);
    }
}

.search-result-more:focus-visible>span[aria-hidden="true"] {
    transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
    .search-result-more>span[aria-hidden="true"] {
        transition: none;
    }

    .search-result-more:hover>span[aria-hidden="true"],
    .search-result-more:focus-visible>span[aria-hidden="true"] {
        transform: none;
    }
}

/* 非人员结果统一标题/日期行，人员卡片不变。 */
.search-content-item .search-result-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 28rem;
    margin-bottom: 0;
}

.search-content-item .search-result-heading .search-result-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.search-result-heading .search-result-date {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: normal;
    line-height: 1.5;
    color: #667085;
}

@media (max-width: 767px) {
    .search-content-item .search-result-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 0;
    }
}