/* 全局样式 */
:root {
    --primary-color: #f8c9d4; /* 玫瑰粉 */
    --secondary-color: #f0d6a8; /* 香槟金 */
    --text-color: #ffffff; /* 珍珠白 */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --crystal-color: rgba(255, 255, 255, 0.15);
    --crystal-border: rgba(255, 255, 255, 0.3);
    --crystal-shadow: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* 背景效果 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 玫瑰花瓣 */
.rose-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.rose-petal {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translateY(-5%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 情话气泡 */
.love-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: bubble-float 10s ease-in-out forwards;
    opacity: 0;
    z-index: 10;
}

@keyframes bubble-float {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    80% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* 主要内容区 */
.container {
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 主标题 */
.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    text-shadow: 
        0 0 5px var(--shadow-color),
        0 0 10px var(--shadow-color),
        0 0 15px var(--shadow-color);
    animation: title-appear 3s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

@keyframes title-appear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 水晶牌特效 */
.crystal-panel {
    background: var(--crystal-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--crystal-border);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: panel-appear 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes panel-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 流光效果 */
.crystal-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    animation: panel-light 8s linear infinite;
    z-index: -1;
}

@keyframes panel-light {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 时间胶囊 */
.time-capsule {
    margin-bottom: 25px;
    text-align: center;
}

.love-counter {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.counter-label {
    margin-right: 10px;
}

#days-counter {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 5px;
    color: #ffb6c1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.anniversary {
    font-size: 1rem;
    opacity: 0.9;
}

#start-date {
    font-weight: bold;
    margin: 0 5px;
}

/* 隐藏情书 */
.hidden-letter {
    text-align: center;
}

.letter-trigger {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.letter-trigger:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.letter-trigger i {
    color: #ff6b6b;
    margin-right: 8px;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.letter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.letter-content.open {
    max-height: 500px;
    margin-top: 20px;
}

.letter-paper {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotate(-1deg);
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    line-height: 1.6;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7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Nd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.05;
    z-index: -1;
}

.signature {
    text-align: right;
    margin-top: 20px;
    font-style: italic;
}

/* 交互彩蛋 */
.easter-egg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

#scent-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#scent-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* 音乐控制 */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

#music-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#music-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#music-toggle.playing i {
    animation: music-playing 1.5s linear infinite;
}

@keyframes music-playing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 配置面板 */
.config-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#config-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#config-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.config-content {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    color: #333;
}

.config-content h3 {
    margin-bottom: 15px;
    text-align: center;
}

.config-item {
    margin-bottom: 10px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.config-item input, .config-item textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

#save-config {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#save-config:hover {
    background: #ff5252;
}

/* 爱心涟漪效果 */
.heart-ripple {
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b6b"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    animation: ripple 1s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .crystal-panel {
        width: 95%;
        padding: 20px;
    }
    
    .letter-paper {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .love-counter {
        font-size: 1rem;
    }
    
    #days-counter {
        font-size: 1.8rem;
    }
    
    .anniversary {
        font-size: 0.9rem;
    }
    
    .letter-paper {
        font-size: 1rem;
        padding: 15px;
    }
    
    .easter-egg, .music-control {
        bottom: 10px;
    }
    
    .easter-egg {
        left: 10px;
    }
    
    .music-control {
        right: 10px;
    }
    
    #scent-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
} 