/* 计算器18（轴心受压灌注桩桩身强度验算 - 在线计算工具）专属样式 — 由 jsq/calculator18.php 内联 <style> 收敛而来
   页面级作用域，不污染全局。如需去重公共组件，见 _audit_reports 技术债 #260。 */

.calc-block {
        background: white; border-radius: 0;
        margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: 1px solid var(--gray-100); overflow: hidden;
    }

    .block-header {
        background: var(--primary-light); padding: 8px 14px;
        border-bottom: 2px solid var(--primary);
        font-weight: 600; font-size: 1.05rem; color: var(--primary-dark);
        display: flex; align-items: center; gap: 8px;
        cursor: pointer; user-select: none;
    }

    .block-header i { font-size: 1.1rem; }

    .block-content { padding: 10px 12px; }

    /* 表格式输入 */
    .param-table { width: 100%; border-collapse: collapse; }

    .param-table input, .param-table select {
        width: 100%; padding: 7px 10px; border: 1px solid var(--primary-light);
        border-radius: 0; font-size: 0.88rem; background: white;
        box-sizing: border-box; transition: 0.2s;
    }

    .param-table input:focus, .param-table select:focus {
        border-color: var(--primary); outline: none;
        box-shadow: 0 0 0 3px rgba(44,128,255,0.1);
    }

    .param-table select { cursor: pointer; }

    /* 说明图标 */
    .help-icon {
        color: var(--primary); cursor: pointer; margin-left: 5px;
        font-size: 0.82rem; vertical-align: middle;
    }

    .help-note {
        padding: 6px 10px; background: var(--primary-light);
        border-left: 3px solid var(--primary); border-radius: 0;
        font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5;
        font-weight: 400; white-space: normal;
    }

    .help-note strong { color: var(--primary-dark); }

    /* gamma 说明 */
    .gamma-help-note {
        padding: 6px 10px; background: var(--warning-50);
        border-left: 3px solid var(--warning); border-radius: 0;
        font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5;
        font-weight: 400; white-space: normal;
    }

    /* calc mode 样式 */
    .mode-select { display: flex; gap: 10px; flex-wrap: wrap; }

    .mode-option.active {
        border-color: var(--primary); background: var(--primary-light);
        color: var(--primary-dark);
    }

    /* 截面形状切换 */
    .shape-row td { background: var(--gray-050) !important; }

    .checkbox-cell input[type=checkbox] {
        width: auto; min-width: 18px; height: 18px; cursor: pointer;
        accent-color: var(--primary);
    }

    .action-buttons {
        display: flex; flex-wrap: wrap; gap: 12px;
        margin-top: 10px; justify-content: space-between;
    }

    .btn {
        padding: 10px 20px; border: none; 
        font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.2s;
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        flex: 1 1 auto; min-width: 120px;
    }

    .btn-primary { background: var(--primary); color: white; border: none; }

    .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(44,128,255,0.2); }

    .calculator-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100%;
    }

    .input-section, .result-section { min-width: 0; }

    .result-card {
        background: white; border-radius: 0; padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--gray-100);
    }

    .result-title {
        font-size: 1.05rem; font-weight: 700; color: var(--primary-dark);
        margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light);
        display: flex; align-items: center; gap: 8px;
    }

    .result-label { color: var(--gray-500); flex: 1; }

    .result-value { font-weight: 700; color: var(--primary); font-size: 1rem; margin-left: 12px; text-align: right; }

    .result-pass { color: var(--success); }

    .result-fail { color: var(--danger); }

    .summary-box {
        margin-top: 18px; padding: 18px; border-radius: 0;
        text-align: center;
    }

    .summary-box.pass { background: var(--success-50); border: 1px solid var(--success-50); }

    .summary-box.fail { background: var(--danger-50); border: 1px solid var(--danger-50); }

    .summary-box.info { background: var(--primary-light); border: 1px solid var(--primary-light); }

    @media (max-width: 768px) {
        .calculator-wrapper { grid-template-columns: 1fr !important; }
        .action-buttons { flex-direction: column; }
        .btn { width: 100%; min-width: unset; }

        .param-table td:first-child { white-space: normal; width: 44%; }

        .result-value { text-align: left; margin-left: 0; }

    }

    @media (max-width: 380px) {

        .btn { font-size: 0.85rem; padding: 9px 14px; }
    }
