/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow: hidden;
    background: white;
}

/* 容器样式 */
.container {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: white;
}

/* 页面样式 */
.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    background: white;
}

/* 每个页面的背景色（统一为白色） */
.page1, .page2, .page3, .page4, .page5, .page6, .page-easter-egg {
    background: white;
}

/* 内容容器 */
.content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* 淡入上移动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主标题样式 */
.main-title {
    font-size: 4rem;
    color: black;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 副标题样式 */
.subtitle {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
}

/* 正文样式 */
.text {
    font-size: 3rem;
    color: black;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 2rem;
}

/* 小字样式 */
.small-text {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 多国语言容器 */
.languages-container {
    margin-top: 3rem;
    position: relative;
    height: 120px;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
}

/* 语言项样式 */
.language-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: black;
    font-weight: bold;
    opacity: 0;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 多国语言轮播动画 */
@keyframes languageFade {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    50% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 隐藏彩蛋初始状态 */
.page-easter-egg {
    display: flex;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.page-easter-egg.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .text {
        font-size: 2rem;
    }
    
    .language-item {
        font-size: 1.5rem;
    }
    
    .small-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .text {
        font-size: 1.5rem;
    }
    
    .language-item {
        font-size: 1.2rem;
    }
    
    .small-text {
        font-size: 0.9rem;
    }
}

/* 滚动条样式 */
.container::-webkit-scrollbar {
    width: 8px;
}

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

.container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 页面切换时的动画效果 */
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    animation: slideIn 3s ease-out infinite;
}

@keyframes slideIn {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* 鼠标悬停效果 */
.content:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* 语言项悬停效果 */
.language-item:hover {
    transform: translateX(-50%) scale(1.1);
    transition: transform 0.3s ease;
}

