        /* --- 聊天界面 (V2.0 精致瘦身版) --- */
        #chat-page .page-content { 
            display: flex; 
            flex-direction: column; 
        }
        .chat-messages { 
            flex-grow: 1; 
            padding: 10px; /* 左右内边距可以稍微加大，让气泡不贴边 */
            overflow-y: auto; 
        }
        
        /* 1. 缩小消息行间距 */
        .message-row { 
            display: flex; 
            margin-bottom: 10px; /* 【缩小】从 12px 减少到 10px */
            align-items: flex-start; 
            gap: 8px; 
            position: relative; 
        }
        
        /* 2. 缩小头像 */
        .chat-avatar { 
            width: 36px;  /* 【缩小】从 40px 减少到 36px */
            height: 36px; /* 【缩小】从 40px 减少到 36px */
            border-radius: 50%;
            object-fit: cover; 
            flex-shrink: 0; 
        }
		.avatar-setting-item {
		    display: flex;
		    justify-content: space-between;
		    align-items: center;
		    padding: 12px 16px;
		    cursor: pointer;
		}
		.avatar-setting-item .avatar-wrapper {
		    display: flex;
		    align-items: center;
		    gap: 8px;
		}
		.settings-avatar-preview {
		    width: 52px;
		    height: 52px;
		    border-radius: 10px;
		    object-fit: cover;
		    background-color: #eee;
		}

        
        .message-content { 
            display: flex; 
            flex-direction: column; 
            max-width: 80%;
            position: relative;  
            min-width: 0;
        }
        
        /* 3. 缩小气泡字体和内边距 */
        .chat-bubble { 
            padding: 8px 12px; /* 【缩小】从 10px 15px 减少到 8px 12px，气泡更紧凑 */
            border-radius: 16px; /* 圆角可以稍微减小一点 */
            word-wrap: break-word; 
            font-size: 14px;   /* 【核心缩小】从 15px 减少到 14px */
            line-height: 1.5;  /* 【缩小】行高也相应调整 */
            cursor: pointer; 
        }
        
        /* 4.【全新】微信风格引用样式 (替换旧的 .reply-snippet 样式) */
        .reply-snippet {
            display: block; /* 改为 block，因为现在是独立气泡 */
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap; /* 强制单行显示，更像微信 */
        
            margin-top: 6px; /* 与主气泡拉开距离 */
            padding: 6px 10px;
            border-radius: 10px; /* 小圆角 */
            font-size: 13px;
            cursor: pointer; /* 增加可点击手势 */
        
            /* 关键的磨砂质感 */
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            
            /* AI 气泡下的引用样式 (浅色磨砂) */
            background: rgba(233, 236, 239, 0.7); /* 使用一个带透明度的背景色 */
            color: var(--secondary-text);
            border: none; /* 移除旧的左边框 */
        }
        
        .message-row.user .reply-snippet {
            /* 用户气泡下的引用样式 (深色磨砂) */
            background: rgba(0, 0, 0, 0.15);
            color: rgba(255, 255, 255, 0.85);
            border: none;
        }

        
        /* 5. 调整气泡圆角和对齐（这部分不变，但很重要） */
        .message-row.user { justify-content: flex-end; }
        .message-row.user .message-content { align-items: flex-end; }
        .message-row.user .chat-bubble { background: var(--bubble-user); color: var(--bubble-user-text); border-bottom-right-radius: 5px; }
        
        .message-row.ai { justify-content: flex-start; }
        .message-row.ai .message-content { align-items: flex-start; }
        .message-row.ai .chat-bubble { background: var(--bubble-ai); color: var(--bubble-ai-text); border-bottom-left-radius: 5px; }
        
        /* 6. 缩小群聊成员名字 */
        .member-name { 
            font-size: 12px;  /* 【缩小】从 13px 减少到 12px */
            color: var(--secondary-text); 
            margin-bottom: 4px; 
            margin-left: 4px; 
        }

        /* 多样化消息样式 */
        .chat-bubble.bubble-image img { max-width: 100%; border-radius: 12px; display: block; }
        .chat-bubble.bubble-image { padding: 4px; }
        /* 输入区域 */
        .message-input-area { padding: 12px; border-top: 1px solid var(--border-color); background-color: var(--headerBg);background-image: var(--header-background-image);background-size: cover;background-position: center;}
        .reply-bar { padding: 8px; background: var(--bubble-ai); border-radius: 8px; font-size: 13px; position: relative; }
        .reply-bar-close { position: absolute; top: 4px; right: 4px; cursor: pointer; }
        .input-wrapper { display: flex; align-items: flex-end; gap: 8px; }
