camera.wxss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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. display: flex;
  168. align-items: center;
  169. }
  170. .option-selected {
  171. background-color: #e6f7ff;
  172. border: 1px solid #1890ff;
  173. }
  174. .option-correct {
  175. background-color: #d4f7d4;
  176. border: 1px solid #52c41a;
  177. }
  178. .option-wrong {
  179. background-color: #fff1f0;
  180. border: 1px solid #ff4d4f;
  181. }
  182. .option-text {
  183. color: #333;
  184. }
  185. .timer-container {
  186. text-align: right;
  187. margin: 20rpx 0;
  188. }
  189. .timer-text {
  190. font-size: 24rpx;
  191. color: #666;
  192. background-color: #f0f0f0;
  193. padding: 6rpx 12rpx;
  194. border-radius: 6rpx;
  195. }
  196. .bottom-button-container {
  197. position: fixed;
  198. bottom: 30px;
  199. left:7%;
  200. right: 0;
  201. background-color: #ffffff;
  202. /* border-top: 1px solid #e0e0e0; */
  203. padding: 20rpx;
  204. display: flex;
  205. justify-content: center;
  206. }
  207. .bottom-button-wrapper {
  208. display: flex;
  209. width: 100%;
  210. justify-content: space-between;
  211. align-items: center;
  212. }
  213. .timer-display {
  214. font-size: 28rpx;
  215. color: #666;
  216. padding: 10rpx 20rpx;
  217. border-radius: 6rpx;
  218. }
  219. .next-button {
  220. background-color: #0039b3;
  221. color: #ffffff;
  222. border-radius: 10rpx;
  223. font-size: 30rpx;
  224. height: 80rpx;
  225. line-height: 80rpx;
  226. width: 90%;
  227. text-align: center;
  228. margin: 0;
  229. }
  230. .footer {
  231. height: 100rpx;
  232. background-color: #000000;
  233. display: flex;
  234. justify-content: space-between;
  235. align-items: center;
  236. padding: 0 30rpx;
  237. color: #ffffff;
  238. }
  239. .timer {
  240. font-size: 28rpx;
  241. }
  242. .next-step {
  243. font-size: 28rpx;
  244. }
  245. .interview-end-modal {
  246. position: fixed;
  247. top: 0;
  248. left: 0;
  249. right: 0;
  250. bottom: 0;
  251. background-color: rgba(0, 0, 0, 0.5);
  252. display: flex;
  253. align-items: center;
  254. justify-content: center;
  255. z-index: 999;
  256. }
  257. .modal-content {
  258. width: 80%;
  259. background-color: #ffffff;
  260. border-radius: 20rpx;
  261. padding: 40rpx;
  262. display: flex;
  263. flex-direction: column;
  264. align-items: center;
  265. }
  266. .modal-title {
  267. font-size: 36rpx;
  268. font-weight: bold;
  269. margin-bottom: 30rpx;
  270. }
  271. .score-display {
  272. font-size: 48rpx;
  273. font-weight: bold;
  274. color: #0039b3;
  275. margin: 20rpx 0;
  276. }
  277. .modal-message {
  278. font-size: 28rpx;
  279. color: #666;
  280. text-align: center;
  281. margin-bottom: 40rpx;
  282. }
  283. .modal-buttons {
  284. display: flex;
  285. justify-content: space-between;
  286. width: 100%;
  287. margin-top: 20rpx;
  288. }
  289. .modal-button {
  290. width: 45%;
  291. }
  292. @keyframes speaking {
  293. 0% {
  294. opacity: 0.8;
  295. }
  296. 50% {
  297. opacity: 1;
  298. }
  299. 100% {
  300. opacity: 0.8;
  301. }
  302. }
  303. .speaking {
  304. animation: speaking 1.5s infinite;
  305. }
  306. .digital-avatar {
  307. width: 120rpx;
  308. height: 120rpx;
  309. z-index: 10;
  310. overflow: hidden;
  311. border-radius: 20rpx;
  312. }
  313. .camera {
  314. width: 120rpx;
  315. height: 120rpx;
  316. border-radius: 20rpx;
  317. border: 2rpx solid #e0e0e0;
  318. }
  319. .avatar-image {
  320. width: 120rpx;
  321. height: 120rpx;
  322. border-radius: 20rpx;
  323. border: 2rpx solid #e0e0e0;
  324. }
  325. .digital-human-webview {
  326. width: 120rpx;
  327. height: 120rpx;
  328. border-radius: 20rpx;
  329. border: 2rpx solid #e0e0e0;
  330. }
  331. .interview-complete-screen {
  332. position: fixed;
  333. top: 0;
  334. left: 0;
  335. right: 0;
  336. bottom: 0;
  337. background-color: #f0f5ff;
  338. display: flex;
  339. flex-direction: column;
  340. align-items: center;
  341. justify-content: center;
  342. z-index: 1000;
  343. padding: 40rpx;
  344. }
  345. .digital-avatar-large {
  346. width: 200rpx;
  347. height: 200rpx;
  348. margin-bottom: 60rpx;
  349. }
  350. .avatar-image-large {
  351. width: 100%;
  352. height: 100%;
  353. border-radius: 30rpx;
  354. }
  355. .complete-message {
  356. font-size: 40rpx;
  357. font-weight: bold;
  358. color: #333;
  359. margin-bottom: 30rpx;
  360. }
  361. .complete-description {
  362. font-size: 28rpx;
  363. color: #666;
  364. text-align: center;
  365. margin-bottom: 80rpx;
  366. line-height: 1.5;
  367. }
  368. .complete-button {
  369. background-color: #0039b3;
  370. color: #ffffff;
  371. border-radius: 10rpx;
  372. font-size: 32rpx;
  373. padding: 20rpx 60rpx;
  374. margin-top: 40rpx;
  375. }
  376. /* 添加加载状态样式 */
  377. .loading-container {
  378. position: absolute;
  379. top: 0;
  380. left: 0;
  381. right: 0;
  382. bottom: 0;
  383. display: flex;
  384. flex-direction: column;
  385. align-items: center;
  386. justify-content: center;
  387. background-color: rgba(255, 255, 255, 0.9);
  388. z-index: 100;
  389. }
  390. .loading-text {
  391. margin-top: 20rpx;
  392. font-size: 28rpx;
  393. color: #666;
  394. }
  395. .error-container {
  396. text-align: center;
  397. }
  398. .error-message {
  399. font-size: 28rpx;
  400. color: #ff4d4f;
  401. margin-bottom: 30rpx;
  402. }
  403. .retry-button {
  404. background-color: #0039b3;
  405. color: #ffffff;
  406. border-radius: 10rpx;
  407. font-size: 28rpx;
  408. padding: 10rpx 30rpx;
  409. }
  410. .question-type {
  411. display: inline-block;
  412. background-color: #0039b3;
  413. color: white;
  414. font-size: 24rpx;
  415. padding: 4rpx 10rpx;
  416. border-radius: 6rpx;
  417. margin-right: 10rpx;
  418. }
  419. /* 新增的开放问题样式 */
  420. .open-question-container {
  421. display: flex;
  422. flex-direction: column;
  423. width: 100%;
  424. margin-bottom: 20rpx;
  425. }
  426. .open-question-input {
  427. width: 100%;
  428. height: 300rpx;
  429. background-color: #f9f9f9;
  430. border: 1px solid #e0e0e0;
  431. border-radius: 10rpx;
  432. padding: 20rpx;
  433. font-size: 28rpx;
  434. color: #333;
  435. }
  436. .word-count {
  437. text-align: right;
  438. font-size: 24rpx;
  439. color: #999;
  440. margin-top: 10rpx;
  441. }
  442. .option-prefix {
  443. margin-right: 10rpx;
  444. font-weight: bold;
  445. color: #333;
  446. min-width: 30rpx;
  447. }