:root {
  color-scheme: light;
  --text: #303030;
  --line: #cccccc;
  --green: #5cb85c;
  --green-dark: #4cae4c;
  --blue: #3c78a6;
  --orange: #c9853c;
  --red: #be4c45;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body {
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
}

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

/* The first reference is intentionally spare: the form sits in the right half
   of a very wide white canvas, with no card or brand chrome around it. */
.verification-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.verification-shell {
  width: min(71vw, 1270px);
  margin: 0 auto;
  padding-top: 42px;
}

.verification-intro {
  margin: 0;
  color: #343434;
  font-size: clamp(12px, 0.38vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.verification-form {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}

.verification-form input {
  display: block;
  width: 100%;
  height: clamp(34px, 1vw, 40px);
  padding: 0 14px;
  color: #3c3c3c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  font-size: clamp(13px, 0.36vw, 16px);
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.verification-form #trace-code {
  margin-top: 18px;
}

.verification-form input::placeholder {
  color: #999;
  opacity: 1;
}

.verification-form input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

.verification-form input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 6px rgba(190, 76, 69, 0.28);
}

.trace-error {
  min-height: 0;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  text-align: left;
}

.verify-button {
  align-self: center;
  width: 178px;
  height: 40px;
  margin-top: 28px;
  color: #fff;
  background: var(--green);
  border: 1px solid #4faa4e;
  border-radius: 4px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease;
}

.verify-button:hover,
.verify-button:focus-visible {
  background: var(--green-dark);
}

.verify-button:active {
  transform: translateY(1px);
}

.verify-button:focus-visible,
.result-back:focus-visible,
.help-float:focus-visible {
  outline: 3px solid rgba(77, 160, 220, 0.42);
  outline-offset: 3px;
}

.help-float {
  position: fixed;
  right: max(5px, 0.1vw);
  bottom: 50px;
  width: clamp(58px, 2.15vw, 110px);
  height: clamp(61px, 2.25vw, 115px);
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.support-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Result page: flat rows, green verification band, blue copy heading and
   orange contact lines, following the second reference from top to bottom. */
.result-page {
  width: 100%;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 40px;
  overflow-wrap: anywhere;
  background: #fff;
}

.used-status {
  margin: 27px 16px 45px;
  color: var(--red);
  font-size: clamp(22px, 3.15vw, 34px);
  line-height: 1.25;
  text-align: center;
}

.product-title {
  margin: 0 16px 28px;
  color: #2e2e2e;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.trace-band {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 90px;
  padding: 12px 14px;
  color: #fff;
  background: #72b766;
  font-size: clamp(20px, 3.34vw, 36px);
  line-height: 1.2;
}

.trace-check {
  display: inline-grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #72b766;
  background: #fff;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 900;
}

.trace-band strong {
  flex: 0 0 auto;
  font-weight: 800;
}

.result-code {
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.product-row {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e2e2;
  color: #303030;
  font-size: clamp(17px, 3.25vw, 35px);
  line-height: 1.45;
}

.product-row strong {
  flex: 0 0 auto;
  margin-right: 14px;
  font-weight: 800;
}

.product-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-description {
  display: block;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.product-copy {
  padding: 16px 20px 0;
}

.product-copy h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(17px, 2.88vw, 31px);
  font-weight: 800;
  line-height: 1.45;
}

.product-copy p {
  margin: 31px 0 0;
  color: #353535;
  font-size: clamp(16px, 3.15vw, 34px);
  line-height: 1.65;
}

.product-copy p + p {
  margin-top: 25px;
}

.product-copy .warning-copy {
  margin-top: 28px;
  font-weight: 800;
  font-style: italic;
}

.product-copy .contact-line {
  margin-top: 24px;
  color: var(--orange);
  font-weight: 800;
}

.provider {
  margin-top: 203px;
  padding: 0 22px;
  text-align: center;
}

.provider p {
  margin: 0;
  color: #a0a0a0;
  font-size: clamp(15px, 2.6vw, 28px);
  line-height: 1.5;
}

.provider strong {
  display: block;
  margin-top: 53px;
  color: #303030;
  font-size: clamp(20px, 3.4vw, 37px);
  line-height: 1.35;
}

.provider-details {
  margin-top: 22px;
  border-top: 1px solid #e2e2e2;
}

.provider-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e2e2;
  color: #303030;
  font-size: clamp(17px, 3.25vw, 35px);
  line-height: 1.45;
}

.provider-details strong {
  flex: 0 0 auto;
}

.provider-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-back {
  display: none;
}

@media (max-width: 700px) {
  html {
    scrollbar-color: #777 transparent;
    scrollbar-width: thin;
  }

  ::-webkit-scrollbar {
    width: 3px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 2px;
  }

  .verification-shell {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 58px;
  }

  .verification-intro {
    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    line-height: 1.4;
  }

  .verification-form {
    margin-top: 28px;
  }

  .verification-form input {
    height: 52px;
    padding: 0 14px;
    font-size: 16px;
  }

  .verification-form #trace-code {
    margin-top: 18px;
  }

  .verify-button {
    width: 220px;
    height: 52px;
    margin-top: 19px;
    font-size: 17px;
  }

  .help-float {
    right: 4px;
    bottom: 8px;
    width: 58px;
    height: 61px;
  }

  .result-page {
    max-width: none;
  }

  .used-status {
    margin: 10px 6px 16px;
    font-size: 13px;
  }

  .product-title {
    margin: 0 6px 10px;
    font-size: 14px;
    white-space: normal;
  }

  .trace-band {
    min-height: 33px;
    gap: 4px;
    padding: 4px 5px;
    font-size: 13px;
  }

  .trace-check {
    width: 11px;
    height: 11px;
    font-size: 9px;
  }

  .product-row {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 13px;
  }

  .product-row strong {
    margin-right: 5px;
  }

  .product-number span {
    font-weight: 800;
  }

  .product-description {
    min-height: 27px;
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1.45;
  }

  .product-copy {
    padding: 4px 7px 0;
  }

  .product-copy h2 {
    font-size: 12px;
  }

  .product-copy p {
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.65;
  }

  .product-copy p + p {
    margin-top: 9.5px;
  }

  .product-copy .warning-copy,
  .product-copy .contact-line {
    margin-top: 9.5px;
  }

  .provider {
    margin-top: 73px;
    padding: 0 8px;
  }

  .provider p {
    font-size: 10px;
  }

  .provider strong {
    margin-top: 18px;
    font-size: 14px;
  }

  .provider-details {
    margin-top: 8px;
  }

  .provider-details p {
    align-items: flex-start;
    gap: 5px;
    min-height: 27px;
    padding: 4px 7px;
    font-size: 12px;
  }
}

@media (min-width: 701px) {
  .product-row strong {
    margin-right: 0;
  }

  .product-copy .warning-copy {
    margin-top: 23px;
  }

  .result-back {
    margin-bottom: 36px;
  }
}

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