.markdown-renderer {
  line-height: 1.6;
  color: #333;
  
  // 段落间距
  .markdown-paragraph {
    margin-bottom: 12px;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  // 空行
  .markdown-br {
    height: 8px;
  }
  
  // 标题样式
  .markdown-heading {
    font-weight: bold;
    margin: 16px 0 8px 0;
    
    &.markdown-h1 {
      font-size: 1.5rem;
      color: #2c3e50;
      border-bottom: 2px solid #3498db;
      padding-bottom: 4px;
    }
    
    &.markdown-h2 {
      font-size: 1.3rem;
      color: #34495e;
      border-bottom: 1px solid #bdc3c7;
      padding-bottom: 2px;
    }
    
    &.markdown-h3 {
      font-size: 1.2rem;
      color: #34495e;
    }
    
    &.markdown-h4 {
      font-size: 1.1rem;
      color: #7f8c8d;
    }
    
    &.markdown-h5,
    &.markdown-h6 {
      font-size: 1rem;
      color: #95a5a6;
    }
  }
  
  // 代码块
  .markdown-code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    
    .markdown-code-text {
      font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
      font-size: 0.9rem;
      color: #24292e;
      white-space: pre;
    }
  }
  
  // 行内代码
  .markdown-inline-code {
    background-color: #f1f3f4;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #d73a49;
  }
  
  // 列表
  .markdown-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    
    .markdown-bullet {
      color: #3498db;
      margin-right: 8px;
      font-weight: bold;
      min-width: 12px;
    }
    
    .markdown-list-text {
      flex: 1;
    }
  }
  
  .markdown-ordered-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    
    .markdown-number {
      color: #3498db;
      margin-right: 8px;
      font-weight: bold;
      min-width: 20px;
    }
    
    .markdown-list-text {
      flex: 1;
    }
  }
  
  // 引用
  .markdown-blockquote {
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    padding: 8px 12px;
    margin: 12px 0;
    
    .markdown-quote-text {
      color: #6c757d;
      font-style: italic;
    }
  }
  
  // 文本格式
  .markdown-text {
    color: #333;
  }
  
  .markdown-bold {
    font-weight: bold;
    color: #2c3e50;
  }
  
  .markdown-italic {
    font-style: italic;
    color: #34495e;
  }
  
  .markdown-link {
    color: #3498db;
    text-decoration: underline;
  }
  
  // 响应式设计
  @media screen and (max-width: 768px) {
    .markdown-heading {
      &.markdown-h1 {
        font-size: 1.3rem;
      }
      
      &.markdown-h2 {
        font-size: 1.2rem;
      }
      
      &.markdown-h3 {
        font-size: 1.1rem;
      }
    }
    
    .markdown-code-block {
      padding: 8px;
      margin: 8px 0;
      
      .markdown-code-text {
        font-size: 0.8rem;
      }
    }
  }
  
  // 暗色主题支持
  &.dark-theme {
    color: #e9ecef;
    
    .markdown-heading {
      &.markdown-h1 {
        color: #74b9ff;
        border-bottom-color: #74b9ff;
      }
      
      &.markdown-h2 {
        color: #81ecec;
        border-bottom-color: #636e72;
      }
      
      &.markdown-h3 {
        color: #81ecec;
      }
    }
    
    .markdown-code-block {
      background-color: #2d3748;
      border-color: #4a5568;
      
      .markdown-code-text {
        color: #e2e8f0;
      }
    }
    
    .markdown-inline-code {
      background-color: #4a5568;
      color: #f56565;
    }
    
    .markdown-blockquote {
      border-left-color: #74b9ff;
      background-color: #2d3748;
      
      .markdown-quote-text {
        color: #a0aec0;
      }
    }
    
    .markdown-text {
      color: #e9ecef;
    }
    
    .markdown-bold {
      color: #f7fafc;
    }
    
    .markdown-italic {
      color: #cbd5e0;
    }
    
    .markdown-link {
      color: #74b9ff;
    }
    
    .markdown-bullet,
    .markdown-number {
      color: #74b9ff;
    }
  }
}
