:root {
  --paper: #ffffff;
  --canvas: #edf5ff;
  --canvas-deep: #dbeaff;
  --ink: #071a48;
  --supporting: #62708e;
  --muted: #8d99b3;
  --electric: #0758f6;
  --electric-deep: #003fc7;
  --electric-soft: #e7f0ff;
  --seal: #c51e2d;
  --line: rgba(7, 26, 72, 0.12);
  --shadow-sheet: 0 1px 1px rgba(8, 53, 132, 0.05), 0 14px 34px rgba(27, 85, 178, 0.11), 0 38px 90px rgba(43, 101, 191, 0.08);
  --shadow-certificate: 0 2px 4px rgba(5, 37, 102, 0.08), 0 20px 60px rgba(21, 76, 165, 0.18);
  color-scheme: light;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.96) 45%, rgba(225, 239, 255, 0.98) 100%);
}

button,
input {
  font: inherit;
}

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

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  will-change: transform;
}

.ambient-one {
  top: -180px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(55, 139, 255, 0.3), rgba(55, 139, 255, 0));
}

.ambient-two {
  bottom: -260px;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(8, 79, 232, 0.21), rgba(8, 79, 232, 0));
}

.light-trails {
  position: fixed;
  z-index: 0;
  inset: -20%;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(-17deg);
}

.light-trails span {
  position: absolute;
  left: -70%;
  width: 74%;
  height: 4px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(100, 174, 255, 0.46), rgba(42, 128, 255, 0.82), rgba(7, 88, 246, 0.9), transparent);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(40, 126, 255, 0.58), 0 0 34px rgba(40, 126, 255, 0.28);
  will-change: transform, opacity;
}

.light-trails span:nth-child(1) {
  top: 28%;
}

.light-trails span:nth-child(2) {
  top: 54%;
  width: 62%;
}

.light-trails span:nth-child(3) {
  top: 76%;
  width: 52%;
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1040px);
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(7, 26, 72, 0.08);
}

.brand {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
}

.brand-latin {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-cn {
  font-size: 17px;
  font-weight: 700;
}

.header-label {
  color: var(--supporting);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

main {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

.lookup-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 80px;
  align-items: center;
  min-height: calc(100svh - 116px);
  padding: 64px 0 108px;
}

.intro {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--electric);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

#pageTitle {
  min-height: 2.2em;
  transition:
    opacity 280ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

#pageTitle.is-exiting {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

#pageTitle.is-entering {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: none;
}

.intro-copy {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--supporting);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.lookup-sheet {
  position: relative;
  padding: 34px 32px 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: var(--shadow-sheet);
  backdrop-filter: blur(18px);
}

.lookup-panel {
  min-width: 0;
}

.lookup-sheet::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--electric);
}

.lookup-sheet::after {
  position: absolute;
  z-index: 4;
  top: -90px;
  left: -10%;
  width: 120%;
  height: 82px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(50, 136, 255, 0.16), rgba(255, 255, 255, 0.62), transparent);
  content: "";
  pointer-events: none;
  transform: translate3d(0, -50px, 0);
  will-change: transform, opacity;
}

.lookup-sheet.is-scanning::after {
  animation: sheet-scan 920ms cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.sheet-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--electric-deep);
  font-size: 20px;
  font-weight: 760;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.input-wrap {
  position: relative;
  border-radius: 10px;
}

.input-wrap::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #5ba2ff 34%, #ffffff 50%, #0758f6 66%, transparent);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

.input-wrap:focus-within::after {
  animation: input-trace 720ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 54px;
  padding: 0 48px 0 16px;
  color: var(--ink);
  background: #f4f7fb;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  font-family: Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-variant-numeric: proportional-nums;
  letter-spacing: -0.02em;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #9ca6bb;
  letter-spacing: 0;
}

input:hover {
  background: #f0f4fa;
}

input:focus {
  background: var(--paper);
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(7, 88, 246, 0.12);
}

input[aria-invalid="true"] {
  border-color: var(--seal);
  box-shadow: 0 0 0 4px rgba(204, 29, 43, 0.1);
}

