/* ============================
   表情包导入插件 - 样式
   ============================ */

/* ----- 导航栏图标 ----- */
#sticker-import-nav-icon .item-content {
    cursor: pointer;
}

/* ----- 主面板 ----- */
.sticker-import-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e5e7;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

.sticker-import-panel.visible {
    transform: translateX(0);
}

/* ----- 头部 ----- */
.sticker-import-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.sticker-import-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticker-import-header-actions {
    display: flex;
    gap: 6px;
}

.sticker-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticker-import-btn-primary {
    background: linear-gradient(135deg, #3478F6 0%, #2563EB 100%);
    color: #fff;
}

.sticker-import-btn-primary:hover {
    box-shadow: 0 2px 8px rgba(52, 120, 246, 0.4);
    transform: translateY(-1px);
}

.sticker-import-btn-secondary {
    background: #e8e8ed;
    color: #48484a;
}

.sticker-import-btn-secondary:hover {
    background: #eaeaea;
}

/* ----- Tab 切换栏 ----- */
.sticker-import-tabs {
    display: flex;
    padding: 0 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.sticker-import-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    user-select: none;
}

.sticker-import-tab:hover {
    color: #6e6e73;
}

.sticker-import-tab.active {
    color: #3478F6;
}

.sticker-import-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, #3478F6, #2563EB);
    border-radius: 1px;
}

/* ----- 内容区域 ----- */
.sticker-import-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    min-height: 200px;
}

.sticker-import-body::-webkit-scrollbar {
    width: 5px;
}

.sticker-import-body::-webkit-scrollbar-track {
    background: transparent;
}

.sticker-import-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* ----- 扫描来源卡片 ----- */
.sticker-source-card {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.sticker-source-card:hover {
    border-color: rgba(52, 120, 246, 0.2);
    box-shadow: 0 2px 8px rgba(52, 120, 246, 0.08);
}

.sticker-source-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sticker-source-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticker-source-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sticker-source-icon.qq {
    background: linear-gradient(135deg, #12B7F5 0%, #0D99DD 100%);
    color: #fff;
}

.sticker-source-icon.wechat {
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    color: #fff;
}

.sticker-source-icon.folder {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    color: #fff;
}

.sticker-source-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.sticker-source-desc {
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
}

.sticker-source-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.sticker-source-status.found {
    color: #07C160;
    background: rgba(7, 193, 96, 0.1);
}

.sticker-source-status.not-found {
    color: #86868b;
    background: rgba(0, 0, 0, 0.04);
}

.sticker-source-status.scanning {
    color: #3478F6;
    background: rgba(52, 120, 246, 0.1);
    animation: sticker-pulse 1.5s ease infinite;
}

@keyframes sticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sticker-source-path {
    font-size: 11px;
    color: #86868b;
    word-break: break-all;
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.sticker-source-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.sticker-source-btn {
    flex: 1;
    padding: 7px 0;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sticker-source-btn.scan {
    background: linear-gradient(135deg, #3478F6 0%, #2563EB 100%);
    color: #fff;
}

.sticker-source-btn.scan:hover {
    box-shadow: 0 2px 8px rgba(52, 120, 246, 0.4);
}

.sticker-source-btn.scan:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.sticker-source-btn.open-dir {
    background: #e8e8ed;
    color: #48484a;
}

.sticker-source-btn.open-dir:hover {
    background: #e5e5e5;
}

/* ----- 微信上传区域 ----- */
.wechat-upload-zone {
    margin-top: 10px;
    padding: 24px 16px;
    border: 2px dashed rgba(7, 193, 96, 0.25);
    border-radius: 10px;
    text-align: center;
    transition: all 0.25s ease;
    background: rgba(7, 193, 96, 0.02);
    cursor: default;
}

.wechat-upload-zone:hover {
    border-color: rgba(7, 193, 96, 0.45);
    background: rgba(7, 193, 96, 0.05);
}

.wechat-upload-zone.drag-over {
    border-color: #07C160;
    background: rgba(7, 193, 96, 0.1);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.1);
}

.wechat-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.wechat-upload-zone:hover .wechat-upload-icon,
.wechat-upload-zone.drag-over .wechat-upload-icon {
    transform: translateY(-2px);
    opacity: 1;
}

.wechat-upload-text {
    font-size: 13px;
    color: #48484a;
    font-weight: 500;
    margin-bottom: 4px;
}

.wechat-upload-hint {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 12px;
}

.wechat-upload-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wechat-upload-actions .sticker-source-btn {
    flex: none;
    padding: 7px 16px;
}

/* ----- 表情包网格滚动容器 ----- */
.sticker-grid-scroll-wrapper {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.01);
}

.sticker-grid-scroll-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sticker-grid-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sticker-grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

/* ----- 表情包网格 ----- */
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px;
}

.sticker-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f7;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sticker-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sticker-grid-item.selected {
    border-color: #3478F6;
    box-shadow: 0 0 0 2px rgba(52, 120, 246, 0.2);
}

.sticker-grid-item.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #3478F6;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sticker-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sticker-grid-item .sticker-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #86868b;
}

/* ----- 批量操作工具栏 ----- */
.sticker-batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #3478F608 0%, #2563EB08 100%);
    border-top: 1px solid rgba(52, 120, 246, 0.1);
    flex-shrink: 0;
}

