/* Page share：详情页右侧固定分享组件（默认收缩，点击展开/收起） */
.page-share {
    position: fixed;
    right: 2.1875vw;
    top: calc(3.125vw + 64px);
    z-index: 104;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-share .ps-toggle {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.page-share .ps-toggle img {
    display: block;
    width: 100%;
    height: 100%;
}

.page-share .ps-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.page-share.open .ps-list {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.page-share .ps-item {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity 0.3s ease;
}

.page-share .ps-item:first-child {
    margin-top: 0;
}

.page-share .ps-item img {
    display: block;
    width: 100%;
    height: 100%;
}

.page-share .ps-item:hover {
    opacity: 0.7;
}

/* 复制成功提示 */
.ps-toast {
    position: fixed;
    left: 50%;
    bottom: 8vh;
    transform: translateX(-50%) translateY(10px);
    z-index: 1004;
    padding: 10px 22px;
    background-color: #272727;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.ps-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 微信朋友圈二维码弹窗 */
.ps-qrcode-mask {
    position: fixed;
    inset: 0;
    z-index: 1003;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-qrcode-mask[hidden] {
    display: none;
}

.ps-qrcode-box {
    position: relative;
    padding: 30px 30px 26px;
    background-color: #fff;
    text-align: center;
}

.ps-qrcode-box .ps-qrcode-title {
    margin: 0 0 16px;
    font-size: 15px;
    color: #272727;
}

.ps-qrcode-box .ps-qrcode-img {
    width: 220px;
    height: 220px;
}

.ps-qrcode-box .ps-qrcode-img img,
.ps-qrcode-box .ps-qrcode-img canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ps-qrcode-box .ps-qrcode-close {
    position: absolute;
    right: 10px;
    top: 6px;
    padding: 4px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #272727;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .page-share {
        /* 手机端：右上角，汉堡按钮（pheader 右侧 20px、宽 30px）正下方 */
        right: 22px;
        top: 80px;
        bottom: auto;
    }
}
