camera.wxss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. .camera-container {
  2. position: relative;
  3. width: 100%;
  4. height: 100vh;
  5. background-color: #ffffff;
  6. display: flex;
  7. flex-direction: column;
  8. }
  9. .header {
  10. height: 90rpx;
  11. /* background-color: #000000; */
  12. display: flex;
  13. align-items: center;
  14. padding: 0 30rpx;
  15. /* color: #ffffff; */
  16. }
  17. .back-button {
  18. width: 60rpx;
  19. height: 60rpx;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. }
  24. .title {
  25. flex: 1;
  26. text-align: center;
  27. font-size: 32rpx;
  28. font-weight: bold;
  29. }
  30. .controls {
  31. display: flex;
  32. gap: 30rpx;
  33. }
  34. .iconfont {
  35. font-size: 40rpx;
  36. }
  37. .content {
  38. flex: 1;
  39. display: flex;
  40. flex-direction: column;
  41. position: relative;
  42. padding: 50rpx 20rpx 0;
  43. }
  44. .progress-container {
  45. display: flex;
  46. flex-direction: column;
  47. justify-content: space-between;
  48. margin-bottom: 20rpx;
  49. }
  50. .progress-step {
  51. display: flex;
  52. align-items: center;
  53. margin-bottom: 10rpx;
  54. }
  55. .step-circle {
  56. width: 40rpx;
  57. height: 40rpx;
  58. border-radius: 50%;
  59. background-color: #e0e0e0;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. font-size: 24rpx;
  64. margin-right: 10rpx;
  65. }
  66. .step-circle.active {
  67. background-color: #ff9500;
  68. color: #ffffff;
  69. }
  70. .step-text {
  71. font-size: 24rpx;
  72. color: #666666;
  73. }
  74. .progress-bar {
  75. height: 10rpx;
  76. background-color: #e0e0e0;
  77. border-radius: 5rpx;
  78. overflow: hidden;
  79. margin-bottom: 20rpx;
  80. }
  81. .progress-fill {
  82. height: 100%;
  83. background-color: #00c853;
  84. transition: width 0.3s;
  85. }
  86. .interview-content {
  87. flex: 1;
  88. display: flex;
  89. flex-direction: column;
  90. }
  91. .video-area {
  92. display: flex;
  93. /* flex-direction: column; */
  94. justify-content: space-between;
  95. height: auto;
  96. margin-bottom: 20rpx;
  97. }
  98. .video-camera {
  99. display: flex;
  100. flex-direction: row;
  101. align-items: center;
  102. justify-content: space-between;
  103. width: 65%;
  104. }
  105. .interviewer {
  106. background-color: #f5f5f5;
  107. display: flex;
  108. align-items: center;
  109. justify-content: center;
  110. position: relative;
  111. width: 48% !important;
  112. height: 300rpx;
  113. }
  114. .interviewer-video {
  115. width: 100%;
  116. height: 100%;
  117. object-fit: cover;
  118. }
  119. .interviewer-avatar {
  120. width: 80%;
  121. height: 80%;
  122. object-fit: contain;
  123. }
  124. .user-camera-container {
  125. width: 48%;
  126. height: 300rpx;
  127. border-radius: 10rpx;
  128. overflow: hidden;
  129. border: 4rpx solid #ffffff;
  130. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
  131. }
  132. .question-area {
  133. flex: 1;
  134. display: flex;
  135. flex-direction: column;
  136. }
  137. .question-number {
  138. font-size: 28rpx;
  139. color: #666;
  140. margin-bottom: 20rpx;
  141. }
  142. .question-importance {
  143. background-color: #f9f9f9;
  144. padding: 20rpx;
  145. border-radius: 10rpx;
  146. margin-bottom: 20rpx;
  147. font-size: 28rpx;
  148. color: #333;
  149. }
  150. .question-importance text {
  151. color: #ff0000;
  152. margin-right: 10rpx;
  153. }
  154. .options {
  155. display: flex;
  156. flex-direction: column;
  157. gap: 20rpx;
  158. margin-bottom: 30rpx;
  159. }
  160. .option-item {
  161. padding: 20rpx;
  162. background-color: #f5f5f5;
  163. border-radius: 10rpx;
  164. font-size: 28rpx;
  165. transition: all 0.3s;
  166. border: 1px solid #e0e0e0;
  167. }
  168. .option-selected {
  169. background-color: #e6f7ff;
  170. border: 1px solid #1890ff;
  171. }
  172. .option-correct {
  173. background-color: #d4f7d4;
  174. border: 1px solid #52c41a;
  175. }
  176. .option-wrong {
  177. background-color: #fff1f0;
  178. border: 1px solid #ff4d4f;
  179. }
  180. .option-text {
  181. color: #333;
  182. }
  183. .timer-container {
  184. text-align: center;
  185. margin: 20rpx 0;
  186. }
  187. .timer-text {
  188. font-size: 24rpx;
  189. color: #666;
  190. }
  191. .next-button {
  192. background-color: #0039b3;
  193. color: #ffffff;
  194. border-radius: 10rpx;
  195. font-size: 30rpx;
  196. margin: 20rpx auto;
  197. height: 80rpx;
  198. line-height: 80rpx;
  199. width: 90%;
  200. text-align: center;
  201. }
  202. .next-button[disabled] {
  203. background-color: #cccccc;
  204. color: #999999;
  205. }
  206. .footer {
  207. height: 100rpx;
  208. background-color: #000000;
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. padding: 0 30rpx;
  213. color: #ffffff;
  214. }
  215. .timer {
  216. font-size: 28rpx;
  217. }
  218. .next-step {
  219. font-size: 28rpx;
  220. }
  221. .interview-end-modal {
  222. position: fixed;
  223. top: 0;
  224. left: 0;
  225. right: 0;
  226. bottom: 0;
  227. background-color: rgba(0, 0, 0, 0.5);
  228. display: flex;
  229. align-items: center;
  230. justify-content: center;
  231. z-index: 999;
  232. }
  233. .modal-content {
  234. width: 80%;
  235. background-color: #ffffff;
  236. border-radius: 20rpx;
  237. padding: 40rpx;
  238. display: flex;
  239. flex-direction: column;
  240. align-items: center;
  241. }
  242. .modal-title {
  243. font-size: 36rpx;
  244. font-weight: bold;
  245. margin-bottom: 30rpx;
  246. }
  247. .score-display {
  248. font-size: 48rpx;
  249. font-weight: bold;
  250. color: #0039b3;
  251. margin: 20rpx 0;
  252. }
  253. .modal-message {
  254. font-size: 28rpx;
  255. color: #666;
  256. text-align: center;
  257. margin-bottom: 40rpx;
  258. }
  259. .modal-buttons {
  260. display: flex;
  261. justify-content: space-between;
  262. width: 100%;
  263. margin-top: 20rpx;
  264. }
  265. .modal-button {
  266. width: 45%;
  267. }
  268. @keyframes speaking {
  269. 0% {
  270. opacity: 0.8;
  271. }
  272. 50% {
  273. opacity: 1;
  274. }
  275. 100% {
  276. opacity: 0.8;
  277. }
  278. }
  279. .speaking {
  280. animation: speaking 1.5s infinite;
  281. }
  282. .digital-avatar {
  283. width: 120rpx;
  284. height: 120rpx;
  285. z-index: 10;
  286. overflow: hidden;
  287. border-radius: 20rpx;
  288. }
  289. .camera {
  290. width: 120rpx;
  291. height: 120rpx;
  292. border-radius: 20rpx;
  293. border: 2rpx solid #e0e0e0;
  294. }
  295. .avatar-image {
  296. width: 120rpx;
  297. height: 120rpx;
  298. border-radius: 20rpx;
  299. border: 2rpx solid #e0e0e0;
  300. }
  301. .digital-human-webview {
  302. width: 120rpx;
  303. height: 120rpx;
  304. border-radius: 20rpx;
  305. border: 2rpx solid #e0e0e0;
  306. }
  307. .interview-complete-screen {
  308. position: fixed;
  309. top: 0;
  310. left: 0;
  311. right: 0;
  312. bottom: 0;
  313. background-color: #f0f5ff;
  314. display: flex;
  315. flex-direction: column;
  316. align-items: center;
  317. justify-content: center;
  318. z-index: 1000;
  319. padding: 40rpx;
  320. }
  321. .digital-avatar-large {
  322. width: 200rpx;
  323. height: 200rpx;
  324. margin-bottom: 60rpx;
  325. }
  326. .avatar-image-large {
  327. width: 100%;
  328. height: 100%;
  329. border-radius: 30rpx;
  330. }
  331. .complete-message {
  332. font-size: 40rpx;
  333. font-weight: bold;
  334. color: #333;
  335. margin-bottom: 30rpx;
  336. }
  337. .complete-description {
  338. font-size: 28rpx;
  339. color: #666;
  340. text-align: center;
  341. margin-bottom: 80rpx;
  342. line-height: 1.5;
  343. }
  344. .complete-button {
  345. background-color: #0039b3;
  346. color: #ffffff;
  347. border-radius: 10rpx;
  348. font-size: 32rpx;
  349. padding: 20rpx 60rpx;
  350. margin-top: 40rpx;
  351. }
  352. /* 添加加载状态样式 */
  353. .loading-container {
  354. position: absolute;
  355. top: 0;
  356. left: 0;
  357. right: 0;
  358. bottom: 0;
  359. display: flex;
  360. flex-direction: column;
  361. align-items: center;
  362. justify-content: center;
  363. background-color: rgba(255, 255, 255, 0.9);
  364. z-index: 100;
  365. }
  366. .loading-text {
  367. margin-top: 20rpx;
  368. font-size: 28rpx;
  369. color: #666;
  370. }
  371. .error-container {
  372. text-align: center;
  373. }
  374. .error-message {
  375. font-size: 28rpx;
  376. color: #ff4d4f;
  377. margin-bottom: 30rpx;
  378. }
  379. .retry-button {
  380. background-color: #0039b3;
  381. color: #ffffff;
  382. border-radius: 10rpx;
  383. font-size: 28rpx;
  384. padding: 10rpx 30rpx;
  385. }
  386. .question-type {
  387. display: inline-block;
  388. background-color: #0039b3;
  389. color: white;
  390. font-size: 24rpx;
  391. padding: 4rpx 10rpx;
  392. border-radius: 6rpx;
  393. margin-right: 10rpx;
  394. }
  395. /* 新增的开放问题样式 */
  396. .open-question-container {
  397. display: flex;
  398. flex-direction: column;
  399. width: 100%;
  400. margin-bottom: 20rpx;
  401. }
  402. .open-question-input {
  403. width: 100%;
  404. height: 300rpx;
  405. background-color: #f9f9f9;
  406. border: 1px solid #e0e0e0;
  407. border-radius: 10rpx;
  408. padding: 20rpx;
  409. font-size: 28rpx;
  410. color: #333;
  411. }
  412. .word-count {
  413. text-align: right;
  414. font-size: 24rpx;
  415. color: #999;
  416. margin-top: 10rpx;
  417. }
  418. .option-prefix {
  419. margin-right: 10rpx;
  420. color: #6c5ce7;
  421. font-weight: bold;
  422. }