/* Health calculators and reference pages: traditional utility-site layout. */
.yz-health-tool {
    padding-top: 2px;
    padding-bottom: 28px;
}

.yz-health-tool > .layui-row {
    margin-top: 0;
}

.yz-health-tool .layui-card {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #dce6ee;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(30, 68, 104, .035);
}

.yz-health-tool .layui-card-header {
    height: auto;
    min-height: 24px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e9ef;
    color: #29465e;
    line-height: 24px;
}

.yz-health-tool .layui-card-header.box__tit {
    position: relative;
    padding-left: 28px;
    font-size: 17px;
}

.yz-health-tool .layui-card-header.box__tit::before {
    position: absolute;
    top: 18px;
    left: 17px;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: #f39932;
    content: "";
}

.yz-health-tool .layui-card-body {
    padding: 20px;
    color: #4b6276;
    line-height: 1.85;
}

.yz-health-title {
    padding: 22px 24px 20px !important;
    background: linear-gradient(120deg, #edf7ff, #f9fcff);
}

.yz-health-title h1 {
    margin: 0;
    color: #203d56;
    font-size: 26px;
    line-height: 1.35;
}

.yz-health-title p {
    margin: 7px 0 0;
    color: #718697;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.65;
}

.yz-health-primary > .layui-card-body > .layui-row,
.yz-health-primary > .layui-card-body > .layui-form.layui-row {
    padding: 18px 12px;
    border: 1px solid #e4ebf1;
    border-radius: 6px;
    background: #fbfdff;
}

.yz-health-tool .layui-form-item {
    margin-bottom: 16px;
}

.yz-health-tool .layui-form-label {
    box-sizing: border-box;
    color: #36536b;
    font-weight: 600;
}

.yz-health-tool .layui-input,
.yz-health-tool .layui-textarea,
.yz-health-tool .layui-form-select .layui-input {
    height: 40px;
    border-color: #cad8e3;
    border-radius: 4px;
}

.yz-health-tool .layui-input:focus,
.yz-health-tool .layui-textarea:focus {
    border-color: #3b94cf !important;
    box-shadow: 0 0 0 3px rgba(31, 135, 201, .08);
}

.yz-health-tool .layui-input-block[style],
.yz-health-tool .layui-input-inline {
    width: auto !important;
    min-width: 180px;
}

.yz-health-tool .layui-btn,
.yz-health-tool input[type="button"] {
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #1787cf;
    color: #fff;
    line-height: 40px;
}

.yz-health-tool .layui-btn:hover,
.yz-health-tool input[type="button"]:hover {
    background: #0876b9;
}

.yz-health-tool .layui-font-red,
.yz-health-tool #results,
.yz-health-tool #tbsa,
.yz-health-tool #height-weight-result,
.yz-health-tool #drinkGallons {
    color: #e66b28 !important;
}

.yz-health-tool #height-weight-result,
.yz-health-tool #tbsa,
.yz-health-tool #results {
    min-height: 28px;
    margin-top: 12px;
    font-size: 18px;
}

.yz-health-tool .layui-table {
    margin: 12px 0;
    color: #405970;
}

.yz-health-tool .layui-table th,
.yz-health-tool .layui-table td {
    padding: 11px 13px;
    border-color: #dfe7ee;
}

.yz-health-tool .layui-table tr:first-child td,
.yz-health-tool .layui-table thead th {
    background: #f2f7fb;
    color: #2e4c64;
    font-weight: 700;
}

.yz-health-tool .layui-text h3,
.yz-health-tool .layui-text h4 {
    margin-top: 20px;
    color: #29475f;
}

.yz-health-tool .layui-text p,
.yz-health-tool .texts {
    margin-bottom: 10px;
    color: #4d6477;
    line-height: 1.9;
}

.yz-health-sidebar .layui-card-body {
    font-size: 14px;
}

.yz-health-sidebar .layui-card-body.layui-row {
    margin: 0;
}

.yz-health-sidebar .layui-card-body li {
    width: 100%;
    padding: 0 !important;
}

.yz-health-sidebar .layui-card-body li a {
    display: block;
    padding: 9px 3px;
    border-bottom: 1px dashed #dfe7ed;
    color: #456078;
}

.yz-health-sidebar .layui-card-body li a:hover {
    color: #147dc1;
}

.yz-health-vaccine .yz-health-primary > .layui-card-body,
.yz-health-yangsheng .yz-health-primary > .layui-card-body,
.yz-health-abo .yz-health-primary > .layui-card-body {
    overflow-x: auto;
}

.yz-health-vaccine .layui-table,
.yz-health-yangsheng .layui-table {
    min-width: 720px;
}

.yz-health-muscle #muscle_myDiv {
    overflow-x: auto;
    padding-bottom: 8px;
}

.yz-health-muscle #muscles {
    display: block;
    max-width: none;
    margin: 12px auto 0;
}

.yz-health-snsn .ulTools {
    padding: 8px 16px;
    border: 1px solid #e2e9ef;
    border-radius: 5px;
    background: #fbfdff;
}

