custom.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /* 自定义CSS样式 */
  2. /* Hero 图片容器 */
  3. .VPHero .image {
  4. position: relative;
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. }
  9. /* Hero 图片背景光晕 */
  10. .VPHero .image-bg {
  11. background: linear-gradient(135deg, #1f6ade 0%, #4f8de7 100%);
  12. filter: blur(72px);
  13. position: absolute;
  14. top: 50%;
  15. left: 50%;
  16. transform: translate(-50%, -50%);
  17. width: 320px;
  18. height: 320px;
  19. z-index: 0;
  20. opacity: 0.4;
  21. animation: pulse 4s ease-in-out infinite;
  22. }
  23. /* Logo 图片样式 */
  24. .VPHero .image-src {
  25. filter: drop-shadow(0 10px 30px rgba(31, 152, 231, 0.3));
  26. transition: transform 0.3s ease;
  27. }
  28. /* 光晕脉冲动画 */
  29. @keyframes pulse {
  30. 0%, 100% {
  31. opacity: 0.4;
  32. transform: translate(-50%, -50%) scale(1);
  33. }
  34. 50% {
  35. opacity: 0.6;
  36. transform: translate(-50%, -50%) scale(1.1);
  37. }
  38. }
  39. /* Logo 浮动动画 */
  40. @keyframes float {
  41. 0%, 100% {
  42. transform: translateY(0);
  43. }
  44. 50% {
  45. transform: translateY(-10px);
  46. }
  47. }
  48. /* 标题渐变效果 */
  49. .VPHero .name {
  50. background: linear-gradient(135deg, #1f6ade 0%, #4f8de7 100%);
  51. -webkit-background-clip: text;
  52. -webkit-text-fill-color: transparent;
  53. background-clip: text;
  54. font-weight: 700;
  55. }
  56. /* 主标题渐变效果 */
  57. .VPHero .text {
  58. background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  59. -webkit-background-clip: text;
  60. -webkit-text-fill-color: transparent;
  61. background-clip: text;
  62. font-weight: 800;
  63. }
  64. /* 副标题样式 */
  65. .VPHero .tagline {
  66. color: #666;
  67. }
  68. /* 暗色模式适配 */
  69. .dark .VPHero .image-bg {
  70. background: linear-gradient(135deg, #1f6ade 0%, #4f8de7 100%);
  71. opacity: 0.3;
  72. }
  73. .dark .VPHero .text {
  74. background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  75. -webkit-background-clip: text;
  76. -webkit-text-fill-color: transparent;
  77. background-clip: text;
  78. }
  79. .dark .VPHero .tagline {
  80. color: #a0a0a0;
  81. }
  82. /* Features 卡片样式优化 */
  83. .VPFeature .title {
  84. font-weight: 600;
  85. }
  86. .VPFeature .details {
  87. color: #666;
  88. }
  89. .dark .VPFeature .details {
  90. color: #a0a0a0;
  91. }
  92. /* 首页社区支持区 */
  93. .docs-community-panel {
  94. display: grid;
  95. grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
  96. gap: 20px;
  97. align-items: stretch;
  98. margin: 28px 0 8px;
  99. padding: 22px;
  100. border: 1px solid rgba(191, 219, 254, 0.82);
  101. border-radius: 10px;
  102. background:
  103. radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.12), transparent 30%),
  104. linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.78) 54%, rgba(240, 253, 250, 0.82));
  105. box-shadow: 0 12px 30px rgba(30, 64, 175, 0.08);
  106. }
  107. .docs-community-copy {
  108. display: flex;
  109. min-width: 0;
  110. flex-direction: column;
  111. justify-content: center;
  112. }
  113. .docs-community-eyebrow {
  114. width: fit-content;
  115. margin-bottom: 12px;
  116. padding: 5px 10px;
  117. border: 1px solid #bfdbfe;
  118. border-radius: 999px;
  119. background: #eff6ff;
  120. color: #1d4ed8;
  121. font-size: 12px;
  122. font-weight: 800;
  123. }
  124. .docs-community-copy h3 {
  125. margin: 0;
  126. color: #0f172a;
  127. font-size: 25px;
  128. font-weight: 850;
  129. line-height: 1.35;
  130. }
  131. .docs-community-copy p {
  132. margin: 12px 0 0;
  133. color: #475569;
  134. font-size: 14px;
  135. line-height: 1.85;
  136. }
  137. .docs-community-tags {
  138. display: flex;
  139. flex-wrap: wrap;
  140. gap: 8px;
  141. margin-top: 18px;
  142. }
  143. .docs-community-tags span {
  144. display: inline-flex;
  145. align-items: center;
  146. height: 26px;
  147. padding: 0 10px;
  148. border: 1px solid #bae6fd;
  149. border-radius: 999px;
  150. background: linear-gradient(135deg, #eff6ff, #f0fdfa);
  151. color: #0369a1;
  152. font-size: 12px;
  153. font-weight: 800;
  154. }
  155. .docs-community-cards {
  156. display: grid;
  157. grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  158. gap: 12px;
  159. min-width: 0;
  160. }
  161. .docs-community-card {
  162. display: flex;
  163. min-width: 0;
  164. flex-direction: column;
  165. gap: 10px;
  166. padding: 14px;
  167. border: 1px solid #dbeafe;
  168. border-radius: 8px;
  169. background: rgba(255, 255, 255, 0.92);
  170. }
  171. .docs-community-card.support {
  172. border-color: #bbf7d0;
  173. background: rgba(251, 255, 253, 0.94);
  174. }
  175. .docs-community-card-title {
  176. display: flex;
  177. align-items: center;
  178. justify-content: space-between;
  179. gap: 8px;
  180. color: #0f172a;
  181. font-size: 14px;
  182. font-weight: 850;
  183. }
  184. .docs-community-card-title em {
  185. display: inline-flex;
  186. align-items: center;
  187. height: 22px;
  188. padding: 0 8px;
  189. border-radius: 999px;
  190. background: #eff6ff;
  191. color: #2563eb;
  192. font-size: 11px;
  193. font-style: normal;
  194. font-weight: 800;
  195. white-space: nowrap;
  196. }
  197. .docs-community-card.support .docs-community-card-title em {
  198. background: #ecfdf5;
  199. color: #059669;
  200. }
  201. .docs-community-qr-duo {
  202. display: grid;
  203. grid-template-columns: repeat(2, minmax(0, 1fr));
  204. gap: 10px;
  205. }
  206. .docs-community-qr,
  207. .docs-community-support-qr {
  208. display: flex;
  209. min-width: 0;
  210. flex-direction: column;
  211. gap: 8px;
  212. align-items: center;
  213. color: #334155;
  214. font-size: 12px;
  215. font-weight: 800;
  216. text-decoration: none;
  217. }
  218. .docs-community-qr img,
  219. .docs-community-support-qr img {
  220. width: 100%;
  221. height: 210px;
  222. border: 1px solid #e2e8f0;
  223. border-radius: 6px;
  224. background: #fff;
  225. object-fit: contain;
  226. }
  227. .docs-community-card p {
  228. margin: 0;
  229. color: #64748b;
  230. font-size: 12px;
  231. line-height: 1.65;
  232. }
  233. .dark .docs-community-panel {
  234. border-color: rgba(59, 130, 246, 0.32);
  235. background:
  236. radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.18), transparent 34%),
  237. linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94));
  238. }
  239. .dark .docs-community-copy h3,
  240. .dark .docs-community-card-title {
  241. color: #f8fafc;
  242. }
  243. .dark .docs-community-copy p,
  244. .dark .docs-community-card p {
  245. color: #cbd5e1;
  246. }
  247. .dark .docs-community-card {
  248. border-color: rgba(148, 163, 184, 0.24);
  249. background: rgba(15, 23, 42, 0.78);
  250. }
  251. @media (max-width: 960px) {
  252. .docs-community-panel {
  253. grid-template-columns: 1fr;
  254. }
  255. .docs-community-cards {
  256. grid-template-columns: 1fr;
  257. }
  258. }
  259. @media (max-width: 640px) {
  260. .docs-community-panel {
  261. padding: 16px;
  262. }
  263. .docs-community-copy h3 {
  264. font-size: 21px;
  265. }
  266. .docs-community-qr-duo {
  267. grid-template-columns: 1fr;
  268. }
  269. .docs-community-qr img,
  270. .docs-community-support-qr img {
  271. height: 280px;
  272. }
  273. }