
/* 工具页面 */
.tool-header {
  background: linear-gradient(135deg, #ff7d00 0%, #ff9330 100%);
  padding: 35px 0;
  color: #fff;
  text-align: center;
}

.tool-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.tool-header p {
  font-size: 15px;
  opacity: 0.9;
}

/* Tab 切换 */
.tab-section {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tab-section .container {
  width: 800px;
  max-width: 800px;
  margin: 0 auto;
}

.tab-container {
  display: flex;
  gap: 12px;
}

.tab-item {
  flex: 1;
  max-width: 240px;
  padding: 14px 24px;
  text-align: center;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.tab-item:hover {
  border-color: #ff7d00;
  color: #ff7d00;
}

.tab-item.active {
  background: #ff7d00;
  border-color: #ff7d00;
  color: #fff;
  font-weight: 600;
}

.tab-item.active:hover {
  background: #e86d00;
  border-color: #e86d00;
}

/* 计算行样式 */
.calc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-row.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calculator-section {
  padding: 40px 0;
}

.calc-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select:focus {
  border-color: #ff7d00;
  box-shadow: 0 0 0 2px rgba(255, 125, 0, 0.1);
}

.form-hint {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.calc-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff7d00, #ff9330);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 125, 0, 0.3);
}

/* 结果展示 */
.result-section {
  max-width: 700px;
  margin: 30px auto 0;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: none;
}

.result-section.show {
  display: block;
}

.result-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #ff7d00;
  padding-left: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: #666;
  font-size: 15px;
}

.result-value {
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.result-value.discount {
  color: #ff4d4f;
}

.result-total {
  background: #fff9f0;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.result-total .result-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.result-total .result-value {
  font-size: 28px;
  font-weight: bold;
  color: #ff7d00;
}

.result-note {
  margin-top: 16px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.action-btn.primary {
  background: #ff7d00;
  color: #fff;
  border: none;
}

.action-btn.secondary {
  background: #fff;
  color: #ff7d00;
  border: 1px solid #ff7d00;
}

.action-btn:hover {
  opacity: 0.9;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .tool-header {
    padding: 25px 0;
  }

  .tool-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .tool-header p {
    font-size: 13px;
    padding: 0 20px;
    line-height: 1.5;
  }

  .tab-section {
    padding: 12px 0;
  }

  .tab-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
  }

  .tab-container {
    gap: 8px;
  }

  .tab-item {
    flex: 1;
    max-width: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 20px;
    border-width: 1px;
  }

  .calculator-section {
    padding: 20px 0;
  }

  .calc-form {
    max-width: none;
    padding: 20px;
    border-radius: 8px;
    margin: 0 12px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .calc-row.three-cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-select {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 20px;
  }

  .form-hint {
    font-size: 12px;
    margin-top: 6px;
  }

  .calc-btn {
    padding: 14px;
    font-size: 16px;
    border-radius: 20px;
  }

  .result-section {
    max-width: none;
    margin: 20px 12px 0;
    padding: 20px;
    border-radius: 8px;
  }

  .result-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .result-item {
    padding: 10px 0;
  }

  .result-label {
    font-size: 14px;
  }

  .result-value {
    font-size: 14px;
  }

  .result-total {
    padding: 12px;
    margin-top: 12px;
  }

  .result-total .result-label {
    font-size: 14px;
  }

  .result-total .result-value {
    font-size: 22px;
  }

  .result-note {
    margin-top: 12px;
    padding: 10px;
    font-size: 12px;
  }

  .result-actions {
    margin-top: 16px;
  }

  .action-btn {
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
  }
}