/* 首页检漏计算工具 */
.leak-calculator-section {
  padding: 80px 0;
  background: #f7fafc;
}

.leak-calculator-section .section-heading {
  margin-bottom: 36px;
}

.lc-calc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(17, 63, 138, 0.08);
  border: 1px solid #e8eef3;
  overflow: hidden;
}

.lc-calc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8eef3;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lc-calc-tab {
  flex: 1 0 auto;
  min-width: 110px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 18px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.lc-calc-tab:hover {
  color: #08adef;
}

.lc-calc-tab.active {
  color: #08adef;
}

.lc-calc-tab.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #08adef;
}

.lc-calc-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

.lc-calc-form-wrap,
.lc-calc-result-wrap {
  padding: 28px 30px 32px;
}

.lc-calc-form-wrap {
  border-right: 1px solid #eef2f6;
}

.lc-calc-tip {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.lc-calc-field {
  margin-bottom: 16px;
}

.lc-calc-field label {
  display: block;
  margin-bottom: 8px;
  color: #343434;
  font-size: 13px;
  font-weight: 700;
}

.lc-calc-field .lc-unit {
  color: #08adef;
  font-weight: 600;
}

.lc-calc-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.lc-calc-field input:focus {
  outline: none;
  border-color: #08adef;
  box-shadow: 0 0 0 3px rgba(8, 173, 239, 0.15);
}

.lc-calc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.lc-calc-btn {
  height: 46px;
  border-radius: 8px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}

.lc-calc-btn-primary {
  background: #08adef;
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 173, 239, 0.25);
}

.lc-calc-btn-primary:hover {
  background: #079bd5;
  transform: translateY(-1px);
}

.lc-calc-btn-secondary {
  background: #eef2f6;
  color: #4b5563;
}

.lc-calc-btn-secondary:hover {
  background: #e5eaf0;
}

.lc-calc-error {
  margin-top: 12px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

.lc-calc-result-wrap {
  background: linear-gradient(160deg, #f3faff 0%, #ffffff 55%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.lc-calc-result-box {
  text-align: center;
  padding: 18px 10px;
}

.lc-calc-result-label {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.lc-calc-result-value {
  display: block;
  color: #113f8a;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lc-calc-result-unit {
  display: inline-block;
  margin-top: 10px;
  color: #08adef;
  font-size: 14px;
  font-weight: 700;
}

.lc-calc-formula {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #d7e6ef;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.lc-calc-formula strong {
  color: #343434;
}

@media (max-width: 991px) {
  .lc-calc-body {
    grid-template-columns: 1fr;
  }

  .lc-calc-form-wrap {
    border-right: 0;
    border-bottom: 1px solid #eef2f6;
  }

  .lc-calc-result-wrap {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .leak-calculator-section {
    padding: 60px 0;
  }

  .lc-calc-form-wrap,
  .lc-calc-result-wrap {
    padding: 22px 18px 24px;
  }

  .lc-calc-tab {
    font-size: 13px;
    padding: 14px 12px;
    min-width: 96px;
  }
}
