profile.css 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  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-y: auto;
  108. overflow-x: hidden;
  109. min-height: 0;
  110. }
  111. .purchase-section {
  112. display: flex;
  113. flex-direction: column;
  114. flex: 1;
  115. min-height: 0;
  116. overflow: hidden;
  117. }
  118. .purchase-container {
  119. flex: 1;
  120. max-height: 100%;
  121. overflow-y: auto;
  122. overflow-x: hidden;
  123. min-height: 0;
  124. }
  125. .profile-section {
  126. background: white;
  127. border-radius: 12px;
  128. padding: 16px;
  129. margin-bottom: 0;
  130. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  131. flex-shrink: 0;
  132. }
  133. .section-title {
  134. margin: 0 0 16px 0;
  135. font-size: 16px;
  136. font-weight: 600;
  137. color: #1f2937;
  138. padding-bottom: 10px;
  139. border-bottom: 2px solid #f0f0f0;
  140. }
  141. .profile-info {
  142. display: flex;
  143. flex-direction: column;
  144. gap: 16px;
  145. align-items: center;
  146. }
  147. .avatar-section {
  148. display: flex;
  149. flex-direction: column;
  150. align-items: center;
  151. gap: 10px;
  152. }
  153. .avatar-preview {
  154. width: 100px;
  155. height: 100px;
  156. border-radius: 50%;
  157. overflow: hidden;
  158. border: 3px solid #e5e5e5;
  159. background: #f9fafb;
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  164. }
  165. .avatar-preview img {
  166. width: 100%;
  167. height: 100%;
  168. object-fit: cover;
  169. }
  170. .avatar-upload-btn {
  171. padding: 8px 16px;
  172. background: #667eea;
  173. color: white;
  174. border: none;
  175. border-radius: 8px;
  176. font-size: 14px;
  177. font-weight: 500;
  178. cursor: pointer;
  179. transition: all 0.2s;
  180. }
  181. .avatar-upload-btn:hover {
  182. background: #5568d3;
  183. transform: translateY(-1px);
  184. }
  185. .info-form {
  186. width: 100%;
  187. }
  188. .form-item {
  189. margin-bottom: 14px;
  190. }
  191. .form-label {
  192. display: block;
  193. font-size: 13px;
  194. font-weight: 500;
  195. color: #374151;
  196. margin-bottom: 6px;
  197. }
  198. .form-input {
  199. width: 100%;
  200. padding: 8px 12px;
  201. border: 1px solid #e5e5e5;
  202. border-radius: 8px;
  203. font-size: 14px;
  204. color: #1f2937;
  205. transition: border-color 0.2s;
  206. box-sizing: border-box;
  207. }
  208. .form-input:focus {
  209. outline: none;
  210. border-color: #667eea;
  211. }
  212. .form-input[readonly] {
  213. background: #f9fafb;
  214. color: #6b7280;
  215. cursor: not-allowed;
  216. }
  217. .save-btn {
  218. padding: 10px 24px;
  219. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  220. color: white;
  221. border: none;
  222. border-radius: 8px;
  223. font-size: 14px;
  224. font-weight: 600;
  225. cursor: pointer;
  226. transition: all 0.2s;
  227. margin-top: 8px;
  228. }
  229. .save-btn:hover {
  230. transform: translateY(-1px);
  231. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  232. }
  233. .points-section {
  234. display: flex;
  235. align-items: center;
  236. justify-content: space-between;
  237. padding: 20px 24px;
  238. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  239. border-radius: 16px;
  240. position: relative;
  241. overflow: hidden;
  242. }
  243. .points-section::before {
  244. content: '';
  245. position: absolute;
  246. top: -50%;
  247. right: -20%;
  248. width: 200px;
  249. height: 200px;
  250. background: rgba(255, 255, 255, 0.1);
  251. border-radius: 50%;
  252. }
  253. .points-section::after {
  254. content: '💰';
  255. position: absolute;
  256. right: 100px;
  257. top: 50%;
  258. transform: translateY(-50%);
  259. font-size: 48px;
  260. opacity: 0.15;
  261. }
  262. .points-card {
  263. padding: 0 !important;
  264. overflow: hidden;
  265. }
  266. .points-display {
  267. display: flex;
  268. flex-direction: column;
  269. gap: 6px;
  270. }
  271. .points-value-row {
  272. display: flex;
  273. flex-direction: column;
  274. gap: 2px;
  275. }
  276. .points-section .recharge-btn {
  277. flex-shrink: 0;
  278. z-index: 1;
  279. }
  280. .points-label {
  281. font-size: 13px;
  282. color: rgba(255, 255, 255, 0.8);
  283. font-weight: 500;
  284. }
  285. .points-value {
  286. font-size: 36px;
  287. font-weight: 800;
  288. color: white;
  289. text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  290. line-height: 1;
  291. }
  292. .points-unit {
  293. font-size: 14px;
  294. color: rgba(255, 255, 255, 0.75);
  295. font-weight: 500;
  296. }
  297. .recharge-btn {
  298. padding: 12px 28px;
  299. background: white;
  300. color: #667eea;
  301. border: none;
  302. border-radius: 25px;
  303. font-size: 14px;
  304. font-weight: 700;
  305. cursor: pointer;
  306. transition: all 0.3s ease;
  307. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  308. }
  309. .recharge-btn:hover {
  310. transform: translateY(-2px) scale(1.02);
  311. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  312. }
  313. .recharge-btn:active {
  314. transform: translateY(0) scale(0.98);
  315. }
  316. .ai-history-container {
  317. min-height: 200px;
  318. max-height: 100%;
  319. overflow-y: auto;
  320. overflow-x: hidden;
  321. }
  322. .loading-state,
  323. .empty-state {
  324. text-align: center;
  325. padding: 40px;
  326. color: #9ca3af;
  327. font-size: 14px;
  328. }
  329. .history-grid {
  330. display: grid;
  331. grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  332. gap: 16px;
  333. padding: 8px;
  334. overflow: visible;
  335. }
  336. .history-item {
  337. position: relative;
  338. border-radius: 16px;
  339. overflow: hidden;
  340. background: white;
  341. aspect-ratio: 1;
  342. border: 1px solid #e5e7eb;
  343. transition: all 0.25s ease;
  344. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  345. }
  346. .history-item:hover {
  347. border-color: #667eea;
  348. box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
  349. transform: translateY(-4px);
  350. }
  351. .history-item.completed {
  352. cursor: zoom-in;
  353. }
  354. .history-item.rendering {
  355. display: flex;
  356. align-items: center;
  357. justify-content: center;
  358. }
  359. .history-item.rendering .rendering-content {
  360. display: flex;
  361. flex-direction: column;
  362. align-items: center;
  363. gap: 8px;
  364. }
  365. /* 模糊预览图 */
  366. .history-item-preview {
  367. position: absolute;
  368. top: 0;
  369. left: 0;
  370. width: 100%;
  371. height: 100%;
  372. object-fit: cover;
  373. filter: blur(8px) brightness(0.7);
  374. transform: scale(1.1); /* 防止模糊边缘漏出 */
  375. }
  376. .history-item-preview.failed-preview {
  377. filter: blur(8px) brightness(0.5) grayscale(0.5);
  378. }
  379. /* 加载中蒙层 */
  380. .history-item-loading-overlay {
  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: 12px;
  391. z-index: 2;
  392. }
  393. .loading-spinner-container {
  394. width: 48px;
  395. height: 48px;
  396. position: relative;
  397. }
  398. .loading-spinner {
  399. width: 100%;
  400. height: 100%;
  401. border: 3px solid rgba(255, 255, 255, 0.3);
  402. border-top-color: #fff;
  403. border-radius: 50%;
  404. animation: spin 1s linear infinite;
  405. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  406. }
  407. .loading-status-text {
  408. font-size: 13px;
  409. font-weight: 600;
  410. color: #fff;
  411. }
  412. .loading-remaining-text {
  413. font-size: 11px;
  414. font-weight: 500;
  415. color: rgba(255, 255, 255, 0.7);
  416. padding: 4px 10px;
  417. background: rgba(0, 0, 0, 0.3);
  418. border-radius: 10px;
  419. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  420. backdrop-filter: blur(4px);
  421. }
  422. /* rendering 和 queued 状态共用基础样式 */
  423. .history-item.rendering,
  424. .history-item.queued {
  425. overflow: hidden;
  426. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  427. }
  428. .history-item.failed {
  429. overflow: hidden;
  430. background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  431. }
  432. .history-item.failed .failed-content {
  433. position: absolute;
  434. top: 0;
  435. left: 0;
  436. right: 0;
  437. bottom: 0;
  438. display: flex;
  439. flex-direction: column;
  440. align-items: center;
  441. justify-content: center;
  442. gap: 8px;
  443. z-index: 5;
  444. background: rgba(0, 0, 0, 0.4);
  445. }
  446. .history-item.failed .failed-icon {
  447. font-size: 32px;
  448. }
  449. .history-item.failed .failed-text {
  450. font-size: 14px;
  451. font-weight: 600;
  452. color: #fca5a5;
  453. text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  454. }
  455. /* 删除按钮 */
  456. .history-item.failed .delete-btn {
  457. display: flex;
  458. align-items: center;
  459. gap: 6px;
  460. margin-top: 8px;
  461. padding: 8px 16px;
  462. background: rgba(239, 68, 68, 0.8);
  463. color: white;
  464. border: none;
  465. border-radius: 20px;
  466. font-size: 12px;
  467. font-weight: 600;
  468. cursor: pointer;
  469. transition: all 0.3s ease;
  470. }
  471. .history-item.failed .delete-btn:hover {
  472. background: rgba(239, 68, 68, 1);
  473. transform: translateY(-2px);
  474. }
  475. .history-item.failed .delete-btn:active {
  476. transform: translateY(0);
  477. }
  478. .history-item.failed .delete-btn svg {
  479. flex-shrink: 0;
  480. }
  481. .history-item-time {
  482. position: absolute;
  483. bottom: 0;
  484. left: 0;
  485. right: 0;
  486. font-size: 11px;
  487. color: #fff;
  488. background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  489. padding: 20px 10px 8px;
  490. text-align: center;
  491. font-weight: 500;
  492. z-index: 3;
  493. }
  494. @keyframes spin {
  495. to { transform: rotate(360deg); }
  496. }
  497. .history-item-image {
  498. width: 100%;
  499. height: 100%;
  500. object-fit: contain;
  501. background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  502. padding: 12px;
  503. cursor: zoom-in;
  504. transition: transform 0.25s ease;
  505. }
  506. .history-item:hover .history-item-image {
  507. transform: scale(1.03);
  508. }
  509. /* 图片预览弹窗 */
  510. .image-preview-modal {
  511. position: fixed;
  512. top: 0;
  513. left: 0;
  514. right: 0;
  515. bottom: 0;
  516. z-index: 100000;
  517. display: flex;
  518. align-items: center;
  519. justify-content: center;
  520. opacity: 0;
  521. transition: opacity 0.3s ease;
  522. }
  523. .image-preview-modal.show {
  524. opacity: 1;
  525. }
  526. .image-preview-backdrop {
  527. position: absolute;
  528. top: 0;
  529. left: 0;
  530. right: 0;
  531. bottom: 0;
  532. background: rgba(0, 0, 0, 0.9);
  533. backdrop-filter: blur(8px);
  534. }
  535. .image-preview-content {
  536. position: relative;
  537. max-width: 90vw;
  538. max-height: 90vh;
  539. transform: scale(0.9);
  540. transition: transform 0.3s ease;
  541. }
  542. .image-preview-modal.show .image-preview-content {
  543. transform: scale(1);
  544. }
  545. .image-preview-content img {
  546. max-width: 100%;
  547. max-height: 85vh;
  548. border-radius: 12px;
  549. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  550. }
  551. .image-preview-close {
  552. position: absolute;
  553. top: -50px;
  554. right: 0;
  555. width: 40px;
  556. height: 40px;
  557. border: none;
  558. background: rgba(255, 255, 255, 0.15);
  559. color: white;
  560. font-size: 28px;
  561. border-radius: 50%;
  562. cursor: pointer;
  563. transition: all 0.2s;
  564. display: flex;
  565. align-items: center;
  566. justify-content: center;
  567. line-height: 1;
  568. }
  569. .image-preview-close:hover {
  570. background: rgba(255, 255, 255, 0.25);
  571. transform: scale(1.1);
  572. }
  573. .image-preview-download-btn {
  574. position: absolute;
  575. bottom: -60px;
  576. right: 50%;
  577. transform: translateX(50%);
  578. width: 50px;
  579. height: 50px;
  580. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  581. color: white;
  582. border: none;
  583. border-radius: 50%;
  584. cursor: pointer;
  585. display: flex;
  586. align-items: center;
  587. justify-content: center;
  588. transition: all 0.2s;
  589. box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  590. }
  591. .image-preview-download-btn:hover {
  592. transform: translateX(50%) scale(1.1);
  593. box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
  594. }
  595. .rendering-text {
  596. position: absolute;
  597. bottom: 12px;
  598. left: 50%;
  599. transform: translateX(-50%);
  600. background: rgba(0, 0, 0, 0.7);
  601. color: white;
  602. padding: 6px 12px;
  603. border-radius: 6px;
  604. font-size: 12px;
  605. font-weight: 500;
  606. }
  607. /* 退出登录按钮 */
  608. .logout-btn {
  609. width: 100%;
  610. padding: 10px 20px;
  611. border: none;
  612. border-radius: 8px;
  613. font-size: 13px;
  614. font-weight: 600;
  615. cursor: pointer;
  616. transition: all 0.2s;
  617. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  618. color: white;
  619. }
  620. .logout-btn:hover {
  621. transform: translateY(-1px);
  622. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  623. }
  624. /* 响应式设计 */
  625. @media (max-width: 1024px) {
  626. .profile-layout {
  627. grid-template-columns: 1fr;
  628. }
  629. .history-section {
  630. height: auto;
  631. min-height: 400px;
  632. }
  633. }
  634. /* 购买记录样式 */
  635. .purchase-grid {
  636. display: grid;
  637. grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  638. gap: 16px;
  639. padding: 8px;
  640. overflow-y: auto;
  641. max-height: 100%;
  642. }
  643. .purchase-item {
  644. position: relative;
  645. border-radius: 16px;
  646. overflow: hidden;
  647. background: white;
  648. border: 1px solid #e5e7eb;
  649. transition: all 0.25s ease;
  650. display: flex;
  651. flex-direction: column;
  652. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  653. }
  654. .purchase-item:hover {
  655. transform: translateY(-4px);
  656. border-color: #667eea;
  657. box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
  658. }
  659. .purchase-item.deleted {
  660. opacity: 0.5;
  661. filter: grayscale(0.5);
  662. }
  663. .purchase-item-image {
  664. width: 100%;
  665. height: 140px;
  666. object-fit: contain;
  667. background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  668. padding: 20px;
  669. transition: transform 0.3s ease;
  670. }
  671. .purchase-item:hover .purchase-item-image {
  672. transform: scale(1.05);
  673. }
  674. .purchase-item-placeholder {
  675. width: 100%;
  676. height: 140px;
  677. display: flex;
  678. align-items: center;
  679. justify-content: center;
  680. background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  681. color: #9ca3af;
  682. font-size: 32px;
  683. }
  684. .purchase-item-info {
  685. padding: 14px 16px 16px;
  686. display: flex;
  687. flex-direction: column;
  688. gap: 8px;
  689. border-top: 1px solid #f1f5f9;
  690. }
  691. .purchase-item-overlay {
  692. position: absolute;
  693. top: 0;
  694. left: 0;
  695. right: 0;
  696. bottom: 0;
  697. background: linear-gradient(180deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.95) 100%);
  698. display: flex;
  699. align-items: center;
  700. justify-content: center;
  701. opacity: 0;
  702. transition: all 0.35s ease;
  703. z-index: 10;
  704. backdrop-filter: blur(6px);
  705. }
  706. .purchase-item:hover .purchase-item-overlay {
  707. opacity: 1;
  708. }
  709. .purchase-item-add-btn {
  710. padding: 12px 24px;
  711. background: white;
  712. color: #667eea;
  713. border: none;
  714. border-radius: 30px;
  715. font-size: 13px;
  716. font-weight: 700;
  717. cursor: pointer;
  718. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  719. display: flex;
  720. align-items: center;
  721. gap: 8px;
  722. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  723. transform: translateY(10px);
  724. opacity: 0;
  725. }
  726. .purchase-item:hover .purchase-item-add-btn {
  727. transform: translateY(0);
  728. opacity: 1;
  729. }
  730. .purchase-item-add-btn:hover {
  731. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  732. color: white;
  733. transform: scale(1.08) !important;
  734. box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  735. }
  736. .purchase-item-add-btn:active {
  737. transform: scale(1) !important;
  738. }
  739. .purchase-item-add-btn:disabled {
  740. opacity: 0.6;
  741. cursor: not-allowed;
  742. transform: none;
  743. }
  744. .purchase-item-name {
  745. font-size: 14px;
  746. font-weight: 600;
  747. color: #1f2937;
  748. overflow: hidden;
  749. text-overflow: ellipsis;
  750. white-space: nowrap;
  751. line-height: 1.4;
  752. }
  753. .purchase-item-category {
  754. font-size: 11px;
  755. color: #667eea;
  756. display: inline-flex;
  757. align-items: center;
  758. gap: 4px;
  759. background: rgba(102, 126, 234, 0.1);
  760. padding: 3px 8px;
  761. border-radius: 4px;
  762. width: fit-content;
  763. }
  764. .purchase-item-category::before {
  765. content: '';
  766. display: inline-block;
  767. width: 4px;
  768. height: 4px;
  769. background: #667eea;
  770. border-radius: 50%;
  771. flex-shrink: 0;
  772. }
  773. .purchase-item-price {
  774. font-size: 14px;
  775. font-weight: 700;
  776. color: #10b981;
  777. display: inline-flex;
  778. align-items: center;
  779. gap: 2px;
  780. }
  781. .purchase-item-price::before {
  782. content: '💰';
  783. font-size: 12px;
  784. }
  785. .purchase-item-deleted-badge {
  786. position: absolute;
  787. top: 14px;
  788. right: 14px;
  789. background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  790. color: white;
  791. padding: 6px 12px;
  792. border-radius: 20px;
  793. font-size: 10px;
  794. font-weight: 700;
  795. letter-spacing: 0.5px;
  796. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  797. z-index: 5;
  798. animation: pulse-badge 2s ease-in-out infinite;
  799. }
  800. @keyframes pulse-badge {
  801. 0%, 100% { transform: scale(1); }
  802. 50% { transform: scale(1.05); }
  803. }
  804. .rendering-text {
  805. font-size: 14px;
  806. font-weight: 600;
  807. color: #667eea;
  808. }
  809. @media (max-width: 768px) {
  810. .profile-content {
  811. padding: 16px;
  812. }
  813. .profile-layout {
  814. gap: 16px;
  815. }
  816. .profile-left {
  817. gap: 16px;
  818. }
  819. .profile-section {
  820. padding: 16px;
  821. }
  822. .avatar-preview {
  823. width: 100px;
  824. height: 100px;
  825. }
  826. }
  827. /* 下载确认对话框 */
  828. .download-confirm-overlay {
  829. position: fixed;
  830. top: 0;
  831. left: 0;
  832. right: 0;
  833. bottom: 0;
  834. width: 100%;
  835. height: 100%;
  836. background: rgba(0, 0, 0, 0.7);
  837. display: none;
  838. align-items: center;
  839. justify-content: center;
  840. z-index: 10000000;
  841. backdrop-filter: blur(4px);
  842. animation: overlayFadeIn 0.3s ease-out;
  843. }
  844. @keyframes overlayFadeIn {
  845. from {
  846. background: rgba(0, 0, 0, 0);
  847. backdrop-filter: blur(0);
  848. }
  849. to {
  850. background: rgba(0, 0, 0, 0.7);
  851. backdrop-filter: blur(4px);
  852. }
  853. }
  854. .download-confirm-modal {
  855. background: white;
  856. border-radius: 16px;
  857. padding: 0;
  858. max-width: 600px;
  859. width: 90%;
  860. max-height: 90vh;
  861. overflow: visible;
  862. overflow-y: auto;
  863. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  864. animation: modalSlideIn 0.3s ease-out;
  865. /* 确保弹窗内容正确显示 */
  866. display: flex;
  867. flex-direction: column;
  868. }
  869. @keyframes modalSlideIn {
  870. from {
  871. opacity: 0;
  872. transform: translateY(-30px) scale(0.95);
  873. }
  874. to {
  875. opacity: 1;
  876. transform: translateY(0) scale(1);
  877. }
  878. }
  879. .download-confirm-header {
  880. display: flex;
  881. align-items: center;
  882. justify-content: space-between;
  883. padding: 24px;
  884. border-bottom: 1px solid #e5e7eb;
  885. flex-shrink: 0;
  886. }
  887. .download-confirm-header h3 {
  888. margin: 0;
  889. font-size: 20px;
  890. font-weight: 600;
  891. color: #111827;
  892. }
  893. .download-confirm-close {
  894. width: 36px;
  895. height: 36px;
  896. border-radius: 50%;
  897. background: #f3f4f6;
  898. border: none;
  899. color: #6b7280;
  900. cursor: pointer;
  901. display: flex;
  902. align-items: center;
  903. justify-content: center;
  904. transition: all 0.2s;
  905. padding: 0;
  906. }
  907. .download-confirm-close:hover {
  908. background: #e5e7eb;
  909. color: #374151;
  910. }
  911. .download-confirm-content {
  912. padding: 24px;
  913. display: flex;
  914. flex-direction: column;
  915. gap: 16px;
  916. flex-shrink: 0;
  917. }
  918. .download-option {
  919. display: flex;
  920. align-items: center;
  921. gap: 16px;
  922. padding: 20px;
  923. border: 2px solid #e5e7eb;
  924. border-radius: 12px;
  925. cursor: pointer;
  926. transition: all 0.2s;
  927. background: #f9fafb;
  928. }
  929. .download-option:hover {
  930. border-color: #667eea;
  931. background: #f0f4ff;
  932. transform: translateY(-2px);
  933. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  934. }
  935. .download-option-icon {
  936. width: 32px;
  937. height: 32px;
  938. flex-shrink: 0;
  939. display: flex;
  940. align-items: center;
  941. justify-content: center;
  942. color: #667eea;
  943. }
  944. .download-option-icon svg {
  945. width: 100%;
  946. height: 100%;
  947. }
  948. .download-option-info {
  949. flex: 1;
  950. }
  951. .download-option-title {
  952. font-size: 16px;
  953. font-weight: 600;
  954. color: #111827;
  955. margin-bottom: 4px;
  956. }
  957. .download-option-desc {
  958. font-size: 14px;
  959. color: #6b7280;
  960. line-height: 1.5;
  961. }
  962. .download-option-price {
  963. margin-top: 8px;
  964. font-size: 16px;
  965. font-weight: 700;
  966. color: #667eea;
  967. background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  968. padding: 6px 12px;
  969. border-radius: 8px;
  970. display: inline-block;
  971. border: 2px solid rgba(102, 126, 234, 0.3);
  972. box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  973. transition: all 0.3s ease;
  974. }
  975. .download-option:hover .download-option-price {
  976. background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  977. border-color: rgba(102, 126, 234, 0.5);
  978. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  979. transform: scale(1.05);
  980. }