# ============================================
# Python
# ============================================
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
pip-log.txt
pip-delete-this-directory.txt

# Virtual Environment
venv/
ENV/
env/
.venv
.virtualenv

# PyInstaller
*.spec

# ============================================
# IDEs & Editors
# ============================================
.vscode/
.idea/
*.swp
*.swo
*~
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.project
.classpath
.settings/
.claude/
.worktrees/

# ============================================
# OS
# ============================================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# ============================================
# Logs
# ============================================
*.log
logs/
*.log.*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# ============================================
# Database
# ============================================
*.db
*.sqlite
*.sqlite3
data/
*.db-journal

# ============================================
# Media & Uploads
# ============================================
static/uploads/
backend/data/
backend/media/
backend/logs/

# ============================================
# Environment Variables
# ============================================
.env
.env.local
.env.*.local
.env.development
.env.production
.env.test

# ============================================
# Docker
# ============================================
.dockerignore
!backend/.dockerignore    # 允许 backend 的 .dockerignore
docker-compose.override.yml
docker/backup/
# 本地备份目录
docker/data/
docker/logs/
docker/media/

# ============================================
# Redis
# ============================================
dump.rdb
*.rdb

# ============================================
# Celery
# ============================================
celerybeat-schedule
celerybeat.pid
celerybeat-schedule.db

# ============================================
# Test Coverage
# ============================================
htmlcov/
.coverage
.coverage.*
.pytest_cache/
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.tox/

# ============================================
# Node.js / Frontend
# ============================================
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-store/
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# ============================================
# Build Outputs
# ============================================
dist/
dist-ssr/
build/
.nuxt/
.next/
.cache/
out/
*.tsbuildinfo

# ============================================
# Temporary Files
# ============================================
*.tmp
*.temp
.temp/
temp/
*.bak
*.backup

# ============================================
# Documentation (optional)
# ============================================
# Uncomment if you don't want to commit these
# PROJECT_STATUS*.md
# IMPLEMENTATION_SUMMARY.md
# FINAL_REPORT.md

# ============================================
# AI/Editor specific
# ============================================
.qoder/
Default/
.antigravitycli/
.serena/
