/* 首页红色主视觉部分 */
.hero-section {
    width: 100%;
    min-height: 100vh;
    background: url('../img/2024-10-25-sDeYAAADBrZM3Rbe245hC4i3JxGyF3tN.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 20px 60px 20px;
    position: relative;
    overflow: hidden;
}

/* 烟花GIF样式 */
.fireworks-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
    /* 强制浏览器渲染GIF动画 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 确保GIF在移动设备上播放 */
    pointer-events: none;
}

/* 所有文字元素在动画之上 */
.hero-section>* {
    z-index: 2;
}

.hero-section .wedding-title {
    font-size: 17px;
    letter-spacing: 6px;
    color: rgb(255, 224, 148);
    font-weight: 300;
    margin-top: 40px;
    margin-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-section .wedding-xi {
    font-size: 56px;
    color: rgb(255, 224, 148);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    font-family: 'SimSun', 'STSong', serif;
    margin: 10px;
}

.hero-section .wedding-subtitle {
    font-size: 10px;
    color: rgb(255, 224, 148);
    letter-spacing: 1.5px;
    margin: 1px 0;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
}

.hero-section .couple-names {
    font-size: 26px;
    color: rgb(255, 224, 148);
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-family: 'Savoye LET', cursive;
    margin: 6px 0 4px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
}

.hero-section .couple-names span {
    flex: 1;
    text-align: center;
}

.hero-section .couple-roles {
    font-size: 14px;
    color: rgb(255, 224, 148);
    letter-spacing: 10px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-top: 2px;
}

.hero-section .couple-roles span {
    flex: 1;
    text-align: center;
}

.hero-couple-photo {
    display: none;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .hero-section {
        padding: 25px 15px 50px 15px;
    }
    
    .hero-section .wedding-xi {
        font-size: 50px;
    }
    
    .hero-section .our-wedding {
        font-size: 25px;
    }
    
    .hero-section .couple-names {
        font-size: 24px;
    }
}