/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
/* 隐藏滚动条 */
body {
overflow-y: hidden;
}
/*隐藏滚动条结束*/
/*自定义字体*/
/* 定义字体 */
        @font-face {
            font-family: 'MyCustomFont';
            src: url('font/song.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap; /* 确保文本在字体加载期间可见 */
        }
        
        /* 应用字体 */
        body {
            font-family: 'MyCustomFont', sans-serif;
        }
/*自定义字体结束*/
/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.music-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* 英雄区域样式 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

#hero-video {
   position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 居中视频 */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: white;
    color: #333;
}
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh; /* 可根据需要调整高度 */
    min-height: 500px;
    background-image: url('igame/hero_new.png'); /* 替换为你的图片路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white; /* 根据图片调整文字颜色 */
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}
/* 滑动页面容器样式 */
.sliding-pages-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.nav-dots {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: rgb(253, 255, 115);
    transform: scale(1.3);
}

.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.page-frame {
    width: 100%;
    height: 100vh;
    border: none;
    scroll-snap-align: start;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-frame.loaded {
    opacity: 1;
}
/* 更新后的滑动容器样式 */
.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    
    /* 隐藏滚动条方案 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* 保证iframe填满空间 */
.page-frame {
    width: 100%;
    height: 100vh;
    border: none;
    scroll-snap-align: start;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
}
    