luom2645's picture
Upload folder using huggingface_hub
9dd9a58 verified
Raw History Blame Contribute Delete
4.88 kB
@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; }
}