/* 分享功能弹窗样式 */

/* 微信分享提示弹窗 */
.wechat-share-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    z-index: 10001;
    max-width: 320px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wechat-share-tip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.wechat-share-tip-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wechat-share-tip-title::before {
    content: '💬';
    font-size: 20px;
}

.wechat-share-tip-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.wechat-share-tip-close {
    background: linear-gradient(135deg, #07c160, #05a050);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.wechat-share-tip-close:hover {
    background: linear-gradient(135deg, #05a050, #048040);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4);
}

/* 二维码弹窗 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    opacity: 1;
}

.qr-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.qr-modal.show .qr-modal-content {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.qr-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-modal-title::before {
    content: '📱';
    font-size: 20px;
}

.qr-code-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-container img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-modal-text {
    color: #6c757d;
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.5;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.copy-toast.show {
    transform: translateX(0);
}

.copy-toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* 错误状态的提示 */
.copy-toast[style*="background: #dc3545"] {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-share-tip,
    .qr-modal-content {
        max-width: 300px;
        padding: 25px;
    }
    
    .wechat-share-tip-title,
    .qr-modal-title {
        font-size: 16px;
    }
    
    .copy-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wechat-share-tip,
    .qr-modal-content {
        max-width: 280px;
        padding: 20px;
    }
    
    .qr-code-container img {
        max-width: 180px;
        height: auto;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .wechat-share-tip,
[data-theme="dark"] .qr-modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] .wechat-share-tip-title,
[data-theme="dark"] .qr-modal-title {
    color: #ecf0f1;
}

[data-theme="dark"] .wechat-share-tip-text,
[data-theme="dark"] .qr-modal-text {
    color: #bdc3c7;
}

[data-theme="dark"] .qr-modal-close {
    color: #bdc3c7;
}

[data-theme="dark"] .qr-modal-close:hover {
    background: #34495e;
    color: #ecf0f1;
}

.dark-theme .wechat-share-tip,
.dark-theme .qr-modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

.dark-theme .wechat-share-tip-title,
.dark-theme .qr-modal-title {
    color: #ecf0f1;
}

.dark-theme .wechat-share-tip-text,
.dark-theme .qr-modal-text {
    color: #bdc3c7;
}

.dark-theme .qr-modal-close {
    color: #bdc3c7;
}

.dark-theme .qr-modal-close:hover {
    background: #34495e;
    color: #ecf0f1;
}

