* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 300;
}

main {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.form-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 1.3rem;
  color: #2c5282;
  margin: 0 0 20px 0;
  font-weight: 600;
  padding-left: 10px;
  border-left: 4px solid #2b6cb0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
  font-size: 0.95rem;
}

.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  background-color: white;
  color: #2d3748;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-group select:hover {
  border-color: #90a4c5;
}

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

.btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #234163 0%, #1e5289 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

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

.btn-secondary:active {
  transform: translateY(0);
}

.result-section {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#resultContent {
  margin-bottom: 20px;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.result-red {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  color: white;
}

.result-yellow {
  background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
  color: #744210;
}

.result-green {
  background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
  color: white;
}

.result-green-borderline {
  background: linear-gradient(135deg, #9ae6b4 0%, #68d391 100%);
  color: #22543d;
}

.result-content {
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 15px;
}

.result-content h3 {
  color: #2c5282;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
  font-weight: 600;
}

.result-content h3:first-child {
  margin-top: 0;
}

.result-content p {
  margin: 10px 0;
  line-height: 1.7;
}

.result-content ul {
  margin: 10px 0;
  padding-left: 25px;
}

.result-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.disclaimer {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border: 2px solid #fc8181;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.disclaimer h3 {
  color: #c53030;
  margin: 0 0 15px 0;
  font-size: 1.2rem;
}

.disclaimer p {
  color: #742a2a;
  margin: 0;
  line-height: 1.8;
  font-size: 0.95rem;
}

.modifier-note {
  background: #e6fffa;
  border-left: 4px solid #38b2ac;
  padding: 12px 15px;
  margin: 12px 0;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #234e52;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  main {
    padding: 20px 15px;
  }

  .form-section h2 {
    font-size: 1.1rem;
  }

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

  .btn {
    width: 100%;
  }

  .result-title {
    font-size: 1.2rem;
  }

  .disclaimer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group select {
    font-size: 0.9rem;
    padding: 9px 10px;
  }
}
