:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dde6;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --green: #157347;
  --blue: #1d4ed8;
  --amber: #b45309;
  --red: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
}

.brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 24px 48px;
}

.tool-hero {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 6px 0 10px;
  max-width: 780px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.eyebrow {
  color: var(--green) !important;
  font-size: 13px !important;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-strip span {
  background: #eaf6ef;
  border: 1px solid #bfe4cd;
  border-radius: 999px;
  color: #14532d;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 10px;
}

.workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 0.9fr 1fr;
}

.modebar {
  background: #e9edf3;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  gap: 4px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  width: min(420px, 100%);
}

button,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
}

button.active,
.primary {
  background: var(--ink);
  color: #ffffff;
}

.secondary,
.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 18px;
}

.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title h2,
.csv-mapping h3,
.warnings h3,
.content-band h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin: 0;
}

.panel-title span {
  color: var(--muted);
  font-size: 13px;
}

.file-drop {
  align-items: center;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 76px;
  padding: 14px;
  text-align: center;
}

.file-drop input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  height: 238px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

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

label {
  color: #344054;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

input,
select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.fineprint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.error {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

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

.metrics div {
  border-bottom: 1px solid #eef0f3;
  padding: 0 0 9px;
}

.metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metrics dd {
  font-size: 18px;
  font-weight: 760;
  margin: 4px 0 0;
}

.warnings {
  background: #fff8eb;
  border: 1px solid #f6d7a8;
  border-radius: 8px;
  color: var(--amber);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 12px;
}

.warnings p,
.warnings ul {
  margin: 6px 0 0;
}

.ack {
  align-items: start;
  display: grid;
  grid-template-columns: 18px 1fr;
  line-height: 1.4;
}

.ack input {
  min-height: auto;
  width: auto;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button {
  background: var(--green);
  color: #ffffff;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.csv-mapping {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.hidden {
  display: none !important;
}

.intent-band,
.content-band,
.legal-page {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.intent-band {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intent-band button {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #1e3a8a;
}

.intent-form {
  align-items: end;
  display: none;
  gap: 10px;
  margin-left: auto;
}

.intent-form.visible {
  display: flex;
}

.intent-form label {
  min-width: 220px;
}

.content-band p,
.legal-page p,
.legal-page li {
  color: #475467;
  line-height: 1.65;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 24px;
}

@media (max-width: 920px) {
  .topbar,
  nav,
  .tool-hero,
  .workspace {
    display: block;
  }

  .topbar {
    padding: 18px;
  }

  nav {
    margin-top: 12px;
  }

  nav a {
    display: inline-block;
    margin: 0 12px 8px 0;
  }

  .status-strip {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .modebar,
  .panel {
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 20px 14px 36px;
  }

  .field-grid,
  .mapping-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 28px;
  }
}

/* ---- 冷启动内容块：trust / who-is-this-for / use cases / feedback ---- */
.trust-banner {
  align-items: baseline;
  background: #eaf6ef;
  border: 1px solid #bfe4cd;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.trust-banner strong {
  font-size: 15px;
}

.trust-banner p {
  color: #1b5e3a;
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.audience-band,
.usecases-band,
.feedback-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.audience-band h2,
.usecases-band h2,
.feedback-band h2 {
  font-size: 17px;
  margin: 0 0 10px;
}

.audience-band p {
  color: #475467;
  line-height: 1.65;
  margin: 0;
}

.usecases-band {
  overflow-x: auto;
}

.usecases {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
  width: 100%;
}

.usecases th,
.usecases td {
  border-bottom: 1px solid #eef0f3;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.usecases th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.usecases td {
  color: #344054;
  line-height: 1.5;
}

.feedback-band {
  background: #f4f8ff;
  border-color: #c7d7fe;
}

.feedback-band p {
  color: #475467;
  line-height: 1.6;
  margin: 0 0 10px;
}

.feedback-qs {
  color: #344054;
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 20px;
}

.feedback-band .button {
  background: var(--blue);
  color: #ffffff;
}
