:root {
  --ink: #17211b;
  --muted: #5f6d65;
  --line: #d9e0dc;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --accent: #1f7a5c;
  --accent-dark: #15513f;
  --warn: #9b4a27;
  --soft: #eef5ef;
  --shadow: 0 18px 48px rgba(31, 52, 44, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.08), transparent 32rem),
    linear-gradient(315deg, rgba(155, 74, 39, 0.08), transparent 30rem),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.intro {
  padding: 18px 0 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

.intro p {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.survey {
  display: grid;
  gap: 14px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compact {
  padding: 18px;
}

.question {
  padding: 22px;
}

.question-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.question-head > span {
  min-width: 46px;
  padding: 5px 8px;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #cfe0d5;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  line-height: 1.45;
}

.hint {
  margin: 10px 0 0 58px;
  color: var(--warn);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid label,
.question textarea {
  display: grid;
  gap: 8px;
}

.field-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  margin-top: 14px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.14);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.options label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  min-height: 50px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.options label:has(input:checked) {
  border-color: var(--accent);
  background: #edf7f2;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.options input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.options span {
  line-height: 1.35;
}

.score-line {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

output {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
  font-weight: 700;
}

.score-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(251, 252, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

#form-message {
  color: var(--warn);
  font-size: 14px;
}

button {
  min-width: 136px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #0f3f31;
}

.hidden-field {
  display: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 980px);
    padding-top: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .intro p {
    font-size: 16px;
  }

  .field-grid,
  .single,
  .multi,
  .submit-bar {
    grid-template-columns: 1fr;
  }

  .question {
    padding: 18px;
  }

  .hint {
    margin-left: 0;
  }

  .question-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .question-head > span {
    width: max-content;
  }

  .submit-bar {
    position: static;
  }

  button {
    width: 100%;
  }
}
