/* 文字表情符号大全 - 页面私有样式 */
.container {
    max-width: 1400px;
}

/* 双栏：左分类导航 + 右表情列表（覆盖 common 400px） */
.main {
    grid-template-columns: 300px 1fr;
}

@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }
}

/* ================= 左侧：查找与分类 ================= */
.cat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s, transform .15s;
    animation: catIn .3s ease both;
}

.cat-item:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateY(-1px);
}

.cat-item.active {
    border-color: #667eea;
    background: #eef2ff;
}

.cat-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.cat-item.active .cat-name {
    color: #4338ca;
}

.cat-badge {
    min-width: 22px;
    padding: 1px 6px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cat-item.active .cat-badge {
    background: #667eea;
    color: #fff;
}

@keyframes catIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mode-note {
    margin-top: 4px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.mode-note b {
    color: #374151;
    font-weight: 600;
}

/* ================= 右侧：表情列表 ================= */
.content {
    padding: 15px;
}

.symbol-cat {
    margin-bottom: 22px;
}

.symbol-cat:last-child {
    margin-bottom: 0;
}

.symbol-cat h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.copy-group {
    padding: 3px 10px;
    font-size: 12px;
    color: #667eea;
    background: #eef2ff;
    border: 1px solid #dfe3ff;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.copy-group:hover {
    background: #667eea;
    color: #fff;
}

.symbols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.symbols i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-all;
    cursor: pointer;
    user-select: all;
    transition: transform .12s, border-color .12s, background .12s, box-shadow .12s;
}

.symbols i:hover {
    border-color: #667eea;
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.symbols i:active {
    transform: translateY(0);
    background: #dfe3ff;
}