.tool-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-icon-large {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 20px;
}

.tool-description {
  color: #666;
  font-size: 18px;
  margin-top: 10px;
}

.tool-body {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

/* 改进的select样式，与网站主题统一 */
.option-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3E%3Cpath%20fill='%23666'%20d='M7%2010l5%205%205-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 35px;
}

.option-group select:hover {
  border-color: #3498db;
}

.option-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.options-container {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.option-group {
  display: flex;
  align-items: center;
  margin-right: 20px;
  flex: 1;
  min-width: 250px;
}

.option-group label {
  margin-right: 10px;
  white-space: nowrap;
  font-weight: normal;
}

.action-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin: 10px 10px 10px 0;
  transition: background 0.3s ease;
}

.action-button:hover {
  background: #2980b9;
}

.action-button i {
  margin-right: 8px;
}

.result-container {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
}

.result-header {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.ascii-art,
.ascii-preview {
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: white;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
}

/* Notification样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 4px;
  background-color: #2ecc71;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  max-width: 300px;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification i {
  margin-right: 10px;
  font-size: 18px;
}

.notification.success {
  background-color: #2ecc71;
}

.notification.error {
  background-color: #e74c3c;
}

@media (max-width: 768px) {
  .tool-content {
    padding: 20px 15px;
  }

  .options-container {
    flex-direction: column;
  }

  .option-group {
    margin-right: 0;
  }

  .action-button {
    width: 100%;
    margin: 10px 0;
    justify-content: center;
  }
}
