/* 文本工具页面专用样式 */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.tool-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-btn {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.tool-btn:hover {
  background: #667eea;
  color: white;
}

.tool-btn.active {
  background: #667eea;
  color: white;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.tool-panel {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.tool-panel h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.button-group {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.result-text {
  background: white;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin: 10px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.result-stats {
  background: #e3f2fd;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #1976d2;
}

.help-content h4 {
  color: #667eea;
  margin: 15px 0 8px 0;
  font-size: 1.1rem;
}

.help-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-actions .btn {
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .tool-selector {
    flex-direction: column;
    align-items: center;
  }

  .tool-btn {
    width: 200px;
  }

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

  .button-group {
    flex-direction: column;
  }
}
