@charset "utf-8";

/* =========================
   电容计算器最终修复版
   ========================= */

/* 核心容器 */
.mcon.pb10 {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* 表格布局 */
.table1 {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    table-layout: fixed;
}

.table1 th,
.table1 td {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
    border: none;
}

/* 左列标题 */
.table1 th {
    width: 28%;
    min-width: 100px;
    text-align: right;
    color: #5e6d82;
    font-weight: 500;
    background-color: transparent;
    white-space: nowrap;
}

/* 右列内容 */
.table1 td {
    text-align: left;
    background-color: transparent;
    word-break: break-word;
}

/* 输入框 */
.inpt {
    width: 180px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 聚焦样式 */
.inpt:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
    outline: none;
}

/* 只读结果框 */
input.inpt[readonly] {
    background-color: #f5f7fa;
    border-color: #e4e7ed;
    color: #ff4d4f;
    font-weight: 600;
    cursor: default;
}

/* 单位文字 */
.unit-text {
    color: #909399;
    font-size: 13px;
    margin-left: 8px;
    white-space: nowrap;
    vertical-align: middle;
    display: inline-block;
}

/* 计算结果标题 */
.smallTitle {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background-color: transparent;
    padding: 10px !important;
    text-align: center !important;
}

/* 按钮行 */
.action-row {
    text-align: center !important;
    padding: 15px 12px 12px 12px !important;
}

/* 按钮横向排列 + 居中 */
.action-row .btn1 {
    display: inline-block;
    margin: 0 6px;
}

/* 按钮 */
.btn1 {
    min-width: 110px;
    height: 38px;
    padding: 0 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 计算按钮 */
#btnCalculat1 {
    background: #1677ff;
    color: #fff;
    border: none;
}

#btnCalculat1:hover {
    background: #4096ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.2);
}

/* 重置按钮 */
input[type="reset"] {
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
}

input[type="reset"]:hover {
    background: #f5f7fa;
    border-color: #1677ff;
    color: #1677ff;
}

/* =========================
   移动端修复
   ========================= */
@media screen and (max-width: 768px) {
    .mcon.pb10 {
        padding: 12px;
        margin: 0 0 12px 0;
        border-radius: 10px;
    }

    .nry_bt h1 {
        font-size: 38px;
    }

    .table1,
    .table1 tbody,
    .table1 tr,
    .table1 th,
    .table1 td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .table1 tr {
        margin-bottom: 2px;
    }

    .table1 th {
        text-align: left !important;
        padding: 6px 0 2px;
        white-space: normal;
        font-size: 13px;
        line-height: 1.4;
    }

    .table1 td {
        padding: 2px 0 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    /* 输入框不要占满整行，给单位留空间 */
    .inpt {
        width: 68%;
        max-width: 220px;
        min-width: 120px;
        height: 34px;
        display: inline-block;
        vertical-align: middle;
    }

    /* 单位跟在输入框后面，不强制换行 */
    .unit-text {
        display: inline-block;
        margin-left: 6px;
        margin-top: 0;
        white-space: nowrap;
        vertical-align: middle;
        font-size: 12px;
    }

    /* 结果标题 */
    .smallTitle {
        padding: 8px 0 !important;
    }

    /* 按钮改为竖排全宽 */
    .action-row {
        text-align: center !important;
        padding: 10px 0 !important;
    }

    .action-row .btn1 {
        display: block;
        width: 100%;
        margin: 0 0 8px 0;
    }

    .action-row .btn1:last-child {
        margin-bottom: 0;
    }
}