/* Skills 市场页面样式 */
.skill-filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.skill-filter-btn { padding: 8px 16px; border-radius: 20px; border: 1px solid #d2d2d7; background: white; color: #1d1d1f; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.skill-filter-btn:hover { background: #f5f5f7; }
.skill-filter-btn.active { background: #0071e3; color: white; border-color: #0071e3; }
.skill-count-badge { display: inline-block; background: #e8f0fe; color: #0071e3; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 4px; }
.skill-filter-btn.active .skill-count-badge { background: rgba(255,255,255,0.3); color: white; }

/* Skill 卡片网格 */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.skill-card { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; cursor: pointer; border: 1px solid transparent; }
.skill-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); border-color: #0071e3; }
.skill-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.skill-name { font-size: 16px; font-weight: 600; color: #1d1d1f; margin: 0; }
.skill-installs { font-size: 13px; color: #86868b; white-space: nowrap; margin-left: 12px; }
.skill-source { font-size: 12px; color: #0071e3; margin-bottom: 8px; }
.skill-category-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.cat-前端-设计 { background: #e8f0fe; color: #0071e3; }
.cat-AI-编码 { background: #fef3e8; color: #c2410c; }
.cat-AI-工具 { background: #f0fdf4; color: #15803d; }
.cat-AI-视频 { background: #faf5ff; color: #7e22ce; }
.cat-营销-增长 { background: #fff7ed; color: #ea580c; }
.cat-编程-全栈 { background: #f0f9ff; color: #0284c7; }
.cat-后端-数据库 { background: #f1f5f9; color: #475569; }
.cat-DevOps-运维 { background: #fefce8; color: #ca8a04; }
.cat-办公-效率 { background: #fdf2f8; color: #db2777; }
.cat-办公-Google { background: #e0f2fe; color: #0369a1; }
.cat-编程-Golang { background: #ccfbf1; color: #0d9488; }
.cat-云计算-Azure { background: #f3e8ff; color: #6d28d9; }
.cat-办公-飞书 { background: #e0e7ff; color: #3730a3; }
.cat-设计-工具 { background: #fef9c3; color: #a16207; }
.cat-前端-移动端 { background: #fae8ff; color: #a855f7; }
.cat-AI-自动化 { background: #dcfce7; color: #16a34a; }
.cat-AI-设计 { background: #fce7f3; color: #be185d; }
.cat-其他工具 { background: #f5f5f7; color: #6e6e73; }
.skill-official-badge { display: inline-block; background: #0071e3; color: white; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; margin-left: 8px; }
.skill-url-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; border: 1px solid #d2d2d7; background: white; font-size: 12px; color: #86868b; cursor: pointer; transition: all 0.2s; text-decoration: none; margin-top: 8px; }
.skill-url-btn:hover { background: #0071e3; color: white; border-color: #0071e3; }
.skill-install-cmd { background: #f5f5f7; padding: 8px 12px; border-radius: 8px; font-family: monospace; font-size: 12px; color: #1d1d1f; margin-top: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.skill-install-cmd:hover { background: #e8f0fe; }
.skill-install-cmd .copy-icon { font-size: 14px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; align-items: center; }
.pagination button { padding: 8px 14px; border-radius: 8px; border: 1px solid #d2d2d7; background: white; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.pagination button:hover { background: #f5f5f7; }
.pagination button.active { background: #0071e3; color: white; border-color: #0071e3; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 14px; color: #86868b; margin: 0 12px; }

/* 加载更多 */
.load-more-section { text-align: center; padding: 24px; }
.load-more-btn { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; border: none; padding: 12px 32px; border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.load-more-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.4); }

/* 发布方列表 */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.source-card { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
.source-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-color: #7c3aed; }
.source-name { font-size: 15px; font-weight: 600; color: #1d1d1f; margin-bottom: 4px; }
.source-count { font-size: 12px; color: #86868b; }
.source-official { color: #0071e3; font-weight: 600; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: #86868b; }
.empty-state svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 16px; }

/* Tab 切换 */
.tab-bar { display: flex; justify-content: center; gap: 4px; margin-bottom: 32px; background: #f5f5f7; border-radius: 12px; padding: 4px; width: fit-content; margin-left: auto; margin-right: auto; }
.tab-btn { padding: 10px 24px; border-radius: 10px; border: none; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #86868b; }
.tab-btn.active { background: white; color: #1d1d1f; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tab-section { display: none; }
.tab-section.active { display: block; }

/* 搜索建议 */
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #d2d2d7; border-top: none; border-radius: 0 0 12px 12px; max-height: 300px; overflow-y: auto; display: none; z-index: 50; }
.search-suggestions.show { display: block; }
.suggestion-item { padding: 10px 20px; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.suggestion-item:hover { background: #f5f5f7; }
.suggestion-source { font-size: 11px; color: #0071e3; }

/* 滚动到顶部按钮 */
.scroll-top-btn { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: #0071e3; color: white; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,113,227,0.4); display: none; align-items: center; justify-content: center; font-size: 20px; z-index: 90; transition: all 0.3s; }
.scroll-top-btn:hover { transform: scale(1.1); }
.scroll-top-btn.visible { display: flex; }

@media (max-width: 768px) {
  .skill-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 36px; }
}
