:root {
    --mzy-text: #1f2533;
    --mzy-muted: #667085;
    --mzy-soft: #f6f8fb;
    --mzy-line: rgba(33, 41, 61, 0.08);
    --mzy-orange: #ff6a00;
    --mzy-red: #ff365f;
    --wrap-width: min(1320px, calc(100vw - 48px));
    --font-sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.wrap {
    width: var(--wrap-width);
    margin: 0 auto;
}

.site-shell {
    overflow: clip;
}

.top-activity-banner {
    position: relative;
    z-index: 31;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(52, 94, 169, 0.06);
}

.top-activity-banner a {
    display: block;
    width: 100%;
}

.top-activity-banner img {
    display: block;
    width: 100%;
    min-width: 1200px;
    max-width: none;
    height: auto;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(20, 31, 51, 0.08);
    backdrop-filter: blur(12px);
    transition: box-shadow .24s ease, background .24s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 26px rgba(36, 48, 74, 0.08);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    width: 100%;
    max-width: none;
    min-height: 74px;
    padding: 0 28px 0 42px;
    transition: min-height .24s ease;
}

.site-header.is-scrolled .header-inner {
    min-height: 65px;
}

.site-header .header-primary {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 300px;
}

.site-header .brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 176px;
    height: 54px;
    overflow: visible;
}

.site-header .brand-logo img {
    display: block;
    width: auto;
    height: 50px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
    image-rendering: auto;
}

.site-header .brand-copy {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-header .brand-copy em {
    display: inline-block;
    max-width: 120px;
    padding-left: 14px;
    border-left: 1px solid rgba(33, 41, 61, 0.14);
    color: #343b4d;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .04em;
}

.site-header .site-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-header .site-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-header .site-nav > a,
.site-header .site-nav > .site-nav-item > .site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 74px;
    padding: 0;
    border-radius: 0;
    color: var(--mzy-text);
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header .site-nav > a::after,
.site-header .site-nav > .site-nav-item > .site-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5a66 0%, var(--mzy-red) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.site-header .site-nav-item-has-submenu > .site-nav-link {
    gap: 8px;
    padding-right: 2px;
}

.site-header .site-nav-link-label {
    display: inline-flex;
    align-items: center;
}

.site-header .site-nav-link-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 1px;
    opacity: 0.74;
    transition: transform .2s ease, opacity .2s ease;
}

.site-header .site-nav-link-caret::before {
    content: "";
    width: 10px;
    height: 6px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-header .site-nav > a:hover,
.site-header .site-nav > .site-nav-item:hover > .site-nav-link,
.site-header .site-nav > .site-nav-item:focus-within > .site-nav-link,
.site-header .site-nav > a[aria-current="page"],
.site-header .site-nav > .site-nav-item > .site-nav-link[aria-current="page"] {
    color: var(--mzy-red);
    background: transparent;
}

.site-header .site-nav > a[aria-current="page"]::after,
.site-header .site-nav > .site-nav-item > .site-nav-link[aria-current="page"]::after,
.site-header .site-nav > a:hover::after,
.site-header .site-nav > .site-nav-item:hover > .site-nav-link::after,
.site-header .site-nav > .site-nav-item:focus-within > .site-nav-link::after {
    transform: scaleX(1);
}

.site-header .site-nav-item-has-submenu:hover .site-nav-link-caret,
.site-header .site-nav-item-has-submenu:focus-within .site-nav-link-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.site-header .site-nav-submenu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    min-width: 236px;
    padding: 18px 12px 12px;
    border: 1px solid rgba(71, 94, 150, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(41, 54, 89, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.site-header .site-nav-submenu::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
}

.site-header .site-nav-item-has-submenu:hover .site-nav-submenu,
.site-header .site-nav-item-has-submenu:focus-within .site-nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-header .site-nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #5b667d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-header .site-nav-submenu a::after,
.site-header .site-nav-submenu a::before {
    display: none;
}

.site-header .site-nav-submenu a:hover,
.site-header .site-nav-submenu a:focus-visible,
.site-header .site-nav-submenu a.active,
.site-header .site-nav-submenu a[aria-current="page"] {
    color: #ff5a3d;
    background: rgba(255, 100, 53, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 100, 53, 0.12);
}

.site-header .site-nav-submenu a:active {
    transform: translateY(1px);
}

.site-header .header-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-header .header-actions.is-user-ready {
    justify-content: flex-end;
    margin-left: auto;
}

.site-header .header-actions::before {
    display: none;
}

.site-header .header-actions.is-user-checking .login-link,
.site-header .header-actions.is-user-checking .register-btn {
    visibility: hidden;
}

.site-header .header-actions-placeholder {
    position: relative;
    display: inline-flex;
    width: 136px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(239, 243, 249, 0.86), rgba(248, 250, 252, 0.98), rgba(239, 243, 249, 0.86));
    box-shadow: inset 0 0 0 1px rgba(33, 41, 61, 0.06);
}

.site-header .header-actions-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: mzyHeaderLoading 1.4s ease-in-out infinite;
}

