/* 
  乐建土木-在线工具CSS
  www.zhzux.com
  最后修改：2026.1.23
*/

/* 
几何计算工具CSS
 */

.container-jisuan {
  padding:20px;
  background-color:#f1f6f9;
  border-radius:15px;
  box-shadow:0 0 10px rgba(0,0,0,0.05)
}
.content-jihe{
    display: none;
}
.container-jisuan .active{
    display: block;
}
.form-row {
    margin-bottom: 10px;
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    align-items: center;
    
}
.form-row .label, .form-row .label-result {
    width: 100%;
    font-weight: bold;
    margin-right: 10px;
    flex: 0 0 200px;
    line-height: 1.5;
    font-size: 1.1em
    
}
.result-icon {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.form-row .input-container {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
}
.form-row input, .form-row .result-input {
    flex: 1;
    width:100%;
    font-size: 20px;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    -moz-appearance: textfield;
    height: 50px;
    padding: 0 15px;
    margin: 0 10px 0 0;
}
.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 .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;
}
.button-row{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 10px 10px;
    overflow: hidden;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.two-button-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px 20px;
    overflow: hidden;
    justify-content: space-between;
    width: 70%;
    margin: 0 auto;
}

button {
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #00c8ff;
    color: #FFF;
    width: 100%;
    height: 50px;
    font-weight: bold;
}

.button-row button{
    background-color: #d7ebf0;
    color: #333;
}
.button-row button.selected{
    background-color: #00c8ff;
    color: #FFF;
}


button#clearButton {
    background-color: #ffa41b;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 9px 9px;
}
button:hover {
    opacity: 0.9;
}
.result-box {
    padding: 0;
    background-color: #f4f9fc !important;
    border: 2px solid #e5f0f7 !important;
    color: #333;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
    flex: 1;
}
.result-input {
    width: 100%;
    padding: 0 12px;
    font-size: 24px;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    box-sizing: border-box;
    height: 50px;
    background-color: #f4f9fc !important;
    color: #333;
    pointer-events: none;
    flex: 1;
}
.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}


.content-jihe p {
	max-width: 400px;
	max-height: 260px;
	width: 400px;
	height: 260px;
	margin: 0px auto;
	background-size: contain; /* 让图片自适应元素 */
    background-repeat: no-repeat; /* 禁止重复 */
    background-position: center; /* 图片居中显示 */
}
#content1 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/cube-volume.jpg);
}
#content2 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Volume-of-cuboid.jpg);
}
#content3 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/cylinder-volume.jpg);
}
#content4 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/central-cylinder-volume.jpg);
}
#content5 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/volume-of-cylinder-with-inclined-base.jpg);
}
#content6 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/Volume-of-regular-hexagonal-prism.jpg);
}
#content7 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/frustum-volume.jpg);
}
#content8 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/sphere-volume.jpg);
}
#content9 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/cone-volume.jpg);
}
#content10 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/triangular-pyramid-volume.jpg);
}
#content11 p{
   background-image: url(https://www.zhzux.com/wp-content/themes/tongyong/img/spherical-void-volume.jpg);
}

@media screen and (max-width: 480px) {
    .container-jisuan {
        padding: 10px;
        font-size: 15px;
    line-height: 20px;
        width: 100%;
    }
    .content-jihe p {
        max-width: 80vw;
        max-height: 100%;
        width: 80vw;
        height: 180px;
	margin: 0px auto;
	background-size: contain; /* 让图片自适应元素 */
    background-repeat: no-repeat; /* 禁止重复 */
    background-position: center; /* 图片居中显示 */
}

button {
    font-size: 1.0em;
    border-radius: 5px;
    width: 100%;
    height: 38px;
    font-weight: 500;
}
.form-row .label, .form-row .label-result{
    flex: 0 0 150px;
    font-size: 1.0em;
    font-weight: 500;
}
.button-row{
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 10px;
    width: 100%;
}
.two-button-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px 20px;
    overflow: hidden;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
}
.sue-icon-text {
    margin-top: 20px;
    padding: 10px;
}
.sue-icon-text p {
    margin: 6px 0;
    line-height: 1.2;
    font-size: 0.9em;
}
}