:root {
  --bg: #06152c;
  --bg-soft: #0a2850;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-dark: rgba(7, 25, 53, 0.94);
  --primary: #1677ff;
  --primary-dark: #0752b8;
  --cyan: #33e1ef;
  --text: #12213a;
  --muted: #6c7890;
  --line: #e6edf7;
  --success: #0eaa70;
  --danger: #db3f55;
  --shadow: 0 24px 70px rgba(0, 21, 58, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: linear-gradient(145deg, #041126, #08264d 58%, #071b37);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.ambient,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-one {
  background: radial-gradient(circle at 12% 10%, rgba(27, 120, 255, 0.38), transparent 34%);
}

.ambient-two {
  background: radial-gradient(circle at 88% 22%, rgba(51, 225, 239, 0.23), transparent 30%);
}

.grid-overlay {
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #8cf6ff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
}

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

.brand strong {
  font-size: 21px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.83);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.secure-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55f1b2;
  box-shadow: 0 0 14px #55f1b2;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 640px;
  padding: 54px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #73eaf4;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.eyebrow span {
  width: 25px;
  height: 2px;
  background: #73eaf4;
  box-shadow: 0 0 12px #73eaf4;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(90deg, #fff, #73eaf4 72%);
  background-clip: text;
  font-style: normal;
}

.hero-desc {
  max-width: 600px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 17px;
  line-height: 1.9;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 14px;
}

.trust-row i {
  color: #73eaf4;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.query-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card-glow {
  position: absolute;
  right: -80px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 225, 239, 0.22), transparent 68%);
}

.query-heading,
.section-head,
.result-status,
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-label {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.query-heading h2,
.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 27px;
}

.pulse-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.1);
}

.pulse-icon::before,
.pulse-icon i {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pulse-icon::before {
  width: 12px;
  height: 12px;
  background: var(--primary);
  box-shadow: 0 0 15px rgba(22, 119, 255, 0.72);
}

.pulse-icon i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(22, 119, 255, 0.45);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from { opacity: 0.8; transform: translate(-50%, -50%) scale(0.55); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

.input-label {
  display: block;
  margin: 30px 0 10px;
  color: #46546b;
  font-size: 14px;
  font-weight: 650;
}

.code-input-wrap {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe4f1;
  border-radius: 15px;
  background: #f7f9fc;
  transition: 0.2s ease;
}

.code-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}

.input-icon {
  width: 24px;
  height: 24px;
  color: #8390a5;
}

.input-icon svg,
.clear-btn svg {
  width: 100%;
  height: 100%;
}

.code-input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #12213a;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.code-input-wrap input::placeholder {
  color: #a4aebe;
}

.clear-btn {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  color: #8190a5;
  background: #eaf0f7;
}

.input-hint {
  margin: 8px 3px 0;
  color: #9aa5b5;
  text-align: right;
  font-size: 11px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.action-button {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  border-color: #b8d4ff;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.1);
}

.button-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.09);
}

.button-icon svg {
  width: 23px;
  height: 23px;
}

.action-button strong,
.action-button small {
  display: block;
}

.action-button strong {
  font-size: 14px;
}

.action-button small {
  margin-top: 4px;
  color: #8a96a8;
  font-size: 11px;
}

