* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

:root {
    --primary-color: #8a2be2;
    --secondary-color: #4b0082;
    --accent-color: #ff6b8b;
    --text-color: #f8f9fa;
    --card-bg: rgba(30, 30, 46, 0.85);
    --transition-smooth: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 100;
    margin: 0;
    background: linear-gradient(135deg, rgba(10, 10, 40, 0.6), rgba(50, 50, 100, 0.6));
    animation: fadeIn 1s ease-out;
    overflow-x: hidden;
}

.container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 星空背景 */
.night-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: starsTwinkle 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes starsTwinkle {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.star-bg {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkleBg 4s infinite both;
}

.star-bg.large {
    width: 2px;
    height: 2px;
}

.star-bg.medium {
    width: 1.5px;
    height: 1.5px;
}

.star-bg.small {
    width: 1px;
    height: 1px;
}

@keyframes twinkleBg {
    0%, 100% { opacity: 0.1; filter: blur(0px); }
    50% { opacity: 0.8; filter: blur(1px); }
}

/* 改进的烟花效果 */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 2s ease-out;
}

.firework {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.firework-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: trailFade 1s linear forwards;
    filter: blur(1px);
}

@keyframes trailFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    z-index: 10;
    pointer-events: none;
}

.particle.bright {
    filter: blur(1px);
}

/* 生日卡片样式优化 */
.birthday-card {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        filter: brightness(1.1);
    }
}

/* 标题样式优化 */
.birthday-title {
    margin-bottom: 30px;
}

.birthday-title h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5em;
    color: #FFB7D5;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.birthday-title h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5em;
    color: #FFC0CB;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.birthday-date {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2em;
    color: #FFD1DC;
    margin-bottom: 20px;
}

.age-counter {
    margin: 30px 0;
}

.counter-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2em;
    color: #FFD1DC;
    margin-bottom: 10px;
}

.counter-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4em;
    color: #FFB7D5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
}

.counter-suffix {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2em;
    color: #FFD1DC;
}

.wishes {
    margin-top: 40px;
    font-family: 'Noto Sans SC', sans-serif;
    color: #FFD1DC;
    line-height: 1.8;
}

.wishes p {
    margin: 10px 0;
    font-size: 1.1em;
}

.wishes p:nth-child(1) { animation-delay: 1s; }
.wishes p:nth-child(2) { animation-delay: 1.3s; }
.wishes p:nth-child(3) { animation-delay: 1.6s; }
.wishes p:nth-child(4) { animation-delay: 1.9s; }
.wishes p:nth-child(5) { animation-delay: 2.2s; }
.wishes p:nth-child(6) { animation-delay: 2.5s; }

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
        filter: blur(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 蛋糕样式修改 */
.cake-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.cake {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.cake-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, #FF9FB1, #FFB7D5);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 159, 177, 0.3);
}

.cake-middle {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 60px;
    background: linear-gradient(45deg, #FFB7D5, #FFC0CB);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255, 183, 213, 0.3);
}

.cake-bottom {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: linear-gradient(45deg, #FFC0CB, #FFD1DC);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 192, 203, 0.3);
}

.candle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 5px;
}

.flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 20px;
    background: linear-gradient(45deg, #FF4500, #FFA500);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1);
    }
    100% {
        transform: translateX(-50%) scale(1.1);
    }
}

/* 音乐控制 */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.music-toggle.playing {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 浮动装饰元素 */
.decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #FFB7D5, #FFC0CB);
    border-radius: 50%;
    opacity: 0.6;
    animation: decorationFloat 3s ease-in-out infinite;
}

.d1 { top: 20px; left: 20px; animation-delay: 0s; }
.d2 { top: 20px; right: 20px; animation-delay: 1s; }
.d3 { bottom: 20px; left: 20px; animation-delay: 2s; }
.d4 { bottom: 20px; right: 20px; animation-delay: 3s; }

@keyframes decorationFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 自动提示 */
.auto-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    text-align: center;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
}

/* 流星效果 */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, transparent);
    cursor: pointer;
    overflow: visible;
    pointer-events: auto;
    z-index: 1000;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    filter: blur(5px);
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

/* 美化弹窗样式 */
.wish-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.5s ease-out forwards;
    backdrop-filter: blur(10px);
}

