/* 导航栏基础样式 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 126, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    -webkit-tap-highlight-color: transparent;
}

.logo-img {
    height: 28px;
    margin-right: 8px;
    transition: transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
}

/* 主导航菜单 */
.nav-menu {
    display: flex;
    gap: 32px;
    margin: 0 48px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    letter-spacing: -0.016em;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
    color: var(--pink-primary);
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

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

.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    letter-spacing: -0.016em;
    transition: background-color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--pink-primary);
}

/* 移动版下拉菜单样式 */
.mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown:last-child {
    border-bottom: none;
}

.mobile-dropdown .dropdown-toggle {
    justify-content: space-between;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: max-height 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mobile-dropdown-menu.active {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 24px 12px 48px;
    font-size: 15px;
    letter-spacing: -0.020em;
    transition: background-color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    -webkit-tap-highlight-color: transparent;
    border-left: 2px solid transparent;
}

.mobile-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--pink-primary);
    color: var(--pink-primary);
}

/* 右侧操作区 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* 语言选择器 */
.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 980px;
    color: var(--text-light);
    font-size: 14px;
    padding: 6px 28px 6px 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    letter-spacing: -0.016em;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 登录按钮 */
.login-btn {
    background: var(--pink-primary);
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    letter-spacing: -0.016em;
    -webkit-tap-highlight-color: transparent;
}

.login-btn:hover {
    background: var(--pink-dark);
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

/* 移动端菜单打开状态 */
.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    padding: 12px 24px;
    letter-spacing: -0.022em;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mobile-link::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-language {
    padding: 12px 24px;
}

.mobile-language select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 17px;
    padding: 12px 36px 12px 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    letter-spacing: -0.022em;
}

/* 响应式设计 - iPad */
@media (max-width: 1068px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 24px;
        margin: 0 32px;
    }
}

/* 响应式设计 - iPhone */
@media (max-width: 734px) {
    .nav-container {
        padding: 0 16px;
        height: 44px;
        justify-content: space-between;
        width: 100%;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .language-selector {
        display: block;
    }

    .language-selector select {
        padding: 4px 24px 4px 8px;
        font-size: 12px;
        background-position: right 6px center;
    }

    .login-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .logo-img {
        height: 24px;
    }

    .logo-text {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        padding: 8px;
        margin: 0;
    }

    .mobile-language {
        display: none;
    }
}

/* 响应式设计 - 小型iPhone */
@media (max-width: 374px) {
    .nav-container {
        padding: 0 12px;
    }

    .nav-actions {
        gap: 12px;
    }

    .language-selector select {
        padding: 4px 20px 4px 6px;
        font-size: 11px;
    }

    .login-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* 添加到现有样式中 */
.nav-link[data-scroll-to],
.mobile-link[data-scroll-to] {
    cursor: pointer;
}

/* 当链接处于活动状态时的样式 */
.nav-link.active,
.mobile-link.active {
    color: var(--pink-primary);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pink-primary);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.user-menu-btn:hover {
    background: var(--pink-dark);
}

.user-email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-item i {
    width: 16px;
    text-align: center;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* 响应式调整 */
@media (max-width: 734px) {
    .user-menu-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-email {
        max-width: 120px;
    }
} 