:root {
    --ion-color-primary: #4b0082;
    --ion-color-secondary: #800080;
    --ion-color-tertiary: #ee82ee;
    --ion-color-light-bg: #f8f0ff;
    --ion-color-input-bg: rgba(255, 255, 255, 0.8);
  }
  
  ion-content {
    --background: none;
    background: linear-gradient(to bottom, #4b0082, #800080, #ee82ee);
    position: relative;
  }
  
  
  ion-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
  }
  
  ion-content > * {
    position: relative;
    z-index: 3;
  }
  
  @keyframes twinkling {
    0% { opacity: 0.8; }
    50% { opacity: 0.2; }
    100% { opacity: 0.8; }
  }
  
  body {
    font-family: '思源黑体', '微软雅黑', '苹方', sans-serif;
    background-color: var(--ion-color-light-bg);
    color: #333;
  }
  
  ion-header {
    --background: var(--ion-color-primary);
    color: var(--ion-color-primary-contrast);
  }
  
  ion-toolbar {
    --background: transparent;
  }
  
  ion-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  
  ion-title ion-icon {
    margin-right: 8px;
  }
  
  ion-item {
    --background: var(--ion-color-input-bg);
    border-radius: 8px;
    margin-bottom: 16px;
  }
  
  ion-input,
  ion-textarea {
    --padding-start: 12px;
    --padding-end: 12px;
  }
  
  ion-button {
    --background: var(--ion-color-secondary);
    --border-radius: 8px;
    --padding-vertical: 10px;
    --padding-horizontal: 20px;
    font-weight: bold;
    color: var(--ion-color-primary-contrast);
    margin-top: 20px;
  }
  
  .loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
    color: var(--ion-color-secondary);
  }
  
  .response-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  fm-markdown-preview {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
  }