:root {
  color-scheme: light;
  --ink: #15191e;
  --muted: #5b6673;
  --line: #dfe5e8;
  --panel: #ffffff;
  --band: #f5f7f8;
  --teal: #0fbaaa;
  --teal-dark: #087a72;
  --coral: #f1675e;
  --amber: #f8b84e;
  --blue: #3478f6;
  --shadow: 0 16px 42px rgba(21, 25, 30, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-control {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.language-control select {
  height: 34px;
  min-width: 116px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.topnav a:hover {
  background: var(--band);
  color: var(--ink);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.icon-button svg,
.button svg,
.workflow svg,
.file-drop svg,
.report-empty svg,
.locked-block svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 72px) 28px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 42%, rgba(245, 247, 248, 0.7) 100%),
    var(--band);
}

.result-example-band,
.trust-band,
.pricing-band,
.faq-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px);
}

.result-example-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.example-copy p {
  color: var(--muted);
}

.example-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.example-card ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.example-card li + li {
  margin-top: 5px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

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

.hero-actions,
.form-actions,
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 186, 170, 0.22);
}

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

.button.ghost {
  background: #15191e;
  color: #fff;
}

.button.text {
  min-height: 36px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
}

.button.text:hover {
  background: var(--band);
  color: var(--ink);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.mode-tab.active {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(21, 25, 30, 0.07);
}

.mode-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.form-section-note {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.help-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(15, 186, 170, 0.42);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.help-button:hover,
.help-button:focus {
  border-color: var(--teal);
  background: rgba(15, 186, 170, 0.09);
  outline: none;
}

.with-help {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.tooltip {
  position: fixed;
  z-index: 50;
  max-width: min(320px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
}

.tooltip.hidden {
  display: none;
}

.full-only.is-hidden {
  display: none;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.metric-strip > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.metric-strip > span > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.metric-strip strong {
  display: block;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.1;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
}

.workflow-band {
  padding: 14px clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.workflow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.workflow svg {
  color: var(--amber);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px);
}

.input-panel,
.report-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-panel {
  padding: clamp(16px, 3vw, 28px);
}

.report-panel {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 800;
}

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

.field-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

input {
  height: 42px;
  padding: 0 10px;
}

textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 186, 170, 0.14);
}

.wide-field {
  margin-top: 12px;
}

.file-drop {
  position: relative;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px dashed var(--teal);
  border-radius: var(--radius);
  background: rgba(15, 186, 170, 0.08);
  color: var(--teal-dark);
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f9fbfb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

td input {
  height: 34px;
  border-color: transparent;
  background: #f7f9fa;
}

td:first-child input {
  min-width: 180px;
}

td:last-child {
  width: 44px;
  text-align: center;
}

.row-delete {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius);
  background: #fff2f1;
  color: var(--coral);
  cursor: pointer;
}

.form-actions {
  justify-content: space-between;
}

#formStatus {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.report-empty svg {
  width: 46px;
  height: 46px;
  color: var(--teal);
}

.report-empty p {
  max-width: 320px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.score-grid div {
  min-height: 74px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--band);
}

.score-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.preview-block,
.locked-block,
.full-report section {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(248, 184, 78, 0.2);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
}

.preview-block p,
.locked-block p,
.full-report p,
.full-report li {
  color: var(--muted);
}

.locked-block {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, #fff, #fff 12px, #f8fafb 12px, #f8fafb 24px);
}

.locked-block svg {
  width: 34px;
  height: 34px;
  color: var(--coral);
}

.full-report {
  max-height: 72vh;
  overflow: auto;
  padding-right: 2px;
}

.full-report h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.full-report ul,
.full-report ol {
  margin: 0;
  padding-left: 19px;
}

.full-report li + li {
  margin-top: 6px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 0 !important;
  list-style: none;
}

.pill-list li {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--band);
  color: var(--ink);
  font-size: 12px;
}

.pricing-band {
  padding-bottom: 28px;
}

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

.pricing-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pricing-grid .highlight {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(15, 186, 170, 0.12);
}

.pricing-grid strong {
  display: block;
  margin: 10px 0;
  font-size: 26px;
}

.pricing-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.pricing-grid .price-action {
  width: 100%;
  margin-top: 14px;
}

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

.trust-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 25, 30, 0.05);
}

.trust-grid article {
  padding: 14px;
}

.trust-grid i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: rgba(15, 186, 170, 0.1);
  color: var(--teal-dark);
}

.trust-grid svg {
  width: 18px;
  height: 18px;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-band {
  padding-bottom: 56px;
}

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

.faq-list details {
  padding: 14px 16px;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .field-grid,
  .field-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .report-panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
    min-width: 220px;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .result-example-band {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .metric-strip,
  .pricing-grid,
  .trust-grid,
  .faq-list {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding-inline: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .field-grid,
  .field-grid.compact,
  .metric-strip,
  .pricing-grid,
  .trust-grid,
  .faq-list,
  .score-grid,
  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .form-actions .button,
  .upload-row .button,
  .file-drop {
    width: 100%;
  }

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

@media print {
  .topbar,
  .hero-band,
  .workflow-band,
  .input-panel,
  .pricing-band,
  .locked-block,
  #copyReport {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .report-panel {
    border: 0;
    box-shadow: none;
  }

  .full-report {
    max-height: none;
    overflow: visible;
  }
}