.site-header .header-actions.is-user-ready .header-actions-placeholder {
    display: none;
}

@keyframes mzyHeaderLoading {
    100% {
        transform: translateX(100%);
    }
}

.site-header .login-link,
.site-header .register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-header .login-link {
    color: #333846;
    background: transparent;
}

.site-header .login-link:hover {
    color: var(--mzy-orange);
    background: rgba(255, 106, 0, 0.08);
}

.site-header .register-btn {
    min-width: 100px;
    color: #fff;
    background: linear-gradient(135deg, #ff8b2d 0%, #ff5a1f 100%);
    box-shadow: 0 10px 22px rgba(255, 106, 0, 0.22);
}

.site-header .register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 106, 0, 0.28);
}

.site-header .header-user-state {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 44px;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.site-header .user-center-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 184px;
    min-height: 44px;
    padding: 5px 13px 5px 5px;
    border: 1px solid var(--mzy-line);
    border-radius: 16px;
    color: #232936;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(32, 40, 57, 0.06);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-header .user-center-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 106, 0, 0.22);
    background: linear-gradient(180deg, #fff 0%, #fff8f3 100%);
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.12);
}

.site-header .user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a3d 0%, #ff5a1f 100%);
    box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(255, 106, 0, 0.18);
}

.site-header .user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header .user-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.08;
}

.site-header .user-label {
    display: block;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
}

.site-header .user-name {
    display: block;
    max-width: 108px;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-header .user-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--mzy-line);
    border-radius: 14px;
    color: var(--mzy-muted);
    background: rgba(248, 250, 252, 0.86);
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.site-header .user-logout-link:hover {
    transform: translateY(-1px);
    color: #ff5a1f;
    border-color: rgba(255, 90, 31, 0.18);
    background: #fff3eb;
}

.site-header .menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(57, 97, 170, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
}

.site-header .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--mzy-text);
}

.site-footer {
    position: relative;
    margin-top: 86px;
    overflow: hidden;
    color: #d7deea;
    background: #1d2431;
}

