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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #663399;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    color: #ffffff;
    padding: 20px 0 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.header p {
    font-size: 16px;
    opacity: 0.8;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.post {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 16px;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #663399;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.username {
    font-weight: bold;
    font-size: 15px;
    color: #333333;
}

.time {
    color: #666666;
    font-size: 15px;
}

.post-content {
    font-size: 15px;
    line-height: 1.4;
    color: #333333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.post-content a {
    color: #663399;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content p {
    margin-bottom: 8px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f6f8fa;
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.tags {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    color: #663399;
}

.post-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.post-footer a {
    color: #663399;
    text-decoration: none;
    font-size: 12px;
}

.post-footer a:hover {
    text-decoration: underline;
}
