.chat-box { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; max-width: 460px; margin: 0 auto; background: #EBEBEB; color: #333; padding: 14px; border-radius: 12px; display: block; }

/* 1. 聊天气泡区 */
c-t { text-align: center; font-size: 11px; color: #999; margin: 10px 0; display: block; }
c-m { display: flex; flex-direction: column; margin-bottom: 12px; }
c-m > c-n { font-size: 11px; color: #666; margin-bottom: 2px; padding-left: 4px; display: block; }
c-m > c-x { font-size: 14px; background: #fff; padding: 8px 12px; border-radius: 4px 12px 12px 12px; max-width: 85%; width: fit-content; box-shadow: 0 1px 2px rgba(0,0,0,0.05); line-height: 1.4; word-break: break-all; display: block; }

/* 自己消息 (c-m-u) */
c-m-u { display: flex; flex-direction: column; margin-bottom: 12px; align-items: flex-end; }
c-m-u > c-n { font-size: 11px; color: #666; margin-bottom: 2px; padding-right: 4px; display: block; }
c-m-u > c-x { font-size: 14px; background: #95ec69; padding: 8px 12px; border-radius: 12px 4px 12px 12px; max-width: 85%; width: fit-content; box-shadow: 0 1px 2px rgba(0,0,0,0.05); line-height: 1.4; word-break: break-all; display: block; }

/* 2. 私聊板块 */
c-p { border: 1px dashed #4ba3e3; border-radius: 8px; padding: 12px; margin: 16px 0; background: #f0f7fc; display: block; }
c-p > div { font-size: 13px; color: #4ba3e3; font-weight: bold; margin-bottom: 10px; }

/* 3. 状态面板 */
c-l { background: #fff; border-radius: 10px; padding: 12px; margin: 16px 0; box-shadow: 0 2px 6px rgba(0,0,0,0.04); display: block; }
c-l > div:first-child { font-size: 13px; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-bottom: 8px; color: #444; }
c-l > div:not(:first-child) { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
c-l span:first-child { color: #666; }
c-l span:last-child { font-weight: 500; color: #111; }

/* 4. 记忆折叠区（绝缘强化版） */
c-mem { background: #e5e5e5; border-radius: 8px; padding: 4px; font-size: 13px; margin-top: 16px; display: block; pointer-events: auto; }
c-mem details { display: block; }
c-mem summary { cursor: pointer; padding: 6px; font-weight: bold; color: #444; outline: none; -webkit-tap-highlight-color: transparent; }
c-mem > details > div { background: #fff; padding: 12px; border-radius: 6px; margin-top: 4px; }

c-mem-s { margin-bottom: 12px; border-bottom: 1px dashed #eee; padding-bottom: 10px; display: block; }
c-mem-s:last-of-type { border: none; margin-bottom: 8px; padding-bottom: 0; }
c-mem-s > div:first-child { font-weight: bold; color: #e67e22; font-size: 12px; margin-bottom: 4px; }
c-mem-s > div:last-child { font-size: 12px; color: #333; line-height: 1.4; }
c-mem-w { font-size: 11px; color: #999; background: #f9f9f9; padding: 6px; border-radius: 4px; margin-top: 8px; border-left: 3px solid #ccc; display: block; }
/* 外层容器：控制整体宽度和居中 */
.vid {
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 给视频加个好看的阴影 */
    border-radius: 8px; /* 圆角 */
    overflow: hidden; /* 确保视频本身不超出圆角 */
}

/* 视频标签本身：让它撑满父容器 */
.vid video {
    display: block;
    width: 100%;
    height: auto; /* 保持原视频比例 */
}
/* 成员图鉴卡片 - 彻底回归标准 details 嵌套定位 */
c-mem-s > details { margin: 6px 0; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
c-mem-s > details > summary { font-size: 12px; background: #f9f9f9; padding: 6px; font-weight: normal; color: #333; }
c-mem-s > details > div { padding: 8px; font-size: 12px; background: #fff; color: #555; white-space: pre-line; line-height: 1.6; }