:root {
  color-scheme: dark;
  --bg: #081216;
  --bg-raised: #0d1a20;
  --bg-soft: #102229;
  --text: #eef8f5;
  --muted: #9db1af;
  --faint: #6e8382;
  --line: rgba(203, 232, 225, 0.13);
  --line-strong: rgba(203, 232, 225, 0.22);
  --accent: #35cfb2;
  --accent-hover: #57dbc2;
  --accent-ink: #06231e;
  --radius: 14px;
  --content: 1180px;
  --header-height: 68px;
  --shadow: 0 24px 70px rgba(2, 15, 17, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(53, 207, 178, 0.035), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 61%, rgba(53, 207, 178, 0.028) 61% 61.2%, transparent 61.2%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 22, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(53, 207, 178, 0.5);
  border-radius: 9px;
  background: rgba(53, 207, 178, 0.11);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.header-cta {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-tutorial-link {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.42);
}

.header-tutorial-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  min-height: calc(100dvh - var(--header-height) - 72px);
  display: grid;
  align-items: center;
  padding: 54px 0 64px;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 11px;
  border: 1px solid rgba(53, 207, 178, 0.28);
  border-radius: 8px;
  background: rgba(53, 207, 178, 0.075);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(48px, 6.1vw, 84px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent);
}

.keep-together {
  white-space: nowrap;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c8d8d5;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .hero-tutorial-button,
.hero-actions .hero-download-button {
  text-decoration: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button:focus-visible,
.header-cta:focus-visible,
.qr-modal-close:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(53, 207, 178, 0.36);
  outline-offset: 4px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 32px rgba(53, 207, 178, 0.15);
}

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

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(53, 207, 178, 0.5);
  color: var(--accent);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.3);
  opacity: 0.68;
}

.wechat-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.wechat-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  content: "";
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wechat-icon {
  flex: 0 0 auto;
}

.panel-heading p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.panel-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.qr-frame {
  width: min(100%, 270px);
  aspect-ratio: 1;
  margin: 22px auto 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f3faf8;
}

.qr-image,
.qr-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 7px;
}

.qr-image {
  object-fit: contain;
}

.qr-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  gap: 4px;
  overflow: hidden;
  border: 2px dashed #5c7771;
  background:
    linear-gradient(90deg, rgba(6, 35, 30, 0.07) 50%, transparent 50%) 0 0 / 18px 18px,
    linear-gradient(rgba(6, 35, 30, 0.07) 50%, transparent 50%) 0 0 / 18px 18px,
    #eef7f4;
  color: #2d4d47;
  text-align: center;
}

.qr-placeholder::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 124px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: rgba(238, 247, 244, 0.94);
  content: "";
}

.qr-placeholder span,
.qr-placeholder strong {
  position: relative;
}

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

.qr-placeholder strong {
  font-size: 22px;
}

.scan-tip {
  margin: 0 0 18px;
  color: #c6d7d3;
  font-size: 14px;
  text-align: center;
}

.panel-button {
  width: 100%;
}

