@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  @apply bg-white text-black;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* 强制覆盖所有滚动条样式 - 完全隐藏 */
* {
  scrollbar-width: none !important;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

*::-webkit-scrollbar-track {
  display: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

*::-webkit-scrollbar-thumb {
  display: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

*::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
}

*::-webkit-scrollbar-button {
  display: none !important;
  background: transparent !important;
}


/* 自定义滚动条样式 */
@layer utilities {
  /* 浅色模式滚动条 */
  .scrollbar-light {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
  }
  
  .scrollbar-light::-webkit-scrollbar {
    width: 6px;
  }
  
  .scrollbar-light::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
  }
  
  .scrollbar-light::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
  }
  
  .scrollbar-light::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }
  
  /* 深色模式滚动条 */
  .scrollbar-dark {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 transparent;
  }
  
  .scrollbar-dark::-webkit-scrollbar {
    width: 6px;
    background: transparent !important;
  }
  
  .scrollbar-dark::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 3px;
    border: none !important;
    box-shadow: none !important;
  }
  
  .scrollbar-dark::-webkit-scrollbar-thumb {
    background: #4b5563 !important;
    border-radius: 3px;
    border: none !important;
    box-shadow: none !important;
  }
  
  .scrollbar-dark::-webkit-scrollbar-thumb:hover {
    background: #6b7280 !important;
  }
  
  .scrollbar-dark::-webkit-scrollbar-corner {
    background: transparent !important;
  }
  
  .scrollbar-dark::-webkit-scrollbar-button {
    display: none !important;
  }
  
  /* 响应式滚动条 - 根据主题自动切换 */
  .scrollbar-theme {
    scrollbar-width: none !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .dark .scrollbar-theme::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .dark .scrollbar-theme::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar-thumb:hover {
    display: none !important;
    background: transparent !important;
  }
  
  .dark .scrollbar-theme::-webkit-scrollbar-thumb:hover {
    display: none !important;
    background: transparent !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
  }
  
  .dark .scrollbar-theme::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
  }
  
  .scrollbar-theme::-webkit-scrollbar-button {
    display: none !important;
    background: transparent !important;
  }
}
