_wiki_home_append.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /* ══════════════════════════════════════════
  2. 十五、Wiki 首页(home.blade.php)
  3. 替代原 home.blade.php 内联 <style>,风格与 wiki 整体保持一致
  4. ══════════════════════════════════════════ */
  5. .wiki-home-container {
  6. display: flex;
  7. flex-direction: column;
  8. align-items: center;
  9. justify-content: center;
  10. min-height: calc(100vh - 300px);
  11. padding: 3rem 1.5rem;
  12. }
  13. /* ── 法轮图标 ── */
  14. .wiki-home-wheel {
  15. margin-bottom: 1.5rem;
  16. }
  17. .wiki-home-wheel-img {
  18. width: 120px;
  19. height: auto;
  20. opacity: 0.85;
  21. transition: transform 0.3s ease;
  22. }
  23. .wiki-home-wheel-img:hover {
  24. transform: scale(1.05);
  25. }
  26. /* ── 标题 ── */
  27. .wiki-home-title {
  28. text-align: center;
  29. margin-bottom: 2rem;
  30. }
  31. .wiki-home-title h1 {
  32. font-family: "Noto Serif", Georgia, serif;
  33. font-size: 2.25rem;
  34. font-weight: 600;
  35. color: var(--tblr-body-color);
  36. margin-bottom: 0.5rem;
  37. }
  38. /* ── 搜索框 ── */
  39. .wiki-home-search {
  40. width: 100%;
  41. max-width: 640px;
  42. margin: 0 auto 1.5rem;
  43. }
  44. /* ── 热门标签 ── */
  45. .wiki-home-hot-tags {
  46. text-align: center;
  47. margin-bottom: 2.5rem;
  48. font-size: 0.9rem;
  49. }
  50. .wiki-hot-tag {
  51. display: inline-block;
  52. padding: 0.3rem 0.75rem;
  53. background: var(--tblr-bg-surface-secondary);
  54. border: 1px solid var(--tblr-border-color);
  55. border-radius: 20px;
  56. color: var(--tblr-secondary);
  57. font-size: 0.8125rem;
  58. text-decoration: none;
  59. margin: 2px;
  60. transition: background 0.12s, color 0.12s;
  61. }
  62. .wiki-hot-tag:hover {
  63. background: var(--wp-brand-light);
  64. border-color: var(--wp-brand);
  65. color: var(--wp-brand-dark);
  66. }
  67. /* ── 语言选择 ── */
  68. .wiki-home-languages {
  69. width: 100%;
  70. max-width: 800px;
  71. margin: 0 auto 2rem;
  72. }
  73. .wiki-home-divider {
  74. display: flex;
  75. align-items: center;
  76. text-align: center;
  77. margin-bottom: 1.5rem;
  78. gap: 1.5rem;
  79. color: var(--tblr-secondary);
  80. font-size: 0.875rem;
  81. }
  82. .wiki-home-divider::before,
  83. .wiki-home-divider::after {
  84. content: '';
  85. flex: 1;
  86. border-bottom: 1px solid var(--tblr-border-color);
  87. }
  88. .wiki-language-tags {
  89. display: flex;
  90. flex-wrap: wrap;
  91. justify-content: center;
  92. gap: 0.75rem;
  93. }
  94. .wiki-language-tag {
  95. display: inline-block;
  96. padding: 0.4rem 1.125rem;
  97. background: var(--tblr-bg-surface-secondary);
  98. border: 1px solid var(--tblr-border-color);
  99. border-radius: 30px;
  100. color: var(--tblr-body-color);
  101. font-size: 0.875rem;
  102. text-decoration: none;
  103. transition: background 0.12s, border-color 0.12s;
  104. }
  105. .wiki-language-tag:hover {
  106. background: var(--wp-brand-light);
  107. border-color: var(--wp-brand);
  108. color: var(--wp-brand-dark);
  109. }
  110. .wiki-language-tag.active {
  111. background: var(--wp-brand);
  112. border-color: var(--wp-brand);
  113. color: #fff;
  114. }
  115. .wiki-language-tag.active:hover {
  116. background: var(--wp-brand-dark);
  117. border-color: var(--wp-brand-dark);
  118. }
  119. /* ── 统计 ── */
  120. .wiki-home-stats {
  121. text-align: center;
  122. font-size: 0.875rem;
  123. padding-top: 1.5rem;
  124. border-top: 1px solid var(--tblr-border-color);
  125. width: 100%;
  126. max-width: 640px;
  127. }
  128. /* ── 响应式 ── */
  129. @media (max-width: 768px) {
  130. .wiki-home-container {
  131. min-height: calc(100vh - 200px);
  132. padding: 2rem 1rem;
  133. }
  134. .wiki-home-wheel-img { width: 90px; }
  135. .wiki-home-title h1 { font-size: 1.75rem; }
  136. .wiki-language-tag {
  137. padding: 0.35rem 0.875rem;
  138. font-size: 0.8125rem;
  139. }
  140. }