:root {
  color-scheme: light;
  --ink: #17202f;
  --muted: #5f6c7b;
  --paper: #f5f7f8;
  --surface: #ffffff;
  --line: #dfe6e8;
  --green: #c7e968;
  --cyan: #17a9c1;
  --blue: #2666d6;
  --orange: #ff8b38;
  --yellow: #ffcf5a;
  --mint: #55c7a7;
  --board: #e9f7ff;
  --shadow: 0 18px 54px rgba(19, 31, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(38, 102, 214, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(38, 102, 214, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(85, 199, 167, 0.18), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(255, 207, 90, 0.18), transparent 22%),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(23, 169, 193, 0.14) 40% 42%, transparent 42% 100%),
    linear-gradient(28deg, transparent 0 58%, rgba(255, 139, 56, 0.12) 58% 60%, transparent 60% 100%);
  pointer-events: none;
}

a {
  color: inherit;
}

.policy-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.policy-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.policy-card a {
  color: var(--blue);
  font-weight: 800;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.75;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(320px, 640px) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.play-section {
  min-width: 0;
}

.game-frame {
  position: sticky;
  top: 18px;
  overflow: hidden;
  min-height: min(900px, calc(100vh - 36px));
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(23, 169, 193, 0.42);
  border-radius: 30px 30px 12px 12px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.85), transparent 22%),
    linear-gradient(180deg, #dff4ff 0%, #dff4ff 72%, #d9f8ef 72%, #d9f8ef 100%);
  box-shadow: var(--shadow);
}

.game-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(38, 102, 214, 0.14);
  border-radius: 22px 22px 8px 8px;
  pointer-events: none;
}

.game-embed {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 640px;
  height: 960px;
  border: 0;
  background: transparent;
  transform: scale(var(--game-scale, 1));
  transform-origin: top left;
}

.game-fallback {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 1;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  color: #23404a;
  background: rgba(255, 255, 255, 0.78);
}

.game-fallback span {
  color: var(--muted);
  font-size: 14px;
}

.action-panel {
  display: grid;
  gap: 18px;
}

