* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; background: #0f0f1a; color: #e0e0e0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.navbar { background: #1a1a2e; border-bottom: 1px solid #2a2a4a; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: #7c5cfc; }
.nav-links a { color: #b0b0c0; margin-left: 24px; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #7c5cfc; }

.hero { text-align: center; padding: 60px 20px 40px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.hero h1 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.hero-desc { color: #8888aa; font-size: 16px; margin-bottom: 30px; }
.search-box { max-width: 500px; margin: 0 auto 20px; }
.search-box input { width: 100%; padding: 14px 20px; border: 1px solid #3a3a5a; border-radius: 12px; background: #1a1a2e; color: #fff; font-size: 15px; outline: none; transition: border 0.2s; }
.search-box input:focus { border-color: #7c5cfc; }
.search-box input::placeholder { color: #666; }
.stats { color: #666; font-size: 13px; }

.categories { padding: 20px; }
.category-nav { max-width: 1200px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cat-btn { padding: 8px 20px; border: 1px solid #2a2a4a; border-radius: 20px; background: transparent; color: #b0b0c0; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.cat-btn:hover, .cat-btn.active { background: #7c5cfc; color: #fff; border-color: #7c5cfc; }

.tools-grid { max-width: 1200px; margin: 20px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tool-card { display: flex; gap: 14px; padding: 18px; background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 12px; transition: all 0.2s; }
.tool-card:hover { border-color: #7c5cfc; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(124,92,252,0.15); }
.tool-icon { font-size: 32px; min-width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #252540; border-radius: 10px; }
.tool-info { flex: 1; min-width: 0; }
.tool-info h3 { font-size: 15px; color: #fff; margin-bottom: 4px; }
.tool-info p { font-size: 13px; color: #888; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #252540; color: #888; }
.tag.free { background: #1a3a2a; color: #4caf50; }

.submit-section { text-align: center; padding: 60px 20px; }
.submit-section h2 { color: #fff; margin-bottom: 10px; }
.submit-section p { color: #888; margin-bottom: 20px; }
.submit-btn { display: inline-block; padding: 12px 30px; background: #7c5cfc; color: #fff; border-radius: 8px; font-size: 15px; transition: background 0.2s; }
.submit-btn:hover { background: #6a4ce0; }

.footer { text-align: center; padding: 30px 20px; border-top: 1px solid #2a2a4a; color: #555; font-size: 13px; }

.tool-card.hidden { display: none; }

@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .tools-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