.sticker-batch-info {
    font-size: 12px;
    color: #3478F6;
    font-weight: 500;
}

.sticker-batch-actions {
    display: flex;
    gap: 6px;
}

/* ----- 已导入表情 Tab ----- */
.sticker-imported-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #86868b;
}

.sticker-imported-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.sticker-imported-empty-text {
    font-size: 13px;
    color: #86868b;
}

/* ----- 已导入底部操作区 ----- */
.sticker-imported-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 1;
}

.sticker-imported-stats {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

.sticker-import-btn-resync {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    color: #fff;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticker-import-btn-resync:hover {
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
    transform: translateY(-1px);
}

.sticker-import-btn-resync:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 149, 0, 0.3);
}

/* ----- 加载与提示 ----- */
.sticker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10px;
}

.sticker-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(52, 120, 246, 0.15);
    border-top-color: #3478F6;
    border-radius: 50%;
    animation: sticker-spin 0.8s linear infinite;
}

@keyframes sticker-spin {
    to { transform: rotate(360deg); }
}

.sticker-loading-text {
    font-size: 12px;
    color: #86868b;
}

.sticker-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticker-message.success {
    background: rgba(7, 193, 96, 0.08);
    color: #07C160;
    border: 1px solid rgba(7, 193, 96, 0.15);
}

.sticker-message.error {
    background: rgba(255, 59, 48, 0.08);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.15);
}

.sticker-message.info {
    background: rgba(52, 120, 246, 0.08);
    color: #3478F6;
    border: 1px solid rgba(52, 120, 246, 0.15);
}

/* ----- 预览弹窗 ----- */
.sticker-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.sticker-preview-overlay.visible {
    opacity: 1;
}

.sticker-preview-content {
    max-width: 400px;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    background: #fff;
    cursor: default;
}

.sticker-preview-content img {
    max-width: 400px;
    max-height: 400px;
    display: block;
    object-fit: contain;
}

/* ----- 手动选择区域 ----- */
.sticker-manual-import {
    margin-top: 10px;
    padding: 16px;
    border: 2px dashed rgba(52, 120, 246, 0.2);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticker-manual-import:hover {
    border-color: rgba(52, 120, 246, 0.5);
    background: rgba(52, 120, 246, 0.03);
}

.sticker-manual-import-icon {
    font-size: 28px;
    margin-bottom: 6px;
    opacity: 0.6;
}

.sticker-manual-import-text {
    font-size: 12px;
    color: #86868b;
}

.sticker-manual-import-hint {
    font-size: 11px;
    color: #86868b;
    margin-top: 4px;
}

/* ----- 全选 / 反选 ----- */
.sticker-select-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 6px;
}

.sticker-select-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticker-select-bar label {
    font-size: 12px;
    color: #6e6e73;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sticker-select-bar input[type="checkbox"] {
    accent-color: #3478F6;
}

.sticker-count-badge {
    font-size: 11px;
    color: #86868b;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ----- wxemoticon 安装弹窗 ----- */
.wxemoticon-overlay {
    z-index: 9998;
}

.wxemoticon-dialog {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    cursor: default;
    animation: wxemoticon-dialog-in 0.25s ease;
}

@keyframes wxemoticon-dialog-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wxemoticon-dialog-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 14px;
}

.wxemoticon-dialog-content p {
    font-size: 13px;
    color: #48484a;
    line-height: 1.6;
    margin: 0;
}

.wxemoticon-dialog-content b {
    color: #1d1d1f;
    font-weight: 600;
}

.wxemoticon-dialog-code {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f5f5ff 0%, #f0f4ff 100%);
    border: 1px solid rgba(52, 120, 246, 0.15);
    border-radius: 8px;
    overflow-x: auto;
}

.wxemoticon-dialog-code code {
    flex: 1;
    font-size: 11px;
    color: #3478F6;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.5;
}

.wxemoticon-copy-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: rgba(52, 120, 246, 0.1);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wxemoticon-copy-btn:hover {
    background: rgba(52, 120, 246, 0.2);
    transform: scale(1.1);
}

.wxemoticon-dialog-hint {
    font-size: 12px !important;
    color: #86868b !important;
    margin-top: 10px !important;
}

.wxemoticon-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wxemoticon-dialog-actions .sticker-import-btn {
    padding: 8px 18px;
    font-size: 13px;
}

/* ============================
   暗色模式适配
   ============================ */
html[data-theme="dark"] .sticker-import-panel {
    background: #1c1c1e;
    border-right-color: #3a3a3c;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .sticker-import-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sticker-import-header-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .sticker-import-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sticker-import-tab {
    color: #777;
}

html[data-theme="dark"] .sticker-import-tab:hover {
    color: #a1a1a6;
}

html[data-theme="dark"] .sticker-import-tab.active {
    color: #5a9aff;
}

