* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; display: flex; flex-direction: column; height: 100vh; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #e4e7ed; padding: 16px 25px; display: flex; align-items: center; gap: 20px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.header h1 { font-size: 20px; color: #000; white-space: nowrap; }
.header h1 span { color: #16baaa; font-weight: 400; font-size: 14px; margin-left: 8px; }
.search-box { flex: 1; max-width: 520px; position: relative; display: flex; gap: 8px; }
.search-box input { flex: 1; padding: 10px 16px 10px 40px; border: 1px solid #dcdfe6; border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { border-color: #16baaa; box-shadow: 0 0 0 3px rgba(82,143,240,0.15); }
.search-box .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #999; }
.search-box .search-btn { padding: 10px 20px; background: #16baaa; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .3s; }
.search-box .search-btn:hover { opacity: 0.85; }
.stats { font-size: 14px; color: #999; white-space: nowrap; }
.copy-tip { font-size: 14px; color: #ff5722; white-space: nowrap; align-self: center; }

/* Main Layout */
.main { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar { width: 200px; background: #fff; border-right: 1px solid #e4e7ed; overflow-y: auto; flex-shrink: 0; }
.sidebar .cat-item { padding: 13px 20px; cursor: pointer; font-size: 14px; color: #333; transition: all .15s; border-left: 5px solid transparent; }
.sidebar .cat-item:hover { background: #eaf5f4; color: #222; }
.sidebar .cat-item.active { background: #eaf5f4; color: #16baaa; border-left-color: #16baaa; font-weight: bold; }
.sidebar .cat-item .cat-count { float: right; font-size: 14px; color: #bbb; }

/* Content */
.content { flex: 1; overflow-y: auto; padding: 20px; }
.content-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: #1a1a2e; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.icon-card { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 20px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: all .2s; position: relative; }
.icon-card:hover { border-color: #16baaa; box-shadow: 0 2px 12px rgba(82,143,240,0.15); transform: translateY(-2px); }
.icon-card:active { transform: translateY(0); }
.icon-card i { font-size: 34px; color: #333; transition: color .2s; }
.icon-card:hover i { color: #16baaa; }
.icon-card .icon-name { font-size: 13px; color: #666; text-align: center; word-break: break-all; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-card.copied { border-color: #16b777; }
.icon-card.copied::after { content: '已复制'; position: absolute; top: 4px; right: 6px; font-size: 10px; color: #16b777; font-weight: 500; }

/* Toast */
.toast { position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-120px); background: #16b777; color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; transition: transform .3s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty i { font-size: 48px; margin-bottom: 16px; display: block; color: #ccc; }
.empty p { font-size: 14px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }
