/* Blog Article Page Styles */

.article-header {
    /* 默认渐变色，每篇文章可通过内联 style 覆盖 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    color: white;
    margin-top: 56px;
}

.article-content {
    padding: 60px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 700;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #4a5568;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    color: #4a5568;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    color: #4a5568;
}

.article-meta {
    padding: 20px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.highlight-box {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    color: #667eea;
}

/* ===== 文章内 CSS 示意图组件 ===== */

/* 通用示意图容器 */
.diagram-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 30px 0;
    text-align: center;
    overflow-x: auto;
}

.diagram-container .diagram-title {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 流程图：横向箭头连接的节点 */
.flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.flow-node {
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    position: relative;
}

.flow-node .node-icon {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 6px;
}

.flow-node .node-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.flow-node .node-desc {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
}

.flow-node.node-green  { border-color: #28a745; }
.flow-node.node-green .node-icon  { color: #28a745; }
.flow-node.node-orange { border-color: #fd7e14; }
.flow-node.node-orange .node-icon { color: #fd7e14; }
.flow-node.node-red    { border-color: #dc3545; }
.flow-node.node-red .node-icon    { color: #dc3545; }
.flow-node.node-blue   { border-color: #007bff; }
.flow-node.node-blue .node-icon   { color: #007bff; }

.flow-arrow {
    font-size: 1.4rem;
    color: #cbd5e0;
    padding: 0 8px;
    flex-shrink: 0;
}

/* 层级图：纵向堆叠的层 */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.layer-bar {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    gap: 12px;
}

.layer-bar .layer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.layer-bar .layer-info {
    flex: 1;
    text-align: left;
}

.layer-bar .layer-info .layer-name {
    font-size: 1rem;
    font-weight: 700;
}

.layer-bar .layer-info .layer-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

.layer-bar .layer-pct {
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* 生命周期图：带状态标记的步骤 */
.lifecycle-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    max-width: 150px;
    padding: 0 6px;
}

.lifecycle-step .step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.lifecycle-step .step-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2d3748;
    margin-bottom: 2px;
}

.lifecycle-step .step-desc {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.3;
}

.lifecycle-arrow {
    display: flex;
    align-items: center;
    color: #cbd5e0;
    font-size: 1.2rem;
    padding-top: 0;
    margin-top: 14px;
    flex-shrink: 0;
}

/* 响应式：小屏幕纵向排列 */
@media (max-width: 640px) {
    .flow-row,
    .lifecycle-steps {
        flex-direction: column;
        align-items: center;
    }
    .flow-arrow,
    .lifecycle-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
        margin-top: 0;
    }
}