.flexible-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 20px;
    background-color: var(--phone-bg);
    font-size: 16px;
    resize: none;
    max-height: 120px;
    box-sizing: border-box; /* 1.【核心】告诉浏览器padding和border都算在总宽高内 */
    line-height: 1.4;       /* 2.【微调】设置一个合适的行高，有助于稳定计算 */
    overflow-y: hidden;     /* 3.【关键】在JS接管滚动前，先隐藏默认的滚动条 */
}

/* 2. 【保留】为 #message-input 保留它可能需要的特定样式 (如果未来有的话) */
/* 如果这个大括号变成空的也没关系，先留着结构 */
.input-action-btn { background: var(--accent-color); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .input-action-btn.secondary { background-color: var(--bubble-ai); }
        .input-action-btn .svg-icon { color: #fff; width: 20px; height: 20px; }
        .input-action-btn.secondary .svg-icon { color: var(--primary-text); }
        #call-api-btn .spinner { border-top-color: #fff; width:20px; height:20px; border-width: 2px; }

        /* --- 表单 & 列表 & 设置 --- */
        .form-group { margin-bottom: 24px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary-text); }
        .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 16px; box-sizing: border-box; background: #fff; min-height: 50px; }
        .form-group textarea { min-height: 120px; resize: vertical; }
        #world-book-content-input {
    min-height: 300px;
}
        /* --- 手机端优化 --- */
        @media (max-width: 480px) {
            .form-group input, .form-group textarea, .form-group select {
                font-size: 16px; /* 防止iOS自动缩放 */
                padding: 16px 18px; /* 增加手机端触摸面积 */
                min-height: 52px;
            }
            .btn {
                padding: 14px 20px;
                min-height: 52px;
                font-size: 16px;
            }
            .form-group {
                margin-bottom: 20px;
            }
        }
        .avatar-upload-group { display: flex; align-items: center; gap: 16px; }
        .avatar-upload-group .avatar-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background-color: #eee; }
        .avatar-upload-group .upload-btn { flex-grow: 1; padding: 10px; text-align: center; background: var(--bubble-ai); border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; }
        .list-view { padding: 0; }
        .list-item { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
        .list-item .info { flex-grow: 1; }
        .list-item .info .name { font-weight: 500; }
        .list-item .info .name .group-icon { font-size: 12px; background: #eee; color: #555; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; } /* ADDED: Group chat icon */


        /* --- 弹窗 & 菜单 --- */
        .toast { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.75); color: white; padding: 12px 20px; border-radius: 20px; font-size: 14px; z-index: 9999; opacity: 0; transition: opacity 0.3s, bottom 0.3s; pointer-events: none; }
        .toast.show { opacity: 1; bottom: 80px; }
        .context-menu { position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 8px; z-index: 10000; min-width: 150px; }
        .context-menu-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
        .context-menu-item:hover { background: var(--bubble-ai); }
        #modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10001; display: none; justify-content: center; align-items: center; }
        #modal-content { background: #fff; padding: 20px; border-radius: 16px; max-width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
        
        /* --- 多选删除模式 --- */
        .multi-select-mode .message-row::before { content: ''; display: block; width: 20px; height: 20px; border: 2px solid var(--border-color); border-radius: 50%; position: absolute; left: -8px; top: 50%; transform: translateY(-50%); background: #fff; }
        .multi-select-mode .message-row.selected::before { background: var(--accent-color); border-color: var(--accent-color); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); }
        .multi-select-bar { display: flex; padding: 12px; border-top: 1px solid var(--border-color); background: #fff; }
        .btn { display: block; width: 100%; padding: 12px 16px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; color: white; cursor: pointer; text-align: center; position: relative; min-height: 48px; }
        .btn-primary { background-color: var(--accent-color); }
        .btn-secondary { background-color: #6c757d; margin-top: 15px; }
        .spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
        @keyframes spin { to { transform: rotate(360deg); } }
		/* --- 【全新】聊天操作菜单 (Action Sheet) --- */
		#show-actions-btn {
		    padding: 0; /* Reset padding for the plus button */
		}
		.action-sheet-overlay {
		    position: absolute;
		    top: 0;
		    left: 0;
		    width: 100%;
		    height: 100%;
		    background: rgba(0,0,0,0.4);
		    z-index: 1000;
		    opacity: 0;
		    pointer-events: none;
		    transition: opacity 0.3s ease-out;
		}
		.action-sheet-overlay.show {
		    opacity: 1;
		    pointer-events: auto;
		}
		.action-sheet {
		    position: absolute;
		    bottom: 0;
		    left: 0;
		    right: 0;
		    background-color: #f7f7f7;
		    border-radius: 20px 20px 0 0;
		    padding: 20px 20px 10px;
		    transform: translateY(100%);
		    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		}
		.action-sheet-overlay.show .action-sheet {
		    transform: translateY(0);
		}
		.action-grid {
		    display: grid;
		    grid-template-columns: repeat(4, 1fr);
		    gap: 20px;
		    margin-bottom: 20px;
		}
		.action-item {
		    text-align: center;
		    cursor: pointer;
		}
		#chat-action-sheet .action-icon {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* ▼▼▼ 把 .action-icon .svg-icon 修改为下面这样 ▼▼▼ */
#chat-action-sheet .action-icon .svg-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-text);
}
		.action-label {
		    font-size: 13px;
		    color: var(--secondary-text);
		}
		.action-sheet-cancel {
		    width: 100%;
		    padding: 14px 0 14px;
		    text-align: center;
		    font-size: 17px;
		    font-weight: 500;
		    background-color: #ffffff;
		    border-radius: 12px;
		    cursor: pointer;
		    margin-top: 10px;
		}
		
		/* 确保标题在过长时显示省略号 */
		#chat-title {
		    font-weight: 600;
		    font-size: 17px;
		    white-space: nowrap;
		    overflow: hidden;
		    text-overflow: ellipsis;
		}

