            overlay.remove();
        }, 300);
    });
    
    // 点击遮罩层关闭
    overlay.on('click', function(e) {
        if (e.target === overlay[0]) {
            overlay.removeClass('show');
            dialog.removeClass('show');
            setTimeout(function() {
                overlay.remove();
            }, 300);
        }
    });
    
    // ESC键关闭
    var escHandler = function(e) {
        if (e.key === 'Escape') {
            overlay.removeClass('show');
            dialog.removeClass('show');
            setTimeout(function() {
                overlay.remove();
            }, 300);
            jQuery(document).off('keydown', escHandler);
        }
    };
    jQuery(document).on('keydown', escHandler);
}

<style>
/* ===== 自定义确认对话框样式 ===== */
.zibll-exchange-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0;
    box-sizing: border-box;
}

.zibll-exchange-confirm-overlay.show {
    opacity: 1;
}

.zibll-exchange-confirm-dialog {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.zibll-exchange-confirm-dialog.show {
    transform: scale(1) translateY(0);
}

.zibll-exchange-confirm-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
}

.zibll-exchange-confirm-icon {
    font-size: 64px;
    text-align: center;
    padding: 30px 20px 10px 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zibll-exchange-confirm-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #333;
    padding: 0 20px 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zibll-exchange-confirm-content {
    padding: 20px 30px;
    text-align: center;
    line-height: 1.8;
    font-size: 16px;
    color: #666;
}

.zibll-exchange-confirm-content p {
    margin: 10px 0;
}

.zibll-exchange-confirm-content .fragments-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    margin: 0 4px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.zibll-exchange-confirm-content .vip-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    margin: 0 4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.zibll-exchange-confirm-buttons {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px 30px;
}

.zibll-confirm-btn-cancel,
.zibll-confirm-btn-ok {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zibll-confirm-btn-cancel,
.zibll-confirm-btn-ok {
    background: #f5f5f5;
    color: #666;
}

.zibll-confirm-btn-cancel:hover,
.zibll-confirm-btn-ok:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zibll-confirm-btn-cancel:active,
.zibll-confirm-btn-ok:active {
    transform: translateY(0);
}

/* 消息对话框样式 */
.zibll-message-dialog .zibll-exchange-confirm-icon {
    font-size: 56px;
}

.zibll-message-dialog .zibll-exchange-confirm-content {
    padding-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .zibll-exchange-confirm-dialog {
        max-width: 90%;
        margin: 20px;
    }
    
    .zibll-exchange-confirm-icon {
        font-size: 48px;
        padding: 20px 15px 5px 15px;
    }
    
    .zibll-exchange-confirm-title {
        font-size: 20px;
        padding: 0 15px 10px 15px;
    }
    
    .zibll-exchange-confirm-content {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .zibll-exchange-confirm-buttons {
        padding: 15px 20px 20px 20px;
        flex-direction: column;
    }
    
    .zibll-confirm-btn-cancel,
    .zibll-confirm-btn-ok {
        width: 100%;
    }
}

/* ===== 触发按钮样式（美化版） ===== */
.zibll-vip-fragments-trigger-wrapper {
    margin: 15px 0;
    width: 100%;
    display: block;
    position: relative;
}

.zibll-vip-fragments-trigger-btn {
    display: inline-block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: buttonFadeIn 0.6s ease-out;
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.zibll-vip-fragments-trigger-btn .trigger-btn-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: none;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: imagePulse 3s ease-in-out infinite, imageFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes imagePulse {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25)) brightness(1.05);
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.zibll-vip-fragments-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.zibll-vip-fragments-trigger-btn:hover .trigger-btn-image {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3)) brightness(1.1);
    animation: none;
}

.zibll-vip-fragments-trigger-btn:hover::before {
    left: 100%;
}

.zibll-vip-fragments-trigger-btn:active .trigger-btn-image {
    transform: translateY(-3px) scale(0.98);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2)) brightness(0.95);
}

.zibll-vip-fragments-trigger-btn:focus {
    outline: none;
}


/* ===== 徽章样式 ===== */
.fragment-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin: 0 2px;
    vertical-align: middle;
}

