/* 全局基础 */
* {
  box-sizing: border-box;
}
body {
  background-color: #f0eeee;
  color: #333333;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
  max-width: 820px;
  margin: 20px auto;
  padding: 0 14px;
}

/* 顶部信息栏 */
.top-bar {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 16px;
  padding: 12px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #555555;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.top-bar span {
  white-space: nowrap;
}

/* 聊天内容框 */
.chat-box {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* details 折叠面板 = 状态栏 */
details {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
details:hover {
  border-color: #c0c0c0;
  background: #fafafa;
}
details[open] {
  background: #fbfbfb;
  border-color: #bbbbbb;
}

/* 折叠标题 */
summary {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  color: #333333;
  list-style: none;
  cursor: pointer;
  user-select: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '▼';
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 12px;
  color: #777777;
  transform-origin: center;
  transition: transform 0.3s;
}
details[open] summary::after {
  transform: rotate(180deg);
}

/* 折叠内容区 */
details > div {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #444444;
}
details p {
  margin: 8px 0;
}
details strong {
  color: #222222;
}

/* 小标签样式 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  margin: 0 4px;
}
.tag-safe {
  background: rgba(46,139,87,0.12);
  color: #2d7a4e;
}
.tag-warning {
  background: rgba(205,127,50,0.12);
  color: #b86f23;
}
.tag-danger {
  background: rgba(178,34,34,0.12);
  color: #b62323;
}

/* 表格样式（记忆区） */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
th, td {
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  text-align: left;
}
th {
  background: #f5f5f5;
  color: #333333;
}
td {
  background: #fbfbfb;
}

/* 行动选项 */
.action-list {
  padding-left: 20px;
  margin: 10px 0;
}
.action-list li {
  margin: 6px 0;
  color: #222222;
}

/* ======================
   新增：手机讯息 聊天气泡
   ====================== */
.im-context {
  padding: 10px 0;
}
.im-context p {
  display: flex;
  margin: 10px 0;
  position: relative;
}
/* 昵称（统一放左边） */
.im-nick {
  flex-shrink: 0;
  width: 44px;
  margin-right: 8px;
  font-weight: 700;
  font-size: 12px;
  color: #666;
  text-align: center;
  align-self: flex-end;
}
/* 气泡主体 */
.im-bubble {
  position: relative;
  max-width: calc(100% - 60px);
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

/* 左边气泡（他人：林星星、陈大力） */
.im-bubble.left {
  background: #e5e5ea;
  color: #222;
  border-bottom-left-radius: 6px;
}
/* 右边气泡（学姐：江予棠） */
.im-bubble.right {
  background: #d1e8ff;
  color: #111;
  border-bottom-right-radius: 6px;
  margin-left: auto;
}
