/* 隐藏页面滚动条 - 适配你的滚动容器 */
body, #scroll-container {
  /* 兼容 IE/Edge 旧版 */
  -ms-overflow-style: none;
  /* 兼容 Firefox */
  scrollbar-width: none;
  /* 确保滚动功能保留 */
  overflow-x: hidden; /* 隐藏水平滚动条（按需） */
  overflow-y: auto;
}

/* 兼容 Chrome/Safari/新版 Edge（WebKit 内核） */
body::-webkit-scrollbar,
#scroll-container::-webkit-scrollbar {
  display: none; /* 完全隐藏滚动条 */
}

/* 全局设置：禁用 HTML/Body 的默认滚动，交给容器处理 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 关键：禁止外部滚动 */
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #0a0a0a;
    color: white;
}

/* 导航栏样式 (保持不变) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-sizing: border-box;
    transition: 0.3s;
}
/* Logo hover 核心样式 */
        .logo {
            transition: all 0.3s ease; /* 顺滑过渡 */
            padding: 4px; /* 预留hover边框空间 */
            border-radius: 8px; /* 圆角适配，更柔和 */
        }

        .logo img {
            transition: all 0.3s ease;
            display: block; /* 消除默认间距 */
        }

        /* hover效果：轻微缩放+小角度旋转+柔和阴影+浅边框 */
        .logo:hover {
            transform: scale(1.05); /* 轻微放大 */
            
            padding: 3px; /* 抵消边框宽度，保证Logo位置不变 */
            
        }

        .logo:hover img {
            transform: rotate(3deg) scale(1.02); /* 小角度旋转+轻微缩放 */
            opacity: 0.95; /* 轻微透明，增加层次感 */
        }
.nav-links { list-style: none; display: flex; gap: 2rem; margin: 0; }
.nav-links a { color: white; text-decoration: none; font-size: 15px; transition: 0.3s; display: block; }
.nav-links a span { font-size: 9px; text-transform: uppercase; opacity: 0.6; letter-spacing: 1px; }
.nav-links a:hover { color: #00ffcc; }

/* ================== 核心：滚动容器 ================== */
#scroll-container {
    width: 100%;
    height: 100vh; /* 占满全屏 */
    overflow-y: scroll; /* 允许内部滚动 */
    
    /* 开启吸附效果 */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    
    /* 解决导航栏遮挡问题 */
    scroll-padding-top: 70px; 
}

/* ================== Section 设置 ================== */
.section {
    min-height: 100vh; /* 确保每一页至少占满屏幕 */
    padding: 100px 5%; /* 内边距 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    
    /* 定义吸附点：对齐到顶部 */
    scroll-snap-align: start;
    scroll-snap-stop: always; /* 强制停在Section，不许滑到一半 */
}

/* ================== 视觉过渡动画 ================== */
/* 默认状态：内容稍微下沉且透明 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* 激活状态：当JS检测到Section可见时添加此Class */
.section.active .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ... (以下特效样式保持不变，例如 .bg-canvas, .floating-char 等) ... */
.bg-canvas, .bg-effect-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.relative-z, .content, .container { position: relative; z-index: 1; }

#home { background: radial-gradient(circle at bottom, #1b2735 0%, #090a0f 100%); }

#novel { background: #0f0f0f; }
.floating-char {
    position: absolute; bottom: -50px;
    color: rgba(255, 255, 255, 0.8); /* 高可见度 */
    font-family: 'Georgia', serif; pointer-events: none;
    animation: floatUp linear forwards;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(20deg); opacity: 0; }
}

#pixel {
    background-color: #111;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

#games { background: #0d0d0d; }
.loading-bar-container { position: absolute; height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.loading-bar-fill { height: 100%; background: #00ffcc; width: 0%; box-shadow: 0 0 10px #00ffcc; animation: loadingFill linear infinite; }
@keyframes loadingFill {
    0% { width: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { width: 100%; opacity: 0; }
}

#digital { background: #000; }

.container { width: 100%; max-width: 1200px; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; border-left: 5px solid #00ffcc; padding-left: 15px; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
h2 span { font-size: 1rem; color: #888; margin-left: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(5px); height: 200px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #333; transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: #00ffcc; box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2); }

.menu-toggle { display: none; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.3s; }
@media screen and (max-width: 768px) {
    /* 1. 直接隐藏整个链接列表 */
    .nav-links {
        display: none !important;
    }

    /* 2. 同时隐藏汉堡菜单按钮 */
    .menu-toggle {
        display: none !important;
    }

}


