:root {
  color-scheme: light;
  --ink: #18251e;
  --muted: #667369;
  --soft: #f1f5f2;
  --surface: #ffffff;
  --line: #dce5df;
  --green: #087f5b;
  --green-deep: #056346;
  --green-soft: #e7f4ee;
  --blue: #1769d2;
  --shadow: 0 18px 45px rgba(30, 64, 45, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 127, 91, 0.045), transparent 240px),
    var(--soft);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.brand-bar {
  display: flex;
  justify-content: center;
  padding: 22px 18px 0;
}

.brand-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(8, 127, 91, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px 16px;
  box-shadow: 0 5px 18px rgba(31, 76, 51, 0.06);
  font-size: 13px;
  font-weight: 650;
}

.brand-chip .icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--green);
}

#brandName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 12px;
  flex: none;
  background: var(--line);
}

.brand-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 34px 18px 38px;
}

.contact-panel {
  width: 100%;
  max-width: 520px;
}

.heading-group {
  margin-bottom: 22px;
  text-align: center;
}

.heading-group h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 31px;
  font-weight: 760;
  line-height: 1.25;
}

.heading-group p {
  max-width: 440px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-card-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #24362c;
  font-size: 14px;
  font-weight: 700;
}

.small-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.small-mark .icon {
  width: 18px;
  height: 18px;
}

.qr-stage {
  position: relative;
  display: grid;
  width: min(100%, 310px);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.qr-stage img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #87958c;
  font-size: 13px;
}

.qr-placeholder .icon {
  width: 44px;
  height: 44px;
  color: #a7b8ae;
}

[hidden] {
  display: none !important;
}

.scan-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--green);
  border-style: solid;
  pointer-events: none;
}

.corner-top-left {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0;
}

.corner-top-right {
  top: 6px;
  right: 6px;
  border-width: 2px 2px 0 0;
  border-radius: 0 3px 0 0;
}

.corner-bottom-left {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 3px;
}

.corner-bottom-right {
  right: 6px;
  bottom: 6px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px;
}

.scan-tip {
  margin: 16px 0 18px;
  color: #b33b32;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.action-stack {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(23, 105, 210, 0.24);
  outline-offset: 2px;
}

.button .icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  background: var(--green-deep);
}

.button-secondary {
  border-color: #cbd9d0;
  background: #fff;
  color: #284337;
}

.button-secondary:hover {
  border-color: #9eb8a9;
  background: #f8fbf9;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.action-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #557366;
  font-size: 12px;
}

.footer-note {
  margin: 26px auto 0;
  color: #87938b;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .mobile-action {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-bar {
    padding: 16px 12px 0;
  }

  .brand-chip {
    gap: 7px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .brand-note {
    max-width: 112px;
    font-size: 10px;
  }

  .main-content {
    align-items: flex-start;
    padding: 28px 14px 30px;
  }

  .heading-group {
    margin-bottom: 20px;
  }

  .heading-group h1 {
    font-size: 27px;
  }

  .qr-card {
    padding: 20px 18px;
  }

  .qr-stage {
    width: min(100%, 286px);
    padding: 12px;
  }

  .footer-note {
    margin-top: 22px;
  }
}

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