Hanye官网
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.css 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. @font-face {
  2. font-family: 'M PLUS 1p';
  3. font-style: normal;
  4. font-weight: 400;
  5. font-display: swap;
  6. src: url('../fonts/m-plus-1p/MPLUS1p-Regular.woff2') format('woff2');
  7. }
  8. @font-face {
  9. font-family: 'M PLUS 1p';
  10. font-style: normal;
  11. font-weight: 500;
  12. font-display: swap;
  13. src: url('../fonts/m-plus-1p/MPLUS1p-Medium.woff2') format('woff2');
  14. }
  15. @font-face {
  16. font-family: 'M PLUS 1p';
  17. font-style: normal;
  18. font-weight: 700;
  19. font-display: swap;
  20. src: url('../fonts/m-plus-1p/MPLUS1p-Bold.woff2') format('woff2');
  21. }
  22. @font-face {
  23. font-family: 'Roboto';
  24. font-style: normal;
  25. font-weight: 400;
  26. font-display: swap;
  27. src: url('../fonts/roboto/Roboto-Regular.woff2') format('woff2');
  28. }
  29. @font-face {
  30. font-family: 'Roboto';
  31. font-style: normal;
  32. font-weight: 500;
  33. font-display: swap;
  34. src: url('../fonts/roboto/Roboto-Medium.woff2') format('woff2');
  35. }
  36. @font-face {
  37. font-family: 'Roboto';
  38. font-style: normal;
  39. font-weight: 700;
  40. font-display: swap;
  41. src: url('../fonts/roboto/Roboto-Bold.woff2') format('woff2');
  42. }
  43. :root {
  44. /* 颜色变量 */
  45. --color-primary: #3b82f6;
  46. --color-secondary: #10b981;
  47. --color-accent: #22d3ee;
  48. --color-danger: #ef4444;
  49. --color-success: #10b981;
  50. --color-warning: #f59e0b;
  51. --color-info: #3b82f6;
  52. --color-dark: #111827;
  53. --color-light: #f3f4f6;
  54. --color-bg: #05080B;
  55. --color-text: #fff;
  56. --color-text-light: #6b7280;
  57. --color-border: #e5e7eb;
  58. }
  59. ::selection {
  60. background-color: var(--color-accent) !important;
  61. color: var(--color-bg) !important;
  62. }
  63. body {
  64. /* 设置默认字体栈 */
  65. font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  66. color: var(--color-text);
  67. background-color: var(--color-bg);
  68. /* 其他基础样式 */
  69. font-size: 16px;
  70. line-height: 1.6;
  71. -webkit-font-smoothing: antialiased;
  72. -moz-osx-font-smoothing: grayscale;
  73. text-rendering: optimizeLegibility;
  74. font-feature-settings: "palt";
  75. letter-spacing: 0.02em;
  76. font-weight: 400;
  77. font-style: normal;
  78. }
  79. /* 仅在日语环境下应用日文字体 */
  80. html[lang="ja"] body {
  81. font-family: 'M PLUS 1p', sans-serif !important;
  82. }
  83. /* Markdown 内容样式 */
  84. .prose {
  85. color: rgba(255, 255, 255, 0.6);
  86. line-height: 1.625;
  87. blockquote {
  88. border-left-color: var(--color-primary);
  89. p {
  90. margin: 0;
  91. }
  92. }
  93. }
  94. .prose h1 {
  95. font-size: 1.5rem;
  96. font-weight: 700;
  97. color: white;
  98. margin-bottom: 1.5rem;
  99. margin-top: 2rem;
  100. }
  101. .prose h2 {
  102. font-size: 1.25rem;
  103. font-weight: 600;
  104. color: white;
  105. margin-bottom: 1rem;
  106. margin-top: 1.5rem;
  107. }
  108. .prose h3 {
  109. font-size: 1.125rem;
  110. font-weight: 500;
  111. color: white;
  112. margin-bottom: 0.75rem;
  113. margin-top: 1.25rem;
  114. }
  115. .prose h4 {
  116. font-size: 1rem;
  117. font-weight: 500;
  118. color: white;
  119. margin-bottom: 0.5rem;
  120. margin-top: 1rem;
  121. }
  122. .prose p {
  123. margin-bottom: 1rem;
  124. line-height: 1.75;
  125. }
  126. .prose a {
  127. text-decoration: none;
  128. text-decoration-thickness: 1px;
  129. text-underline-offset: 2px;
  130. transition: color 0.2s;
  131. color: var(--color-primary);
  132. }
  133. .prose a:hover {
  134. color: rgb(147 197 253);
  135. }
  136. .prose h1 a,
  137. .prose h2 a,
  138. .prose h3 a,
  139. .prose h4 a,
  140. .prose h5 a,
  141. .prose h6 a {
  142. color: var(--color-text);
  143. pointer-events: none;
  144. }
  145. .prose ul,
  146. .prose ol {
  147. margin: 1rem 0;
  148. margin-left: 0rem;
  149. }
  150. .prose ul {
  151. list-style-type: disc;
  152. }
  153. .prose ol {
  154. list-style-type: decimal;
  155. }
  156. .prose li {
  157. margin-bottom: 0.5rem;
  158. }
  159. .prose blockquote {
  160. border-left: 4px solid rgb(59 130 246);
  161. padding-left: 1rem;
  162. padding-top: 0.5rem;
  163. padding-bottom: 0.5rem;
  164. margin: 1rem 0;
  165. background-color: rgba(39, 39, 42, 0.5);
  166. border-top-right-radius: 0.5rem;
  167. border-bottom-right-radius: 0.5rem;
  168. }
  169. .prose blockquote p {
  170. color: rgb(214 211 209);
  171. font-style: italic;
  172. margin-bottom: 0;
  173. }
  174. .prose code {
  175. background-color: rgba(0, 0, 0, 0.5);
  176. padding: 0.125rem 0.375rem;
  177. border-radius: 0.25rem;
  178. font-size: 0.875rem;
  179. color: var(--color-text);
  180. }
  181. .prose pre {
  182. background-color: rgb(39, 39, 42);
  183. padding: 1rem;
  184. border-radius: 0.5rem;
  185. overflow-x: auto;
  186. margin: 1rem 0;
  187. }
  188. .prose pre code {
  189. background-color: transparent;
  190. padding: 0;
  191. font-size: 0.875rem;
  192. color: rgb(214 211 209);
  193. }
  194. .prose img {
  195. border-radius: 0.5rem;
  196. margin: 1.5rem 0;
  197. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  198. }
  199. .prose table {
  200. width: 100%;
  201. margin: 1.5rem 0;
  202. border-collapse: collapse;
  203. table-layout: fixed;
  204. }
  205. .prose th {
  206. background-color: rgb(39, 39, 42);
  207. color: white;
  208. font-weight: 500;
  209. padding: 0.5rem 1rem;
  210. text-align: left;
  211. border: 1px solid rgb(63, 63, 70);
  212. }
  213. .prose td {
  214. padding: 0.5rem 1rem;
  215. border: 1px solid rgb(63, 63, 70);
  216. }
  217. .prose tr:nth-child(even) {
  218. background-color: rgba(39, 39, 42, 0.3);
  219. }
  220. .prose hr {
  221. margin: 2rem 0;
  222. border-color: rgb(63, 63, 70);
  223. }
  224. .prose strong {
  225. font-weight: 600;
  226. color: white;
  227. }
  228. .prose em {
  229. font-style: italic;
  230. color: rgb(214 211 209);
  231. }
  232. .prose kbd {
  233. background-color: rgb(39, 39, 42);
  234. padding: 0.25rem 0.5rem;
  235. border-radius: 0.25rem;
  236. font-size: 0.875rem;
  237. font-family: ui-monospace, monospace;
  238. border: 1px solid rgb(63, 63, 70);
  239. }
  240. .prose details {
  241. margin: 1rem 0;
  242. }
  243. .prose summary {
  244. cursor: pointer;
  245. font-weight: 500;
  246. color: white;
  247. }
  248. .prose details[open] summary {
  249. margin-bottom: 0.5rem;
  250. }
  251. /* 页面过渡动画 */
  252. .page-enter-active,
  253. .page-leave-active {
  254. transition: all 0.3s;
  255. }
  256. .page-enter-from,
  257. .page-leave-to {
  258. opacity: 0;
  259. transform: translateY(10px);
  260. }
  261. /* 加载指示器样式 */
  262. .route-loader {
  263. position: fixed;
  264. top: 0;
  265. left: 0;
  266. height: 3px;
  267. background-color: var(--color-accent);
  268. z-index: 9999;
  269. transition: width 0.2s ease;
  270. }
  271. .route-loader-enter-active,
  272. .route-loader-leave-active {
  273. transition: opacity 0.3s;
  274. }
  275. .route-loader-enter-from,
  276. .route-loader-leave-to {
  277. opacity: 0;
  278. }