/* 朋友圈页面样式 - 暖色主题 */
.moments-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/bg.png") center center/cover no-repeat;
    background-blend-mode: overlay;
    transform: scale(1.1);
    transition: transform 0.3s ease;
    opacity: 0.3;
}

.moments-header:hover .header-bg {
    transform: scale(1);
    opacity: 0.5;
}

.user-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--text-light);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-info h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* 朋友圈内容容器 */
.moments-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* 动态列表样式 */
.moments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* 动态项目样式 */
.moment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
    transition: all 0.3s ease;
}

.moment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 167, 38, 0.3);
}

.moment-avatar {
    flex-shrink: 0;
}

.moment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: transform 0.3s ease;
}

.moment-avatar img:hover {
    transform: scale(1.1);
}

.moment-content {
    flex-grow: 1;
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.moment-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.moment-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.moment-text {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 1rem;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.moment-images img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.1);
    display: block;
    transition: transform 0.3s ease;
}

.moment-images img:hover {
    transform: scale(1.05);
}

/* 动态操作按钮 */
.moment-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.action-btn .icon {
    font-size: 1.2rem;
}

/* 评论区域 */
.moment-comments {
    background: rgba(255, 183, 77, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 183, 77, 0.2);
}

.comment {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-user {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-text {
    color: var(--text-primary);
}

/* 发布按钮 */
.post-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.post-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

/* 发布模态框 */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.post-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 183, 77, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 183, 77, 0.2);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body textarea {
    width: 100%;
    height: 150px;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 183, 77, 0.3);
    border-radius: var(--radius-md);
    resize: none;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.image-upload {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--spacing-sm);
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.upload-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 183, 77, 0.2);
}

.cancel-btn, .submit-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: rgba(255, 107, 107, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.cancel-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary-color);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 视频容器样式 */
.moment-video {
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.moment-video video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.1);
}

/* 上传按钮样式 */
.upload-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.video-btn {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.video-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .moments-header {
        height: 200px;
    }
    
    .user-info {
        bottom: 20px;
        left: 20px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-info h1 {
        font-size: 1.5rem;
    }
    
    .moment-item {
        padding: var(--spacing-md);
    }
    
    .moment-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .post-btn {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: var(--spacing-md);
    }
    
    .moment-video video {
        max-height: 300px;
    }
    
    .upload-buttons {
        flex-direction: column;
    }
    
    .video-btn {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .moment-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .moment-images img {
        border-radius: var(--radius-sm);
    }
} 