/* Single Emoji Page Styles - 单个表情页面样式 */

/* 复制按钮反馈状态样式 */
.copy-btn.copy-btn-feedback {
    background: #28a745; /* 绿色背景 */
    color: white; /* 白色文字 */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: default; /* 默认光标 */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

/* 基本复制按钮样式 */
.copy-btn {
    background: #28a745; /* 绿色背景 */
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

.copy-btn:hover {
    background: #218838; /* 悬停背景色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* 最高优先级：确保相关表情推荐和所有表情分类中的表情名称居中显示 */
.related-emojis .emoji-grid .emoji-item .emoji-name,
.all-categories .emoji-grid .emoji-item .emoji-name,
.related-emojis .emoji-name,
.all-categories .emoji-name {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: 0.5rem !important;
    font-size: 18px !important;
    color: #666 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important; /* 允许换行 */
    line-height: 1.2 !important;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 0;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: bold;
}

/* Emoji Display Section */
.emoji-display-section {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0;
}

.emoji-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.emoji-left {
    flex-shrink: 0;
}

.emoji-character-large {
    font-size: 8rem;
    line-height: 1;
    text-align: center;
    user-select: all;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.emoji-character-large:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.emoji-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0; /* 确保没有额外的左侧内边距 */
}

/* 添加新容器的样式 */
.emoji-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.emoji-right {
    flex-shrink: 0;
    min-width: 120px;
}

/* 单独设置表情符号页面第二模块标题大小为24px */
.emoji-middle .emoji-name {
    font-size: 24px !important;
    margin: 0 0 0.5rem 0;
    color: #333;
    padding-left: 0; /* 确保名称没有额外的左侧内边距 */
    line-height: 1.2;
    text-align: left !important; /* 强制左对齐，提高优先级 */
    align-self: flex-start; /* 确保容器本身左对齐 */
}

.emoji-name {
    font-size: 1.5rem; /* 原始设置 */
    margin: 0 0 0.5rem 0;
    color: #333;
    padding-left: 0; /* 确保名称没有额外的左侧内边距 */
    line-height: 1.2;
    text-align: left !important; /* 强制左对齐，提高优先级 */
    align-self: flex-start; /* 确保容器本身左对齐 */
}

.emoji-copy {
    margin: 0;
    align-self: flex-start;
    padding-left: 0; /* 确保复制按钮区域没有额外的左侧内边距 */
    display: flex;
    align-items: center;
}

/* Right Actions */
.emoji-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 确保复制按钮和表情名称垂直居中 */
.like-section, .share-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: #f8f9fa;
}

.like-btn.liked .like-icon {
    color: #e74c3c;
}

.like-icon {
    font-size: 1.5rem;
    color: #999;
    transition: color 0.1s ease; /* 从0.3s减少到0.1s，使颜色变化更快 */
}

.like-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.share-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 48px;
    min-height: 48px;
}

.share-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1.2rem;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.share-modal.show {
    display: flex;
}

.share-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.share-content h3 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
}

.share-platform:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.share-platform span {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Emoji Description and Tags Section */
.emoji-description-tags:empty {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    position: absolute !important;
}

.emoji-description-tags {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

h2.section-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    color: #333 !important;
    border-bottom: 2px solid #007bff !important; /* 蓝色分割线 */
    padding-bottom: 0.5rem !important;
}

.description-content {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 0.5rem; /* 恢复原始底部间距 */
    padding-bottom: 0.5rem; /* 恢复原始底部内边距 */
}

.description-content p {
    margin: 0 0 1rem 0;
}

.description-content a {
    color: #007bff;
    text-decoration: none;
}

.description-content a:hover {
    text-decoration: underline;
}

.emoji-tags {
    border-top: 1px solid #eee;
    margin-top: 0.5rem; /* 增加顶部外边距，使分割线进一步向下移动 */
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.emoji-tag {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 15px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f0f0f0 !important; /* 灰色背景 */
    color: #333 !important; /* 黑色字体 */
}

.tag-hash {
    color: #007bff !important; /* 蓝色#号 */
    font-weight: bold;
    margin-right: 0.2rem;
}

.emoji-tag:hover {
    background: #007bff !important; /* 蓝色背景 */
    color: white !important; /* 白色字体 */
    text-decoration: none;
}

.emoji-tag:hover .tag-hash,
body .emoji-description-tags .emoji-tags .tags-list .emoji-tag:hover .tag-hash {
    color: white !important; /* 悬停时#号为白色 */
}

/* Emoji Info Table */
.emoji-info:empty {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    position: absolute !important;
}

.emoji-info {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
}

.emoji-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #333;
    padding: 0.75rem 1rem 0.75rem 0;
    width: 30%;
    vertical-align: top;
}

.info-value {
    color: #666;
    padding: 0.75rem 0;
    position: relative;
}

/* 自定义详细信息内容样式 */
.custom-details-content {
    padding: 1rem 0;
    color: #666;
    line-height: 1.6;
}

.custom-details-content p {
    margin: 0 0 1rem 0;
}

.custom-details-content a {
    color: #007bff;
    text-decoration: none;
}

.custom-details-content a:hover {
    text-decoration: underline;
}

.custom-details-content ul,
.custom-details-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.custom-details-content li {
    margin-bottom: 0.5rem;
}

.custom-details-content h3,
.custom-details-content h4 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

.custom-details-content h3 {
    font-size: 1.3rem;
}

.custom-details-content h4 {
    font-size: 1.1rem;
}

/* 表格样式 */
.custom-details-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #fff;
    border: 1px solid #ddd;
}

