:root {
    --primary-color: #ff6b8b;
    --secondary-color: #ff8e9e;
    --accent-color: #ff4757;
    --text-color: #333;
    --light-text: #fff;
    --bg-gradient: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'ZCOOL QingKe HuangYou', 'Ma Shan Zheng', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-gradient);
    min-height: 100vh;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.heart-logo {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.name-highlight {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.nav-btn i {
    font-size: 1.2rem;
}

.surprise-btn {
    background: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    min-height: 400px;
}

.section-title {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* 情书样式 */
.love-letter-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.letter-paper {
    background: #fff9f9;
    padding: 2rem;
    max-width: 600px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transform-style: preserve-3d;
    transform: rotateY(-5deg);
    transition: var(--transition);
}

.letter-paper:hover {
    transform: rotateY(0deg);
}

.letter-paper h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #ffb8b8;
    padding-bottom: 0.5rem;
}

.letter-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-indent: 2em;
}

.seal {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: rotate(15deg);
}

/* 相册样式 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-item:hover::after {
    transform: translateY(0);
}

/* 音乐播放器样式 */
.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.album-cover {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinyl {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    border: 2px solid #444;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.vinyl::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.player-controls {
    width: 100%;
    max-width: 500px;
}

audio {
    width: 100%;
    margin-bottom: 1.5rem;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist .song {
    padding: 0.8rem;
    background: rgba(255, 107, 139, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.playlist .song:hover {
    background: rgba(255, 107, 139, 0.2);
}

.playlist .song.playing {
    background: rgba(255, 107, 139, 0.3);
    font-weight: bold;
}

.playlist .song i {
    color: var(--accent-color);
}

/* 网站链接样式 */
.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.website-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.7);
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
}

.website-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.website-card p {
    font-size: 0.9rem;
    text-align: center;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

.anniversary-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

.anniversary-counter i {
    color: var(--accent-color);
}

#daysTogether {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: var(--transition);
    z-index: 100;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

/* 漂浮爱心 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-hearts .heart {
    position: absolute;
    color: rgba(255, 107, 139, 0.7);
    animation: float 10s linear infinite;
    font-size: 1.5rem;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .music-player {
        flex-direction: column;
    }
}