/* NeoAI GC 自定义样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    background: #7C4DFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00E5FF;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #7C4DFF, #00E5FF, #FF4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮悬停效果 */
button {
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

button:active {
    transform: scale(0.98);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(124, 77, 255, 0.3);
}

/* 输入框样式 */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #2D2D2D;
    border-radius: 8px;
    background: #2D2D2D;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #7C4DFF;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #666;
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed #2D2D2D;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #7C4DFF;
    background: rgba(124, 77, 255, 0.05);
}

.upload-area.dragover {
    border-color: #00E5FF;
    background: rgba(0, 229, 255, 0.1);
}

/* 进度条 */
.progress-bar {
    height: 4px;
    background: #2D2D2D;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7C4DFF, #00E5FF);
    transition: width 0.3s ease;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: rgba(124, 77, 255, 0.1);
    color: #7C4DFF;
}

.status-processing {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
}

.status-completed {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
}

.status-failed {
    background: rgba(255, 23, 68, 0.1);
    color: #FF1744;
}

/* 模板卡片 */
.template-card {
    background: #1E1E1E;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    border-color: #7C4DFF;
    transform: translateY(-4px);
}

.template-card.selected {
    border-color: #7C4DFF;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
}

.template-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover img {
    transform: scale(1.05);
}

/* Toast 通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, #00C853, #64DD17);
}

.toast-error {
    background: linear-gradient(135deg, #FF1744, #FF5252);
}

.toast-info {
    background: linear-gradient(135deg, #7C4DFF, #00E5FF);
}

/* 加载动画 */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #7C4DFF;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 16px !important;
    }
}
