Hanye官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. @import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;500;700;800;900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
  2. :root {
  3. /* 颜色变量 */
  4. --color-primary: #3b82f6;
  5. --color-secondary: #10b981;
  6. --color-accent: #f59e0b;
  7. --color-danger: #ef4444;
  8. --color-success: #10b981;
  9. --color-warning: #f59e0b;
  10. --color-info: #3b82f6;
  11. --color-dark: #111827;
  12. --color-light: #f3f4f6;
  13. --color-bg: #05080B;
  14. --color-text: #fff;
  15. --color-text-light: #6b7280;
  16. --color-border: #e5e7eb;
  17. }
  18. /* .max-w-screen-2xl{
  19. background-color: #f59e0b;
  20. } */
  21. ::selection {
  22. background-color: var(--color-accent) !important;
  23. color: var(--color-bg) !important;
  24. }
  25. body {
  26. /* 设置默认字体栈 */
  27. font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  28. color: var(--color-text);
  29. background-color: var(--color-bg);
  30. /* 其他基础样式 */
  31. font-size: 16px;
  32. line-height: 1.6;
  33. -webkit-font-smoothing: antialiased;
  34. -moz-osx-font-smoothing: grayscale;
  35. text-rendering: optimizeLegibility;
  36. font-feature-settings: "palt";
  37. letter-spacing: 0.02em;
  38. font-weight: 400;
  39. font-style: normal;
  40. }
  41. /* 仅在日语环境下应用日文字体 */
  42. html[lang="ja"] body {
  43. font-family: 'Noto Sans JP', 'M PLUS 1p', sans-serif !important;
  44. }
  45. html[lang="en"] body {
  46. font-family: 'Montserrat', 'Noto Sans JP', sans-serif !important;
  47. }
  48. /* Markdown 内容样式 */
  49. .prose {
  50. color: rgba(255, 255, 255, 0.6);
  51. line-height: 1.625;
  52. }
  53. .prose h1 {
  54. font-size: 1.5rem;
  55. font-weight: 700;
  56. color: white;
  57. margin-bottom: 1.5rem;
  58. margin-top: 2rem;
  59. }
  60. .prose h2 {
  61. font-size: 1.25rem;
  62. font-weight: 600;
  63. color: white;
  64. margin-bottom: 1rem;
  65. margin-top: 1.5rem;
  66. }
  67. .prose h3 {
  68. font-size: 1.125rem;
  69. font-weight: 500;
  70. color: white;
  71. margin-bottom: 0.75rem;
  72. margin-top: 1.25rem;
  73. }
  74. .prose h4 {
  75. font-size: 1rem;
  76. font-weight: 500;
  77. color: white;
  78. margin-bottom: 0.5rem;
  79. margin-top: 1rem;
  80. }
  81. .prose p {
  82. margin-bottom: 1rem;
  83. line-height: 1.75;
  84. }
  85. .prose a {
  86. text-decoration: none;
  87. text-decoration-thickness: 1px;
  88. text-underline-offset: 2px;
  89. transition: color 0.2s;
  90. pointer-events: none;
  91. }
  92. .prose a:hover {
  93. color: rgb(147 197 253);
  94. }
  95. .prose ul,
  96. .prose ol {
  97. margin: 1rem 0;
  98. margin-left: 0rem;
  99. }
  100. .prose ul {
  101. list-style-type: disc;
  102. }
  103. .prose ol {
  104. list-style-type: decimal;
  105. }
  106. .prose li {
  107. margin-bottom: 0.5rem;
  108. }
  109. .prose blockquote {
  110. border-left: 4px solid rgb(59 130 246);
  111. padding-left: 1rem;
  112. padding-top: 0.5rem;
  113. padding-bottom: 0.5rem;
  114. margin: 1rem 0;
  115. background-color: rgba(39, 39, 42, 0.5);
  116. border-top-right-radius: 0.5rem;
  117. border-bottom-right-radius: 0.5rem;
  118. }
  119. .prose blockquote p {
  120. color: rgb(214 211 209);
  121. font-style: italic;
  122. margin-bottom: 0;
  123. }
  124. .prose code {
  125. background-color: rgb(39, 39, 42);
  126. padding: 0.125rem 0.375rem;
  127. border-radius: 0.25rem;
  128. font-size: 0.875rem;
  129. font-family: ui-monospace, monospace;
  130. color: rgb(147 197 253);
  131. }
  132. .prose pre {
  133. background-color: rgb(39, 39, 42);
  134. padding: 1rem;
  135. border-radius: 0.5rem;
  136. overflow-x: auto;
  137. margin: 1rem 0;
  138. }
  139. .prose pre code {
  140. background-color: transparent;
  141. padding: 0;
  142. font-size: 0.875rem;
  143. color: rgb(214 211 209);
  144. }
  145. .prose img {
  146. border-radius: 0.5rem;
  147. margin: 1.5rem 0;
  148. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  149. }
  150. .prose table {
  151. width: 100%;
  152. margin: 1.5rem 0;
  153. border-collapse: collapse;
  154. table-layout: fixed;
  155. }
  156. .prose th {
  157. background-color: rgb(39, 39, 42);
  158. color: white;
  159. font-weight: 500;
  160. padding: 0.5rem 1rem;
  161. text-align: left;
  162. border: 1px solid rgb(63, 63, 70);
  163. }
  164. .prose td {
  165. padding: 0.5rem 1rem;
  166. border: 1px solid rgb(63, 63, 70);
  167. }
  168. .prose tr:nth-child(even) {
  169. background-color: rgba(39, 39, 42, 0.3);
  170. }
  171. .prose hr {
  172. margin: 2rem 0;
  173. border-color: rgb(63, 63, 70);
  174. }
  175. .prose strong {
  176. font-weight: 600;
  177. color: white;
  178. }
  179. .prose em {
  180. font-style: italic;
  181. color: rgb(214 211 209);
  182. }
  183. .prose kbd {
  184. background-color: rgb(39, 39, 42);
  185. padding: 0.25rem 0.5rem;
  186. border-radius: 0.25rem;
  187. font-size: 0.875rem;
  188. font-family: ui-monospace, monospace;
  189. border: 1px solid rgb(63, 63, 70);
  190. }
  191. .prose details {
  192. margin: 1rem 0;
  193. }
  194. .prose summary {
  195. cursor: pointer;
  196. font-weight: 500;
  197. color: white;
  198. }
  199. .prose details[open] summary {
  200. margin-bottom: 0.5rem;
  201. }