.intro,
.feedback-box,
.content-band,
.qr-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-color: rgba(38, 102, 214, 0.18);
  background:
    linear-gradient(135deg, rgba(38, 102, 214, 0.08), transparent 45%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.intro::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -36px;
  width: 160px;
  height: 160px;
  border: 18px solid rgba(23, 169, 193, 0.1);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.language-switch {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.language-switch a {
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(38, 102, 214, 0.16);
  border-radius: 999px;
  color: #264b76;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="true"] {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.tagline,
.feedback-box p,
.feature-section p,
.guide-list p,
.qr-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tagline {
  margin-bottom: 14px;
  font-size: 18px;
}

.summary-list {
  margin: 0 0 16px;
  padding: 14px 16px 14px 34px;
  border: 1px solid rgba(38, 102, 214, 0.12);
  border-radius: 8px;
  color: #2d3a4a;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.summary-list li + li {
  margin-top: 6px;
}

.demo-note {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.route-visual {
  position: relative;
  height: 54px;
  margin: 18px 0 12px;
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 28px;
  align-items: center;
}

.route-node {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(38, 102, 214, 0.22);
}

.route-node.start {
  background: var(--blue);
}

.route-node.pivot {
  background: var(--orange);
}

.route-node.finish {
  background: var(--mint);
}

.route-line {
  height: 12px;
  background: linear-gradient(90deg, rgba(38, 102, 214, 0.18), rgba(23, 169, 193, 0.64));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.route-line.second {
  background: linear-gradient(90deg, rgba(255, 139, 56, 0.72), rgba(85, 199, 167, 0.68));
}

.signal-row {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-row span {
  padding: 6px 10px;
  border: 1px solid rgba(38, 102, 214, 0.16);
  border-radius: 999px;
  color: #264b76;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qr-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 169, 193, 0.06), transparent 54%),
    var(--surface);
}

.qr-card::before {
  content: "";
  position: absolute;
  left: 58px;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--cyan), var(--orange));
  opacity: 0.16;
}

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

.qr-card.search-card::before {
  display: none;
}

.wechat-search-scan {
  width: 100%;
  display: block;
  border: 1px solid rgba(23, 169, 193, 0.24);
  border-radius: 8px;
  background: #fff;
}

.qr-copy {
  display: grid;
  gap: 4px;
}

.qr-card h2,
.qr-card p {
  margin-bottom: 0;
}

.qr-card h2 {
  grid-column: 2;
}

.qr-card p {
  grid-column: 2;
  font-size: 14px;
}

.qr-card.search-card h2,
.qr-card.search-card p {
  grid-column: auto;
}

.qr-placeholder {
  position: relative;
  grid-row: span 2;
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px dashed #9eb0ba;
  border-radius: 8px;
  color: #405461;
  background:
    linear-gradient(90deg, transparent 47%, rgba(23, 169, 193, 0.16) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, rgba(23, 169, 193, 0.16) 47% 53%, transparent 53%),
    #f7fbfc;
  font-weight: 800;
}

.qr-placeholder::before,
.qr-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(23, 169, 193, 0.16);
}

.qr-placeholder::before {
  width: 12px;
  height: 12px;
  top: 12px;
  left: 12px;
}

.qr-placeholder::after {
  width: 10px;
  height: 10px;
  right: 14px;
  bottom: 14px;
}

.qr-card.primary .qr-placeholder {
  border-color: var(--cyan);
}

.qr-card.muted {
  opacity: 0.82;
}

.feedback-box {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 207, 90, 0.16), transparent 40%),
    #fff;
}

.feedback-box::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 54px;
  height: 22px;
  border-top: 6px solid rgba(255, 139, 56, 0.22);
  border-right: 6px solid rgba(255, 139, 56, 0.22);
  border-radius: 0 14px 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
}

.content-band {
  grid-column: 1 / -1;
  padding: 26px;
  box-shadow: 0 10px 32px rgba(19, 31, 43, 0.05);
}

.guide-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.faq-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.section-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}

.guide-list li {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfcfd, #ffffff),
    #fbfcfd;
}

.guide-list li::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
  opacity: 0.55;
}

.guide-list span {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.guide-list strong {
  display: block;
  margin-bottom: 6px;
}

.guide-list p {
  margin-bottom: 0;
  font-size: 14px;
}

.faq-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.faq-list dt {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-section article {
  position: relative;
  padding: 12px 0 4px 18px;
}

.feature-section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 8px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--mint));
}

.feature-section p {
  margin-bottom: 0;
}

.site-footer {
  grid-column: 1 / -1;
  padding: 0 4px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 860px) {
  body {
    background: #eef3f5;
  }

  .page-shell {
    padding: 18px 10px 28px;
    display: block;
  }

  .game-frame {
    position: relative;
    top: auto;
    width: 100%;
    min-height: auto;
    max-height: none;
    border-radius: 28px 28px 10px 10px;
    box-shadow: 0 10px 30px rgba(19, 31, 43, 0.16);
  }

  .action-panel {
    margin-top: 16px;
  }

  .intro {
    padding: 26px 22px;
  }

  h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 17px;
  }

  .content-band {
    margin-top: 16px;
    padding: 22px;
  }

  .guide-section,
  .guide-list,
  .faq-section,
  .faq-list,
  .cta-grid,
  .feature-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .game-frame {
    border-left: 0;
    border-right: 0;
    border-radius: 26px 26px 0 0;
  }

  .action-panel,
  .content-band {
    margin-left: 10px;
    margin-right: 10px;
  }

  .qr-card {
    grid-template-columns: 82px 1fr;
  }

  .qr-placeholder {
    width: 82px;
    font-size: 13px;
  }
}