/* ---【杂志风格】日记索引页高级样式 (替换所有旧日记样式)--- */
/* --- 【杂志风格 V2】日记角色选择页样式 (替换旧的角色选择页样式) --- */
#diary-character-list-page .page-content {
    background-color: #f7f7f7; /* 使用更冷的浅灰色背景 */
    padding: 0; /* 移除内边距，让卡片自己控制 */
}

/* 用一个容器来控制所有卡片的边距 */
.diary-character-list-wrapper {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* 卡片之间的垂直间距 */
}

.diary-author-card {
    background-color: #ffffff;
    border-radius: 4px; /* 使用更锐利的直角，现代感更强 */
    padding: 25px 20px;
    display: grid; /* 使用网格布局来精确控制排版 */
    grid-template-columns: 1fr auto; /* 左侧内容占满，右侧按钮自适应 */
    grid-template-rows: auto auto auto; /* 三行内容 */
    align-items: center; /* 垂直居中对齐 */
    gap: 4px 15px; /* 行间距4px，列间距15px */
    border-left: 3px solid var(--accent-color, #007AFF); /* 左侧用主题色细线点缀 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.diary-author-card .author-name {
    grid-column: 1 / 2; /* 占据第一列 */
    grid-row: 1 / 2; /* 占据第一行 */
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-text);
}

.diary-author-card .author-info {
    grid-column: 1 / 2; /* 占据第一列 */
    grid-row: 2 / 3; /* 占据第二行 */
    font-size: 13px;
    color: var(--secondary-text);
}

