* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: 2.8rem;
    margin: 15px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.taglineA {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.taglineB {
    font-size: 1.0rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.search-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.search-container i {
    font-size: 1.2rem;
    margin-right: 10px;
    opacity: 0.7;
}

#search-input {
    background: transparent;
    border: none;
    width: 100%;
    color: white;
    font-size: 1.1rem;
    padding: 8px 0;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.container {
    max-width: 1300px;
    width: 100%;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0 30px;
}

.category {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.category:hover, .category.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.emoji-grid {
    display: block;
    height: 600px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.emoji-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    width: 120px;
    height: 140px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.emoji-card:hover {
    transform: translateY(-5px) scale(1.03);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.emoji {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.2s ease;
}

.emoji-name {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.2;
    word-break: break-word;
    padding: 0 5px;
}

.emoji-card.copied::after {
    content: '✓ 已复制!';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 204, 113, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
}

footer {
    margin-top: 30px;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* 虚拟滚动容器样式 */
.virtual-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.virtual-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .emoji-card {
        width: 100px;
        height: 120px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .emoji {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .emoji-card {
        width: 90px;
        height: 110px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}