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

/* 
钢筋锚固长度计算CSS
 */


/* 计算器容器样式 */
.container-jisuan {
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-size: 14px;
    line-height: 24px;
}

/* 标题样式 */
.section-title {
    background-color: #00c8ff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px 5px 0px 0px;
    font-size: 1.25em;
}

/* 表单行样式 */
.form-row,
.form-row-gui {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

/* 标签样式 */
.label {
    display: block;
    margin: 15px;
    font-weight: bold;
    font-size: 1.2em;
    color: #555;
    line-height: 22px;
}

/* 描述样式 */
.miaoshu {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #7f8c8d;
}

/* 输入容器样式 */
.input-container {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.input-container input {
    height: 40px;
    margin-bottom: 0;
}

/* 钢筋图标 */
.rebar-icon {
    width: 28px;
    height: 25px;
}

/* 下拉框和输入框样式 */
.dropdown,
.input-field {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    background-color: #fff;
}

/* 输入错误状态 */
.input-error {
    border-color: #7f8c8d !important;
    background-color: #fff2f0;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-grow: 1;
}

.button-group::-webkit-scrollbar {
    display: none;
}

.button-group button {
    flex: 0 0 auto;
    margin: 5px 8px;
    padding: 8px 10px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    background-color: #e5f0f7;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.button-group button.active {
    background-color: #00c8ff;
    color: #fff;
}

/* 结果容器 */
.result-container {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    padding: 20px 10px;
    background-color: #e5f0f7;
    border-radius: 8px;
    margin-top: 20px;
}

.result-unit {
    font-size: 16px;
}

/* 手风琴样式 */
.accordion {
    background-color: #e5f0f7;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-size: 18px;
    font-weight: bold;
}

.accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion.active:after {
    content: '\2212';
}

/* 面板样式 */
.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* 公式样式 */
.formula {
    font-size: 18px;
    margin: 10px 0;
}

/* 复选框容器 */
.checkbox-container {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 12px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

/* 下拉框容器 */
.dropdown-container {
    position: relative;
    display: inline-block;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    overflow: visible;
    padding: 3px;
    background-color: #fff;
    margin-right: 10px;
}

.dropdown-container-20 {
    width: 20%;
}

.dropdown-container-30 {
    width: 30%;
}

.dropdown-container-50 {
    width: 50%;
}

/* 下拉按钮 */
.dropdown-btn {
    width: 100%;
    font-size: 1.2em;
    padding: 10px;
    height: 40px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-btn:after {
    content: '\25BC';
    font-size: 0.5em;
    transition: transform 0.3s ease;
    color: #00c8ff;
}

.dropdown-container.open .dropdown-btn:after {
    transform: rotate(180deg);
}

/* 下拉内容 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 5px;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
}

.dropdown-content div {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown-content div:hover {
    background-color: #f1f1f1;
}

.dropdown-content div.selected {
    background-color: #e6e6e6;
}

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #e5f0f7;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    flex: 1;
    padding: 3px;
}

.input-with-icon .rebar-icon {
    flex: 0 0 32px;
    width: 32px !important;
    margin: 0;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 10px 10px 44px;
    font-size: 24px;
    border: none;
    outline: none;
    text-align: center;
}

/* 滑块容器 */
.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.slider-button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
}

/* 复选框样式 */
.checkbox-container input[type="checkbox"] {
    margin-right: 5px;
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-top: 0px;
}

.checkbox-container label {
    margin-right: 20px;
    margin-bottom: 0px;
}

/* 保护层选项 */
#protectionLayerOptions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#protectionLayerOptions>div {
    margin-right: 30px;
    display: flex;
    font-size: 16px;
}

#protectionLayerOptions>div label {
    margin: 5px;
}

#customProtection {
    width: 90px;
    padding-left: 10px;
    font-size: 0.95em;
}

/* 图标文本样式 */
.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: 18px;
    font-size: 0.9em;
}

/* 图片样式 */
.yiju_img img {
    width: 100%;
    height: auto;
}

/* 隐藏版权信息 */
.article-copyright {
    display: none !important;
}

/* 错误提示样式 */
.error-message {
    color: #7f8c8d;
    padding: 10px;
    background-color: #fff2f0;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ffcccc;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message.hidden {
    display: none;
}

/* 辅助类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 计算按钮样式 */
.calculate-button {
    background-color: #00c8ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto;
    width: 100%;
}

.calculate-button:hover {
    background-color: #00a3d9;
}

/* 计算过程样式 */
.calculation-steps {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 0px 0px 5px 5px;
    margin: 0 0 10px 0;
    font-family: monospace;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.calculate-btn {
    flex: 1;
    padding: 12px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #27ae60;
}

.calculation-step {
    margin-bottom: 10px;
}

.calculation-step strong {
    color: #555;
}

/* 响应式设计 */
@media screen and (max-width:480px) {
    .article-header {
        font-size: 14px;
    }

    .input-container {
        flex-wrap: wrap;
    }

    #rebarGradeDropdown {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    #rebarDiameterDropdown,
    .input-with-icon {
        width: 50%;
        margin-bottom: 10px;
    }

    .dropdown-btn,
    .input-field {
        height: 40px;
    }

    .input-with-icon input {
        padding: 0;
    }

    .checkbox-container {
        display: block;
        margin-bottom: 10px;
    }

    #protectionLayerOptions {
        flex-wrap: wrap;
        margin-left: 0;
    }

    #protectionLayerOptions>div {
        width: 100%;
        margin-left: 10px;
        margin-bottom: 10px;
        margin-right: 0px;
    }

    #protectionLayerOptions input[type="number"] {
        width: 100%;
        margin-top: 5px;
    }

    #protectionLayerOptions>div label.zdy {
        margin: 5px;
        flex: 0 0 80px;
    }

    #protectionLayerOptions>div label.unit {
        margin: 5px;
        flex: 0 0 50px;
    }

    .checkbox-container input[type="checkbox"] {
        margin-top: 7px;
    }

    .article-content {
        padding: 0 0px;
    }

    .container-jisuan {
        padding: 10px;
        font-size: 13px;
        line-height: 22px;
    }

    .sue-icon-text {
        margin-top: 20px;
        padding: 5px;
    }

}