.site-footer::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.site-footer a {
    color: rgba(233, 238, 248, 0.82);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer a:hover {
    color: #ff7a1a;
}

.footer-simple {
    display: grid;
    grid-template-columns: 1.15fr .78fr .82fr .9fr 1.25fr;
    gap: 34px;
    align-items: start;
}

.footer-simple-brand {
    min-width: 0;
}

.footer-simple .footer-logo {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 54px;
    padding: 0;
    overflow: hidden;
}

.footer-simple .footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.footer-simple-brand p {
    margin: 12px 0 0;
    color: rgba(233, 238, 248, 0.72);
    font-size: 14px;
    font-weight: 700;
}

.footer-simple h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.footer-simple-links {
    display: grid;
    gap: 10px;
}

.footer-simple-links a,
.footer-simple-contact p {
    margin: 0;
    color: rgba(233, 238, 248, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.footer-simple-links a:hover {
    transform: translateX(3px);
}

.footer-simple-contact strong {
    color: #fff;
}

.footer-simple-qr {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 34px;
}

.footer-qr-mini {
    min-width: 0;
    width: 132px;
    padding: 0;
    text-align: center;
}

.footer-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.footer-qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.footer-qr-mini p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.72;
    text-align: center;
}

.footer-qr-mini span,
.footer-qr-mini strong {
    display: block;
}

.footer-qr-mini strong {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(233, 238, 248, 0.58);
    font-size: 13px;
}

.site-footer .footer-bottom p {
    margin: 0;
}

.footer-record-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    :root {
        --wrap-width: min(100vw - 32px, 1180px);
    }

    .site-header .brand-copy,
    .site-header .site-nav {
        display: none;
    }

    .site-header .menu-toggle {
        display: inline-flex;
    }

    .site-header .site-nav.is-open {
        display: flex;
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        z-index: 79;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        padding: 16px;
        border: 1px solid rgba(87, 117, 177, 0.1);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 16px 32px rgba(43, 57, 96, 0.12);
    }

    .site-header .site-nav.is-open .site-nav-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .site-nav.is-open > a,
    .site-header .site-nav.is-open > .site-nav-item > .site-nav-link {
        width: 100%;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 12px;
    }

    .site-header .site-nav.is-open > a::after,
    .site-header .site-nav.is-open > .site-nav-item > .site-nav-link::after {
        right: 10px;
        bottom: 5px;
        left: 10px;
    }

    .site-header .site-nav.is-open .site-nav-submenu {
        position: static;
        min-width: 0;
        margin-top: 4px;
        padding: 4px 0 0 18px;
        grid-template-columns: 1fr;
        gap: 4px;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .site-header .site-nav.is-open .site-nav-submenu::before {
        display: none;
    }

    .site-header .site-nav.is-open .site-nav-submenu a {
        min-height: 36px;
        padding: 0 10px;
        border-radius: 10px;
        color: #6a7388;
        background: transparent;
        font-size: 13px;
    }

    body.site-nav-open {
        overflow: hidden;
    }

    .top-activity-banner img {
        min-width: 0;
    }

    .footer-simple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-simple-qr {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    :root {
        --wrap-width: calc(100vw - 24px);
    }

    .top-activity-banner {
        display: none;
    }

    .site-header .header-inner {
        min-height: 72px;
        padding: 0 12px;
        gap: 12px;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand-logo {
        width: 146px;
        height: 48px;
    }

    .site-header .header-actions {
        display: inline-flex;
        gap: 8px;
        margin-left: auto;
    }

    .site-header .login-link {
        display: none;
    }

    .site-header .register-btn {
        min-width: 86px;
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        font-size: 14px;
    }

    .site-header .header-actions-placeholder {
        width: 88px;
        height: 38px;
    }

    .site-header .header-user-state {
        height: 40px;
        gap: 6px;
    }

    .site-header .user-center-link {
        max-width: none;
        min-height: 40px;
        padding: 3px;
        border-radius: 14px;
    }

    .site-header .user-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .site-header .user-meta,
    .site-header .user-logout-link {
        display: none;
    }

    .site-footer {
        margin-top: 58px;
        padding-top: 38px;
    }

    .footer-simple {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-simple-qr {
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-record-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .site-header .register-btn {
        display: none;
    }

    .footer-simple-qr {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    html,
    body {
        overflow-x: hidden;
    }

    .site-header .header-inner {
        position: relative;
        width: 100%;
        min-height: 62px;
        padding: 0 64px 0 12px;
        gap: 8px;
    }

    .site-header .header-primary {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .brand {
        min-width: 0;
        gap: 8px;
    }

    .site-header .brand-logo {
        width: 146px;
        height: 48px;
    }

    .site-header .header-actions {
        position: absolute;
        top: 50%;
        right: 12px;
        display: inline-flex;
        flex: 0 0 auto;
        gap: 6px;
        margin-left: 0;
        transform: translateY(-50%);
    }

    .site-header .register-btn {
        display: none;
    }

    .site-header .menu-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(57, 97, 170, 0.16);
    }

    .site-header .site-nav.is-open {
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
    }
}

@media (max-width: 1180px) {
    .top-activity-banner img {
        min-width: 0 !important;
        width: 100%;
        height: auto;
    }

    .site-shell {
        overflow-x: hidden;
    }

    .site-header .header-actions {
        position: fixed !important;
        top: 11px !important;
        right: 12px !important;
        z-index: 80;
        width: 42px;
        height: 42px;
        transform: none !important;
    }

    .site-header .login-link,
    .site-header .register-btn,
    .site-header .header-user-state,
    .site-header .header-actions-placeholder {
        display: none !important;
    }

    .site-header .menu-toggle {
        position: relative;
        z-index: 81;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 42px;
        height: 42px;
        padding: 0;
        box-shadow: 0 10px 24px rgba(25, 64, 132, 0.12);
    }

    .site-header .menu-toggle span {
        background: #10213f;
    }
}

@media (max-width: 540px) {
    .site-header .header-actions {
        right: 12px !important;
        left: auto !important;
    }
}

@media (max-width: 1180px) {
    .site-header .header-actions {
        position: fixed !important;
        top: 10px !important;
        right: 14px !important;
        left: auto !important;
        z-index: 80;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        height: 42px;
        gap: 6px;
        transform: none !important;
    }

    .site-header .header-actions-placeholder {
        display: none !important;
    }

    .site-header .login-link,
    .site-header .register-btn {
        display: inline-flex !important;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 0 11px;
        border-radius: 999px;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .site-header .header-user-state {
        display: inline-flex !important;
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .site-header .user-center-link {
        width: 42px;
        min-height: 42px;
        padding: 3px;
        border-radius: 14px;
    }

    .site-header .user-avatar {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .site-header .user-meta,
    .site-header .user-logout-link {
        display: none !important;
    }

    .site-header .menu-toggle {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 540px) {
    .site-header .header-actions {
        right: 12px !important;
        left: auto !important;
        gap: 4px;
    }

    .site-header .header-actions:has(.header-user-state) {
        right: 12px !important;
        left: auto !important;
    }

    .site-header .login-link,
    .site-header .register-btn {
        height: 34px;
        min-height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .site-header .menu-toggle {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
}

@media (max-width: 1180px) {
    .site-header {
        top: 0;
        padding-top: env(safe-area-inset-top);
    }

    .site-header .site-nav.is-open {
        top: calc(62px + env(safe-area-inset-top));
        max-height: calc(100dvh - 78px - env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }

    .site-header .site-nav.is-open > a,
    .site-header .site-nav.is-open > .site-nav-item > .site-nav-link {
        min-height: 44px;
        font-size: 15px;
        line-height: 1.35;
    }

    .site-header .site-nav.is-open .site-nav-submenu a {
        min-height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 540px) {
    .site-header .header-inner {
        padding-right: 166px;
    }

    .site-header .brand-logo {
        width: 126px;
        height: 42px;
    }

    .site-header .brand-logo img {
        height: 40px;
    }

    .site-header .login-link,
    .site-header .register-btn {
        display: inline-flex !important;
        height: 34px;
        min-height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .site-header .menu-toggle {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 390px) {
    .site-header .header-inner {
        padding-right: 152px;
    }

    .site-header .brand-logo {
        width: 116px;
    }

    .site-header .login-link,
    .site-header .register-btn {
        padding: 0 7px;
    }
}
