camera.wxss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. .camera-container {
  2. position: relative;
  3. width: 100%;
  4. height: 100vh;
  5. background-color: #ffffff;
  6. display: flex;
  7. flex-direction: column;
  8. overflow: hidden; /* 防止内容溢出 */
  9. }
  10. .header {
  11. height: 90rpx;
  12. /* background-color: #000000; */
  13. display: flex;
  14. align-items: center;
  15. padding: 0 30rpx;
  16. /* color: #ffffff; */
  17. }
  18. .back-button {
  19. width: 60rpx;
  20. height: 60rpx;
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. }
  25. .title {
  26. flex: 1;
  27. text-align: center;
  28. font-size: 32rpx;
  29. font-weight: bold;
  30. }
  31. .controls {
  32. display: flex;
  33. gap: 30rpx;
  34. }
  35. .iconfont {
  36. font-size: 40rpx;
  37. }
  38. .content {
  39. flex: 1;
  40. display: flex;
  41. flex-direction: column;
  42. position: relative;
  43. padding: 50rpx 20rpx 0;
  44. }
  45. .progress-container {
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: space-between;
  49. margin-bottom: 20rpx;
  50. }
  51. .progress-step {
  52. display: flex;
  53. align-items: center;
  54. margin-bottom: 10rpx;
  55. }
  56. .step-circle {
  57. width: 40rpx;
  58. height: 40rpx;
  59. border-radius: 50%;
  60. background-color: #e0e0e0;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. font-size: 24rpx;
  65. margin-right: 10rpx;
  66. }
  67. .step-circle.active {
  68. background-color: #ff9500;
  69. color: #ffffff;
  70. }
  71. .step-text {
  72. font-size: 24rpx;
  73. color: #666666;
  74. }
  75. .progress-bar {
  76. height: 10rpx;
  77. background-color: #e0e0e0;
  78. border-radius: 5rpx;
  79. overflow: hidden;
  80. margin-bottom: 20rpx;
  81. }
  82. .progress-fill {
  83. height: 100%;
  84. background-color: #00c853;
  85. transition: width 0.3s;
  86. }
  87. .interview-content {
  88. flex: 1;
  89. display: flex;
  90. flex-direction: column;
  91. }
  92. .video-area {
  93. display: flex;
  94. /* flex-direction: column; */
  95. justify-content: space-between;
  96. height: auto;
  97. margin-bottom: 20rpx;
  98. }
  99. .video-camera {
  100. display: flex;
  101. flex-direction: row;
  102. align-items: center;
  103. justify-content: space-between;
  104. width: 65%;
  105. }
  106. .interviewer {
  107. background-color: #f5f5f5;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. position: relative;
  112. width: 48% !important;
  113. height: 300rpx;
  114. }
  115. .interviewer-video {
  116. width: 100%;
  117. height: 100%;
  118. object-fit: cover;
  119. }
  120. .interviewer-avatar {
  121. width: 80%;
  122. height: 80%;
  123. object-fit: contain;
  124. }
  125. .user-camera-container {
  126. width: 48%;
  127. height: 300rpx;
  128. border-radius: 10rpx;
  129. overflow: hidden;
  130. border: 4rpx solid #ffffff;
  131. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
  132. }
  133. .question-area {
  134. flex: 1;
  135. display: flex;
  136. flex-direction: column;
  137. }
  138. .question-number {
  139. font-size: 28rpx;
  140. color: #666;
  141. margin-bottom: 20rpx;
  142. }
  143. .question-importance {
  144. background-color: #f9f9f9;
  145. padding: 20rpx;
  146. border-radius: 10rpx;
  147. margin-bottom: 20rpx;
  148. font-size: 28rpx;
  149. color: #333;
  150. }
  151. .question-importance text {
  152. color: #ff0000;
  153. margin-right: 10rpx;
  154. }
  155. .options {
  156. display: flex;
  157. flex-direction: column;
  158. gap: 20rpx;
  159. margin-bottom: 30rpx;
  160. }
  161. .option-item {
  162. padding: 20rpx;
  163. background-color: #f5f5f5;
  164. border-radius: 10rpx;
  165. font-size: 28rpx;
  166. transition: all 0.3s;
  167. border: 1px solid #e0e0e0;
  168. display: flex;
  169. align-items: center;
  170. }
  171. .option-selected {
  172. background-color: #e6f7ff;
  173. border: 1px solid #1890ff;
  174. }
  175. .option-correct {
  176. background-color: #d4f7d4;
  177. border: 1px solid #52c41a;
  178. }
  179. .option-wrong {
  180. background-color: #fff1f0;
  181. border: 1px solid #ff4d4f;
  182. }
  183. .option-text {
  184. color: #333;
  185. }
  186. .timer-container {
  187. text-align: right;
  188. margin: 20rpx 0;
  189. }
  190. .timer-text {
  191. font-size: 24rpx;
  192. color: #666;
  193. background-color: #f0f0f0;
  194. padding: 6rpx 12rpx;
  195. border-radius: 6rpx;
  196. }
  197. .bottom-button-container {
  198. position: fixed;
  199. bottom: 50px;
  200. left: 5%;
  201. right: 0;
  202. padding: 20rpx;
  203. display: flex;
  204. justify-content: center;
  205. z-index: 10;
  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. }
  470. /* 新增的图片显示样式 */
  471. .question-image-container {
  472. width: 100%;
  473. margin: 20rpx 0;
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. }
  478. .question-image {
  479. width: 100%;
  480. max-width: 600rpx;
  481. border-radius: 10rpx;
  482. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  483. }
  484. /* 添加滚动视图样式 */
  485. .content-scroll {
  486. flex: 1;
  487. height: calc(100vh - 130px); /* 减去底部按钮的高度 */
  488. overflow-y: auto;
  489. }
  490. /* 添加底部空白区域,防止内容被固定按钮遮挡 */
  491. .bottom-space {
  492. height: 130px; /* 与底部按钮高度一致 */
  493. }