.diary-author-card .author-decoration {
    grid-column: 1 / 2; /* 占据第一列 */
    grid-row: 3 / 4; /* 占据第三行 */
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
    margin-top: 8px; /* 和上面的信息拉开距离 */
}

.diary-author-card .author-read-btn {
    grid-column: 2 / 3; /* 占据第二列 */
    grid-row: 1 / 4; /* 跨越所有三行 */
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%; /* 圆形按钮 */
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.diary-author-card .author-read-btn .svg-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/* 按钮悬浮效果 */
.diary-author-card .author-read-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.diary-author-card .author-read-btn:hover .svg-icon {
    color: white;
}

/* 空状态提示 */
#diary-character-list-page .page-content p {
    text-align:center; 
    color: var(--secondary-text); 
    padding: 60px 20px;
}

/* 2. 日期选择页（文章目录）样式 */
#diary-date-list-page .page-content {
    background-color: #fff;
    padding: 0 20px;
}
.diary-date-entry {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}
.diary-date-entry:hover {
    background-color: #f8f9fa;
}
.diary-date-entry .date-block {
    flex-shrink: 0;
    text-align: center;
    width: 60px;
}
.diary-date-entry .date-day {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1;
}
.diary-date-entry .date-month-year {
    font-size: 12px;
    color: var(--secondary-text);
    margin-top: 4px;
}
.diary-date-entry .entry-content {
    flex-grow: 1;
    overflow: hidden;
}
.diary-date-entry .entry-snippet {
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
    /* 多行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}
		
		/* --- 聊天设置页签样式 (已添加作用域) --- */
		
		/* 聊天设置页签容器(胶囊式) */
		#chat-settings-page .settings-tabs,
		#group-chat-settings-page .settings-tabs {
		    display: flex;
		    justify-content: center;
		    padding: 10px;
		    background-color: transparent; /* 我们让它透明，用按钮背景色 */
		    border-bottom: 1px solid var(--border-color);
		    flex-shrink: 0;
		}
		
		/* 聊天设置页签按钮(胶囊式) */
		#chat-settings-page .settings-tab-btn,
		#group-chat-settings-page .settings-tab-btn {
		    flex: 1;
		    padding: 8px 12px;
		    border: none;
		    background: none;
		    font-size: 15px;
		    font-weight: 500;
		    color: var(--secondary-text);
		    cursor: pointer;
		    border-radius: 8px;
		    transition: background-color 0.2s, color 0.2s;
		    text-align: center; /* 确保文字居中 */
		    margin: 0 5px; /*给按钮之间一点间距*/
		}
		
		/* 聊天设置页签激活状态(胶囊式) */
		#chat-settings-page .settings-tab-btn.active,
		#group-chat-settings-page .settings-tab-btn.active {
		    background-color: var(--accent-color);
		    color: white; /* 在有色背景上用白色文字通常是安全的 */
		    font-weight: 600;
		}
		
		/* 聊天设置页面的内容面板样式 */
		#chat-settings-page .settings-panes-container,
		#group-chat-settings-page .settings-panes-container {
		    flex-grow: 1;
		    overflow-y: auto;
		    padding: 20px;
		    background-color: var(--bg-color-secondary, #f0f2f5); /* 使用一个次级背景色 */
		}
		
		/* 聊天设置页面的面板默认隐藏 */
		#chat-settings-page .settings-tab-pane,
		#group-chat-settings-page .settings-tab-pane {
		    display: none;
		}
		#chat-settings-page .settings-tab-pane.active,
		#group-chat-settings-page .settings-tab-pane.active {
		    display: block;
		}


		
/* ---【全新】高级日记样式 (替换旧的日记样式)--- */
#diary-entry-page .page-content {
    background-color: #f0f2f5; /* 页面使用浅灰色背景，突出卡片 */
    padding: 20px 15px; /* 在卡片外留出边距 */
    overflow-y: auto;
    box-sizing: border-box;
}

