/* 妮妮TV 分享弹窗样式 */

/* 遮罩层 */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 16px;
}
.share-modal-overlay.share-modal-visible {
    opacity: 1;
}

/* 弹窗主体 */
.share-modal {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.share-modal-visible .share-modal {
    transform: translateY(0) scale(1);
}

/* 弹窗头部 */
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}
.share-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.share-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.share-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* 弹窗内容 */
.share-modal-body {
    padding: 20px;
}

/* 预览卡片 */
.share-preview {
    background: #0d0d1a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}
.share-preview-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.share-preview-desc {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-preview-url {
    color: #00ccff;
    font-size: 12px;
    word-break: break-all;
    opacity: 0.7;
}

/* 分享操作区 - 横向排列居中 */
.share-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}

/* 分享按钮 - 类似微信分享面板风格 */
.share-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.85);
    min-width: 72px;
    -webkit-tap-highlight-color: transparent;
}
.share-action-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}
.share-action-btn:active {
    transform: scale(0.96);
}

/* 图标圆角方形底座 - 微信/支付宝分享面板风格 */
.share-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.share-icon-circle-blue {
    background: rgba(59, 130, 246, 0.15);
}
.share-icon-circle-green {
    background: rgba(7, 193, 96, 0.15);
}
.share-icon-circle-cyan {
    background: rgba(0, 204, 255, 0.15);
}
.share-action-btn:hover .share-icon-circle-blue {
    background: rgba(59, 130, 246, 0.25);
}
.share-action-btn:hover .share-icon-circle-green {
    background: rgba(7, 193, 96, 0.25);
}
.share-action-btn:hover .share-icon-circle-cyan {
    background: rgba(0, 204, 255, 0.25);
}

/* Emoji图标 - 简单可靠，全平台兼容 */
.share-icon-emoji {
    font-size: 24px;
    line-height: 1;
    text-align: center;
    /* 确保emoji不被系统字体覆盖 */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
}

/* 按钮文字 */
.share-btn-label {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

/* 二维码区域 */
.share-qr-section {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #2a2a3a;
}
.share-qr-label {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}
.share-qr-container {
    display: inline-block;
    background: white;
    border-radius: 12px;
    padding: 12px;
}
.share-qr-container img {
    display: block;
    border-radius: 4px;
}

/* Toast 提示 */
.share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.share-toast.share-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 - 移动端优化 */
@media (max-width: 480px) {
    .share-modal {
        border-radius: 12px;
        margin: 0 8px;
    }
    .share-actions {
        gap: 12px;
    }
    .share-action-btn {
        padding: 8px 12px;
        min-width: 68px;
    }
    .share-icon-circle {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .share-icon-emoji {
        font-size: 22px;
    }
    .share-btn-label {
        font-size: 11px;
    }
}
