/* 产品分享组件样式 */
.goldshell-product-share {
    display: inline-block;
    margin: 10px 0;
    position: relative;
}

.goldshell-band-aid-product-share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .goldshell-band-aid-product-share-container {
        scale: 1.6;
    }
}

@media (max-width: 921px) { 
    .goldshell-band-aid-product-share-container {

        scale: 1.12;
    }
}




.goldshell-band-aid-share-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* 黑色半透明浮层 */
.goldshell-band-aid-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 分享模态框 */
.goldshell-band-aid-share-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: calc(90vh - 120px); /* 为底部功能栏留出空间 */
    overflow: hidden;
    animation: slideUp 0.3s ease;
    position: relative;
    margin-bottom: 120px; /* 确保不被底部功能栏遮挡 */
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 分享卡 */
.goldshell-band-aid-share-card {
    padding: 20px;
    background: #ffffff00;
    width: 300px;
    max-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}



.goldshell-band-aid-share-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.goldshell-band-aid-share-close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 底部功能栏 */
.goldshell-band-aid-share-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0e0e0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px 16px;
    z-index: 10000;
    gap: 24px;

    max-width: 750px;
    transform: translateX(-50%);
}

.goldshell-band-aid-share-actions-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.goldshell-band-aid-share-actions-title {

    font-size: 16px;
    font-weight: 600;
    line-height: 21px; /* 131.25% */
}

.goldshell-band-aid-share-actions-close-btn {
    background:#F3F3F3;
    border-radius: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goldshell-band-aid-share-actions-btn-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}


.goldshell-band-aid-share-action-btn {
    background: none;
    border: none;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    min-width: 80px;
}

.goldshell-band-aid-share-action-btn-text {
    color: #1A1A1A;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
}

.goldshell-band-aid-share-action-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.goldshell-band-aid-share-action-btn:active {
    background-color: #e9ecef;
    transform: scale(0.95);
}

.goldshell-band-aid-action-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* 移除分隔线 */
.goldshell-band-aid-share-action-btn:first-child {
    border-right: none;
}


/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .goldshell-band-aid-share-modal {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .goldshell-band-aid-share-modal {
        margin: 10px;
    }
}

.goldshell-band-aid-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F9F9F9;
}



/* 分享成功提示样式 */
.goldshell-band-aid-share-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

/* 分享错误提示样式 */
.goldshell-band-aid-share-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .goldshell-band-aid-product-share-container,
    .goldshell-band-aid-share-action-btn,
    .goldshell-band-aid-share-success-message,
    .goldshell-band-aid-share-error-message,
    .goldshell-band-aid-share-overlay,
    .goldshell-band-aid-share-modal {
        transition: none;
        animation: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {

    
    .goldshell-band-aid-share-action-btn:hover {
        background-color: #000;
        color: #fff;
    }
}

/* 浮层打开时禁用页面滚动 */
body.goldshell-band-aid-share-overlay-open {
    overflow: hidden;
}

/* 确保浮层在移动设备上正确显示 */
@media (max-width: 768px) {
    .goldshell-band-aid-share-overlay {
        padding: 10px;
    }
}

/* 下载按钮状态样式 */
.goldshell-band-aid-download-image-btn.generating,
.goldshell-band-aid-download-image-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.goldshell-band-aid-download-image-btn.generating .goldshell-band-aid-share-action-btn-text,
.goldshell-band-aid-download-image-btn.disabled .goldshell-band-aid-share-action-btn-text {
    color: #999;
}

.goldshell-band-aid-download-image-btn.generating .goldshell-band-aid-action-icon,
.goldshell-band-aid-download-image-btn.disabled .goldshell-band-aid-action-icon {
    color: #ccc;
}

.goldshell-band-aid-download-image-btn.ready {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.goldshell-band-aid-download-image-btn.ready .goldshell-band-aid-action-icon {
    color: #1A1A1A;
}

/* 添加加载动画 */
.goldshell-band-aid-download-image-btn.generating .goldshell-band-aid-action-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* 隐藏的资源容器样式 */
#goldshell-band-aid-qrcode-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

#goldshell-band-aid-qrcode-container img,
#goldshell-band-aid-qrcode-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 加载消息样式 */
.goldshell-band-aid-share-loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10001;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 15px;
}

.goldshell-band-aid-share-loading-message::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media screen and (max-width: 768px) {
    .goldshell-band-aid-share-loading-message {
        font-size: 14px;
        padding: 10px 10px;
        gap: 0px;
    }

    .goldshell-band-aid-share-loading-message::after {
        width: 15px;
        height: 15px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




@media (max-width: 1024px) {
    .goldshell-band-aid-product-share-container {
        background-color: #f0b61b;
    }
}



@media screen and (max-height: 700px) {
    .goldshell-band-aid-share-actions {
        gap: 0px;
        padding: 10px 16px;
    }
    
}