/**
 * 分享功能样式
 * Share Component Styles
 */

/* ========================================
   分享触发按钮
   ======================================== */
.share-trigger-btn {
    position: fixed;
    bottom: 140px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-gold, #B76E79);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.share-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(183, 110, 121, 0.25);
}

.share-trigger-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .share-trigger-btn {
        bottom: 200px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   分享面板
   ======================================== */
.share-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.share-panel {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.share-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.share-panel-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.share-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-panel-close:hover {
    background: #eee;
    color: #333;
}

.share-panel-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.share-option:hover {
    background: #f8f8f8;
}

.share-option:active {
    transform: scale(0.95);
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-option-icon svg {
    width: 24px;
    height: 24px;
}

.share-icon-wechat {
    background: linear-gradient(135deg, #07C160, #09BB07);
    color: white;
}

.share-icon-weibo {
    background: linear-gradient(135deg, #E6162D, #FA2D3E);
    color: white;
}

.share-icon-copy {
    background: linear-gradient(135deg, #B76E79, #C4858E);
    color: white;
}

.share-icon-qr {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.share-option span {
    font-size: 0.8125rem;
    color: #666;
}

.share-panel-footer {
    padding: 1rem 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.share-cancel-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-cancel-btn:hover {
    background: #eee;
}

/* ========================================
   微信引导弹窗
   ======================================== */
.share-wechat-guide {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.share-guide-content {
    text-align: center;
    color: white;
    padding-top: 60px;
}

.share-guide-arrow {
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.share-guide-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.share-guide-subtext {
    font-size: 0.9375rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.share-guide-close {
    padding: 0.75rem 2rem;
    background: var(--rose-gold, #B76E79);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-guide-close:hover {
    background: #a55f69;
}

/* ========================================
   二维码弹窗
   ======================================== */
.share-qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.share-qr-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    width: 90%;
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.share-qr-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem;
}

.share-qr-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.share-qr-tip {
    font-size: 0.875rem;
    color: #666;
    margin: 1rem 0 1.5rem;
}

.share-qr-close {
    padding: 0.625rem 2rem;
    background: var(--rose-gold, #B76E79);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-qr-close:hover {
    background: #a55f69;
}

/* ========================================
   Toast 提示
   ======================================== */
.share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9375rem;
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

/* ========================================
   通用动画
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 480px) {
    .share-panel-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .share-option-icon {
        width: 44px;
        height: 44px;
    }

    .share-option-icon svg {
        width: 20px;
        height: 20px;
    }

    .share-option span {
        font-size: 0.75rem;
    }
}
