@charset "utf-8";

/* =========================
   百分比计算器专用样式 - 精致紧凑版
   ========================= */

.mcon {
    margin: 10px 0 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-sizing: border-box;
}

/* ===== 表格外层优化 ===== */
.mcon .table1 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px; /* 多个表格之间的间距 */
}

/* 标题行样式优化 */
.mcon .smallTitle {
    background: #fcfdfe !important;
    color: #475669 !important;
    font-size: 14px !important;
    padding: 12px !important;
    border-bottom: 1px solid #edf1f7 !important;
    text-align: center;
    letter-spacing: 0.5px;
}

.mcon .table1 th,
.mcon .table1 td {
    border-bottom: 1px solid #f4f7f9;
    padding: 12px 15px; /* 缩小内边距，更紧凑 */
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 调整百分比页面的列宽，让标签不要占那么大地方 */
.mcon .table1 th {
    width: 35%; 
    background: #f9fafc; /* 更浅的背景色 */
    color: #5e6d82;
    font-weight: 500;
    text-align: right; /* 改为右对齐，视觉更统一 */
}

.mcon .table1 td {
    background: #fff;
    text-align: left;
}

.mcon .table1 tr:last-child th,
.mcon .table1 tr:last-child td {
    border-bottom: 0;
}

/* ===== 输入框精致化 ===== */
.mcon .inpt {
    width: 120px; /* 适当减小宽度 */
    height: 36px; /* 降低高度 */
    line-height: 34px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    color: #606266;
    font-size: 14px;
    transition: all .2s cubic-bezier(.645,.045,.355,1);
}

.mcon .inpt:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
    outline: none;
}

/* ===== 按钮精致化 ===== */
.mcon .btn1 {
    min-width: 100px;
    height: 36px;
    line-height: 34px;
    padding: 0 24px;
    background: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 18px; /* 圆角按钮更显精致 */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 2px 4px rgba(22, 119, 255, 0.2);
}

.mcon .btn1:hover {
    background: #4096ff;
    border-color: #4096ff;
    box-shadow: 0 4px 8px rgba(22, 119, 255, 0.3);
    transform: translateY(-1px);
}

/* ===== 结果显示 ===== */
.red {
    color: #ff4d4f !important;
    font-size: 16px;
    font-weight: 700;
    font-family: Consolas, Monaco, "Courier New", monospace; /* 数字使用等宽字体更专业 */
}

/* ===== 移动端适配：防止字体过大过宽 ===== */
@media screen and (max-width: 768px) {
    .mcon {
        padding: 10px;
    }
    
    .mcon .table1 th {
        width: 40%;
        padding: 10px;
        font-size: 13px;
    }

    .mcon .table1 td {
        padding: 10px;
    }

    .mcon .inpt {
        width: 100px;
        height: 34px;
    }

    .mcon .smallTitle {
        font-size: 13px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 极小屏幕下保持一行显示，不强制换行块显示，这样更像工具 */
    .mcon .table1 th {
        font-size: 12px;
    }
    .mcon .inpt {
        width: 80px;
    }
}