/* ========== 翻模具体步骤 ========== */
.steps-flow {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 20px;
    scrollbar-width: thin;
}

.interaction-hint {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #eef5ff;
    border: 1px solid #bfd6ff;
    border-radius: 12px;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
}

.step-node {
    flex-shrink: 0;
    width: 128px;
    text-align: center;
    cursor: pointer;
    position: relative;
    padding: 14px 10px 12px;
    border-radius: 16px;
    background: white;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.step-node:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.step-node.active {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(26,95,180,0.12);
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 8px;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.step-node.active .step-num {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(26,95,180,0.2);
}

.step-node.completed .step-num {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
    transition: color 0.3s;
}

.step-label .en-sub {
    font-size: 10px;
    margin-top: 2px;
}

.step-node.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-connector {
    position: absolute;
    top: 39px;
    right: -14px;
    width: 16px;
    height: 2px;
    background: var(--border);
}

.step-node.completed .step-connector {
    background: var(--success);
}

.step-detail {
    margin-top: 0;
    padding: 24px;
    background: var(--bg);
    border-radius: 12px;
    display: none;
    min-height: 220px;
}

.step-detail.active {
    display: block;
}

.detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 20px;
    align-items: center;
}

.detail-panel.no-figure {
    grid-template-columns: 1fr;
}

.detail-image-frame {
    background: white;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    padding: 12px;
}

.detail-image {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

.detail-copy {
    padding: 8px 2px;
}

.text-keypoints {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.text-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid #d5dbe5;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.step-detail h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 20px;
}

.step-detail h3 .en-sub {
    font-size: 13px;
    margin-top: 6px;
}

.step-detail p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-detail p .en-sub {
    font-size: 12px;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .detail-panel { grid-template-columns: 1fr; }
    .steps-flow { gap: 4px; }
    .step-node { width: 98px; padding: 12px 8px; }
    .step-label { font-size: 10px; }
    .step-connector { display: none; }
}
