/* 响应式布局 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #f0f8ff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.header {
    padding: 20px;
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
}

.content {
    margin: 20px 0;
}

.photo {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.music-player {
    margin: 20px auto;
    text-align: center;
    max-width: 330px;
    width: 100%;
}

.music-player iframe {
    width: 100%;
    max-width: 330px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.message {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button {
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #ff5252;
}

.footer {
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* 时间轴样式 */
.timeline-section {
    margin: 40px 0;
    padding: 20px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #ff6b6b;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideIn 0.5s forwards;
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(100px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-date {
    color: #ff6b6b;
    font-weight: bold;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .photo {
        margin: 10px 0;
    }
    .message p {
        font-size: 16px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 10px;
    }
}