Hanye官网
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.css 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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: #f59e0b;
  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. pointer-events: none;
  132. }
  133. .prose a:hover {
  134. color: rgb(147 197 253);
  135. }
  136. .prose ul,
  137. .prose ol {
  138. margin: 1rem 0;
  139. margin-left: 0rem;
  140. }
  141. .prose ul {
  142. list-style-type: disc;
  143. }
  144. .prose ol {
  145. list-style-type: decimal;
  146. }
  147. .prose li {
  148. margin-bottom: 0.5rem;
  149. }
  150. .prose blockquote {
  151. border-left: 4px solid rgb(59 130 246);
  152. padding-left: 1rem;
  153. padding-top: 0.5rem;
  154. padding-bottom: 0.5rem;
  155. margin: 1rem 0;
  156. background-color: rgba(39, 39, 42, 0.5);
  157. border-top-right-radius: 0.5rem;
  158. border-bottom-right-radius: 0.5rem;
  159. }
  160. .prose blockquote p {
  161. color: rgb(214 211 209);
  162. font-style: italic;
  163. margin-bottom: 0;
  164. }
  165. .prose code {
  166. background-color: rgb(39, 39, 42);
  167. padding: 0.125rem 0.375rem;
  168. border-radius: 0.25rem;
  169. font-size: 0.875rem;
  170. font-family: ui-monospace, monospace;
  171. color: rgb(147 197 253);
  172. }
  173. .prose pre {
  174. background-color: rgb(39, 39, 42);
  175. padding: 1rem;
  176. border-radius: 0.5rem;
  177. overflow-x: auto;
  178. margin: 1rem 0;
  179. }
  180. .prose pre code {
  181. background-color: transparent;
  182. padding: 0;
  183. font-size: 0.875rem;
  184. color: rgb(214 211 209);
  185. }
  186. .prose img {
  187. border-radius: 0.5rem;
  188. margin: 1.5rem 0;
  189. box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  190. }
  191. .prose table {
  192. width: 100%;
  193. margin: 1.5rem 0;
  194. border-collapse: collapse;
  195. table-layout: fixed;
  196. }
  197. .prose th {
  198. background-color: rgb(39, 39, 42);
  199. color: white;
  200. font-weight: 500;
  201. padding: 0.5rem 1rem;
  202. text-align: left;
  203. border: 1px solid rgb(63, 63, 70);
  204. }
  205. .prose td {
  206. padding: 0.5rem 1rem;
  207. border: 1px solid rgb(63, 63, 70);
  208. }
  209. .prose tr:nth-child(even) {
  210. background-color: rgba(39, 39, 42, 0.3);
  211. }
  212. .prose hr {
  213. margin: 2rem 0;
  214. border-color: rgb(63, 63, 70);
  215. }
  216. .prose strong {
  217. font-weight: 600;
  218. color: white;
  219. }
  220. .prose em {
  221. font-style: italic;
  222. color: rgb(214 211 209);
  223. }
  224. .prose kbd {
  225. background-color: rgb(39, 39, 42);
  226. padding: 0.25rem 0.5rem;
  227. border-radius: 0.25rem;
  228. font-size: 0.875rem;
  229. font-family: ui-monospace, monospace;
  230. border: 1px solid rgb(63, 63, 70);
  231. }
  232. .prose details {
  233. margin: 1rem 0;
  234. }
  235. .prose summary {
  236. cursor: pointer;
  237. font-weight: 500;
  238. color: white;
  239. }
  240. .prose details[open] summary {
  241. margin-bottom: 0.5rem;
  242. }