/** * SharePage 样式 * 移动端适配,参考 RegisterPage 的设计风格 */ .share-page { position: relative; width: 100%; min-height: 100dvh; min-height: calc(var(--vh, 1vh) * 100); background: linear-gradient(180deg, #E8E8E8 0%, #F5F3F0 100%); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); display: flex; flex-direction: column; overflow-y: auto; } /* 图片容器 */ .share-image-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; overflow: hidden; } .share-image { width: 100%; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); background: #fff; } /* 按钮容器 */ .share-buttons-container { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: rgba(255, 255, 255, 0.6); border-top: 1px solid rgba(0, 0, 0, 0.05); } .share-button { height: 6.9vh; /* 56 / 812 × 100 = 6.9vh */ border-radius: 12px; /* 横向保持 px,自动转 vw */ font-size: clamp(14px, 3.5vw, 16px); font-weight: 500; border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; /* 横向保持 px,自动转 vw */ } .share-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .share-button:active { transform: translateY(0); } /* 微信按钮 */ .share-button-wechat { background: linear-gradient(135deg, #07C160 0%, #06AD56 100%); color: #fff; } .share-button-wechat:hover { background: linear-gradient(135deg, #06AD56 0%, #05994C 100%); box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3); } /* 微信朋友圈按钮 */ .share-button-wechat-moments { background: linear-gradient(135deg, #07C160 0%, #06AD56 100%); color: #fff; } .share-button-wechat-moments:hover { background: linear-gradient(135deg, #06AD56 0%, #05994C 100%); box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3); } /* QQ按钮 */ .share-button-qq { background: linear-gradient(135deg, #12B7F5 0%, #0FA3D9 100%); color: #fff; } .share-button-qq:hover { background: linear-gradient(135deg, #0FA3D9 0%, #0D8FC3 100%); box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3); } /* Web Share按钮(Chrome等现代浏览器) */ .share-button-web-share { background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%); color: #fff; } .share-button-web-share:hover { background: linear-gradient(135deg, #357ae8 0%, #2b6cd4 100%); box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3); } /* 复制链接按钮 */ .share-button-copy { background: #fff; color: #333; border: 1px solid #d9d9d9; } .share-button-copy:hover { background: #f5f5f5; border-color: #40a9ff; color: #40a9ff; } /* 下载按钮 */ .share-button-download { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; } .share-button-download:hover { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } /* 二维码弹窗样式 */ .qr-code-modal .ant-modal-content { border-radius: 16px; } .qr-code-container { display: flex; flex-direction: column; align-items: center; padding: 20px 0; } .qr-code-tip { margin: 0 0 20px 0; font-size: 14px; color: #666; text-align: center; line-height: 1.5; } .qr-code-image-wrapper { display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .qr-code-image { width: 300px; height: 300px; display: block; } /* 暗色模式支持(可选) */ /* 暗色模式支持已移除 - 使用固定主题 */