
.moment-modal{
    position: fixed;
    z-index: 20;
    width: 100%;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    display: none;
    /*display: flex;*/
    flex-direction: column;
    max-height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

}
.moment-modal.show{
    display: flex;
}
/* 顶部导航 */
.moment-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.moment-top-bar .title {
    font-weight: 500;
    font-size: 17px;
}

.moment-top-bar .icons i {
    font-size: 20px;
    margin-left: 15px;
    color: #333;
}

/* 封面区域 */
.moment-cover-container {
    position: relative;
    /*height: 240px;*/
    margin-top: 44px;
}

.moment-cover-img {
    width: 100%;
    height: 240px;
    background-color: #2575fc;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.moment-avatar-container {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 40;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.moment-avatar-img {
    width: 100%;
    height: 100%;
    /*background-color: #ff9e80;*/
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 36px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 内容区域 */
.moment-content-area {
    /*padding: 60px 15px 20px;*/
    /*overflow: auto;*/
    /*-webkit-overflow-scrolling: touch;*/
    /*position: relative;*/
    /*z-index: 30;*/
}

.moment-list {
    background: white;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.moment-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.moment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.moment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    /*background-color: #4fc3f7;*/
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.moment-avatar img{
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.moment-user {
    margin-left: 12px;
    flex-grow: 1;
}
.moment-item.active .moment-add-comment{
    display: flex;
}
.moment-action-btn .far,
.moment-action-btn  span
{
    pointer-events: none;
}
.moment-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.moment-time {
    font-size: 12px;
    color: #999;
}

.moment-content {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
}
.moment-images img[src='']{
    display: none;
}
.remove-comment,.remove-moment{
    color: red;
}
.moment-img {
    aspect-ratio: 1/1;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9e9e9e;
}

.moment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.moment-action-btn {
    display: flex;
    align-items: center;
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

.moment-action-btn i {
    margin-right: 4px;
    font-size: 16px;
}

.moment-liked {
    color: #2196f3;
}

.moment-likes-section {
    background: #f7f7f7;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 14px;
}

.moment-likes-section i {
    color: #2196f3;
    margin-right: 5px;
}

.moment-comments-section {
    margin-top: 8px;
}

.moment-comment-item {
    padding: 8px 12px;
    background: #f7f7f7;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.moment-comment-author {
    color: #576b95;
    font-weight: 500;
    margin-right: 5px;
}

.moment-add-comment {
    display: none;
    margin-top: 8px;
}

.moment-comment-input {
    flex-grow: 1;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
}

.moment-send-btn {
    background: none;
    border: none;
    color: #2196f3;
    font-weight: 500;
    padding: 0 8px;
    font-size: 14px;
}

/* 底部导航 */
.moment-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    display: flex;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
}

.moment-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 12px;
}

.moment-nav-item.active {
    color: #07c160;
}

.moment-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

/* 相机按钮 */
.moment-camera-btn {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #07c160;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 90;
}

.moment-camera-btn i {
    font-size: 24px;
}