/* Single Meme Page Styles */

/* 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;
}

/* Meme Display Section */
.sticker-display-section {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 0 !important; /* 彻底去掉内部间距 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    margin: 0 !important; /* 修改为0，使用content-area的gap来控制间距 */
    display: block !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sticker-display {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    justify-content: space-between !important;
    padding: 1rem !important; /* 将padding移到这里 */
    margin: 0 !important; /* 确保没有margin */
    width: 100% !important;
    box-sizing: border-box !important;
}

.sticker-left {
    flex-shrink: 0 !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    display: block !important;
    position: relative !important;
}

.sticker-image-large {
    width: 200px !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    display: block !important;
    position: relative !important;
    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);
}

.sticker-image-large img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    display: block !important;
}

.sticker-placeholder-large {
    font-size: 8rem !important;
    line-height: 1 !important;
    text-align: center !important;
    user-select: all !important;
    cursor: pointer !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    display: block !important;
}

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

.sticker-middle {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-left: 0 !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    position: relative !important;
}

/* 添加新容器的样式 */
.sticker-info-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 1rem !important; /* 将padding移到这里 */
    margin: 0 !important; /* 确保没有margin */
    box-sizing: border-box !important;
    position: relative !important;
}

.sticker-right {
    flex-shrink: 0 !important;
    min-width: 120px !important;
    padding: 1rem !important; /* 将padding移到这里 */
    margin: 0 !important; /* 确保没有margin */
    display: block !important;
    position: relative !important;
}

h1.sticker-name {
    font-size: 24px !important;
    margin: 0 0 0.5rem 0 !important;
    color: #333 !important;
    padding-left: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    align-self: flex-start !important;
    display: block !important;
}

.sticker-download {
    margin: 0 !important;
    align-self: flex-start !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* 新的下载按钮容器样式 */
.download-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-top: 1rem !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    position: relative !important;
}

/* 提高选择器优先级以覆盖全局样式 */
.download-container .download-btn,
.download-container a.download-btn {
    background: #28a745 !important;
    color: white !important; /* 使用 !important 确保白色字体 */
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: 0 !important;
    text-decoration: none !important;
    width: auto !important;
    margin: 0 !important; /* 确保没有margin */
    position: relative !important;
}

.download-container .download-btn:hover,
.download-container a.download-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3) !important;
    position: relative !important;
}

.download-container .download-btn.disabled,
.download-container a.download-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* 下载按钮动画效果 */
.download-container .download-btn.downloading,
.download-container a.download-btn.downloading {
    animation: downloadPulse 1s infinite;
}

@keyframes downloadPulse {
    0% {
        box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(40,167,69,0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    }
}

/* Right Actions */
.sticker-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    position: relative !important;
}

.like-section, .share-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important; /* 确保没有margin */
    padding: 0 !important; /* 确保没有padding */
    position: relative !important;
}

.like-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    margin: 0 !important; /* 确保没有margin */
    position: relative !important;
}

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

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

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

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

.share-btn {
    background: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important; /* 确保没有margin */
    position: relative !important;
    min-width: 48px !important; /* 确保按钮有最小宽度 */
    min-height: 48px !important; /* 确保按钮有最小高度 */
}

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

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

/* 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;
    margin: 0; /* 确保没有margin */
    padding: 0; /* 确保没有padding */
}

.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;
    margin: 0; /* 确保没有margin */
    box-sizing: border-box;
}

.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;
}

/* Meme Description and Tags Section */
.sticker-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;
}

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

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 !important;
    line-height: 1.6 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important; /* 恢复原始底部间距 */
    padding-bottom: 0.5rem !important; /* 恢复原始底部内边距 */
}

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

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

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

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

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

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

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

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

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

/* Meme Info Table */
.sticker-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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 !important;
    padding: 0.75rem !important;
    text-align: left !important;
}

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

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

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

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

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

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

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

/* Related Memes Section */
.related-stickers {
    background: transparent !important; /* 去掉白色背景 */
    border-radius: 8px !important;
    margin: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.related-stickers .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;
    text-align: left !important;
}

.related-stickers .section-title::after {
    display: none !important;
}

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

.all-categories .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;
    text-align: left !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Sticker Grid with Glass Effect */
.sticker-grid {
    display: grid !important;
    gap: 20px !important;
    margin: 0 !important;
    justify-content: center !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* 电脑端自适应显示5个 */
}

.sticker-item {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    text-align: center !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

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

.sticker-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.sticker-image {
    width: 100% !important;
    height: 95% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sticker-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.sticker-placeholder {
    font-size: 3rem !important;
    line-height: 1 !important;
    text-align: center !important;
    user-select: all !important;
}

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

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

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

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

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

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

/* Medium screens - 显示4个 */
@media (min-width: 769px) and (max-width: 1019px) {
    .sticker-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
}

/* Desktop Responsive - 大屏幕适配 (1020px及以上显示5个) */
@media (min-width: 1020px) {
    .sticker-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 25px !important;
    }
}