.yz-health-snsn .ulTools li {
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    padding: 9px 6px;
    border-bottom: 1px dashed #e2e9ef;
    line-height: 24px;
}

.yz-health-snsn .ulTools li span {
    width: 44%;
    color: #344f66;
}

.yz-health-snsn .ulTools li label {
    width: 26%;
    color: #5d7182;
}

.yz-health-snsn .toolsr {
    box-sizing: border-box;
    width: 100%;
    margin: 18px auto 0;
    border: 1px solid #cfe1ed;
    border-radius: 5px;
    background: #f2f9fd;
}

.yz-health-safe-period .Calendar {
    overflow-x: auto;
}

.yz-safe-form {
    box-sizing: border-box;
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px solid #e1e9ef;
    border-radius: 6px;
    background: #fbfdff;
}

.yz-safe-field {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.yz-safe-field > label {
    color: #36536b;
    font-weight: 600;
    text-align: right;
}

.yz-safe-control {
    display: grid;
    grid-template-columns: minmax(0, 210px) 24px;
    align-items: center;
    gap: 8px;
}

.yz-safe-date-control {
    display: grid;
    grid-template-columns: minmax(90px, 1.35fr) 20px minmax(64px, 1fr) 20px minmax(64px, 1fr) 20px;
    align-items: center;
    gap: 7px;
}

.yz-safe-control > span,
.yz-safe-date-control > span {
    color: #60778b;
    text-align: center;
}

.yz-safe-submit {
    padding-top: 4px;
    text-align: center;
}

.yz-health-safe-period .m-result-tit {
    margin-top: 18px;
}

.yz-health-safe-period .CalendarFoot > div {
    overflow-x: auto;
}

/* BMI 详情页：表单、结果和参考表保持等高对齐。 */
.yz-bmi-primary > .layui-card-body.yz-bmi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    padding: 20px;
}

.yz-bmi-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7ee;
    border-radius: 6px;
    background: #fff;
}

.yz-bmi-panel > h2 {
    box-sizing: border-box;
    min-height: 46px;
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #e3eaf0;
    background: #f6f9fc;
    color: #2e4b64;
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
}

.yz-bmi-panel-body {
    padding: 14px;
}

.yz-bmi-form-panel .layui-input-group {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    width: 100%;
}

.yz-bmi-form-panel .layui-input-prefix {
    box-sizing: border-box;
    display: flex;
    width: auto;
    align-items: center;
    white-space: nowrap;
}

.yz-bmi-page .yz-bmi-panel .layui-table {
    width: 100%;
    margin: 0;
}

.yz-bmi-page .yz-bmi-panel .layui-table th,
.yz-bmi-page .yz-bmi-panel .layui-table td {
    padding: 10px 11px;
}

.yz-bmi-result-panel .layui-table td:first-child {
    background: #f6f9fc;
    color: #36536a;
    font-weight: 600;
}

.yz-bmi-result-note {
    margin: 11px 0 0;
    color: #8796a5;
    font-size: 12px;
    line-height: 1.6;
}

/* 标准体重页的身高选项较多，下拉层需要越过计算卡片显示。 */
.yz-health-weights .yz-health-primary {
    position: relative;
    z-index: 5;
    overflow: visible;
}

.yz-health-weights .yz-health-primary .yz-health-title {
    border-radius: 7px 7px 0 0;
}

@media (max-width: 767px) {
    .yz-health-tool {
        padding-bottom: 18px;
    }

    .yz-health-tool .layui-card-body {
        padding: 15px 13px;
    }

    .yz-health-title {
        padding: 18px 14px 16px !important;
        text-align: left !important;
    }

    .yz-health-title h1 {
        font-size: 22px;
    }

    .yz-health-primary > .layui-card-body > .layui-row,
    .yz-health-primary > .layui-card-body > .layui-form.layui-row {
        padding: 13px 5px;
    }

    .yz-health-tool .layui-form-label {
        float: none;
        width: auto;
        padding: 7px 0;
        text-align: left;
    }

    .yz-health-tool .layui-input-block,
    .yz-health-tool .layui-input-inline {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0;
    }

    .yz-health-tool .layui-form-mid {
        padding: 7px 0 !important;
    }

    .yz-health-tool .layui-btn,
    .yz-health-tool input[type="button"] {
        min-width: 110px;
    }

    .yz-health-snsn .ulTools {
        padding: 7px 10px;
    }

    .yz-health-snsn .ulTools li span,
    .yz-health-snsn .ulTools li label {
        float: none;
        display: block;
        width: auto;
    }

    .yz-bmi-primary > .layui-card-body.yz-bmi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 13px;
    }

    .yz-bmi-form-panel .layui-input-group {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .yz-safe-form {
        padding: 17px 14px;
    }

    .yz-safe-field {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 15px;
    }

    .yz-safe-field > label {
        text-align: left;
    }

    .yz-safe-control {
        grid-template-columns: minmax(0, 1fr) 24px;
    }

    .yz-safe-date-control {
        grid-template-columns: minmax(74px, 1.35fr) 18px minmax(54px, 1fr) 18px minmax(54px, 1fr) 18px;
        gap: 4px;
    }
}
