/* 基础样式 */ page { background: #f8fafc; overflow-x: hidden; } .auth-container { min-height: 100vh; position: relative; padding-bottom: 40rpx; } /* 背景装饰 */ .background-design { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; } .bg-circle { position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0.03) 100%); animation: float 20s infinite ease-in-out; } .circle-1 { width: 600rpx; height: 600rpx; top: -200rpx; right: -200rpx; animation-delay: 0s; } .circle-2 { width: 400rpx; height: 400rpx; top: 300rpx; left: -100rpx; animation-delay: 5s; } .bg-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 300rpx; background: linear-gradient(to top, rgba(20, 184, 166, 0.05) 0%, transparent 100%); clip-path: polygon(0% 100%, 100% 100%, 100% 30%, 80% 20%, 60% 40%, 40% 20%, 20% 40%, 0% 20%); } @keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20rpx) scale(1.05); } } /* 头部区域 */ .header-section { position: relative; z-index: 1; padding: 60rpx 40rpx 30rpx; animation: slideInDown 0.6s ease-out; } .brand-header { display: flex; align-items: center; margin-bottom: 40rpx; } .brand-text { flex: 1; animation: fadeInRight 0.8s ease-out 0.2s both; } .brand-name { font-size: 44rpx; font-weight: 800; color: #0f766e; letter-spacing: 2rpx; margin-bottom: 6rpx; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .brand-slogan { font-size: 26rpx; color: #64748b; } .auth-header { text-align: center; margin-bottom: 30rpx; animation: fadeInUp 0.6s ease-out 0.4s both; } .auth-title { display: flex; align-items: center; justify-content: center; gap: 20rpx; margin-bottom: 16rpx; } .title-text { font-size: 40rpx; font-weight: 700; color: #0f172a; } .title-badge { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; font-size: 22rpx; padding: 4rpx 16rpx; border-radius: 20rpx; font-weight: 500; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .auth-description { font-size: 28rpx; color: #64748b; line-height: 1.5; } /* 进度指示器 */ .progress-indicator { display: flex; align-items: center; justify-content: center; padding: 0 40rpx 50rpx; position: relative; z-index: 1; animation: fadeInUp 0.6s ease-out 0.6s both; } .progress-step { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; transition: all 0.3s ease; } .step-bubble { width: 60rpx; height: 60rpx; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12rpx; transition: all 0.3s ease; position: relative; overflow: hidden; } .step-bubble::before { content: ''; position: absolute; top: -2rpx; left: -2rpx; right: -2rpx; bottom: -2rpx; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); border-radius: 50%; opacity: 0; transition: opacity 0.3s ease; } .progress-step.active .step-bubble::before { opacity: 1; } .step-number { font-size: 28rpx; font-weight: 600; color: #64748b; position: relative; z-index: 1; transition: all 0.3s ease; } .progress-step.active .step-number { color: white; } .step-label { font-size: 26rpx; color: #94a3b8; font-weight: 500; transition: all 0.3s ease; } .progress-step.active .step-label { color: #0f766e; font-weight: 600; } .progress-line { flex: 1; height: 4rpx; background: #e2e8f0; border-radius: 2rpx; position: relative; margin: 0 20rpx; overflow: hidden; transition: all 0.3s ease; } .line-progress { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%); border-radius: 2rpx; transition: width 0.5s ease; } /* 表单区域 */ .form-section { position: relative; z-index: 1; padding: 0 40rpx; } .input-card { background: white; border-radius: 24rpx; padding: 32rpx; margin-bottom: 30rpx; box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08); border: 1rpx solid #f1f5f9; transition: all 0.3s ease; overflow: hidden; animation: fadeInUp 0.6s ease-out; opacity: 0; animation-fill-mode: forwards; position: relative; } .input-card:nth-child(1) { animation-delay: 0.7s; } .input-card:nth-child(2) { animation-delay: 0.8s; } .input-card:focus-within::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3rpx; background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%); animation: underlineProgress 0.3s ease forwards; } @keyframes underlineProgress { from { transform: translateX(-100%); } to { transform: translateX(0); } } .input-label { display: flex; align-items: center; margin-bottom: 24rpx; transition: all 0.3s ease; } .label-icon { width: 28rpx; height: 28rpx; margin-right: 12rpx; transition: all 0.3s ease; } .input-field:focus + .input-label .label-icon, .input-card:focus-within .label-icon { transform: scale(1.1) rotate(5deg); filter: brightness(1.2); } .label-text { font-size: 30rpx; font-weight: 600; color: #0f172a; flex: 1; } .required-star { color: #ef4444; font-size: 24rpx; margin-left: 4rpx; } .input-container { position: relative; margin-bottom: 8rpx; } /* 输入框样式 */ .input-field { height: 88rpx; font-size: 32rpx; color: #0f172a; padding: 0 80rpx 0 24rpx; background: #f8fafc; border-radius: 16rpx; border: 2rpx solid #e2e8f0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; position: relative; width: 100%; box-sizing: border-box; } .input-field.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.02); animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; } .input-field.valid { border-color: #22c55e; background: rgba(34, 197, 94, 0.02); } .input-field.has-value { border-color: #94a3b8; } .placeholder { color: #94a3b8; font-size: 28rpx; transition: all 0.3s ease; } /* 清除按钮 */ .clear-wrapper { position: absolute; right: 20rpx; top: 50%; transform: translateY(-50%); z-index: 10; animation: fadeIn 0.3s ease-out; } .clear-btn { width: 44rpx; height: 44rpx; padding: 0; margin: 0; background: transparent; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; position: relative; overflow: hidden; line-height: 1; } .clear-btn::after { display: none; border: none; } .clear-btn:active { background-color: rgba(0, 0, 0, 0.1); transform: scale(0.95); } .clear-icon { width: 26rpx; height: 26rpx; opacity: 0.6; filter: brightness(0%); transition: all 0.2s ease; } .clear-btn:active .clear-icon { opacity: 1; } /* 字符计数 */ .char-count { position: absolute; right: 80rpx; top: 50%; transform: translateY(-50%); font-size: 24rpx; color: #94a3b8; z-index: 1; transition: all 0.3s ease; opacity: 0.8; background: transparent; pointer-events: none; } .input-field.focused ~ .char-count { opacity: 1; transform: translateY(-50%) scale(1.1); } .char-count.warning { color: #f59e0b; animation: pulse 1.5s infinite; } /* 输入框下划线 */ .input-underline { position: relative; height: 2rpx; margin-top: -2rpx; overflow: hidden; } .underline-bg { position: absolute; top: 0; left: 0; right: 0; height: 100%; background: #e2e8f0; } .underline-progress { position: absolute; top: 0; left: 0; width: 0; height: 100%; background: #14b8a6; transition: width 0.3s ease; } .underline-progress.active { width: 100%; animation: underlineExpand 0.3s ease forwards; } @keyframes underlineExpand { from { width: 0; } to { width: 100%; } } /* 身份证分段显示 */ .id-segments { position: absolute; bottom: -40rpx; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 8rpx; opacity: 0; transform: translateY(10rpx); transition: all 0.3s ease; pointer-events: none; } .id-segments.show { opacity: 0.7; transform: translateY(0); } .id-segment { font-size: 20rpx; color: #94a3b8; padding: 4rpx 8rpx; background: #f1f5f9; border-radius: 6rpx; min-width: 60rpx; text-align: center; transition: all 0.3s ease; transform: scale(0.9); } .id-segment.filled { color: #0f766e; background: rgba(20, 184, 166, 0.1); font-weight: 500; transform: scale(1); animation: segmentFill 0.3s ease-out; } @keyframes segmentFill { 0% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } } .id-segment.last { min-width: 40rpx; } /* 提示信息*/ .hint-container { display: flex; align-items: center; min-height: 36rpx; padding-top: 8rpx; opacity: 1; transform: translateY(0); transition: all 0.3s ease; pointer-events: none; } .hint-text { font-size: 24rpx; line-height: 1.4; flex: 1; transition: all 0.3s ease; } .hint-text.normal { color: #64748b; } .hint-text.error { color: #ef4444; animation: fadeInUp 0.3s ease-out; } /* 协议卡片 */ .agreement-card { background: white; border-radius: 24rpx; padding: 32rpx; margin-top: 40rpx; box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08); transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out 0.9s both; } .agreement-item { display: flex; align-items: center; cursor: pointer; } .agreement-checkbox { width: 40rpx; height: 40rpx; border: 2rpx solid #cbd5e1; border-radius: 10rpx; margin-right: 20rpx; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .agreement-checkbox::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); opacity: 0; transition: opacity 0.3s ease; } .agreement-checkbox.checked { border-color: #14b8a6; animation: checkboxCheck 0.4s ease-out; } .agreement-checkbox.checked::before { opacity: 1; } @keyframes checkboxCheck { 0% { transform: scale(0.8); opacity: 0.5; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } } .checkmark { width: 26rpx; height: 26rpx; position: relative; z-index: 1; animation: checkmarkAppear 0.3s ease-out 0.1s both; } @keyframes checkmarkAppear { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } .agreement-content { font-size: 28rpx; color: #475569; line-height: 1.5; flex: 1; transition: color 0.3s ease; } .link-text { color: #0f766e; font-weight: 600; margin: 0 4rpx; position: relative; display: inline-block; transition: all 0.3s ease; } .link-text::after { content: ''; position: absolute; bottom: -2rpx; left: 0; right: 0; height: 2rpx; background: #0f766e; transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; } .link-text:active::after { transform: scaleX(1); transform-origin: left; } /* 提交区域*/ .submit-section { position: relative; z-index: 1; padding: 40rpx 40rpx 30rpx; animation: fadeInUp 0.6s ease-out 1s both; } .submit-button { width: 100%; padding: 10rpx 0; border-radius: 50rpx; font-size: 32rpx; font-weight: 600; margin: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; border: none; outline: none; display: block; } .submit-button::after { border: none; } .submit-button.disabled { background: #cbd5e1 !important; color: #94a3b8 !important; box-shadow: none !important; transform: none !important; cursor: not-allowed; } .submit-button.active { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); color: white; box-shadow: 0 12rpx 40rpx rgba(20, 184, 166, 0.4); } .submit-button.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100% ); transform: translateX(-100%); animation: shimmer 2s infinite; } .button-hover { opacity: 0.95; transform: translateY(-2rpx) scale(1.01) !important; } /* 协议弹窗 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(10rpx); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .modal-overlay.show { opacity: 1; visibility: visible; } .modal-overlay.show .modal-container { animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes modalSlideUp { 0% { transform: translateY(50rpx); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } } .modal-container { width: 680rpx; background: white; border-radius: 32rpx; overflow: hidden; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3); max-height: 80vh; display: flex; flex-direction: column; } .modal-header { padding: 40rpx 48rpx 24rpx; display: flex; align-items: center; justify-content: space-between; border-bottom: 1rpx solid #f1f5f9; } .modal-title { font-size: 36rpx; font-weight: 700; color: #0f172a; } .modal-close { width: 44rpx; height: 44rpx; padding: 0; margin: 0; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; border: none; outline: none; } .modal-close::after { border: none; } .modal-close:active { background: #e2e8f0; transform: scale(0.95); } .close-icon { width: 26rpx; height: 26rpx; opacity: 0.6; } .modal-content { flex: 1; padding: 32rpx 48rpx; max-height: 60vh; box-sizing: border-box; } .modal-text { font-size: 28rpx; color: #475569; line-height: 1.6; white-space: pre-line; animation: fadeIn 0.5s ease-out 0.2s both; } .modal-footer { padding: 32rpx 48rpx 30rpx; margin-top: 20rpx; } .modal-confirm { width: 100%; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); border-radius: 24rpx; font-size: 30rpx; font-weight: 600; color: white; padding: 0; margin: 0; transition: all 0.2s ease; border: none; outline: none; height: 88rpx; display: flex; align-items: center; justify-content: center; } .modal-confirm::after { border: none; } .modal-confirm:active { opacity: 0.9; transform: scale(0.98); } /* 成功弹窗 */ .success-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .success-modal.show { opacity: 1; visibility: visible; } .success-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(10rpx); } .success-modal.show .success-container { animation: successZoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes successZoomIn { 0% { transform: scale(0.9); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } } .success-container { position: relative; width: 680rpx; background: white; border-radius: 32rpx; overflow: hidden; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3); } .success-icon { padding: 60rpx 0 40rpx; text-align: center; position: relative; } .success-badge { width: 120rpx; height: 120rpx; margin: 0 auto; position: relative; z-index: 1; filter: brightness(0); animation: successBadge 0.8s ease-out; } @keyframes successBadge { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } } .success-ring { position: absolute; top: 50%; left: 50%; border: 2rpx solid rgba(20, 184, 166, 0.3); border-radius: 50%; } .ring-1 { width: 160rpx; height: 160rpx; animation: ringPulse 2s ease-out infinite; } .ring-2 { width: 200rpx; height: 200rpx; animation: ringPulse 2s ease-out 0.5s infinite; } @keyframes ringPulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } 50% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } } .success-body { padding: 0 48rpx 40rpx; animation: fadeInUp 0.6s ease-out 0.3s both; } .success-title { font-size: 44rpx; font-weight: 700; color: #0f172a; text-align: center; margin-bottom: 16rpx; } .success-message { font-size: 32rpx; color: #475569; text-align: center; margin-bottom: 40rpx; } .brand { color: #0f766e; font-weight: 700; margin: 0 4rpx; } .success-details { background: #f8fafc; border-radius: 20rpx; padding: 32rpx; animation: fadeInUp 0.6s ease-out 0.5s both; } .detail-item { display: flex; flex-direction: column; gap: 12rpx; } .detail-item:not(:last-child) { margin-bottom: 24rpx; } .detail-label { display: flex; align-items: center; gap: 12rpx; } .detail-icon { width: 24rpx; height: 24rpx; animation: iconBounce 0.6s ease-out; } @keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4rpx); } } .detail-label text { font-size: 26rpx; color: #64748b; } .detail-value { font-size: 30rpx; font-weight: 600; color: #0f172a; padding-left: 36rpx; } .success-footer { padding: 0 48rpx 40rpx; animation: fadeInUp 0.6s ease-out 0.7s both; } .success-button { width: 100%; height: 88rpx; background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); border-radius: 24rpx; font-size: 30rpx; font-weight: 600; color: white; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 12rpx; transition: all 0.2s ease; border: none; outline: none; } .success-button::after { border: none; } .success-button:active { opacity: 0.9; transform: scale(0.98); } @keyframes homeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4rpx); } } /* 通用动画 */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20rpx); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInRight { from { opacity: 0; transform: translateX(-20rpx); } to { opacity: 1; transform: translateX(0); } } @keyframes fadeInDown { from { opacity: 0; transform: translateY(-20rpx); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInDown { from { transform: translateY(-50rpx); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes bounceIn { 0%, 20%, 40%, 60%, 80%, 100% { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); } 0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 20% { transform: scale3d(1.1, 1.1, 1.1); } 40% { transform: scale3d(0.9, 0.9, 0.9); } 60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); } 80% { transform: scale3d(0.97, 0.97, 0.97); } 100% { opacity: 1; transform: scale3d(1, 1, 1); } } @keyframes shake { 10%, 90% { transform: translateX(-1rpx); } 20%, 80% { transform: translateX(2rpx); } 30%, 50%, 70% { transform: translateX(-4rpx); } 40%, 60% { transform: translateX(4rpx); } } /* 响应式适配 */ @media (max-width: 480px) { .header-section, .form-section, .submit-section, .progress-indicator { padding-left: 30rpx; padding-right: 30rpx; } .input-card, .agreement-card { padding: 24rpx; } .modal-container, .success-container { width: 90%; margin: 0 5%; } .modal-header, .modal-content, .modal-footer, .success-body, .success-footer { padding-left: 32rpx; padding-right: 32rpx; } .id-segments { display: none; } } /* 加载状态 */ .loading-indicator { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .loading-indicator.show { opacity: 1; visibility: visible; } .loading-spinner { width: 60rpx; height: 60rpx; border: 4rpx solid #f3f3f3; border-top: 4rpx solid #14b8a6; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }