@charset "utf-8";

/**
 * Moments 朋友圈样式
 *
 */

/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 旧版样式（兼容性保留） */
.moments-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

.moments-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.moments-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.moments-subtitle {
    color: #999;
    font-size: 14px;
}

.moments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.moments-hint {
    margin-top: 10px;
    font-size: 14px;
}

.moment-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.moment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.moment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.moment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.moment-info {
    flex: 1;
}

.moment-author {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

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

.moment-private {
    font-size: 18px;
    margin-left: 10px;
}

.moment-content {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.moment-images {
    margin-top: 12px;
}

.moment-image-single {
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.moment-image-single img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.moment-image-single img:hover {
    transform: scale(1.02);
}

.moment-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.moment-image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
}

.moment-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.moment-image-item img:hover {
    transform: scale(1.05);
}

.moments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 8px 20px;
    background: #007aff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
}

.pagination-btn:hover {
    background: #0056b3;
}

.pagination-info {
    color: #999;
    font-size: 14px;
}

/* 图片查看模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* 私密内容掩盖样式 - 灰白相间斜线 */
.private-content-mask {
    position: relative;
    overflow: hidden;
    min-height: 40px;
}

.private-content-mask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        #e5e7eb 0px,
        #e5e7eb 10px,
        #f3f4f6 10px,
        #f3f4f6 20px
    );
    z-index: 2;
    pointer-events: none;
}

.dark .private-content-mask::before {
    background-image: repeating-linear-gradient(
        45deg,
        #374151 0px,
        #374151 10px,
        #4b5563 10px,
        #4b5563 20px
    );
}

.private-content-mask > * {
    position: relative;
    z-index: 1;
    filter: blur(3px);
    opacity: 0.3;
    user-select: none;
    pointer-events: none;
}

/* 私密模式输入框样式 - 灰白相间斜线背景 */
#textarea-wrapper.private-input-mask {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

#textarea-wrapper.private-input-mask::before {
    content: '';
    position: absolute;
    /* 精确匹配textarea的内容区域，考虑border宽度 */
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background-image: repeating-linear-gradient(
        45deg,
        #e5e7eb 0px,
        #e5e7eb 10px,
        #f3f4f6 10px,
        #f3f4f6 20px
    );
    z-index: 1;
    pointer-events: none;
    border-radius: calc(0.5rem - 1px);
    /* 确保背景不超出容器 */
    margin: 0;
    padding: 0;
}

.dark #textarea-wrapper.private-input-mask::before {
    background-image: repeating-linear-gradient(
        45deg,
        #374151 0px,
        #374151 10px,
        #4b5563 10px,
        #4b5563 20px
    );
}

#textarea-wrapper.private-input-mask textarea {
    border-color: #f3f4f6 !important; /* gray-100 */
    background-color: transparent !important;
    position: relative;
    z-index: 2;
    /* 确保textarea的border-radius与wrapper一致 */
    border-radius: 0.5rem;
    /* 确保border宽度为1px */
    border-width: 1px;
}

.dark #textarea-wrapper.private-input-mask textarea {
    border-color: #e5e7eb !important; /* gray-200 */
}

/* QQ空间说说风格样式 */
.qq-moment-publish {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 10px;
}

.qq-moments-list {
    overflow: hidden;
}

#comments-list {
    background: #f5f5f5;
    padding: 0;
}

/* 说说项 */
.qq-moment-item {
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 15px 20px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.qq-moment-item:last-child {
    border-bottom: none;
}

/* QQ空间说说头部 */
.qq-moment-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* QQ空间头像 */
.qq-moment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.qq-moment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: block;
    object-fit: cover;
}

/* QQ空间内容区域 */
.qq-moment-content {
    flex: 1;
    min-width: 0;
}

/* QQ空间昵称 */
.qq-moment-title {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qq-moment-nickname {
    font-size: 14px;
    font-weight: bold;
    color: #12b7f5;
    cursor: pointer;
}

.qq-moment-nickname:hover {
    text-decoration: none;
}

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

/* 说说文本 */
.qq-moment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
    word-wrap: break-word;
    word-break: break-all;
}

/* QQ空间图片容器 */
.qq-moment-images {
    margin: 10px 0;
}

.qq-moment-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.qq-moment-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.qq-moment-image-container.single-image {
    display: block;
}

.qq-moment-image-container.single-image img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: block;
}

.qq-moment-image-container.two-images img {
    width: calc(50% - 2.5px);
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.qq-moment-image-container.three-images img {
    width: calc(33.333% - 4px);
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.qq-moment-image-container.four-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.qq-moment-image-container.four-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.qq-moment-image-container.multiple-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.qq-moment-image-container.multiple-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.qq-moment-image-container img {
    transition: opacity 0.2s;
}

.qq-moment-image-container img:hover {
    opacity: 0.85;
}

/* QQ空间底部信息 */
.qq-moment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}

.qq-moment-time {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* QQ空间操作按钮 */
.qq-moment-actions {
    position: relative;
}

.qq-moment-action-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 2px;
    transition: background 0.2s;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qq-moment-action-btn i {
    font-size: 20px;
}

.qq-moment-action-btn:hover {
    background: #f0f0f0;
    color: #666;
}

/* QQ空间模态框 */
.qq-moment-actions {
    position: relative;
}

.qq-moment-modal {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 8px;
    z-index: 9999;
}

.qq-moment-modal.hidden {
    display: none;
}

.qq-moment-modal:not(.hidden) {
    display: block;
}

.qq-moment-modal-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qq-moment-modal-link {
    color: #333;
    text-decoration: none;
    padding: 6px 16px;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
    display: block;
}

.qq-moment-modal-link:hover {
    background: #f0f0f0;
    color: #000;
}

.qq-moment-modal-divider {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
    margin: 0 4px;
}

/* QQ空间点赞和评论区域 */
.qq-moment-interaction {
    margin-top: 10px;
    margin-left: 62px; /* 与内容区域对齐（头像50px + 间距12px） */
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

@media (max-width: 640px) {
    .qq-moment-interaction {
        margin-left: 52px; /* 移动端头像40px + 间距12px */
    }
    
    /* 手机端模态框定位调整 */
    .qq-moment-modal {
        right: 100%;
        left: auto;
        top: 0;
        margin-right: 8px;
        z-index: 9999;
    }
    
    .qq-moment-modal-content {
        min-width: 120px;
        white-space: nowrap;
    }
}

.qq-moment-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: none;
}

.qq-moment-like-icon {
    font-size: 16px;
    color: #ff6b6b;
    margin-right: 4px;
}

.qq-moment-like-text {
    font-size: 13px;
    color: #576b95;
}

/* QQ空间评论列表 */
.qq-moment-comments {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qq-moment-comment-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.qq-moment-comment-border {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.qq-moment-comment-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.qq-moment-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: block;
    object-fit: cover;
}

.qq-moment-comment-content {
    flex: 1;
    min-width: 0;
}

.qq-moment-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.qq-moment-comment-name {
    font-size: 13px;
    font-weight: bold;
    color: #12b7f5;
    cursor: pointer;
}

.qq-moment-comment-name:hover {
    text-decoration: none;
}

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

.qq-moment-comment-ip {
    font-size: 11px;
    color: #999;
}

.qq-moment-comment-private {
    font-size: 11px;
    color: #999;
}

.qq-moment-comment-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.qq-moment-mention {
    color: #12b7f5;
    font-weight: 500;
}

.qq-moment-comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.qq-moment-comment-reply,
.qq-moment-comment-delete {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.qq-moment-comment-reply:hover {
    color: #a0a0ff;
}

.qq-moment-comment-delete:hover {
    color: #f56c6c;
}

.qq-moment-comment-divider {
    color: #ddd;
    font-size: 12px;
}

/* QQ空间回复图片 */
.qq-moment-reply-images {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qq-moment-reply-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

/* 发布表单头像样式 */
.qq-publish-avatar {
    width: calc(2 * (1.5rem + 2 * 6px + 2 * 1px) + 8px); /* 两个input框的高度 + gap (约76px) */
    height: calc(2 * (1.5rem + 2 * 6px + 2 * 1px) + 8px); /* 两个input框的高度 + gap (约76px) */
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    background: #f5f5f5;
}

.qq-publish-email {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    width: 200px;
    background: #fafafa;
    color: #333;
}

.qq-publish-nickname {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    width: 200px;
    background: #fafafa;
    color: #333;
}

.qq-publish-nickname[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.qq-publish-nickname.hidden {
    display: none;
}

.qq-publish-textarea {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    background: #fafafa;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    font-family: inherit;
    color: #333;
}

.qq-publish-textarea::placeholder {
    color: #999;
}

.qq-publish-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
}

.qq-publish-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.qq-publish-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    background: none;
    font-size: 18px;
}

.qq-publish-tool-btn:hover {
    background: #f0f0f0;
    color: #12b7f5;
}

.qq-publish-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
}

.qq-publish-cancel {
    padding: 6px 12px;
    font-size: 13px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.qq-publish-cancel:hover {
    background: #f0f0f0;
    color: #f56c6c;
}

.qq-publish-submit {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qq-publish-submit:hover {
    background: #333333;
}

.qq-publish-submit:active {
    background: #000000;
}

/* QQ空间表情面板 */
#emoji-picker-panel {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

/* QQ空间图片预览 */
#image-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#image-preview .eddie-moment-image-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
    background: #f5f5f5;
}

#image-preview .eddie-moment-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image-preview .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* QQ空间整体背景 */
.min-h-screen.bg-gray-50\/50 {
    background: #f5f5f5;
}

/* QQ空间标题 */
h1.text-3xl {
    color: #333;
    font-weight: 500;
}

/* 响应式优化 */
@media (max-width: 640px) {
    .qq-moment-item {
        padding: 12px 15px;
    }
    
    .qq-moment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .qq-moment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .qq-moment-nickname {
        font-size: 13px;
    }
    
    .qq-moment-text {
        font-size: 13px;
    }
}

/* 朋友圈css*/
.eddie-moment-container {
  max-width: 1024px;
  padding:10px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

.eddie-moment-user-panel {
  padding: 15px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.eddie-moment-comment-input {
  background-color: transparent;
  width: 100%;
  min-height: 80px;
  border: none;
  outline: none;
  resize: none;
  text-align: justify;
  overflow: hidden;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-primary);
}

.eddie-moment-form-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eddie-moment-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.eddie-moment-name-input {
  height: 40px;
  width: 130px;
  padding-left: 16px;
  border-radius: 20px;
  background-color: #F5F5F5;
  transition: width 0.3s ease;
  border: none;
  outline: none;
  font-size: 14px;
}

.eddie-moment-name-input:hover {
  width: 160px;
}

.eddie-moment-image-upload {
  margin: 10px 0;
}

.eddie-moment-upload-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.eddie-moment-upload-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.eddie-moment-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.eddie-moment-image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.eddie-moment-image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eddie-moment-image-preview-item .remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eddie-moment-comment-item {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 15px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 作者名称 */
.eddie-moment-author-name {
  font-weight: bold;
  font-size: 18px;
  padding: 10px 0;
}

.eddie-moment-timeandip {
  display: flex;
  flex-direction: row;
  gap: 60px;
  color: var(--color-text-light);
  padding: 20px 0;
}

.eddie-moment-reply-time {
  color: var(--color-text-light);
}

/* 取消编辑,提交， */
.eddie-moment-cancel-button,
.eddie-moment-submit-button {
  padding: 10px 30px;
  border-radius: 20px;
  background: var(--color-secondary);
  color: var(--color-text-white);
  border: none;
  transition: background-color 0.3s ease;
  cursor:pointer;
  font-size: 14px;
}

/* 取消编辑hover,提交hover,子评论编辑hover,编辑,回复*/
.eddie-moment-submit-button:hover,
.eddie-moment-cancel-button:hover,
.eddie-moment-edit-reply-button:hover,
.eddie-moment-edit-button:hover,
.eddie-moment-reply-button:hover{
  background: var(--color-text-primary);
  color: var(--color-text-white);
}

/* 回复按钮,编辑按钮,子评论回复*/
.eddie-moment-reply-button,.eddie-moment-edit-button,.eddie-moment-edit-reply-button{
  padding: 4px 6px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
  border: none;
  font-size: 12px;
  cursor:pointer;
}

/* 微信风格9宫格图片布局 */
.eddie-moment-image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-top: 10px;
  max-width: 100%;
}

.eddie-moment-image-container img {
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.eddie-moment-image-container img:hover {
  opacity: 0.8;
}

/* 单张图片 - 大尺寸 */
.eddie-moment-image-container.single-image {
  max-width: 200px;
}

.eddie-moment-image-container.single-image img {
  width: 200px;
  height: 200px;
  max-width: 100%;
}

/* 2张图片 - 左右排列 */
.eddie-moment-image-container.two-images {
  max-width: 200px;
}

.eddie-moment-image-container.two-images img {
  width: 98px;
  height: 98px;
}

/* 3张图片 - 一行三张 */
.eddie-moment-image-container.three-images {
  max-width: 200px;
}

.eddie-moment-image-container.three-images img {
  width: 64px;
  height: 64px;
}

/* 4张图片 - 2x2网格 */
.eddie-moment-image-container.four-images {
  max-width: 200px;
}

.eddie-moment-image-container.four-images img {
  width: 98px;
  height: 98px;
}

/* 5-9张图片 - 3列网格 */
.eddie-moment-image-container.multiple-images {
  max-width: 200px;
}

.eddie-moment-image-container.multiple-images img {
  width: 64px;
  height: 64px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .eddie-moment-image-container.single-image {
    max-width: 150px;
  }
  
  .eddie-moment-image-container.single-image img {
    width: 150px;
    height: 150px;
  }
  
  .eddie-moment-image-container.two-images {
    max-width: 150px;
  }
  
  .eddie-moment-image-container.two-images img {
    width: 73px;
    height: 73px;
  }
  
  .eddie-moment-image-container.three-images {
    max-width: 150px;
  }
  
  .eddie-moment-image-container.three-images img {
    width: 48px;
    height: 48px;
  }
  
  .eddie-moment-image-container.four-images {
    max-width: 150px;
  }
  
  .eddie-moment-image-container.four-images img {
    width: 73px;
    height: 73px;
  }
  
  .eddie-moment-image-container.multiple-images {
    max-width: 150px;
  }
  
  .eddie-moment-image-container.multiple-images img {
    width: 48px;
    height: 48px;
  }
  
  /* 手机端隐藏 PhotoSwipe 关闭按钮 */
  .pswp__button--close {
    display: none !important;
  }
}

/* 隐藏 PhotoSwipe 箭头导航按钮 */
.pswp__button--arrow {
  display: none !important;
}

/* 懒加载图片占位符样式 */
img.lazy-image {
  background-color: #f0f0f0;
  background-image: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 懒加载文字内容占位符 */
.lazy-content {
  min-height: 1.2em;
  background-color: #f5f5f5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.lazy-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading-shimmer 1.5s infinite;
}

/* 子评论图片样式 - 与文字一样的高度，可与文字一行显示 */
.eddie-moment-reply-image-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.eddie-moment-reply-image-container img {
  width: 1.5em;
  height: 1.5em;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.eddie-moment-reply-image-container img:hover {
  transform: scale(1.1);
}

/* 分页导航样式 */
.eddie-moment-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 20px;
  background: var(--color-secondary);
  color: var(--color-text-white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}

.pagination-btn:hover {
  background: #0056b3;
}

.pagination-info {
  color: var(--color-text-light);
  font-size: 14px;
}

.eddie-moment-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.eddie-moment-hint {
  margin-top: 10px;
  font-size: 14px;
}

/* 微信风格图片查看器样式 */
.wechat-image-viewer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: #000000 !important;
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
  padding: 0 !important;
}

.wechat-image-viewer.active {
  display: flex;
  opacity: 1;
}

.wechat-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.wechat-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
  touch-action: none;
}

/* PhotoSwipe 图片样式 - 让 PhotoSwipe 自动管理，只确保不变形 */
.pswp__img {
  object-fit: contain;
}

/* 确保图片查看器背景始终是纯黑色 */
.wechat-image-viewer,
.wechat-image-viewer * {
  background-color: transparent;
}

.wechat-image-viewer {
  background-color: #000000 !important;
}

.wechat-image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  display: none;
}

.wechat-image-counter {
  display: none;
}

/* 图片底部小圆点指示器 */
.wechat-image-dots {
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px;
  z-index: 10001 !important;
}

.wechat-image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.wechat-image-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.wechat-image-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.wechat-image-close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* 确保背景始终是纯黑色，即使有 Tailwind 类 */
.wechat-image-viewer.bg-black,
.wechat-image-viewer.bg-opacity-90 {
  background-color: #000000 !important;
  opacity: 1 !important;
}

/* 响应式设计 - 旧版样式 */
@media (max-width: 768px) {
    .moments-container {
        padding: 15px;
    }
    
    .moment-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .moments-header h1 {
        font-size: 24px;
    }
}
