/* 圣诞版基础样式*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: white;
    font-weight: 300;
    overflow: hidden;
    height: 100vh;
}

/* 音乐控制按钮 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}

.music-control.show {
    display: block;
}

.music-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.music-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.music-btn.playing {
    animation: musicRotate 3s linear infinite;
}

@keyframes musicRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 主容器与屏幕 */
.integrated-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    transform: translateX(100%);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 第一屏：登录 */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 0;
    height: 400px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-title {
    font-size: 40px;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
    font-weight: 200;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.login-title.animate-to-center {
    animation: moveDown 1.5s ease-in-out forwards;
}

@keyframes moveDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100px);
    }
}

.login-form {
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.login-form input {
    outline: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    width: 250px;
    border-radius: 3px;
    padding: 10px 15px;
    margin: 0 auto 10px auto;
    display: block;
    text-align: center;
    font-family: "Microsoft YaHei";
    font-size: 18px;
    color: white;
    transition-duration: 0.25s;
    font-weight: 300;
}

.login-form input::placeholder {
    color: white;
    opacity: 0.8;
}

.login-form input:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.login-form input:focus {
    background-color: white;
    width: 300px;
    color: #79A8AE;
}

.login-form button {
    outline: 0;
    background-color: white;
    font-family: "Microsoft YaHei";
    border: 0;
    padding: 10px 15px;
    color: #79A8AE;
    border-radius: 3px;
    width: 250px;
    cursor: pointer;
    font-size: 18px;
    transition-duration: 0.25s;
}

.login-form button:hover {
    background-color: #f5f7f9;
}

/* 第二屏：动画画布 */
.animation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    image-rendering: auto;
    -webkit-image-rendering: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 第三屏：喜欢按钮与气泡 */
.lk1 {
    text-decoration: none;
    font-family: 'Microsoft YaHei', cursive;
    color: #fff;
    transition: all 0.5s;
}

.link1 {
    width: 170px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 23px;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt1 {
    position: relative;
    top: 0;
    vertical-align: middle;
}

/* 漫天雪花效果 - 简化版确保动画正常工作 */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
}

/* 雪花基础样式 */
.snowflake {
    position: absolute;
    background: white !important;
    background-color: white !important;
    color: white !important;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 第一屏雪花的随机位置和动画属性 */
.bg-snowflakes li:nth-child(1) {
    left: 5%;
    width: 10px;
    height: 10px;
    animation-delay: 0s;
    animation-duration: 10s;
    --fall-offset: -15px;
}

.bg-snowflakes li:nth-child(2) {
    left: 15%;
    width: 8px;
    height: 8px;
    animation-delay: 0.5s;
    animation-duration: 12s;
    --fall-offset: 20px;
}

.bg-snowflakes li:nth-child(3) {
    left: 25%;
    width: 12px;
    height: 12px;
    animation-delay: 1s;
    animation-duration: 8s;
    --fall-offset: -10px;
}

.bg-snowflakes li:nth-child(4) {
    left: 35%;
    width: 9px;
    height: 9px;
    animation-delay: 0.2s;
    animation-duration: 11s;
    --fall-offset: 25px;
}

.bg-snowflakes li:nth-child(5) {
    left: 45%;
    width: 11px;
    height: 11px;
    animation-delay: 0.8s;
    animation-duration: 9s;
    --fall-offset: -20px;
}

.bg-snowflakes li:nth-child(6) {
    left: 55%;
    width: 7px;
    height: 7px;
    animation-delay: 0.3s;
    animation-duration: 13s;
    --fall-offset: 15px;
}

.bg-snowflakes li:nth-child(7) {
    left: 65%;
    width: 10px;
    height: 10px;
    animation-delay: 1.2s;
    animation-duration: 7s;
    --fall-offset: -5px;
}

.bg-snowflakes li:nth-child(8) {
    left: 75%;
    width: 8px;
    height: 8px;
    animation-delay: 0.6s;
    animation-duration: 10.5s;
    --fall-offset: 30px;
}

.bg-snowflakes li:nth-child(9) {
    left: 85%;
    width: 11px;
    height: 11px;
    animation-delay: 0.9s;
    animation-duration: 9.5s;
    --fall-offset: -15px;
}

.bg-snowflakes li:nth-child(10) {
    left: 95%;
    width: 9px;
    height: 9px;
    animation-delay: 0.4s;
    animation-duration: 11.5s;
    --fall-offset: 10px;
}

/* 额外的雪花，增加密度 */
.bg-snowflakes li:nth-child(11) {
    left: 10%;
    width: 12px;
    height: 12px;
    animation-delay: 0.7s;
    animation-duration: 8.5s;
    --fall-offset: 20px;
}

.bg-snowflakes li:nth-child(12) {
    left: 20%;
    width: 8px;
    height: 8px;
    animation-delay: 1.1s;
    animation-duration: 12.5s;
    --fall-offset: -10px;
}

.bg-snowflakes li:nth-child(13) {
    left: 30%;
    width: 10px;
    height: 10px;
    animation-delay: 0.1s;
    animation-duration: 10s;
    --fall-offset: 15px;
}

.bg-snowflakes li:nth-child(14) {
    left: 40%;
    width: 7px;
    height: 7px;
    animation-delay: 0.5s;
    animation-duration: 13.5s;
    --fall-offset: -25px;
}

.bg-snowflakes li:nth-child(15) {
    left: 50%;
    width: 11px;
    height: 11px;
    animation-delay: 0.8s;
    animation-duration: 9s;
    --fall-offset: 5px;
}
    /* 继续定义剩余的雪花元素 */
.bg-snowflakes li:nth-child(16) {
    left: 60%;
    width: 8px;
    height: 8px;
    animation-delay: 0.2s;
    animation-duration: 11.5s;
    --fall-offset: -10px;
}

.bg-snowflakes li:nth-child(17) {
    left: 70%;
    width: 10px;
    height: 10px;
    animation-delay: 0.9s;
    animation-duration: 8s;
    --fall-offset: 15px;
}

.bg-snowflakes li:nth-child(18) {
    left: 80%;
    width: 9px;
    height: 9px;
    animation-delay: 0.4s;
    animation-duration: 12s;
    --fall-offset: -20px;
}

.bg-snowflakes li:nth-child(19) {
    left: 90%;
    width: 7px;
    height: 7px;
    animation-delay: 0.7s;
    animation-duration: 10s;
    --fall-offset: 10px;
}

.bg-snowflakes li:nth-child(20) {
    left: 35%;
    width: 11px;
    height: 11px;
    animation-delay: 1.1s;
    animation-duration: 13s;
    --fall-offset: -5px;
}

/* snowFall animation removed */

/* 雪花下落动画 */
@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--drift, 0px) * 0.5)) rotate(calc(var(--rotation, 0deg) * 0.5));
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

