/* ========== 双表格并排布局 ========== */
.coins-param-dual {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}
.coins-param-table-wrapper {
    flex: 1;
    min-width: 400px;
    background: #0e0e18;
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid #2c2c3e;
}

/* ========== 表格基础样式 ========== */
.coins-param-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.5;
    background: #0e0e18;
}
.coins-param-table th,
.coins-param-table td {
    border: 1px solid #2c2c3e;
    padding: 6px 8px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

/* ----- 表头样式 ----- */
.coins-param-table th {
    color: #ffaa66 !important;
    background: #232333;
    padding: 8px 10px;
    text-align: center;
}
.coins-param-table th.th-left {
    text-align: left;
}

/* ----- 单元格角色样式 ----- */
.group-cell {
    color: #9bff9b !important;
    text-align: left;
    background: #0e0e18;
    font-weight: bold;
}
.param-key {
    color: #9bff9b !important;
    text-align: left;
}
.mc-red {
    color: #ff4d4d !important;
    font-weight: bold;
}
.macro-value {
    color: #9bff9b;
    background: #232333;
    text-align: center !important;
}
.current-value {
    color: #e0e0e0;
    text-align: center !important;
}

/* ----- 表格标题（caption）----- */
.coins-param-table caption {
    caption-side: top;
    background: #1e1e2c;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffaa66;
    text-align: left;
    border-bottom: 1px solid #2c2c3e;
}
.mode-red {
    color: #ff4d4d !important;
    font-weight: bold;
}

/* ----- 列宽控制 ----- */
.coins-param-table th:first-child,
.coins-param-table td:first-child {
    width: 15%;
}
.coins-param-table th:nth-child(2),
.coins-param-table td:nth-child(2) {
    width: 25%;
}
.coins-param-table th:nth-child(n+3),
.coins-param-table td:nth-child(n+3) {
    width: 7.5%;
}