.submit-button {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(110deg, #0752b8, #1677ff 58%, #21b8e9);
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.28);
  font-weight: 750;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-button svg {
  width: 21px;
  height: 21px;
}

.submit-loading {
  display: none;
  align-items: center;
  gap: 9px;
}

.submit-loading i {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.loading .submit-text,
.submit-button.loading > svg {
  display: none;
}

.submit-button.loading .submit-loading {
  display: inline-flex;
}

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

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 17px 0 0;
  color: #8a96a8;
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note svg {
  width: 16px;
  height: 16px;
}

.result-section {
  margin: 10px 0 60px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.ghost-button,
.secondary-button {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.result-panel {
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.result-status {
  gap: 16px;
  padding: 26px 30px;
  color: #fff;
  background: linear-gradient(110deg, #06428f, #0877cd 58%, #12a6bb);
}

.status-emblem,
.error-emblem {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.status-emblem {
  background: rgba(255, 255, 255, 0.16);
}

.status-emblem svg,
.error-emblem svg {
  width: 26px;
  height: 26px;
}

.result-status > div {
  min-width: 0;
  flex: 1;
}

.result-status p,
.result-status h3 {
  margin: 0;
}

.result-status p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.result-status h3 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.verified-stamp {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

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

.field-item {
  min-width: 0;
  padding: 22px 26px;
  background: #fff;
}

.field-item span,
.field-item strong {
  display: block;
}

.field-item span {
  margin-bottom: 8px;
  color: #8793a5;
  font-size: 12px;
}

.field-item strong {
  color: #17253c;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.55;
}

.result-footer {
  gap: 20px;
  padding: 18px 26px;
  color: #8a96a8;
  background: #f8fafc;
  font-size: 11px;
}

.error-panel {
  padding: 48px 28px;
  text-align: center;
}

.error-emblem {
  margin: 0 auto 18px;
  color: var(--danger);
  background: rgba(219, 63, 85, 0.1);
}

.error-panel h3 {
  margin: 0;
  font-size: 23px;
}

.error-panel p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.error-panel .secondary-button {
  color: var(--primary-dark);
  border-color: #d3e3fb;
  background: #eff6ff;
}

.steps-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 70px;
}

.steps-section article {
  min-width: 0;
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.steps-section article > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #73eaf4;
  background: rgba(115, 234, 244, 0.11);
  font-size: 12px;
}

.steps-section h3,
.steps-section p {
  margin: 0;
}

.steps-section h3 {
  font-size: 14px;
}

.steps-section p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

footer {
  position: relative;
  z-index: 1;
  padding: 24px 20px 36px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 12px;
}

footer p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 20, 0.78);
  backdrop-filter: blur(10px);
}

.scanner-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  background: var(--panel-dark);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}

.scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.scanner-head h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
}

.modal-close {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.modal-close svg {
  width: 100%;
  height: 100%;
}

.scanner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 360px;
  overflow: hidden;
  border-radius: 19px;
  background: #020712;
}

#reader,
#reader > div,
#reader video {
  width: 100% !important;
  height: 100% !important;
}

#reader {
  position: absolute;
  inset: 0;
}

#reader video {
  display: block;
  object-fit: cover !important;
}

#reader img,
#reader__dashboard,
#reader__scan_region > img {
  display: none !important;
}

.scan-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.44));
  mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size: 100% 100%, min(68vw, 290px) min(68vw, 290px);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

.scan-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72%, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.scan-frame i {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #4cf4ff;
  border-style: solid;
  filter: drop-shadow(0 0 7px #4cf4ff);
}

.scan-frame i:nth-child(1) {
  left: 0;
  top: 0;
  border-width: 4px 0 0 4px;
}

.scan-frame i:nth-child(2) {
  right: 0;
  top: 0;
  border-width: 4px 4px 0 0;
}

.scan-frame i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-width: 0 0 4px 4px;
}

.scan-frame i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 4px 4px 0;
}

.scan-frame span {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 9px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4cf4ff 18%, #fff 50%, #4cf4ff 82%, transparent);
  box-shadow: 0 0 14px #4cf4ff;
  animation: scanLine 2.15s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(calc(min(72vw, 300px) - 20px)); opacity: 1; }
}

.scanner-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 25px;
  color: rgba(255, 255, 255, 0.74);
  background: #020712;
  text-align: center;
}

.scanner-placeholder.hidden {
  display: none;
}

.camera-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #73eaf4;
  background: rgba(115, 234, 244, 0.1);
}

.camera-symbol svg {
  width: 30px;
  height: 30px;
}

.scanner-tip {
  margin: 13px 0;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 12px;
}

.scanner-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.scanner-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.scanner-actions button.active {
  color: #06152c;
  background: #73eaf4;
}

.scanner-actions svg {
  width: 18px;
  height: 18px;
}

.toast-region {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100% - 28px));
  pointer-events: none;
}

