/* H5 分享面板 — 纯前端，不依赖微信 JSSDK */
.mixyue-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mixyue-share-sheet.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mixyue-share-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.mixyue-share-sheet__panel {
    position: relative;
    width: min(480px, 100%);
    margin: 0 auto;
    background: var(--card-bg, #1a1a1f);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 0 0;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.mixyue-share-sheet.is-open .mixyue-share-sheet__panel {
    transform: translateY(0);
}

.mixyue-share-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mixyue-share-sheet__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.35;
}

.mixyue-share-sheet__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.65));
    word-break: break-all;
}

.mixyue-share-sheet__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mixyue-share-sheet__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mixyue-share-sheet__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
    margin-bottom: 12px;
}

.mixyue-share-sheet__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    cursor: pointer;
    border-radius: 10px;
    font-size: 12px;
}

.mixyue-share-sheet__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mixyue-share-sheet__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.mixyue-share-sheet__icon--weixin { background: #07c160; }
.mixyue-share-sheet__icon--qq { background: #12b7f5; }
.mixyue-share-sheet__icon--qzone { background: #ffc300; color: #333; }
.mixyue-share-sheet__icon--weibo { background: #e6162d; }
.mixyue-share-sheet__icon--copy { background: #6366f1; }
.mixyue-share-sheet__icon--more { background: #64748b; }

.mixyue-share-sheet__cancel {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #fff);
    font-size: 15px;
    cursor: pointer;
}

.mixyue-share-sheet__cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mixyue-share-wechat-tip {
    position: fixed;
    inset: 0;
    z-index: 12100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mixyue-share-wechat-tip.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mixyue-share-wechat-tip__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.mixyue-share-wechat-tip__arrow {
    position: absolute;
    top: 12px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 18px solid #fff;
}

.mixyue-share-wechat-tip__text {
    position: absolute;
    top: 36px;
    right: 16px;
    max-width: 240px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mixyue-share-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .mixyue-share-sheet {
        align-items: center;
        padding: 24px;
    }

    .mixyue-share-sheet__panel {
        border-radius: 16px;
        transform: translateY(16px) scale(0.98);
    }

    .mixyue-share-sheet.is-open .mixyue-share-sheet__panel {
        transform: translateY(0) scale(1);
    }
}
