/* --- 分享按钮组 --- */
.share-buttons {
    display: flex;
    gap: 5px; /* 按钮之间的间距 */
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
}

/* --- 单个分享按钮 --- */
.share-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;  /* 按钮尺寸略微调小，因为图标小了 */
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: white; /* 图标颜色为白色 */
    font-size: 16px; /* *** 字体图标大小改为 16px *** */
    border-radius: 3px;
}

.share-button:hover {
    transform: translateY(-3px); /* 轻微上浮效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button:active {
    transform: translateY(-1px); /* 点击时的下沉效果 */
}

.share-title {
    margin-right: 10px;
    color: #999;
    margin-bottom: 20px;
}
/* --- 各个平台的专属颜色 --- */
.share-button.facebook { background-color: #4267B2; }
.share-button.x { background-color: #000; } /* 颜色保持不变 */
.share-button.whatsapp { background-color: #25d366; }
.share-button.pinterest { background-color: #bd081c; }
.share-button.linkedin { background-color: #0077b5; }
.share-button.email { background-color: #7d7d7d; } /* 邮箱按钮使用灰色 */

/* --- 悬停提示框 (Tooltip) --- */
.share-button .tooltip {
    position: absolute;
    bottom: 100%; /* 位于按钮上方 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 10;
}

.share-button .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.share-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* --- 响应式调整 --- */
@media (max-width: 480px) {
    .social-share-widget {
        padding: 20px 15px;
    }
    .share-buttons {
        gap: 10px;
    }
    .share-button {
        width: 24px; /* 响应式下进一步调小 */
        height: 24px;
        font-size: 16px;
    }
}