*
{
    margin: 0;
    padding: 0;
}

html,
body
{
    overflow: hidden;
}

.webgl
{
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

/* 修改文字样式 */
.text-container {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1;
    font-family: 'Arial', sans-serif;
}

.title {
    font-size: 48px;  /* 增大标题字号 */
    font-weight: 500;  /* 与副标题保持一致的字重 */
    margin-bottom: 20px;
    color: white;
    text-shadow: 
        -1px -1px 0 rgba(0,0,0,0.2),
        1px -1px 0 rgba(0,0,0,0.2),
        -1px 1px 0 rgba(0,0,0,0.2),
        1px 1px 0 rgba(0,0,0,0.2);  /* 添加与副标题相同的阴影效果 */
}

.subtitle {
    font-size: 30px;
    margin-bottom: 20px;
    color: white;
    font-weight: 500;
    text-shadow: 
        -1px -1px 0 rgba(0,0,0,0.2),
        1px -1px 0 rgba(0,0,0,0.2),
        -1px 1px 0 rgba(0,0,0,0.2),
        1px 1px 0 rgba(0,0,0,0.2);
}

/* 添加按钮样式 */
.serve-btn {
    position: absolute;
    top: 300px;  /* 相应调整按钮位置，从180px增加到210px */
    left: 300px;
    padding: 12px 24px;  /* 增大按钮内边距 */
    font-size: 20px;  /* 增大按钮文字大小 */
    background-color: #FDBAD0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);  /* 添加按钮阴影 */
}

.serve-btn:hover {
    background-color: #FDBAD0;
    transform: scale(1.05);
}

/* 添加按钮样式 */
.candy-btn {
    position: absolute;
    top: 300px;  /* 相应调整按钮位置，从180px增加到210px */
    left: 50px;
    padding: 12px 24px;  /* 增大按钮内边距 */
    font-size: 20px;  /* 增大按钮文字大小 */
    background-color: #FDBAD0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);  /* 添加按钮阴影 */
}

.candy-btn:hover {
    background-color: #FDBAD0;
    transform: scale(1.05);
}


/* 修改Hello文字样式 */
.hello-text {
    position: fixed;
    top: 100px;          /* 调整到顶部位置 */
    right: 200px;        /* 调整到右侧位置 */
    left: auto;         /* 取消左侧定位 */
    transform: none;    /* 取消居中变换 */
    z-index: 1000;
    color: white;
    font-size: 80px;
}

.hello-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.text-xl {
    font-size: 6rem;     /* 增大字体尺寸 */
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* 添加 welcome 文字样式 */
.welcome-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.welcome-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);

}

.welcome-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 TO 文字样式 */
.to-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.to-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.to-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 KISSWEET 文字样式 */
.kissweet-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.kissweet-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.kissweet-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 LET'S 文字样式 */
.lets-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.lets-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.lets-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 MAKE 文字样式 */
.make-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.make-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.make-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 FRIENDS 文字样式 */
.friends-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
    display: none; /* 初始状态隐藏 */
}

.friends-text.active {
    display: block;
}

.friends-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.friends-text h2 {
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 添加 TOGETHER 文字样式 */
.together-text {
    position: fixed;
    top: 100px;          
    right: 200px;        
    left: auto;         
    transform: none;    
    z-index: 1000;
    color: white;
    font-family: 'Fredoka One', cursive;
    pointer-events: none;
}

.together-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.together-text h2 {
    animation: scaleUp 0.8s ease-out forwards;
    transform-origin: top right;
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
}

/* 确保动画关键帧定义存在 */
@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 添加新的文字显示动画 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加到你的样式文件中 */
* {
    cursor: none !important;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform-origin: center;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(164, 255, 79, 0.8);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor.hover .cursor-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
}