camera.wxss 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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. display: flex;
  308. flex-direction: row;
  309. align-items: flex-start;
  310. justify-content: space-between;
  311. width: 100%;
  312. margin-bottom: 20rpx;
  313. }
  314. .message-box {
  315. width: 65%;
  316. min-height: 120rpx;
  317. background-color: #f5f5f5;
  318. border-radius: 10rpx;
  319. padding: 15rpx;
  320. margin-right: 20rpx;
  321. display: flex;
  322. align-items: center;
  323. }
  324. .message-text {
  325. font-size: 24rpx;
  326. color: #333;
  327. line-height: 1.5;
  328. }
  329. .user-avatar {
  330. width: 110px;
  331. height: 160px;
  332. border-radius: 10rpx;
  333. overflow: hidden;
  334. }
  335. .camera {
  336. width: 100%;
  337. height: 100%;
  338. border-radius: 10rpx;
  339. border: 2rpx solid #e0e0e0;
  340. }
  341. .avatar-image {
  342. width: 100%;
  343. height: 100%;
  344. border-radius: 10rpx;
  345. border: 2rpx solid #e0e0e0;
  346. }
  347. .digital-human-webview {
  348. width: 100%;
  349. height: 100%;
  350. border-radius: 10rpx;
  351. border: 2rpx solid #e0e0e0;
  352. }
  353. .interview-complete-screen {
  354. position: fixed;
  355. top: 0;
  356. left: 0;
  357. right: 0;
  358. bottom: 0;
  359. background-color: #f0f5ff;
  360. display: flex;
  361. flex-direction: column;
  362. align-items: center;
  363. justify-content: center;
  364. z-index: 1000;
  365. padding: 40rpx;
  366. }
  367. .digital-avatar-large {
  368. width: 200rpx;
  369. height: 200rpx;
  370. margin-bottom: 60rpx;
  371. }
  372. .avatar-image-large {
  373. width: 100%;
  374. height: 100%;
  375. border-radius: 30rpx;
  376. }
  377. .complete-message {
  378. font-size: 40rpx;
  379. font-weight: bold;
  380. color: #333;
  381. margin-bottom: 30rpx;
  382. }
  383. .complete-description {
  384. font-size: 28rpx;
  385. color: #666;
  386. text-align: center;
  387. margin-bottom: 80rpx;
  388. line-height: 1.5;
  389. }
  390. .complete-button {
  391. background-color: #0039b3;
  392. color: #ffffff;
  393. border-radius: 10rpx;
  394. font-size: 32rpx;
  395. padding: 20rpx 60rpx;
  396. margin-top: 40rpx;
  397. }
  398. /* 添加加载状态样式 */
  399. .loading-container {
  400. position: absolute;
  401. top: 0;
  402. left: 0;
  403. right: 0;
  404. bottom: 0;
  405. display: flex;
  406. flex-direction: column;
  407. align-items: center;
  408. justify-content: center;
  409. background-color: rgba(255, 255, 255, 0.9);
  410. z-index: 100;
  411. }
  412. .loading-text {
  413. margin-top: 20rpx;
  414. font-size: 28rpx;
  415. color: #666;
  416. }
  417. .error-container {
  418. text-align: center;
  419. }
  420. .error-message {
  421. font-size: 28rpx;
  422. color: #ff4d4f;
  423. margin-bottom: 30rpx;
  424. }
  425. .retry-button {
  426. background-color: #0039b3;
  427. color: #ffffff;
  428. border-radius: 10rpx;
  429. font-size: 28rpx;
  430. padding: 10rpx 30rpx;
  431. }
  432. .question-type {
  433. display: inline-block;
  434. /* background-color: #0039b3; */
  435. color: white;
  436. font-size: 24rpx;
  437. padding: 4rpx 10rpx;
  438. border-radius: 6rpx;
  439. margin-right: 10rpx;
  440. }
  441. /* 新增的开放问题样式 */
  442. .open-question-container {
  443. display: flex;
  444. flex-direction: column;
  445. width: 100%;
  446. margin-bottom: 20rpx;
  447. }
  448. .open-question-input {
  449. width: 100%;
  450. height: 300rpx;
  451. background-color: #f9f9f9;
  452. border: 1px solid #e0e0e0;
  453. border-radius: 10rpx;
  454. padding: 20rpx;
  455. font-size: 28rpx;
  456. color: #333;
  457. }
  458. .word-count {
  459. text-align: right;
  460. font-size: 24rpx;
  461. color: #999;
  462. margin-top: 10rpx;
  463. }
  464. .option-prefix {
  465. margin-right: 10rpx;
  466. font-weight: bold;
  467. color: #333;
  468. min-width: 30rpx;
  469. }