.clear-button {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.clear-button:hover {
  color: var(--ink);
  background: rgba(7, 26, 72, 0.05);
}

.format-hint,
.form-message {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.format-hint {
  color: var(--muted);
}

.form-message {
  margin-top: 4px;
  color: var(--seal);
  font-weight: 550;
}

.form-message:empty {
  display: none;
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button::after {
  position: absolute;
  top: -60%;
  left: -42%;
  width: 28%;
  height: 220%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  pointer-events: none;
  transform: translate3d(-180%, 0, 0) rotate(16deg);
}

.button-label,
.button-loader {
  position: relative;
  z-index: 1;
}

.primary-button {
  width: 100%;
  margin-top: 16px;
  color: white;
  background: var(--electric);
  border: 0;
  box-shadow: 0 8px 24px rgba(7, 88, 246, 0.22);
}

.primary-button:hover {
  background: #064edb;
}

.primary-button:active,
.text-button:active {
  transform: scale(0.97);
}

.primary-button:focus-visible,
.text-button:focus-visible,
.clear-button:focus-visible {
  outline: 3px solid rgba(7, 88, 246, 0.24);
  outline-offset: 2px;
}

.primary-button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .button-loader {
  display: block;
}

.primary-button.is-loading::after {
  animation: button-sheen 820ms linear infinite;
}

.support-note {
  margin: 18px 8px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.result-view {
  max-width: 600px;
  margin: 0 auto;
  padding: 52px 0 80px;
}

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

.result-heading .eyebrow {
  margin-bottom: 9px;
}

.result-heading h1 {
  font-size: clamp(30px, 5vw, 42px);
}

.text-button {
  flex: none;
  min-width: 88px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--electric-deep);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}

.text-button:hover {
  background: var(--electric-soft);
}

.save-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  margin-bottom: 20px;
  padding: 16px 50px 16px 18px;
  overflow: hidden;
  color: white;
  background: var(--electric);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(7, 88, 246, 0.18), 0 16px 34px rgba(7, 88, 246, 0.24);
}

.save-callout p {
  display: grid;
  gap: 5px;
  margin: 0;
  line-height: 1.4;
}

.save-callout strong {
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.save-callout p span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.press-gesture {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.press-gesture::before {
  position: absolute;
  top: 10px;
  left: 21px;
  width: 10px;
  height: 27px;
  background: white;
  border-radius: 7px 7px 5px 5px;
  content: "";
  transform: rotate(-7deg);
}

.press-gesture::after {
  position: absolute;
  top: 5px;
  left: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  content: "";
  animation: press-ring 1.8s ease-out infinite;
}

.save-arrow {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  animation: arrow-cue 1.4s ease-in-out infinite;
}

.certificate-showcase {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid rgba(7, 88, 246, 0.68);
  border-radius: 14px;
  box-shadow:
    0 0 0 5px rgba(7, 88, 246, 0.08),
    0 3px 8px rgba(5, 37, 102, 0.12),
    0 24px 64px rgba(21, 76, 165, 0.2);
}

.certificate-showcase::before {
  position: absolute;
  z-index: 3;
  top: -26%;
  left: -38%;
  width: 24%;
  height: 152%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), rgba(95, 168, 255, 0.3), transparent);
  content: "";
  pointer-events: none;
  transform: translate3d(-180%, 0, 0) rotate(14deg);
}

.certificate-showcase::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  border: 2px solid rgba(79, 157, 255, 0.9);
  border-radius: 12px;
  box-shadow: inset 0 0 28px rgba(7, 88, 246, 0.12), 0 0 24px rgba(7, 88, 246, 0.32);
  content: "";
  pointer-events: none;
  transform: scale(0.985);
}

.certificate-message {
  position: relative;
  padding: 18px 20px 17px 24px;
  background: linear-gradient(105deg, var(--electric-soft), rgba(255, 255, 255, 0.98));
  border-bottom: 2px solid rgba(7, 88, 246, 0.26);
  z-index: 1;
}

.certificate-message::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 5px;
  background: var(--electric);
  border-radius: 0 4px 4px 0;
  content: "";
}

.certificate-message span {
  display: block;
  margin-bottom: 7px;
  color: var(--electric-deep);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.certificate-message p {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.certificate-frame {
  position: relative;
  margin: 8px;
  overflow: hidden;
  background: white;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(5, 37, 102, 0.2);
  z-index: 1;
}

.certificate-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  content: "";
  pointer-events: none;
}

.certificate-frame img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-touch-callout: default;
  user-select: auto;
}

.result-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes press-ring {
  0%, 20% { opacity: 0; transform: scale(0.62); }
  45% { opacity: 0.9; }
  85%, 100% { opacity: 0; transform: scale(1.38); }
}

@keyframes arrow-cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stage-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes stage-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ambient-one-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-34px, 42px, 0) scale(1.08); }
}

@keyframes ambient-two-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(48px, -30px, 0) scale(1.06); }
}

@keyframes trail-flight {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scaleX(0.68); }
  10% { opacity: 0.92; }
  68% { opacity: 0.34; }
  100% { opacity: 0; transform: translate3d(250%, 0, 0) scaleX(1); }
}

@keyframes input-trace {
  0% { opacity: 0; transform: scaleX(0); }
  28% { opacity: 1; }
  78% { opacity: 0.9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes sheet-scan {
  0% { opacity: 0; transform: translate3d(0, -50px, 0); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, 450px, 0); }
}

@keyframes button-sheen {
  0% { opacity: 0; transform: translate3d(-180%, 0, 0) rotate(16deg); }
  20% { opacity: 0.78; }
  100% { opacity: 0; transform: translate3d(610%, 0, 0) rotate(16deg); }
}

@keyframes view-leave {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, -10px, 0) scale(0.992); }
}

