:root {
  color-scheme: light;
  --navy: #033966;
  --ink: #092d49;
  --teal: #087970;
  --muted: #446172;
  --paper: #f9f8f3;
  --rule: #d8dfda;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.wrap { width: min(100% - 36px, 1200px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 10px; left: 10px; transform: translateY(-150%); background: white; padding: .65rem; }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--rule); }
.topbar { display: grid; justify-items: start; gap: 2px; padding-block: 10px 0; }
.brand { display: inline-block; }
.brand img { display: block; width: 84px; height: 84px; }
nav { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .83rem; font-weight: 650; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.hero { display: grid; gap: 32px; padding-block: 42px 35px; }
h1 { font-size: clamp(2.55rem, 8.7vw, 4.65rem); line-height: 1.16; letter-spacing: -.057em; font-weight: 850; color: var(--navy); }
.hero-copy > p { max-width: 32em; color: var(--muted); font-size: 1rem; line-height: 1.9; margin-block: 18px 22px; }
.button { display: inline-flex; gap: 18px; align-items: center; min-height: 48px; background: var(--navy); color: white; border-radius: 8px; padding: .73rem 1.1rem; text-decoration: none; font-weight: 750; }
.button:hover { background: #07527c; }
.scene { min-width: 0; background: var(--navy); color: white; border-radius: 18px; overflow: hidden; padding: 26px 16px 14px; background-image: radial-gradient(circle at 91% 12%, #15666c, transparent 60%), linear-gradient(145deg, #033966 0%, #082d50 100%); }
.scene-content { display: grid; gap: 14px; max-width: 490px; margin-inline: auto; }
.card { border-radius: 14px; box-shadow: 0 14px 28px #001e3e53; padding: 15px; }
.sample { background: #fffef9; color: var(--ink); width: min(100%, 355px); margin-inline: auto; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--teal); font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.card-dot { border: 2px solid #298b7d; border-radius: 100%; width: 9px; height: 9px; }
.identity { display: flex; gap: 9px; align-items: center; }
.identity > div { display: grid; gap: 3px; line-height: 1.4; }
.identity strong { font-size: 1.32rem; }
.identity span:not(.initial), .sample-bottom > div:first-child span { color: var(--muted); font-size: .78rem; }
.initial { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--teal); background: #e2f0e7; font-weight: 800; }
.sample-bottom { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample-bottom p { font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.qr-demo { display: grid; justify-items: center; gap: 5px; flex: none; }
.qr-demo span { white-space: nowrap; font-size: .75rem; font-weight: 700; }
.qr { display: grid; grid-template: repeat(5, 1fr) / repeat(5, 1fr); gap: 3px; width: 51px; height: 51px; flex: none; }
.qr i { background: var(--navy); }
.qr i:nth-child(1), .qr i:nth-child(2), .qr i:nth-child(3) { grid-row: span 2; grid-column: span 2; border: 3px solid var(--navy); background: #fffef9; box-shadow: inset 0 0 0 2px #fffef9, inset 0 0 0 6px var(--navy); }
.qr i:nth-child(2) { grid-area: 1 / 4 / 3 / 6; }
.qr i:nth-child(3) { grid-area: 4 / 1 / 6 / 3; }
.qr i:nth-child(7) { grid-area: 4 / 4; }
.qr i:nth-child(8) { grid-area: 5 / 3; }
.note { justify-self: end; background: #d9efe4; color: var(--ink); width: min(236px, 100%); padding: 10px 13px; }
.note .card-top { margin-bottom: 4px; }
.note p { font-size: .82rem; line-height: 1.55; }
.lock { width: 11px; height: 8px; border-radius: 2px; background: currentColor; position: relative; margin-top: 4px; }
.lock::before { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 5px 5px 0 0; width: 7px; height: 6px; top: -5px; left: 2px; }
.scene figcaption { font-size: .7rem; color: #e5f6f1; margin-top: 15px; }
.steps { border-top: 1px solid var(--rule); background: #eef4ed; padding-block: 32px 37px; }
h2 { font-size: clamp(1.38rem, 4vw, 2.13rem); line-height: 1.35; letter-spacing: -.025em; color: var(--navy); }
.step-list { display: grid; gap: 14px; padding: 0; margin-block: 18px 0; list-style: none; }
.step-list li { border-top: 1px solid #b4c8be; padding-block: 13px 0; }
h3 { font-size: 1.05rem; }
.step-list p { color: var(--muted); margin-top: 5px; line-height: 1.7; font-size: .94rem; }
.footer { border-top: 1px solid var(--rule); padding-block: 16px 21px; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 9px 24px; }
.footer p { line-height: 1.6; color: var(--muted); font-size: .81rem; }
.footer strong { color: var(--navy); }
.guide { max-width: 890px; padding-block: 36px 54px; }
.guide-intro { padding-bottom: 24px; }
.guide-intro p { color: var(--muted); margin-top: 12px; line-height: 1.8; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 700; text-underline-offset: .2em; }
.guide-content section { border-top: 1px solid var(--rule); padding-block: 20px 24px; }
.guide-content h2 { margin-bottom: 10px; }
.guide-content p, .guide-content ol { line-height: 1.85; }
.guide-content p + p { margin-top: 10px; }
.guide-content ol { padding-left: 1.5em; margin-block: 0 12px; }
.guide-content li + li { margin-top: 4px; }
.guide-content a { color: var(--teal); text-underline-offset: .2em; }
.hint { background: #e7f2e9; padding: .65rem .85rem; border-radius: 8px; color: var(--muted); font-size: .9rem; }
@media (min-width: 620px) {
  .topbar { grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding-block: 10px; }
  .topbar nav { justify-self: end; }
  .brand img { width: 96px; height: 96px; }
  nav { gap: 3px 23px; font-size: .93rem; }
  .mobile-break { display: none; }
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 850px) {
  .wrap { width: min(100% - 112px, 1200px); }
  .hero { grid-template-columns: 1fr 1fr; gap: clamp(35px, 5vw, 80px); align-items: center; padding-block: 69px 67px; }
  .hero-copy > p { font-size: 1.08rem; margin-block: 22px 25px; }
  .scene { padding: 34px 28px 22px; }
  .scene-content { gap: 18px; }
  .card { padding: 21px; }
  .sample { margin-inline: 0; }
  .note { padding: 14px 17px; }
  .sample-bottom { margin-top: 18px; padding-top: 14px; }
  .qr { width: 64px; height: 64px; }
  .scene figcaption { margin-top: 20px; }
  .steps { padding-block: 36px 41px; }
  .footer { padding-block: 20px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  nav { gap: 2px 8px; }
}
