.sf-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.sf-article-meta-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}

.sf-article-share {
    --sf-share-surface: var(--color-surface, #fff);
    --sf-share-ink: var(--color-ink, #0f172a);
    --sf-share-muted: var(--color-secondary, #64748b);
    --sf-share-primary: var(--color-primary, #2563eb);
    --sf-share-border: color-mix(in srgb, var(--sf-share-ink) 15%, transparent);
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    font-family: var(--font-body, system-ui, sans-serif);
}

.sf-share-label {
    margin-right: 2px;
    color: var(--sf-share-muted);
    font-size: 13px;
    font-weight: 600;
}

.sf-share-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sf-share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-share-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--sf-share-muted);
    border: 1px solid var(--sf-share-border);
    border-radius: 999px;
    background: var(--sf-share-surface);
    box-shadow: none;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sf-share-button:hover {
    color: var(--sf-share-primary);
    border-color: color-mix(in srgb, var(--sf-share-primary) 45%, transparent);
    background: color-mix(in srgb, var(--sf-share-primary) 7%, var(--sf-share-surface));
    box-shadow: 0 8px 20px -13px color-mix(in srgb, var(--sf-share-primary) 65%, transparent);
    transform: translateY(-2px);
}

.sf-share-button:active {
    transform: translateY(0) scale(.96);
}

.sf-share-button:focus-visible,
.sf-share-close:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sf-share-primary) 28%, transparent);
    outline-offset: 3px;
}

.sf-share-button svg {
    width: 19px;
    height: 19px;
    pointer-events: none;
}

.sf-share-copy-icon,
.sf-share-copy-success-icon {
    grid-area: 1 / 1;
    transition: opacity 160ms ease, transform 160ms ease;
}

.sf-share-copy-success-icon {
    opacity: 0;
    transform: scale(.65);
}

