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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -15.6667vw;
    animation: logoAppear 2s ease-out forwards;
    opacity: 0;
}

.logo img {
    width: 14.667vw;
    height: 14.667vw;
    animation: logoIconAppear 1.5s ease-out 0.3s forwards;
    opacity: 0;
}

div.logo img.caption {
    margin: 4vw 0;
    width: 50.667vw;
    height: 8vw;
    animation: logoTextAppear .8s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(5.3333vw);
}

/* Logo整体出现动画 */
@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo图标动画 */
@keyframes logoIconAppear {
    0% {
        opacity: 0.5;
        transform: scale(0.5);
    }

    30% {
        opacity: 0.8;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo文字动画 */
@keyframes logoTextAppear {
    0% {
        opacity: 0;
        transform: translateY(5.3333vw);
    }

    60% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.txt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4.8888vw;
    color: #333;
    animation: contentFadeIn 1.5s ease-out 2.5s forwards;
    opacity: 0;
}

.txt-content p {
    font-family: "YaHei";
    line-height: 1.8;
    font-weight: 500;
    animation: textLineAppear 1s ease-out forwards;
    opacity: 0;
    transform: translateY(4vw);
    border-bottom: 0.5333vw dotted rgba(220, 100, 100, 0.3);
}

/* 逐行延迟动画 */
.txt-content p:nth-child(1) {
    animation-delay: 2.8s;
}

/* 输入框样式 */
.input-text-you {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52.2667vw;
    height: 9.2667vw;
    background: transparent;
    border: none;
    outline: none;
    overflow: hidden;
    z-index: 1000;
}

.input-text-you input {
    display: inline-block;
    max-width: 16.3333vw;
    font-size: 5.8888vw;
    font-family: 'STXINGKA', 'Microsoft YaHei', Arial, sans-serif;
    outline: none;
    background: transparent;
    border: none;
    outline: none;
    /* 字间距 */
    letter-spacing: -0.1em;
    text-align: center;
    color: #333;

}

.input-text-you span {
    display: block;
}

.input-text-you input::placeholder {
    color: #999;
    font-size: 4.8888vw;
    font-family: 'STXINGKA', 'Microsoft YaHei', Arial, sans-serif;
    outline: none;
    background: transparent;
    border: none;
    outline: none;
    /* 字间距 */
    letter-spacing: -0.2em;
    text-align: center;
}

.txt-content p:nth-child(2) {
    animation-delay: 3.0s;
}

.txt-content p:nth-child(3) {
    animation-delay: 3.2s;
}

.txt-content p:nth-child(4) {
    animation-delay: 3.4s;
}

.txt-content p:nth-child(5) {
    animation-delay: 3.6s;
}

.txt-content p:nth-child(6) {
    animation-delay: 3.8s;
}

.txt-content p:nth-child(7) {
    animation-delay: 4.0s;
}

.txt-content p:nth-child(8) {
    animation-delay: 4.2s;
}

.txt-content p:nth-child(9) {
    animation-delay: 4.4s;
}

.txt-content p:nth-child(10) {
    animation-delay: 4.6s;
}

.txt-content p:nth-child(11) {
    animation-delay: 4.8s;
}

.txt-content p:nth-child(1) {
    font-weight: 500;
    margin-bottom: 2.1333vw;
}

.txt-content p .leader-name {
    margin-right: 2.6667vw;
    font-size: 4.2667vw;
    color: #333;
    text-shadow: 1px 1px 2px rgba(100, 50, 50, 0.2);
    border-bottom: 2px dotted rgba(225, 6, 6, 0.8);
}

/* 红色文字特殊动画 */
.txt-red {
    color: #F5051B;
    font-weight: bold;
    animation: redTextGlow 0.8s ease-out 5s forwards;
    opacity: 0;
    text-shadow: 0 0 1.3333vw rgba(255, 69, 0, 0.3);
}

/* 内容整体渐显动画 */
@keyframes contentFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 文字行逐行出现动画 */
@keyframes textLineAppear {
    0% {
        opacity: 0;
        transform: translateY(4vw);
        filter: blur(0.5vw);
    }

    70% {
        opacity: 0.8;
        filter: blur(0.1333vw);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 红色文字发光效果 */
@keyframes redTextGlow {
    0% {
        opacity: 0;
        text-shadow: 0 0 0px rgba(255, 69, 0, 0);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 2.6667vw rgba(255, 69, 0, 0.5);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 1.3333vw rgba(255, 69, 0, 0.3);
    }
}

/* 云图 */
.gold-cloud-r,
.gold-cloud-l {
    position: absolute;
    width: 26.3333vw;
    height: auto;
    opacity: 0;
}

.gold-cloud-l img,
.gold-cloud-r img {
    width: 100%;
    height: auto;
}

.gold-cloud-r {
    top: 24.3333vw;
    right: -2.6667vw;
    /* 动画延迟 0.5s */
    animation: slideInFromRight .5s 2s ease-out forwards;
}

.gold-cloud-l {
    top: 55.3333vw;
    left: -5.6667vw;
    animation: slideInFromLeft .8s 2.5s ease-out forwards;
}

/* 从右边渐显进入动画 */
@keyframes slideInFromRight {
    0% {
        transform: translateX(26.6667vw);
        opacity: 0;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 从左边渐显进入动画 */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-26.6667vw);
        opacity: 0;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gold-horse,
.red-horse {
    position: absolute;
    height: auto;
    opacity: 0;
}

.gold-horse {
    width: 40.3333vw;
    bottom: 3.6667vw;
    right: -2.3333vw;
    animation: slideInFromGoldHorse 1.2s 3.2s ease-in forwards;
}

.red-horse {
    width: 86.3333vw;
    bottom: -16.3333vw;
    left: -49.3333vw;
    animation: slideInFromRedHorse 1s 3.5s ease-out forwards;
}

.gold-horse img,
.red-horse img {
    width: 100%;
    height: auto;
}

/* 马从右边渐显进入动画 */
@keyframes slideInFromGoldHorse {
    0% {
        transform: rotateY('180deg');
        opacity: 0;
    }

    100% {

        opacity: 1;
    }
}

/* 马从左边渐显进入动画 */
@keyframes slideInFromRedHorse {
    0% {
        transform: translateX(-26.6667vw);
        opacity: 0.8;
    }

    100% {
        transform: translateX(-7.4667vw);
        opacity: 1;
    }
}

/* 音乐控制按钮样式 */
.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: 159vw;
    left: 35%;
    transform: translateX(-50%);
    padding: 2vw 5vw;
    background-color: rgba(255, 255, 255, 0.8);
    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 4s 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: 159vw;
    right: 35%;
    transform: translateX(50%);
    padding: 2vw 5vw;
    background-color: rgba(255, 255, 255, 0.8);
    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 4s 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;
    }

    80% {

        opacity: 0;
    }

    100% {

        opacity: 1;
    }
}