/* 咨询页面样式 */
ion-content {
    --background: linear-gradient(135deg, #F8F9FF, #E6F7FF);
    background-size: cover;   
}

.header {
    i.fa-arrow-left {
      margin-left: 15px;  
      font-size: 25px;   
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.message {
    max-width: 80%;
    margin-bottom: 15px;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background: #3A5FE5;
    color: white;
    border-radius: 18px 18px 0 18px;
    padding: 12px 15px;
}

.ai-message {
    align-self: flex-start;
    background: white;
    border-radius: 18px 18px 18px 0;
    padding: 12px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.law-ref {
    background: #E6F7FF;
    border-left: 3px solid #3A5FE5;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.chat-input input {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
}

.send-btn {
    background: #3A5FE5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}
