/* 流程圖區塊（沿用 op.css 的配色變數） */
.bmi-layout {
    max-width: 540px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.bmi-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 0 4px;
}

/* 基本節點外觀（共通底色 / 字型） */
.bmi-node {
    padding: 8px 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-soft);
    font-size: 14px;
    color: var(--text-main);
    text-align: center;
    min-width: 210px;
}

/* 平行四邊形：輸入 / 輸出 */
.bmi-io {
    border-radius: 0;
    border-color: rgba(56, 189, 248, 0.85);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.95));
    transform: skewX(-16deg);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.bmi-io > span {
    display: inline-block;
    transform: skewX(16deg);  /* 把文字拉正 */
}

/* 處理矩形：一般運算/處理 */
.bmi-proc {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

/* 說明較長時的稍微加寬 */
.bmi-node-small {
    font-size: 13px;
    min-width: 200px;
}

/* 公式節點：不加框，只用醒目文字 */
.bmi-node-formula {
    font-family: "Times New Roman", "Noto Serif TC", serif;
    font-style: italic;
    letter-spacing: 0.06em;
    font-size: 18px;
    background: none;
    border: 1px solid rgba(56, 189, 248, 0.85);
    color: var(--accent);
    text-align: left;
}

/* 垂直箭頭 */
.bmi-arrow {
    width: 2px;
    height: 40px;
    background: var(--text-main);
    position: relative;
}

.bmi-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    border-width: 7px 5px 0 5px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}
