.share-float {
    position: fixed !important;
    left: calc(50% - 800px) !important;
    right: auto !important;
    top: 50vh !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.share-float.loaded {
    visibility: visible;
    opacity: 1;
}

/* 在1440px及以上屏幕显示 */
@media (min-width: 1440px) {
    .share-float {
        display: block !important;
        left: calc(50% - 800px) !important;
        top: 50vh !important;
        transform: translateY(-50%) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 在较小屏幕也显示，但调整位置 */
@media (max-width: 1439px) {
    .share-float {
        display: block !important;
        left: calc(50% - 800px) !important;
        top: 50vh !important;
        transform: translateY(-50%) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 移动端隐藏 */
@media (max-width: 768px) {
    .share-float {
        display: none !important;
    }
}

.share-float-toggle {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: linear-gradient(135deg, var(--primary-color, #3369e3) 0%, #4a7ee8 100%);
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(51, 105, 227, 0.25);
    transition: all 0.3s ease;
    color: white;
    /* 防止加载时的晃动 */
    will-change: transform;
    backface-visibility: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    z-index: 1002 !important;
}

.share-float-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 105, 227, 0.35);
    background: linear-gradient(135deg, #4a7ee8 0%, #5d8feb 100%);
}

.share-float-toggle svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-bottom: 1px !important;
    stroke: white !important;
    flex-shrink: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.share-float-toggle span {
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.share-float-menu {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    /* 去掉长条背景 */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: auto !important;
    min-width: 50px !important;
    /* 确保垂直排列 */
    align-items: center !important;
    z-index: 1001 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    position: relative;
}


.share-float-menu.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 8px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    position: relative;
    /* 防止溢出 - 强制裁剪 */
    overflow: hidden !important;
    box-sizing: border-box !important;
    /* 确保可点击 */
    pointer-events: auto !important;
    z-index: 1003 !important;
    /* 10%不透明度主色磨砂玻璃背景 - 确保不被覆盖 */
    background: rgba(51, 105, 227, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05) !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(51, 105, 227, 0.15),
                0 1px 4px rgba(51, 105, 227, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    /* 确保磨砂玻璃效果可见 */
    isolation: isolate;
    /* 强制裁剪内容 */
    contain: layout style paint;
}

.share-item:hover {
    background: rgba(51, 105, 227, 0.15) !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(51, 105, 227, 0.2),
                0 2px 6px rgba(51, 105, 227, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.share-item svg {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0;
    display: block;
    /* 防止溢出 */
    overflow: hidden !important;
    box-sizing: border-box !important;
    /* 保持宽高比，防止变形 */
    preserveAspectRatio: xMidYMid meet !important;
    /* 默认灰色 - 通过filter实现 */
    filter: grayscale(100%) brightness(0.6) !important;
    transition: filter 0.2s ease !important;
    /* 确保SVG内容不超出容器 */
    object-fit: contain !important;
    /* 确保SVG不会溢出容器 */
    position: relative;
    z-index: 1;
    /* 确保SVG不会超出父容器 */
    contain: layout style paint;
}

/* 悬停时显示原色 - 移除灰度滤镜 */
.share-item:hover svg {
    filter: grayscale(0%) brightness(1) !important;
}

.share-item span {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    /* 10%不透明度磨砂玻璃背景 */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* 长度自适应，保持边距 */
    min-width: auto;
    width: auto;
    max-width: 200px;
    margin-left: 8px;
}

.share-item:hover span {
    opacity: 1;
    visibility: visible;
}

/* 添加小箭头指向图标 */
.share-item span::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid rgba(255, 255, 255, 0.1);
    filter: blur(0);
}

.wechat-qrcode-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}

.wechat-qrcode-modal.active {
    display: flex !important;
}

.wechat-qrcode-content {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    max-width: 400px !important;
    width: 90% !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
}

.wechat-qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wechat-qrcode-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wechat-qrcode-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wechat-qrcode-close:hover {
    color: #333;
}

.wechat-qrcode-body {
    text-align: center;
}

.qrcode-container {
    width: 256px;
    height: 256px;
    margin: 0 auto 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-qrcode-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 链接预览弹窗样式 */
.link-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.link-preview-modal.active {
    display: flex;
}

.link-preview-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.link-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.link-preview-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.link-preview-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.link-preview-close:hover {
    color: #333;
}

.link-preview-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.preview-value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.preview-value.preview-link {
    color: #3369e3;
    cursor: pointer;
    text-decoration: underline;
}

.preview-value.preview-link:hover {
    color: #1a4fc7;
}

/* 防止任何元素全屏显示 - 强制尺寸限制，但不影响 .share-item */
.share-float *:not(.share-item):not(.share-item *) {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.share-float-toggle * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 防止SVG全屏 - 但不要覆盖 .share-item svg 的样式 */
.share-float > svg,
.share-float-toggle svg {
    width: auto !important;
    height: auto !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.share-float-toggle svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

