/* ============================================================
   分享组件样式（GBK兼容 / 图片图标版）
   ============================================================ */

/* ---------- 分享模块容器 ---------- */
.share-module {
    position: relative;
    display: inline-block;
}

/* ---------- 分享按钮（苹果红） ---------- */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 999px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.share-btn:hover {
    background: #FF3B30;
    color: #fff;
    border-color: #FF3B30;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
    transform: translateY(-2px);
}
.share-btn svg {
    stroke: currentColor;
}

/* ---------- 分享面板（毛玻璃遮罩） ---------- */
.share-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.share-panel.active {
    display: flex;
}

/* ---------- 面板卡片 ---------- */
.share-panel-inner {
    background: #ffffff;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    position: relative;
    animation: shareSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shareSlideUp {
    0% { opacity: 0; transform: scale(0.96) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 面板头部 ---------- */
.share-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.share-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.share-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.share-close:hover {
    color: #333;
}

/* ---------- 分享项网格（5列） ---------- */
.share-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 8px 0 16px;
}
.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 16px;
    background: #f8f9fc;
    cursor: pointer;
    transition: all 0.25s ease;
}
.share-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.share-item:active {
    transform: scale(0.96);
}

/* ---------- 图标容器 ---------- */
.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.share-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-label {
    font-size: 12px;
    color: #888;
}

/* ---------- 二维码区域 ---------- */
.share-qrcode {
    text-align: center;
    padding: 16px 0 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}
.share-qrcode img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
.share-qrcode p {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* ---------- 提示信息 ---------- */
.share-tip {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    display: none;
}

/* ============================================================
   移动端适配
   ============================================================ */

@media (max-width: 480px) {
    .share-panel-inner {
        padding: 20px 16px 24px;
        border-radius: 20px;
    }
    .share-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .share-item {
        padding: 10px 2px;
    }
    .share-icon-circle {
        width: 42px;
        height: 42px;
    }
    .share-label {
        font-size: 11px;
    }
    .share-qrcode img {
        width: 140px;
        height: 140px;
    }
    .share-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 380px) {
    .share-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 微信内提示 */
.wechat-tip {
    font-size: 10px;
    color: #999;
    display: none;
}
.share-item[data-type="wechat"] .wechat-tip.show {
    display: block;
}