@charset "utf-8";

/* =========================
   鱼缸计算器专用样式 - 优化留白版
   对应当前 index.php 结构
   ========================= */

.mcon {
    margin: 18px 0 24px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-sizing: border-box;
}

/* ===== 输入表格外层更舒展 ===== */
.mcon .table1 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    overflow: hidden;
}

.mcon .table1 th,
.mcon .table1 td {
    border-right: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    padding: 16px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    vertical-align: middle;
    box-sizing: border-box;
}

.mcon .table1 tr:last-child th,
.mcon .table1 tr:last-child td {
    border-bottom: 0;
}

.mcon .table1 th:last-child,
.mcon .table1 td:last-child {
    border-right: 0;
}

.mcon .table1 th {
    width: 22%;
    background: #f7f9fc;
    color: #1f2d3d;
    font-weight: 700;
    text-align: left;
}

.mcon .table1 td {
    width: 28%;
    background: #fff;
}

.mcon .table1 tr:hover td,
.mcon .table1 tr:hover th {
    background: #fafcff;
}

/* ===== 输入框 ===== */
.mcon .inpt,
.mcon .sel {
    width: 140px;
    max-width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    vertical-align: middle;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-sizing: border-box;
}

.mcon .inpt:focus,
.mcon .sel:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
    outline: none;
    background: #fff;
}

/* ===== 提示文字 ===== */
.mcon .tips {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #999;
    font-weight: normal;
}

/* ===== 按钮 ===== */
.mcon .btn1 {
    min-width: 120px;
    height: 42px;
    line-height: 40px;
    padding: 0 20px;
    margin: 0 8px;
    border: 1px solid #1677ff;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.mcon .btn1:hover {
    background: #0f63d8;
    border-color: #0f63d8;
}

.mcon #btnReset {
    background: #fff;
    color: #1677ff;
    border-color: #bcd6ff;
}

.mcon #btnReset:hover {
    background: #eef5ff;
    color: #0f63d8;
}

/* ===== 结果区域 ===== */
.mcon .result {
    margin-top: 24px;
}

.mcon .result fieldset {
    margin: 0 0 20px;
    padding: 18px 18px 18px;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #fbfcfe;
    box-sizing: border-box;
}

.mcon .result fieldset:last-child {
    margin-bottom: 0;
}

.mcon .result legend {
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2d3d;
}

.mcon .result p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 2;
    color: #444;
}

.mcon .result p:last-child {
    margin-bottom: 0;
}

/* ===== 结果高亮 ===== */
.mcon .jgspan {
    display: inline-block;
    min-width: 46px;
    padding: 0 4px;
    color: #e53935;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

/* ===== 文本框 ===== */
.mcon .ttInpt {
    width: 100%;
    min-height: 82px;
    padding: 12px 14px;
    margin-top: 10px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.9;
    resize: vertical;
    box-sizing: border-box;
}

.mcon .ttInpt:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
    outline: none;
}

/* ===== 移动端 ===== */
@media screen and (max-width: 768px) {
    .mcon {
        margin: 14px 0 18px;
        padding: 12px;
        border-radius: 10px;
    }

    .mcon .table1,
    .mcon .table1 tbody,
    .mcon .table1 tr,
    .mcon .table1 th,
    .mcon .table1 td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .mcon .table1 {
        border-radius: 10px;
        overflow: hidden;
    }

    .mcon .table1 tr {
        border-bottom: 1px solid #e5eaf0;
    }

    .mcon .table1 tr:last-child {
        border-bottom: 0;
    }

    .mcon .table1 th,
    .mcon .table1 td {
        border-right: 0;
        border-bottom: 0;
    }

    .mcon .table1 th {
        padding: 14px 14px 8px;
        background: #f7f9fc;
    }

    .mcon .table1 td {
        padding: 10px 14px 14px;
        background: #fff;
    }

    .mcon .inpt,
    .mcon .sel {
        width: 100%;
        height: 40px;
    }

    .mcon .btn1 {
        width: calc(50% - 10px);
        margin: 6px 4px;
        min-width: 0;
    }

    .mcon .result {
        margin-top: 18px;
    }

    .mcon .result fieldset {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .mcon .result legend {
        font-size: 14px;
    }

    .mcon .result p {
        font-size: 13px;
        line-height: 1.9;
    }

    .mcon .jgspan {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .mcon {
        padding: 10px;
    }

    .mcon .table1 th {
        padding: 12px 12px 8px;
    }

    .mcon .table1 td {
        padding: 10px 12px 12px;
    }

    .mcon .btn1 {
        width: 100%;
        margin: 6px 0;
    }

    .mcon .result fieldset {
        padding: 12px;
    }

    .mcon .ttInpt {
        min-height: 74px;
    }
}