:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #637083;
  --line: #dfe4e8;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --green: #16885f;
  --green-soft: #e8f4ef;
  --blue: #315c9f;
  --blue-soft: #edf2fa;
  --amber: #9a5b15;
  --amber-soft: #fff5e8;
  --shadow: 0 14px 36px rgba(25, 36, 48, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 92, 159, 0.28);
  outline-offset: 3px;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border-radius: 6px;
  background: var(--ink);
}

.brand-mark span {
  background: #ffffff;
}

.brand-mark span:last-child {
  background: #42c88a;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.channel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c5968;
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a86f;
  box-shadow: 0 0 0 4px rgba(40, 168, 111, 0.12);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 64px;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(620px, 1.6fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: start;
}

.support-intro {
  position: sticky;
  top: 30px;
  min-width: 0;
}

.eyebrow,
.card-kicker,
.dialog-toolbar p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  max-width: 8em;
  margin: 14px 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 32em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.service-index {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.service-index-item {
  min-height: 76px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.service-index-item > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.service-index-item strong {
  display: block;
  font-size: 14px;
}

.service-index-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.security-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid #d58a30;
  background: var(--amber-soft);
}

.security-label {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.security-note p {
  margin: 5px 0 0;
  color: #6c5538;
  font-size: 12px;
  line-height: 1.7;
}

.qr-section {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qr-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.qr-card--group {
  border-top-color: var(--blue);
}

.qr-card--group .card-kicker {
  color: var(--blue);
}

.qr-card-header {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.qr-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.card-number {
  color: #b4bdc7;
  font-size: 12px;
  font-weight: 700;
}

.qr-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 18px 0 20px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e6e9ec;
  border-radius: 6px;
  background: #ffffff;
  cursor: zoom-in;
}

.qr-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(23, 32, 42, 0.86);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.qr-preview:hover .zoom-hint,
.qr-preview:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.qr-card-footer {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qr-card-footer strong {
  display: block;
  font-size: 14px;
}

.qr-card-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.save-link {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.qr-card--group .save-link {
  color: var(--blue);
}

.save-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.qr-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 23, 33, 0.25);
}

.qr-dialog::backdrop {
  background: rgba(17, 25, 34, 0.72);
}

.dialog-toolbar {
  min-height: 74px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-toolbar h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: #f2f4f6;
}

.dialog-image-wrap {
  padding: 24px;
  background: #f7f8f9;
}

.dialog-image-wrap img {
  width: 100%;
  max-height: calc(100vh - 154px);
  display: block;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 1000px) {
  main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  .support-intro {
    position: static;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 28px;
    align-items: end;
  }

  h1 {
    max-width: 12em;
  }

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

  .security-note {
    margin: 0;
  }
}

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

  .site-header {
    min-height: 72px;
  }

  .channel-label {
    font-size: 0;
  }

  main {
    padding: 34px 0 46px;
  }

  .support-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    max-width: none;
    margin-top: 10px;
    font-size: 36px;
  }

  .lead {
    font-size: 15px;
  }

  .service-index {
    margin-top: 26px;
  }

  .qr-section {
    grid-template-columns: 1fr;
  }

  .qr-card {
    padding: 22px;
  }

  .qr-preview {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
  }

  .zoom-hint {
    display: none;
  }

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

@media (max-width: 420px) {
  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  .service-index {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .qr-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .save-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zoom-hint {
    transition: none;
  }
}
