/* 自定义分享按钮样式 */
.custom-share {
    display: flex;
    gap: 10px;
    padding: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-share button {
    padding: 8px 15px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 80px;
}

.custom-share button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 微信分享按钮样式 */
.btn-weixin {
    background-color: #07c160;
    color: white;
    border: 1px solid #07c160;
}

.btn-weixin:hover {
    background-color: #06a050;
}

/* 微博分享按钮样式 */
.btn-weibo {
    background-color: #ff6666;
    color: white;
    border: 1px solid #ff6666;
}

.btn-weibo:hover {
    background-color: #ff4d4d;
}

/* QQ分享按钮样式 */
.btn-qq {
    background-color: #4c9afa;
    color: white;
    border: 1px solid #4c9afa;
}

.btn-qq:hover {
    background-color: #3a8ae6;
}

/* 分享弹窗样式 */
.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
    text-align: center;
}

.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .custom-share {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-share button {
        width: 100%;
        max-width: 200px;
    }
}

/* 划词分享按钮样式 */
#custom-share-container {
    position: fixed !important;
    display: none;
    flex-direction: row;
    gap: 5px;
    padding: 8px;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 12px;
}

#custom-share-container button {
    padding: 12px 10px;
    margin: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    min-width: 60px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 图标样式 */
.share-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.share-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* 按钮文字样式 */
.share-text {
    font-size: 10px;
    line-height: 1.2;
}