* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    color: #333;
}

#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #B8E6FF;
    font-size: 16px;
    font-family: "Segoe UI Symbol", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(184, 230, 255, 0.7)) drop-shadow(0 0 6px rgba(184, 230, 255, 0.4));
    text-shadow: 0 0 2px rgba(184, 230, 255, 0.5), 0 0 4px rgba(184, 230, 255, 0.3);
    z-index: 1001;
}

.page-index {
    background: linear-gradient(180deg, #d9d5f7 0%, #e8e5f5 50%, #f0eef8 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    position: relative;
    transition: opacity 0.3s ease;
}

.page-index::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.03) 20%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.03) 80%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
}

@keyframes lightSweep {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(150, 150, 200, 0.2);
    max-width: 90%;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #1e3a8a;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1e3a8a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #3b82f6;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.poem-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-style: italic;
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #003B73;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.enter-btn:hover::before,
.enter-btn:active::before {
    opacity: 1;
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.enter-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.snow-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.page-invite {
    background: linear-gradient(180deg, #d9d5f7 0%, #e8e5f5 50%, #f0eef8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    transition: opacity 0.3s ease;
}

#page2 {
    width: 100%;
    min-height: 100vh;
}

.page-invite::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.02) 20%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.02) 80%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(150, 150, 200, 0.2);
    width: 100%;
    max-width: 70%;
    margin: 2rem auto;
    position: relative;
    z-index: 10;
    animation: cardSlideIn 0.8s ease-out 0.3s both;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #334155;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invitation-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1e3a8a;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.invitation-content {
    color: #334155;
    line-height: 2;
    font-size: 0.95rem;
    font-weight: 400;
}

.greeting {
    font-size: 1rem;
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: left;
}

.paragraph {
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 2;
    color: #475569;
    text-indent: 0;
}

.activity-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.activity-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
    color: #475569;
    text-align: left;
}

.activity-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 1rem;
}

.signature {
    margin-top: 2.5rem;
}

.signature-greeting {
    text-align: left;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.signature-salute {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.signature-text {
    margin-top: 0;
    line-height: 1.75;
    color: #475569;
    text-align: right;
    font-weight: 400;
}

.music-play-btn {
    transition: all 0.3s ease;
}

.music-play-btn:active {
    transform: scale(0.9);
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .content-card {
        padding: 2.5rem 1.5rem;
    }
    
    .main-title {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .poem-text {
        font-size: 0.9rem;
        margin-bottom: 2.5rem;
    }
    
    .enter-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        min-width: 180px;
    }
    
    .invitation-card {
        padding: 2.5rem 2rem;
        margin: 1.5rem auto;
        max-width: 92%;
    }
    
    .invitation-title {
        font-size: 1.2rem;
    }
    
    .invitation-content {
        font-size: 0.9rem;
        line-height: 1.75;
    }
    
    .paragraph {
        margin-bottom: 1rem;
        line-height: 1.75;
    }
    
    .music-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .main-title {
        margin-bottom: 2rem;
    }
    
    .poem-text {
        margin-bottom: 2.5rem;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    user-select: none;
    -webkit-user-select: none;
}

