/* 导入思源真黑字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* 导入香萃潮汐宋字体 */
@font-face {
    font-family: '香萃潮汐宋';
    src: url('../font/香萃潮汐宋W15.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 导入Impact字体 */
@font-face {
    font-family: 'Impact';
    src: url('../font/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 导入NewAmsterdam字体 */
@font-face {
    font-family: 'NewAmsterdam-Regular';
    src: url('../font/NewAmsterdam-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 禁用页面滚动 */
html {
    overflow: hidden;
}

body {
    background-image: url('../photo/background main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Noto Sans SC', 'Source Han Sans', '思源黑体', sans-serif;
}

/* 页面容器 */
.page-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 菜单栏样式 */
.navbar {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: transparent; /* 完全透明背景 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1001;
}

/* Logo样式 */
.logo {
    padding-left: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px; /* 设置logo图片高度 */
    width: auto; /* 保持宽高比 */
    filter: brightness(0) invert(1); /* 将图片变为白色 */
}

/* 移动端菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* 将SVG变为白色 */
    transition: all 0.3s ease;
}

/* 菜单图标动画 */
.mobile-menu-toggle.active .menu-icon {
    transform: rotate(90deg);
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg); /* 蓝色效果 */
}

/* 菜单按钮在激活时隐藏 */
.mobile-menu-toggle.active {
    display: none;
}

/* 移动端关闭按钮样式 */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

/* 关闭按钮在菜单激活时显示 */
.mobile-menu-close.active {
    display: flex;
}

.close-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* 将SVG变为白色 */
    transition: all 0.3s ease;
}

.close-icon:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg); /* 悬停时变蓝色 */
    transform: scale(1.1);
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Noto Sans SC', 'Source Han Sans', '思源黑体', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 导航菜单激活状态 */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-link.active::after {
    width: 80%;
}

/* 粒子容器 */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* 波浪线条效果容器 */
#waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* 连续波浪样式 */
.continuous-wave {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.continuous-wave svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: -1;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
    transform-origin: left center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* 全屏页面容器 */
.pages-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 全屏页面样式 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    box-sizing: border-box;
}

.page.active {
    opacity: 1;
    z-index: 2;
}

/* 页面部分样式（保持兼容性） */
.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.page-section:first-child {
    padding-top: 120px; /* 为导航栏留出空间 */
}

/* 页面内容样式 */
.page-content {
    padding-top: 80px;
    padding-left: 60px;
    padding-right: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
}

.page-content h2 {
    font-family: 'Impact', Arial, sans-serif;
    font-size: 60px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.page-description {
    font-family: '香萃潮汐宋', serif;
    font-size: 30px;
    color: white;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* 导航按钮容器 */
.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 页面导航按钮样式 */
.page-nav-btn {
    background: #fff;
    border: none;
    padding: 10px 20px;
    display: inline-block;
    font-family: 'NewAmsterdam-Regular', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    width: 120px;
    text-transform: uppercase;
    cursor: pointer;
    transform: skew(-21deg);
    position: relative;
    transition: all 0.3s ease;
}

.page-nav-btn span {
    display: inline-block;
    transform: skew(21deg);
}

.page-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    left: 0;
    background: rgb(20, 20, 20);
    opacity: 0;
    z-index: -1;
    transition: all 0.5s;
}

.page-nav-btn:hover {
    color: #fff;
}

.page-nav-btn:hover::before {
    left: 0;
    right: 0;
    opacity: 1;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    /* 优化logo左侧空白 - 中等屏幕 */
    .logo {
        padding-left: 15px;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    
    /* 隐藏桌面端菜单 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 20px;
        width: 100%;
        display: block;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .page-content {
        padding-left: 30px;
        padding-right: 30px;
        align-items: flex-start;
        text-align: left;
    }
    
    .page-content h2 {
        font-size: 40px;
    }
    
    .page-description {
        font-size: 20px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .page-nav-btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* 中等屏幕优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .logo {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    /* 进一步优化logo左侧空白 - 小屏幕 */
    .logo {
        padding-left: 8px;
    }
    
    .navbar {
        padding: 0 10px;
    }
    
    .page-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .page-content h2 {
        font-size: 32px;
    }
    
    .page-description {
        font-size: 18px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
}
