* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%); min-height: 100vh; color: #fff; }
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* Header */
header { text-align: center; padding: 40px 0 30px; }
h1 { font-size: 3rem; background: linear-gradient(90deg, #00d4ff, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.subtitle { color: #b8c0cc; margin-bottom: 25px; font-size: 1.3rem; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-bottom: 20px; }
.stat-num { font-size: 2.2rem; font-weight: bold; background: linear-gradient(90deg, #00d4ff, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.95rem; color: #8890a0; }

/* Category Grid - 入口卡片 */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-bottom: 50px; }
.category-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 24px; text-decoration: none; color: #fff; transition: 0.3s; display: flex; flex-direction: column; }
.category-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(0,212,255,0.3); transform: translateY(-3px); }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.category-icon { font-size: 2.2rem; }
.category-name { font-size: 1.2rem; font-weight: 700; }
.category-count { color: #8890a0; font-size: 0.95rem; margin-bottom: 10px; }
.category-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.preview-tag { padding: 3px 9px; background: rgba(0,212,255,0.1); border-radius: 10px; font-size: 0.65rem; color: #00d4ff; }

/* Section - 每个分类显示Top 3 */
.category-section { margin-bottom: 50px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; font-weight: 700; }
.section-title .cat-icon { font-size: 1.9rem; }
.section-title .cat-name { background: linear-gradient(90deg, #00d4ff, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.view-all { padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; color: #b8c0cc; text-decoration: none; font-size: 1.25rem; transition: 0.3s; }
.view-all:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Tools Grid - Top 3 */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card { background: rgba(255,255,255,0.03); border-radius: 14px; padding: 24px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.08); position: relative; display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); border-color: rgba(0,212,255,0.3); }

/* Rank Badge */
.tool-rank { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.8rem; }
.tool-card:nth-child(1) .tool-rank { background: linear-gradient(135deg, #ffd700, #ffed4a); color: #000; }
.tool-card:nth-child(2) .tool-rank { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #000; }
.tool-card:nth-child(3) .tool-rank { background: linear-gradient(135deg, #cd7f32, #daa06d); color: #000; }

.tool-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.tool-title { flex: 1; }
.tool-name { font-size: 1.25rem; font-weight: 700; }
.tool-name-en { font-size: 0.7rem; color: #8890a0; }

.tool-price { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 0.65rem; font-weight: 600; margin-bottom: 10px; }
.price-free { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.price-freemium { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.price-paid { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.tool-desc { color: #b8c0cc; font-size: 1.25rem; line-height: 1.7; margin-bottom: 12px; flex: 1; }
.tool-features { display: flex; flex-wrap: wrap; gap: 5px; }
.feature-tag { padding: 3px 8px; background: rgba(0,212,255,0.1); border-radius: 10px; font-size: 0.6rem; color: #00d4ff; }

.tool-links { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.tool-link { flex: 1; display: inline-block; padding: 8px 12px; text-align: center; text-decoration: none; border-radius: 20px; font-size: 0.8rem; font-weight: 600; transition: 0.3s; }
.tool-link.primary { background: linear-gradient(90deg, #00d4ff, #7c3aed); color: #fff; }
.tool-link.primary:hover { box-shadow: 0 4px 15px rgba(0,212,255,0.3); }
.tool-link.secondary { background: rgba(255,255,255,0.06); color: #b8c0cc; border: 1px solid rgba(255,255,255,0.1); }
.tool-link.secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }

footer { text-align: center; padding: 35px 0; color: #8890a0; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
    h1 { font-size: 2rem; } 
    .tools-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 25px; }
}

/* Tool Favicon */
.tool-favicon { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; padding: 4px; flex-shrink: 0; }
