# ==============================================
# Dependencies (依赖目录)
# ==============================================
node_modules/
**/node_modules/

# ==============================================
# Build outputs (构建输出)
# ==============================================
dist/
build/
.vite/
.next/
.nuxt/

# ==============================================
# Environment files (环境配置文件)
# ==============================================
.env
.env.local
.env.*.local
!.env.example

# ==============================================
# IDE & Editor (编辑器配置)
# ==============================================
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
.project
.classpath
.settings/

# ==============================================
# Logs (日志文件)
# ==============================================
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# 后端运行时日志目录：忽略所有内容，仅保留 .gitkeep 占位文件
backend/logs/**
!backend/logs/.gitkeep

# ==============================================
# Database files (数据库文件)
# ==============================================
*.db
*.sqlite
*.sqlite3

# ==============================================
# Backup files (备份文件)
# ==============================================
backend/backups/*
!backend/backups/.gitkeep
*.backup.json
*.bak

# ==============================================
# Uploads directory (用户上传文件)
# ==============================================
backend/uploads/**
!backend/uploads/.gitkeep

# ==============================================
# Avatars directory (用户头像)
# ==============================================
backend/uploads/avatars/*

# ==============================================
# Temporary files (临时文件)
# ==============================================
backend/temp/*
!backend/temp/.gitkeep
*.tmp
*.temp
*.cache

# ==============================================
# Data files (数据文件)
# ==============================================
*.xlsx
*.xls
*.csv

# ==============================================
# Test coverage (测试覆盖率)
# ==============================================
coverage/
.nyc_output/

# ==============================================
# Process & Runtime (进程和运行时文件)
# ==============================================
.pid
*.pid
frontend/.frontend-pid
frontend/.frontend-port

# ==============================================
# User config files (用户配置文件)
# ==============================================
backend/backgroundSettings.json
backend/fileIndex.json
backend/config/auto-backup-settings.json
backend/config/remote-backup-configs.json

# ==============================================
# Misc (其他)
# ==============================================
.trae/
.trae-html-share-packages/
.vercel/
3d-datacenter-dashboard/
docs/install-improvement-plan.md
docs/install-split-plan.md
.superpowers/
docs/superpowers/
CODE_WIKI.md
AGENTS.md
docs/docker-deployment-plan.md
backend/tests/*.disabled
*.png
*.py

# ==============================================
# Local-only references (本地参考文档)
# ==============================================
deploy/nginx-troubleshooting.md
docs/trae-creativity-contest-proposal.html
TRAE-创意提案-IDC设备资产管理系统.html

# ==============================================
# 临时测试脚手架文件（不应提交）
# ==============================================
frontend/__*
.workbuddy/
