* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}
.enter-num {
    color: #764ba2;
    font-family: fantasy;
    font-weight: bold;
}
/* Logo样式 */
.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 70%;
    max-width: 70%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 当不是封面页时显示logo */
body:not(.cover-active) .logo-container {
    opacity: 1;
    visibility: visible;
}

.top-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.top-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* 音乐播放器样式 */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.music-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.music-icon.playing {
    animation: rotate 3s linear infinite;
    background: rgba(255, 215, 0, 0.9);
}

.music-icon.paused {
    animation: none;
    background: rgba(255, 255, 255, 0.9);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

.page-content {
    /* text-align: center; */
    color: white;
    padding: 20px;
    max-width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: left;
}

.signature-image {
    height: 25px; /* 与文字高度匹配 */
    width: auto; /* 保持宽高比 */
    vertical-align: middle; /* 与文字垂直对齐 */
}

.cover-page {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.cover-content {
    text-align: center;
    color: #333;
    padding: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: bounce 2s infinite;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.unlock-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.unlock-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

#phoneInput {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

#phoneInput:focus {
    border-color: #667eea;
}

#unlockBtn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#unlockBtn:hover {
    transform: translateY(-2px);
}

.hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* 装饰元素 */
.decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flower {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.flower:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.flower:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.flower:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

/* 第二页样式 */
#page2 {
    background-image: url('bg-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 页面底部文字样式 */
.page-footer {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 15;
}

.footer-text {
    color: #1e3a8a; /* 深蓝色 */
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
    font-weight: 500;
}

.welcome-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.user-name {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.welcome-message {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.65);
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    /* max-width: 100%; */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    /* backdrop-filter: blur(15px); */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-message p {
    font-size: 1.4rem;
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    color: #2c3e50;
    text-shadow: none;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    font-family: 'Noto Serif SC', 'KaiTi', '楷体', 'STKaiti', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

/* .welcome-message p:nth-child(1) { 
    animation-delay: 0.2s; 
    font-weight: 600;
    color: #e74c3c;
    font-size: 1.6rem;
} */
.welcome-message p:nth-child(2) { animation-delay: 0.4s; }
.welcome-message h3 {
    font-size: 2.2rem;
    color: #3498db;
    margin-top: 5px;
    animation: fadeInUp 0.8s 0.6s forwards;
    opacity: 0;
    text-shadow: none;
    font-weight: 700;
    text-align: center;
    font-family: 'Noto Serif SC', 'KaiTi', '楷体', 'STKaiti', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

/* 浮动元素 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
}

.element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element:nth-child(2) {
    top: 40%;
    right: 5%;
    animation-delay: 1s;
}

.element:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
}

.element:nth-child(4) {
    bottom: 25%;
    right: 10%;
    animation-delay: 3s;
}

/* 第三页样式 */
#page3 {
    background-image: url('bg-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.gratitude-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-align: center;
}

.gratitude-content {
    background: rgba(255, 255, 255, 0.65);
    padding: 40px;
    border-radius: 25px;
    width: 85%;
    max-width: 85%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gratitude-content p {
    font-size: 1.4rem;
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    color: #2c3e50;
    text-shadow: none;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

.gratitude-content p:nth-child(1) { 
    animation-delay: 0.2s; 
    font-weight: 600;
    color: #e74c3c;
    font-size: 1.6rem;
}
.gratitude-content p:nth-child(2) { animation-delay: 0.4s; }
.gratitude-content p:nth-child(3) { animation-delay: 0.6s; }
.gratitude-content p:nth-child(4) { animation-delay: 0.8s; }

/* 心形动画 */
.heart-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 2.5rem;
    animation: heartbeat 2s ease-in-out infinite;
}

.heart:nth-child(1) {
    top: 10%;
    left: 6%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    top: 15%;
    right: 7%;
    animation-delay: 0.7s;
}

.heart:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 1.4s;
}

/* 第四页样式 */
#page4 {
    background-image: url('bg-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blessing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-align: center;
}

.blessing-content {
    background: rgba(255, 255, 255, 0.65);
    padding: 40px;
    border-radius: 25px;
    width: 85%;
    max-width: 85%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blessing-content p {
    font-size: 1.4rem;
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    color: #2c3e50;
    text-shadow: none;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

.blessing-content p:nth-child(1) { 
    animation-delay: 0.2s; 
    font-weight: 600;
    color: #e74c3c;
    font-size: 1.6rem;
}
.blessing-content p:nth-child(2) { animation-delay: 0.4s; }
.blessing-content p:nth-child(3) { animation-delay: 0.6s; }
.blessing-content p:nth-child(4) { animation-delay: 0.8s; }

/* 星星动画 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 25%;
    right: 5%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    bottom: 25%;
    left: 10%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

/* 第五页样式 */
.memory-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.memory-content p {
    font-size: 1.2rem;
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.memory-content p:nth-child(1) { animation-delay: 0.2s; }
.memory-content p:nth-child(2) { animation-delay: 0.4s; }
.memory-content p:nth-child(3) { animation-delay: 0.6s; }
.memory-content p:nth-child(4) { animation-delay: 0.8s; }

.photo-frame {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.photo-placeholder {
    font-size: 1.5rem;
    color: #ffd700;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

/* 第六页样式 */
.final-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.final-message p {
    font-size: 1.2rem;
    margin: 15px 0;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.final-message p:nth-child(1) { animation-delay: 0.2s; }
.final-message p:nth-child(2) { animation-delay: 0.4s; }
.final-message p:nth-child(3) { animation-delay: 0.6s; }
.final-message p:nth-child(4) { animation-delay: 0.8s; }

.signature {
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.signature p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #ffd700;
}

.date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.final-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
}

.balloon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.balloon:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 1.5s;
}

.balloon:nth-child(3) {
    bottom: 30%;
    left: 50%;
    animation-delay: 3s;
}

.page-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 向上滚动箭头 */
.scroll-arrow {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 50;
    width: 40px;
    height: 40px;
    background-image: url('arrow-up-double-line.svg');
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    animation: bounceUp 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.scroll-arrow:hover {
    transform: translateX(-50%) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6)) brightness(1.3);
}

/* 向上弹跳动画 */
@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .welcome-header h2,
    .gratitude-section h2,
    .blessing-section h2,
    .memory-section h2,
    .final-section h2 {
        font-size: 2rem;
    }
    
    .user-name {
        font-size: 1.5rem;
    }
    
    .welcome-message p,
    .gratitude-content p,
    .blessing-content p,
    .memory-content p,
    .final-message p {
        font-size: 1.1rem;
    }
    
    .welcome-message h3 {
        font-size: 1.8rem;
    }
    
    .unlock-section {
        padding: 20px;
    }
    
    .unlock-section h2 {
        font-size: 1.3rem;
    }
    
    #phoneInput,
    #unlockBtn {
        padding: 12px;
        font-size: 1rem;
    }

    .scroll-arrow {
        width: 32px;
        height: 32px;
        bottom: 35px;
        background-size: 32px 32px;
    }
    
    /* 移动端Logo样式调整 */
    .logo-container {
        top: 15px;
        left: 15px;
        width: 65%;
        max-width: 65%;
    }
    
    /* 移动端音乐播放器样式调整 */
    .music-player {
        top: 15px;
        right: 15px;
    }
    
    .music-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
} 