.camera-container { position: relative; width: 100%; height: 100vh; background-color: #ffffff; display: flex; flex-direction: column; overflow: hidden; /* 防止内容溢出 */ } .header { height: 90rpx; /* background-color: #000000; */ display: flex; align-items: center; padding: 0 30rpx; /* color: #ffffff; */ } .back-button { width: 60rpx; height: 60rpx; display: flex; align-items: center; justify-content: center; } .title { flex: 1; text-align: center; font-size: 32rpx; font-weight: bold; } .controls { display: flex; gap: 30rpx; } .iconfont { font-size: 40rpx; } .content { flex: 1; display: flex; flex-direction: column; position: relative; padding: 50rpx 20rpx 0; } .progress-container { display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 20rpx; } .progress-step { display: flex; align-items: center; margin-bottom: 10rpx; } .step-circle { width: 40rpx; height: 40rpx; border-radius: 50%; background-color: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 24rpx; margin-right: 10rpx; } .step-circle.active { background-color: #ff9500; color: #ffffff; } .step-text { font-size: 24rpx; color: #666666; } .progress-bar { height: 10rpx; background-color: #e0e0e0; border-radius: 5rpx; overflow: hidden; margin-bottom: 20rpx; } .progress-fill { height: 100%; background-color: #00c853; transition: width 0.3s; } .interview-content { flex: 1; display: flex; flex-direction: column; margin-bottom: 40rpx; padding: 20rpx; border-bottom: 1px solid #eee; } .video-area { display: flex; /* flex-direction: column; */ justify-content: space-between; height: auto; margin-bottom: 20rpx; } .video-camera { display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 65%; } .interviewer { background-color: #f5f5f5; display: flex; align-items: center; justify-content: center; position: relative; width: 48% !important; height: 300rpx; } .interviewer-video { width: 100%; height: 100%; object-fit: cover; } .interviewer-avatar { width: 80%; height: 80%; object-fit: contain; } .user-camera-container { width: 48%; height: 300rpx; border-radius: 10rpx; overflow: hidden; border: 4rpx solid #ffffff; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2); } .question-area { flex: 1; display: flex; flex-direction: column; } .question-number { font-size: 28rpx; color: #666; margin-bottom: 20rpx; } .question-importance { background-color: #f9f9f9; padding: 20rpx; border-radius: 10rpx; margin-bottom: 20rpx; font-size: 28rpx; color: #333; } .question-importance text { color: #ff0000; /* margin-right: 10rpx; */ } .options { display: flex; flex-direction: column; gap: 20rpx; margin-bottom: 30rpx; } .option-item { padding: 20rpx; background-color: #f5f5f5; border-radius: 10rpx; font-size: 28rpx; transition: all 0.3s; border: 1px solid #e0e0e0; display: flex; align-items: center; cursor: pointer; /* 添加指针样式 */ } .option-item:active { transform: scale(0.98); /* 点击时轻微缩小效果 */ opacity: 0.9; } .option-selected { background-color: #e6f7ff; border: 1px solid #1890ff; } /* 添加选中后的动画效果 */ @keyframes selectedPulse { 0% { box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(24, 144, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 144, 255, 0); } } .option-selected { animation: selectedPulse 1.5s ease-out; } .option-correct { background-color: #d4f7d4; border: 1px solid #52c41a; } .option-wrong { background-color: #fff1f0; border: 1px solid #ff4d4f; } .option-text { color: #333; } .timer-container { text-align: right; margin: 20rpx 0; } .timer-text { font-size: 24rpx; color: #666; background-color: #f0f0f0; padding: 6rpx 12rpx; border-radius: 6rpx; } .bottom-button-container { position: fixed; bottom: 50px; left: 5%; right: 0; padding: 20rpx; display: flex; justify-content: center; z-index: 10; } .bottom-button-wrapper { display: flex; width: 100%; justify-content: space-between; align-items: center; } .timer-display { font-size: 28rpx; color: #666; padding: 10rpx 20rpx; border-radius: 6rpx; } .next-button { background-color: #0039b3; color: #ffffff; border-radius: 10rpx; font-size: 30rpx; height: 80rpx; line-height: 80rpx; width: 90%; text-align: center; margin: 0; } .footer { height: 100rpx; background-color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 0 30rpx; color: #ffffff; } .timer { font-size: 28rpx; } .next-step { font-size: 28rpx; } .interview-end-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 999; } .modal-content { width: 80%; background-color: #ffffff; border-radius: 20rpx; padding: 40rpx; display: flex; flex-direction: column; align-items: center; } .modal-title { font-size: 36rpx; font-weight: bold; margin-bottom: 30rpx; } .score-display { font-size: 48rpx; font-weight: bold; color: #0039b3; margin: 20rpx 0; } .modal-message { font-size: 28rpx; color: #666; text-align: center; margin-bottom: 40rpx; } .modal-buttons { display: flex; justify-content: space-between; width: 100%; margin-top: 20rpx; } .modal-button { width: 45%; } @keyframes speaking { 0% { opacity: 0.8; } 50% { opacity: 1; } 100% { opacity: 0.8; } } .speaking { animation: speaking 1.5s infinite; } .digital-avatar { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; width: 100%; margin-bottom: 20rpx; } .message-box { width: 65%; min-height: 120rpx; background-color: #f5f5f5; border-radius: 10rpx; padding: 15rpx; margin-right: 20rpx; display: flex; align-items: center; } .message-text { font-size: 24rpx; color: #333; line-height: 1.5; } .user-avatar { width: 110px; height: 160px; border-radius: 10rpx; overflow: hidden; } .camera { width: 100%; height: 100%; border-radius: 10rpx; border: 2rpx solid #e0e0e0; } .avatar-image { width: 100%; height: 100%; border-radius: 10rpx; border: 2rpx solid #e0e0e0; } .digital-human-webview { width: 100%; height: 100%; border-radius: 10rpx; border: 2rpx solid #e0e0e0; } .interview-complete-screen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: #f0f5ff; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1000; padding: 40rpx; } .digital-avatar-large { width: 200rpx; height: 200rpx; margin-bottom: 60rpx; } .avatar-image-large { width: 100%; height: 100%; border-radius: 30rpx; } .complete-message { font-size: 40rpx; font-weight: bold; color: #333; margin-bottom: 30rpx; } .complete-description { font-size: 28rpx; color: #666; text-align: center; margin-bottom: 80rpx; line-height: 1.5; } .complete-button { background-color: #0039b3; color: #ffffff; border-radius: 10rpx; font-size: 32rpx; padding: 20rpx 60rpx; margin-top: 40rpx; } /* 添加加载状态样式 */ .loading-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.9); z-index: 100; } .loading-text { margin-top: 20rpx; font-size: 28rpx; color: #666; } .error-container { text-align: center; } .error-message { font-size: 28rpx; color: #ff4d4f; margin-bottom: 30rpx; } .retry-button { background-color: #0039b3; color: #ffffff; border-radius: 10rpx; font-size: 28rpx; padding: 10rpx 30rpx; } .question-type { display: inline-block; /* background-color: #0039b3; */ color: white; font-size: 24rpx; /* padding: 4rpx 5rpx; */ border-radius: 6rpx; /* margin-right: 10rpx; */ } /* 新增的开放问题样式 */ .open-question-container { display: flex; flex-direction: column; width: 100%; margin-bottom: 20rpx; } .open-question-input { width: 100%; height: 300rpx; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 10rpx; padding: 20rpx; font-size: 28rpx; color: #333; } .word-count { text-align: right; font-size: 24rpx; color: #999; margin-top: 10rpx; } .option-prefix { margin-right: 10rpx; font-weight: bold; color: #333; min-width: 30rpx; } /* 新增的图片显示样式 */ .question-image-container { width: 100%; margin: 20rpx 0; display: flex; justify-content: center; align-items: center; } .question-image { width: 100%; max-width: 600rpx; border-radius: 10rpx; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1); } /* 添加滚动视图样式 */ .content-scroll { flex: 1; height: calc(100vh - 200px); /* 只减去顶部相机的高度 */ margin-top: 10px; } /* 添加底部空白区域,防止内容被固定按钮遮挡 */ .bottom-space { height: 50rpx; /* 减小底部空白区域 */ } /* 添加流式布局相关样式 */ .interview-content { margin-bottom: 40rpx; padding: 20rpx; border-bottom: 1px solid #eee; } .option-disabled { opacity: 0.7; background-color: #f0f0f0; } .question-button-container { margin-top: 20rpx; display: flex; justify-content: center; } .bottom-timer-container { display: none; } /* 添加固定相机容器样式 */ .fixed-camera-container { position: -webkit-sticky; position: sticky; top: 0; width: 100%; padding: 20rpx; background-color: #fff; z-index: 10; display: flex; justify-content: flex-start; border-bottom: 1px solid #eee; } .user-avatar { width: 110px; height: 160px; border-radius: 10rpx; overflow: hidden; } /* 添加继续按钮样式 */ .continue-button-container { display: flex; justify-content: center; padding: 20rpx; margin-top: 20rpx; } .continue-button { background-color: #0039b3; color: #ffffff; border-radius: 10rpx; font-size: 30rpx; height: 80rpx; line-height: 80rpx; width: 90%; text-align: center; }