.share {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 24px;
}

.popup-topImg {
    position: absolute;
    height: 120px;
    top: -95px;
    z-index: 1;
}

/* 分享彈窗 */
.popup {
    position: fixed;
    inset: 0;
    background: #00000099;
    display: flex;
    align-items: center;
    justify-content: center;
    /* z-index: 1000; */
}

/* 關閉分享彈窗按鈕 */
.close-popup {
    align-self: center;
    padding: 4px;
    width: 30px;
    height: 30px;
    background: #ffffff99;
    box-shadow: 0px 0px 8px #0000004d;
    border-radius: 100px;
    cursor: pointer;
    line-height: 110%;

    color: #3D3D3D;
}

.close-popup:hover,
.close-popup::selection {
    background: #FF6600;
    color: #fff;
}

.close-popup::before {
    content: none;
}

.popup-title-Div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 16px;
}

.popup-title {
    padding: 0;
    margin: 0 5px;
    color: #FF6600;
    font-weight: 500;
}

.share button,
.popup-content button:not([class]) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    position: relative;
    width: 100%;
    height: 40px;
    padding: 0;

    font-size: 16px;
    font-weight: 500;
    /* line-height: 110%; */

    color: #FF6600;
    cursor: pointer;
}

.share button::before,
.popup-content button:not([class])::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: 2rem;
    padding: 2px;
    /* 控制邊框寬度 */
    background: linear-gradient(#FF6600, #FF9D32);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* hover 效果 */
.share button:hover,
.popup-content button:not([class]):hover {
    color: #fff;
    background-image: linear-gradient(#FF6600, #FF9D32);

}

.popup-content button:not([class]) img:hover {
    color: #000;
}

/* 分享彈窗區塊 */
.popup-content {
    position: fixed;
    width: 80vw;
    max-width: 280px;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    border-radius: 24px;
    background: white;
    text-align: center;
}

.popup-content::before {
    content: none;
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 3px;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    background: linear-gradient(#FF6600, #FF9D32);
    pointer-events: none;
}


.popup-text {
    width: -webkit-fill-available;
    height: fit-content;
    padding: 12px 16px;
    margin: 8px 0;
    
    word-wrap: break-word;
    white-space: pre-wrap;
    text-align: left;
    font-weight: 400;
    font-size: 14px;

    background: #F6F6F6;
    border-radius: 8px;
    color: #5D5D5D;
}

.popup-text b {
    font-weight: 500;
    font-size: 16px;
    color: #3D3D3D;
}

#share-community {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 16px 0;
}

.icon-btn {
    flex: 1;
    width: 10em;
    font-size: 10px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    justify-content: space-between;
    gap: 4px;

    background-color: transparent;
    color: black;
}

.icon-btn img {
    width: 32px;
    height: 32px;
}

.buttons-block {
    width: 100%;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    background: #ff6600cc;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;

    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: auto;
}

.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
}