/* 
  知筑建工宝典-在线工具CSS
  www.zhzux.com
  最后更新时间：2026年1月24日
*/

/* 
砖及砂浆用量计算工具CSS
 */
.main {
    width: 100%;
}

.container-jisuan {
    padding: 20px;
    background-color: #f1f6f9;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05)
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    margin-bottom: 10px;
    width: 100%;
    position: relative
}

.container-jisuan p.title {
    margin: 10px 0 15px 0;
    font-size: 1.4em;
    font-weight: bold;
}

.form-row .label,
.form-row .label-result {
    flex: 0 0 80px;
    font-size: 1.2em;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 3px
}

.form-row .label-result {
    display: flex;
    align-items: center
}

.result-icon {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    flex-shrink: 0
}

.form-row .input-container {
    flex: 1;
    gap: 5px;
    width: 100%;
    display: flex;
    align-items: center;
}

.form-row input,
.form-row select,
.form-row .result-input {
    flex: 1;
    padding: 0 0 0 12px;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color .3s;
    -moz-appearance: textfield;
    height: 50px;
    width: 80%;
    margin: 0 10px 10px 0
}

.form-row input,
.form-row .result-input {
    font-size: 24px
}

.form-row select {
    font-size: 18px !important;
}

.form-row select option {
    font-size: 16px !important;
}

.form-row input {
    background-color: #FFF
}

.form-row input::-webkit-outer-spin-button,
.form-row input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.form-row input:focus {
    border-color: #00c8ff
}

.form-row select:focus {
    border-color: #00c8ff
}

.form-row .unit {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #00b9eb;
    width: 60px;
    height: 50px;
    border: 2px solid #f1f6f9;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #FFF;
    margin: 0 0 10px 0
}

.button-row,
.two-button-row,
.one-button-row {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%
}

button {
    padding: 3px 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 23%;
    height: 50px;
    font-weight: bold
}

#clearButton {
    background-color: #ffa41b;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .1)25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .1)50%, rgba(255, 255, 255, .1)75%, transparent 75%, transparent);
    background-size: 9px 9px;
    color: white;
    margin: 0px auto;
}

button:hover {
    opacity: .9
}

.result-box {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center
}

input[type=number] {
    -moz-appearance: textfield
}

.result-input {
    background-color: #f4f9fc !important;
    border-color: #e5f0f7 !important;
    color: #333;
    pointer-events: none;
    flex: 1
}

.zhu-icon {
    position: relative;
    padding-left: 28px;
    display: inline-block;
    vertical-align: middle
}

.zhu-icon::before {
    content: '';
    background-image: url('/images/zhu.svg');
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 0;
    top: 4px;
    transform: translateY(0)
}

.sue-icon-text {
    margin-bottom: 0 !important;
    margin-top: 30px;
    border: 1px solid #98d3f9;
    padding: 15px;
}

.sue-icon-text p {
    margin: 6px 0;
    line-height: 20px;
    font-size: 14px;
}

.article-copyright {
    display: none !important
}

.miaoshu {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #FF0000;
}


.image-container {
    text-align: center;
    margin-bottom: 20px
}

.image-container p {
    max-width: 320px;
    max-height: 260px;
    width: 320px;
    height: 260px;
    margin: 0px auto;
    display: none;
    background-size: cover;
    /* 让图片覆盖整个元素 */
    background-repeat: no-repeat;
    /* 禁止重复 */
    background-position: center;
    /* 图片居中显示 */
}

.image-container p.active {
    display: block !important
}

.image-container p#halfBrickWallImage {
    background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Brick-wall-diagram-1.png);
}

.image-container p#oneBrickWallImage {
    background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Brick-wall-diagram-2.png);
}

.image-container p#oneAndHalfBrickWallImage {
    background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Brick-wall-diagram-3.png);
}

.image-container p#twoBrickWallImage {
    background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Brick-wall-diagram-4.png);
}


@media screen and (max-width:480px) {
    .container-jisuan {
        padding: 10px;
        font-size: 12px;
        width: 100%
    }

    .image-container p {
        height: 160px;
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;

    }

    .image-container {
        margin: 0 auto;
        height: 160px;
    }

    .form-row select {
        font-size: 1.3em !important;
    }

    .form-row .unit {
        font-size: 14px;
        height: 45px;
        margin: 0 0 0px 0;
    }

    .form-row input,
    .form-row select,
    .form-row .result-input {
        padding: 0 0 0 8px;
        height: 45px;
        width: 80%;
        font-size: 20px;
        margin: 0 0px 0px 0;
    }

    .form-row .label,
    .form-row .label-result {
        flex: 0 0 100px;
        font-size: 1.2em;
        font-weight: 500;
        margin-bottom: 0px
    }

    button {
        width: 24%;
        height: 45px;
        margin-bottom: 20px;
        font-size: 1.2em;
    }

    .container-jisuan p.title {
        margin: 10px 0 10px 0;
        font-size: 1.3em;
        font-weight: bold;
    }

    .container-jisuan p {
        line-height: 20px;
        font-size: 1.0em;
        margin: 5px 0;
        font-weight: 500;
        overflow: hidden;
    }

    .sue-icon-text {
        margin-bottom: 0 !important;
        margin-top: 20px;
        border: 1px solid #98d3f9;
        padding: 10px;
    }

    .sue-icon-text p {
        margin: 3px 0;
        line-height: 18px;
        font-size: 0.9em;
    }

}