/* 计算器17（抗拔灌注桩配筋及裂缝验算 - 在线计算工具）专属样式 — 由 jsq/calculator17.php 内联 <style> 收敛而来
   页面级作用域，不污染全局。如需去重公共组件，见 _audit_reports 技术债 #260。 */

.block-header {
        background: var(--primary-light); padding: 12px 20px;
        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; }

    /* 表格式输入 */
    .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; }

    /* ψc 参数说明 */
    .psi-help-icon {
        color: var(--primary); cursor: pointer; margin-left: 5px;
        font-size: 0.82rem; vertical-align: middle;
    }

    .psi-help-icon:hover { color: var(--primary-dark); }

    .psi-help-note {
        padding: 10px 12px; background: var(--primary-light);
        border-left: 3px solid var(--primary); border-radius: 0;
        font-size: 0.78rem; color: var(--text-secondary); line-height: 1.7;
        font-weight: 400; white-space: normal;
    }

    .psi-help-note strong { color: var(--primary-dark); }

    #psiHelpRow td { background: var(--gray-050); }

    /* 裂缝宽度限值说明 */
    .crack-help-icon {
        color: var(--primary); cursor: pointer; margin-left: 5px;
        font-size: 0.82rem; vertical-align: middle;
    }

    .crack-help-icon:hover { color: var(--primary-dark); }

    .crack-help-note {
        padding: 10px 12px; background: var(--primary-light);
        border-left: 3px solid var(--primary); border-radius: 0;
        font-size: 0.78rem; color: var(--text-secondary); line-height: 1.7;
        font-weight: 400; white-space: normal;
    }

    .crack-help-note strong { color: var(--primary-dark); }

    #crackHelpRow td { background: var(--gray-050); }

    .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); }

    .btn-warning { background: var(--warning); color: var(--gray-900); border: none; }

    .btn-warning:hover { background: var(--warning); }

    /* 强制左右等宽：minmax(0,1fr) 防止某一列内容过宽被撑大 */
    .calculator-wrapper {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 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); }

    @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%; }
        .psi-help-note { font-size: 0.76rem; padding: 8px 10px; }

        .result-value { text-align: left; margin-left: 0; }

    }

    @media (max-width: 380px) {

        .psi-help-note { font-size: 0.72rem; }

        .btn { font-size: 0.85rem; padding: 9px 14px; }
    }
