/* ======================================================== */
/* ⬇️ 内部软件7：多媒体交互、全屏页面与特色玩法皮肤 ⬇️ */
/* ======================================================== */

/* ==========================================
   🌟 独立发送实体图片样式 (不包裹气泡)
========================================== */
.image-msg-wrapper {
    display: flex;
    align-items: flex-end;
    margin: 0 4px; /* 与普通气泡位置对齐 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.chat-sent-image {
    max-width: 60vw;
    max-height: 280px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
    box-shadow: none; /* 去除所有阴影 */
    border: none;     /* 去除所有描边 */
    background: #f0f0f0; /* 加载中底色 */
}
.image-timestamp {
    font-size: 10px;
    color: #dadada;
    margin: 0 4px 1px 4px;
    font-weight: 600;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    transform: scale(0.85); 
    transform-origin: bottom;
}

/* ==========================================
   🌟 心声系统 (极简工业风打印机 + 登录保险箱)
========================================== */
/* 🌟 引入两款可免费商用的 Google 顶级中文字体：马善政毛笔楷书 & 钟齐志莽行书 */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Zhi+Mang+Xing&display=swap');

/* 🌟 引入自定义绝美手写字体 */
@font-face {
    font-family: 'ToutouHandwrite';
    src: url('https://files.catbox.moe/poakg5.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.voice-layout-wrapper {
    display: flex; flex-direction: column; align-items: center; width: 100%;
    margin-top: calc(2vh - 110px); /* 🌟 修复：精准上移，回调到 -110px，防止顶破屏幕 */
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* 🌟 新增：限制最大高度并激活内部滚动条，超长心声与十年后卡片再多也能丝滑上下滑动 */
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 40px; 
    -webkit-overflow-scrolling: touch;
}
.voice-layout-wrapper::-webkit-scrollbar { display: none; }

/* 🌟 心声系统修复：让包裹层在激活时恢复透明度与定位 */
.custom-prompt-overlay.active .voice-layout-wrapper {
    opacity: 1; transform: translateY(0);
}

/* 打印机本体：压低亮度，充当背景 */
.printer-machine {
    width: 180px; 
    background: #222; border-radius: 2px 2px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center;
}
.printer-top-bar { width: 100%; color: #666; font-size: 8px; font-family: -apple-system, sans-serif; font-weight: 600; text-align: center; padding: 4px 0; letter-spacing: 3px; }
.printer-slot { width: 160px; height: 4px; background: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); }

/* 下方的心声密码箱：白底细线，极度克制 */
.mind-box {
    width: 280px; 
    background: #ffffff; border: 1px solid #eaeaea; border-radius: 4px;
    padding: 25px 20px; margin-top: 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex; flex-direction: column;
}

.mind-box-title {
    font-family: -apple-system, sans-serif; font-size: 10px; font-weight: 800;
    color: #999; letter-spacing: 2px; text-align: center; margin-bottom: 25px;
}

/* 登录框样式 */
.mind-input-group { display: flex; flex-direction: column; gap: 6px; }
.mind-input-group label { font-size: 8px; font-weight: 800; color: #b3b3b3; letter-spacing: 1px; }
.mind-input-group input {
    width: 100%; border: none; border-bottom: 1px solid #d0d0d0; background: transparent;
    padding: 6px 0; font-size: 12px; font-family: monospace; color: #111; font-weight: 600; outline: none; transition: border-color 0.3s;
}
.mind-input-group input:focus { border-bottom-color: #111; }
.mind-input-group input::placeholder { color: #dcdcdc; }

/* 登录按钮：无多余效果的死黑方块 */
.mind-btn {
    width: 100%; background: #111; color: #fff; text-align: center; padding: 12px 0;
    font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-top: 25px; cursor: pointer; transition: opacity 0.2s;
}
.mind-btn:active { opacity: 0.7; }

/* 记住密码极简组件 */
.mind-remember-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 12px; cursor: pointer; }
.mind-checkbox { width: 10px; height: 10px; border: 1px solid #d0d0d0; transition: all 0.2s; position: relative; }
.mind-checkbox.active { background: #111; border-color: #111; }
.mind-remember-row span { font-size: 8px; font-weight: 800; color: #b3b3b3; letter-spacing: 1px; }

/* 选择题组件 */
.mind-quiz-q { font-size: 11px; font-weight: 700; color: #333; line-height: 1.6; margin-bottom: 20px; text-align: justify; word-break: break-all; }
.mind-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.mind-quiz-opt { padding: 12px 10px; border: 1px solid #eaeaea; font-size: 10px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.2s; background: #fafafa; }
.mind-quiz-opt:active { background: #f0f0f0; border-color: #ccc; }

/* 内容展示样式 */
.mind-row { display: flex; flex-direction: column; margin-bottom: 12px; }
.m-label { font-size: 8px; font-weight: 800; color: #b3b3b3; letter-spacing: 1.5px; margin-bottom: 4px; text-transform: uppercase; }
.m-val { font-size: 12px; font-weight: 500; color: #333; line-height: 1.4; word-break: break-all; }
.m-val.handwritten { 
    font-family: 'ToutouHandwrite', 'Ma Shan Zheng', 'Zhi Mang Xing', cursive;
    font-size: 18px; color: #111; line-height: 1.6; letter-spacing: 2px; 
}

/* ==========================================
   🌟 独立纸张拓展区域：十年后评论帖子样式
========================================== */
.future-section-wrapper {
    width: 280px; 
    display: flex;
    flex-direction: column;
    margin-top: 15px; /* 恢复原版紧凑的卡片间距 */
}

/* 🌟 第三页心声系统的整体下压动画 */
.custom-prompt-overlay.active .voice-layout-wrapper.content-mode {
    transform: translateY(30px); /* 整个组件组往下移动 30px */
}

/* 🌟 恢复的日历长方形白卡片样式 */
.future-calendar-card {
    width: 100%; background: #ffffff; border-radius: 12px; padding: 10px 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04); display: flex; justify-content: space-between;
    align-items: center; border: 1px solid #eaeaea;
}
.cal-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; height: 46px; border-radius: 8px; margin: 0 2px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cal-eng { font-size: 8px; transform: scale(0.85); font-weight: 800; color: #888; letter-spacing: 0.5px; margin-bottom: 2px; }
.cal-line { width: 12px; height: 1.5px; background: #ccc; border-radius: 1px; margin-bottom: 4px; }
.cal-num { font-size: 14px; font-weight: 800; color: #333; font-family: -apple-system, monospace; }
/* 日历选中态 */
.cal-item.active { background: #111; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cal-item.active .cal-eng, .cal-item.active .cal-num { color: #ffffff; }
.cal-item.active .cal-line { background: #ffffff; }

/* 🌟 全新：十年后朋友圈帖子卡片 (纯净版) */
.future-post-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.post-header { display: flex; align-items: center; gap: 10px; }
.post-avatar { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; border: 1px solid #f0f0f0;}
.post-info { display: flex; flex-direction: column; justify-content: center; }
.post-name { font-size: 14px; font-weight: 700; color: #576b95; /* 微信蓝 */ }
.post-time { font-size: 10px; color: #b2b2b2; margin-top: 2px; }

.post-content-text {
    font-size: 14px; color: #111; line-height: 1.6; text-align: justify; word-break: break-all;
    font-family: -apple-system, sans-serif;
}
.post-footer-actions {
    display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin-top: 4px;
}
.post-action-icon {
    width: 16px; height: 16px; color: #b2b2b2;
}

/* ==========================================
   🌟 新增：极简连环语音矩阵与气泡系统
========================================== */
/* 输入面板每行样式 */
.voice-input-row {
    display: flex; align-items: stretch; gap: 8px;
    background: #ffffff; padding: 8px 10px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.voice-input-row textarea {
    flex: 1; border: none; background: transparent; outline: none;
    font-size: 13px; color: #333; line-height: 1.4; resize: none;
    height: 40px; font-family: inherit;
}
.voice-input-row textarea::placeholder { color: #ccc; }
.voice-input-action {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    border-left: 1px solid #f0f0f0; padding-left: 8px;
}

/* 🌟 全新：麦克风模式专属排版 (居中悬浮按钮 + 独立白底识别框) */
.voice-mic-row {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    width: 100%; padding: 5px 0 15px 0; border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.voice-mic-row:last-child {
    border-bottom: none; padding-bottom: 5px;
}
.voice-mic-display-box {
    width: 100%; background: #ffffff; border-radius: 14px; padding: 14px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05);
    min-height: 50px; font-size: 14px; color: #111; line-height: 1.5;
    word-break: break-all; box-sizing: border-box;
}
.mic-hold-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: #111; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    user-select: none; -webkit-user-select: none;
    flex-shrink: 0;
}
.mic-hold-btn svg { width: 18px; height: 18px; }
.mic-hold-btn.recording {
    background: #ff3b30; /* 按住时变成危险红色 */
    transform: scale(0.9);
    box-shadow: 0 6px 20px rgba(255,59,48,0.4);
}

.voice-inner-container {
    display: inline-flex; flex-direction: column; cursor: pointer; user-select: none;
    max-width: 100%; /* 🌟 防止语音溢出气泡，强制内部折行 */
    overflow: hidden;
    font-size: 14px; /* 🌟 核心修复：锁死自身字号基准，防止语音动画 transform 引发的重排导致相邻气泡文字变小 */
    contain: layout style; /* 🌟 渲染隔离：阻止内部动画的布局副作用向外传播 */
}

.voice-main-row {
    display: flex; align-items: center; gap: 8px; justify-content: center;
}
/* 🌟 语音波动与时间排版优化 🌟 */
.voice-animate-icon {
    display: flex; align-items: center; gap: 2.5px; height: 16px;
    flex: 1; /* 🌟 占据中间所有剩余空间 */
    overflow: hidden; /* 防止超长溢出 */
    justify-content: flex-start;
}
/* 🌟 核心修复：将 height 动画改为 transform 缩放，彻底消除重绘带来的屏幕抖动 */
.voice-line {
    width: 2.5px; background-color: currentColor; border-radius: 2px;
    height: 14px; transform: scaleY(0.42); opacity: 0.8;
}
/* 动态波浪 */
.voice-line.active { animation: voice-wave 1s infinite ease-in-out; }
.voice-line.active:nth-child(1) { animation-delay: 0.1s; }
.voice-line.active:nth-child(2) { animation-delay: 0.3s; }
.voice-line.active:nth-child(3) { animation-delay: 0.5s; }
.voice-line.active:nth-child(4) { animation-delay: 0.2s; }

@keyframes voice-wave {
    0%, 100% { transform: scaleY(0.42); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.voice-duration {
    font-size: 14px; font-weight: 700; font-family: -apple-system, sans-serif; letter-spacing: 0.5px;
    flex-shrink: 0; /* 🌟 绝对防御：禁止时间被超长波浪挤扁 */
}

/* 隐藏在下面的翻译/原文本 */
.voice-trans-result {
    display: none; 
    margin-top: 6px; padding-top: 6px;
    border-top: 1px dashed currentColor;
    font-size: 13px; line-height: 1.4; opacity: 0.9;
    color: inherit;
    width: 100%; /* 🌟 修复：强制折行，杜绝与秒数/波浪挤在同一行 */
    clear: both;
}
.voice-trans-result.show { display: block; animation: slideDownFade 0.2s ease-out;}

/* 🌟 语音消息翻译文字：浅色括号样式 */
.voice-trans-sub {
    opacity: 0.5;
    font-size: 12px;
    font-weight: 400;
    margin-left: 2px;
    display: inline;
}

/* 根据发送者镜像波形图标 */
.Toutou-TT.user .voice-animate-icon { transform: scaleX(-1); }

/* 🌟 用户发出的语音：时长在左侧，波浪在右侧 (完美还原原生排版) */
.Toutou-TT.user .voice-main-row { flex-direction: row-reverse; }

/* 🌟 翻转后，让波浪靠右显示，紧贴着时间数字 */
.Toutou-TT.user .voice-animate-icon { justify-content: flex-end; }

/* ==========================================
   🌟 文字图片(PHOTO)系统专属高级样式 (极简清透毛玻璃版)
========================================== */
.photo-msg-wrapper {
    position: relative;
    width: 140px;
    height: 140px; /* 🌟 强制变成1:1完美正方形 */
    border-radius: 16px; /* 边缘更圆润，贴合iOS原生质感 */
    overflow: hidden;
    cursor: pointer;
    box-shadow: none; /* 🌟 彻底剥除多余的阴影 */
    margin: 2px 4px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.2s, background 0.2s;
    
    /* 🌟 核心：接近白色的浅灰，配合强烈的毛玻璃背景虚化效果 */
    background: rgba(248, 248, 248, 0.75); 
    backdrop-filter: blur(20px) saturate(150%); 
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(0,0,0,0.03); /* 极细微的一圈描边勾勒出轮廓 */
}
.photo-msg-wrapper:active {
    transform: scale(0.96);
    background: rgba(235, 235, 235, 0.85); /* 按压时轻微变暗 */
}
.photo-base-img {
    display: none; /* 🌟 彻底干掉底层的实体相纸图片，追求极致清爽 */
}
.photo-overlay-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}
.photo-overlay-text {
    font-size: 12px;
    font-weight: 700;
    color: #888888; /* 🌟 极简的高级浅灰色文字 */
    line-height: 1.5;
    text-shadow: none; /* 🌟 彻底去除文字阴影 */
    letter-spacing: 1px;
}

/* 🌟 让文字图片强制向双方头像方向靠近 3px */
.preview-msg-row.right .photo-msg-wrapper { margin-right: -6px; }
.preview-msg-row.left .photo-msg-wrapper { margin-left: -6px; }

/* ==========================================
   🌟 全新转账卡片专属样式 (未收款退回为黑，收款变白)
========================================== */
.transfer-msg-wrapper {
    position: relative; width: 210px; border-radius: 18px; padding: 14px 16px;
    margin: 2px 4px; display: flex; flex-direction: column; gap: 8px;
    cursor: pointer; user-select: none; -webkit-touch-callout: none;
    transition: transform 0.2s, filter 0.2s; overflow: hidden;
    
    /* 🌟 核心修复：不论是你发的还是对方发的，只要没收款，统一都是纯黑高级风 */
    background: #111111;
    box-shadow: none; 
    border: 1px solid #222;
}

/* 🌟 核心修复：使用负边距强制让转账卡片分别向发出方的头像贴近 */
.preview-msg-row.right .transfer-msg-wrapper { margin-right: -6px; }
.preview-msg-row.left .transfer-msg-wrapper { margin-left: -6px; }

.transfer-icon-circle { 
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1); 
}

.transfer-icon-circle svg { color: #fff; }
.transfer-amount { color: #fff; font-size: 18px; font-weight: 800; font-family: -apple-system, sans-serif; letter-spacing: 0.5px;}
.transfer-status { color: #aaa; font-size: 11px; font-weight: 600; opacity: 0.8; margin-top: 2px;}

.transfer-top-row { display: flex; align-items: center; gap: 12px; }
.transfer-info-col { display: flex; flex-direction: column; }

/* 🌟 底部备注文本基础颜色 */
.transfer-note-text { font-size: 10px; margin-top: 4px; border-top: 1px dashed rgba(128,128,128,0.2); padding-top: 6px; color: #888; }

/* 🌟 已收款状态 (完全变为主白色/浅色毛玻璃) */
.transfer-msg-wrapper.received {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: none !important; 
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.transfer-msg-wrapper.received .transfer-icon-circle { background: #f5f5f5 !important; box-shadow: none; }
.transfer-msg-wrapper.received .transfer-icon-circle svg { color: #666 !important; }
.transfer-msg-wrapper.received .transfer-amount { color: #111 !important; }
.transfer-msg-wrapper.received .transfer-status { color: #888 !important; }
.transfer-msg-wrapper.received .transfer-note-text { color: #aaa !important; border-top-color: rgba(0,0,0,0.05) !important; }

/* 🌟 拒绝/退回状态 (始终黑色，仅降低透明度表示失效) */
.transfer-msg-wrapper.refunded {
    opacity: 0.65;
    box-shadow: none !important;
}

.transfer-msg-wrapper:active { transform: scale(0.96); filter: brightness(0.95); }

/* 🌟 转账系统：干掉输入框自带的上下箭头与外发光 */
#transfer-amount::-webkit-outer-spin-button,
#transfer-amount::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
#transfer-amount[type=number] {
    -moz-appearance: textfield;
}
#transfer-amount:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ==========================================
   🌟 唯一关键词：【朋友圈全新页面样式系统】
========================================== */

/* 朋友圈全屏容器 */
.moments-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #f0f0f0; /* 🌟 整体底色改为浅灰，防止卡片外露白边 */
    z-index: 2000; display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.moments-screen.active { transform: translateX(0); }

/* 1. 顶部背景图区域 */
.moments-cover-area {
    width: 100%; height: 195px;
    background: #EBEBEB; 
    background-size: cover; background-position: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* 2. 白色主体大卡片 */
.moments-main-card {
    flex: 1;
    background: #ffffff;
    border-radius: 38px 38px 0 0;
    margin-top: -18px; 
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.02);
    min-height: 0; 
}
.moments-main-card::-webkit-scrollbar { display: none; }

/* 3. 右侧悬浮大头像 */
.moments-profile-avatar-wrapper {
    position: absolute;
    top: 143px;
    right: 102px; 
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moments-profile-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 0.5px solid #999999;
    box-shadow: none;
    background: #eee;
    cursor: pointer;
    transition: transform 0.2s;
}
.moments-profile-avatar:active { transform: scale(0.95); }

/* 4. 头像右下角的浅灰色圆圈 + 号 */
.moments-avatar-add-btn {
    position: absolute;
    bottom: 2px; right: 0px; 
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #7C7C7C; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: none;
    border: none; 
}
.moments-avatar-add-btn:active { transform: scale(0.9); }
.moments-avatar-add-btn::after {
    content: '+';
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    margin-top: -1px;
}

/* 6. 白卡片内的内容区域 */
.moments-content-area {
    padding: 0 18px 0 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* 🌟 固定区域：昵称 + Tab栏（不随帖子滚动） */
.moments-sticky-header {
    flex-shrink: 0;
    padding-top: 55px; 
    background: #ffffff;
    z-index: 5;
    position: relative;
}

/* 🌟 昵称区域 */
.moments-nickname-area {
    position: absolute;
    top: 25px; 
    right: 175px;
    left: auto;
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    justify-content: flex-end;
}
.moments-nickname-area:active { opacity: 0.6; }
.moments-nickname-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* 🌟 Tab栏 - 真正的“合二为一”完美对齐版 */
.moments-tab-bar {
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    gap: 16px; 
    padding: 0 40px;
    margin-top: 15px; 
    position: relative;
    padding-bottom: 0; 
    height: 35px;
    border-bottom: none;
}

/* 🌟 这条底座细线加长，但两端留有空白 */
.moments-tab-bar::after {
    content: '';
    position: absolute;
    bottom: 0px; 
    left: 50%;
    transform: translateX(-50%);
    width: 85%; 
    height: 1px;
    background: #e0e0e0;
}

.moments-tab-item {
    font-size: 13px;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding-bottom: 8px; /* 文字距离底线的高度 */
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.moments-tab-item:active { opacity: 0.6; }
.moments-tab-item.active { color: #bbb; } 

.moments-tab-item.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px; 
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 3px;
    background: #ccc; 
    border-radius: 3px;
    z-index: 2;
}

/* 🌟 可滚动的帖子流 */
.moments-feed-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 30px 0;
    min-height: 0;
}
.moments-feed-scroll::-webkit-scrollbar { display: none; }

/* 暂无动态占位 */
.moments-empty-state {
    text-align: center;
    padding-top: 80px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 🌟 朋友圈文本与卡片截断样式 */
.moments-text-wrapper {
    position: relative;
    margin-bottom: 5px;
}
.moments-text-content {
    font-size: 14px;
    color: #111;
    line-height: 1.6; /* 缩紧行高 */
    word-break: break-all;
    max-height: 115px; /* 🌟 物理锁死：最高只能显示约 5 行 (14*1.6*5 ≈ 112px) */
    overflow: hidden;
    transition: max-height 0.25s ease-in-out;
}
.moments-text-content.expanded {
    max-height: 3000px; /* 撑开后取消限制 */
}
.moments-expand-btn {
    color: #576b95;
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
    cursor: pointer;
    display: none; /* 默认隐藏，在 JS 计算高度后按需显示 */
    user-select: none;
}
.moments-expand-btn:active {
    opacity: 0.6;
}

/* ==========================================
   🌟 10. 朋友圈发帖页面 (极简全屏编辑器)
========================================== */
.moments-post-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #f5f5f5;
    z-index: 50;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.moments-post-screen.active { transform: translateY(0); opacity: 1; }

/* 发帖顶栏 */
.mp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px 16px;
    background: #f5f5f5;
    flex-shrink: 0;
}
.mp-cancel-btn {
    font-size: 14px; font-weight: 600; color: #888;
    cursor: pointer; padding: 4px 8px;
    transition: opacity 0.2s;
}
.mp-cancel-btn:active { opacity: 0.5; }

.mp-publish-btn {
    padding: 7px 20px;
    background: #111; color: #fff;
    font-size: 13px; font-weight: 700;
    border-radius: 20px; border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.mp-publish-btn:active { transform: scale(0.95); opacity: 0.85; }

/* 发帖主体滚动区 */
.mp-body {
    flex: 1; overflow-y: auto; padding: 0 18px 30px 18px;
    display: flex; flex-direction: column; gap: 0;
    -webkit-overflow-scrolling: touch;
}
.mp-body::-webkit-scrollbar { display: none; }

/* 文字输入区 */
.mp-text-area {
    width: 100%; min-height: 140px;
    border: none; background: transparent;
    font-size: 15px; color: #111; font-weight: 400;
    line-height: 1.7; outline: none; resize: none;
    padding: 10px 0 15px 0;
    font-family: inherit;
}
.mp-text-area::placeholder { color: #c0c0c0; font-weight: 500; }

/* 图片预览网格 */
.mp-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.mp-image-item {
    position: relative;
    width: 100%; padding-top: 100%; /* 1:1正方形 */
    border-radius: 10px;
    overflow: hidden;
    background: #e8e8e8;
}
.mp-image-item img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.mp-image-delete {
    position: absolute; top: 4px; right: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold;
    cursor: pointer;
}

/* 添加图片按钮（虚线框） */
.mp-add-image-btn {
    width: 100%; padding-top: 100%;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s;
}
.mp-add-image-btn:active { border-color: #aaa; }
.mp-add-image-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}
.mp-add-image-icon svg { width: 22px; height: 22px; color: #bbb; }
.mp-add-image-icon span { font-size: 10px; color: #bbb; font-weight: 600; }

/* 分割细线 */
.mp-divider {
    width: 100%; height: 1px;
    background: #eaeaea;
    margin: 6px 0;
}

/* 附加功能行 */
.mp-option-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 2px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
}
.mp-option-row:active { background: rgba(0,0,0,0.02); }

.mp-option-left {
    display: flex; align-items: center; gap: 10px;
}
.mp-option-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #999;
}
.mp-option-icon svg { width: 18px; height: 18px; }

.mp-option-label {
    font-size: 14px; font-weight: 500; color: #333;
}

.mp-option-value {
    font-size: 12px; color: #bbb; font-weight: 500;
    max-width: 140px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mp-option-arrow {
    width: 14px; height: 14px; color: #ccc;
    flex-shrink: 0; margin-left: 4px;
}

.mp-option-right {
    display: flex; align-items: center; gap: 2px;
}

/* 可见范围选择胶囊 */
.mp-visibility-capsules {
    display: flex; gap: 8px;
    padding: 2px 0;
}
.mp-vis-capsule {
    padding: 6px 14px;
    font-size: 11px; font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f0f0; color: #999;
}
.mp-vis-capsule.active { background: #111; color: #fff; }
.mp-vis-capsule:active { transform: scale(0.95); }


/* 9. 昵称编辑弹窗 */
.moments-nickname-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.moments-nickname-modal-overlay.active { display: flex; }

.moments-nickname-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px 20px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.moments-nickname-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.moments-nickname-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.moments-nickname-input:focus { border-color: #aaa; }

.moments-nickname-modal-btns {
    display: flex;
    gap: 10px;
}

.moments-nickname-modal-btns button {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.moments-nickname-modal-btns button:active { opacity: 0.7; }

.moments-nickname-cancel {
    background: #f0f0f0;
    color: #888;
}
.moments-nickname-confirm {
    background: #333;
    color: #fff;
}

/* ==========================================
   🌟 角色自主活动设定 (暗黑工业风)
========================================== */
.settings-dashboard-grid {
    display: flex; gap: 12px; margin-bottom: 0px; 
}

.auto-act-card {
    background: #111111;
    border-radius: 16px; 
    padding: 16px 14px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: none;
    cursor: pointer; position: relative; overflow: hidden;
    flex: 1; transition: transform 0.2s;
}
.auto-act-card:active { transform: scale(0.97); }

/* 🌟 设置页全宽卡片按压反馈 */
.icity-body > div:nth-child(2) > div:active {
    transform: scale(0.98) !important;
}

.auto-act-eng { font-size: 9px; font-weight: 900; letter-spacing: 2px; color: rgba(255,255,255,0.4); }
.auto-act-chn { font-size: 15px; font-weight: 800; color: #ffffff; letter-spacing: 1px; }

.auto-act-dot {
    position: absolute; top: 14px; right: 14px;
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.2); box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s;
}
.auto-act-dot.active {
    background: #34C759;
    box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
}

.right-dashboard-card {
    flex: 1; 
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 16px; 
    border: none; 
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 16px 14px;
    cursor: pointer; transition: transform 0.2s; position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.right-dashboard-card:active { transform: scale(0.97); }

/* 🌟 美化中心几何图形背景取代之前的 SVG */
.right-dashboard-card::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.right-dashboard-card::after {
    content: '';
    position: absolute;
    bottom: -15px; right: -15px;
    width: 60px; height: 60px;
    border: 3px solid rgba(0,0,0,0.02);
    border-radius: 50%;
}

.right-dashboard-eng { font-size: 9px; font-weight: 900; letter-spacing: 2px; color: #999; }
.right-dashboard-chn { font-size: 15px; font-weight: 800; color: #111; letter-spacing: 1px; }

/* 🌟 新增的系统状态胶囊行 */
.system-status-row {
    display: flex; gap: 8px; width: 100%; margin-top: 12px; margin-bottom: 15px;
}
.sys-capsule {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 800; color: #555; letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}
.sys-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #34C759;
}
.sys-dot.pulsing {
    animation: sys-pulse 1.5s infinite;
}
@keyframes sys-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.4); }
    70% { box-shadow: 0 0 0 4px rgba(52,199,89,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* 🌟 自主活动全屏配置页 — 暗黑主题 */
.auto-act-fullpage {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000000; /* 纯黑深邃背景 */
    z-index: 4500;
    display: flex; flex-direction: column;
    transform: translateX(100%); opacity: 0; pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.auto-act-fullpage.active { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* 顶部标题区 */
.aa-page-header {
    padding: calc(25px + var(--safe-top)) 20px 20px 20px;
    display: flex; flex-direction: column;
    background: transparent; flex-shrink: 0;
}
.aa-page-title-eng {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; font-weight: 900; letter-spacing: 4px;
    color: #ffffff; text-transform: uppercase;
    animation: aa-neon-glow 2s ease-in-out infinite alternate;
}
@keyframes aa-neon-glow {
    0% { text-shadow: 0 0 2px rgba(255,255,255,0.6), 0 0 8px rgba(255,255,255,0.4), 0 0 12px rgba(200,220,255,0.2); }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0.9), 0 0 15px rgba(255,255,255,0.6), 0 0 25px rgba(200,255,255,0.35); }
}
.aa-page-title-chn {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.3);
    letter-spacing: 2px; margin-top: 6px;
}

/* 内容滚动区 */
.aa-page-body {
    flex: 1; overflow-y: auto;
    padding: 0 15px calc(30px + var(--safe-bottom)) 15px;
    display: flex; flex-direction: column; gap: 15px;
}
.aa-page-body::-webkit-scrollbar { display: none; }

/* 暗黑卡片 */
.aa-section-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px; padding: 18px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.02), 0 4px 15px rgba(0,0,0,0.5);
}

.aa-section-label {
    font-size: 13px; font-weight: 800; color: #ffffff; letter-spacing: 1px;
}

.aa-section-hint {
    font-size: 11px; color: rgba(255, 255, 255, 0.65); line-height: 1.5;
}

/* 独立配置角色卡片 */
.aa-char-config-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: inset 0 1px 5px rgba(255,255,255,0.02);
}
.aa-char-header { display: flex; align-items: center; justify-content: space-between; }
.aa-char-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 0.5px;}

.aa-freq-row { display: flex; align-items: center; justify-content: space-between; }
.aa-freq-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

/* 分钟输入框 — 暗黑版 */
.aa-min-input {
    width: 60px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; text-align: center;
    font-size: 14px; font-weight: 800; color: #fff;
    outline: none; -moz-appearance: textfield;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.aa-min-input::-webkit-outer-spin-button,
.aa-min-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.aa-min-input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); box-shadow: 0 0 8px rgba(255,255,255,0.1), inset 0 2px 4px rgba(0,0,0,0.5); }
.aa-min-suffix { font-size: 12px; color: rgba(255, 255, 255, 0.65); font-weight: 600; margin-left: 6px; }

/* 各种交互按钮 */
.aa-dark-btn {
    padding: 14px 0; border-radius: 14px; text-align: center;
    font-size: 13px; font-weight: 700; cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff; transition: all 0.2s;
    flex: 1; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.aa-dark-btn:active { transform: scale(0.96); background: rgba(255,255,255,0.12); }

.aa-add-btn {
    font-size: 10px; font-weight: 800; color: #fff; cursor: pointer; 
    padding: 4px 10px; background: rgba(255,255,255,0.1); 
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
    transition: all 0.2s; letter-spacing: 0.5px;
}
.aa-add-btn:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.15);
}

.aa-remove-btn {
    font-size: 11px; font-weight: 700; color: #ff453a; cursor: pointer;
    background: rgba(255, 69, 58, 0.1); padding: 5px 12px; border-radius: 6px;
    transition: all 0.2s; border: 1px solid rgba(255, 69, 58, 0.2);
}
.aa-remove-btn:active { background: rgba(255, 69, 58, 0.2); transform: scale(0.95); }

/* 保存按钮 — 发光霓虹白 */
.aa-save-btn {
    padding: 16px 0; border-radius: 14px; text-align: center;
    font-size: 14px; font-weight: 800; cursor: pointer;
    background: #ffffff; color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.2), 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.2s; flex: 1; letter-spacing: 1px;
}
.aa-save-btn:active { transform: scale(0.96); box-shadow: 0 0 10px rgba(255,255,255,0.1), 0 2px 6px rgba(0,0,0,0.3); }

/* 独立配置标签 */
.aa-override-tag {
    font-size: 10px; font-weight: 700; padding: 4px 8px;
    border-radius: 6px; letter-spacing: 0.5px;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 🌟 设置页全宽横向功能卡片按压反馈 */
.settings-fullwidth-card-dark:active,
.settings-fullwidth-card-light:active {
    transform: scale(0.98) !important;
    filter: brightness(0.95);
}

/* ==========================================
   🌟 语音通话界面系统 (全透明磨砂玻璃风)
========================================== */
.voice-call-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000; display: flex; flex-direction: column;
    overflow: hidden; 
    background: rgba(20, 20, 20, 0.6); /* 半透明透出下方应用层 */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    transform: translateY(100%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
.voice-call-overlay.active {
    transform: translateY(0); opacity: 1;
}

.vc-bg-layer {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background-size: cover; background-position: center;
    filter: blur(40px) brightness(0.4) saturate(1.2);
    z-index: 1; transition: background-image 0.5s; opacity: 0.6; /* 调低亮度，不抢镜 */
}
.voice-call-overlay::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2; pointer-events: none;
}

.vc-header {
    position: relative; z-index: 10;
    padding: calc(15px + var(--safe-top)) 20px 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.vc-icon-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; transition: all 0.2s;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vc-icon-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.2); }
.vc-char-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.vc-visual-area {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    margin-top: 3vh; flex-shrink: 0;
}

.vc-avatars-row {
    display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px;
}
.vc-avatar-wrapper {
    width: 80px; height: 80px; border-radius: 50%; padding: 3px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.vc-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.vc-wave-anim { display: flex; gap: 4px; align-items: center; height: 24px; }
.vc-wave-anim span { width: 4px; background: rgba(255,255,255,0.8); border-radius: 2px; animation: vc-wave 1s infinite ease-in-out; }
.vc-wave-anim span:nth-child(1) { animation-delay: 0s; height: 12px; }
.vc-wave-anim span:nth-child(2) { animation-delay: 0.2s; height: 20px; }
.vc-wave-anim span:nth-child(3) { animation-delay: 0.4s; height: 12px; }
@keyframes vc-wave { 0%, 100% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(1.5); opacity: 1; } }

.vc-status-text { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.vc-timer-text { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); font-family: monospace; letter-spacing: 1px; }

.vc-scroll-content {
    flex: 1; position: relative; z-index: 10;
    overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px;
    -webkit-overflow-scrolling: touch;
}
.vc-scroll-content::-webkit-scrollbar { display: none; }

.vc-msg-row { display: flex; flex-direction: column; width: 100%; animation: vc-fade-in 0.3s ease-out; }
.vc-msg-row.ai { align-items: flex-start; }
.vc-msg-row.self { align-items: flex-end; }
@keyframes vc-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 🌟 语音通话：灰色的环境音/语气词描写样式 */
.vc-env-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-style: italic;
    margin: 0 2px;
}

/* 🌟 语音通话：等待文字逐个点出与呼吸波动样式 */
.vc-waiting-text { 
    font-weight: 800;
    letter-spacing: 2px;
    animation: text-breathing 1.2s infinite alternate ease-in-out;
}
.vc-waiting-text::after {
    content: '...';
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    animation: typing-ellipsis 1.5s steps(4, end) infinite;
}

/* 🌟 简约高级磨砂聊天气泡 */
.vc-msg-text {
    max-width: 85%; font-size: 14px; line-height: 1.5; color: #fff;
    padding: 12px 16px; border-radius: 18px;
    background: rgba(0, 0, 0, 0.55); 
    backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    word-break: break-all; font-weight: 400;
}
.vc-msg-row.self .vc-msg-text { 
    background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255,255,255,0.2); color: #fff; 
}
.vc-msg-trans { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 8px; }

.vc-footer-area {
    position: relative; z-index: 10;
    padding: 15px 20px calc(20px + var(--safe-bottom)) 20px;
    display: flex; flex-direction: column; gap: 20px;
}

/* 🌟 纯黑色输入框 */
.vc-input-capsule {
    display: flex; align-items: center; width: 100%; height: 50px;
    background: #000000; 
    border-radius: 25px; border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 5px 5px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); box-sizing: border-box;
}
.vc-input-capsule input {
    flex: 1; background: transparent; border: none; outline: none;
    color: #ffffff; font-size: 14px; font-weight: 500; padding: 0 10px 0 0;
}
.vc-input-capsule input::placeholder { color: rgba(255,255,255,0.4); }

.vc-send-circle {
    width: 40px; height: 40px; border-radius: 50%; background: #ffffff; color: #000000;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s;
    flex-shrink: 0;
}

.vc-send-circle:active { transform: scale(0.9); }

.vc-action-row { display: flex; justify-content: center; align-items: center; width: 100%; }
.vc-action-btn {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.vc-action-btn:active { transform: scale(0.92); }
.vc-action-btn.danger { background: #ff3b30; }

/* 🌟 白色磨砂拖拽胶囊悬浮窗 */
.vc-floating-window {
    position: fixed; top: calc(60px + var(--safe-top)); left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 30px;
    padding: 8px 12px 8px 8px; display: none; align-items: center; gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); cursor: pointer; z-index: 5500;
    transition: opacity 0.3s, transform 0.2s;
}
.vc-floating-window:active { filter: brightness(0.95); }
.vc-float-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; }
.vc-float-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 80px; padding-right: 10px;}
.vc-float-name { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 2px;}
.vc-float-status { font-size: 11px; font-weight: 600; color: #888; white-space: nowrap;}
.vc-float-wave { display: flex; gap: 3px; align-items: flex-end; height: 12px; }
.vc-float-wave span { width: 3px; background: #34c759; border-radius: 2px; animation: vc-wave 1s infinite ease-in-out; }
.vc-float-wave span:nth-child(1) { animation-delay: 0s; height: 6px; }
.vc-float-wave span:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.vc-float-wave span:nth-child(3) { animation-delay: 0.4s; height: 8px; }
.vc-float-timer { font-size: 12px; font-weight: 700; color: #888; font-family: monospace; }

.vc-float-actions { display: flex; gap: 10px; align-items: center; }
.vc-action-btn-mini {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.vc-action-btn-mini:active { transform: scale(0.9); }
.vc-action-btn-mini.danger { background: #ff3b30; }
.vc-action-btn-mini.success { background: #34C759; }

/* ==========================================
   🌟 全新：语音通话记录专属立体卡片与弹窗
========================================== */

/* 语音通话记录卡片 (扁平白底磨砂) */
.call-record-wrapper {
    position: relative; width: 220px; border-radius: 18px; padding: 14px 16px;
    margin: 2px 4px; display: flex; flex-direction: column; gap: 8px;
    cursor: pointer; user-select: none; -webkit-touch-callout: none;
    transition: transform 0.2s, filter 0.2s; overflow: hidden;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: none; /* 彻底去除内外阴影 */
    border: 1px solid rgba(0,0,0,0.06);
}
.preview-msg-row.right .call-record-wrapper { margin-right: -6px; }
.preview-msg-row.left .call-record-wrapper { margin-left: -6px; }
.call-record-wrapper:active { transform: scale(0.96); filter: brightness(0.96); } /* 按压时轻微变暗替代阴影变化 */

.call-record-top { display: flex; align-items: center; gap: 12px; }
.call-record-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #111; color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.call-record-icon svg { width: 16px; height: 16px; }
.call-record-info { display: flex; flex-direction: column; }
.call-record-title { font-size: 14px; font-weight: 800; color: #111; letter-spacing: 0.5px;}
.call-record-duration { font-size: 11px; font-weight: 600; color: #666; margin-top: 2px;}
.call-record-time-range { font-size: 10px; color: #999; margin-top: 6px; border-top: 1px dashed rgba(0,0,0,0.1); padding-top: 6px; font-family: monospace;}

/* 通话记录回放大弹窗 */
.call-log-modal-box {
    width: 90%; max-width: 380px; height: 75vh;
    background: #f5f5f5; border-radius: 24px; padding: 20px 0;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.custom-prompt-overlay.active .call-log-modal-box { transform: translateY(0); }
.call-log-header { padding: 0 20px 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; text-align: center; }
.call-log-title { font-size: 16px; font-weight: 800; color: #111; }
.call-log-subtitle { font-size: 11px; color: #888; font-weight: 600; margin-top: 4px; }
.call-log-body { flex: 1; overflow-y: auto; padding: 15px 20px; display: flex; flex-direction: column; gap: 15px; }
.call-log-body::-webkit-scrollbar { display: none; }
.call-log-footer { padding: 15px 20px 0 20px; flex-shrink: 0; }

/* 弹窗内的简单左右对话气泡 */
.cl-row { display: flex; width: 100%; gap: 10px; align-items: flex-end;}
.cl-row.right { justify-content: flex-end; flex-direction: row-reverse; }
.cl-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; flex-shrink: 0;}

.cl-bubble {
    max-width: 75%; padding: 10px 14px; 
    /* 🌟 核心修改：统一让所有气泡 左上、右上、右下 圆润，只有 左下角 尖锐 */
    border-radius: 16px 16px 16px 4px;
    font-size: 13px; line-height: 1.5; word-break: break-all;
}

/* 🌟 对方的气泡 (左侧) - 改为黑底白字 */
.cl-row.left .cl-bubble { 
    background: #111111; 
    color: #ffffff; 
    border: 1px solid #222222;
}

/* 🌟 我的气泡 (右侧) - 改为白底黑字 */
.cl-row.right .cl-bubble { 
    background: #ffffff; 
    color: #111111; 
    border: 1px solid rgba(0,0,0,0.05); 
}

/* 翻译文字的配色适配 */
.cl-trans { font-size: 11px; margin-top: 4px; border-top: 1px dashed; padding-top: 4px;}
.cl-row.left .cl-trans { color: rgba(255,255,255,0.6); border-top-color: rgba(255,255,255,0.2);}
.cl-row.right .cl-trans { color: rgba(0,0,0,0.4); border-top-color: rgba(0,0,0,0.1);}

/* ==========================================
   🌟 视频通话界面系统
========================================== */
.video-call-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000; display: flex; flex-direction: column;
    overflow: hidden; 
    background: #000; 
    transform: translateY(100%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
.video-call-overlay.active {
    transform: translateY(0); opacity: 1;
}

#video-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 1; filter: brightness(0.85); transition: background-image 0.5s;
}

.video-user-cam-box {
    position: absolute;
    top: calc(15px + var(--safe-top));   
    right: 15px; 
    width: 110px;
    height: 150px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 16px;
    overflow: hidden;
    z-index: 50; 
    cursor: pointer;
    transition: transform 0.2s;
}
.video-user-cam-box:active { transform: scale(0.95); }

#user-cam-video {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    background: transparent;
}
.cam-switch-icon {
    position: absolute; bottom: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.cam-switch-icon svg { width: 14px; height: 14px; }

.video-status-text {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 20;
    font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.4); 
    padding: 8px 16px; border-radius: 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    text-align: center; max-width: 85%; line-height: 1.5;
    pointer-events: none; transition: opacity 0.3s, transform 0.3s;
    animation: fadeInOut 4s forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

.vc-action-row-text {
    display: flex; justify-content: center; width: 100%; margin-bottom: 12px;
    animation: vcSlideIn 0.3s ease-out forwards;
}
.vc-action-inner-text {
    font-size: 13px; color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.35); padding: 6px 14px; border-radius: 14px;
    font-style: italic; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}

/* ==========================================
   🌟 视频通话：高颜值毛玻璃输入框与动作药丸
========================================== */

/* 限制在视频层内的底部输入区 */
#video-call-overlay .vc-footer-area {
    padding: 15px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    width: 100%;
}

#video-call-overlay .vc-input-capsule {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px 5px 15px;
    box-shadow: none;
}

#video-call-overlay #videoInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    height: 100%;
    color: #fff;
    font-size: 15px;
    padding: 0;
    margin-right: 10px;
}
#video-call-overlay #videoInput::placeholder {
    color: rgba(255,255,255,0.6);
}

#video-call-overlay .vc-send-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    color: #fff;
}
#video-call-overlay .vc-send-circle:active {
    background: rgba(255,255,255,0.4);
}

/* 动作描写行 (居中药丸) */
.vc-action-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    animation: vcSlideIn 0.3s ease-out forwards;
}
.vc-action-text {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.25);
    padding: 4px 12px;
    border-radius: 12px;
    font-style: italic;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
