.chat-content {
  --background: #f5f5f5;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.message-list {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.message {
  display: flex;
  margin-bottom: 15px;

  &.sent {
    justify-content: flex-end;
    
    .message-bubble {
      background-color: #95ec69;
    }
  }
}

.message-bubble {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 18px;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-text {
  font-size: 16px;
  margin-bottom: 5px;
}

.message-time {
  font-size: 12px;
  color: #666;
  text-align: right;
}

.message-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: white;
  border-top: 1px solid #eee;
  
  ion-input {
    flex: 1;
    margin-right: 10px;
  }
  
  .attachment-btn {
    order: 2;
    margin-right: 5px;
  }
  
  ion-button[click="sendMessage()"] {
    order: 3;
  }
}

.chat-content {
  padding-bottom: 70px; /* 为底部输入框留出空间 */
}

.attachment-btn {
  margin-right: 5px;
}