.tab-btn.active {
  background: #00897b;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


.tools-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tool-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tool-card h3 {
  margin-bottom: 10px;
  color: #00796b;
}

.tool-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tool-card th, .tool-card td {
  border-bottom: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}


.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
}

.input-group input {
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.3);
}

.calc-btn {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.1s ease;
}

.calc-btn:hover {
  background: linear-gradient(90deg, #26c6da, #00acc1);
  transform: scale(1.02);
}

.result {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  color: #444;
}

/* 鼠标悬停轻微高亮 */
#strategy .strategy-block:hover {
  background: #f9fffc;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.strategy-subblock {
  margin-left: 10px;
  margin-bottom: 10px;
}

/* 列表 */
.strategy-list {
  margin-left: 20px;
  list-style-type: disc;
  color: #333;
}

/* 关键文字 */
.keyword {
  color: #00796b;
  font-weight: 600;
}

.highlight {
  color: #d84315;
  font-weight: 600;
}

/* ====== 输入组统一风格 ====== */
.select-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  gap: 12px;
}

.select-group label {
  flex: 0 0 140px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* 输入框与下拉框通用样式 */
.select-group select {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #fff;
  transition: all 0.2s ease;
}

/* 聚焦时高亮 */
.select-group select:focus {
  border-color: #4f8ef7;
  box-shadow: 0 0 5px rgba(79, 142, 247, 0.3);
  outline: none;
}

/* 下拉框特效 */
.select-group select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #4f8ef7 50%),
                    linear-gradient(135deg, #4f8ef7 50%, transparent 50%);
  background-position: right 10px center, right 5px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.select-group select:hover {
  border-color: #4f8ef7;
}