.tool-containers {
  width: 1400px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.tool-container {
  width: 100%;
  height: auto;
  font-size: 16px;
}

.tool-container .tool-contain {
  width: 100%;
}

.tool-container .tool-contain .tool-item {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin-bottom: 20px;
  background-color: white;
}

.tool-container .tool-contain .tool-item .tool-title {
  font-size: 24px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.tool-containers .ml-10{
    margin-left: 10px;
}


.tool-item .tool-item-contain {
  display: flex;
  justify-content: space-between;
}

.tool-item .tool-item-left {
  flex: 0 0 360px;
}

.tool-item .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tool-item .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.tool-item .row label {
  width: 110px;
  font-weight: bold;
  font-size: 16px;
}

.tool-item select,
.tool-item input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.tool-item select:focus,
.tool-item input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.tool-item .formula-display {
  padding: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 10px;
  border-left: 4px solid #cc0000;
  max-width: 400px;
  width: 100%;
}

.tool-item .formula-title {
  font-size: 20px;
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 20px;
  text-align: center;
}

.tool-item .formula-content {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.tool-item .formula-section {
  margin-bottom: 15px;
}

.tool-item .formula-subtitle {
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 8px;
  font-size: 16px;
}

.tool-item .formula-line {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin: 5px 0;
  padding: 4px 8px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

.tool-item .formula-main {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.tool-item .formula-derivations {
  margin-bottom: 20px;
  font-size: 16px;
}

.tool-item .formula-derivations div {
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: #555;
  margin: 6px 0;
  padding: 6px 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

.tool-item .formula-explanation {
  border-top: 1px solid #ffcccc;
  padding-top: 15px;
  margin-top: 15px;
}

.tool-item .formula-explanation p {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.tool-item .formula-explanation ul {
  list-style: none;
  padding: 0;
}

.tool-item .formula-explanation li {
  margin: 6px 0;
  color: #555;
  font-size: 14px;
}

.tool-item .formula-explanation li:before {
  content: "•";
  color: #cc0000;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.tool-item .result {
  margin-top: 20px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-item .result-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-item .result-label {
  font-weight: bold;
  min-width: 120px;
  text-align: right;
}

.tool-item .result-value {
  min-width: 150px;
  text-align: left;
  color: #cc0000;
  font-weight: 600;
}

/* 电阻色码计算器样式 */
.resistor-color-code .tool-item-left {
  flex: 0 0 360px;
}

.resistor-color-code .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.resistor-color-code .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.resistor-color-code .row label {
  width: 110px;
  font-weight: bold;
  font-size: 16px;
}

.resistor-color-code select {
  padding: 10px 10px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: background 0.2s;
}

.resistor-color-code .result {
  margin-top: 20px;
  font-size: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.resistor-color-code .result-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resistor-color-code .result-label {
  font-weight: bold;
  min-width: 120px;
  text-align: right;
  font-size: 24px;
}

.resistor-color-code .result-value {
  min-width: 150px;
  text-align: left;
  font-size: 24px;
}

.resistor-color-code svg {
  width: 70%;
  height: auto;
}

.resistor-color-code .color-select.black,
.resistor-color-code .color-select.brown,
.resistor-color-code .color-select.red,
.resistor-color-code .color-select.orange,
.resistor-color-code .color-select.yellow,
.resistor-color-code .color-select.green,
.resistor-color-code .color-select.blue,
.resistor-color-code .color-select.violet,
.resistor-color-code .color-select.gray {
  color: #fff !important;
}

.resistor-color-code .color-select.black { background: #000; }
.resistor-color-code .color-select.brown { background: #8b4513; }
.resistor-color-code .color-select.red { background: #ff0000; }
.resistor-color-code .color-select.orange { background: #ffa500; }
.resistor-color-code .color-select.yellow { background: #ffff00; }
.resistor-color-code .color-select.green { background: #00c000; }
.resistor-color-code .color-select.blue { background: #0000ff; }
.resistor-color-code .color-select.violet { background: #8a2be2; }
.resistor-color-code .color-select.gray { background: #808080; }
.resistor-color-code .color-select.white { background: #fff; }
.resistor-color-code .color-select.gold { background: #ffd700; }
.resistor-color-code .color-select.silver { background: #c0c0c0; }
.resistor-color-code .color-select.none { background: transparent; }

/* 电阻计算器样式 */
.resistor-calculator .tool-item-left {
  flex: 0 0 360px;
}

.resistor-calculator .tool-item-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resistor-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.resistor-calculator .row label {
  width: 100px;
  font-weight: bold;
  font-size: 16px;
}

.resistor-calculator .row select {
  width: 300px;
  margin-left: 8px;
}

.resistor-calculator select, 
.resistor-calculator input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 105px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
}

.resistor-calculator select:focus, 
.resistor-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.resistor-calculator input {
  width: 160px;
}

.resistor-calculator .resistor-inputs {
  margin: 15px 0;
}

.resistor-calculator .resistor-input-group {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 8px;
}

.resistor-calculator .resistor-input-group label {
  width: 100px;
  font-weight: bold;
}

.resistor-calculator .remove-resistor {
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.resistor-calculator .remove-resistor:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.resistor-calculator .add-resistor-btn {
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  margin-top: 5px;
}

.resistor-calculator .add-resistor-btn:hover {
  background: #b30000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.resistor-calculator .formula-display {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 8px;
  border-left: 4px solid #cc0000;
}

.resistor-calculator .formula {
  font-size: 16px;
  font-family: 'Courier New', monospace;
  color: #333;
  line-height: 1.4;
}

.resistor-calculator .resistor-diagram {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resistor-calculator .diagram {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resistor-calculator .diagram p {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
}

.resistor-calculator .img-placeholder {
  width: 240px;
  height: 150px;
  border: 2px dashed #cc0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cc0000;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.resistor-calculator .img-placeholder:hover {
  background: linear-gradient(135deg, #ffeaea 0%, #ffd6d6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(204, 0, 0, 0.15);
}

.resistor-calculator .result {
  margin-top: 20px;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.resistor-calculator .result-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resistor-calculator .result-label {
  font-weight: bold;
  min-width: 120px;
  text-align: right;
}

.resistor-calculator .result-value {
  min-width: 150px;
  text-align: left;
  color: #cc0000;
  font-weight: 600;
}

/* 欧姆定律计算器样式 */
.ohms-law-calculator .tool-item-left {
  flex: 0 0 360px;
}

.ohms-law-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ohms-law-calculator .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.ohms-law-calculator .row select {
  width: 300px;
}

.ohms-law-calculator .row label {
  width: 110px;
  font-weight: bold;
  font-size: 16px;
}

.ohms-law-calculator select,
.ohms-law-calculator input {
  padding: 12px 10px;
  font-size: 15px;
  border-radius: 6px;
  width: 278px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
}

.ohms-law-calculator select:focus,
.ohms-law-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.ohms-law-calculator .input-group {
  margin: 8px 0;
}

.ohms-law-calculator .calculate-btn {
  background: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  margin-right: 10px;
}

.ohms-law-calculator .calculate-btn:hover {
  background: #b30000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.ohms-law-calculator .reset-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.ohms-law-calculator .reset-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.ohms-law-calculator .formula-display {
  padding: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 10px;
  border-left: 4px solid #cc0000;
  max-width: 400px;
  width: 100%;
}

.ohms-law-calculator .formula-title {
  font-size: 20px;
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 20px;
  text-align: center;
}

.ohms-law-calculator .formula-main {
  font-size: 32px;
  font-family: 'Courier New', monospace;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.ohms-law-calculator .formula-derivations {
  margin-bottom: 25px;
  text-align: center;
}

.ohms-law-calculator .formula-derivations div {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  color: #555;
  margin: 8px 0;
}

.ohms-law-calculator .formula-explanation {
  border-top: 1px solid #ffcccc;
}

.ohms-law-calculator .formula-explanation p {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.ohms-law-calculator .formula-explanation ul {
  list-style: none;
  padding: 0;
}

.ohms-law-calculator .formula-explanation li {
  margin: 6px 0;
  color: #555;
  font-size: 14px;
}

.ohms-law-calculator .formula-explanation li:before {
  content: "•";
  color: #cc0000;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.ohms-law-calculator .result {
  margin-top: 20px;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ohms-law-calculator .result-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ohms-law-calculator .result-label {
  font-weight: bold;
  min-width: 120px;
  text-align: right;
}

.ohms-law-calculator .result-value {
  min-width: 200px;
  text-align: left;
  color: #cc0000;
  font-weight: 600;
}

/* 电容换算计算器样式 */
.capacitor-converter .tool-item-left {
  flex: 0 0 360px;
}

.capacitor-converter .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.capacitor-converter .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.capacitor-converter .row label {
  width: 110px;
  font-weight: bold;
}

.capacitor-converter select,
.capacitor-converter input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.capacitor-converter select:focus,
.capacitor-converter input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.capacitor-converter .conversion-results {
  margin-top: 20px;
}

.capacitor-converter .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #cc0000;
  font-size: 18px;
}

.capacitor-converter .unit-label {
  font-weight: 500;
  color: #333;
}

.capacitor-converter .unit-value {
  font-weight: 600;
  color: #cc0000;
}

.capacitor-converter .formula-display {
  padding: 25px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 10px;
  border-left: 4px solid #cc0000;
  max-width: 400px;
  width: 100%;
}

.capacitor-converter .formula-title {
  font-size: 20px;
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 20px;
  text-align: center;
}

.capacitor-converter .conversion-relations {
  margin-bottom: 20px;
}

.capacitor-converter .conversion-relations div {
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: #555;
  margin: 8px 0;
  padding: 6px 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

.capacitor-converter .formula-explanation {
  border-top: 1px solid #ffcccc;
  padding-top: 15px;
}

.capacitor-converter .formula-explanation p {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.capacitor-converter .formula-explanation ul {
  list-style: none;
  padding: 0;
}

.capacitor-converter .formula-explanation li {
  margin: 6px 0;
  color: #555;
  font-size: 14px;
}

.capacitor-converter .formula-explanation li:before {
  content: "•";
  color: #cc0000;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
/* 分压计算器样式 */
.voltage-divider .tool-item-left {
  flex: 0 0 360px;
}

.voltage-divider .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.voltage-divider .row {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.voltage-divider .row label {
  width: 110px;
  font-weight: bold;
  font-size: 16px;
}

.voltage-divider input {
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.voltage-divider input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.voltage-divider .result {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voltage-divider .formula-main {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}
/* 温度换算计算器样式 */
.temperature-converter .tool-item-left {
  flex: 0 0 360px;
}

.temperature-converter .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.temperature-converter .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.temperature-converter .row label {
  width: 110px;
  font-weight: bold;
}

.temperature-converter select,
.temperature-converter input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.temperature-converter select:focus,
.temperature-converter input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.temperature-converter .conversion-results {
  margin-top: 20px;
}

.temperature-converter .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #cc0000;
}

.temperature-converter .unit-label {
  font-weight: 500;
  color: #333;
}

.temperature-converter .unit-value {
  font-weight: 600;
  color: #cc0000;
}
/* 电池续航时间计算器样式 */
.battery-calculator .tool-item-left {
  flex: 0 0 360px;
}

.battery-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.battery-calculator .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.battery-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.battery-calculator select,
.battery-calculator input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.battery-calculator select:focus,
.battery-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.battery-calculator .result {
  margin-top: 20px;
}

.battery-calculator .formula-main {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.battery-calculator .formula-derivations {
  margin-bottom: 20px;
}

.battery-calculator .formula-derivations div {
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: #555;
  margin: 6px 0;
  padding: 6px 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}
/* 长度换算计算器样式 */
.length-converter .tool-item-left {
  flex: 0 0 360px;
}

.length-converter .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.length-converter .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.length-converter .row label {
  width: 110px;
  font-weight: bold;
}

.length-converter select,
.length-converter input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.length-converter select:focus,
.length-converter input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.length-converter .conversion-results {
  margin-top: 20px;
}

.length-converter .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #cc0000;
}

.length-converter .unit-label {
  font-weight: 500;
  color: #333;
}

.length-converter .unit-value {
  font-weight: 600;
  color: #cc0000;
}

/* 555定时器计算器样式 */
.timer555-calculator .tool-item-left {
  flex: 0 0 360px;
}

.timer555-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timer555-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.timer555-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.timer555-calculator select,
.timer555-calculator input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.timer555-calculator select:focus,
.timer555-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.timer555-calculator .formula-section {
  margin-bottom: 15px;
}

.timer555-calculator .formula-subtitle {
  font-weight: 600;
  color: #cc0000;
  margin-bottom: 8px;
  font-size: 16px;
}

.timer555-calculator .formula-line {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin: 5px 0;
  padding: 4px 8px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

/* LED串联电阻计算器样式 */
.led-calculator .tool-item-left {
  flex: 0 0 360px;
}

.led-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.led-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.led-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.led-calculator input {
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.led-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.led-calculator .formula-main {
  font-size: 18px;
  font-family: 'Courier New', monospace;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}


/* dBm和瓦特转换器样式 */
.dbm-converter .tool-item-left {
  flex: 0 0 360px;
}

.dbm-converter .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dbm-converter .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.dbm-converter .row label {
  width: 110px;
  font-weight: bold;
}

.dbm-converter select,
.dbm-converter input {
  padding: 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.dbm-converter select:focus,
.dbm-converter input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.dbm-converter .conversion-results {
  margin-top: 20px;
}

.dbm-converter .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #cc0000;
}

.dbm-converter .unit-label {
  font-weight: 500;
  color: #333;
}

.dbm-converter .unit-value {
  font-weight: 600;
  color: #cc0000;
}

.dbm-converter .reference-table {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.dbm-converter .table-title {
  background: #cc0000;
  color: white;
  padding: 8px 12px;
  font-weight: 600;
  text-align: center;
}

.dbm-converter .table-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #eee;
}

.dbm-converter .table-row:nth-child(even) {
  background: #f8f9fa;
}

.dbm-converter .table-row:last-child {
  border-bottom: none;
}


/* 频率波长换算计算器样式 */
.frequency-wavelength .tool-item-left {
  flex: 0 0 360px;
}

.frequency-wavelength .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.frequency-wavelength .row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.frequency-wavelength .row label {
  width: 110px;
  font-weight: bold;
}

.frequency-wavelength select,
.frequency-wavelength input {
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.frequency-wavelength select:focus,
.frequency-wavelength input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* 电抗计算器样式 */
.reactance-calculator .tool-item-left {
  flex: 0 0 360px;
}

.reactance-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.reactance-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.reactance-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.reactance-calculator select,
.reactance-calculator input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.reactance-calculator select:focus,
.reactance-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* 滤波器计算器样式 */
.filter-calculator .tool-item-left {
  flex: 0 0 360px;
}

.filter-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.filter-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.filter-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.filter-calculator select,
.filter-calculator input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.filter-calculator select:focus,
.filter-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* SMD电阻代码计算器样式 */
.smd-resistor .tool-item-left {
  flex: 0 0 360px;
}

.smd-resistor .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.smd-resistor .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.smd-resistor .row label {
  width: 110px;
  font-weight: bold;
}

.smd-resistor select,
.smd-resistor input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.smd-resistor select:focus,
.smd-resistor input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* SMD电容器代码计算器样式 */
.smd-capacitor .tool-item-left {
  flex: 0 0 360px;
}

.smd-capacitor .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.smd-capacitor .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.smd-capacitor .row label {
  width: 110px;
  font-weight: bold;
}

.smd-capacitor select,
.smd-capacitor input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.smd-capacitor select:focus,
.smd-capacitor input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* PCB线宽计算器样式 */
.pcb-calculator .tool-item-left {
  flex: 0 0 360px;
}

.pcb-calculator .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pcb-calculator .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.pcb-calculator .row label {
  width: 110px;
  font-weight: bold;
}

.pcb-calculator select,
.pcb-calculator input {
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.pcb-calculator select:focus,
.pcb-calculator input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

.pcb-calculator .result {
  margin-top: 20px;
}

/* 时间常数计算器样式 */
.time-constant .tool-item-left {
  flex: 0 0 360px;
}

.time-constant .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.time-constant .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.time-constant .row label {
  width: 110px;
  font-weight: bold;
}

.time-constant select,
.time-constant input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 150px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.time-constant select:focus,
.time-constant input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* 分流器计算器样式 */
.current-shunt .tool-item-left {
  flex: 0 0 360px;
}

.current-shunt .tool-item-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.current-shunt .row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.current-shunt .row label {
  width: 110px;
  font-weight: bold;
}

.current-shunt select,
.current-shunt input {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  width: 300px;
  color: #000;
  transition: all 0.3s;
  border: 1px solid #ddd;
  outline: none;
  margin-right: 8px;
}

.current-shunt select:focus,
.current-shunt input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}