/* 针对iOS设备的特殊修复 */
@supports (-webkit-touch-callout: none) {
  /* 基础修复 */
  div.container {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
  }
  
  /* 防止水平滚动 */
  body > div#__docusaurus {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    overflow-y: auto;
    height: 100%;
  }
  
  /* 修复主容器宽度 */
  .main-wrapper {
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
    max-width: 100vw !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* 修复内容区域宽度 */
  main {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 修复导航栏宽度 */
  .navbar {
    max-width: 100vw;
    width: 100%;
  }
  
  /* 防止内容溢出但允许滚动 */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* 确保聊天区域可滚动 */
  .chatArea {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
} 