/* ================================================================
 * DS Automation v6.6.0 — 营销自动化
 * ================================================================ */

:root {
    --ds-auto-primary: #8b5cf6;
    --ds-auto-bg: #f8fafc;
    --ds-auto-card: #ffffff;
    --ds-auto-text: #0f172a;
    --ds-auto-text-2: #64748b;
    --ds-auto-border: #e2e8f0;
    --ds-auto-success: #10b981;
    --ds-auto-warn: #f59e0b;
    --ds-auto-error: #ef4444;
}

.ds-auto-event-card {
    background: var(--ds-auto-card);
    border: 1px solid var(--ds-auto-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.ds-auto-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.ds-auto-event-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 22px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border-radius: 10px;
    margin-right: 12px;
    vertical-align: middle;
}
.ds-auto-event-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ds-auto-text);
}
.ds-auto-event-desc {
    font-size: 12px;
    color: var(--ds-auto-text-2);
    margin-top: 4px;
}

.ds-auto-step {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(90deg, #f1f5f9 0%, #fff 100%);
    border-left: 4px solid var(--ds-auto-primary);
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}
.ds-auto-step-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--ds-auto-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}
.ds-auto-step-type {
    font-weight: 600;
    color: var(--ds-auto-text);
    margin-right: 12px;
}
.ds-auto-step-delay {
    margin-left: auto;
    font-size: 12px;
    color: var(--ds-auto-text-2);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
}

.ds-auto-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.ds-auto-badge-on { background: #d1fae5; color: #065f46; }
.ds-auto-badge-off { background: #f1f5f9; color: #64748b; }
.ds-auto-badge-run { background: #fef3c7; color: #92400e; }
.ds-auto-badge-success { background: #d1fae5; color: #065f46; }
.ds-auto-badge-fail { background: #fee2e2; color: #991b1b; }

.ds-auto-progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}
.ds-auto-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 3px;
    transition: width 0.3s;
}

.ds-auto-tip {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 12px 16px;
    color: #5b21b6;
    font-size: 13px;
    margin-bottom: 16px;
}

.ds-auto-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 768px) {
    .ds-auto-grid-2 { grid-template-columns: 1fr; }
}

/* 暗黑 */
@media (prefers-color-scheme: dark) {
    :root {
        --ds-auto-bg: #0f172a;
        --ds-auto-card: #1e293b;
        --ds-auto-text: #f1f5f9;
        --ds-auto-text-2: #94a3b8;
        --ds-auto-border: #334155;
    }
    .ds-auto-step { background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%); }
}
