blue-theme.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. @import "tailwindcss";
  2. * {
  3. box-sizing: border-box;
  4. padding: 0;
  5. margin: 0;
  6. }
  7. html,
  8. body {
  9. max-width: 100vw;
  10. overflow-x: hidden;
  11. font-family: 'Arial', sans-serif;
  12. }
  13. body {
  14. background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  15. min-height: 100vh;
  16. }
  17. a {
  18. color: inherit;
  19. text-decoration: none;
  20. }
  21. @media (prefers-color-scheme: dark) {
  22. html {
  23. color-scheme: dark;
  24. }
  25. }
  26. /* 蓝色主题样式 - 只在 .blue-theme 容器内生效 */
  27. .blue-theme .magic-background {
  28. background: linear-gradient(45deg, #4f46e5 0%, #7c3aed 50%, #3b82f6 100%);
  29. min-height: 100vh;
  30. position: relative;
  31. overflow: hidden;
  32. }
  33. .magic-background::before {
  34. content: '';
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. right: 0;
  39. bottom: 0;
  40. background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 2px, transparent 2px), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px), radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  41. background-size: 50px 50px, 30px 30px, 40px 40px;
  42. animation: sparkle 6s ease-in-out infinite;
  43. }
  44. @keyframes sparkle {
  45. 0%,
  46. 100% {
  47. opacity: 1;
  48. }
  49. 50% {
  50. opacity: 0.7;
  51. }
  52. }
  53. .container {
  54. max-width: 500px;
  55. margin: 0 auto;
  56. padding: 20px;
  57. position: relative;
  58. z-index: 1;
  59. }
  60. .card {
  61. background: rgba(255, 255, 255, 0.95);
  62. border-radius: 20px;
  63. padding: 30px;
  64. box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  65. margin-top: 100px;
  66. backdrop-filter: blur(10px);
  67. border: 1px solid rgba(255, 255, 255, 0.3);
  68. }
  69. .blue-theme .title {
  70. text-align: center;
  71. font-size: 2rem;
  72. font-weight: bold;
  73. background: linear-gradient(45deg, #3b82f6, #1d4ed8, #1e40af);
  74. -webkit-background-clip: text;
  75. -webkit-text-fill-color: transparent;
  76. background-clip: text;
  77. margin-bottom: 30px;
  78. }
  79. .input-group {
  80. margin-bottom: 20px;
  81. }
  82. .input-label {
  83. display: block;
  84. margin-bottom: 8px;
  85. font-weight: 600;
  86. color: #555;
  87. }
  88. .input-field {
  89. width: 100%;
  90. padding: 15px;
  91. border: 2px solid #e0e0e0;
  92. color: #333;
  93. border-radius: 12px;
  94. font-size: 16px;
  95. transition: all 0.3s ease;
  96. background: rgba(255, 255, 255, 0.8);
  97. }
  98. .blue-theme .input-field:focus {
  99. outline: none;
  100. border-color: #3b82f6;
  101. box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  102. }
  103. .blue-theme .generate-button {
  104. width: 100%;
  105. padding: 15px;
  106. background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  107. color: white;
  108. border: none;
  109. border-radius: 12px;
  110. font-size: 18px;
  111. font-weight: bold;
  112. cursor: pointer;
  113. transition: all 0.3s ease;
  114. margin-bottom: 20px;
  115. }
  116. .blue-theme .generate-button:hover {
  117. transform: translateY(-2px);
  118. box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  119. }
  120. .generate-button:disabled {
  121. opacity: 0.6;
  122. cursor: not-allowed;
  123. transform: none;
  124. }
  125. .blue-theme .result-card {
  126. background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  127. color: white;
  128. border-radius: 15px;
  129. padding: 25px;
  130. margin-top: 20px;
  131. position: relative;
  132. overflow: hidden;
  133. }
  134. .result-card::before {
  135. content: '';
  136. position: absolute;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. bottom: 0;
  141. background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  142. background-size: 100px 100px;
  143. }
  144. .title-container {
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. margin-bottom: 1rem;
  149. background: transparent;
  150. }
  151. .result-content {
  152. position: relative;
  153. z-index: 1;
  154. }
  155. .result-item {
  156. margin-bottom: 20px;
  157. padding: 15px;
  158. background: rgba(255, 255, 255, 0.1);
  159. border-radius: 10px;
  160. backdrop-filter: blur(5px);
  161. }
  162. .result-label {
  163. font-weight: bold;
  164. font-size: 14px;
  165. opacity: 0.9;
  166. margin-bottom: 5px;
  167. }
  168. .result-value {
  169. font-size: 16px;
  170. line-height: 1.5;
  171. }
  172. .level-badge {
  173. display: inline-block;
  174. padding: 8px 16px;
  175. background: rgba(255, 255, 255, 0.2);
  176. border-radius: 20px;
  177. font-weight: bold;
  178. font-size: 18px;
  179. }
  180. .save-button {
  181. width: 100%;
  182. padding: 12px;
  183. background: rgba(255, 255, 255, 0.2);
  184. color: white;
  185. border: 2px solid rgba(255, 255, 255, 0.3);
  186. border-radius: 10px;
  187. font-size: 16px;
  188. cursor: pointer;
  189. transition: all 0.3s ease;
  190. margin-top: 15px;
  191. }
  192. .save-button:hover {
  193. background: rgba(255, 255, 255, 0.3);
  194. }
  195. .save-instructions {
  196. text-align: center;
  197. margin-top: 10px;
  198. font-size: 12px;
  199. opacity: 0.8;
  200. }
  201. @media (max-width: 600px) {
  202. .container {
  203. padding: 15px;
  204. }
  205. .card {
  206. padding: 20px;
  207. }
  208. .blue-theme .title {
  209. font-size: 1.5rem;
  210. }
  211. }
  212. .subtitle {
  213. text-align: center;
  214. font-size: 1rem;
  215. color: #666;
  216. margin-bottom: 25px;
  217. font-style: italic;
  218. }
  219. .blue-theme .error-message {
  220. background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  221. color: white;
  222. padding: 15px;
  223. border-radius: 10px;
  224. margin: 15px 0;
  225. text-align: center;
  226. font-weight: 500;
  227. animation: fadeIn 0.3s ease-in-out;
  228. }
  229. @keyframes fadeIn {
  230. from {
  231. opacity: 0;
  232. transform: translateY(-10px);
  233. }
  234. to {
  235. opacity: 1;
  236. transform: translateY(0);
  237. }
  238. }
  239. .footer {
  240. text-align: center;
  241. padding: 20px 0;
  242. margin-top: 30px;
  243. color: #666;
  244. font-size: 14px;
  245. }
  246. .blue-theme .footer-link {
  247. color: #abcbff;
  248. font-weight: 600;
  249. text-decoration: none;
  250. transition: all 0.3s ease;
  251. }
  252. .blue-theme .footer-link:hover {
  253. color: #8298d6;
  254. text-decoration: underline;
  255. }