/* WeChat QR Code Styles */
.wechat-copy-wrapper {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.wechat-copy-wrapper:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* 微信二维码弹窗样式 */
.wechat-modal {
    display: none !important; /* 默认强制隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.wechat-modal[style*="display: block"] {
    display: block !important; /* 当通过JS设置display:block时覆盖默认隐藏 */
}

.wechat-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 8px;
    width: 280px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wechat-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    color: #999;
    font-size: 20px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

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

/* 隐藏二维码图片，只在弹窗中显示 */
.wechat-qrcode {
    display: none !important;
}

/* 按钮样式保持一致 */
.btn-light {
    background-color: #fff;
    border-color: #ddd;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* 确保弹窗中的二维码图片可见 */
.wechat-modal .text-center img {
    display: block !important;
    margin: 0 auto;
}

/* 微信卡片样式 */
.wechat-container {
    max-width: 800px;
    margin: 0 auto 20px;
}

.wechat-copy-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wechat-copy-wrapper:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wechat-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.wechat-basic-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-number {
    color: #07C160;
    font-weight: bold;
    margin-left: 8px;
}

.wechat-actions {
    display: flex;
    gap: 8px;
}

.btn-copy,
.btn-qr {
    padding: 6px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 模态框样式 */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.wechat-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

.wechat-modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

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

/* 终极修复：彻底限制复制提示弹窗高度和布局 */
.copy-alert {
    min-width: 120px !important;
    max-width: 60vw !important;
    max-height: 40px !important;
    height: auto !important;
    padding: 6px 16px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    line-height: 1.5 !important;
    white-space: pre-line !important;
    word-break: break-all !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: rgba(0,0,0,0.85) !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    pointer-events: none !important;
    animation: fadeInUp 0.3s ease !important;
}

/* 动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .wechat-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wechat-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .wechat-modal-content {
        width: 90%;
        margin: 30% auto;
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .wechat-copy-wrapper {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .wechat-modal-content {
        background-color: #2d2d2d;
        color: #fff;
    }
    
    .wechat-modal-close {
        color: #fff;
    }
    
    .wechat-modal-close:hover {
        color: #ddd;
    }
} 