/* ==========================================================================
   《物理 OL：火种重燃》第五章《透镜及其应用》专属样式表 (css/chapters/ch05-lens.css)
   暖调手作科学工坊 · 解谜手账风
   ========================================================================== */

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

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

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

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

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

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

/* 凸凹透镜切换开关 */
.lens-toggle-group {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.lens-toggle-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    border: 2px solid #222629;
    border-radius: 6px;
    background: #F1F5F9;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lens-toggle-btn.active {
    background: #3B82F6;
    color: #FFFFFF;
    box-shadow: 2px 2px 0 #222629;
    transform: translate(-1px, -1px);
}

/* BOSS 战望远镜调焦阵列 */
.telescope-focus-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0F172A;
    border: 2px solid #38BDF8;
    border-radius: 8px;
    padding: 8px 12px;
    color: #BAE6FD;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 8px;
}

.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;
}
