myStar.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. .star-container {
  2. width: 100%;
  3. min-height: 100vh;
  4. background-color: #f5f5f5;
  5. .loading-area {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. right: 0;
  10. bottom: 0;
  11. display: flex;
  12. flex-direction: column;
  13. justify-content: center;
  14. align-items: center;
  15. background: rgba(255,255,255,0.9);
  16. .loading-wrapper {
  17. width: 400rpx;
  18. height: 400rpx;
  19. position: relative;
  20. .center-circle {
  21. position: absolute;
  22. top: 50%;
  23. left: 50%;
  24. width: 100rpx;
  25. height: 100rpx;
  26. margin: -50rpx 0 0 -50rpx;
  27. background: #1E90FF;
  28. border-radius: 50%;
  29. animation: rotate 2s linear infinite;
  30. &::after {
  31. content: '';
  32. position: absolute;
  33. top: 8rpx;
  34. left: 8rpx;
  35. right: 8rpx;
  36. bottom: 8rpx;
  37. background: #fff;
  38. border-radius: 50%;
  39. opacity: 0.3;
  40. }
  41. }
  42. .orbit-balls {
  43. width: 100%;
  44. height: 100%;
  45. position: absolute;
  46. animation: rotate 2s linear infinite;
  47. .ball {
  48. position: absolute;
  49. width: 100%;
  50. height: 100%;
  51. left: 0;
  52. top: 0;
  53. .ball-item {
  54. position: absolute;
  55. width: 20rpx;
  56. height: 20rpx;
  57. background: var(--color);
  58. border-radius: 50%;
  59. top: 0;
  60. left: 50%;
  61. margin-left: -10rpx;
  62. animation: moveBall 3s ease-in infinite;
  63. animation-delay: var(--delay);
  64. }
  65. }
  66. }
  67. }
  68. .loading-text {
  69. margin-top: 40rpx;
  70. font-size: 28rpx;
  71. color: #666;
  72. }
  73. }
  74. .star-content {
  75. width: 100%;
  76. padding: 20rpx;
  77. }
  78. .gender-popup {
  79. position: fixed;
  80. top: 0;
  81. left: 0;
  82. right: 0;
  83. bottom: 0;
  84. background: rgba(0, 0, 0, 0.5);
  85. display: flex;
  86. justify-content: center;
  87. align-items: center;
  88. z-index: 1000;
  89. .popup-content {
  90. width: 600rpx;
  91. background: #FFFFFF;
  92. border-radius: 24rpx;
  93. padding: 40rpx;
  94. .popup-title {
  95. font-size: 36rpx;
  96. color: #333;
  97. text-align: center;
  98. font-weight: 500;
  99. margin-bottom: 40rpx;
  100. }
  101. .gender-cards {
  102. display: flex;
  103. justify-content: space-between;
  104. margin-bottom: 40rpx;
  105. .gender-card {
  106. width: 240rpx;
  107. height: 280rpx;
  108. border-radius: 16rpx;
  109. border: 2rpx solid #EEEEEE;
  110. display: flex;
  111. flex-direction: column;
  112. align-items: center;
  113. justify-content: center;
  114. position: relative;
  115. transition: all 0.3s;
  116. image {
  117. width: 160rpx;
  118. height: 160rpx;
  119. margin-bottom: 20rpx;
  120. }
  121. text {
  122. font-size: 28rpx;
  123. color: #333;
  124. }
  125. .check-icon {
  126. position: absolute;
  127. top: 16rpx;
  128. right: 16rpx;
  129. width: 40rpx;
  130. height: 40rpx;
  131. }
  132. &.selected {
  133. border-color: #1E90FF;
  134. background: rgba(30, 144, 255, 0.05);
  135. }
  136. }
  137. }
  138. .confirm-btn {
  139. height: 88rpx;
  140. background: #9C27B0;
  141. border-radius: 44rpx;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. color: #FFFFFF;
  146. font-size: 32rpx;
  147. font-weight: 500;
  148. &:active {
  149. opacity: 0.8;
  150. }
  151. }
  152. }
  153. }
  154. .character-page {
  155. width: 100%;
  156. min-height: 100vh;
  157. background-color: #f5f5f5;
  158. display: flex;
  159. flex-direction: column;
  160. position: relative;
  161. .character-container {
  162. flex: 1;
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. padding: 40rpx;
  167. margin-bottom: 120rpx; // 为底部按钮留出空间
  168. .character-image {
  169. width: 100%;
  170. height: 800rpx; // 调整角色图片高度
  171. object-fit: contain;
  172. }
  173. }
  174. .bottom-button {
  175. position: fixed;
  176. bottom: 40rpx;
  177. left: 40rpx;
  178. right: 40rpx;
  179. height: 98rpx;
  180. background: #333333;
  181. border-radius: 49rpx;
  182. display: flex;
  183. align-items: center;
  184. justify-content: center;
  185. color: #FFFFFF;
  186. font-size: 32rpx;
  187. font-weight: 500;
  188. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  189. transition: all 0.2s ease;
  190. &:active {
  191. opacity: 0.95;
  192. transform: scale(0.98);
  193. }
  194. }
  195. }
  196. }
  197. @keyframes rotate {
  198. from {
  199. transform: rotate(0deg);
  200. }
  201. to {
  202. transform: rotate(-360deg);
  203. }
  204. }
  205. @keyframes moveBall {
  206. 0% {
  207. transform: translateY(0) scale(1);
  208. opacity: 1;
  209. }
  210. 98% {
  211. transform: translateY(180rpx) scale(0.1);
  212. opacity: 0.2;
  213. }
  214. 99% {
  215. transform: translateY(180rpx) scale(0.01);
  216. opacity: 0;
  217. }
  218. 100% {
  219. transform: translateY(0) scale(1);
  220. opacity: 0;
  221. }
  222. }
  223. .form-page {
  224. width: 100%;
  225. min-height: 100vh;
  226. background-color: #ffffff;
  227. padding: 30rpx;
  228. box-sizing: border-box;
  229. .form-group {
  230. margin-bottom: 40rpx;
  231. .label {
  232. display: flex;
  233. align-items: center;
  234. margin-bottom: 16rpx;
  235. font-size: 28rpx;
  236. color: #333;
  237. .required {
  238. color: #ff4d4f;
  239. margin-right: 8rpx;
  240. &.error {
  241. animation: shake 0.5s ease-in-out;
  242. }
  243. }
  244. }
  245. .input {
  246. width: 100%;
  247. height: 88rpx;
  248. background: #f5f5f5;
  249. border-radius: 12rpx;
  250. padding: 0 24rpx;
  251. font-size: 28rpx;
  252. &.error {
  253. border: 2rpx solid #ff4d4f;
  254. }
  255. }
  256. .gender-options {
  257. display: flex;
  258. gap: 20rpx;
  259. .gender-option {
  260. flex: 1;
  261. height: 80rpx;
  262. background: #f5f5f5;
  263. border-radius: 40rpx;
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. font-size: 28rpx;
  268. color: #666;
  269. transition: all 0.3s;
  270. &.selected {
  271. background: #333;
  272. color: #fff;
  273. }
  274. }
  275. }
  276. .textarea-container {
  277. position: relative;
  278. .textarea {
  279. width: 100%;
  280. height: 240rpx;
  281. background: #f5f5f5;
  282. border-radius: 12rpx;
  283. padding: 24rpx;
  284. font-size: 28rpx;
  285. &.error {
  286. border: 2rpx solid #ff4d4f;
  287. }
  288. }
  289. .word-count {
  290. position: absolute;
  291. right: 24rpx;
  292. bottom: 24rpx;
  293. font-size: 24rpx;
  294. color: #999;
  295. }
  296. }
  297. .tags-scroll {
  298. width: 100%;
  299. white-space: nowrap;
  300. .tags-container {
  301. display: inline-flex;
  302. padding: 20rpx 0;
  303. gap: 20rpx;
  304. .tag {
  305. padding: 16rpx 32rpx;
  306. background: #f5f5f5;
  307. border-radius: 32rpx;
  308. font-size: 26rpx;
  309. color: #666;
  310. transition: all 0.3s;
  311. &.selected {
  312. background: #333;
  313. color: #fff;
  314. }
  315. }
  316. }
  317. }
  318. }
  319. .submit-button {
  320. position: fixed;
  321. bottom: 40rpx;
  322. left: 40rpx;
  323. right: 40rpx;
  324. height: 98rpx;
  325. background: #333333;
  326. border-radius: 49rpx;
  327. display: flex;
  328. align-items: center;
  329. justify-content: center;
  330. color: #FFFFFF;
  331. font-size: 32rpx;
  332. font-weight: 500;
  333. transition: all 0.2s ease;
  334. &:active {
  335. opacity: 0.95;
  336. transform: scale(0.98);
  337. }
  338. }
  339. }
  340. @keyframes shake {
  341. 0%, 100% { transform: translateX(0); }
  342. 25% { transform: translateX(-5rpx); }
  343. 75% { transform: translateX(5rpx); }
  344. }
  345. .character-info {
  346. width: 100%;
  347. min-height: 100vh;
  348. background-color: #ffffff;
  349. position: relative;
  350. padding-bottom: 120rpx;
  351. .info-container {
  352. padding: 30rpx;
  353. .character-portrait {
  354. display: flex;
  355. flex-direction: column;
  356. align-items: center;
  357. margin-bottom: 40rpx;
  358. .portrait-image {
  359. width: 100%;
  360. height: 600rpx;
  361. object-fit: contain;
  362. }
  363. .character-name {
  364. font-size: 40rpx;
  365. font-weight: 600;
  366. color: #333;
  367. margin-top: 20rpx;
  368. }
  369. }
  370. .info-section {
  371. background: #f8f8f8;
  372. border-radius: 20rpx;
  373. padding: 30rpx;
  374. .section-title {
  375. font-size: 32rpx;
  376. font-weight: 500;
  377. color: #333;
  378. margin-bottom: 20rpx;
  379. position: relative;
  380. padding-left: 20rpx;
  381. &::before {
  382. content: '';
  383. position: absolute;
  384. left: 0;
  385. top: 50%;
  386. transform: translateY(-50%);
  387. width: 6rpx;
  388. height: 28rpx;
  389. background: #9C27B0;
  390. border-radius: 3rpx;
  391. }
  392. }
  393. .description-box {
  394. background: #ffffff;
  395. border-radius: 16rpx;
  396. padding: 24rpx;
  397. margin-bottom: 30rpx;
  398. .description-text {
  399. font-size: 28rpx;
  400. color: #666;
  401. line-height: 1.6;
  402. }
  403. }
  404. .tags-box {
  405. display: flex;
  406. flex-wrap: wrap;
  407. gap: 16rpx;
  408. .tag-item {
  409. padding: 12rpx 24rpx;
  410. background: #f0f0f0;
  411. border-radius: 28rpx;
  412. font-size: 24rpx;
  413. color: #666;
  414. }
  415. }
  416. }
  417. }
  418. .join-button {
  419. position: fixed;
  420. bottom: 40rpx;
  421. left: 40rpx;
  422. right: 40rpx;
  423. height: 98rpx;
  424. background: linear-gradient(to right, #9C27B0, #7B1FA2);
  425. border-radius: 49rpx;
  426. display: flex;
  427. align-items: center;
  428. justify-content: center;
  429. color: #FFFFFF;
  430. font-size: 32rpx;
  431. font-weight: 500;
  432. box-shadow: 0 4rpx 12rpx rgba(156, 39, 176, 0.3);
  433. transition: all 0.2s ease;
  434. &:active {
  435. transform: scale(0.98);
  436. opacity: 0.95;
  437. }
  438. }
  439. }