body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    overflow-y: scroll;
}

html {
    overflow-y: scroll;
}

.container {
    background-color: white;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.profile {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

.profile-info {
    flex-grow: 1;
}

.name {
    margin: 0;
    font-size: 24px;
}

.handle,
.website,
.join-date {
    color: #777;
    margin: 5px 0;
}

.stats {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* 定义标签页按钮的样式 */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

/* 定义标签页按钮的样式 */
.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 50%;
    color: #7fd896;
    border-bottom: 1px solid #eee;
}

/* 定义激活状态下的标签页按钮样式 */
.tab-button.active {
    color: rgb(22, 163, 74);
    border-bottom: 3px solid;
}

.content p a {
    text-decoration: none;
    color: #999;
}

.posts {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease-in-out;
}

.post p {
    margin: 12px 0 6px;
}

.media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: opacity 0.3s ease-in-out;
}

.media a {
    width: 23.75%;
    padding-bottom: 23.75%;
    position: relative;
}

.media img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 5px;
}

.post {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.post .content {
    margin-bottom: 10px;
}

.post .date {
    color: #777;
    font-size: 12px;
}

.date a {
    color: #777;
    text-decoration: none;
}

.post .media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px; /* 添加 margin-bottom */
}

.post .media-container img {
    width: calc(50% - 5px);
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 确保图片内容被覆盖 */
    object-position: center; /* 聚焦在中部 */
    border-radius: 5px;
}

#load-more {
    background: linear-gradient(45deg, #58ed7e, #57a4f3 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
    display: block;
    width: 100%;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .media {
        gap: 6px;
    }
    .post .media-container {
        gap: 7px;
    }
    .post .media-container img {
        width: calc(50% - 3.5px);
        height: 130px;
    }
    .container {
        margin: 0;
        border-radius: 0;
    }
}