.custom-details-content table th,
.custom-details-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.custom-details-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.custom-details-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.custom-details-content table tr:hover {
    background-color: #e9ecef;
}

.custom-details-content table caption {
    caption-side: top;
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 自定义表格样式 */
.emoall-table,
.emoall-info-table,
.emoall-data-table,
.emoall-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #fff;
}

.emoall-table th,
.emoall-table td,
.emoall-info-table th,
.emoall-info-table td,
.emoall-data-table th,
.emoall-data-table td,
.emoall-comparison-table th,
.emoall-comparison-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.emoall-table th,
.emoall-data-table th,
.emoall-comparison-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.emoall-table tr:nth-child(even),
.emoall-data-table tr:nth-child(even),
.emoall-comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.emoall-table tr:hover,
.emoall-data-table tr:hover,
.emoall-comparison-table tr:hover {
    background-color: #e9ecef;
}

.emoall-info-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.emoall-info-table tr:hover {
    background-color: #e9ecef;
}

.copy-text-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background 0.3s ease;
}

.copy-text-btn:hover {
    background: #1e7e34;
}

/* Related Emojis Section */
.related-emojis {
    background: transparent; /* 去掉白色背景 */
    border-radius: 8px;
    ;
    margin: 0;
}

.related-emojis .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    text-align: left;
}

.related-emojis .section-title::after {
    display: none;
}

/* All Categories Section */
.all-categories {
    background: transparent; /* 去掉白色背景 */
    border-radius: 8px;
    
    margin: 0;
}

.all-categories .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    text-align: left;
}

.all-categories .section-title::after {
    display: none;
}

