background.svg 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1400 800">
  3. <defs>
  4. <style>
  5. @media (prefers-color-scheme: dark) {
  6. #bg-rect { fill: #101a29; }
  7. #blueGlow-rect { fill: url(#blueGlowDark); }
  8. #blueGlow2-rect { fill: url(#blueGlow2Dark); }
  9. #pinkPurpleGlow-rect { fill: url(#pinkPurpleGlowDark); }
  10. }
  11. </style>
  12. <!-- 亮色主题渐变 -->
  13. <linearGradient id="bgGradient" x1="0%" y1="0%" x2="0%" y2="100%">
  14. <stop offset="0%" stop-color="#f9fcff" />
  15. <stop offset="100%" stop-color="#f5f9fd" />
  16. </linearGradient>
  17. <!-- 中间区域淡蓝白光晕 -->
  18. <radialGradient id="blueGlow" cx="50%" cy="50%" r="70%" fx="50%" fy="50%">
  19. <stop offset="0%" stop-color="#ffffff" stop-opacity="0.9" />
  20. <stop offset="50%" stop-color="#f0f8ff" stop-opacity="0.5" />
  21. <stop offset="100%" stop-color="#eef7fd" stop-opacity="0" />
  22. </radialGradient>
  23. <!-- 左上角蓝白光晕 -->
  24. <radialGradient id="blueGlow2" cx="15%" cy="15%" r="40%" fx="15%" fy="15%">
  25. <stop offset="0%" stop-color="#d9efff" stop-opacity="0.85" />
  26. <stop offset="40%" stop-color="#e5f4fd" stop-opacity="0.6" />
  27. <stop offset="100%" stop-color="#e9f5fd" stop-opacity="0" />
  28. </radialGradient>
  29. <!-- 右下角粉紫色光晕 -->
  30. <radialGradient id="pinkPurpleGlow" cx="85%" cy="85%" r="40%" fx="85%" fy="85%">
  31. <stop offset="0%" stop-color="#f7e6f9" stop-opacity="0.8" />
  32. <stop offset="35%" stop-color="#f9edf8" stop-opacity="0.6" />
  33. <stop offset="100%" stop-color="#f8f2f8" stop-opacity="0" />
  34. </radialGradient>
  35. <!-- 暗色主题渐变 -->
  36. <radialGradient id="blueGlowDark" cx="50%" cy="50%" r="70%" fx="50%" fy="50%">
  37. <stop offset="0%" stop-color="#1e3a5e" stop-opacity="0.6" />
  38. <stop offset="50%" stop-color="#1c314e" stop-opacity="0.3" />
  39. <stop offset="100%" stop-color="#1a2d47" stop-opacity="0" />
  40. </radialGradient>
  41. <!-- 左上角蓝白光晕 - 暗色模式 -->
  42. <radialGradient id="blueGlow2Dark" cx="15%" cy="15%" r="40%" fx="15%" fy="15%">
  43. <stop offset="0%" stop-color="#1e3858" stop-opacity="0.85" />
  44. <stop offset="40%" stop-color="#1a304f" stop-opacity="0.6" />
  45. <stop offset="100%" stop-color="#172b45" stop-opacity="0" />
  46. </radialGradient>
  47. <!-- 右下角粉紫色光晕 - 暗色模式 -->
  48. <radialGradient id="pinkPurpleGlowDark" cx="85%" cy="85%" r="40%" fx="85%" fy="85%">
  49. <stop offset="0%" stop-color="#2e2335" stop-opacity="0.85" />
  50. <stop offset="35%" stop-color="#2a2035" stop-opacity="0.6" />
  51. <stop offset="100%" stop-color="#2a202d" stop-opacity="0" />
  52. </radialGradient>
  53. </defs>
  54. <!-- 背景层 -->
  55. <rect id="bg-rect" width="100%" height="100%" fill="url(#bgGradient)" />
  56. <!-- 中间淡蓝白光晕 -->
  57. <rect id="blueGlow-rect" width="100%" height="100%" fill="url(#blueGlow)" />
  58. <!-- 左上蓝白光晕 -->
  59. <rect id="blueGlow2-rect" width="100%" height="100%" fill="url(#blueGlow2)" />
  60. <!-- 右下粉紫光晕 -->
  61. <rect id="pinkPurpleGlow-rect" width="100%" height="100%" fill="url(#pinkPurpleGlow)" />
  62. </svg>