:root {
  --ink: #17352c;
  --ink-soft: #52675f;
  --brand: #176b4d;
  --brand-dark: #0f513a;
  --brand-pale: #e8f3ed;
  --accent: #d8a73e;
  --accent-pale: #fbf2d9;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dbe5df;
  --danger: #a13f3f;
  --shadow: 0 18px 50px rgba(20, 62, 46, 0.09);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% 6%, rgba(216, 167, 62, 0.13), transparent 26rem),
    linear-gradient(180deg, #f8fbf8 0%, var(--paper) 55%, #f3f7f4 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

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

button {
  cursor: pointer;
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 107, 77, 0.22);
}

.header-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.hero {
  max-width: 1180px;
  margin: 26px auto 52px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 18px;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--brand);
}

.hero-copy {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 50px 50px 22px 50px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(9, 67, 46, 0.95), rgba(23, 107, 77, 0.88)),
    repeating-linear-gradient(125deg, transparent 0 20px, rgba(255, 255, 255, 0.04) 20px 21px);
  box-shadow: var(--shadow);
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drone-orbit {
  width: 250px;
  height: 250px;
  align-self: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.drone-orbit::before,
.drone-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  inset: 28px;
}

.drone-orbit::after {
  inset: 62px;
}

.drone-symbol {
  font-size: 64px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.visual-caption strong {
  display: block;
  font-size: 24px;
}

.visual-caption small {
  color: rgba(255, 255, 255, 0.72);
}

.choice-section {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 28px;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}

.section-intro h2 {
  margin: 0;
  font-size: 30px;
}

.section-intro p {
  margin: 0;
  color: var(--ink-soft);
}

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

.survey-card {
  position: relative;
  padding: 32px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(20, 62, 46, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.survey-card:hover {
  transform: translateY(-4px);
  border-color: #aacabb;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-pale);
  font-size: 25px;
}

.survey-card:nth-child(2) .card-icon {
  background: var(--accent-pale);
}

.time-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-soft);
  background: #f1f5f2;
  font-size: 12px;
  font-weight: 700;
}

.survey-card h3 {
  margin: 24px 0 8px;
  font-size: 24px;
}

.survey-card p {
  min-height: 54px;
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.card-link {
  font-weight: 800;
}

.card-link::after {
  content: " →";
}

.privacy-band {
  max-width: 1180px;
  margin: 0 auto 60px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.privacy-icon {
  font-size: 24px;
}

.admin-entry {
  font-weight: 700;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  color: #71837b;
  font-size: 12px;
}

.form-body {
  background: #f5f8f5;
}

.survey-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
}

.survey-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.progress-shell {
  width: min(400px, 48vw);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  margin-bottom: 5px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9e3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #3f9a73);
  transition: width 220ms ease;
}

.survey-shell {
  max-width: 900px;
  margin: 40px auto 90px;
  padding: 0 22px;
}

.survey-title {
  margin-bottom: 26px;
}

.survey-title h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.survey-title p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.form-alert {
  display: none;
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid #e7baba;
  border-radius: 12px;
  color: var(--danger);
  background: #fff4f4;
}

.form-alert.visible {
  display: block;
}

.question-section {
  margin: 20px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 62, 46, 0.045);
}

.question-section[hidden] {
  display: none;
}

.section-heading {
  display: flex;
  gap: 15px;
  align-items: start;
  margin-bottom: 23px;
}

.section-number {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  font-size: 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.question {
  margin: 0;
  padding: 19px 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid #edf2ef;
  min-width: 0;
}

.question:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.question[hidden] {
  display: none;
}

.question-label {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  font-weight: 700;
}

.required {
  color: var(--danger);
}

.question-help {
  margin: -7px 0 11px;
  color: var(--ink-soft);
  font-size: 13px;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.input-row input {
  max-width: 330px;
}

.unit {
  color: var(--ink-soft);
  white-space: nowrap;
}

input[type="text"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #cbd9d1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.12);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}

.option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d7e1dc;
  border-radius: 11px;
  background: #fbfcfb;
  cursor: pointer;
}

.option:hover {
  border-color: #9fbeaf;
  background: #f6faf7;
}

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

.matrix-wrap {
  overflow-x: auto;
}

.matrix {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  font-size: 13px;
}

.matrix th,
.matrix td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.matrix th:first-child,
.matrix td:first-child {
  width: 45%;
  text-align: left;
}

.matrix thead th {
  color: var(--ink-soft);
  font-weight: 700;
}

.matrix input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.matrix-scale {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 24px 6px;
}

.form-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.button,
.primary,
.secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  text-align: center;
}

.primary {
  color: #fff;
  background: var(--brand);
}

.primary:hover {
  color: #fff;
  background: var(--brand-dark);
}

.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary {
  color: var(--brand);
  border-color: #b9d0c4;
  background: var(--brand-pale);
}

.ghost {
  color: var(--ink-soft);
  border-color: var(--line);
  background: transparent;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.thanks-page,
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.thanks-card,
.empty-card {
  width: min(620px, 100%);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-pale);
  font-size: 34px;
}

.thanks-card h1,
.empty-card h1 {
  margin: 0 0 12px;
  font-size: 34px;
}

.submission-code {
  display: inline-block;
  margin: 10px 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f2f7f4;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.admin-body {
  background: #f4f7f5;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #14392d;
  color: #fff;
}

.admin-brand {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.admin-brand span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-right: 7px;
  border-radius: 9px;
  color: #14392d;
  background: #f2d071;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.admin-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.link-button {
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.8);
  border: 0;
  background: transparent;
}

.admin-main {
  max-width: 1280px;
  margin: 34px auto 70px;
  padding: 0 28px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 4px 0;
  font-size: 32px;
}

.page-heading p {
  margin: 0;
  color: var(--ink-soft);
}

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

.kpi-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.kpi-card span,
.kpi-card small {
  display: block;
  color: var(--ink-soft);
}

.kpi-card strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 32px;
  line-height: 1.1;
}

.kpi-card.accent {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.kpi-card.accent span,
.kpi-card.accent small {
  color: rgba(255, 255, 255, 0.75);
}

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

.panel {
  margin-bottom: 18px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.panel.flush {
  padding: 0;
  overflow: hidden;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bars {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 145px) 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-label {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6eee9;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-value {
  text-align: right;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5ece8;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--ink-soft);
  background: #f7faf8;
  font-size: 12px;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: #fbfdfc;
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.tag {
  padding: 3px 8px;
  font-size: 11px;
}

.tag.farmer {
  color: #0d6242;
  background: #e2f3ea;
}

.tag.pilot {
  color: #7e5908;
  background: #faefce;
}

.filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.filter-form label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.filter-form .grow {
  flex: 1;
}

.empty {
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.hint {
  color: var(--ink-soft);
  font-size: 12px;
  word-break: break-all;
}

.answer-sheet {
  padding: 8px 30px 30px;
}

.answer-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.answer-section:last-child {
  border-bottom: 0;
}

.answer-section h2 {
  margin-bottom: 14px;
}

.answer-section dl {
  margin: 0;
}

.answer-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed #e5ece8;
}

.answer-row:last-child {
  border-bottom: 0;
}

.answer-row dt {
  color: var(--ink-soft);
}

.answer-row dd {
  margin: 0;
  font-weight: 600;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 8px 0;
  font-size: 30px;
}

.login-card p {
  color: var(--ink-soft);
}

.login-form {
  display: grid;
  gap: 10px;
  margin: 24px 0 18px;
}

.login-form label {
  font-weight: 700;
}

.alert {
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--danger);
  background: #fff1f1;
  font-size: 13px;
}

.back-link {
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .survey-cards,
  .summary-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-form {
    flex-wrap: wrap;
  }

  .filter-form label {
    flex: 1 1 160px;
  }

  .admin-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 18px;
  }

  .header-note {
    display: none;
  }

  .hero,
  .choice-section,
  .privacy-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 28px;
  }

  .hero-visual {
    min-height: 270px;
    padding: 25px;
  }

  .drone-orbit {
    width: 180px;
    height: 180px;
  }

  .section-intro,
  .page-heading,
  .form-actions,
  .privacy-band {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .survey-card {
    padding: 24px;
  }

  .survey-header-inner {
    padding: 10px 16px;
  }

  .progress-shell {
    width: 52vw;
  }

  .survey-shell {
    margin-top: 24px;
    padding: 0 14px;
  }

  .question-section {
    padding: 21px 17px;
    border-radius: 16px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
  }

  .form-actions .primary {
    width: 100%;
  }

  .admin-main {
    padding: 0 14px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .answer-sheet {
    padding: 4px 18px 20px;
  }

  .answer-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .thanks-card,
  .empty-card,
  .login-card {
    padding: 30px 22px;
  }
}
