profile.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  1. /* 我的界面样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. html, body {
  8. width: 100%;
  9. height: 100%;
  10. margin: 0;
  11. padding: 0;
  12. overflow: hidden;
  13. }
  14. .profile-container {
  15. width: 100%;
  16. height: 100vh;
  17. background: #f5f5f5;
  18. overflow: hidden;
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. .profile-header {
  23. display: flex;
  24. align-items: center;
  25. padding: 16px 20px;
  26. background: white;
  27. border-bottom: 1px solid #e5e5e5;
  28. position: sticky;
  29. top: 0;
  30. z-index: 100;
  31. }
  32. .back-btn {
  33. display: flex;
  34. align-items: center;
  35. gap: 8px;
  36. background: none;
  37. border: none;
  38. color: #667eea;
  39. font-size: 14px;
  40. font-weight: 500;
  41. cursor: pointer;
  42. padding: 8px 12px;
  43. border-radius: 8px;
  44. transition: background 0.2s;
  45. }
  46. .back-btn:hover {
  47. background: rgba(102, 126, 234, 0.1);
  48. }
  49. .profile-content {
  50. padding: 16px 20px;
  51. width: 100%;
  52. max-width: 1600px;
  53. margin: 0 auto;
  54. overflow: hidden;
  55. height: calc(100vh - 80px);
  56. display: flex;
  57. flex-direction: column;
  58. }
  59. .page-title {
  60. margin: 0 0 20px 0;
  61. font-size: 28px;
  62. font-weight: 700;
  63. color: #1f2937;
  64. padding-bottom: 12px;
  65. border-bottom: 3px solid #667eea;
  66. display: flex;
  67. align-items: center;
  68. gap: 10px;
  69. }
  70. .page-title::before {
  71. content: '';
  72. width: 4px;
  73. height: 28px;
  74. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  75. border-radius: 2px;
  76. }
  77. .profile-layout {
  78. display: grid;
  79. grid-template-columns: 320px 1fr;
  80. gap: 16px;
  81. align-items: start;
  82. height: calc(100% - 60px);
  83. overflow: hidden;
  84. }
  85. .profile-left {
  86. display: flex;
  87. flex-direction: column;
  88. gap: 12px;
  89. height: 100%;
  90. }
  91. .profile-right {
  92. display: flex;
  93. flex-direction: column;
  94. gap: 16px;
  95. height: 100%;
  96. overflow-y: auto;
  97. }
  98. .history-section {
  99. display: flex;
  100. flex-direction: column;
  101. flex: 1;
  102. min-height: 0;
  103. overflow: hidden;
  104. }
  105. .history-section .ai-history-container {
  106. flex: 1;
  107. overflow: hidden;
  108. min-height: 0;
  109. }
  110. .purchase-section {
  111. display: flex;
  112. flex-direction: column;
  113. flex: 1;
  114. min-height: 0;
  115. overflow: hidden;
  116. }
  117. .purchase-container {
  118. flex: 1;
  119. max-height: 100%;
  120. overflow-y: auto;
  121. overflow-x: hidden;
  122. min-height: 0;
  123. }
  124. .profile-section {
  125. background: white;
  126. border-radius: 12px;
  127. padding: 16px;
  128. margin-bottom: 0;
  129. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  130. flex-shrink: 0;
  131. }
  132. .section-title {
  133. margin: 0 0 16px 0;
  134. font-size: 16px;
  135. font-weight: 600;
  136. color: #1f2937;
  137. padding-bottom: 10px;
  138. border-bottom: 2px solid #f0f0f0;
  139. }
  140. .profile-info {
  141. display: flex;
  142. flex-direction: column;
  143. gap: 16px;
  144. align-items: center;
  145. }
  146. .avatar-section {
  147. display: flex;
  148. flex-direction: column;
  149. align-items: center;
  150. gap: 10px;
  151. }
  152. .avatar-preview {
  153. width: 100px;
  154. height: 100px;
  155. border-radius: 50%;
  156. overflow: hidden;
  157. border: 3px solid #e5e5e5;
  158. background: #f9fafb;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  163. }
  164. .avatar-preview img {
  165. width: 100%;
  166. height: 100%;
  167. object-fit: cover;
  168. }
  169. .avatar-upload-btn {
  170. padding: 8px 16px;
  171. background: #667eea;
  172. color: white;
  173. border: none;
  174. border-radius: 8px;
  175. font-size: 14px;
  176. font-weight: 500;
  177. cursor: pointer;
  178. transition: all 0.2s;
  179. }
  180. .avatar-upload-btn:hover {
  181. background: #5568d3;
  182. transform: translateY(-1px);
  183. }
  184. .info-form {
  185. width: 100%;
  186. }
  187. .form-item {
  188. margin-bottom: 14px;
  189. }
  190. .form-label {
  191. display: block;
  192. font-size: 13px;
  193. font-weight: 500;
  194. color: #374151;
  195. margin-bottom: 6px;
  196. }
  197. .form-input {
  198. width: 100%;
  199. padding: 8px 12px;
  200. border: 1px solid #e5e5e5;
  201. border-radius: 8px;
  202. font-size: 14px;
  203. color: #1f2937;
  204. transition: border-color 0.2s;
  205. box-sizing: border-box;
  206. }
  207. .form-input:focus {
  208. outline: none;
  209. border-color: #667eea;
  210. }
  211. .form-input[readonly] {
  212. background: #f9fafb;
  213. color: #6b7280;
  214. cursor: not-allowed;
  215. }
  216. .save-btn {
  217. padding: 10px 24px;
  218. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  219. color: white;
  220. border: none;
  221. border-radius: 8px;
  222. font-size: 14px;
  223. font-weight: 600;
  224. cursor: pointer;
  225. transition: all 0.2s;
  226. margin-top: 8px;
  227. }
  228. .save-btn:hover {
  229. transform: translateY(-1px);
  230. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  231. }
  232. .points-section {
  233. display: flex;
  234. align-items: center;
  235. justify-content: space-between;
  236. flex-wrap: wrap;
  237. gap: 14px;
  238. }
  239. .points-display {
  240. display: flex;
  241. align-items: baseline;
  242. gap: 8px;
  243. }
  244. .points-label {
  245. font-size: 14px;
  246. color: #6b7280;
  247. }
  248. .points-value {
  249. font-size: 28px;
  250. font-weight: 700;
  251. color: #667eea;
  252. }
  253. .points-unit {
  254. font-size: 14px;
  255. color: #6b7280;
  256. }
  257. .recharge-btn {
  258. padding: 8px 20px;
  259. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  260. color: white;
  261. border: none;
  262. border-radius: 8px;
  263. font-size: 13px;
  264. font-weight: 600;
  265. cursor: pointer;
  266. transition: all 0.2s;
  267. }
  268. .recharge-btn:hover {
  269. transform: translateY(-1px);
  270. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  271. }
  272. .ai-history-container {
  273. min-height: 200px;
  274. max-height: 100%;
  275. overflow-y: auto;
  276. overflow-x: hidden;
  277. }
  278. .loading-state,
  279. .empty-state {
  280. text-align: center;
  281. padding: 40px;
  282. color: #9ca3af;
  283. font-size: 14px;
  284. }
  285. .history-grid {
  286. display: grid;
  287. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  288. gap: 12px;
  289. padding: 4px;
  290. overflow: visible;
  291. }
  292. .history-item {
  293. position: relative;
  294. border-radius: 12px;
  295. overflow: hidden;
  296. background: #f9fafb;
  297. aspect-ratio: 1;
  298. border: 2px solid #e5e5e5;
  299. transition: all 0.3s ease;
  300. }
  301. .history-item:hover {
  302. border-color: #667eea;
  303. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  304. transform: translateY(-2px);
  305. }
  306. .history-item.rendering {
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
  311. }
  312. .history-item.rendering .rendering-content {
  313. display: flex;
  314. flex-direction: column;
  315. align-items: center;
  316. gap: 8px;
  317. }
  318. /* 模糊预览图 */
  319. .history-item-preview {
  320. position: absolute;
  321. top: 0;
  322. left: 0;
  323. width: 100%;
  324. height: 100%;
  325. object-fit: cover;
  326. filter: blur(8px) brightness(0.7);
  327. transform: scale(1.1); /* 防止模糊边缘漏出 */
  328. }
  329. .history-item-preview.failed-preview {
  330. filter: blur(8px) brightness(0.5) grayscale(0.5);
  331. }
  332. /* 加载中蒙层 */
  333. .history-item-loading-overlay {
  334. position: absolute;
  335. top: 0;
  336. left: 0;
  337. right: 0;
  338. bottom: 0;
  339. display: flex;
  340. flex-direction: column;
  341. align-items: center;
  342. justify-content: center;
  343. gap: 12px;
  344. z-index: 2;
  345. }
  346. .loading-spinner-container {
  347. width: 48px;
  348. height: 48px;
  349. position: relative;
  350. }
  351. .loading-spinner {
  352. width: 100%;
  353. height: 100%;
  354. border: 3px solid rgba(255, 255, 255, 0.3);
  355. border-top-color: #fff;
  356. border-radius: 50%;
  357. animation: spin 1s linear infinite;
  358. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  359. }
  360. .loading-status-text {
  361. font-size: 13px;
  362. font-weight: 600;
  363. color: #fff;
  364. text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  365. padding: 4px 12px;
  366. background: rgba(0, 0, 0, 0.3);
  367. border-radius: 12px;
  368. backdrop-filter: blur(4px);
  369. }
  370. /* rendering 和 queued 状态共用基础样式 */
  371. .history-item.rendering,
  372. .history-item.queued {
  373. overflow: hidden;
  374. background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  375. }
  376. .history-item.failed {
  377. overflow: hidden;
  378. background: linear-gradient(135deg, #2d1b1b 0%, #1a1a1a 100%);
  379. }
  380. .history-item.failed .failed-content {
  381. position: absolute;
  382. top: 0;
  383. left: 0;
  384. right: 0;
  385. bottom: 0;
  386. display: flex;
  387. flex-direction: column;
  388. align-items: center;
  389. justify-content: center;
  390. gap: 8px;
  391. z-index: 2;
  392. background: rgba(0, 0, 0, 0.4);
  393. }
  394. .history-item.failed .failed-icon {
  395. font-size: 32px;
  396. }
  397. .history-item.failed .failed-text {
  398. font-size: 14px;
  399. font-weight: 600;
  400. color: #fca5a5;
  401. text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  402. }
  403. /* 重新生图按钮 */
  404. .history-item.failed .retry-btn {
  405. display: flex;
  406. align-items: center;
  407. gap: 6px;
  408. margin-top: 8px;
  409. padding: 8px 16px;
  410. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  411. color: white;
  412. border: none;
  413. border-radius: 20px;
  414. font-size: 12px;
  415. font-weight: 600;
  416. cursor: pointer;
  417. transition: all 0.3s ease;
  418. box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  419. }
  420. .history-item.failed .retry-btn:hover {
  421. transform: translateY(-2px);
  422. box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  423. }
  424. .history-item.failed .retry-btn:active {
  425. transform: translateY(0);
  426. }
  427. .history-item.failed .retry-btn svg {
  428. flex-shrink: 0;
  429. }
  430. /* 已重试标记 */
  431. .history-item.failed .retried-badge {
  432. margin-top: 8px;
  433. padding: 4px 12px;
  434. background: rgba(100, 100, 100, 0.6);
  435. color: #999;
  436. border-radius: 12px;
  437. font-size: 11px;
  438. font-weight: 500;
  439. }
  440. .history-item-time {
  441. position: absolute;
  442. bottom: 4px;
  443. left: 4px;
  444. right: 4px;
  445. font-size: 10px;
  446. color: #fff;
  447. background: rgba(0, 0, 0, 0.6);
  448. padding: 2px 6px;
  449. border-radius: 4px;
  450. text-align: center;
  451. font-weight: 500;
  452. z-index: 3;
  453. backdrop-filter: blur(4px);
  454. }
  455. @keyframes spin {
  456. to { transform: rotate(360deg); }
  457. }
  458. .history-item-image {
  459. width: 100%;
  460. height: 100%;
  461. object-fit: cover;
  462. }
  463. .history-item-overlay {
  464. position: absolute;
  465. top: 0;
  466. left: 0;
  467. right: 0;
  468. bottom: 0;
  469. background: rgba(0, 0, 0, 0.5);
  470. display: flex;
  471. align-items: center;
  472. justify-content: center;
  473. opacity: 0;
  474. transition: opacity 0.3s;
  475. }
  476. .history-item:hover .history-item-overlay {
  477. opacity: 1;
  478. }
  479. /* 操作按钮组 */
  480. .history-item-actions {
  481. display: flex;
  482. gap: 12px;
  483. }
  484. .history-action-btn {
  485. display: flex;
  486. flex-direction: column;
  487. align-items: center;
  488. gap: 6px;
  489. padding: 12px 20px;
  490. background: rgba(255, 255, 255, 0.95);
  491. color: #667eea;
  492. border: none;
  493. border-radius: 12px;
  494. cursor: pointer;
  495. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  496. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  497. transform: translateY(10px);
  498. opacity: 0;
  499. }
  500. .history-item:hover .history-action-btn {
  501. transform: translateY(0);
  502. opacity: 1;
  503. }
  504. .history-item:hover .history-action-btn:nth-child(2) {
  505. transition-delay: 0.05s;
  506. }
  507. .history-action-btn span {
  508. font-size: 12px;
  509. font-weight: 600;
  510. }
  511. .history-action-btn:hover {
  512. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  513. color: white;
  514. transform: translateY(-2px) scale(1.05) !important;
  515. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  516. }
  517. .history-action-btn:active {
  518. transform: translateY(0) scale(0.98) !important;
  519. }
  520. /* 图片预览弹窗 */
  521. .image-preview-modal {
  522. position: fixed;
  523. top: 0;
  524. left: 0;
  525. right: 0;
  526. bottom: 0;
  527. z-index: 100000;
  528. display: flex;
  529. align-items: center;
  530. justify-content: center;
  531. opacity: 0;
  532. transition: opacity 0.3s ease;
  533. }
  534. .image-preview-modal.show {
  535. opacity: 1;
  536. }
  537. .image-preview-backdrop {
  538. position: absolute;
  539. top: 0;
  540. left: 0;
  541. right: 0;
  542. bottom: 0;
  543. background: rgba(0, 0, 0, 0.9);
  544. backdrop-filter: blur(8px);
  545. }
  546. .image-preview-content {
  547. position: relative;
  548. max-width: 90vw;
  549. max-height: 90vh;
  550. transform: scale(0.9);
  551. transition: transform 0.3s ease;
  552. }
  553. .image-preview-modal.show .image-preview-content {
  554. transform: scale(1);
  555. }
  556. .image-preview-content img {
  557. max-width: 100%;
  558. max-height: 85vh;
  559. border-radius: 12px;
  560. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  561. }
  562. .image-preview-close {
  563. position: absolute;
  564. top: -50px;
  565. right: 0;
  566. width: 40px;
  567. height: 40px;
  568. border: none;
  569. background: rgba(255, 255, 255, 0.15);
  570. color: white;
  571. font-size: 28px;
  572. border-radius: 50%;
  573. cursor: pointer;
  574. transition: all 0.2s;
  575. display: flex;
  576. align-items: center;
  577. justify-content: center;
  578. line-height: 1;
  579. }
  580. .image-preview-close:hover {
  581. background: rgba(255, 255, 255, 0.25);
  582. transform: scale(1.1);
  583. }
  584. .image-preview-download-btn {
  585. position: absolute;
  586. bottom: -60px;
  587. right: 50%;
  588. transform: translateX(50%);
  589. width: 50px;
  590. height: 50px;
  591. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  592. color: white;
  593. border: none;
  594. border-radius: 50%;
  595. cursor: pointer;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. transition: all 0.2s;
  600. box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  601. }
  602. .image-preview-download-btn:hover {
  603. transform: translateX(50%) scale(1.1);
  604. box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
  605. }
  606. .rendering-text {
  607. position: absolute;
  608. bottom: 12px;
  609. left: 50%;
  610. transform: translateX(-50%);
  611. background: rgba(0, 0, 0, 0.7);
  612. color: white;
  613. padding: 6px 12px;
  614. border-radius: 6px;
  615. font-size: 12px;
  616. font-weight: 500;
  617. }
  618. /* 退出登录按钮 */
  619. .logout-btn {
  620. width: 100%;
  621. padding: 10px 20px;
  622. border: none;
  623. border-radius: 8px;
  624. font-size: 13px;
  625. font-weight: 600;
  626. cursor: pointer;
  627. transition: all 0.2s;
  628. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  629. color: white;
  630. }
  631. .logout-btn:hover {
  632. transform: translateY(-1px);
  633. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  634. }
  635. /* 响应式设计 */
  636. @media (max-width: 1024px) {
  637. .profile-layout {
  638. grid-template-columns: 1fr;
  639. }
  640. .history-section {
  641. height: auto;
  642. min-height: 400px;
  643. }
  644. }
  645. /* 购买记录样式 */
  646. .purchase-grid {
  647. display: grid;
  648. grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  649. gap: 20px;
  650. padding: 12px;
  651. overflow-y: auto;
  652. max-height: 100%;
  653. }
  654. .purchase-item {
  655. position: relative;
  656. border-radius: 20px;
  657. overflow: hidden;
  658. background: white;
  659. aspect-ratio: 0.82;
  660. border: 1px solid rgba(102, 126, 234, 0.08);
  661. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  662. display: flex;
  663. flex-direction: column;
  664. box-shadow:
  665. 0 4px 20px rgba(102, 126, 234, 0.08),
  666. 0 2px 8px rgba(0, 0, 0, 0.04);
  667. }
  668. .purchase-item::before {
  669. content: '';
  670. position: absolute;
  671. top: 0;
  672. left: 0;
  673. right: 0;
  674. height: 4px;
  675. background: linear-gradient(90deg, #667eea 0%, #764ba2 40%, #f093fb 70%, #667eea 100%);
  676. background-size: 200% 100%;
  677. opacity: 0;
  678. transition: opacity 0.3s ease;
  679. }
  680. .purchase-item::after {
  681. content: '';
  682. position: absolute;
  683. top: 8px;
  684. right: 8px;
  685. width: 28px;
  686. height: 28px;
  687. background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  688. border-radius: 50%;
  689. opacity: 0;
  690. transition: all 0.3s ease;
  691. z-index: 1;
  692. }
  693. .purchase-item:hover {
  694. transform: translateY(-8px);
  695. border-color: rgba(102, 126, 234, 0.2);
  696. box-shadow:
  697. 0 24px 48px rgba(102, 126, 234, 0.18),
  698. 0 12px 24px rgba(0, 0, 0, 0.06);
  699. }
  700. .purchase-item:hover::before {
  701. opacity: 1;
  702. animation: shimmer 2s ease-in-out infinite;
  703. }
  704. .purchase-item:hover::after {
  705. opacity: 1;
  706. transform: scale(1.2);
  707. }
  708. @keyframes shimmer {
  709. 0% { background-position: 200% 0; }
  710. 100% { background-position: -200% 0; }
  711. }
  712. .purchase-item.deleted {
  713. opacity: 0.5;
  714. filter: grayscale(0.5);
  715. }
  716. .purchase-item-image {
  717. width: 100%;
  718. height: 62%;
  719. object-fit: contain;
  720. background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 50%, #e8ecf2 100%);
  721. padding: 16px;
  722. transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  723. position: relative;
  724. }
  725. .purchase-item:hover .purchase-item-image {
  726. transform: scale(1.08);
  727. filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  728. }
  729. .purchase-item-placeholder {
  730. width: 100%;
  731. height: 62%;
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
  736. color: #9ca3af;
  737. font-size: 32px;
  738. }
  739. .purchase-item-info {
  740. padding: 14px 16px;
  741. flex: 1;
  742. display: flex;
  743. flex-direction: column;
  744. justify-content: center;
  745. background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  746. border-top: 1px solid rgba(102, 126, 234, 0.06);
  747. position: relative;
  748. }
  749. .purchase-item-overlay {
  750. position: absolute;
  751. top: 0;
  752. left: 0;
  753. right: 0;
  754. bottom: 0;
  755. background: linear-gradient(180deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.95) 100%);
  756. display: flex;
  757. align-items: center;
  758. justify-content: center;
  759. opacity: 0;
  760. transition: all 0.35s ease;
  761. z-index: 10;
  762. backdrop-filter: blur(6px);
  763. }
  764. .purchase-item:hover .purchase-item-overlay {
  765. opacity: 1;
  766. }
  767. .purchase-item-add-btn {
  768. padding: 12px 24px;
  769. background: white;
  770. color: #667eea;
  771. border: none;
  772. border-radius: 30px;
  773. font-size: 13px;
  774. font-weight: 700;
  775. cursor: pointer;
  776. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  777. display: flex;
  778. align-items: center;
  779. gap: 8px;
  780. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  781. transform: translateY(10px);
  782. opacity: 0;
  783. }
  784. .purchase-item:hover .purchase-item-add-btn {
  785. transform: translateY(0);
  786. opacity: 1;
  787. }
  788. .purchase-item-add-btn:hover {
  789. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  790. color: white;
  791. transform: scale(1.08) !important;
  792. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  793. }
  794. .purchase-item-add-btn:active {
  795. transform: scale(1) !important;
  796. }
  797. .purchase-item-add-btn:disabled {
  798. opacity: 0.6;
  799. cursor: not-allowed;
  800. transform: none;
  801. }
  802. .purchase-item-name {
  803. font-size: 14px;
  804. font-weight: 700;
  805. color: #1f2937;
  806. margin-bottom: 6px;
  807. overflow: hidden;
  808. text-overflow: ellipsis;
  809. white-space: nowrap;
  810. letter-spacing: -0.2px;
  811. line-height: 1.3;
  812. }
  813. .purchase-item-category {
  814. font-size: 11px;
  815. color: #6b7280;
  816. margin-bottom: 8px;
  817. display: inline-flex;
  818. align-items: center;
  819. gap: 6px;
  820. background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  821. padding: 3px 10px;
  822. border-radius: 12px;
  823. width: fit-content;
  824. }
  825. .purchase-item-category::before {
  826. content: '';
  827. display: inline-block;
  828. width: 5px;
  829. height: 5px;
  830. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  831. border-radius: 50%;
  832. flex-shrink: 0;
  833. }
  834. .purchase-item-price {
  835. font-size: 13px;
  836. font-weight: 800;
  837. color: transparent;
  838. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  839. -webkit-background-clip: text;
  840. background-clip: text;
  841. display: inline-flex;
  842. align-items: center;
  843. gap: 3px;
  844. letter-spacing: -0.3px;
  845. }
  846. .purchase-item-price::before {
  847. content: '💎';
  848. font-size: 11px;
  849. }
  850. .purchase-item-deleted-badge {
  851. position: absolute;
  852. top: 14px;
  853. right: 14px;
  854. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  855. color: white;
  856. padding: 6px 12px;
  857. border-radius: 20px;
  858. font-size: 10px;
  859. font-weight: 700;
  860. letter-spacing: 0.5px;
  861. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  862. z-index: 5;
  863. animation: pulse-badge 2s ease-in-out infinite;
  864. }
  865. @keyframes pulse-badge {
  866. 0%, 100% { transform: scale(1); }
  867. 50% { transform: scale(1.05); }
  868. }
  869. .rendering-text {
  870. font-size: 14px;
  871. font-weight: 600;
  872. color: #667eea;
  873. }
  874. @media (max-width: 768px) {
  875. .profile-content {
  876. padding: 16px;
  877. }
  878. .profile-layout {
  879. gap: 16px;
  880. }
  881. .profile-left {
  882. gap: 16px;
  883. }
  884. .profile-section {
  885. padding: 16px;
  886. }
  887. .avatar-preview {
  888. width: 100px;
  889. height: 100px;
  890. }
  891. }