myStar.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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: url("../../static/me/loadBackground.png") no-repeat top center /
  16. 100% auto,
  17. #fff;
  18. .svga-player {
  19. width: 200px;
  20. height: 200px;
  21. }
  22. }
  23. .star-content {
  24. width: 100%;
  25. padding: 20rpx;
  26. }
  27. .gender-popup {
  28. position: fixed;
  29. top: 0;
  30. left: 0;
  31. right: 0;
  32. bottom: 0;
  33. background: rgba(0, 0, 0, 0.5);
  34. display: flex;
  35. justify-content: top center;
  36. align-items: center;
  37. z-index: 1000;
  38. }
  39. .character-page {
  40. width: 100%;
  41. min-height: 100vh;
  42. background-color: #f5f5f5;
  43. display: flex;
  44. flex-direction: column;
  45. position: relative;
  46. .character-container {
  47. flex: 1;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. padding: 40rpx;
  52. margin-bottom: 120rpx; // 为底部按钮留出空间
  53. .character-image {
  54. width: 100%;
  55. height: 800rpx; // 调整角色图片高度
  56. object-fit: contain;
  57. }
  58. }
  59. .bottom-button {
  60. position: fixed;
  61. bottom: 40rpx;
  62. left: 40rpx;
  63. right: 40rpx;
  64. height: 98rpx;
  65. background: #333333;
  66. border-radius: 49rpx;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. color: #ffffff;
  71. font-size: 32rpx;
  72. font-weight: 500;
  73. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  74. transition: all 0.2s ease;
  75. &:active {
  76. opacity: 0.95;
  77. transform: scale(0.98);
  78. }
  79. }
  80. }
  81. }
  82. @keyframes rotate {
  83. from {
  84. transform: rotate(0deg);
  85. }
  86. to {
  87. transform: rotate(-360deg);
  88. }
  89. }
  90. @keyframes moveBall {
  91. 0% {
  92. transform: translateY(0) scale(1);
  93. opacity: 1;
  94. }
  95. 98% {
  96. transform: translateY(180rpx) scale(0.1);
  97. opacity: 0.2;
  98. }
  99. 99% {
  100. transform: translateY(180rpx) scale(0.01);
  101. opacity: 0;
  102. }
  103. 100% {
  104. transform: translateY(0) scale(1);
  105. opacity: 0;
  106. }
  107. }
  108. .form-page {
  109. width: 100%;
  110. min-height: 100vh;
  111. background: url("../../static/me/cz_bg_top.png") no-repeat top center / 100%
  112. auto,
  113. #f2f6f2;
  114. padding: 30rpx;
  115. box-sizing: border-box;
  116. .reserveASeat {
  117. width: 100vh;
  118. height: calc(108rpx + var(--status-bar-height));
  119. }
  120. .PageHeader {
  121. background: url("../../static/me/cz_bg_top.png") no-repeat top center / 100%
  122. auto,
  123. #f2f6f2;
  124. background-position-y: var(--status-bar-height);
  125. }
  126. .form-group {
  127. margin-bottom: 20rpx;
  128. background: #fff;
  129. border-radius: 20rpx;
  130. padding: 20rpx;
  131. padding-bottom: 26rpx;
  132. .label {
  133. display: flex;
  134. align-items: center;
  135. margin-bottom: 16rpx;
  136. font-size: 28rpx;
  137. color: #333;
  138. font-weight: 400;
  139. font-size: 28rpx;
  140. color: #1f1f1f;
  141. font-family: "PingFang SC-Bold";
  142. .required {
  143. color: #ff4d4f;
  144. margin-right: 8rpx;
  145. display: none;
  146. &.error {
  147. animation: shake 0.5s ease-in-out;
  148. }
  149. }
  150. }
  151. .input {
  152. width: 100%;
  153. height: 88rpx;
  154. padding: 0 24rpx;
  155. font-size: 28rpx;
  156. background: #f2f6f2;
  157. border-radius: 16rpx;
  158. &.error {
  159. border: 2rpx solid #ff4d4f;
  160. }
  161. }
  162. .gender-options {
  163. display: flex;
  164. gap: 20rpx;
  165. .gender-option {
  166. width: 152rpx;
  167. height: 64rpx;
  168. border-radius: 16rpx;
  169. border: 2rpx solid #1f1f1f;
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. font-weight: 400;
  174. font-size: 28rpx;
  175. color: #1f1f1f;
  176. font-family: "PingFang SC-Bold";
  177. image {
  178. width: 32rpx;
  179. height: 32rpx;
  180. margin-bottom: -5rpx;
  181. margin-right: 4rpx;
  182. }
  183. .other {
  184. image {
  185. margin-top: -8rpx;
  186. }
  187. }
  188. &.selected {
  189. background: #f7ffea;
  190. border-color: #7ebc00;
  191. }
  192. }
  193. }
  194. .textarea-container {
  195. position: relative;
  196. .textarea {
  197. width: 100%;
  198. height: 240rpx;
  199. background: #f5f5f5;
  200. border-radius: 12rpx;
  201. padding: 24rpx;
  202. font-size: 28rpx;
  203. &.error {
  204. border: 2rpx solid #ff4d4f;
  205. }
  206. }
  207. .word-count {
  208. position: absolute;
  209. right: 24rpx;
  210. bottom: 24rpx;
  211. font-size: 24rpx;
  212. color: #999;
  213. }
  214. }
  215. .tags-scroll {
  216. width: 100%;
  217. white-space: nowrap;
  218. }
  219. .tags-container {
  220. display: inline-flex;
  221. padding: 20rpx 0;
  222. gap: 20rpx;
  223. .tag {
  224. &.selected {
  225. background: #333;
  226. color: #fff;
  227. }
  228. }
  229. }
  230. }
  231. .submit-button {
  232. position: fixed;
  233. bottom: 40rpx;
  234. left: 40rpx;
  235. right: 40rpx;
  236. height: 98rpx;
  237. background: #333333;
  238. border-radius: 49rpx;
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. color: #ffffff;
  243. font-size: 32rpx;
  244. font-weight: 500;
  245. transition: all 0.2s ease;
  246. &:active {
  247. opacity: 0.95;
  248. transform: scale(0.98);
  249. }
  250. }
  251. }
  252. @keyframes shake {
  253. 0%,
  254. 100% {
  255. transform: translateX(0);
  256. }
  257. 25% {
  258. transform: translateX(-5rpx);
  259. }
  260. 75% {
  261. transform: translateX(5rpx);
  262. }
  263. }
  264. .character-info {
  265. width: 100%;
  266. min-height: 100vh;
  267. background-color: #ffffff;
  268. position: relative;
  269. padding-bottom: 120rpx;
  270. .info-container {
  271. padding: 30rpx;
  272. .character-portrait {
  273. display: flex;
  274. flex-direction: column;
  275. align-items: center;
  276. margin-bottom: 40rpx;
  277. .portrait-image {
  278. width: 100%;
  279. height: 600rpx;
  280. object-fit: contain;
  281. }
  282. .character-name {
  283. font-size: 40rpx;
  284. font-weight: 600;
  285. color: #333;
  286. margin-top: 20rpx;
  287. }
  288. }
  289. .info-section {
  290. background: #f8f8f8;
  291. border-radius: 20rpx;
  292. padding: 30rpx;
  293. .section-title {
  294. font-size: 32rpx;
  295. font-weight: 500;
  296. color: #333;
  297. margin-bottom: 20rpx;
  298. position: relative;
  299. padding-left: 20rpx;
  300. &::before {
  301. content: "";
  302. position: absolute;
  303. left: 0;
  304. top: 50%;
  305. transform: translateY(-50%);
  306. width: 6rpx;
  307. height: 28rpx;
  308. background: #9c27b0;
  309. border-radius: 3rpx;
  310. }
  311. }
  312. .description-box {
  313. background: #ffffff;
  314. border-radius: 16rpx;
  315. padding: 24rpx;
  316. margin-bottom: 30rpx;
  317. .description-text {
  318. font-size: 28rpx;
  319. color: #666;
  320. line-height: 1.6;
  321. }
  322. }
  323. .tags-box {
  324. display: flex;
  325. flex-wrap: wrap;
  326. gap: 16rpx;
  327. .tag-item {
  328. padding: 12rpx 24rpx;
  329. background: #f0f0f0;
  330. border-radius: 28rpx;
  331. font-size: 24rpx;
  332. color: #666;
  333. }
  334. }
  335. }
  336. }
  337. .join-button {
  338. position: fixed;
  339. bottom: 40rpx;
  340. left: 40rpx;
  341. right: 40rpx;
  342. height: 98rpx;
  343. background: linear-gradient(to right, #9c27b0, #7b1fa2);
  344. border-radius: 49rpx;
  345. display: flex;
  346. align-items: center;
  347. justify-content: center;
  348. color: #ffffff;
  349. font-size: 32rpx;
  350. font-weight: 500;
  351. box-shadow: 0 4rpx 12rpx rgba(156, 39, 176, 0.3);
  352. transition: all 0.2s ease;
  353. &:active {
  354. transform: scale(0.98);
  355. opacity: 0.95;
  356. }
  357. }
  358. }