:root {
  --green: #0f5b3b;
  --green-soft: #487f67;
  --line: #06c755;
  --ink: #1f2924;
  --muted: #5f7068;
  --paper: #f8f1e4;
  --paper-light: #fffaf0;
  --mist: #e5f1ec;
  --aqua: #9fcfc7;
  --aqua-deep: #7eb9b0;
  --gold: #d39b36;
  --orange: #ef801f;
  --rose: #c86975;
  --blue: #2f6f9f;
  --border: #ffffff;
  --scratch: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 38px rgba(19, 68, 52, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 255, 255, 0.22), transparent 17%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 38px;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 88% 18%, rgba(239, 128, 31, 0.22), transparent 20%),
    linear-gradient(135deg, rgba(15, 91, 59, 0.08), rgba(255, 255, 255, 0.08));
  border: 4px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 230px;
  height: 138px;
  border: 11px solid rgba(255, 255, 255, 0.78);
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 62% 36% 54% 38%;
  transform: rotate(-8deg);
  opacity: 0.48;
}

.hero::after {
  content: "";
  position: absolute;
  left: 198px;
  bottom: 142px;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow:
    0 -45px 0 -5px rgba(255, 255, 255, 0.86),
    34px -30px 0 -7px rgba(255, 255, 255, 0.86),
    35px 8px 0 -8px rgba(255, 255, 255, 0.86),
    -26px -29px 0 -8px rgba(255, 255, 255, 0.86);
  opacity: 0.62;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  width: min(250px, 62vw);
  margin-bottom: 24px;
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(15, 91, 59, 0.16));
}

.eyebrow,
.section-title p,
.question-area {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
  width: fit-content;
  padding: 7px 11px;
  background: rgba(15, 91, 59, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 3px 0 rgba(15, 91, 59, 0.2);
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  line-height: 1.85;
}

.hero-note {
  min-height: 220px;
  padding: 24px;
  color: var(--green);
  position: relative;
  overflow: hidden;
}

.hero-note span {
  display: inline-flex;
  padding: 6px 10px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-note strong {
  display: block;
  margin-top: 12px;
  max-width: 190px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.doodle-card,
.intro-panel article,
.panel,
.result-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(126, 185, 176, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 20%, rgba(126, 185, 176, 0.22) 0 2px, transparent 3px),
    var(--paper);
  border: 5px solid var(--scratch);
  outline: 2px dashed rgba(255, 255, 255, 0.86);
  outline-offset: -9px;
  border-radius: 22px;
}

.hero-drawing {
  width: min(180px, 56%);
  height: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
  filter: drop-shadow(0 8px 8px rgba(15, 91, 59, 0.12));
}

.intro-panel,
.assessment-form,
.result-panel {
  margin-top: 20px;
}

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

.intro-panel article {
  min-height: 156px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.intro-panel strong {
  display: block;
  margin: 8px 0 8px;
  color: var(--green);
  font-size: 1.18rem;
}

.intro-panel p,
.result-card p,
.form-actions p,
.version-notice {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.panel,
.result-card {
  margin-top: 16px;
  padding: 24px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2,
.result-card h2 {
  margin: 6px 0 0;
  color: var(--green);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.section-title span {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

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

label,
.question-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(15, 91, 59, 0.16);
  border-radius: 14px;
  outline: 0;
}

textarea {
  resize: vertical;
}

.consent-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(15, 91, 59, 0.14);
  border-radius: 16px;
  line-height: 1.6;
}

.consent-check input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
  accent-color: var(--green);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 148, 91, 0.12);
}

.version-notice {
  grid-column: 1 / -1;
  padding: 14px;
  background: rgba(239, 128, 31, 0.12);
  border: 2px dashed rgba(239, 128, 31, 0.4);
  border-radius: 16px;
  font-weight: 800;
}

.observation-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.observation-map span {
  padding: 10px;
  color: var(--green);
  text-align: center;
  background: var(--paper-light);
  border: 3px solid #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.question-list {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 18px;
  background:
    radial-gradient(circle at 96% 10%, rgba(239, 128, 31, 0.13) 0 2px, transparent 3px),
    #fffaf0;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 91, 59, 0.05);
}

.question-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

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

.choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 2px solid rgba(15, 91, 59, 0.14);
  border-radius: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.choice:has(input:checked) {
  border-color: rgba(239, 128, 31, 0.72);
  background: rgba(239, 128, 31, 0.11);
}

.choice input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
  accent-color: var(--green);
}

.form-actions {
  margin-top: 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.form-actions button,
.result-card button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(147, 69, 18, 0.23);
}

.form-actions button:disabled {
  cursor: progress;
  opacity: 0.72;
  box-shadow: none;
  transform: translateY(3px);
}

.result-card {
  border-color: rgba(21, 148, 91, 0.22);
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.type-chips span {
  padding: 8px 10px;
  color: var(--muted);
  background: #fff;
  border: 2px solid rgba(15, 91, 59, 0.14);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.type-chips .active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

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

.summary-grid article {
  padding: 16px;
  background: var(--paper-light);
  border: 3px solid #fff;
  border-radius: 18px;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.teacher-summary {
  margin: 20px 0;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(15, 91, 59, 0.96), rgba(48, 105, 82, 0.96));
  color: #fff;
  border-radius: 18px;
}

.teacher-summary h3 {
  margin: 0 0 10px;
}

.teacher-summary pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font-family: inherit;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions button:last-child {
  color: var(--ink);
  background: var(--paper);
  border: 3px solid #fff;
  box-shadow: none;
}

.tiny-icon {
  width: 48px;
  height: 48px;
  position: relative;
}

.tiny-icon.pencil::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 4px;
  width: 14px;
  height: 42px;
  background: linear-gradient(#2f6f55 0 62%, #f3d582 62% 78%, #151713 78%);
  border: 2px solid rgba(0, 0, 0, 0.24);
  border-radius: 8px 8px 4px 4px;
  transform: rotate(38deg);
}

.tiny-icon.palette::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 40px;
  height: 30px;
  background:
    radial-gradient(circle at 14px 14px, var(--orange) 0 5px, transparent 6px),
    radial-gradient(circle at 27px 13px, var(--green-soft) 0 5px, transparent 6px),
    radial-gradient(circle at 24px 25px, #d9d0bd 0 4px, transparent 5px),
    var(--paper-light);
  border: 2px solid rgba(75, 62, 38, 0.45);
  border-radius: 50% 45% 48% 50%;
}

.tiny-icon.tape::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 38px;
  height: 28px;
  background:
    radial-gradient(circle, transparent 0 9px, rgba(51, 117, 86, 0.55) 10px 15px, transparent 16px),
    rgba(80, 126, 97, 0.28);
  border: 3px solid rgba(51, 117, 86, 0.45);
  border-radius: 50%;
}

@media (max-width: 820px) {
  .hero,
  .intro-panel,
  .field-grid,
  .choice-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

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

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 22px, 480px);
    padding-top: 14px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .panel,
  .result-card {
    padding: 18px;
  }

  .observation-map {
    grid-template-columns: 1fr;
  }

  .result-actions,
  .result-actions button,
  .form-actions button {
    width: 100%;
  }
}
