.xqbox{ min-height: 100vh; background: #F8FBFF; } /* 页面内容 */ .page-content { height: calc(100vh - 120rpx); box-sizing: border-box; } /* 表单区域 */ .form-section { background: #FFFFFF; margin-bottom: 24rpx; padding: 32rpx; border-radius: 0; border-bottom: 1rpx solid #F0F7FF; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24rpx; } .section-title { display: flex; align-items: center; gap: 12rpx; } .section-title text { font-size: 32rpx; font-weight: 700; color: #1A1A1A; } .section-required { font-size: 24rpx; color: #FF6B6B; font-weight: 500; background: rgba(255, 107, 107, 0.1); padding: 4rpx 12rpx; border-radius: 12rpx; } .section-optional { font-size: 24rpx; color: #999; font-weight: 400; } /* 表单输入 */ .form-input { height: 96rpx; background: #F8FBFF; border-radius: 20rpx; padding: 0 32rpx; font-size: 30rpx; color: #333; border: 1rpx solid #E5F0FF; box-sizing: border-box; width: 100%; transition: all 0.2s ease; } .form-input::placeholder { color: #BBB; font-size: 28rpx; } .form-input:focus { border-color: #4A90E2; background: #FFFFFF; box-shadow: 0 0 0 3rpx rgba(74, 144, 226, 0.1); } /* 宠物信息网格 */ .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24rpx; } .info-item { display: flex; flex-direction: column; gap: 16rpx; } .item-label { display: flex; align-items: center; gap: 8rpx; } .item-label text { font-size: 26rpx; color: #666; font-weight: 500; } .item-input-wrapper { position: relative; } .item-input { height: 80rpx; background: #F8FBFF; border-radius: 20rpx; padding: 0 32rpx 0 24rpx; font-size: 28rpx; color: #333; border: 1rpx solid #E5F0FF; box-sizing: border-box; width: 100%; text-align: center; } /* 性别选择 */ .gender-buttons { display: flex; gap: 16rpx; } .gender-btn { flex: 1; height: 80rpx; background: #F8FBFF; border-radius: 20rpx; display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: #666; border: 1rpx solid #E5F0FF; transition: all 0.2s ease; } .gender-btn.active { background: linear-gradient(135deg, #4A90E2 0%, #357AE8 100%); color: #FFFFFF; border-color: #4A90E2; font-weight: 600; box-shadow: 0 4rpx 12rpx rgba(74, 144, 226, 0.2); } /* 症状描述 */ .symptom-box { position: relative; } .symptom-textarea { width: 100%; min-height: 240rpx; background: #F8FBFF; border-radius: 20rpx; padding: 32rpx; font-size: 28rpx; color: #333; border: 1rpx solid #E5F0FF; box-sizing: border-box; line-height: 1.6; transition: all 0.2s ease; } .symptom-textarea::placeholder { color: #BBB; font-size: 28rpx; } .symptom-textarea:focus { border-color: #4A90E2; background: #FFFFFF; box-shadow: 0 0 0 3rpx rgba(74, 144, 226, 0.1); } .textarea-counter { position: absolute; right: 20rpx; bottom: 20rpx; font-size: 24rpx; color: #999; background: rgba(255, 255, 255, 0.9); padding: 4rpx 12rpx; border-radius: 12rpx; } /* 图片上传 */ .upload-tips { font-size: 24rpx; color: #999; margin-bottom: 24rpx; line-height: 1.4; } .image-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24rpx; } .image-preview { width: 200rpx; height: 200rpx; border-radius: 20rpx; overflow: hidden; position: relative; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08); } .preview-image { width: 100%; height: 100%; object-fit: cover; } .remove-overlay { position: absolute; top: 8rpx; right: 8rpx; width: 40rpx; height: 40rpx; background: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4rpx); transition: all 0.2s ease; } .remove-overlay:active { background: rgba(0, 0, 0, 0.8); transform: scale(0.95); } .remove-icon { width: 20rpx; height: 20rpx; } /* 上传按钮 */ .upload-btn { width: 200rpx; height: 200rpx; border: 2rpx dashed #D9E7FF; border-radius: 20rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #F8FBFF; transition: all 0.2s ease; } .upload-btn:active { border-color: #4A90E2; background: #F0F7FF; transform: scale(0.98); } .upload-icon-wrapper { width: 60rpx; height: 60rpx; background: linear-gradient(135deg, #4A90E2 0%, #357AE8 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16rpx; } .upload-icon { width: 28rpx; height: 28rpx; } .upload-text { font-size: 24rpx; color: #4A90E2; font-weight: 500; } /* 提交按钮 */ .submit-section { padding: 40rpx 32rpx 80rpx; background: #FFFFFF; } .submit-btn { background: linear-gradient(135deg, #4A90E2 0%, #357AE8 100%); border-radius: 24rpx; padding: 10rpx 0; font-size: 32rpx; font-weight: 700; color: #FFFFFF; border: none; transition: all 0.3s ease; box-shadow: 0 8rpx 32rpx rgba(74, 144, 226, 0.25); } .submit-btn:active { transform: translateY(2rpx); box-shadow: 0 4rpx 20rpx rgba(74, 144, 226, 0.3); } .submit-btn[disabled] { opacity: 0.6; transform: none; box-shadow: none; } /* 动画效果 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20rpx); } to { opacity: 1; transform: translateY(0); } } .form-section { animation: fadeIn 0.4s ease-out forwards; opacity: 0; } .form-section:nth-child(1) { animation-delay: 0.1s; } .form-section:nth-child(2) { animation-delay: 0.15s; } .form-section:nth-child(3) { animation-delay: 0.2s; } .form-section:nth-child(4) { animation-delay: 0.25s; }