/* 日记主内容卡片 */
.diary-container {
    background-color: #fdfdfd; /* 使用和心声弹窗一致的柔和白色 */
    max-width: 500px;
    margin: 0 auto; /* 居中显示 */
    border-radius: 4px; /* 同样使用更锐利的直角 */
    padding-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* 更柔和的阴影 */
    background-image: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png'); /* <-- 就是这行 */
    overflow: hidden; /* 裁切内部元素 */
}

/* 顶部图片 */
.diary-header-image {
    width: 100%;
    height: 180px; /* 增加图片高度 */
    background-size: cover;
    background-position: center;
    position: relative; /* 为渐变遮罩提供定位 */
}

/* 标题、引言等内容的包裹容器 */
.diary-meta-content {
    padding: 30px 40px 0; /* 修改这里，在图片下方留出空间 */
    text-align: center; 
    /* 不再需要 position, z-index 和负的 margin-top */
}


/* 日记标题 */
.diary-title {
    font-family: 'Songti SC', 'STSong', 'SimSun', serif; 
    letter-spacing: 3px; /* 增加字间距 */
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 10px; /* 调整外边距 */
    color: #333;
}

/* “节选” 标签 */
.diary-excerpt-tag {
    display: inline-block;
    font-size: 13px;
    color: #a08c75; /* 使用更典雅的颜色 */
    margin: 0 auto 25px;
    padding: 3px 12px; /* 调整内边距 */
    /* 【修改】使用上下边框代替四周边框，更具设计感 */
    border-top: 1px solid #dcd1c4; 
    border-bottom: 1px solid #dcd1c4; 
    border-radius: 0;
    background: rgba(253, 253, 253, 0.5); /* 增加一点半透明背景 */
}

/* 引言部分 */
.diary-quote {
    position: relative;
    font-size: 14px;
    color: #8c8c8c;
    text-align: center; /* 【修改】居中显示引言 */
    font-style: italic;
    padding: 10px 15px; /* 增加内边距 */
    margin: 0 auto 30px;
    width: 90%;
    line-height: 1.7;
    border-left: 2px solid #dcd1c4; /* 【修改】使用左边框代替引号 */
}
/* 【移除】不再需要伪元素的大引号 */
.diary-quote::before {
    content: none;
}

/* 日记正文部分的包裹容器 */
.diary-main-content {
    padding: 0 40px;
}

/* 日期 */
.diary-date {
    font-family: 'Helvetica Neue', 'Arial', sans-serif; /* 使用更现代的西文字体 */
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase; /* 大写，更有设计感 */
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    color: #999;
}

/* 日记正文 */
.diary-body {
    font-family: 'Songti SC', 'STSong', serif;
    font-size: 16px;
    line-height: 1.9;
    color: #4a4a4a;
    white-space: pre-wrap;
    text-indent: 0; /* 【修改】移除首行缩进，为首字下沉做准备 */
}
/* 【新增】与心声弹窗一样的首字下沉效果 */
.diary-body::first-letter {
    font-family: 'Georgia', serif;
    font-size: 3.5em;
    font-weight: bold;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 4px;
    color: #a08c75;
}

/* 日记署名 */
.diary-signature {
    text-align: right;
    font-family: 'Ma Shan Zheng', cursive; 
    font-size: 22px;
    margin-top: 40px;
    padding-right: 40px;
    color: #555;
}

/* 隐藏旧的删除按钮 */
.diary-delete-btn {
   display: none;
}


/* --- 朋友圈样式 --- */
#moments-page .page-content {
    /* 【修改】移除顶部内边距，让头图能顶到最上面 */
    padding-top: 0; 
    background-color: #fff;
	position: relative;
}
.moment-comment .replied-to-author {
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
    margin: 0 4px; /* 和"回复"字样拉开一点距离 */
}

.moment-card {
    /* 这部分样式保持不变 */
    position: relative;
    margin: 0 0 25px 0;
    padding: 0 15px;
    border-bottom: 8px solid #f0f2f5;
    padding-bottom: 15px;
}
.moment-card:last-child { border-bottom: none; }

