:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #202b3b;
  background: #f4f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --accent: #626bd9;
  --muted: #87909f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 8% 5%, #e5ecef 0, transparent 43%),
    radial-gradient(ellipse at 93% 90%, #ecebf3 0, transparent 45%),
    #f4f6f8;
}
.page-shell {
  width: min(1060px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(44px, 8vh, 100px) 0 28px;
}
.community-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 225, 232, .8);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(39, 51, 76, .055), 0 2px 8px rgba(39, 51, 76, .02);
}
.community-card::before {
  position: absolute;
  top: 0;
  left: 48px;
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #959be0;
  content: "";
}
.card-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  gap: clamp(36px, 5vw, 76px);
  padding: 52px 48px 42px;
}
.introduction { align-self: center; min-width: 0; padding: 8px 0 28px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 45px; }
.brand-portrait {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px #e4e8ed, 0 5px 12px #2535540a;
}
.brand-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 50%; }
.brand-name { font-size: 17px; font-weight: 650; letter-spacing: .045em; line-height: 1.6; }
.eyebrow {
  display: table;
  margin: 0 0 18px;
  border: 1px solid #e8e9f8;
  padding: 6px 11px;
  border-radius: 6px;
  color: #7077bd;
  background: #f8f8fd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.6;
}
h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(29px, 3.6vw, 42px);
  font-weight: 670;
  line-height: 1.46;
  letter-spacing: -.03em;
}
.description { max-width: 30em; margin: 22px 0 0; color: #768090; font-size: 14px; line-height: 2; }
.intro-mark { display: flex; gap: 6px; margin-top: 34px; }
.intro-mark span { width: 5px; height: 5px; border-radius: 100%; background: #dfe3ea; }
.intro-mark span:first-child { width: 22px; border-radius: 3px; background: #c5cae9; }
.join-panel { min-width: 0; padding: 24px 25px 22px; border: 1px solid #ebedf5; border-radius: 18px; background: #fafbfe; text-align: center; }
.join-heading { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 21px; }
.join-symbol { display: inline-flex; width: 20px; height: 20px; color: #7d84bf; flex: 0 0 20px; }
.join-symbol svg { width: 100%; height: 100%; }
.join-heading h2 { margin: 0; font-size: 14px; font-weight: 620; line-height: 1.6; }
.qr-stage {
  width: 100%;
  padding: 12px;
  border: 1px solid #eceef3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px #25355404;
}
.qr-stage img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 2px; }
.qr-placeholder {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 20px 28px;
  border: 1px dashed #dce1ed;
  border-radius: 12px;
  background: #fff;
}
.placeholder-art { width: 75px; height: 75px; margin-bottom: 12px; color: #9aa3c2; }
.placeholder-art svg { width: 100%; height: 100%; }
.qr-placeholder h3 { margin: 0; color: #566277; font-size: 14px; font-weight: 550; line-height: 1.6; }
.qr-placeholder p { margin: 8px 0 0; color: #939baa; font-size: 12px; line-height: 1.9; }
.qr-caption { margin: 17px 0 0; color: #858e9e; font-size: 12px; line-height: 1.8; }
.download-button {
  display: flex;
  min-height: 46px;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 14px;
  color: #fff;
  background: #6972d7;
  box-shadow: 0 4px 10px #6972d716;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
  transition: background .16s ease, box-shadow .16s ease;
}
.download-button:hover { background: #5b65c6; box-shadow: 0 5px 14px #6972d728; }
.download-button:focus-visible { outline: 3px solid #bcc0f1; outline-offset: 3px; }
.download-button > svg { width: 17px; height: 17px; flex: 0 0 17px; }
.download-button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 100%; animation: spin .8s linear infinite; }
.download-button[aria-busy="true"] .button-spinner { display: block; }
.helper-text { margin: 13px 0 0; color: #a0a7b4; font-size: 11px; line-height: 1.8; }
.download-status { margin: 12px 0 0; color: #697b6c; font-size: 12px; line-height: 1.8; }
.download-status.is-error { color: #b06468; }
.guide { margin: 0 48px; padding: 27px 0 32px; border-top: 1px solid #eef0f4; }
.guide h2 { margin: 0 0 19px; color: #9aa2ae; font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.guide-steps li { display: flex; align-items: flex-start; gap: 11px; color: #7c8796; font-size: 12px; line-height: 1.9; counter-increment: step; }
.guide-steps li::before {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid #e5e8ef;
  border-radius: 7px;
  color: #9ba4b4;
  font-size: 10px;
  line-height: 1;
  content: counter(step, decimal-leading-zero);
}
.page-footer { margin-top: 23px; color: #a2aab6; font-size: 11px; line-height: 1.9; text-align: center; letter-spacing: .03em; }
[data-text], .download-status { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-text]:empty { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .page-shell { width: min(480px, calc(100% - 32px)); padding-top: 24px; padding-bottom: 24px; }
  .community-card { border-radius: 23px; }
  .community-card::before { left: 26px; width: 34px; }
  .card-content { grid-template-columns: minmax(0, 1fr); gap: 27px; padding: 30px 25px 26px; }
  .introduction { padding: 0; }
  .brand { margin-bottom: 27px; gap: 12px; }
  .brand-portrait { width: 49px; height: 49px; flex-basis: 49px; }
  .brand-name { font-size: 15px; }
  .eyebrow { margin-bottom: 14px; padding: 4px 8px; font-size: 10px; }
  h1 { max-width: 100%; font-size: clamp(26px, 7vw, 34px); line-height: 1.43; }
  .description { margin-top: 14px; font-size: 13px; line-height: 1.95; }
  .intro-mark { display: none; }
  .join-panel { padding: 21px 20px 19px; border-radius: 15px; }
  .join-heading { margin-bottom: 17px; }
  .qr-stage { max-width: 280px; margin: 0 auto; padding: 11px; }
  .qr-placeholder { min-height: 231px; padding: 17px 14px 23px; }
  .guide { margin: 0 25px; padding: 22px 0 26px; }
  .guide h2 { margin-bottom: 15px; }
  .guide-steps { grid-template-columns: 1fr; gap: 13px; }
  .page-footer { margin-top: 18px; padding: 0 12px; font-size: 10px; }
}
@media (max-width: 359px) {
  .page-shell { width: calc(100% - 24px); padding-top: 16px; }
  .card-content { padding: 25px 20px 22px; gap: 23px; }
  .join-panel { padding: 18px 15px; }
  .guide { margin: 0 20px; }
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
