.ps-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 109, 74, .72);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 45, 34, .10), rgba(120, 0, 180, .10));
    color: #d63828;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
    cursor: pointer;
    transition: .18s ease;
}
.ps-share-btn:hover {
    background: linear-gradient(135deg, rgba(255, 45, 34, .20), rgba(120, 0, 180, .16));
    border-color: #ff3b30;
    color: #a51216;
    box-shadow: 0 4px 16px rgba(255, 45, 34, .16);
}
.ps-share-btn .icon-share-alt { font-size: 14px; }

.ps-modal[hidden] { display: none !important; }
.ps-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 12, .82);
    backdrop-filter: blur(6px);
}
.ps-modal-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 920px);
    max-height: 94vh;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 104, 68, .30);
    border-radius: 20px;
    background: radial-gradient(circle at 20% 0%, #1c0b18, #08050d 65%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.ps-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(10, 6, 16, .86);
    color: #f6eefa;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ps-modal-close:hover { background: #ff3b30; border-color: #ff3b30; }
.ps-preview {
    min-height: 160px;
    margin-top: 8px;
    border: 1px solid rgba(255, 102, 64, .22);
    border-radius: 14px;
    background: #0b0612;
    overflow: hidden;
}
.ps-preview img {
    display: block;
    width: 100%;
    height: auto;
}
.ps-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.ps-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff3b30, #e00063 60%, #7a00c8);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 40, 70, .32);
}
.ps-download:hover { filter: brightness(1.12); color: #fff !important; }
.ps-save-hint { color: #9d8ea8; font-size: 12px; text-align: right; }
.ps-canvas, .ps-qr-holder { display: none !important; }

@media (max-width: 640px) {
    .ps-share-btn { margin-left: 8px; padding: 3px 9px; font-size: 12px; }
    .ps-modal-card { width: min(96vw, 720px); padding: 10px; border-radius: 16px; }
    .ps-modal-actions { flex-direction: column; align-items: stretch; }
    .ps-download { justify-content: center; }
    .ps-save-hint { text-align: center; }
}

.article-share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.article-share-row .ps-share-btn { margin-left: 0; }
.article-share-row span { color: #9aa6b6; font-size: 11px; }
html[data-z-theme="dark"] .article-share-row span { color: #8b98aa; }
