.tys-sitebar {
    position: sticky;
    inset-block-start: 0;
    z-index: 1100;
    width: 100%;
    color: #192c46;
    background: #fff;
    border-bottom: 1px solid #dae3ee;
    font: 16px/1.45 "Microsoft YaHei", system-ui, sans-serif;
}
.tys-sitebar.tys-sitebar--fixed { position: fixed; inset-inline: 0; }
.tys-primary, .tys-primary * { box-sizing: border-box; }
.tys-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1360px;
    height: 64px;
    padding: 0 24px;
    margin: 0 auto;
}
.tys-primary__brand,
.tys-primary .tys-primary__brand:visited {
    font-size: 24px;
    font-weight: 750;
    color: #165dce;
    text-decoration: none;
    white-space: nowrap;
}
.tys-primary .tys-primary__links { list-style: none; margin: 0; padding: 0; }
.tys-primary .tys-primary__links li { list-style: none; margin: 0; padding: 0; }
.tys-primary .tys-primary__links a {
    display: block;
    color: #263950;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
.tys-primary a:hover, .tys-primary .tys-primary__links a[aria-current] { color: #114faf; text-decoration: underline; text-underline-offset: 5px; }
.tys-primary :is(a,summary):focus-visible { outline: 2px solid #165dce; outline-offset: 3px; }
.tys-primary__links--desktop { display: flex; align-items: center; gap: clamp(10px,1.25vw,23px); }
.tys-primary__links--desktop a { padding: 9px 0; }
.tys-primary__menu {
    display: none; margin: 0; padding: 0; border: 0; border-radius: 0;
    overflow: visible; background: transparent;
}
.tys-primary__menu summary {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 9px 13px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    color: #234264;
    background: #f2f6fb;
    border: 1px solid #dbe5ef;
    border-radius: 6px;
    list-style: none;
}
.tys-primary__menu summary::-webkit-details-marker { display: none; }
.tys-primary .tys-primary__menu summary::after { content: none; }
.tys-primary__icon {
    display: inline-block; width: 15px; height: 12px;
    border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
    background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat;
}
.tys-primary__menu[open] summary { color: #114faf; }
.tys-primary .tys-primary__links--mobile {
    position: absolute; inset: 100% 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 10px 16px; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px);
    overflow-y: auto; overscroll-behavior: contain; background: #fff;
    border: 1px solid #dbe5ef; box-shadow: 0 10px 22px rgba(20,47,78,.12);
}
.tys-primary .tys-primary__links--mobile a { padding: 11px 10px; white-space: normal; }
@media (max-width: 1159px) {
    .tys-primary { padding-inline: 16px; }
    .tys-primary__links--desktop { display: none; }
    .tys-primary__menu { display: block; }
}
@media (max-width: 320px) {
    .tys-primary .tys-primary__links--mobile { grid-template-columns: 1fr; }
}
body.admin-bar .tys-sitebar { inset-block-start: 32px; }
@media (max-width: 782px) { body.admin-bar .tys-sitebar { inset-block-start: 46px; } }
html:has(.tys-primary) { scroll-padding-top: 65px; }
