.star {
    width: 100%;
    height: 125vh;
    background-image: linear-gradient(-225deg, #000000 0%, #231557 55%, #44107A 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: mask-image 0.1s ease;
}

canvas {
    position: absolute;
    width: 100%;
    height: 125vh;
}

.heading {
    z-index: 1;
    position: absolute;
    top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(85vh) translateZ(1px);
    color: #fff;
    line-height: 1;
}

.heading h1 {
    font-size: 50px;
    font-weight: 1000;
    transition: transform 0.3s ease;
    /* 让过渡效果更平滑 */
    cursor: pointer;
    /* 改变鼠标样式为手型，提示可以点击 */
}

.heading h1:hover {
    transform: scale(1.2);
    /* 悬停时放大效果 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    /* 添加文本阴影效果 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    /* 增加文本发光效果 */
}

.heading h1:active {
    transform: scale(0.95);
    /* 点击时缩小效果 */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
    /* 点击时增强发光效果 */
}

.heading p {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
}

.banner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-20vh) translateZ(1px);
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 20s ease;
}

/* 逐渐清晰 */
.banner.visible {
    opacity: 1;
}

.banner h1 {
    font-size: 30px;
    font-weight: 200;
    letter-spacing: 4px;
    animation: heartbeat 15s infinite;
}

/* 心跳动画 */
@keyframes heartbeat {

    0%,
    96%,
    98.5%,
    100% {
        transform: scale(1);
        text-shadow: none;
    }

    97.5% {
        transform: scale(1.2);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }


    99.5% {
        transform: scale(1.15);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
}