* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header  p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.result-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 20px;
}

.container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.count-display {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: normal;
  margin-left: 8px;
}

.container input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.container input[type="number"]:focus {
  border-color: #4a6ee0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 110, 224, 0.2);
}

.container textarea {
  width: 100%;
  height: 240px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s;
}

.container textarea:focus {
  border-color: #4a6ee0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 110, 224, 0.2);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn {
  background-color: #4a6ee0;
  color: white;
}

.primary-btn:hover {
  background-color: #3a5ad0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 110, 224, 0.3);
}

.secondary-btn {
  background-color: #f1f2f6;
  color: #2c3e50;
}

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

.warning-btn {
  background-color: #ff6b6b;
  color: white;
}

.warning-btn:hover {
  background-color: #e55a5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.result-summary {
  background: #f8f9fe;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 16px;
  text-align: center;
  color: #4a6ee0;
  font-weight: 600;
  border: 1px solid #ddd;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th {
  background-color: #4a6ee0;
  color: white;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.result-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}

.result-table tr:nth-child(even) {
  background-color: #f9fafc;
}

.result-table tr:hover {
  background-color: #f1f5ff;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.feature-card {
  flex: 1;
  min-width: 300px;
  background: #f8f9fe;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #4a6ee0;
}

.feature-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  color: #555;
  line-height: 1.6;
}

.usage-steps {
  padding-left: 25px;
}

.usage-steps li {
  margin-top: 10px;
  line-height: 1.6;
}

.highlight {
  background-color: #fff9db;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #e67700;
}

.footer {
  text-align: center;
  color: #7f8c8d;
}

#result-content{
  max-height: 660px;
  overflow: auto;
}
#result-body{
  font-size: 15px;
}
