/**
 * Topic Generation Demo Styles - Business Logic
 * 智能主题生成 - 业务逻辑样式
 */

.topic-generation-demo {
    background: var(--yali-card-bg, #ffffff);
    border-radius: var(--yali-radius-lg, 12px);
    box-shadow: var(--yali-shadow-lg, 0 8px 30px rgba(0,0,0,0.08));
    overflow: hidden;
    padding: 1rem;
}

/* Rule Section */
.rule-section {
    margin-bottom: 0.75rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
}

.type-icon {
    font-size: 1rem;
}

.type-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.type-count {
    font-size: 0.75rem;
    color: #64748b;
}

/* Core Logic */
.core-logic {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.625rem;
}

.logic-step {
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e8f0;
}

.logic-step.highlight {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.25);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logic-step.highlight .step-num {
    background: #22c55e;
    color: white;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.step-desc {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 28px;
    margin-top: 0.125rem;
}

/* Logic Arrow */
.logic-arrow {
    text-align: center;
    padding: 0.125rem 0;
    color: #cbd5e1;
    font-size: 0.75rem;
    margin-left: 10px;
}

/* Output Section */
.output-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 6px;
}

.output-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.output-num {
    font-size: 1.25rem;
    font-weight: 600;
    color: #475569;
    line-height: 1;
}

.output-unit {
    font-size: 0.75rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 480px) {
    .topic-generation-demo {
        padding: 0.875rem;
    }
}