/* tools.html 工具计算器页面样式（配合 v2/style.css 使用） */
.tools-wrap {
    max-width: 1000px;
    margin: 20px auto 40px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 6px;
    overflow: hidden;
}
.tools-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #2468D2;
    background: #f5f8fd;
}
.tools-tab {
    flex: 1 1 0;
    min-width: 140px;
    text-align: center;
    padding: 14px 10px;
    font-size: 16px;
    color: #2468D2;
    background: #e8f0fb;
    border-right: 1px solid #d4e1f2;
    cursor: pointer;
    white-space: nowrap;
}
.tools-tab:last-child { border-right: 0; }
.tools-tab:hover { background: #dbe7f8; }
.tools-tab.active {
    background: #2468D2;
    color: #fff;
    font-weight: bold;
}
.tools-body { padding: 30px 24px 20px; }
.tools-panel { padding: 0 4px; }

.tools-eq {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 12px 10px;
}
.tools-group { display: flex; align-items: center; }
.tools-group-wide { width: 100%; justify-content: center; }
.tools-group label {
    font-size: 13px;
    color: #303847;
    margin-right: 6px;
    white-space: nowrap;
}
.tools-group .tools-sub {
    color: #8a958a;
    font-size: 12px;
    margin-left: 2px;
}
.tools-input {
    width: 92px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #d4e1f2;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    color: #303847;
    outline: none;
}
.tools-input:focus { border-color: #2468D2; }
.tools-input-long { width: 320px; }
.tools-unit {
    height: 32px;
    border: 1px solid #d4e1f2;
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
    padding: 0 3px;
    font-size: 12px;
    color: #303847;
    background: #f8fafc;
    outline: none;
}
.tools-unit-fixed {
    margin-left: 6px;
    color: #8a958a;
    font-size: 12px;
}
.tools-op {
    font-size: 16px;
    font-weight: bold;
    color: #2468D2;
    padding: 0 2px 6px;
}
.tools-actions {
    text-align: center;
    margin-top: 28px;
}
.tools-btn {
    display: inline-block;
    min-width: 88px;
    height: 34px;
    line-height: 34px;
    padding: 0 20px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
.tools-btn-primary {
    background: #2468D2;
    color: #fff;
}
.tools-btn-primary:hover { background: #1e56b3; }
.tools-btn-plain {
    background: #fff;
    border: 1px solid #c9d6ea;
    color: #536171;
    margin-left: 12px;
}
.tools-btn-plain:hover { border-color: #2468D2; color: #2468D2; }

.tools-msg {
    min-height: 22px;
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    color: #1f2937;
}
.tools-msg-ok { color: #20b957; }
.tools-msg-error { color: #f5222d; }

.tools-example {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: #8a958a;
}
.tools-example .tools-ex {
    display: inline-block;
    margin: 0 6px;
    padding: 2px 10px;
    border: 1px solid #d4e1f2;
    border-radius: 12px;
    color: #2468D2;
    font-size: 13px;
}
.tools-example .tools-ex:hover {
    background: #e8f0fb;
    border-color: #2468D2;
}
.tools-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e3ebf6;
    font-size: 13px;
    line-height: 22px;
    color: #8a958a;
    text-align: center;
}

/* 产品详情页嵌入版（复用 .related_products 白卡外框）；
   控件尺寸走全局小号规则，此处只调间距与标题图标 */
.tools-detail .tools-detail-body { padding: 22px 24px 16px; }
.tools-detail .tools-actions { margin-top: 18px; }
.tools-detail .tools-msg { margin-top: 10px; min-height: 20px; }
.tools-detail .tools-note {
    margin-top: 12px;
    padding-top: 12px;
    text-align: center;
}
.tools-detail .rp-header h3 i { color: #2468D2; margin-right: 6px; }
.tools-detail .tools-eq { justify-content: center; }

@media (max-width: 768px) {
    .tools-body { padding: 20px 10px 16px; }
    .tools-eq { flex-direction: column; align-items: stretch; }
    .tools-group { flex-wrap: wrap; }
    .tools-group label { width: 100%; margin-bottom: 4px; }
    .tools-input { flex: 1; width: auto; }
    .tools-op {
        padding: 0;
        text-align: center;
        line-height: 20px;
    }
    .tools-tab {
        flex: 1 1 45%;
        font-size: 14px;
        padding: 10px 6px;
    }
    .tools-input-long { width: 100%; }
}
