/* ==========================================================================
   《物理 OL：火种重燃》第六章《质量与密度》专属样式表 (css/chapters/ch06-density.css)
   暖调手作科学工坊 · 解谜手账风
   ========================================================================== */

#ch6-stage1-canvas,
#ch6-stage2-canvas,
#ch6-stage3-canvas,
#ch6-stage4-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    background: #FAF6EE;
    touch-action: none;
}

/* 关卡专属高精仪表卡 */
.density-param-card {
    background: #FFFDF9;
    border: 2px solid #222629;
    box-shadow: 3px 3px 0 #222629;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.density-param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.density-param-cell {
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
}

.density-param-cell .label {
    font-size: 11px;
    color: #64748B;
    font-weight: bold;
}

.density-param-cell .val {
    font-size: 15px;
    font-weight: 900;
    color: #1E293B;
    font-family: 'JetBrains Mono', monospace;
}

/* 砝码盘与操作按钮 */
.weights-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.btn-weight {
    background: #FFFBEB;
    border: 1.5px solid #D97706;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 900;
    color: #92400E;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.btn-weight:hover {
    background: #FEF3C7;
    transform: translateY(-1px);
}

.btn-weight.active {
    background: #F59E0B;
    color: #FFFFFF;
    border-color: #B45309;
}

.eng-calib-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.eng-calib-btn {
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    border: 2px solid #222629;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 600;
}

.eng-calib-btn:hover {
    background: #FEF3C7;
}

.eng-calib-btn.active {
    background: #DBEAFE;
    border-color: #1D4ED8;
    color: #1E3A8A;
    box-shadow: 2px 2px 0 #1E293B;
    font-weight: 800;
}