.toast {
  margin-top: 9px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #fff;
  background: rgba(7, 25, 53, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.toast.error {
  background: rgba(126, 17, 39, 0.96);
}

.toast.success {
  background: rgba(6, 112, 74, 0.96);
}

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

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 30px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .eyebrow,
  .trust-row {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .query-card {
    width: min(560px, 100%);
    margin: 0 auto;
  }
}

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

  .topbar {
    padding: 14px 0;
  }

  .secure-badge {
    display: none;
  }

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

  .hero {
    min-height: 0;
    padding: 27px 0 48px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-desc {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
  }

  .trust-row {
    gap: 12px 18px;
    margin-top: 24px;
  }

  .query-card {
    padding: 24px 16px 20px;
    border-radius: 22px;
  }

  .query-heading h2 {
    font-size: 23px;
  }

  .input-label {
    margin-top: 24px;
  }

  .code-input-wrap {
    height: 55px;
    padding: 0 12px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .action-button {
    min-height: 68px;
  }

  .submit-button {
    height: 55px;
  }

  .privacy-note {
    align-items: flex-start;
    text-align: left;
  }

  .section-head {
    align-items: flex-end;
    gap: 14px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .ghost-button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .result-status {
    padding: 22px 18px;
  }

  .verified-stamp {
    display: none;
  }

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

  .field-item {
    padding: 18px;
  }

  .result-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 15px 18px;
  }

  .steps-section {
    grid-template-columns: 1fr;
    margin-bottom: 45px;
  }

  .modal {
    padding: 0;
  }

  .scanner-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
  }

  .scanner-head {
    flex: 0 0 auto;
  }

  .scanner-stage {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .scan-frame {
    width: min(72vw, 300px);
  }

  .scanner-actions {
    flex: 0 0 auto;
  }

  @keyframes scanLine {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(calc(min(72vw, 300px) - 20px)); opacity: 1; }
  }
}

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

.scan-frame::before,
.scan-frame::after {
  position: absolute;
  content: "";
  inset: -10px;
  border-radius: 20px;
  border: 1px solid rgba(76, 244, 255, 0.28);
  animation: scannerPulse 2.2s ease-out infinite;
}

.scan-frame::after {
  animation-delay: 1.1s;
}

@keyframes scannerPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.96);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.scan-frame {
  width: min(78%, 340px);
  filter: drop-shadow(0 0 18px rgba(76, 244, 255, 0.22));
}

.scan-mask {
  background: transparent;
  mask: none;
}

.scan-frame {
  box-shadow: 0 0 0 9999px rgba(0, 5, 16, 0.52);
}

.scan-frame span {
  left: 10px;
  right: 10px;
  top: 10px;
  height: 3px;
  animation: scanLineV21 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes scanLineV21 {
  0% {
    transform: translateY(0);
    opacity: 0.45;
  }

  45%,
  55% {
    opacity: 1;
  }

  100% {
    transform: translateY(calc(min(78vw, 340px) - 24px));
    opacity: 0.45;
  }
}

.zoom-panel {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
}

.zoom-panel input {
  width: 100%;
  accent-color: #73eaf4;
}

.zoom-panel strong {
  min-width: 44px;
  color: #73eaf4;
  text-align: right;
}

.scanner-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 620px) {
  .code-input-wrap input {
    font-size: 13px;
    letter-spacing: 0;
  }

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

  .clear-btn {
    width: 28px;
    height: 28px;
  }

  .scan-frame {
    width: min(78vw, 340px);
  }
}
.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.input-hint {
  display: none !important;
}
.code-input-wrap {
  margin-top: 24px;
}
.result-section .section-head h2 {
  color: #ffffff;
}
.site-footer {
  margin-top: 48px;
  padding: 28px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
}

.footer-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 6px 0;
}

.footer-copyright {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
}

.footer-contact,
.footer-record {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-divider {
  margin: 0 6px;
  color: #64748b;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-links span {
  color: #64748b;
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 36px;
    padding: 24px 16px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-contact,
  .footer-record,
  .footer-links {
    font-size: 12px;
  }

  .footer-record {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-divider {
    display: none;
  }
}
.police-record {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police-record img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}