.wish-content {
    background: linear-gradient(135deg, rgba(90, 55, 150, 0.9), rgba(50, 30, 90, 0.9));
    border-radius: 24px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: popupScaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupScaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wish-content h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
}

.wish-content h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.wish-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.wish-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.wish-content li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 25px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: wishItemFadeIn 0.5s forwards;
}

.wish-content li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.wish-content li:nth-child(1) { animation-delay: 0.2s; }
.wish-content li:nth-child(2) { animation-delay: 0.4s; }
.wish-content li:nth-child(3) { animation-delay: 0.6s; }
.wish-content li:nth-child(4) { animation-delay: 0.8s; }
.wish-content li:nth-child(5) { animation-delay: 1s; }

@keyframes wishItemFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.popup-image {
    font-size: 4rem;
    margin: 30px 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: popupImageAnimation 3s infinite;
}

@keyframes popupImageAnimation {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.05) rotate(5deg); }
}

.close-wish {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.close-wish::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.close-wish:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.5);
}

.close-wish:hover::before {
    transform: translateX(100%);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        height: 100%;
    }

    .container {
        padding: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .birthday-card {
        padding: 30px 20px;
    }
    
    .birthday-title h1 {
        font-size: 2.8em;
    }
    
    .birthday-title h2 {
        font-size: 2em;
    }
    
    .counter-number {
        font-size: 3.5em;
    }
    
    .wishes p {
        font-size: 1em;
    }
    
    .cake-container {
        width: 150px;
        height: 150px;
    }
    
    .cake-top {
        width: 90px;
        height: 30px;
    }
    
    .cake-middle {
        width: 120px;
        height: 45px;
    }
    
    .cake-bottom {
        width: 150px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .birthday-card {
        padding: 30px 15px;
    }
    
    .birthday-title h1 {
        font-size: 2.2em;
    }
    
    .birthday-title h2 {
        font-size: 1.8em;
    }
    
    .counter-number {
        font-size: 3em;
    }
    
    .wishes p {
        font-size: 0.9em;
    }
    
    .cake-container {
        width: 120px;
        height: 120px;
    }
    
    .cake-top {
        width: 70px;
        height: 25px;
    }
    
    .cake-middle {
        width: 100px;
        height: 35px;
    }
    
    .cake-bottom {
        width: 120px;
        height: 50px;
    }
}

/* 蝴蝶动画 */
.butterfly {
    pointer-events: none;
    z-index: 100;
}

.butterfly-svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: butterflyWings 0.5s ease-in-out infinite alternate;
}

@keyframes butterflyWings {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0.5);
    }
}

@keyframes butterflyFlight {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-100px, -200px) rotate(-10deg);
    }
    50% {
        transform: translate(-200px, -400px) rotate(10deg);
    }
    75% {
        transform: translate(-300px, -600px) rotate(-5deg);
    }
    100% {
        transform: translate(-400px, -800px) rotate(0deg);
    }
}