.moment-delete-btn {
   position: absolute;
   top: 15px;
   right: 15px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 5px;
   opacity: 0.5;
   transition: opacity 0.2s;
}
.moment-delete-btn:hover { opacity: 1; }
.moment-delete-btn .svg-icon {
   width: 20px;
   height: 20px;
   color: var(--secondary-text);
}
.moment-header {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 12px;
}
.moment-header .avatar {
   width: 44px;
   height: 44px;
   border-radius: 50%;
   object-fit: cover;
}
.moment-header .info { flex-grow: 1; }
.moment-header .name {
   font-weight: 600;
   font-size: 16px;
   color: var(--primary-text);
}
.moment-header .timestamp {
   font-size: 12px;
   color: var(--secondary-text);
}
.moment-content p {
   font-size: 16px;
   line-height: 1.6;
   color: var(--primary-text);
   white-space: pre-wrap;
   margin: 0 0 12px 0;
}
.moment-image { margin-bottom: 12px; }
.moment-image img {
   max-width: 100%;
   border-radius: 12px;
   display: block;
}
.moment-actions {
   display: flex;
   justify-content: flex-end;
   gap: 10px;
   margin-bottom: 10px;
}
.moment-action-btn {
   background: #f0f2f5;
   border: none;
   border-radius: 20px;
   padding: 6px 12px;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 14px;
   font-weight: 500;
}
.moment-action-btn .svg-icon {
   width: 18px;
   height: 18px;
}
.moment-action-btn.liked .svg-icon {
   fill: #E53935;
   stroke: #E53935;
}
.moment-interactions {
   background-color: #f0f2f5;
   border-radius: 8px;
   padding: 2px 12px;
}
.moment-likes {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 8px 0;
   font-size: 14px;
   color: var(--accent-color);
   font-weight: 500;
}
.moment-likes .svg-icon {
   width: 16px;
   height: 16px;
   color: var(--accent-color);
   flex-shrink: 0;
}
.moment-likes span {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}
.moment-comments-container {
   padding: 8px 0;
   border-top: 1px solid #e0e2e5;
}
.moment-comment {
   font-size: 14px;
   line-height: 1.5;
   margin-bottom: 4px;
}
.moment-comment .comment-author {
   font-weight: 600;
   color: var(--accent-color);
   cursor: pointer;
}

/* --- 【全新】朋友圈主页头图及悬浮按钮样式 --- */
.moments-profile-header {
    position: relative;
    /* 【修改】让头图区域和下面的内容分开 */
    margin-bottom: 40px; 
    cursor: pointer;
}
.profile-cover-image {
    width: 100%;
    height: 280px; /* 【修改】增加高度以容纳按钮和信息 */
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    /* 【修改】移除圆角，让它填满顶部 */
}

/* 【新增】悬浮按钮的通用样式 */
.moments-floating-btn {
    position: fixed;
    top: 48px; /* 【修改】调整位置，避开顶部状态栏 */
    z-index: 15;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    backdrop-filter: blur(5px);
}
.moments-floating-btn .svg-icon {
    color: #fff;
    width: 22px;
    height: 22px;
}
.moments-back-btn {
    left: 15px;
}
.moments-camera-btn {
    right: 15px;
}

/* 【修改】个人信息区域的样式 */
.profile-info {
    position: absolute;
    bottom: -20px;
    right: 15px;
    display: flex;
    align-items: flex-end; /* 【修改】让文本和头像底部对齐 */
    gap: 15px;
}
/* 【新增】名字和签名的容器 */
.profile-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 文字右对齐 */
}
.profile-name {
    font-size: 20px; /* 字体可以稍大一些 */
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 8px; /* 和签名拉开距离 */
}
.profile-avatar {
    width: 80px; /* 尺寸可以稍大一些 */
    height: 80px;
    border-radius: 12px;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* 【修改】签名的样式，现在它在名字下方 */
.profile-signature {
    font-size: 14px;
    color: gray; /* 【修改】使用主要文字颜色，也就是黑色 */
    text-shadow: 0 1px 2px rgba(255,255,255,0.7); /* 【修改】阴影改为浅色，在深色背景上更清晰 */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


