/* ===== 分享弹窗样式 ===== */

/* 遮罩层 */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
}

.share-overlay.share-hidden {
    opacity: 0;
    pointer-events: none;
}

/* 弹窗主体 */
.share-modal {
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.96), rgba(20, 20, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: shareSlideUp 0.35s ease-out;
}

@keyframes shareSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 分享图片 */
.share-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 分享标题 */
.share-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

/* 分享描述 */
.share-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

/* ===== 邀请奖励区域 ===== */
.share-rewards-section {
    width: 100%;
    margin-top: 4px;
}

.share-rewards-header {
    font-size: 14px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(255, 215, 0, 0.2);
}

.share-rewards-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 2px;
}

.share-rewards-list::-webkit-scrollbar {
    width: 3px;
}

.share-rewards-list::-webkit-scrollbar-track {
    background: transparent;
}

.share-rewards-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.share-rewards-loading,
.share-rewards-empty {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 0;
}

/* 单个奖励项 */
.share-reward-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

/* 进度条 */
.share-reward-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.share-reward-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.share-reward-progress-fill.claimed {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.share-reward-progress-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
    text-align: right;
}

.share-reward-info {
    flex: 1;
    min-width: 0;
}

/* 新布局：行容器（需要邀请：/ 奖励：） */
.share-reward-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
    line-height: 1.5;
}

.share-reward-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-reward-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
}


/* 分享按钮容器 */
.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

/* 分享给好友按钮 */
.share-btn-friend {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn-friend:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(42, 171, 238, 0.4);
}

.share-btn-friend:active {
    transform: scale(0.97);
}

.share-btn-friend .btn-icon {
    font-size: 20px;
}

/* 取消按钮 */
.share-btn-cancel {
    width: 100%;
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.share-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.share-btn-cancel:active {
    transform: scale(0.97);
}

/* Toast 提示 */
.share-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 80vw;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