/* 雪花位置和动画属性 - 增大尺寸和密度 */
.bg-snowflakes li:nth-child(1) {
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(2) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0.5s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(3) {
    left: 15%;
    animation-duration: 7s;
    animation-delay: 1s;
    width: 22px;
    height: 22px;
}

.bg-snowflakes li:nth-child(4) {
    left: 20%;
    animation-duration: 9s;
    animation-delay: 0.2s;
    width: 16px;
    height: 16px;
}

.bg-snowflakes li:nth-child(5) {
    left: 25%;
    animation-duration: 11s;
    animation-delay: 0.8s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(6) {
    left: 30%;
    animation-duration: 8.5s;
    animation-delay: 0.3s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(7) {
    left: 35%;
    animation-duration: 9.5s;
    animation-delay: 1.2s;
    width: 17px;
    height: 17px;
}

.bg-snowflakes li:nth-child(8) {
    left: 40%;
    animation-duration: 7.5s;
    animation-delay: 0.6s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(9) {
    left: 45%;
    animation-duration: 10.5s;
    animation-delay: 0.9s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(10) {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 0.4s;
    width: 20px;
    height: 20px;
}

/* 第二组雪花 */
.bg-snowflakes li:nth-child(11) {
    left: 55%;
    animation-duration: 9s;
    animation-delay: 0.7s;
    width: 22px;
    height: 22px;
}

.bg-snowflakes li:nth-child(12) {
    left: 60%;
    animation-duration: 11s;
    animation-delay: 1.1s;
    width: 17px;
    height: 17px;
}

.bg-snowflakes li:nth-child(13) {
    left: 65%;
    animation-duration: 8.5s;
    animation-delay: 0.1s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(14) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 0.5s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(15) {
    left: 75%;
    animation-duration: 9.5s;
    animation-delay: 0.8s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(16) {
    left: 80%;
    animation-duration: 7.5s;
    animation-delay: 0.2s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(17) {
    left: 85%;
    animation-duration: 11.5s;
    animation-delay: 0.9s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(18) {
    left: 90%;
    animation-duration: 8s;
    animation-delay: 0.4s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(19) {
    left: 95%;
    animation-duration: 10.5s;
    animation-delay: 0.7s;
    width: 22px;
    height: 22px;
}

.bg-snowflakes li:nth-child(20) {
    left: 3%;
    animation-duration: 9s;
    animation-delay: 1.1s;
    width: 17px;
    height: 17px;
}

/* 新增的雪花元素（21-40） */
.bg-snowflakes li:nth-child(21) {
    left: 8%;
    animation-duration: 8.5s;
    animation-delay: 0.3s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(22) {
    left: 12%;
    animation-duration: 10.5s;
    animation-delay: 0.6s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(23) {
    left: 18%;
    animation-duration: 7.5s;
    animation-delay: 0.9s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(24) {
    left: 22%;
    animation-duration: 9.5s;
    animation-delay: 0.2s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(25) {
    left: 28%;
    animation-duration: 11s;
    animation-delay: 0.7s;
    width: 22px;
    height: 22px;
}

.bg-snowflakes li:nth-child(26) {
    left: 33%;
    animation-duration: 8s;
    animation-delay: 1s;
    width: 17px;
    height: 17px;
}

.bg-snowflakes li:nth-child(27) {
    left: 38%;
    animation-duration: 10s;
    animation-delay: 0.4s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(28) {
    left: 42%;
    animation-duration: 9s;
    animation-delay: 0.8s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(29) {
    left: 48%;
    animation-duration: 8.5s;
    animation-delay: 0.1s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(30) {
    left: 53%;
    animation-duration: 10.5s;
    animation-delay: 0.5s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(31) {
    left: 58%;
    animation-duration: 7.5s;
    animation-delay: 0.9s;
    width: 22px;
    height: 22px;
}

.bg-snowflakes li:nth-child(32) {
    left: 63%;
    animation-duration: 9.5s;
    animation-delay: 0.3s;
    width: 17px;
    height: 17px;
}

.bg-snowflakes li:nth-child(33) {
    left: 68%;
    animation-duration: 11s;
    animation-delay: 0.7s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(34) {
    left: 72%;
    animation-duration: 8s;
    animation-delay: 1.2s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(35) {
    left: 78%;
    animation-duration: 10s;
    animation-delay: 0.4s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(36) {
    left: 82%;
    animation-duration: 9s;
    animation-delay: 0.8s;
    width: 18px;
    height: 18px;
}

.bg-snowflakes li:nth-child(37) {
    left: 88%;
    animation-duration: 8.5s;
    animation-delay: 0.2s;
    width: 20px;
    height: 20px;
}

.bg-snowflakes li:nth-child(38) {
    left: 92%;
    animation-duration: 10.5s;
    animation-delay: 0.6s;
    width: 19px;
    height: 19px;
}

.bg-snowflakes li:nth-child(39) {
    left: 97%;
    animation-duration: 7.5s;
    animation-delay: 1s;
    width: 21px;
    height: 21px;
}

.bg-snowflakes li:nth-child(40) {
    left: 6%;
    animation-duration: 9.5s;
    animation-delay: 0.5s;
    width: 22px;
    height: 22px;
}

/* 第四屏回忆展示 */
.screen-4 {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    margin: 0;
    overflow: hidden;
}

.memories-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
}

.memory-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.memory-box {
    margin: 30px auto;
    max-width: 850px;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.memory-text {
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin: 50px auto 0 auto;
    font-size: 28px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    max-width: 850px;
    box-sizing: border-box;
}

.memory-text p {
    margin: 10px 0;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-size: 28px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.8;
}

.memory-content {
    padding: 20px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1.8;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin: 0 auto 50px auto;
    max-width: 850px;
    box-sizing: border-box;
}

.memory-image-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 50px auto;
    overflow: visible;
    box-sizing: border-box;
}

.memory-group:last-child .memory-image-container {
    margin-bottom: 30px;
}

.memory-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

/* 第四屏：发送者标题加粗 */
.sender-text {
    font-family: 'YangRenDongZhuShiTi-Semibold', cursive !important;
    color: white;
    font-weight: bold;
    font-size: 28px;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 第四屏：祝福内容容器与内容样式 */
.memory-content-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
    padding: 0 20px;
    background-color: rgba(255, 249, 239, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(210, 180, 140, 0.3) inset;
    border: 1px solid rgba(210, 180, 140, 0.5);
    overflow: hidden;
    text-align: center;
    font-family: 'STKaiti', 'Microsoft YaHei', serif;
    font-size: 26px;
    color: #553d2f;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.memory-content-decoration-top,
.memory-content-decoration-bottom {
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    margin: 0 auto 15px auto;
    width: 100%;
    max-width: 600px;
    opacity: 0.9;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="30" viewBox="0 0 600 30"><path d="M50,15 Q150,5 300,15 Q450,25 550,15" stroke="%23d4a08c" stroke-width="1.5" fill="none" stroke-linecap="round"/></svg>');
}

.memory-content-decoration-bottom {
    margin: 15px auto 0 auto;
    transform: rotate(180deg);
}

/* 祝福语内容特殊样式 */
#blessingContent {
    font-family: 'YangRenDongZhuShiTi-Semibold', cursive !important;
    color: #553d2f !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

#blessingContent p {
    font-family: 'YangRenDongZhuShiTi-Semibold', cursive !important;
    color: #553d2f !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

#blessingContent p strong {
    font-weight: bold !important;
    color: #553d2f !important;
    font-size: 1.1em !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* 音频播放区域样式 */
.memory-audio-section {
    padding: 25px;
    margin: 30px auto;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.memory-audio-text {
    text-align: center;
    font-family: Microsoft YaHei, cursive;
    font-size: 28px;
    color: #ff85a2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.audio-player {
    width: 100%;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.audio-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .screen-4 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .memory-box {
        margin: 10px auto;
        max-width: 100%;
        width: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    .memories-container {
        padding: 0 20px;
        text-align: center;
        margin: 0;
    }
    
    .memory-group {
        text-align: center;
    }
    
    /* 第四屏移动端优化 */
    .memory-image-container {
        width: 100%;
        max-width: 850px;
        margin: 15px auto;
        padding: 0 20px;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto 30px auto !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端图片优化 */
    .memory-image {
        width: 100%;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* 确保祝福语容器与图片宽度一致 */
    .memory-text,
    .memory-content,
    .memory-content-container {
        width: 100%;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    /* 内存内容容器 - 确保与图片对齐 */
    .memory-content-container {
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto 30px auto !important;
        padding: 0 20px !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    
    /* 内存内容 - 确保文本居中 */
    .memory-content {
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 20px;
        box-sizing: border-box !important;
    }
    
    /* 内存文本 - 确保完全居中 */
    .memory-text {
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* 祝福语内容 - 核心样式 */
    #blessingContent {
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* 装饰元素 - 确保对齐 */
    .memory-content-decoration-top,
    .memory-content-decoration-bottom {
        width: 100% !important;
        max-width: 850px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 移动端特殊处理 */
    @media (max-width: 768px) {
        .screen-4 {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 20px !important;
            margin: 0 !important;
        }
    }
}

/* 第三屏：圣诞文字与按钮（补充，避免依赖外部样式） */
@font-face {
    font-family: 'BrushUpLife';
    src: url('../../fonts/BrushUpLife.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.merry-christmas-text {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    opacity: 0;
    text-align: center;
    width: 100%;
    font-family: 'BrushUpLife', cursive;
    font-size: 50px;
    color: #FFFFFF;
}

.merry-christmas-text-large {
    font-family: 'BrushUpLife', cursive;
    color: #FFFFFF;
    font-size: 36px;
    text-align: center;
    margin-top: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.button-style1 {
    position: absolute;
    top: 70%;
    opacity: 0; /* 初始透明度，动画会变为1 */
    z-index: 100;
    left: 25%; /* 初始位置，动画会移动到50% */
    transform: translateX(-50%);
}

@keyframes btn1 {
    0% {
        opacity: 0;
        left: 25%;
    }
    30% {
        opacity: 1;
        left: 50%;
        transform: translateX(-50%);
    }
    100% {
        opacity: 1;
        left: 50%;
        transform: translateX(-50%);
    }
}

@keyframes merrybirthdays {
    0% {
        top: 45%;
        opacity: 0;
    }
    30% {
        top: 50%;
        opacity: 1;
    }
    100% {
        top: 55%;
        opacity: 1;
    }
}

/* 通用淡入动画，供第四屏文字使用 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式部分 */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 20px;
    }

    .login-title {
        font-size: 30px;
    }

    .login-form input, .login-form button {
        width: 200px;
    }

    .login-form input:focus {
        width: 220px;
    }

    .memory-image-container {
        width: 100%;
        max-width: 850px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .memory-content {
        font-size: 20px;
        padding: 15px;
    }

    .memory-text {
        font-size: 24px;
    }

    .memory-text p {
        font-size: 24px;
    }
}


