:root {
  --leaf: #1f5f3b;
  --leaf-dark: #123825;
  --soil: #efe4d0;
  --paper: #fffaf0;
  --ink: #1f2a24;
  --muted: #66756d;
  --accent: #d8842f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(216, 132, 47, 0.18), transparent 36rem),
    linear-gradient(135deg, #f6eddc 0%, #e7f0df 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 40px;
}

.hero {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
  color: white;
  box-shadow: 0 24px 70px rgba(18, 56, 37, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: #d7edc8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.05;
}

.intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: #edf6e8;
  font-size: 18px;
  line-height: 1.8;
}

.panel,
.answer-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(31, 95, 59, 0.14);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 45px rgba(31, 42, 36, 0.1);
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(31, 95, 59, 0.25);
  border-radius: 18px;
  padding: 16px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
  line-height: 1.7;
}

textarea:focus {
  border-color: var(--leaf);
  outline: 3px solid rgba(31, 95, 59, 0.14);
}

button {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

h2 {
  margin: 0 0 14px;
}

.answer {
  white-space: pre-wrap;
  line-height: 1.9;
}

.sources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(31, 95, 59, 0.25);
  color: var(--muted);
  line-height: 1.8;
  word-break: break-all;
}

.sources a {
  color: var(--leaf);
}

.notice {
  margin: 18px 8px 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 920px);
    padding-top: 18px;
  }

  .hero,
  .panel,
  .answer-card {
    border-radius: 20px;
    padding: 22px;
  }
}
