* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.input-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #eaecef;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.input-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-select {
  display: flex;
  align-items: center;
  gap: 15px;
}

.version-label {
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.container select {
  padding: 10px 25px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.container select:focus {
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.container textarea {
  width: 100%;
  min-height: 180px;
  padding: 20px;
  font-size: 1.1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  resize: vertical;
  transition: all 0.3s ease;
  line-height: 1.8;
}

.container textarea:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(to right, #4a6fa5, #3a5a8a);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #3a5a8a, #2c4d7a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 90, 138, 0.3);
}

.btn-secondary {
  background: #e9ecef;
  color: #495057;
}

.btn-secondary:hover {
  background: #dde0e3;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(to right, #28a745, #218838);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(to right, #218838, #1e7e34);
  transform: translateY(-2px);
}

.output-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #eaecef;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-container {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  min-height: 200px;
  border: 1px dashed #d1d5db;
  font-size: 1.1rem;
  line-height: 2.2;
  color: #2c3e50;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #eaecef;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.feature-desc {
  color: #555;
  line-height: 1.7;
}

footer {
  background: #2c3e50;
  color: #e9ecef;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
}

.footer-content {
  max-width: 95%;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: white;
}

.footer-desc {
  line-height: 1.8;
  margin-bottom: 25px;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
}

.character-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px 15px 0;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 80px;
}

.character {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.wubi-code {
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 600;
  color: #4a6fa5;
  background: #f0f5ff;
  padding: 10px 6px;
  width: 100%;
  text-align: center;
  border-radius: 5px;
}

.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 15px 25px;
  background: #4a6fa5;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}
