File size: 4,881 Bytes
9dd9a58 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | @tailwind base;
@tailwind components;
@tailwind utilities;
/* 自定义样式 */
@layer base {
body {
@apply font-primary bg-primary-bg text-text-primary;
background-image:
radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
linear-gradient(135deg, theme('colors.primary-bg') 0%, rgba(15, 30, 55, 1) 100%);
background-attachment: fixed;
min-height: 100vh;
overflow-x: hidden;
}
* {
@apply box-border;
}
}
@layer components {
.glass-panel {
@apply bg-panel-bg backdrop-blur-lg border border-border-color shadow-dark rounded-xl transition-all duration-300;
}
.glass-panel:hover {
@apply border-border-glow shadow-glow-sm transform -translate-y-1;
box-shadow: theme('boxShadow.dark'), inset 0 0 20px rgba(100, 255, 218, 0.1);
}
.cyber-btn {
@apply inline-flex items-center gap-2 px-6 py-3 border border-transparent rounded-lg font-medium transition-all duration-200 relative overflow-hidden;
}
.cyber-btn::before {
content: '';
@apply absolute top-0 left-0 w-full h-full bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full transition-transform duration-300;
}
.cyber-btn:hover::before {
@apply translate-x-full;
}
.cyber-btn-primary {
@apply bg-gradient-to-r from-accent-cyan to-accent-blue text-primary-bg shadow-glow-sm;
}
.cyber-btn-primary:hover {
@apply shadow-glow-md transform -translate-y-1;
}
.cyber-btn-secondary {
@apply bg-transparent text-accent-cyan border-accent-cyan;
}
.cyber-btn-secondary:hover {
@apply bg-accent-cyan/10 shadow-glow-sm;
}
.cyber-input {
@apply w-full px-4 py-3 bg-secondary-bg/80 border border-border-color rounded-lg text-text-primary transition-all duration-200;
}
.cyber-input:focus {
@apply outline-none border-accent-cyan shadow-glow-sm bg-secondary-bg;
}
.cyber-input::placeholder {
@apply text-text-secondary;
}
.nav-item {
@apply flex items-center px-6 py-4 mx-1 my-1 cursor-pointer transition-all duration-200 relative border-l-4 border-transparent;
}
.nav-item:hover {
@apply bg-accent-cyan/10 border-l-accent-cyan transform translate-x-1;
}
.nav-item.active {
@apply bg-accent-cyan/15 border-l-accent-cyan;
box-shadow: inset 0 0 10px rgba(100, 255, 218, 0.2);
}
.status-indicator {
@apply w-3 h-3 rounded-full animate-pulse-glow;
}
.status-indicator.active {
@apply bg-success-green;
box-shadow: 0 0 8px theme('colors.success-green');
}
.status-indicator.processing {
@apply bg-accent-blue;
box-shadow: 0 0 8px theme('colors.accent-blue');
}
.status-indicator.waiting {
@apply bg-text-secondary;
}
.status-indicator.error {
@apply bg-danger-red;
box-shadow: 0 0 8px theme('colors.danger-red');
}
.progress-bar {
@apply w-full h-1 bg-border-color rounded-full overflow-hidden;
}
.progress-fill {
@apply h-full bg-gradient-to-r from-accent-blue to-accent-cyan rounded-full transition-all duration-500 relative;
}
.progress-fill::after {
content: '';
@apply absolute inset-0 bg-gradient-to-r from-white/20 to-transparent;
background-size: 50px 50px;
animation: progressStripes 2s linear infinite;
}
@keyframes progressStripes {
0% { background-position: 0 0; }
100% { background-position: 50px 0; }
}
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
@apply bg-secondary-bg;
}
::-webkit-scrollbar-thumb {
@apply bg-border-color rounded;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-accent-cyan/50;
}
/* 动画 */
@keyframes logoGlow {
0%, 100% {
filter: drop-shadow(0 0 5px #64FFDA);
}
50% {
filter: drop-shadow(0 0 15px #64FFDA);
}
}
.logo-glow {
animation: logoGlow 3s ease-in-out infinite alternate;
}
/* 粒子背景效果 */
.particles-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background: #64FFDA;
border-radius: 50%;
opacity: 0.7;
animation: float 20s linear infinite;
}
@keyframes float {
0% {
transform: translateY(100vh) translateX(0);
opacity: 0;
}
10% {
opacity: 0.7;
}
90% {
opacity: 0.7;
}
100% {
transform: translateY(-10vh) translateX(100px);
opacity: 0;
}
}
/* 打字效果 */
.typewriter {
overflow: hidden;
border-right: 2px solid #64FFDA;
white-space: nowrap;
animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink-caret {
from, to { border-color: transparent; }
50% { border-color: #64FFDA; }
} |