body {
    background-color: #121212;
}

/* 瀑布流卡片样式 */
.emoji-card {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e1e1e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #333;
}

.emoji-card:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #2a2a2a;
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* 图片懒加载动画 */
.emoji-card img {
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

.emoji-card img.loaded {
    opacity: 1;
}

/* 隐藏原本浏览器的滚动条，使用自定义极客风格 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 自定义分类栏的横向滚动条，极简细条风格 */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* App 区域样式 */
.app-icon {
    cursor: pointer;
    width: 90px;
}
.app-icon-bg {
    width: 90px;
    height: 90px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.app-icon:hover .app-icon-bg {
    transform: translateY(-8px);
    border-color: #0dcaf0 !important;
    box-shadow: 0 10px 20px rgba(13, 202, 240, 0.2) !important;
}
.border-dashed {
    border-style: dashed !important;
}

/* 盲打模式下，点击卡片时的微小缩放反馈动画 */
.emoji-card.clicked-feedback {
    transform: scale(0.85);
    border-color: #0dcaf0;
    opacity: 0.8;
}

/* 🚀 强迫症专属：完美对齐网格 (替代 Bootstrap 默认网格) */
.perfect-grid {
    display: grid;
    /* 自动填充，每个格子最小 64px，最大平分剩余空间，实现两端绝对对齐 */
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 12px;
    justify-items: center;
}

/* 密码输入错误的震动特效 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}
.shake-animation {
    animation: shake 0.4s ease-in-out;
}

/* ================= [厂牌 Tag 样式 (Multiverse)] ================= */
.brand-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 0;
}

.brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #1a1a1a;
    border-top: 8px solid #444; /* 默认灰线 */
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #aaa;
}

.brand-tag:hover {
    opacity: 0.8;
    background-color: #222;
}

/* 激活状态与各厂牌专属 8px 识别色 */
.brand-tag.active {
    opacity: 1;
    background-color: #2a2a2a;
    color: #fff;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.brand-tag[data-brand="twemoji"].active { border-top-color: #2ecc71; }  /* 清新浅绿色 */
.brand-tag[data-brand="fluent"].active { border-top-color: #0078D4; }  /* Microsoft 蓝 */
.brand-tag[data-brand="noto"].active { border-top-color: #EA4335; }    /* Google 红 */
.brand-tag[data-brand="openmoji"].active { border-top-color: #FCEA2B; }/* OpenMoji 黄 */
.brand-tag[data-brand="original"].active { border-top-color: #9b59b6; } /* 创造紫 */

.brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #fff;
    padding: 2px;
}

/* 防止切换厂牌时，清空数据导致页面高度塌陷产生的抖动 */
#emojiGrid {
    min-height: 60vh; /* 始终保持至少占屏幕 60% 的高度 */
}