style.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');
  2. @font-face {
  3. font-family: 'PingFangLiuAngLeTianTi';
  4. src: url('/fonts/PingFangLiuAngLeTianTi-2.ttf') format('truetype');
  5. font-weight: normal;
  6. font-style: normal;
  7. font-display: swap;
  8. }
  9. @tailwind base;
  10. @tailwind components;
  11. @tailwind utilities;
  12. body {
  13. font-family: 'Noto Sans SC', sans-serif;
  14. background: #fbbf24;
  15. min-height: 100vh;
  16. }
  17. /* 自定义动画 */
  18. @keyframes cooking {
  19. 0%,
  20. 100% {
  21. transform: translateY(0px) rotate(0deg);
  22. }
  23. 25% {
  24. transform: translateY(-5px) rotate(2deg);
  25. }
  26. 50% {
  27. transform: translateY(-3px) rotate(-1deg);
  28. }
  29. 75% {
  30. transform: translateY(-7px) rotate(1deg);
  31. }
  32. }
  33. @keyframes fire {
  34. 0%,
  35. 100% {
  36. transform: scaleY(1) scaleX(1);
  37. }
  38. 50% {
  39. transform: scaleY(1.1) scaleX(0.95);
  40. }
  41. }
  42. @keyframes steam {
  43. 0% {
  44. opacity: 0.7;
  45. transform: translateY(0px) scale(1);
  46. }
  47. 100% {
  48. opacity: 0;
  49. transform: translateY(-20px) scale(1.2);
  50. }
  51. }
  52. @keyframes pulse-glow {
  53. 0%,
  54. 100% {
  55. box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
  56. }
  57. 50% {
  58. box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
  59. }
  60. }
  61. .cooking-animation {
  62. animation: cooking 2s ease-in-out infinite;
  63. }
  64. .fire-animation {
  65. animation: fire 1.5s ease-in-out infinite;
  66. }
  67. .steam-animation {
  68. animation: steam 2s ease-out infinite;
  69. }
  70. .pulse-glow {
  71. animation: pulse-glow 2s ease-in-out infinite;
  72. }
  73. /* 文本截断工具类 */
  74. .line-clamp-2 {
  75. display: -webkit-box;
  76. -webkit-line-clamp: 2;
  77. -webkit-box-orient: vertical;
  78. overflow: hidden;
  79. }
  80. .line-clamp-3 {
  81. display: -webkit-box;
  82. -webkit-line-clamp: 3;
  83. -webkit-box-orient: vertical;
  84. overflow: hidden;
  85. }