.catalog-mast-width {
    width: 90vw;
    margin-inline: auto;
}

.catalog-notice, .catalog-mast, .catalog-topics {
    color: #101010;
    font-family: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.catalog-notice {
    background: #f1f1f1;
}

.catalog-notice__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 42px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .075em;
}

.catalog-notice__region {
    display: inline-grid;
    width: 19px;
    height: 19px;
    margin-left: 7px;
    place-items: center;
    border-radius: 50%;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1;
}

.catalog-notice__region {
    background: #b0202a;
    color: #ffe678;
}

.catalog-mast {
    position: relative;
    z-index: 12;
    background: white;
}

.catalog-mast__bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 128px;
}

.catalog-mast__group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.catalog-mast__group--left {
    display: grid;
    grid-template-columns: 16px 1.14fr 1.06fr .66fr .55fr;
    column-gap: clamp(10px, 1.5vw, 22px);
    padding-right: 18px;
}
.catalog-mast__group--right { padding-left: 28px; }
.catalog-mast__mobile-shortcut { display: none; }

.catalog-mast__group a, .catalog-topics a {
    position: relative;
    color: inherit;
}

.catalog-mast__current::before {
    content: "";
    position: absolute;
    top: calc(.7em - 57px);
    inset-inline: 0;
    height: 3px;
    background: currentColor;
}

.catalog-mast__group a:hover,
.catalog-mast__drawer a:hover, .catalog-topics a:hover {
    text-decoration: underline;
    text-underline-offset: .32em;
}

.catalog-mast__wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 292px;
    color: #090909;
    white-space: nowrap;
}

.catalog-mast__wordmark > span {
    font: bold 70px/.86 Georgia, "Times New Roman", serif;
    letter-spacing: -.045em;
}

.catalog-mast__wordmark > small {
    font: 600 19px/1.08 "Songti SC", SimSun, serif;
    letter-spacing: .03em;
}

.catalog-mast__toggle {
    display: none;
    width: 21px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.js .catalog-mast__toggle { display: inline-grid; align-content: center; gap: 4px; }
.catalog-mast__toggle span { width: 15px; height: 2px; background: currentColor; }
.catalog-mast__toggle span:nth-child(2) { width: 11px; }
.catalog-mast__toggle span:nth-child(3) { width: 8px; }

.catalog-mast__browse {
    position: relative;
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.catalog-mast__browse::after {
    position: absolute;
    right: -5px;
    bottom: -2px;
    width: 6px;
    height: 1px;
    background: currentColor;
    transform: rotate(44deg);
    content: "";
}

.catalog-mast__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: min(320px, 100%);
    max-height: 68vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 22px;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / .1);
}

.catalog-mast__drawer.is-open { display: grid; }
.catalog-mast__drawer a { padding: 9px 0; border-bottom: 1px solid #efefef; font-size: 15px; }
.catalog-mast__drawer a:last-child { border-bottom: 0; }

.catalog-topics {
    position: relative;
    z-index: 8;
    height: 78px;
    pointer-events: none;
}

.catalog-topics__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    border-top: 3px solid #f1f1f1;
}

.catalog-topics a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--topic-width);
    min-height: 75px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    pointer-events: auto;
}

.catalog-topics a:nth-of-type(1) { --topic-width: 192px; --compact-width: 106px; }
.catalog-topics a:nth-of-type(2) { --topic-width: 191px; --compact-width: 105px; }
.catalog-topics a:nth-of-type(3) { --topic-width: 194px; --compact-width: 114px; }
.catalog-topics a:nth-of-type(4) { --topic-width: 195px; --compact-width: 116px; }
.catalog-topics a:nth-of-type(5) { --topic-width: 229px; --compact-width: 141px; }
.catalog-topics a:nth-of-type(6) { --topic-width: 221px; --compact-width: 125px; }
.catalog-topics a:nth-of-type(7) { --topic-width: 138px; --compact-width: 75px; }
.catalog-topics a:nth-of-type(8) { --topic-width: 136px; --compact-width: 73px; }
.catalog-topics a:nth-of-type(9) { --topic-width: 129px; --compact-width: 65px; }

.catalog-topics a:nth-of-type(7)::after {
    position: absolute;
    inset: -3px 30px auto;
    height: 2px;
    background: currentColor;
    content: "";
}

@media (max-width: 1279px) {
    .catalog-notice { display: none; }
    .catalog-mast__bar { height: 117px; }
    .catalog-mast__group--left > a, .catalog-mast__group--right > a { display: none; }
    .catalog-mast__group--right > .catalog-mast__mobile-shortcut {
        display: inline-grid;
        width: 32px;
        height: 40px;
        margin-left: auto;
        place-items: center;
    }
    .catalog-mast__mobile-shortcut i {
        width: 13px;
        height: 18px;
        background: #111;
        clip-path: polygon(22% 0, 78% 0, 72% 11%, 78% 39%, 94% 49%, 94% 54%, 56% 54%, 50% 100%, 44% 54%, 6% 54%, 6% 49%, 22% 39%, 28% 11%);
    }
    .catalog-mast__wordmark { width: 160px; gap: 5px; transform: translateY(-4px); }
    .catalog-mast__wordmark > span { font-size: 41px; }
    .catalog-mast__wordmark > small { font-size: 11px; }
    .catalog-topics a { flex-basis: calc(var(--compact-width) + 24px); min-height: 56px; font-size: 12px; }
    .catalog-topics a:nth-of-type(7)::after { inset-inline: 16px; }
}

@media (max-width: 767px) {
    .catalog-mast { margin-top: 12px; }
    .catalog-mast__bar { height: 72px; }
    .catalog-mast__wordmark { width: 150px; transform: translateY(-10px); }
    .catalog-mast__wordmark > span { font-size: 38px; }
    .catalog-mast__wordmark > small { font-size: 10px; }
    .catalog-mast__group { transform: translateY(-5px); }
    .catalog-topics { height: auto; }
    .catalog-topics__links { border: 0; }
    .catalog-topics a { flex-basis: var(--compact-width); min-height: 32.5px; font-size: 12px; }
    .catalog-topics a:nth-of-type(7)::after { display: none; }
}
