/* 微信聊天记录转发页面样式 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
}

:root {
  --white: #FFFFFF;
  --black: #000000;
  --gray-200: #E5E5E5;
  --gray-500: #959595;
  --avatar-size: 40px;
}

body {
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

#app {
  min-height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: var(--white);
}

/* 聊天记录列表 */
.chat-list {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  padding: 0;
  background: var(--white);
}

.chat-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--gray-200);
}

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

/* 头像 */
.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 6px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  margin-right: 10px;
}

.avatar-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
  position: relative;
}

.avatar-gradient::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
}

.avatar-placeholder {
  width: var(--avatar-size);
  height: var(--avatar-size);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  visibility: hidden;
  margin-right: 10px;
}

/* 聊天内容 */
.chat-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.chat-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 2px;
}

.sender-name {
  font-size: 13px;
  color: rgb(118, 118, 118);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 12px;
  color: var(--gray-500);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-message {
  margin-top: 2px;
}

.message-text {
  font-size: 16px;
  color: rgb(26, 26, 26);
  word-break: break-all;
  display: block;
}

/* 底部指示点 */
.scroll-indicator {
  width: 6px;
  height: 6px;
  background: #D1D5DB;
  border-radius: 50%;
  margin: 16px auto;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