html[data-theme="dark"] .sticker-source-card {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sticker-source-card:hover {
    border-color: rgba(52, 120, 246, 0.3);
}

html[data-theme="dark"] .sticker-source-name {
    color: #e5e5ea;
}

html[data-theme="dark"] .sticker-source-desc {
    color: #86868b;
}

html[data-theme="dark"] .sticker-source-path {
    color: #86868b;
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .sticker-source-btn.open-dir {
    background: #3a3a3c;
    color: #a1a1a6;
}

html[data-theme="dark"] .sticker-source-btn.open-dir:hover {
    background: #505050;
}

html[data-theme="dark"] .wechat-upload-zone {
    border-color: rgba(7, 193, 96, 0.2);
    background: rgba(7, 193, 96, 0.03);
}

html[data-theme="dark"] .wechat-upload-zone:hover {
    border-color: rgba(7, 193, 96, 0.4);
    background: rgba(7, 193, 96, 0.06);
}

html[data-theme="dark"] .wechat-upload-zone.drag-over {
    border-color: #07C160;
    background: rgba(7, 193, 96, 0.12);
}

html[data-theme="dark"] .wechat-upload-text {
    color: #a1a1a6;
}

html[data-theme="dark"] .wechat-upload-hint {
    color: #777;
}

html[data-theme="dark"] .sticker-grid-scroll-wrapper {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .sticker-grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .sticker-grid-item {
    background: #3a3a3c;
}

html[data-theme="dark"] .sticker-grid-item .sticker-error {
    color: #86868b;
}

html[data-theme="dark"] .sticker-imported-empty {
    color: #86868b;
}

html[data-theme="dark"] .sticker-imported-empty-text {
    color: #86868b;
}

html[data-theme="dark"] .sticker-manual-import {
    border-color: rgba(52, 120, 246, 0.2);
}

html[data-theme="dark"] .sticker-manual-import:hover {
    border-color: rgba(52, 120, 246, 0.5);
    background: rgba(52, 120, 246, 0.05);
}

html[data-theme="dark"] .sticker-manual-import-text {
    color: #86868b;
}

html[data-theme="dark"] .sticker-manual-import-hint {
    color: #86868b;
}

html[data-theme="dark"] .sticker-btn-secondary {
    background: #3a3a3c;
    color: #a1a1a6;
}

html[data-theme="dark"] .sticker-btn-secondary:hover {
    background: #505050;
}

html[data-theme="dark"] .sticker-select-bar label {
    color: #a1a1a6;
}

html[data-theme="dark"] .sticker-count-badge {
    color: #86868b;
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sticker-batch-toolbar {
    background: rgba(52, 120, 246, 0.05);
    border-top-color: rgba(52, 120, 246, 0.1);
}

html[data-theme="dark"] .sticker-batch-info {
    color: #5a9aff;
}

html[data-theme="dark"] .sticker-imported-bottom-actions {
    background: #2c2c2e;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sticker-imported-stats {
    color: #86868b;
}

html[data-theme="dark"] .sticker-preview-content {
    background: #2c2c2e;
}

html[data-theme="dark"] .wxemoticon-dialog {
    background: #2c2c2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .wxemoticon-dialog-title {
    color: #e0e0e0;
}

html[data-theme="dark"] .wxemoticon-dialog-content p {
    color: #a1a1a6;
}

html[data-theme="dark"] .wxemoticon-dialog-content b {
    color: #e5e5ea;
}

html[data-theme="dark"] .wxemoticon-dialog-code {
    background: linear-gradient(135deg, #2a2a3a 0%, #252535 100%);
    border-color: rgba(52, 120, 246, 0.2);
}

html[data-theme="dark"] .wxemoticon-dialog-code code {
    color: #5a9aff;
}

html[data-theme="dark"] .wxemoticon-copy-btn {
    background: rgba(52, 120, 246, 0.15);
}

html[data-theme="dark"] .wxemoticon-copy-btn:hover {
    background: rgba(52, 120, 246, 0.25);
}

html[data-theme="dark"] .wxemoticon-dialog-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ----- 注入到表情面板的自定义标签 ----- */
.sticker-tab-qq,
.sticker-tab-wechat,
.sticker-tab-manage {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sticker-tab-qq:hover,
.sticker-tab-wechat:hover,
.sticker-tab-manage:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.sticker-tab-qq.active,
.sticker-tab-wechat.active,
.sticker-tab-manage.active {
    transform: scale(1.2);
    opacity: 1;
    position: relative;
}

.sticker-tab-qq.active::after,
.sticker-tab-wechat.active::after,
.sticker-tab-manage.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, #3478F6, #2563EB);
    border-radius: 1px;
}

/* 自定义表情面板内滚动条 */
.sticker-emoji-custom-panel::-webkit-scrollbar {
    width: 6px;
}

.sticker-emoji-custom-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.sticker-emoji-custom-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

.sticker-emoji-custom-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .sticker-emoji-custom-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .sticker-emoji-custom-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .sticker-emoji-custom-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}
