/* ============================================================
   106-style-share-card.css - 分享卡片弹窗
   ============================================================ */

.share-card-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 15, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: shareFadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes shareFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-poster-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    width: 100%;
    animation: posterSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-top: 48px;
}

@keyframes posterSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.share-poster-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    display: block;
    background: #FAF6EE;
}

.share-poster-loading {
    width: 100%;
    aspect-ratio: 750 / 1200;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.share-poster-loading .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.share-poster-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.share-poster-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.35);
}

.share-poster-tip {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
}
.share-poster-tip > div:first-child {
    font-size: 28px;
    margin-bottom: 4px;
}
.share-poster-tip > div:nth-child(2) {
    font-weight: 600;
}

.share-poster-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.share-card-copy-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #4A3A2A;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    font-family: var(--font);
}
.share-card-copy-btn:active {
    transform: scale(0.95);
    background: #fff;
}

@media (max-width: 420px) {
    .share-poster-wrapper {
        max-width: 92vw;
    }
}