/* 移动端密码输入框 */
.secret-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.secret-input-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.secret-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.secret-input-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #FFB7D5;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.secret-input-hint {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 提示消息 */
.toast-message {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 秘密消息框 */
.secret-message-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.secret-message-box.show {
    opacity: 1;
}

.secret-message-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

.secret-message-content p {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.close-message {
    background: #FFB7D5;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-message:hover {
    background: #FF9FB1;
}

/* 移动端搜索触发器 */
.mobile-secret-trigger {
    transition: transform 0.3s ease;
}

.mobile-secret-trigger:active {
    transform: scale(0.9);
}

/* 梅花元素和特效 */
.plum-blossom {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 50;
}

.plum-blossom svg {
    width: 100%;
    height: 100%;
}

.plum-blossom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.plum-decoration {
    position: absolute;
    width: 120px;
    height: 200px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.6;
}

.plum-decoration.left {
    top: 20px;
    left: 20px;
    transform: rotate(-15deg);
}

.plum-decoration.right {
    top: 30px;
    right: 20px;
    transform: rotate(15deg);
}

.plum-branch {
    position: absolute;
    width: 200px;
    height: 300px;
    bottom: 20px;
    right: 20px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 5;
}

/* 彩蛋指示器 */
.easter-egg-hint {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
    color: white;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.easter-egg-hint:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.egg-icon {
    font-size: 18px;
    animation: eggBounce 1.5s ease infinite;
}

@keyframes eggBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 彩蛋菜单 */
.easter-egg-menu {
    position: fixed;
    bottom: 70px;
    left: 20px;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 250px;
    max-height: 400px;
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.easter-egg-menu.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.easter-egg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.easter-egg-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    cursor: pointer;
}

.easter-egg-item.discovered {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.easter-egg-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.egg-check {
    margin-right: 10px;
    color: #47CF73;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easter-egg-item.discovered .egg-check {
    opacity: 1;
}

.egg-name {
    font-weight: 500;
}

.egg-count {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: auto;
}

.aurora-borealis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 192, 203, 0.1) 0%, 
        rgba(255, 182, 193, 0.2) 20%, 
        rgba(219, 112, 147, 0.3) 40%, 
        rgba(199, 21, 133, 0.2) 60%, 
        rgba(255, 20, 147, 0.1) 80%, 
        rgba(255, 105, 180, 0.2) 100%);
    background-size: 400% 400%;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    animation: auroraShift 10s ease-in-out infinite, auroraFade 1s ease-in-out forwards;
}

@keyframes auroraShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes auroraFade {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

/* 倒计时样式 */
.birthday-countdown {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthday-countdown:hover {
    transform: scale(1.05);
    background: rgba(255, 107, 139, 0.25);
}

.countdown-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.countdown-days {
    font-size: 32px;
    font-weight: bold;
    color: #FF6B8B;
    text-shadow: 0 0 10px rgba(255, 107, 139, 0.7);
}

.countdown-text {
    font-size: 14px;
}

.countdown-clicked {
    animation: pulse 0.5s ease-in-out;
}

/* 增强星星效果 */
.enhanced-star {
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

.color-star {
    z-index: 2;
}

.star-trail {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.7));
    transform-origin: right center;
}

.shooting-star.enhanced {
    width: 5px !important;
    height: 5px !important;
    background-color: white !important;
    border-radius: 50%;
    z-index: 10;
}

/* 日出效果 */
.sun-effect {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,200,64,1) 0%, rgba(255,130,53,0.7) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: 5;
    animation: sunRise 5s ease-in-out forwards;
    pointer-events: none;
}

/* 月亮效果 */
.moon-effect {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230,230,250,1) 0%, rgba(180,180,250,0.5) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    z-index: 5;
    box-shadow: 0 0 30px rgba(230,230,250,0.8);
    animation: moonGlow 8s ease-in-out forwards;
    pointer-events: none;
}

/* 成就脉冲效果 */
.achievement-pulse {
    animation: backgroundPulse 3s ease-in-out;
}

/* 动画定义 */
@keyframes sunRise {
    0% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 0; 
    }
    20% { 
        opacity: 0.7; 
    }
    80% { 
        opacity: 0.7; 
    }
    100% { 
        transform: translateX(-50%) translateY(150px); 
        opacity: 0; 
    }
}

@keyframes moonGlow {
    0% { opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes backgroundPulse {
    0% { background: linear-gradient(45deg, rgba(255,107,139,0.2), rgba(160,108,255,0.2)); }
    25% { background: linear-gradient(45deg, rgba(160,108,255,0.2), rgba(78,205,196,0.2)); }
    50% { background: linear-gradient(45deg, rgba(78,205,196,0.2), rgba(255,209,102,0.2)); }
    75% { background: linear-gradient(45deg, rgba(255,209,102,0.2), rgba(255,107,107,0.2)); }
    100% { background: linear-gradient(45deg, rgba(255,107,107,0.2), rgba(255,107,139,0.2)); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    70% { transform: translateX(-50%) scale(0.9); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes bounceOut {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    20% { transform: translateX(-50%) scale(0.9); }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scale(0.3); opacity: 0; }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        filter: brightness(1.1);
    }
}

/* 加载动画优化 */
@keyframes fadeIn {
    from {
        opacity: 0;
        filter: blur(20px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 选择文本样式 */
::selection {
    background: rgba(255, 107, 139, 0.3);
    color: #fff;
}

/* 图片加载优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式优化 */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff8fab;
    text-shadow: 0 0 10px rgba(255, 107, 139, 0.5);
}

/* 添加手机查看指南 */
.mobile-guide {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    color: #FFD1DC;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.9em;
    z-index: 1000;
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-guide {
        display: block;
    }
}