/* 导航按钮样式 */
.menu-toggle {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: rgba(51, 51, 51, 0.95);
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transform: translateX(-100px);
    pointer-events: none;
    visibility: hidden;
}

.menu-toggle.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.menu-toggle:hover {
    background: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 0;
    transition: all 0.4s ease;
}

/* 内容区域样式 */
.site-container {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
    overflow-x: hidden; /* 防止水平滚动 */
}

.nav-active .site-container {
    transform: translateX(700px); /* 与导航总宽度相同 */
}

/* 侧边导航样式 */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 700px;
    height: 100%;
    background: #000;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    overflow: hidden; /* 确保没有滚动条 */
}

.side-nav.active {
    transform: translateX(0);
}

/* 导航内容布局 */
.nav-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-width: 700px;
}

.nav-inner {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    background: #000;
    overflow: hidden;
    min-width: 0;
}

/* 自定义滚动条样式 */
.nav-inner::-webkit-scrollbar {
    width: 4px; /* 减小滚动条宽度 */
}

.nav-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.nav-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 导航图片区域 */
.nav-image {
    flex: 0 0 200px;
    position: relative;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
    margin: -40px 0;
    background: #fff; /* 添加白色背景 */
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 1s ease 0.3s, transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}

.side-nav.active .image-wrapper {
    opacity: 1;
    transform: scale(1);
}

.nav-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.8s ease 0.6s; /* 延迟显示遮罩层 */
}

.side-nav.active .image-overlay {
    opacity: 1;
}

.image-text {
    position: absolute;
    bottom: 60px;
    left: 40px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s; /* 最后显示文字 */
}

.side-nav.active .image-text {
    opacity: 1;
    transform: translateY(0);
}

.image-text h2 {
    font-size: 28px; /* 稍微调整字体大小 */
    margin-bottom: 10px;
    font-weight: 300; /* 添加更轻的字重 */
}

.image-text p {
    font-size: 16px;
    opacity: 0.9;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.side-nav.active .nav-header {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    font-weight: bold;
}

.close-nav {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.close-nav:hover {
    transform: rotate(90deg);
}

/* 导航菜单样式 */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    flex: 1;
}

.nav-menu li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    overflow: hidden;
}

/* 为每个菜单项添加延迟 */
.side-nav.active .nav-menu li:nth-child(1) { transition-delay: 0.8s; }
.side-nav.active .nav-menu li:nth-child(2) { transition-delay: 0.9s; }
.side-nav.active .nav-menu li:nth-child(3) { transition-delay: 1.0s; }
.side-nav.active .nav-menu li:nth-child(4) { transition-delay: 1.1s; }
.side-nav.active .nav-menu li:nth-child(5) { transition-delay: 1.2s; }
.side-nav.active .nav-menu li:nth-child(6) { transition-delay: 1.3s; }

.side-nav.active .nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 48px;
    font-weight: 200;
    display: inline-block;
    position: relative;
    transition: color 0.4s ease;
    line-height: 1.1;
    letter-spacing: -0.02em;
    padding: 8px 40px 8px 0;
    cursor: pointer;
    --x: 50%;
    --y: 50%;
}

/* 探照灯效果 */
.nav-menu a::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0.1) 30%,
        rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

/* 文字悬停效果 */
.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(10px);
    transition: all 0.4s ease;
}

/* 探照灯跟随效果 */
.nav-menu a.spotlight::before {
    opacity: 1;
}

/* 移除之前的下划线效果 */
.nav-menu a::after {
    display: none;
}

/* 导航底部联系信息和语言选择 */
.contact-info {
    display: flex;
    align-items: center;
    gap: 20px; /* 增加语言选择器之间的间距 */
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.language-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
}

