:root {
  --paper: #f5f0e6;
  --ink: #1e1b23;
  --yellow: #f5d95c;
  --coral: #ff6f5d;
  --mint: #65d2aa;
  --blue: #718df0;
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background-image: radial-gradient(
    rgb(30 27 35 / 14%) 0.55px,
    transparent 0.55px
  );
  background-size: 7px 7px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.research-header,
.research-shell,
.research-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.research-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 84px;
  border-bottom: 2px solid var(--ink);
}

.research-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.research-brand b {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 21px;
}

.research-brand small,
.research-status {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.research-brand small {
  display: block;
  margin-top: 2px;
}

.research-status {
  padding: 8px 10px;
  border: 1.5px dashed var(--ink);
}

.research-shell {
  padding: 62px 0 100px;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.research-kicker,
.section-kicker {
  display: inline-block;
  padding: 7px 10px;
  background: var(--ink);
  color: white;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.research-hero h1 {
  max-width: 760px;
  margin: 25px 0 20px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.09em;
}

.research-hero h1 em {
  color: var(--coral);
  font-style: normal;
}

.research-lead {
  max-width: 690px;
  margin: 0;
  font-size: clamp(16px, 2.1vw, 23px);
  line-height: 1.55;
  font-weight: 750;
}

.research-note {
  position: relative;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 17px 26px 14px 22px;
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
}

.research-note::before {
  content: "内部流转单";
  position: absolute;
  right: 20px;
  top: -15px;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: cursive;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(4deg);
}

.research-note strong {
  display: block;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.research-note p {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.research-section {
  margin-top: 76px;
}

.research-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  padding-bottom: 17px;
  border-bottom: 2px solid var(--ink);
}

.research-section__heading h2 {
  margin: 13px 0 0;
  font-size: clamp(31px, 5vw, 55px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.research-section__heading p {
  max-width: 440px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.mission-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
}

.mission-card,
.report-card,
.summary-card {
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #fffdf7;
}

.mission-card {
  position: relative;
  min-height: 290px;
  padding: 22px;
}

.mission-card.is-complete {
  background: color-mix(in srgb, var(--mint) 58%, white);
}

.mission-card__number,
.mission-card__state {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.mission-card__state {
  float: right;
  padding: 4px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.mission-card h3 {
  margin: 58px 0 8px;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.mission-card p {
  margin: 0 0 17px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.mission-card small {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 850;
}

.research-button,
.mission-card a,
.file-picker {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.research-button--ghost {
  background: transparent;
  color: var(--ink);
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.test-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: white;
}

.test-progress strong {
  font-size: 18px;
}

.test-progress span {
  font-size: 12px;
  font-weight: 750;
}

.progress-track {
  grid-column: 1 / -1;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: white;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.privacy-strip {
  margin-top: 24px;
  padding: 15px 18px;
  border: 1.5px dashed var(--ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.55;
}

.upload-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 25px;
}

.drop-zone {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 25px;
  border: 2px dashed var(--ink);
  border-radius: 15px;
  background: #fffdf7;
  text-align: center;
  cursor: pointer;
}

.drop-zone.is-dragging {
  background: var(--yellow);
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong,
.drop-zone small {
  display: block;
}

.drop-zone strong {
  margin-bottom: 9px;
  font-size: 23px;
}

.drop-zone small {
  max-width: 420px;
  font-size: 11px;
  line-height: 1.6;
}

.upload-help {
  padding: 23px;
  border: 2px solid var(--ink);
  background: var(--yellow);
}

.upload-help h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.upload-help ol {
  margin: 0;
  padding-left: 21px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.summary-card {
  padding: 20px;
}

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card strong {
  font-size: 38px;
  letter-spacing: -0.06em;
}

.summary-card span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 850;
}

.report-card {
  padding: 20px;
}

.report-card h3 {
  margin: 4px 0 7px;
  font-size: 23px;
}

.report-card p,
.report-card small {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.rating-bar {
  display: flex;
  height: 13px;
  margin: 17px 0 11px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

.rating-bar i:nth-child(1) {
  background: var(--mint);
}
.rating-bar i:nth-child(2) {
  background: var(--yellow);
}
.rating-bar i:nth-child(3) {
  background: var(--coral);
}

.report-table-wrap {
  margin-top: 22px;
  border: 2px solid var(--ink);
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf7;
  font-size: 11px;
}

.report-table th,
.report-table td {
  min-width: 130px;
  padding: 12px;
  border-bottom: 1px solid rgb(30 27 35 / 25%);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: var(--yellow);
  font-weight: 900;
}

.empty-report {
  margin-top: 22px;
  padding: 45px 24px;
  border: 2px dashed var(--ink);
  text-align: center;
  font-weight: 800;
}

.research-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 32px;
  border-top: 2px solid var(--ink);
  font-size: 10px;
  font-weight: 850;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .research-hero,
  .upload-panel {
    grid-template-columns: 1fr;
  }

  .mission-grid,
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .research-header,
  .research-shell,
  .research-footer {
    width: min(100% - 28px, 1160px);
  }

  .research-brand small,
  .research-status {
    display: none;
  }

  .research-shell {
    padding-top: 42px;
  }

  .research-hero h1 {
    font-size: clamp(54px, 17vw, 79px);
  }

  .research-note {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .research-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-grid,
  .report-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .research-actions .research-button {
    flex: 1 1 100%;
  }

  .research-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track i {
    transition: none;
  }
}
