* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    overflow: hidden;
    font-family: 'Arial', sans-serif;

}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    filter:
            drop-shadow(0 0 2px rgba(255,255,255,0.2))
            drop-shadow(0 0 5px rgba(255,255,255,0.1));

}

.nav-buttons {
    position: fixed;
    width: 100vw;
    height: 100vh;
}

.nav-btn {
    position: fixed;
    width: 240px;
    height: 80px;
    line-height: 40px;
    text-align: center;
    background: none;
    border: 2px solid #000;     /* 从 1px 改成 2px */
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
}


#aboutBtn { left: 20px; top: 20px; }
#langBtn { right: 20px; top: 20px; }
#wordBtn { left: 20px; bottom: 20px; }
#commBtn { right: 20px; bottom: 20px; }

.join-btn {
    position: fixed;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    padding: 15px 40px;
    background: rgba(255,255,255,0.1);
    color: #000;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    border: 2px solid #000;
}


.join-btn.show {
    opacity: 1;
    pointer-events: auto;

}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225,225,225,0.8);
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #000;
    width: 80%;
    max-width: 500px;
    text-align: center;
    opacity: 0.8;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #000;
    font-size: 28px;
    cursor: pointer;
}

.lang-option, .social-link {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: none;
    border: 1px solid #000;
    color: #000;
    cursor: pointer;
    text-decoration: none;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.lang-option, .social-link {
    font-size: 1.2rem;
    padding: 15px;
}

@media screen and (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.8rem;
    }

    .lang-option, .social-link {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
}


#churchName {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 10rem;
    /* 只给文字颜色设置透明度 */
    color: rgba(0, 0, 0, 0.3);
    /* 如果想让淡入动画也起作用，保留 opacity 为 0 开始 */
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 20;
}

/* 响应式略微缩小 */
@media (max-width: 768px) {
    #churchName {
        font-size: 2rem;
    }
}


#subtitle {
    position: fixed;
    top: 55%;               /* 文字下方再下移一点 */
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 1.5rem;      /* 从 1rem 改成 1.5rem */
    line-height: 1.2;       /* 稍微紧凑一点 */
    color: #000;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 20;
}
@media (max-width: 768px) {
    #subtitle {
        font-size: 1.2rem;    /* 手机端也相应放大 */
    }
}

canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
}
/* 下层画布 */
#particlesBottom { z-index: 1; }
/* 上层跟随画布 */
#particlesTop    { z-index: 2; pointer-events: none; }
