/* 导航栏样式 - 黑金风格 */

.nav {
    position: fixed;
    top: 45px;
    left: 100px;
    right: 100px;
    height: 64px;
    border: 1px solid #30363d;
    border-radius: 50px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav__left {
    display: flex;
    align-items: center;
    gap: 40px;
    position: absolute;
    left: 32px;
}

.nav__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav__right {
    position: absolute;
    right: 32px;
}

.nav__logo {
    height: 36px;
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 100%;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav__link {
    color: #8b949e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav__link:hover {
    color: #efc49b;
}

/* 产品下拉菜单 */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8b949e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.nav__dropdown-toggle:hover {
    color: #efc49b;
}

.nav__dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.nav__dropdown:hover .nav__dropdown-icon {
    transform: rotate(180deg);
}

.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: -20px;
    min-width: 260px;
    background: #0a0a0a;
    border: 1px solid rgba(239, 196, 155, 0.2);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 1px rgba(239, 196, 155, 0.3);
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #e6edf3;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.nav__dropdown-item:hover {
    background: rgba(239, 196, 155, 0.1);
    border: 1px solid rgba(239, 196, 155, 0.2);
}

.nav__dropdown-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.nav__dropdown-item-badge {
    padding: 2px 6px;
    background: rgba(239, 196, 155, 0.2);
    color: #efc49b;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
}

.nav__dropdown-item-desc {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.4;
}

.nav__login {
    padding: 10px 24px;
    background: #efc49b;
    color: #000;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav__login:hover {
    background: #f4d4b4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 196, 155, 0.35);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        top: 16px;
        left: 16px;
        right: 16px;
        height: 56px;
        border-radius: 28px;
    }

    .nav__container {
        padding: 0 20px;
    }

    .nav__left {
        position: static;
        transform: none;
    }

    .nav__center {
        display: none;
    }

    .nav__right {
        position: static;
    }

    .nav__logo {
        height: 30px;
    }

    .nav__links {
        display: none;
    }
}
