:root {
  color-scheme: light;
  --bg: #eef1f4;
  --bg-grid: rgba(71, 85, 105, 0.08);
  --surface: #f5f7f9;
  --surface-strong: #fbfcfd;
  --surface-muted: #e8edf1;
  --text: #20242a;
  --muted: #656d78;
  --subtle: #8b939d;
  --line: rgba(32, 36, 42, 0.1);
  --green: #14b981;
  --green-dark: #087f61;
  --coral: #d66a4f;
  --red: #d14b4b;
  --amber: #d9961c;
  --blue: #3d75b8;
  --shadow-raised: 12px 12px 28px rgba(170, 181, 190, 0.72),
    -12px -12px 28px rgba(255, 255, 255, 0.88);
  --shadow-soft: 8px 8px 18px rgba(170, 181, 190, 0.55),
    -8px -8px 18px rgba(255, 255, 255, 0.86);
  --shadow-inset: inset 7px 7px 14px rgba(170, 181, 190, 0.5),
    inset -7px -7px 14px rgba(255, 255, 255, 0.9);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.icon-sprite {
  display: none;
}

.icon,
.feature-icon,
.input-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon {
  width: 20px;
  height: 20px;
}

.feature-icon {
  width: 30px;
  height: 30px;
}

.input-icon {
  width: 22px;
  height: 22px;
}

.page-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(245, 247, 249, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--surface-strong);
  background: linear-gradient(145deg, #22272d, #111418);
  box-shadow: 5px 5px 12px rgba(170, 181, 190, 0.62),
    -5px -5px 12px rgba(255, 255, 255, 0.84);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--green-dark);
  background: #e3f6ee;
  box-shadow: inset 4px 4px 8px rgba(149, 170, 160, 0.38),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.soft-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.soft-button:active {
  box-shadow: var(--shadow-inset);
}

.secondary-button {
  padding: 0 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.secondary-button:hover {
  color: var(--blue);
}

.primary-button {
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(145deg, #18c78c, #0fa875);
  box-shadow: 10px 10px 22px rgba(129, 151, 161, 0.65),
    -10px -10px 22px rgba(255, 255, 255, 0.9);
}

.primary-button:hover {
  background: linear-gradient(145deg, #19d193, #0c9569);
}

.primary-button:disabled {
  cursor: wait;
  color: rgba(255, 255, 255, 0.72);
  background: #9ca8ad;
}

.hero {
  padding: 112px 0 48px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #202226;
  font-size: 5.1rem;
  line-height: 1.08;
  font-weight: 900;
}

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

.hero-subtitle {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 58px;
}

.feature-card,
.soft-panel,
.privacy-pill,
.satire-note {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.feature-card {
  min-height: 168px;
  padding: 28px;
  text-align: center;
}

.feature-card .feature-icon {
  margin: 0 auto 18px;
  color: var(--coral);
}

.feature-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-pill {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 34px;
  padding: 0 30px;
  color: var(--text);
  font-weight: 800;
}

.privacy-pill .icon {
  color: var(--coral);
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(100%, 920px);
  margin: 0 auto;
}

.soft-panel {
  padding: 30px;
}

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

.panel-heading.compact {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.35;
}

.fake-badge,
.result-tag {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green-dark);
  background: #e3f6ee;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 4px 4px 8px rgba(149, 170, 160, 0.38),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

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

.field {
  min-width: 0;
  margin-bottom: 22px;
}

.field label,
.model-fieldset legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
}

.field label span {
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 500;
}

.input-shell {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(32, 36, 42, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  box-shadow: var(--shadow-inset);
  padding: 0 16px;
  color: var(--muted);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 1.05rem;
}

.input-shell input::placeholder {
  color: var(--subtle);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: color 180ms ease, box-shadow 180ms ease;
}

.icon-button:hover {
  color: var(--blue);
}

.icon-button:active {
  box-shadow: var(--shadow-inset);
}

.model-fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

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

.model-option {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(32, 36, 42, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  box-shadow: inset 4px 4px 9px rgba(170, 181, 190, 0.42),
    inset -4px -4px 9px rgba(255, 255, 255, 0.86);
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.model-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.model-option span:last-child {
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.35;
}

.radio-ui {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #b8c0c7;
  border-radius: 50%;
  background: var(--surface);
}

.model-option:has(input:checked) {
  color: var(--text);
  border-color: rgba(20, 185, 129, 0.5);
  background: #eef8f3;
}

.model-option:has(input:checked) .radio-ui {
  border: 6px solid var(--green);
}

.field-note {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.validation-message {
  min-height: 22px;
  margin: 0 0 18px;
  color: var(--red);
  font-weight: 800;
}

.submit-button {
  width: 100%;
  min-height: 62px;
  font-size: 1.05rem;
  font-weight: 900;
}

.page-view {
  min-height: calc(100vh - 128px);
}

.detection-view {
  display: grid;
  place-items: center;
  padding: 72px 0 36px;
}

.progress-panel {
  width: min(100%, 940px);
  padding: 40px;
}

.is-hidden {
  display: none !important;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-inset);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--coral));
  transition: width 260ms ease;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  min-height: 58px;
  border: 1px solid rgba(32, 36, 42, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--muted);
  background: var(--surface-muted);
  box-shadow: var(--shadow-inset);
  font-size: 0.88rem;
  line-height: 1.45;
}

.step-list li.is-active {
  color: var(--blue);
  border-color: rgba(61, 117, 184, 0.35);
}

.step-list li.is-done {
  color: var(--green-dark);
  border-color: rgba(20, 185, 129, 0.42);
}

.scan-console {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  background: #20242a;
  box-shadow: inset 8px 8px 18px rgba(0, 0, 0, 0.28),
    inset -8px -8px 18px rgba(255, 255, 255, 0.05);
  padding: 18px;
  color: #d7e3df;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

.scan-console p {
  margin: 0;
}

.scan-console p::before {
  color: var(--green);
  content: "> ";
}

.result-section {
  padding: 34px 0 0;
}

.result-layout {
  width: min(100%, 1120px);
  margin: 0 auto;
}

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

.result-heading h2 {
  max-width: 740px;
  margin: 14px 0 0;
  font-size: 2rem;
  line-height: 1.25;
}

.result-heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
}

.result-tag.is-pass {
  color: var(--green-dark);
  background: #dff6eb;
}

.result-tag.is-risk {
  color: #8a5a00;
  background: #fff1d5;
}

.result-tag.is-fail {
  color: #9b2f2f;
  background: #ffe4e4;
}

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

.kpi-card {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(245, 247, 249, 0.86);
  box-shadow: 16px 16px 34px rgba(171, 181, 190, 0.58),
    -14px -14px 32px rgba(255, 255, 255, 0.86);
  padding: 32px;
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 800;
}

.kpi-card strong {
  display: block;
  margin-top: 30px;
  color: var(--green);
  font-size: 3.05rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.kpi-card small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.kpi-card.is-warning strong {
  color: var(--amber);
}

.kpi-card.is-danger strong {
  color: var(--red);
}

.satire-note h2 {
  margin: 0;
  font-size: 1.34rem;
}

.satire-note {
  margin-top: 22px;
  padding: 28px;
  border-color: rgba(214, 106, 79, 0.3);
  background: linear-gradient(145deg, #f7eee9, #f2f5f7);
}

.satire-note p {
  max-width: 980px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

:focus-visible {
  outline: 3px solid rgba(61, 117, 184, 0.8);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 4.1rem;
  }

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

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, var(--max-width));
    padding-top: 14px;
  }

  .topbar {
    top: 10px;
    align-items: stretch;
  }

  .brand-copy {
    display: block;
  }

  .brand-copy small {
    display: none;
  }

  .secondary-button {
    min-width: 48px;
    padding: 0 14px;
  }

  .hero {
    padding: 70px 0 34px;
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 1.16;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .feature-grid,
  .field-grid,
  .model-grid,
  .kpi-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    margin-top: 36px;
  }

  .privacy-pill {
    width: 100%;
    align-items: flex-start;
    padding: 16px;
    line-height: 1.6;
  }

  .soft-panel,
  .progress-panel,
  .satire-note {
    padding: 22px;
  }

  .panel-heading,
  .result-heading {
    display: grid;
  }

  .result-heading h2 {
    font-size: 1.65rem;
  }

  .result-actions {
    justify-content: stretch;
  }

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

  .kpi-card {
    min-height: 180px;
    padding: 26px;
  }

  .kpi-card strong {
    margin-top: 22px;
    font-size: 2.55rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 20px, var(--max-width));
  }

  .topbar {
    padding: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .secondary-button span {
    display: none;
  }

  .nav-pill {
    max-width: 130px;
    white-space: normal;
    text-align: center;
  }

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

  .input-shell {
    min-height: 58px;
    padding: 0 12px;
  }

  .model-option {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
