/* 分享弹框样式 - 居中弹框 */

/* 弹框遮罩 */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹框容器 - 居中显示 */
.share-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(85%, 320px);
    background: #fff;
    border-radius: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 弹框内容 */
.share-modal-content {
    padding: 0 20px 20px 20px;
    position: relative;
}

/* 返回按钮 - iOS风格左上角 */
.share-modal-back {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0;
    cursor: pointer;
    color: #333;
    transition: opacity 0.2s ease;
}

.share-modal-back:active {
    opacity: 0.5;
}

.share-modal-back svg {
    width: 18px;
    height: 18px;
}

/* 返回按钮下方分割线 */
.share-modal-divider {
    width: calc(100% + 40px);
    margin-left: -20px;
    height: 1px;
    background: #E5E5E5;
}

/* 分享提示区域 - 灰色背景圆角 */
.share-prompt-section {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0 20px;
    text-align: center;
}

.share-prompt-text {
    color: #333;
    font-size: clamp(15px, 4vw, 17px);
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 6px;
}

.share-prompt-cta {
    color: #333;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: normal;
}

/* 分享按钮区域 - 四个一排 */
.share-buttons {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 0 10px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn-icon.copy {
    background: #E8E8E8;
}

.share-btn-icon.facebook {
    background: #1877F2;
}

.share-btn-icon.line {
    background: #06C755;
}

.share-btn-icon.threads {
    background: #000;
}

.share-btn-label {
    font-size: clamp(10px, 2.8vw, 12px);
    color: #666;
    font-weight: bold;
}
