.navbar {
    position: fixed;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(32, 32, 32, 0.6);
    border-radius: 100px;
    top: 20px;
    left: 164px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar {
    width: 1400px;
    margin: 0 auto;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
    .navbar {
        width: 100%;
    }
}

.logo {
    position: relative;
    width: 107.2px;
    height: 48px;
    left: 16px;
    align-items: center;
}

.logo-head {
    position: absolute;
    gap: 0px;
    opacity: 1;
    filter: brightness(0) invert(99%) sepia(1%) saturate(207%) hue-rotate(37deg) brightness(116%) contrast(89%);
}

.nav-links a {
    color: #F3F5F2;
    text-decoration: none;
    font-size: 12px;
    opacity: 1;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    font-family: 'Azeret Mono', monospace;
}

.nav-links a:not(:last-child) {
    margin-right: 56px;
}

.nav-launch-container {
    position: relative;
    width: 180px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
}

.nav-launch-text {
    position: absolute;
    top: 20px;
    left: 70px;
    color: #000000;
    font-family: 'Azeret Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-launch-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    left: 4px;
    top: 6px;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.community-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.community-link.active .community-icon {
    transform: rotate(180deg);
}

.nav-links {
    position: relative;
}

.frame-1000003351 {
    position: absolute;
    width: 160px;
    height: auto;
    top: calc(100% + 20px);
    right: 0;
    padding: 16px 0px;
    background: #151515;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.frame-1000003351.show {
    opacity: 1;
    pointer-events: auto;
}

.community-frame {
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    padding: 0 20px;
    text-decoration: none;
}

.community-frame span {
    width: 120px;
    height: 12px;
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    text-align: left;
    color: #F3F5F2;
    text-decoration: none;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.community-frame:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar.in-second-page {
    background-color: rgba(236, 234, 232, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.in-second-page .nav-links a {
    color: #000000;
}

.navbar.in-second-page .logo-head {
    filter: none;
}

/* 当导航栏在 second-page 时的下拉框样式 */
.navbar.in-second-page .frame-1000003351 {
    background: #F3F5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.in-second-page .community-frame span {
    color: #151515;
}

.navbar.in-second-page .community-frame:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 添加新的样式规则来处理图标切换 */
.community-icon.light-icon {
    display: none;
}

.navbar.in-second-page .community-icon.dark-icon {
    display: none;
}

.navbar.in-second-page .community-icon.light-icon {
    display: inline-block;
}

/* 添加新的样式规则来处理 launch 图标切换 */
.nav-launch-icon.light-icon {
    display: none;
}

.navbar.in-second-page .nav-launch-icon.dark-icon {
    display: none;
}

.navbar.in-second-page .nav-launch-icon.light-icon {
    display: block;
}

/* 修改 launch 按钮在 second-page 中的样式 */
.navbar.in-second-page .nav-launch-container svg rect {
    fill: #151515;
}

.navbar.in-second-page .nav-launch-text {
    color: #F3F5F2;
}

/* 添加新的样式规则来处理 logo 切换 */
.logo-head.light-logo {
    display: none;
}

.navbar.in-second-page .logo-head.dark-logo {
    display: none;
}

.navbar.in-second-page .logo-head.light-logo {
    display: block;
    filter: none;
}

/* 移除旧的 filter 规则，因为现在我们使用两个不同的 logo */
.navbar.in-second-page .logo-head {
    filter: none;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.product-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.product-link.active .product-icon {
    transform: rotate(180deg);
}

.product-dropdown {
    position: absolute;
    width: 210px;
    left: 25px;
    top: calc(100% + 20px);
    padding: 16px 0px;
    background: #151515;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-dropdown.show {
    opacity: 1;
    pointer-events: auto;
}

.product-frame {
    width: 210px;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    padding: 0 20px;
    text-decoration: none;
}

.product-frame span {
    width: auto;
    height: 12px;
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    text-align: left;
    color: #F3F5F2;
    text-decoration: none;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-frame:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 当导航栏在 second-page 时的下拉框样式 */
.navbar.in-second-page .product-dropdown {
    background: #F3F5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.in-second-page .product-frame span {
    color: #151515;
}

.navbar.in-second-page .product-frame:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 添加新的样式规则来处理图标切换 */
.product-icon.light-icon {
    display: none;
}

.navbar.in-second-page .product-icon.dark-icon {
    display: none;
}

.navbar.in-second-page .product-icon.light-icon {
    display: inline-block;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.doc-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.doc-link.active .doc-icon {
    transform: rotate(180deg);
}

.doc-dropdown {
    position: absolute;
    width: 210px;
    left: 280px;
    top: calc(100% + 20px);
    padding: 16px 0px;
    background: #151515;
    border-radius: 6px 6px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.doc-dropdown.show {
    opacity: 1;
    pointer-events: auto;
}

.doc-frame {
    width: 210px;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    padding: 0 20px;
    text-decoration: none;
}

.doc-frame span {
    width: auto;
    height: 12px;
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    text-align: left;
    color: #F3F5F2;
    text-decoration: none;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-frame:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 当导航栏在 second-page 时的下拉框样式 */
.navbar.in-second-page .doc-dropdown {
    background: #F3F5F2;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.in-second-page .doc-frame span {
    color: #151515;
}

.navbar.in-second-page .doc-frame:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 添加新的样式规则来处理图标切换 */
.doc-icon.light-icon {
    display: none;
}

.navbar.in-second-page .doc-icon.dark-icon {
    display: none;
}

.navbar.in-second-page .doc-icon.light-icon {
    display: inline-block;
}