/* 编码工具页面专用样式 */
.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;
}

.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;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  border-left: 4px solid #c62828;
}

.hash-result {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
}

.hash-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.hash-item:last-child {
  margin-bottom: 0;
}

.hash-label {
  font-weight: bold;
  color: #333;
  min-width: 60px;
  margin-right: 10px;
}

.hash-value {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #667eea;
  word-break: break-all;
  margin-right: 10px;
}

.btn-copy {
  background: #667eea;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.btn-copy:hover {
  background: #5a6fd8;
}

.info-box {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #2196f3;
}

.info-box h4 {
  color: #1976d2;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-box p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.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;
}

.examples {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.example-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.example-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.example-item strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.example-text {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #667eea;
  background: white;
  padding: 8px;
  border-radius: 4px;
  word-break: break-all;
}

.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;
  }

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

  .hash-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hash-label {
    min-width: auto;
  }

  .hash-value {
    margin-right: 0;
  }
}
