* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

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

h1 { margin: 0 0 8px; font-size: 30px; }
h2 { margin: 0 0 16px; font-size: 20px; }

.tip {
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.7;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-row label { margin-bottom: 0; white-space: nowrap; }

select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}

select { max-width: 320px; }

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

button {
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.status {
  margin: 18px 0 0;
  color: #4b5563;
  min-height: 24px;
  line-height: 1.7;
}

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  white-space: pre-wrap;
  line-height: 1.8;
  min-height: 120px;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 8px;
}

.history-requirement {
  font-weight: 600;
  margin-bottom: 6px;
}

.history-result {
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.7;
}