/* 确保相关表情推荐和所有表情分类中的表情名称居中 */
.related-emojis .emoji-name,
.all-categories .emoji-name {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.category-section {
    margin: 0 0 2rem 0;
    background: transparent; /* 去掉白色背景 */
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.category-title a {
    text-decoration: none;
    color: inherit;
}

.category-title a:hover {
    color: #007bff;
}

.view-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.view-more:hover {
    background: #007bff;
    color: white;
}

/* More link style - 与首页保持一致 */
.more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: #007bff;
    color: white;
}

/* Emoji Grid with Glass Effect */
.emoji-grid {
    display: grid;
    gap: 20px;
    margin: 0;
    justify-content: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.emoji-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1; /* 确保正方形 */
    min-width: 150px;
    min-height: 150px;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.emoji-item:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.emoji-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.emoji-link:hover {
    text-decoration: none;
    color: inherit;
}

.emoji-character {
    font-size: 64px;
    line-height: 1;
    cursor: pointer;
    user-select: all;
    margin-bottom: 0.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-name {
    font-size: 18px;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* 面包屑导航样式与桌面端保持一致 */
    .breadcrumb {
        background: #ffffff;
        padding: 0.75rem;
        border-radius: 8px;
        font-size: 0.9rem;
        margin: 0;
        display: block;
        position: relative;
        box-sizing: border-box;
        width: 100%;
        z-index: 1; /* 降低z-index值，确保面包屑导航在顶部导航之下 */
    }
    
    .breadcrumb a {
        color: #007bff;
        text-decoration: none;
    }
    
    .breadcrumb a:hover {
        text-decoration: underline;
    }
    
    .breadcrumb .separator {
        margin: 0 0.5rem;
        color: #6c757d;
    }
    
    .breadcrumb .current {
        color: #6c757d;
        font-weight: bold;
    }
    
    .emoji-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .emoji-middle {
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .emoji-name {
        text-align: center !important;
        margin: 0 auto !important; /* 居中显示并移除标题下方的空白 */
        font-size: 2rem !important;
        align-self: center !important;
    }
    
    /* 移动端标题居中显示 */
    .emoji-middle .emoji-info-container {
        align-items: center !important;
        text-align: center !important;
    }
    
    .emoji-middle .emoji-info-container .emoji-name {
        text-align: center !important;
        align-self: center !important;
        margin: 0 auto !important;
    }
    
    .emoji-right {
        min-width: auto;
        width: 100%;
    }
    
    .emoji-actions {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        align-items: center;
    }
    
    .emoji-character-large {
        font-size: 6rem;
        box-shadow: none; /* 移除box-shadow样式 */
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .emoji-character-large:hover {
        transform: scale(1.03);
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
    
    .info-table table {
        font-size: 0.9rem;
    }
    
    .info-label {
        width: 40%;
    }
    
    .share-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }
    
    .share-platforms {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; /* 移动端一行显示2个平台 */
        gap: 0.75rem !important;
    }
    
    .share-platform {
        padding: 0.75rem;
    }
    
    /* 确保相关表情推荐和所有表情分类中的表情名称居中并完整显示 */
    .related-emojis .emoji-grid .emoji-item .emoji-name,
    .all-categories .emoji-grid .emoji-item .emoji-name,
    .related-emojis .emoji-name,
    .all-categories .emoji-name {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.3 !important;
        max-height: 2.6em !important;
    }
    
    /* 移动端表情网格布局 - 确保一行显示3个表情 */
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 15px !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .emoji-item {
        width: 100% !important;
        height: 130px !important;
        aspect-ratio: 1/1 !important;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .emoji-item:hover {
        transform: translateY(-7px) scale(1.06);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.5);
}
    
    .emoji-character {
        font-size: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 480px) {
    .emoji-character-large {
        font-size: 4rem;
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .emoji-character-large:hover {
        transform: scale(1.02);
        background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .emoji-name {
        font-size: 1.5rem;
        text-align: center !important;
        align-self: center !important;
    }
    
    .emoji-display-section,
    .emoji-description-tags,
    .emoji-info,
    .related-emojis,
    .all-categories {
        padding: 1rem;
    }
    
    .share-content {
        padding: 1rem;
        width: 95%;
        max-height: 80vh;
    }
    
    .share-platforms {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important; /* 在小屏幕设备上也保持一行2个平台 */
        gap: 0.5rem !important;
    }
    
    .share-platform {
        padding: 0.75rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .share-platform > div:first-child {
        font-size: 1.5rem !important;
    }
    
    .share-platform > span {
        font-size: 1rem;
    }
    
    /* 分享模态框移动端样式 */
    .share-platforms {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    }
    
    /* 确保移动端标题居中 */
    .emoji-middle {
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* 移动端标题居中显示 */
    .emoji-middle .emoji-info-container {
        align-items: center !important;
        text-align: center !important;
    }
    
    .emoji-middle .emoji-info-container .emoji-name {
        text-align: center !important;
        align-self: center !important;
        margin: 0 auto !important;
    }
    
    .emoji-name {
        text-align: center !important;
        margin: 0 auto !important;
        align-self: center !important;
        font-size: 1.5rem !important;
    }
    
    .download-btn, .share-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* 确保相关表情推荐和所有表情分类中的表情名称在小屏幕上也居中并完整显示 */
    .related-emojis .emoji-grid .emoji-item .emoji-name,
    .all-categories .emoji-grid .emoji-item .emoji-name,
    .related-emojis .emoji-name,
    .all-categories .emoji-name {
        text-align: center !important;
        font-size: 14px !important;
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.3 !important;
        max-height: 2.6em !important;
    }
    
    /* 小屏幕设备也保持一行3个表情，但尺寸略小 */
    .emoji-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
        gap: 10px !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    .emoji-item {
        width: 100% !important;
        height: 100px !important;
        padding: 0.75rem !important;
        aspect-ratio: 1/1 !important;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.12);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
    
    .emoji-item:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.4);
}
    
    .emoji-character {
        font-size: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    text-align: center;
}

.copy-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.copy-notification.error {
    background: #dc3545;
}