.fragment-badge-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.fragment-badge-total {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}

.fragment-badge-need {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    color: #ffffff;
    font-weight: 700;
}

.fragment-badge-exchanged {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.3);
}

/* ===== 面板遮罩层 ===== */
.zibll-vip-fragments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
}

/* ===== 主容器 ===== */
.zibll-vip-fragments-container {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: auto;
    padding: 20px;
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 999998;
}

.zibll-vip-fragments-container .zibll-vip-fragments-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    display: inline-block;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.zibll-vip-fragments-container .zibll-vip-fragments-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* ===== 基础变量和重置 ===== */
:root {
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --secondary-color: #4CAF50;
    --secondary-hover: #45a049;
    --gradient-start: #ff6b6b;
    --gradient-end: #ffa500;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
}

/* ===== 主容器内容 ===== */
.zibll-vip-fragments-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* ===== 头部区域 ===== */
.zibll-vip-fragments-header {
    margin-bottom: 20px;
    padding: 20px 0 16px 0;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,107,107,0.03) 100%);
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    padding: 24px 20px 20px 20px;
}

.zibll-vip-fragments-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.zibll-vip-fragments-header h3::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
    border-radius: 2px;
}

.zibll-vip-fragments-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #764ba2 50%, transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
}

.fragments-count {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ===== 碎片显示区域 ===== */
.zibll-vip-fragments-progress {
    margin: 16px 0;
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.08);
}

.fragments-display {
    text-align: center;
}

.fragments-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.fragment-icon {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    max-width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInScale 0.4s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fragment-icon.collected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.35);
    transform: scale(1);
}

.fragment-icon.collected:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.45);
}

.fragment-icon.empty {
    background: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    opacity: 0.4;
}

.fragment-emoji {
    font-size: 22px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.fragment-emoji.fragment-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fragment-emoji.fragment-svg svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
}

.fragment-emoji.fragment-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fragment-emoji.fragment-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fragment-icon.collected .fragment-emoji {
    animation: sparkle 2.5s infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
    }
    50% { 
        transform: scale(1.08) rotate(8deg);
        filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
    }
}


/* ===== 兑换和购买区域 ===== */
.zibll-vip-fragments-exchange,
.zibll-vip-fragments-buy {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #fff5f5 0%, #fff9e6 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.zibll-vip-fragments-buy p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.exchange-btn {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #ff4757 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    margin-top: var(--spacing-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.7);
    position: relative;
    overflow: visible;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: exchangeBtnPulse 2s infinite;
}

/* 为按钮内部创建一个容器来处理overflow，保持闪光效果 */
.exchange-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 50px;
    pointer-events: none;
    z-index: 0;
}

/* 兑换按钮特殊样式 - 更吸引人的渐变 */
.exchange-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 25%, #ff6b6b 50%, #ff4757 75%, #ff3838 100%);
    background-size: 300% 300%;
    animation: exchangeBtnPulse 2s infinite, exchangeBtnGradient 3s ease infinite;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5), 
                0 0 20px rgba(255, 107, 107, 0.4),
                0 0 0 0 rgba(255, 215, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1; /* 确保按钮在可点击层级 */
}

/* 脉冲动画 */
@keyframes exchangeBtnPulse {
    0% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5), 
                    0 0 20px rgba(255, 107, 107, 0.4),
                    0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6), 
                    0 0 25px rgba(255, 107, 107, 0.5),
                    0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5), 
                    0 0 20px rgba(255, 107, 107, 0.4),
                    0 0 0 0 rgba(255, 215, 0, 0.7);
    }
}

/* 渐变背景动画 */
@keyframes exchangeBtnGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 按钮内部的闪光效果 */
.exchange-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: exchangeBtnShine 3s infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes exchangeBtnShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 按钮文字容器 */
.exchange-btn-text {
    position: relative;
    z-index: 2;
}

/* 按钮右上角徽章 */
.exchange-btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff3838 0%, #ff6b6b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(255, 56, 56, 0.5),
                0 0 0 2px #ffffff,
                0 0 0 4px rgba(255, 107, 107, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: badgePulse 2s infinite;
    transform-origin: center center;
    white-space: nowrap;
    line-height: 1.2;
}

