/* 文本工具页面样式 */
.tool-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* 选项卡样式 */
.tool-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: bold;
}

/* 工具面板 */
.tool-panel {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 统计网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 格式转换按钮 */
.format-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.format-buttons .btn {
  flex: 1;
  min-width: 120px;
}

/* 清理选项 */
.clean-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.checkbox-label:hover {
  background: rgba(102, 126, 234, 0.1);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* 帮助内容 */
.help-content h4 {
  color: #667eea;
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
}

.help-content h4:first-child {
  margin-top: 0;
}

.help-content p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* 相关工具 */
.related-tools {
  list-style: none;
}

.related-tools li {
  margin-bottom: 0.8rem;
}

.related-tools a {
  display: block;
  padding: 0.8rem;
  background: #f8f9fa;
  color: #667eea;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.related-tools a:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* 活跃导航项 */
.nav-menu a.active {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tool-container {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .format-buttons {
    flex-direction: column;
  }

  .format-buttons .btn {
    flex: none;
  }

  .clean-options {
    flex-direction: column;
  }
}