.language-option:not(:last-child) {
    margin-right: 10px; /* 添加右侧间距 */
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-icon {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.language-text {
    font-size: 14px;
    opacity: 0.9;
}

/* 确保社交媒体链接和语言选择器在同一行 */
.nav-footer {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 0; /* 移除底部边距 */
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-social-link img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover img {
    opacity: 1;
}

/* 遮罩层样式 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 防止body滚动 */
body.nav-active {
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .side-nav {
        width: 1000px;
    }
    
    .nav-inner {
        flex: 0 0 600px;
    }
    
    .nav-active .site-container {
        transform: translateX(1000px);
    }
    
    .nav-menu a {
        font-size: 42px;
        padding: 6px 30px 6px 0;
    }
    
    .nav-menu a::before {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 1200px) {
    .side-nav {
        width: 900px;
    }
    
    .nav-inner {
        flex: 0 0 500px;
    }
    
    .nav-active .site-container {
        transform: translateX(900px);
    }
    
    .nav-menu a {
        font-size: 36px;
        padding: 5px 25px 5px 0;
    }
    
    .nav-menu a::before {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 992px) {
    .side-nav {
        width: 600px;
    }
    
    .nav-content {
        max-width: 600px;
    }
    
    .nav-inner {
        flex: 0 0 400px;
        padding: 30px;
    }
    
    .nav-image {
        flex: 0 0 200px;
        margin: -30px 0; /* 对应nav-inner在这个断点的padding */
    }
    
    .nav-active .site-container {
        transform: translateX(600px);
    }
    
    .nav-menu a {
        font-size: 32px;
        padding: 4px 20px 4px 0;
    }
    
    .nav-menu a::before {
        width: 120px;
        height: 120px;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .side-nav {
        width: 100%;
    }
    
    .nav-content {
        max-width: 100%;
        flex-direction: row;
    }
    
    .nav-inner {
        flex: 0 0 75%;
        padding: 20px;
    }
    
    .nav-image {
        flex: 0 0 25%;
        margin: -20px 0;
    }
    
    .nav-active .site-container {
        transform: translateX(100%);
    }
    
    .image-text {
        left: 20px;
        bottom: 40px;
    }
    
    .image-text h2 {
        font-size: 24px;
    }
    
    .image-text p {
        font-size: 16px;
    }
    
    .nav-menu a {
        font-size: 28px;
        padding: 4px 15px 4px 0;
    }
    
    .nav-menu a::before {
        width: 100px;
        height: 100px;
    }
    
    .nav-menu li {
        margin: 12px 0;
    }

    /* 优化社交图标布局 */
    .footer-social {
        gap: 10px;
    }

    .footer-social-link {
        width: 32px;
        height: 32px;
    }

    .footer-social-link img {
        width: 16px;
        height: 16px;
    }

    /* 语言选择器样式调整 */
    .language-option {
        padding: 4px 8px;
        font-size: 12px;
    }

    .language-icon {
        width: 16px;
        height: 16px;
    }

    /* 顶部固定条 */
    .top-fixed-bar {
        height: 50px;
    }
    
    .floating-logo {
        width: 80px;
    }

    .menu-toggle {
        top: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
        padding: 8px;
    }
    
    .menu-toggle span {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        font-size: 24px;
        padding: 3px 10px 3px 0;
    }
    
    .nav-menu a::before {
        width: 80px;
        height: 80px;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }

    .nav-inner {
        flex: 0 0 80%;
        padding: 15px;
    }

    .nav-image {
        flex: 0 0 20%;
        margin: -15px 0;
    }

    /* 进一步压缩社交图标间距 */
    .footer-social {
        gap: 8px;
    }

    .footer-social-link {
        width: 28px;
        height: 28px;
    }

    .footer-social-link img {
        width: 14px;
        height: 14px;
    }

    /* 语言选择器进一步优化 */
    .language-option {
        padding: 3px 6px;
        font-size: 11px;
    }

    .language-icon {
        width: 14px;
        height: 14px;
    }
}

/* 删除所有滚动条相关样式 */
.nav-inner::-webkit-scrollbar,
.nav-inner::-webkit-scrollbar-track,
.nav-inner::-webkit-scrollbar-thumb,
.nav-inner::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* 社交媒体图标样式 */
.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

/* 顶部固定条 */
.top-fixed-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-fixed-bar.visible {
    transform: translateY(0);
}

.floating-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: auto;
}

.floating-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 当顶部固定条显示时的导航按钮样式 */
.top-fixed-bar.visible + .menu-toggle {
    background: rgba(51, 51, 51, 0.95);
    top: 10px;
    left: 20px;
} 