.structure-search-shell,
.structure-results-wrap {
    box-sizing: border-box;
}

/* Match the site's indigo (#3b3f77) and coral (#ee5253) theme. */

.structure-search-shell {
    width: 1200px;
    max-width: calc(100% - 32px);
    margin: 28px auto 42px;
}

.structure-search-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 24px 28px;
    border: 1px solid #e0e0e8;
    border-radius: 5px;
    background:
        linear-gradient(115deg, rgba(59, 63, 119, .07), rgba(255, 255, 255, .98)),
        repeating-linear-gradient(60deg, transparent 0, transparent 18px, rgba(238, 82, 83, .04) 19px);
}

.structure-search-intro:after {
    position: absolute;
    right: -42px;
    bottom: -62px;
    width: 190px;
    height: 190px;
    border: 24px solid rgba(238, 82, 83, .09);
    border-radius: 50%;
    content: "";
}

.structure-kicker {
    display: block;
    margin-bottom: 7px;
    color: #ee5253;
    font: bold 12px/1.2 Georgia, "Times New Roman", serif;
    letter-spacing: 2px;
}

.structure-search-intro h1 {
    margin: 0;
    color: #3b3f77;
    font: bold 28px/1.35 Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.structure-search-intro p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 10px 0 0;
    color: #5f606b;
    font-size: 14px;
    line-height: 1.8;
}

.structure-editor-card {
    padding: 14px;
    border: 1px solid #dedee6;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(59, 63, 119, .1);
}

.structure-editor-card #editor {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 500px;
    margin: 0;
    padding: 0;
}

.structure-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.structure-actions-note {
    margin: 0;
    color: #747580;
    font-size: 13px;
    line-height: 1.6;
}

.structure-button-group {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.structure-primary-button,
.structure-secondary-button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 108px;
    padding: 10px 22px;
    border-radius: 3px;
    cursor: pointer;
    font: bold 14px/1.4 "Microsoft YaHei", sans-serif;
    text-align: center;
    text-decoration: none;
}

.structure-primary-button {
    border: 1px solid #3b3f77;
    color: #fff;
    background: #3b3f77;
    box-shadow: 0 3px 8px rgba(59, 63, 119, .24);
}

.structure-primary-button:hover {
    border-color: #ee5253;
    background: #ee5253;
}

.structure-primary-button:disabled {
    border-color: #89958e;
    cursor: wait;
    background: #89958e;
    box-shadow: none;
}

.structure-secondary-button {
    border: 1px solid #ee5253;
    color: #ee5253;
    background: #fff;
}

.structure-secondary-button:hover {
    border-color: #ee5253;
    color: #fff;
    background: #ee5253;
}

.structure-form-error {
    display: none;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-left: 4px solid #ee5253;
    color: #3b3f77;
    background: rgba(238, 82, 83, .08);
    font-size: 14px;
}

.structure-results-wrap {
    padding-bottom: 36px;
}

.structure-query-card {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid #e0e0e8;
    background: #fff;
}

.structure-query-stat {
    display: flex;
    flex: 0 0 130px;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #e2e2e9;
}

.structure-query-stat strong {
    color: #ee5253;
    font: bold 32px/1 Georgia, "Times New Roman", serif;
}

.structure-query-stat span {
    margin-top: 7px;
    color: #686974;
    font-size: 13px;
}

.structure-query-details {
    min-width: 0;
}

.structure-query-details p {
    margin: 3px 0 8px;
    color: #555663;
    line-height: 1.6;
}

.structure-query-details .structure-query-redraw {
    margin-top: 10px;
    margin-bottom: 0;
}

.structure-query-details code,
.structure-message code {
    overflow-wrap: anywhere;
    color: #3b3f77;
    font-family: Consolas, "Courier New", monospace;
}

.structure-message {
    margin: 12px 0;
    padding: 12px 15px;
    border-left: 4px solid #3b3f77;
    color: #3b3f77;
    background: rgba(59, 63, 119, .06);
    font-size: 14px;
    line-height: 1.7;
}

.structure-message p {
    margin: 6px 0;
}

.structure-message-error {
    border-left-color: #ee5253;
    color: #3b3f77;
    background: rgba(238, 82, 83, .08);
}

.structure-message-warning {
    border-left-color: #ee5253;
    color: #3b3f77;
    background: rgba(238, 82, 83, .07);
}

.structure-message-note {
    border-left-color: #3b3f77;
    color: #3b3f77;
    background: rgba(59, 63, 119, .06);
}

.structure-result-list {
    margin-top: 16px;
}

.structure-result-list .chinfoh2 a {
    color: #3b3f77;
}

.structure-result-list .chinfoh2 a:hover {
    color: #ee5253;
}

.structure-result-list .productlist {
    border-bottom-color: #e3e3ea;
}

.structure-empty-result {
    padding: 28px 22px !important;
    color: #62636e;
    text-align: center;
}

.structure-result-item-hidden {
    display: none !important;
}

.structure-pagination {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 4px;
    padding: 14px 16px;
    border: 1px solid #e0e0e8;
    border-radius: 3px;
    color: #5c5d68;
    background: rgba(59, 63, 119, .035);
    font-size: 13px;
}

.structure-pagination-summary {
    flex: 0 0 auto;
}

.structure-pagination-summary strong {
    color: #ee5253;
}

.structure-page-size-label,
.structure-page-jump-label {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    white-space: nowrap;
}

.structure-pagination select,
.structure-page-buttons button {
    box-sizing: border-box;
    height: 32px;
    border: 1px solid #c4c4d2;
    border-radius: 3px;
    color: #3b3f77;
    background: #fff;
    font: 13px/30px "Microsoft YaHei", sans-serif;
}

.structure-pagination select {
    min-width: 74px;
    padding: 0 8px;
}

.structure-page-buttons,
.structure-page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.structure-page-buttons {
    flex: 1 1 auto;
    justify-content: center;
}

.structure-page-buttons button {
    min-width: 36px;
    padding: 0 10px;
    cursor: pointer;
}

.structure-page-buttons button:hover:not(:disabled) {
    border-color: #ee5253;
    color: #ee5253;
    background: rgba(238, 82, 83, .06);
}

.structure-page-buttons button.is-current {
    border-color: #3b3f77;
    color: #fff;
    background: #3b3f77;
}

.structure-page-buttons button:disabled {
    cursor: default;
    opacity: .55;
}

.structure-page-buttons button.is-current:disabled {
    opacity: 1;
}

.structure-page-ellipsis {
    min-width: 20px;
    color: #858691;
    text-align: center;
}

@media (max-width: 700px) {
    .structure-search-shell {
        max-width: calc(100% - 20px);
        margin-top: 14px;
    }

    .structure-search-intro {
        padding: 20px;
    }

    .structure-search-intro h1 {
        font-size: 23px;
    }

    .structure-editor-card {
        padding: 7px;
        overflow-x: auto;
    }

    .structure-editor-card #editor {
        min-width: 620px;
        min-height: 420px;
    }

    .structure-actions,
    .structure-query-card {
        align-items: stretch;
        flex-direction: column;
    }

    .structure-button-group {
        width: 100%;
    }

    .structure-primary-button,
    .structure-secondary-button {
        flex: 1 1 50%;
    }

    .structure-query-stat {
        flex-basis: auto;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid #e2e2e9;
    }

    .structure-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .structure-pagination-summary,
    .structure-page-size-label,
    .structure-page-jump-label {
        justify-content: center;
    }

    .structure-page-buttons {
        flex-wrap: wrap;
    }

    .structure-page-buttons > button {
        flex: 1 1 auto;
    }
}
