background.svg 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-layer { fill: url(#bgDark); }
  7. #soft-glow { fill: url(#glowDark); }
  8. .accent-arc { stroke: rgba(118, 156, 255, 0.35); }
  9. .accent-dot { fill: rgba(154, 188, 255, 0.45); }
  10. }
  11. </style>
  12. <linearGradient id="bgLight" x1="0%" y1="0%" x2="100%" y2="100%">
  13. <stop offset="0%" stop-color="#f3f7ff" />
  14. <stop offset="60%" stop-color="#e3edff" />
  15. <stop offset="100%" stop-color="#d6e7ff" />
  16. </linearGradient>
  17. <linearGradient id="bgDark" x1="0%" y1="0%" x2="100%" y2="100%">
  18. <stop offset="0%" stop-color="#0b1324" />
  19. <stop offset="60%" stop-color="#162135" />
  20. <stop offset="100%" stop-color="#1e2c44" />
  21. </linearGradient>
  22. <radialGradient id="glowLight" cx="20%" cy="15%" r="60%">
  23. <stop offset="0%" stop-color="rgba(64,128,255,0.35)" />
  24. <stop offset="40%" stop-color="rgba(64,128,255,0.18)" />
  25. <stop offset="100%" stop-color="rgba(64,128,255,0)" />
  26. </radialGradient>
  27. <radialGradient id="glowDark" cx="20%" cy="15%" r="60%">
  28. <stop offset="0%" stop-color="rgba(98,142,255,0.4)" />
  29. <stop offset="50%" stop-color="rgba(98,142,255,0.18)" />
  30. <stop offset="100%" stop-color="rgba(98,142,255,0)" />
  31. </radialGradient>
  32. <radialGradient id="glowSecondary" cx="80%" cy="70%" r="55%">
  33. <stop offset="0%" stop-color="rgba(22,93,255,0.3)" />
  34. <stop offset="50%" stop-color="rgba(22,93,255,0.12)" />
  35. <stop offset="100%" stop-color="rgba(22,93,255,0)" />
  36. </radialGradient>
  37. <linearGradient id="meshLight" x1="0%" y1="0%" x2="100%" y2="100%">
  38. <stop offset="0%" stop-color="rgba(255,255,255,0.6)" />
  39. <stop offset="35%" stop-color="rgba(255,255,255,0.2)" />
  40. <stop offset="100%" stop-color="rgba(255,255,255,0)" />
  41. </linearGradient>
  42. </defs>
  43. <rect id="bg-layer" width="100%" height="100%" fill="url(#bgLight)" />
  44. <rect id="soft-glow" width="100%" height="100%" fill="url(#glowLight)" />
  45. <rect width="100%" height="100%" fill="url(#glowSecondary)" />
  46. <rect width="100%" height="100%" fill="url(#meshLight)" />
  47. <!-- 柔和块面光影,替代明显线条 -->
  48. <g opacity="0.45">
  49. <rect x="-40" y="520" width="520" height="220" rx="180" fill="rgba(255,255,255,0.25)" />
  50. <rect x="760" y="90" width="520" height="210" rx="180" fill="rgba(255,255,255,0.22)" />
  51. <rect x="420" y="620" width="560" height="190" rx="180" fill="rgba(255,255,255,0.18)" />
  52. </g>
  53. <!-- 去掉点状噪声,仅保留大区域柔光 -->
  54. </svg>