/* 内容区域使用flex-grow填充剩余空间 */
.content {
    background-color: #b51c1c;
    background-image: url('./img/bg-1.png');
    background-size: cover;
    background-position: center;
    /* 如果页面有输入框，建议改用`position: fixed`布局*/
}

/* 左上角小花动态*/
.flower-move {
    position: absolute;
    top: 3.1333vw;
    left: -16.5333vw;
    width: 30vw;
    /* height: 30vw; */
    overflow: hidden;
    z-index: 100;
}

.flower-move img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: flowerMove 2s linear infinite;
}

@keyframes flowerMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 右侧鞭炮动态*/
.firecracker {
    position: absolute;
    top: 19.1333vw;
    left: 64.1333vw;
    width: 32.3333vw;
    /* height: 56.8vw; */
    overflow: hidden;
    z-index: 200;
}

.firecracker img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* 左下角小马动态*/
.horse-move {
    position: absolute;
    top: 101.0667vw;
    left: -5.1333vw;
    width: 34.0667vw;
    /* height: 104vw; */
    overflow: hidden;
    z-index: 100;
}

.horse-move img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 输入框样式 */
.input-text-you {
    position: absolute;
    top: 36.1333vw;
    left: 49.1333vw;
    width: 16.2667vw;
    height: 9.2667vw;
    background: transparent;
    border: none;
    outline: none;
    overflow: hidden;
    z-index: 100;
}

.input-text-you input {
    width: 100%;
    height: 100%;
    font-size: 4.36667vw;
    font-family: 'STXINGKA', 'Microsoft YaHei', Arial, sans-serif;
    outline: none;
    background: transparent;
    border: none;
    outline: none;
    color: #333;

}


.input-text-ai {
    position: absolute;
    top: 119.1333vw;
    left: 52.1333vw;
    width: 19.67677vw;
    height: 9.2667vw;
    background: transparent;
    border: none;
    outline: none;
    overflow: hidden;
    z-index: 100;
}

.input-text-ai input {
    width: 100%;
    height: 100%;
    font-size: 5.33333vw;
    font-family: 'STXINGKA', 'Microsoft YaHei', Arial, sans-serif;
    outline: none;
    background: transparent;
    border: none;
    outline: none;
    /* 文字间隔 */
    letter-spacing: -0.35vw;
    color: #333;
}



/* 音乐控制按钮样式 */
.music-control {
    position: absolute;
    top: 5.3333vw;
    right: 5.3333vw;
    width: 11.7333vw;
    height: 11.7333vw;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 5.3333vw;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    user-select: none;
    transition: all 0.3s ease;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.music-control:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.music-control.paused {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 返回重选按钮样式 */
.back-button {
    position: absolute;
    top: 166vw;
    left: 35%;
    transform: translateX(-50%);
    padding: 1.5vw 5vw;
    background-color: #f3cf8ee6;
    color: #c40f18;
    font-size: 4vw;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    border-radius: 25px;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    user-select: none;
    text-decoration: none;
    display: inline-block;
    /* 延迟4秒显示 */
    animation: button-show 1s 2.5s ease-in-out forwards;
    opacity: 0;
    z-index: 200;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 分享按钮样式 */
.share-button {
    position: absolute;
    top: 166vw;
    right: 35%;
    transform: translateX(50%);
    padding: 1.5vw 5vw;
    background-color: #f3cf8ee6;
    color: #c40f18;
    font-size: 4vw;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    border-radius: 25px;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    user-select: none;
    animation: button-show 1s 2.5s ease-in-out forwards;
    opacity: 0;
    z-index: 200;
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes button-show {
    0% {

        opacity: 0;
    }

    100% {

        opacity: 1;
    }
}