.sf-share-copy.is-copy-success {
    color: #16a34a;
    border-color: color-mix(in srgb, #16a34a 42%, transparent);
    background: color-mix(in srgb, #16a34a 8%, var(--sf-share-surface));
}

.sf-share-copy.is-copy-success .sf-share-copy-icon {
    opacity: 0;
    transform: scale(.65);
}

.sf-share-copy.is-copy-success .sf-share-copy-success-icon {
    opacity: 1;
    transform: scale(1);
}

.sf-share-copy.is-copy-error {
    color: #dc2626;
    border-color: color-mix(in srgb, #dc2626 42%, transparent);
    background: color-mix(in srgb, #dc2626 7%, var(--sf-share-surface));
}

.sf-share-button[data-tooltip]::before,
.sf-share-button[data-tooltip]::after {
    position: absolute;
    left: 50%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
}

.sf-share-button[data-tooltip]::before {
    bottom: calc(100% + 9px);
    padding: 6px 8px;
    color: #fff;
    border-radius: 6px;
    background: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
    content: attr(data-tooltip);
    font-size: 12px;
    line-height: 1;
    transform: translate(-50%, 4px);
    white-space: nowrap;
}

.sf-share-button[data-tooltip]::after {
    bottom: calc(100% + 5px);
    width: 7px;
    height: 7px;
    background: #0f172a;
    content: "";
    transform: translate(-50%, 2px) rotate(45deg);
}

.sf-share-button[data-tooltip]:hover::before,
.sf-share-button[data-tooltip]:hover::after,
.sf-share-button[data-tooltip]:focus-visible::before,
.sf-share-button[data-tooltip]:focus-visible::after {
    opacity: 1;
}

.sf-share-button[data-tooltip]:hover::before,
.sf-share-button[data-tooltip]:focus-visible::before {
    transform: translate(-50%, 0);
}

.sf-share-button.sf-share-copy.has-copy-feedback::before,
.sf-share-button.sf-share-copy.has-copy-feedback::after {
    opacity: 1;
}

.sf-share-button.sf-share-copy.has-copy-feedback::before {
    right: -2px;
    left: auto;
    transform: translateY(0);
}

.sf-share-button.sf-share-copy.has-copy-feedback::after {
    right: 15px;
    left: auto;
    transform: rotate(45deg);
}

.sf-share-button.sf-share-copy.has-copy-feedback.is-copy-error::before,
.sf-share-button.sf-share-copy.has-copy-feedback.is-copy-error::after {
    background: #b91c1c;
}

.sf-share-native {
    display: none;
    width: auto;
    min-width: 0;
    padding: 0 16px;
    gap: 8px;
}

.sf-share-native-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sf-wechat-guide {
    position: fixed;
    z-index: 1000;
    inset: 0;
    overflow: hidden;
    color: var(--sf-share-ink);
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.sf-wechat-guide.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sf-wechat-menu-target {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 52px;
    color: #0f172a;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .2);
    animation: sf-share-pulse 1.8s ease-in-out infinite;
}

.sf-wechat-menu-target span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.sf-wechat-guide-arrow {
    position: absolute;
    top: max(62px, calc(env(safe-area-inset-top) + 52px));
    right: 46px;
    width: 76px;
    height: 72px;
    color: #fff;
}

.sf-wechat-guide-card {
    position: absolute;
    top: max(128px, calc(env(safe-area-inset-top) + 118px));
    right: 18px;
    left: 18px;
    width: min(calc(100% - 36px), 354px);
    max-height: calc(100vh - 154px);
    max-height: calc(100dvh - 154px);
    margin: 0 auto;
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
    background: var(--sf-share-surface);
    box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .48);
    transform: translateY(-8px) scale(.98);
    transition: transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.sf-wechat-guide.is-open .sf-wechat-guide-card {
    transform: none;
}

.sf-wechat-guide-kicker {
    margin: 0 0 7px;
    color: var(--sf-share-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sf-wechat-guide-title {
    margin: 0;
    color: var(--sf-share-ink);
    font-size: 21px;
    font-weight: 750;
    line-height: 1.35;
}

.sf-wechat-guide-steps {
    display: grid;
    gap: 11px;
    margin: 18px 0 20px;
}

.sf-wechat-guide-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--sf-share-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sf-wechat-guide-step > span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: var(--sf-share-primary);
    border-radius: 50%;
    background: color-mix(in srgb, var(--sf-share-primary) 9%, var(--sf-share-surface));
    font-size: 12px;
    font-weight: 800;
}

.sf-wechat-guide-step p {
    margin: 0;
}

.sf-wechat-guide-actions {
    display: flex;
    gap: 10px;
}

.sf-wechat-guide-action {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sf-wechat-guide-action:active {
    transform: scale(.97);
}

.sf-wechat-guide-copy {
    color: var(--sf-share-ink);
    border: 1px solid var(--sf-share-border);
    background: var(--sf-share-surface);
}

.sf-wechat-guide-close {
    color: #fff;
    border: 1px solid var(--sf-share-primary);
    background: var(--sf-share-primary);
}

.sf-wechat-guide-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sf-share-primary) 28%, transparent);
    outline-offset: 3px;
}

@keyframes sf-share-pulse {
    50% { box-shadow: 0 0 0 13px rgba(255, 255, 255, .1); }
}

.sf-share-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.sf-share-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sf-share-dialog {
    position: relative;
    width: min(100%, 404px);
    padding: 24px;
    color: var(--sf-share-ink);
    border: 1px solid var(--sf-share-border);
    border-radius: 18px;
    background: var(--sf-share-surface);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
    transform: translateY(10px) scale(.98);
    transition: transform 180ms ease;
}

.sf-share-backdrop.is-open .sf-share-dialog {
    transform: none;
}

.sf-share-dialog-head {
    display: block;
}

.sf-share-dialog-title {
    margin: 0;
    padding-right: 48px;
    color: var(--sf-share-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.sf-share-dialog-description {
    margin: 7px 0 0;
    color: var(--sf-share-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sf-share-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: var(--sf-share-muted);
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sf-share-ink) 6%, var(--sf-share-surface));
    cursor: pointer;
}

.sf-share-qr-frame {
    display: grid;
    width: 188px;
    height: 188px;
    margin: 24px auto 18px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 8px #fff;
}

.sf-share-qrcode,
.sf-share-qrcode img,
.sf-share-qrcode canvas {
    width: 156px !important;
    height: 156px !important;
}

.sf-share-dialog-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--sf-share-muted);
    font-size: 13px;
}

.sf-share-toast {
    position: fixed;
    z-index: 1100;
    top: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    color: #fff;
    border-radius: 10px;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 16px 34px -14px rgba(15, 23, 42, .6);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.sf-share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sf-share-toast svg {
    color: #4ade80;
}

body.sf-share-dialog-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .sf-article-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .sf-article-share,
    .sf-share-actions {
        width: 100%;
    }

    .sf-share-label,
    .sf-share-platform {
        display: none;
    }

    .sf-share-native {
        display: inline-flex;
        flex: 1 1 auto;
        justify-content: center;
    }

    .sf-share-copy {
        display: grid;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .sf-share-button.sf-share-copy.has-copy-feedback::before {
        right: auto;
        left: -2px;
    }

    .sf-share-button.sf-share-copy.has-copy-feedback::after {
        right: auto;
        left: 15px;
    }
}

@media (max-height: 480px) {
    .sf-wechat-menu-target {
        width: 44px;
        height: 44px;
    }

    .sf-wechat-guide-arrow {
        display: none;
    }

    .sf-wechat-guide-card {
        top: max(66px, calc(env(safe-area-inset-top) + 56px));
        max-height: calc(100vh - 78px);
        max-height: calc(100dvh - 78px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-share-button,
    .sf-share-copy-icon,
    .sf-share-copy-success-icon,
    .sf-wechat-guide,
    .sf-wechat-guide-card,
    .sf-share-backdrop,
    .sf-share-dialog,
    .sf-share-toast {
        transition-duration: .01ms !important;
    }

    .sf-wechat-menu-target {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