/* 徽章脉冲动画 */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 56, 56, 0.5),
                    0 0 0 2px #ffffff,
                    0 0 0 4px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 56, 56, 0.7),
                    0 0 0 2px #ffffff,
                    0 0 0 6px rgba(255, 107, 107, 0.5);
    }
}

.exchange-btn:hover .exchange-btn-badge {
    animation: badgePulse 1s infinite, badgeShake 0.5s ease;
}

@keyframes badgeShake {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-5deg) scale(1.15); }
    75% { transform: rotate(5deg) scale(1.15); }
}

.exchange-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6), 
                0 0 30px rgba(255, 107, 107, 0.6),
                0 0 0 5px rgba(255, 215, 0, 0.3);
    background-position: 100% 50%;
    animation: exchangeBtnPulse 1s infinite, exchangeBtnGradient 2s ease infinite;
}

.exchange-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), 
                0 0 20px rgba(255, 107, 107, 0.4);
}

.exchange-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

.exchange-btn:disabled::before {
    display: none;
}

/* ===== 邀请区域 ===== */
.zibll-vip-fragments-invite {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--bg-secondary);
}

.zibll-vip-fragments-invite h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.zibll-vip-fragments-invite > p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.invite-link {
    display: flex;
    margin: var(--spacing-md) 0;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}

.invite-link:focus-within {
    box-shadow: var(--shadow-md);
}

.invite-link input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.3s;
}

.invite-link input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.invite-link button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.invite-link button:hover {
    background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%);
    transform: translateX(-2px);
}

.invite-link button:active {
    transform: translateX(0);
}

.invite-qrcode {
    text-align: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.invite-qrcode p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.invite-qrcode img {
    border: 2px solid var(--border-color);
    padding: var(--spacing-sm);
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
    height: auto;
}

.invite-qrcode img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===== 统计区域 ===== */
.zibll-vip-fragments-stats {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.zibll-vip-fragments-stats p {
    margin: 0;
}

/* ===== 提示信息 ===== */
.zibll-vip-fragments-notice {
    padding: var(--spacing-md);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    color: #856404;
    text-align: center;
    font-size: 15px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .zibll-vip-fragments-container {
        margin: var(--spacing-md) var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .zibll-vip-fragments-header {
        margin: -16px -16px 16px -16px;
        padding: 20px 16px 16px 16px;
    }
    
    .zibll-vip-fragments-header h3 {
        font-size: 22px;
    }
    
    .fragments-count {
        font-size: 16px;
    }
    
    .fragment-badge {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .progress-bar {
        height: 36px;
    }
    
    .exchange-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .invite-link {
        flex-direction: column;
    }
    
    .invite-link input {
        border-right: 2px solid var(--border-color);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    
    .invite-link button {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}

@media (max-width: 480px) {
    .zibll-vip-fragments-container {
        margin: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .zibll-vip-fragments-header {
        margin: -12px -12px 12px -12px;
        padding: 16px 12px 12px 12px;
    }
    
    .zibll-vip-fragments-header h3 {
        font-size: 20px;
    }
    
    .progress-bar {
        height: 32px;
    }
}

/* ===== 加载动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zibll-vip-fragments-container {
    animation: fadeIn 0.5s ease-out;
}

/* ===== 小工具专用样式 ===== */
.zibll-vip-fragments-widget {
    max-width: 100% !important;
    margin: 0 !important;
    padding: var(--spacing-md) !important;
}

.zibll-vip-fragments-widget .zibll-vip-fragments-header {
    margin: -12px -12px 12px -12px !important;
    padding: 16px 12px 12px 12px !important;
}

.zibll-vip-fragments-widget .zibll-vip-fragments-header h3 {
    font-size: 18px !important;
}

.zibll-vip-fragments-widget .zibll-vip-fragments-header h3::before,
.zibll-vip-fragments-widget .zibll-vip-fragments-header h3::after {
    width: 40px !important;
}

.zibll-vip-fragments-widget .fragments-count {
    font-size: 14px !important;
}

.zibll-vip-fragments-widget .fragment-badge {
