.nav-page-body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    color: #f6f2f9;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.nav-page-body::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    background: url("/static/images/navigation/figma-pc-background.png") center / cover no-repeat;
    opacity: .14;
    pointer-events: none;
}

.nav-page,
.nav-page * {
    box-sizing: border-box;
}

.nav-page {
    position: relative;
    z-index: 1;
    width: 375px;
    max-width: 100%;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 28px calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

.nav-brand,
.nav-entries,
.nav-banner,
.nav-contact,
.nav-icons,
.nav-footer {
    width: 319px;
    max-width: 100%;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.nav-brand-logo {
    display: block;
    width: 180px;
    height: auto;
}

.nav-brand-tagline {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.nav-brand-highlight {
    color: #ff4b02;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}

.nav-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    height: 64px;
    padding: 8px 16px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.nav-entry:not(.nav-entry--permanent)::before {
    content: "";
    position: absolute;
    right: 52px;
    bottom: -38px;
    width: 130px;
    height: 95px;
    background: radial-gradient(ellipse, rgba(255, 75, 2, .1), transparent 68%);
    pointer-events: none;
}

.nav-entry-name,
.nav-entry-url {
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-entry-name { color: #f6f2f9; }
.nav-entry-url { color: #ff4b02; }

.nav-entry:not(.nav-entry--permanent) .nav-entry-name,
.nav-entry:not(.nav-entry--permanent) .nav-entry-url {
    max-width: calc(100% - 66px);
}

.nav-entry-cta {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border: 1px solid #ff4b02;
    border-radius: 999px;
    background: rgba(255, 74, 74, .08);
    box-shadow: 0 0 6px rgba(246, 136, 4, .1);
    color: #ff4b02;
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
}

.nav-entry-cta img {
    display: block;
    width: 5px;
    height: 4px;
}

.nav-entry--permanent {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 74, 74, .08);
    text-align: center;
}

.nav-entry--permanent .nav-entry-name,
.nav-entry--permanent .nav-entry-url {
    max-width: 100%;
}

.nav-banner {
    position: relative;
    display: block;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    color: #f6f2f9;
    text-decoration: none;
}

.nav-banner-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.nav-banner-text {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.nav-contact {
    color: #ff4b02;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
}

.nav-icons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.nav-icon-item {
    display: flex;
    flex: 0 1 61px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.nav-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background-color .2s ease, transform .2s ease;
}

.nav-icon-img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.nav-icon-img--app { width: 18px; height: 18px; }

.nav-icon-label {
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
}

.nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.nav-footer-copy { width: 100%; }

.nav-page a:focus-visible {
    outline: 2px solid #ff4b02;
    outline-offset: 3px;
}

@media (hover: hover) {
    .nav-entry:hover { background-color: rgba(255, 75, 2, .16); transform: translateY(-2px); }
    .nav-icon-item:hover .nav-icon-circle { background-color: rgba(255, 75, 2, .28); transform: translateY(-2px); }
    .nav-contact:hover { text-decoration: underline; }
}

@media (max-width: 767px) {
    .nav-page-body { background: #5b5859; }
    .nav-page-body::before {
        background-image: url("/static/images/navigation/figma-mobile-background.png");
        opacity: .1;
    }
    .nav-entry { background: rgba(255, 255, 255, .1); }
    .nav-entry--permanent { background: rgba(255, 74, 74, .08); }
}

@media (max-width: 374px) {
    .nav-page { padding-right: 16px; padding-left: 16px; }
    .nav-brand-highlight { font-size: clamp(14px, 4.8vw, 18px); }
    .nav-icons { gap: 0; }
    .nav-icon-label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-entry, .nav-icon-circle { transition: none; }
}