.config-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.value-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.value-grid {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-item {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(16px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
}

.value-item:first-child {
  border-left: 1px solid var(--line);
}

.value-item strong {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 19px;
}

.value-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.models-section,
.path-section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-heading {
  width: min(calc(100% - 40px), 780px);
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.access-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.18;
}

.section-heading p,
.access-copy p,
.final-cta p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 180px);
  content: "";
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-track {
  --marquee-distance: 50%;
  width: max-content;
  display: flex;
  will-change: transform;
}

.model-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.model-logo {
  width: 230px;
  height: 112px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.model-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.model-logo img.model-logo-openai {
  filter: invert(1);
}

.model-logo span {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.model-note {
  width: min(calc(100% - 40px), var(--content));
  margin: 20px auto 0;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.access-section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(56px, 8vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.access-copy p {
  margin-left: 0;
}

.access-map {
  min-height: 260px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.model-stack {
  display: grid;
  gap: 12px;
}

.model-stack img {
  width: 58px;
  height: 58px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #f0f8f6;
  object-fit: contain;
}

.connector {
  position: relative;
  height: 1px;
  margin: 0 18px;
  background: var(--line-strong);
}

.connector::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  content: "";
}

.key-node {
  width: 154px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(53, 207, 178, 0.46);
  border-radius: var(--radius);
  background: rgba(53, 207, 178, 0.08);
  color: var(--accent);
  font-weight: 900;
}

.key-node img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.path-section {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
}

.path-list {
  border-top: 1px solid var(--line-strong);
}

.path-item {
  position: relative;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.path-item::before {
  position: absolute;
  top: 38px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.path-item > div {
  padding-left: 38px;
}

.path-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.path-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.final-cta {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}

.final-cta h2 {
  max-width: 700px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.final-cta p {
  margin-left: 0;
  color: rgba(6, 35, 30, 0.74);
}

.final-cta .button-primary {
  flex: 0 0 auto;
  border-color: rgba(6, 35, 30, 0.42);
  background: var(--accent-ink);
  color: #dffaf3;
  box-shadow: none;
}

.final-cta .button-primary:hover {
  background: #0d3b32;
}

.site-footer {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.mobile-cta {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.qr-modal.is-open {
  opacity: 1;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qr-modal-dialog {
  position: relative;
  width: min(100%, 390px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  transform: translateY(12px) scale(0.985);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: 0 28px 90px rgba(2, 15, 17, 0.68);
  outline: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal.is-open .qr-modal-dialog {
  transform: none;
}

.qr-modal-dialog::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  content: "";
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-close:hover {
  border-color: rgba(53, 207, 178, 0.52);
  color: var(--accent);
}

.qr-modal-heading {
  padding-right: 48px;
}

.qr-modal-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.qr-modal-copy-mobile {
  display: none;
}

.qr-modal-steps {
  padding-left: 1.5em;
  color: #c6d7d3;
  font-size: 16px;
  line-height: 1.9;
}

.qr-modal-steps-before {
  margin: 18px 0 22px;
}

.qr-modal-steps-after {
  margin: 18px 0 0;
}

.qr-modal-steps li::marker {
  color: var(--accent);
  font-weight: 900;
}

.qr-modal-code {
  width: min(100%, 300px);
  aspect-ratio: 522 / 519;
  margin: 0 auto;
  padding: 12px;
  border-radius: 12px;
  background: #f3faf8;
}

.qr-modal-code img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.group-modal-dialog {
  width: min(100%, 430px);
}

.group-modal-code {
  aspect-ratio: 266 / 267;
}

/* Tutorial page */
.tutorial-main {
  width: min(calc(100% - 40px), 1080px);
  margin: 0 auto;
}

.tutorial-page .reveal {
  opacity: 1;
  transform: none;
}

.tutorial-intro {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(46px, 8vw, 96px);
  padding: 64px 0 54px;
}

.tutorial-intro-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c8d8d5;
  font-size: 19px;
  line-height: 1.75;
}

.tutorial-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tutorial-group-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.tutorial-panel-label {
  display: block;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.tutorial-group-panel h2,
.tutorial-help h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.tutorial-group-panel p,
.tutorial-help p:not(.tutorial-panel-label) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tutorial-group-qr {
  padding: 8px;
  border-radius: 10px;
  background: #f3faf8;
}

.tutorial-group-qr img {
  width: 100%;
  aspect-ratio: 266 / 267;
  object-fit: contain;
}

.tutorial-platform-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 0 72px;
}

.tutorial-platform-nav a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.tutorial-platform-nav a:hover {
  border-color: rgba(53, 207, 178, 0.45);
  background: rgba(53, 207, 178, 0.055);
}

.tutorial-platform-nav strong {
  font-size: 17px;
}

.tutorial-platform-nav span {
  color: var(--muted);
  font-size: 13px;
}

.tutorial-platform {
  scroll-margin-top: calc(var(--header-height) + 24px);
  margin-bottom: 80px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 26, 32, 0.62);
}

.tutorial-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.tutorial-section-heading p,
.tutorial-section-heading h2 {
  margin: 0;
}

.tutorial-section-heading p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.tutorial-section-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.platform-badge {
  width: 54px;
  height: 54px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(53, 207, 178, 0.35);
  border-radius: 10px;
  background: rgba(53, 207, 178, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.platform-badge-windows {
  border-color: rgba(88, 166, 255, 0.36);
  background: rgba(88, 166, 255, 0.1);
  color: #7eb8ff;
}

.tutorial-step-list {
  display: grid;
}

.tutorial-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tutorial-step:first-child {
  padding-top: 0;
}

.tutorial-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tutorial-step-number {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 207, 178, 0.38);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.tutorial-step-body {
  min-width: 0;
}

.tutorial-step-body h3 {
  margin: 5px 0 9px;
  font-size: 21px;
  line-height: 1.35;
}

.tutorial-step-body > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.tutorial-step-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  color: #d9e9e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.download-option {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease;
}

.download-option:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 207, 178, 0.5);
}

.download-option strong,
.download-option span,
.download-option b {
  display: block;
}

.download-option strong {
  font-size: 17px;
}

.download-option span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.download-option b {
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
}

.tutorial-download-button {
  width: fit-content;
  margin-top: 18px;
}

.tutorial-gallery {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 18, 22, 0.5);
}

.tutorial-gallery summary {
  padding: 16px 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tutorial-gallery[open] summary {
  border-bottom: 1px solid var(--line);
}

.tutorial-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.tutorial-gallery figure {
  min-width: 0;
  margin: 0;
}

.tutorial-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1519;
  object-fit: contain;
}

.tutorial-gallery figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tutorial-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  align-items: center;
  gap: 36px;
  margin: 0 0 80px;
  padding: 32px;
  border: 1px solid rgba(53, 207, 178, 0.32);
  border-radius: var(--radius);
  background: rgba(53, 207, 178, 0.065);
}

.tutorial-help img {
  width: 184px;
  padding: 9px;
  border-radius: 10px;
  background: #f3faf8;
}

.tutorial-footer {
  width: min(calc(100% - 40px), 1080px);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(340px, calc(100% - 40px));
  padding: 12px 16px;
  transform: translateY(18px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #14242a;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 25s linear infinite;
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  @keyframes marquee {
    to {
      transform: translateX(calc(-1 * var(--marquee-distance)));
    }
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 44px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .wechat-panel {
    width: min(100%, 520px);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item:nth-child(2) {
    border-right: 0;
  }

  .value-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .value-item:nth-child(3) {
    border-left: 1px solid var(--line);
  }

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

  .access-map {
    max-width: 540px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutorial-intro {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 56px 0;
  }

  .tutorial-group-panel {
    max-width: 600px;
  }
}

@media (max-width: 720px) {
  .qr-modal-copy-desktop {
    display: none;
  }

  .qr-modal-copy-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
    --radius: 12px;
  }

  body {
    padding-bottom: 76px;
  }

  body.tutorial-page {
    padding-bottom: 0;
  }

  .header-inner,
  .hero-inner,
  .value-grid,
  .model-note,
  .access-section,
  .path-section,
  .final-cta,
  .site-footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .header-cta {
    display: inline-block;
    font-size: 12px;
    line-height: 28px;
  }

  .tutorial-back {
    display: inline-block;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-inner {
    gap: 30px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 1.05;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
  }

  .hero-actions .button {
    min-height: 46px;
  }

  .hero-actions .button {
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
  }

  .wechat-panel {
    padding: 20px;
  }

  .panel-heading h2 {
    font-size: 19px;
  }

  .qr-frame {
    width: min(66vw, 246px);
    margin-top: 18px;
  }

  .value-item {
    min-height: 112px;
    padding: 20px 16px;
  }

  .value-item strong {
    font-size: 17px;
  }

  .value-item span {
    font-size: 12px;
  }

  .models-section,
  .path-section {
    padding: 76px 0;
  }

  .section-heading {
    width: min(calc(100% - 32px), 780px);
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading h2,
  .access-copy h2,
  .final-cta h2 {
    font-size: 31px;
  }

  .section-heading p,
  .access-copy p,
  .final-cta p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
  }

  .model-group {
    gap: 12px;
    padding-right: 12px;
  }

  .model-logo {
    width: 176px;
    height: 90px;
    gap: 12px;
  }

  .model-logo img {
    width: 40px;
    height: 40px;
  }

  .model-logo span {
    font-size: 15px;
  }

  .access-section {
    gap: 38px;
    padding: 38px 22px;
  }

  .access-map {
    min-height: 190px;
  }

  .model-stack img {
    width: 46px;
    height: 46px;
    padding: 8px;
  }

  .connector {
    margin: 0 12px;
  }

  .key-node {
    width: 116px;
    font-size: 14px;
  }

  .key-node img {
    width: 46px;
    height: 46px;
  }

  .path-item {
    padding: 25px 0;
  }

  .path-item::before {
    top: 33px;
  }

  .path-item h3 {
    font-size: 20px;
  }

  .final-cta {
    margin-bottom: 64px;
    padding: 30px 22px;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 28px;
  }

  .mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid var(--line-strong);
    background: rgba(8, 18, 22, 0.96);
    box-shadow: 0 -12px 40px rgba(2, 15, 17, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-cta div {
    min-width: 0;
  }

  .mobile-cta strong,
  .mobile-cta span {
    display: block;
  }

  .mobile-cta strong {
    font-size: 14px;
  }

  .mobile-cta span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-cta .button {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 18px;
  }

  .toast {
    right: 16px;
    bottom: 86px;
  }

  .group-modal-dialog {
    padding: 24px 20px 20px;
  }

  .group-modal-dialog .qr-modal-heading h2 {
    font-size: 22px;
  }

  .group-modal-dialog .qr-modal-steps {
    font-size: 15px;
    line-height: 1.75;
  }

  .group-modal-dialog .qr-modal-code {
    width: min(72vw, 270px);
  }

  .tutorial-main,
  .tutorial-footer {
    width: min(calc(100% - 32px), 1080px);
  }

  .tutorial-intro {
    padding: 38px 0 44px;
  }

  .tutorial-intro-copy > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 16px;
  }

  .tutorial-jump-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .tutorial-jump-links .button {
    min-width: 0;
    padding: 0 12px;
  }

  .tutorial-group-panel {
    grid-template-columns: 1fr 112px;
    gap: 16px;
    padding: 18px;
  }

  .tutorial-group-panel h2,
  .tutorial-help h2 {
    font-size: 21px;
  }

  .tutorial-group-panel p,
  .tutorial-help p:not(.tutorial-panel-label) {
    font-size: 12px;
  }

  .tutorial-platform-nav {
    gap: 8px;
    padding-bottom: 48px;
  }

  .tutorial-platform-nav a {
    min-height: 64px;
    padding: 14px;
  }

  .tutorial-platform-nav strong {
    font-size: 15px;
  }

  .tutorial-platform-nav span {
    font-size: 11px;
  }

  .tutorial-platform {
    margin-bottom: 48px;
    padding: 22px 18px;
  }

  .tutorial-section-heading {
    gap: 12px;
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .platform-badge {
    width: 48px;
    height: 48px;
  }

  .tutorial-section-heading h2 {
    font-size: 23px;
  }

  .tutorial-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 24px 0;
  }

  .tutorial-step-number {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .tutorial-step-body h3 {
    margin-top: 4px;
    font-size: 18px;
  }

  .tutorial-step-body > p {
    font-size: 14px;
    line-height: 1.75;
  }

  .download-options,
  .tutorial-gallery-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-download-button {
    width: 100%;
    padding: 0 12px;
    font-size: 13px;
  }

  .tutorial-gallery-grid {
    gap: 22px;
    padding: 14px;
  }

  .tutorial-help {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    margin-bottom: 48px;
    padding: 20px 18px;
  }

  .tutorial-help img {
    width: 112px;
    padding: 6px;
  }
}

@media (max-width: 370px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .mobile-cta span {
    display: none;
  }

  .qr-modal-dialog {
    padding: 24px 20px 20px;
  }

  .qr-modal-heading h2 {
    font-size: 21px;
  }

  .qr-modal-steps-before {
    margin-bottom: 18px;
  }

  .qr-modal-steps {
    font-size: 15px;
  }

  .tutorial-group-panel,
  .tutorial-help {
    grid-template-columns: 1fr;
  }

  .tutorial-group-qr,
  .tutorial-help img {
    width: min(100%, 210px);
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .qr-modal,
  .qr-modal-dialog {
    transition-duration: 0.01ms !important;
  }

  .model-logo {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mobile-cta {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Reference-style tutorial workspace */
.guide-page {
  position: relative;
  min-height: 100dvh;
  background: #071426;
  color: #f8fafc;
}

.guide-page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.guide-page::before,
.guide-page::after {
  position: fixed;
  z-index: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.08);
  content: "";
  filter: blur(120px);
  pointer-events: none;
}

.guide-page::before {
  top: -170px;
  left: 24%;
}

.guide-page::after {
  top: 28%;
  right: 16%;
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.06);
}

.guide-page .guide-header,
.guide-page .guide-main,
.guide-page .guide-footer {
  position: relative;
  z-index: 1;
}

.guide-page .site-header {
  background: rgba(7, 20, 38, 0.84);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.guide-back {
  color: #22d3ee;
  border-bottom-color: rgba(34, 211, 238, 0.55);
}

.guide-main {
  width: min(calc(100% - 32px), 1024px);
  margin: 0 auto;
  padding: 56px 0 84px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  min-height: 232px;
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 20px;
  background: rgba(13, 34, 54, 0.9);
  box-shadow: 0 20px 46px rgba(2, 8, 23, 0.38);
}

.guide-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(28px, 4vw, 38px);
}

.guide-kicker {
  margin: 0 0 10px;
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.guide-hero-copy > p:not(.guide-kicker) {
  max-width: 560px;
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.65;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.guide-download-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.guide-download-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.guide-download-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.24);
}

.guide-hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-left: 1px solid rgba(103, 232, 249, 0.16);
  background: rgba(17, 43, 65, 0.96);
}

.guide-hero-qr img {
  width: 160px;
  height: 160px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.guide-hero-qr strong {
  color: #22d3ee;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.guide-card {
  margin-bottom: 48px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.guide-platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.95), rgba(30, 41, 59, 0.95));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.guide-platform-windows {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.95));
}

.guide-card-header h2,
.guide-card-header p {
  margin: 0;
}

.guide-card-header h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.guide-card-header p {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 13px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.guide-step-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step-button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.guide-step-button:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.guide-step-button.is-active {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.1);
  color: #fff;
}

.guide-step-button > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.guide-step-button.is-active > span {
  background: rgba(6, 182, 212, 0.28);
  color: #22d3ee;
}

.guide-step-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.guide-content {
  min-width: 0;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-content-inner {
  display: flex;
  flex-direction: column;
  min-height: 570px;
}

.guide-media-frame {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.72));
}

.guide-download-stage,
.guide-download-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-download-stage {
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.56), rgba(15, 23, 42, 0.72));
}

.guide-main-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-main-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.4);
}

.guide-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.guide-download-list {
  flex-direction: column;
  gap: 22px;
  padding: 28px;
}

.guide-download-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.guide-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 500px);
}

.guide-download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.guide-download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
}

.guide-download-card strong {
  font-size: 14px;
}

.guide-download-card > span:not(.guide-chip) {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.guide-download-card b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #22d3ee;
  font-size: 12px;
}

.guide-download-list-many {
  height: auto;
  min-height: 360px;
}

.guide-download-list-many .guide-download-grid {
  display: flex;
  width: min(100%, 620px);
  flex-direction: column;
  gap: 10px;
}

.guide-download-list-many .guide-download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
}

.guide-download-list-many .guide-download-card b {
  margin-top: 0;
  white-space: nowrap;
}

.guide-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
}

.guide-image-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.guide-image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 56px;
}

.guide-gallery-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.guide-gallery-arrow:hover {
  background: rgba(6, 182, 212, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.guide-gallery-prev {
  left: 12px;
}

.guide-gallery-next {
  right: 12px;
}

.guide-gallery-caption {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.guide-gallery-caption > span {
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
}

.guide-gallery-caption p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.guide-gallery-thumbs {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
  scrollbar-width: thin;
}

.guide-gallery-thumb {
  position: relative;
  width: 42px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.guide-gallery-thumb.is-active {
  border-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.guide-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-gallery-thumb span {
  position: absolute;
  right: 3px;
  bottom: 1px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.guide-step-copy {
  margin-top: 24px;
}

.guide-step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-step-heading > span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.guide-step-heading h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.guide-step-copy > p {
  margin: 0;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.8;
}

.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: #64748b;
  font-size: 13px;
}

.guide-pagination button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.guide-pagination button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.guide-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.guide-pagination .guide-pagination-next {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
}

.guide-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  margin: 0 0 64px;
  padding: 24px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 16px;
  background: rgba(13, 34, 54, 0.78);
}

.guide-help p,
.guide-help h2,
.guide-help span {
  margin: 0;
}

.guide-help p {
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
}

.guide-help h2 {
  margin-top: 8px;
  font-size: 23px;
}

.guide-help span {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.guide-help img {
  width: 150px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
}

.guide-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1024px);
  border-top-color: rgba(148, 163, 184, 0.12);
}

@media (max-width: 900px) {
  .guide-main {
    padding-top: 36px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-step-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .guide-step-button {
    width: auto;
    min-width: 150px;
    flex: 0 0 auto;
  }

  .guide-content {
    min-height: 0;
  }

  .guide-content-inner {
    min-height: 570px;
  }
}

@media (max-width: 640px) {
  .guide-page .site-header {
    height: 60px;
  }

  .guide-main {
    width: min(calc(100% - 24px), 1024px);
    padding: 22px 0 44px;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .guide-hero-copy {
    padding: 24px 20px 20px;
  }

  .guide-hero h1 {
    font-size: 32px;
  }

  .guide-hero-copy > p:not(.guide-kicker) {
    font-size: 14px;
  }

  .guide-hero-actions {
    width: 100%;
  }

  .guide-download-link {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    font-size: 12px;
  }

  .guide-hero-qr {
    min-height: 170px;
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(103, 232, 249, 0.16);
    border-left: 0;
  }

  .guide-hero-qr img {
    width: 112px;
    height: 112px;
  }

  .guide-hero-qr strong {
    max-width: 130px;
    text-align: left;
  }

  .guide-card {
    margin-bottom: 28px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .guide-card-header {
    margin-bottom: 20px;
  }

  .guide-card-header h2 {
    font-size: 22px;
  }

  .guide-card-header p {
    font-size: 12px;
  }

  .guide-platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 9px;
  }

  .guide-content {
    padding: 14px;
    border-radius: 13px;
  }

  .guide-content-inner {
    min-height: 0;
  }

  .guide-media-frame {
    height: 250px;
  }

  .guide-download-list {
    gap: 14px;
    padding: 14px;
  }

  .guide-download-list-many {
    min-height: 0;
  }

  .guide-download-list-many .guide-download-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 9px;
    padding: 10px;
  }

  .guide-download-list-many .guide-download-card strong {
    grid-column: 2;
    grid-row: 1;
    line-height: 1.3;
  }

  .guide-download-list-many .guide-download-card > span:not(.guide-chip) {
    grid-column: 2;
    grid-row: 2;
    line-height: 1.25;
  }

  .guide-download-list-many .guide-download-card b {
    grid-column: 3;
    grid-row: 1 / span 2;
    font-size: 10px;
  }

  .guide-download-grid {
    gap: 8px;
  }

  .guide-download-card {
    padding: 14px 8px;
  }

  .guide-download-card strong {
    font-size: 12px;
  }

  .guide-download-card > span:not(.guide-chip),
  .guide-download-card b {
    font-size: 10px;
  }

  .guide-gallery-stage {
    padding: 8px 42px;
  }

  .guide-gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 25px;
  }

  .guide-gallery-prev {
    left: 8px;
  }

  .guide-gallery-next {
    right: 8px;
  }

  .guide-gallery-caption {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  .guide-gallery-caption p,
  .guide-step-copy > p {
    font-size: 13px;
  }

  .guide-step-heading {
    gap: 8px;
    margin-bottom: 9px;
  }

  .guide-step-heading h3 {
    font-size: 19px;
  }

  .guide-pagination {
    padding-top: 22px;
  }

  .guide-pagination button {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .guide-help {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    margin-bottom: 40px;
    padding: 18px 14px;
  }

  .guide-help h2 {
    font-size: 18px;
  }

  .guide-help span {
    font-size: 11px;
  }

  .guide-help img {
    width: 104px;
  }
}

/* Reference tutorial composition: paired QR cards, stable media stage, and
   screenshot thumbnails directly below the image. */
.guide-page::before,
.guide-page::after {
  display: none;
}

.guide-hero-qr {
  display: flex;
  flex-direction: row;
  align-content: center;
  gap: 14px;
  padding: 18px 16px;
}

.guide-hero {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.guide-qr-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

.guide-qr-card img {
  width: 126px;
  height: 126px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.guide-qr-card strong {
  color: #22d3ee;
  font-size: 11px;
  line-height: 1.45;
}

.guide-help {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.guide-help-qr-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.guide-help-qr-grid .guide-qr-card img {
  width: 124px;
  height: 124px;
}

.guide-gallery-thumbs {
  margin-top: 12px;
}

.guide-gallery-count {
  margin-left: auto;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.guide-step-heading h3 {
  min-width: 0;
}

@media (max-width: 900px) {
  .guide-hero-qr {
    border-left: 0;
    border-top: 1px solid rgba(103, 232, 249, 0.16);
  }

  .guide-help {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 640px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero-qr {
    min-height: 0;
    padding: 16px 10px 18px;
  }

  .guide-qr-card img,
  .guide-help-qr-grid .guide-qr-card img {
    width: 104px;
    height: 104px;
  }

  .guide-qr-card strong {
    max-width: 120px;
    font-size: 10px;
  }

  .guide-help {
    grid-template-columns: 1fr;
  }

  .guide-help-qr-grid {
    display: flex;
    flex-direction: row;
  }

  .guide-help-qr-grid .guide-qr-card img {
    width: 112px;
    height: 112px;
  }
}

.guide-page [data-guide-zoom] {
  cursor: zoom-in;
}

.guide-image-stage::after,
.guide-gallery-stage::after,
.guide-qr-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(3, 11, 24, 0.76);
  color: #fff;
  content: "⌕";
  font-size: 25px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.guide-image-stage:has([data-guide-zoom]:hover)::after,
.guide-gallery-stage:has([data-guide-zoom]:hover)::after,
.guide-qr-card:has([data-guide-zoom]:hover)::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 23, 0.86);
  opacity: 0;
  transition: opacity 160ms ease;
}

.guide-lightbox.is-open {
  opacity: 1;
}

.guide-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.guide-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: min(1120px, 94vw);
  max-height: 94vh;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #0d2236;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  outline: none;
}

.guide-lightbox-dialog img {
  display: block;
  max-width: min(1060px, 88vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.guide-lightbox-dialog p {
  max-width: min(900px, 84vw);
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.guide-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(2, 8, 23, 0.78);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.guide-lightbox-close:hover {
  background: #06b6d4;
}

.guide-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .guide-lightbox {
    padding: 12px;
  }

  .guide-lightbox-dialog {
    max-width: 96vw;
    padding: 12px;
  }

  .guide-lightbox-dialog img {
    max-width: 90vw;
    max-height: 78vh;
  }
}
