/* 文章分享功能样式 */

.share-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-wechat:hover {
    background: #09b83e;
    color: #fff;
    border-color: #09b83e;
}

.share-qq:hover {
    background: #1296db;
    color: #fff;
    border-color: #1296db;
}

.share-weibo:hover {
    background: #e6162d;
    color: #fff;
    border-color: #e6162d;
}

.share-copy:hover {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

/* 分享模态框 */
.share-modal-overlay {
    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: 99999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 260px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

.share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.share-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.share-modal-content {
    padding: 0px;
}

/* 深色模式适配 */
[data-theme="dark"] .share-buttons {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

[data-theme="dark"] .share-btn {
    background: #333;
    color: #fff;
    border-color: #444;
}

[data-theme="dark"] .share-btn:hover {
    background: #444;
}

[data-theme="dark"] .share-modal {
    background: #2a2a2a;
    color: #fff;
}

[data-theme="dark"] .share-modal-header {
    border-bottom-color: #444;
}

[data-theme="dark"] .share-modal-header h3 {
    color: #fff;
}

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

[data-theme="dark"] .share-modal-close:hover {
    background: #444;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-buttons {
        gap: 8px;
        padding: 12px;
    }
    
    .share-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .share-modal {
        width: 95%;
        max-height: 90vh;
    }
}
