| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- @import "tailwindcss";
- * {
- box-sizing: border-box;
- padding: 0;
- margin: 0;
- }
- html,
- body {
- max-width: 100vw;
- overflow-x: hidden;
- font-family: 'Arial', sans-serif;
- }
- body {
- background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
- min-height: 100vh;
- }
- a {
- color: inherit;
- text-decoration: none;
- }
- @media (prefers-color-scheme: dark) {
- html {
- color-scheme: dark;
- }
- }
- /* 蓝色主题样式 - 只在 .blue-theme 容器内生效 */
- .blue-theme .magic-background {
- background: linear-gradient(45deg, #4f46e5 0%, #7c3aed 50%, #3b82f6 100%);
- min-height: 100vh;
- position: relative;
- overflow: hidden;
- }
- .magic-background::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- 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);
- background-size: 50px 50px, 30px 30px, 40px 40px;
- animation: sparkle 6s ease-in-out infinite;
- }
- @keyframes sparkle {
- 0%,
- 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.7;
- }
- }
- .container {
- max-width: 500px;
- margin: 0 auto;
- padding: 20px;
- position: relative;
- z-index: 1;
- }
- .card {
- background: rgba(255, 255, 255, 0.95);
- border-radius: 20px;
- padding: 30px;
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
- margin-top: 100px;
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.3);
- }
- .blue-theme .title {
- text-align: center;
- font-size: 2rem;
- font-weight: bold;
- background: linear-gradient(45deg, #3b82f6, #1d4ed8, #1e40af);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- margin-bottom: 30px;
- }
- .input-group {
- margin-bottom: 20px;
- }
- .input-label {
- display: block;
- margin-bottom: 8px;
- font-weight: 600;
- color: #555;
- }
- .input-field {
- width: 100%;
- padding: 15px;
- border: 2px solid #e0e0e0;
- color: #333;
- border-radius: 12px;
- font-size: 16px;
- transition: all 0.3s ease;
- background: rgba(255, 255, 255, 0.8);
- }
- .blue-theme .input-field:focus {
- outline: none;
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
- }
- .blue-theme .generate-button {
- width: 100%;
- padding: 15px;
- background: linear-gradient(45deg, #3b82f6, #1d4ed8);
- color: white;
- border: none;
- border-radius: 12px;
- font-size: 18px;
- font-weight: bold;
- cursor: pointer;
- transition: all 0.3s ease;
- margin-bottom: 20px;
- }
- .blue-theme .generate-button:hover {
- transform: translateY(-2px);
- box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
- }
- .generate-button:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none;
- }
- .blue-theme .result-card {
- background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
- color: white;
- border-radius: 15px;
- padding: 25px;
- margin-top: 20px;
- position: relative;
- overflow: hidden;
- }
- .result-card::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- 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>');
- background-size: 100px 100px;
- }
- .title-container {
- display: flex;
- justify-content: center;
- align-items: center;
- margin-bottom: 1rem;
- background: transparent;
- }
- .result-content {
- position: relative;
- z-index: 1;
- }
- .result-item {
- margin-bottom: 20px;
- padding: 15px;
- background: rgba(255, 255, 255, 0.1);
- border-radius: 10px;
- backdrop-filter: blur(5px);
- }
- .result-label {
- font-weight: bold;
- font-size: 14px;
- opacity: 0.9;
- margin-bottom: 5px;
- }
- .result-value {
- font-size: 16px;
- line-height: 1.5;
- }
- .level-badge {
- display: inline-block;
- padding: 8px 16px;
- background: rgba(255, 255, 255, 0.2);
- border-radius: 20px;
- font-weight: bold;
- font-size: 18px;
- }
- .save-button {
- width: 100%;
- padding: 12px;
- background: rgba(255, 255, 255, 0.2);
- color: white;
- border: 2px solid rgba(255, 255, 255, 0.3);
- border-radius: 10px;
- font-size: 16px;
- cursor: pointer;
- transition: all 0.3s ease;
- margin-top: 15px;
- }
- .save-button:hover {
- background: rgba(255, 255, 255, 0.3);
- }
- .save-instructions {
- text-align: center;
- margin-top: 10px;
- font-size: 12px;
- opacity: 0.8;
- }
- @media (max-width: 600px) {
- .container {
- padding: 15px;
- }
- .card {
- padding: 20px;
- }
- .blue-theme .title {
- font-size: 1.5rem;
- }
- }
- .subtitle {
- text-align: center;
- font-size: 1rem;
- color: #666;
- margin-bottom: 25px;
- font-style: italic;
- }
- .blue-theme .error-message {
- background: linear-gradient(135deg, #3b82f6, #1d4ed8);
- color: white;
- padding: 15px;
- border-radius: 10px;
- margin: 15px 0;
- text-align: center;
- font-weight: 500;
- animation: fadeIn 0.3s ease-in-out;
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .footer {
- text-align: center;
- padding: 20px 0;
- margin-top: 30px;
- color: #666;
- font-size: 14px;
- }
- .blue-theme .footer-link {
- color: #abcbff;
- font-weight: 600;
- text-decoration: none;
- transition: all 0.3s ease;
- }
- .blue-theme .footer-link:hover {
- color: #8298d6;
- text-decoration: underline;
- }
|