@keyframes certificate-rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes certificate-sweep {
  0% { opacity: 0; transform: translate3d(-180%, 0, 0) rotate(14deg); }
  5% { opacity: 0; transform: translate3d(-180%, 0, 0) rotate(14deg); }
  12% { opacity: 0.92; }
  27% { opacity: 0; transform: translate3d(700%, 0, 0) rotate(14deg); }
  100% { opacity: 0; transform: translate3d(700%, 0, 0) rotate(14deg); }
}

@keyframes certificate-border-sign {
  0% { opacity: 0; transform: scale(0.985); }
  6% { opacity: 0; transform: scale(0.985); }
  14% { opacity: 1; }
  28% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes certificate-float {
  0%, 32%, 100% { transform: translate3d(0, 0, 0); }
  16% { transform: translate3d(0, -3px, 0); }
}

body.motion-ready .site-header {
  animation: stage-fade 440ms 40ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

body.motion-ready .intro .eyebrow {
  animation: stage-rise 460ms 100ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

body.motion-ready .intro h1 {
  animation: stage-rise 560ms 180ms cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

body.motion-ready .intro-copy {
  animation: stage-rise 500ms 300ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

body.motion-ready .lookup-panel {
  animation: stage-rise 620ms 360ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

body.motion-ready .primary-button:not(.is-loading)::after {
  animation: button-sheen 760ms 920ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

body.motion-ready .ambient-one {
  animation: ambient-one-drift 13s ease-in-out infinite alternate;
}

body.motion-ready .ambient-two {
  animation: ambient-two-drift 16s ease-in-out infinite alternate;
}

body.motion-ready .light-trails span:nth-child(1) {
  animation: trail-flight 8.4s 0s ease-in-out infinite;
}

body.motion-ready .light-trails span:nth-child(2) {
  animation: trail-flight 8.4s -2.8s ease-in-out infinite;
}

body.motion-ready .light-trails span:nth-child(3) {
  animation: trail-flight 8.4s -5.6s ease-in-out infinite;
}

.lookup-view.is-leaving {
  pointer-events: none;
  animation: view-leave 180ms cubic-bezier(0.77, 0, 0.175, 1) both;
}

.lookup-view.is-returning {
  animation: stage-rise 260ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.result-view.is-visible .result-heading,
.result-view.is-visible .save-callout,
.result-view.is-visible .result-footnote {
  animation: stage-rise 360ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.result-view.is-visible .save-callout {
  animation-delay: 70ms;
}

.result-view.is-visible .certificate-showcase {
  animation: certificate-rise 520ms 140ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.result-view.is-visible .certificate-showcase::before {
  animation: certificate-sweep 4.8s 380ms cubic-bezier(0.23, 1, 0.32, 1) infinite both;
}

.result-view.is-visible .certificate-showcase::after {
  animation: certificate-border-sign 4.8s 200ms cubic-bezier(0.23, 1, 0.32, 1) infinite both;
}

.result-view.is-visible .certificate-frame {
  animation: certificate-float 4.8s 760ms ease-in-out infinite;
}

.result-view.is-visible .result-footnote {
  animation-delay: 220ms;
}

body.motion-paused .ambient,
body.motion-paused .light-trails span,
body.motion-paused .press-gesture::after,
body.motion-paused .save-arrow,
body.motion-paused .certificate-showcase::before,
body.motion-paused .certificate-showcase::after,
body.motion-paused .certificate-frame {
  animation-play-state: paused;
}

body.motion-lite .light-trails {
  display: none;
}

body.motion-lite .ambient {
  animation: none;
}

@media (max-width: 760px) {
  .site-header,
  main {
    width: min(100% - 32px, 600px);
  }

  .site-header {
    height: 64px;
  }

  .brand-latin {
    font-size: 18px;
  }

  .brand-cn {
    font-size: 15px;
  }

  .header-label {
    font-size: 11px;
  }

  .lookup-view {
    display: block;
    min-height: auto;
    padding: 54px 0 48px;
  }

  .intro {
    margin-bottom: 36px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.13;
  }

  .intro-copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  .lookup-sheet {
    padding: 28px 22px 24px;
  }

  .sheet-mark {
    margin-bottom: 28px;
    font-size: 18px;
  }

  .support-note {
    margin-top: 18px;
  }

  .result-view {
    padding: 36px 0 64px;
  }

  .result-heading {
    align-items: center;
    margin-bottom: 20px;
  }

  .result-heading h1 {
    font-size: 30px;
  }

  .certificate-message {
    padding: 16px 16px 15px 20px;
  }

  .certificate-message::before {
    top: 16px;
    bottom: 16px;
    width: 4px;
  }

  .certificate-message p {
    font-size: 18px;
  }

}

@media (max-width: 380px) {
  .site-header,
  main {
    width: min(100% - 24px, 600px);
  }

  .header-label {
    display: none;
  }

  .lookup-view {
    padding-top: 38px;
  }

  .lookup-sheet {
    padding-inline: 18px;
  }
}

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