/* 自定义样式 */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    /* 应用暧昧的深色背景 */
    background-color: #1a1a2e;
}
/* 拖放区域激活时的样式 */
.drag-active {
    background-color: #2a2a4e;
    border-color: #e94560;
}
/* 模式选择按钮激活时的样式 (使用渐变色) */
.mode-btn.active {
    background-image: linear-gradient(to right, #e94560, #9f7aea);
    color: white;
    border-color: transparent;
}
/* 隐藏原生文件输入框 */
#file-input {
    display: none;
}
/* 结果区域动画 */
.result-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.result-enter-active {
    opacity: 1;
    transform: translateY(0);
}
/* 加载动画 (更新为暧昧色调) */
.loader {
    border: 4px solid #2a2a4e;
    border-top: 4px solid #e94560;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 暧昧点缀动画 --- */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    background-color: rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    animation: float 25s infinite linear;
    opacity: 0;
}
.particle.heart::before, .particle.heart::after {
    content: '';
    position: absolute;
    background: rgba(233, 69, 96, 0.3);
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.particle.heart::before {
    top: -50%;
    left: 0;
}
.particle.heart::after {
    top: 0;
    left: 50%;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* --- 新增：模型状态指示器样式 --- */
.model-status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    max-width: 320px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 30, 46, 0.95);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: rgba(40, 40, 56, 0.95);
    border-color: rgba(233, 69, 96, 0.6);
    transform: scale(1.02);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.active {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.cooldown {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-dot.error {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.model-details {
    margin-top: 12px;
    background: rgba(30, 30, 46, 0.98);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.model-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(51, 51, 76, 0.5);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.model-item:hover {
    background: rgba(51, 51, 76, 0.8);
}

.model-item.active {
    border-left-color: #10b981;
}

.model-item.cooldown {
    border-left-color: #f59e0b;
}

/* 进度条样式 */
.progress-bar {
    height: 4px;
    background: rgba(100, 100, 130, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #e94560, #9f7aea);
    transition: width 0.3s ease;
}

/* 淡入淡出动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .model-status-indicator {
        top: 10px;
        right: 10px;
        max-width: 280px;
    }
}