.mobile-guide-page {
  background: #090b0d;
}

.mobile-guide-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.mobile-guide-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.78) contrast(1.04);
}

.mobile-guide-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.97), rgba(5, 7, 9, 0.7) 48%, rgba(5, 7, 9, 0.32)),
    linear-gradient(0deg, #090b0d 0%, transparent 48%);
}

.mobile-guide-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 72px;
  padding-top: 60px;
  padding-bottom: 70px;
}

.mobile-guide-hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.16;
}

.mobile-guide-hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: rgba(236, 229, 216, 0.72);
  font-size: 14px;
  line-height: 1.9;
}

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

.mobile-version-card {
  padding: 28px;
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(150deg, rgba(199, 157, 85, 0.12), transparent 55%),
    rgba(9, 12, 15, 0.9);
  backdrop-filter: blur(10px);
}

.mobile-version-card h2 {
  margin: 8px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.mobile-version-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mobile-version-card dl div {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mobile-version-card dt,
.mobile-version-card small {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.mobile-version-card dd {
  margin: 4px 0 0;
  color: var(--paper);
  font-size: 12px;
}

.mobile-version-card code {
  display: block;
  margin-top: 7px;
  color: var(--gold-light);
  font-size: 9px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.guide-jump {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.96);
  backdrop-filter: blur(14px);
}

.guide-jump a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.guide-jump a:hover {
  color: var(--gold-light);
}

.guide-jump a span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.guide-jump > button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 11px;
}

.guide-jump > button svg {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
}

.guide-section {
  padding: 110px 0;
}

.guide-section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0f12;
}

.guide-section-title {
  margin-bottom: 46px;
}

.guide-notice {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(199, 157, 85, 0.44);
  background: rgba(199, 157, 85, 0.075);
}

.guide-notice > svg {
  width: 27px;
  height: 27px;
  color: var(--gold-light);
}

.guide-notice strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.guide-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.guide-notice code {
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guide-steps article {
  min-height: 230px;
  padding: 27px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.guide-steps article > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.guide-steps h3 {
  margin: 26px 0 10px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 500;
}

.guide-steps p,
.guide-panel li,
.guide-panel p,
.oem-grid p,
.guide-legend p,
.control-card dd,
.guide-tip-row p,
.faq-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.guide-steps p {
  margin: 0;
}

.guide-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-top: 18px;
}

.guide-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: #0c0f12;
}

.guide-panel-accent {
  border-color: var(--line-gold);
  background:
    linear-gradient(145deg, rgba(199, 157, 85, 0.09), transparent 58%),
    #0d0f11;
}

.guide-panel h3,
.oem-guide h3,
.control-card h3 {
  margin: 8px 0 20px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 500;
}

.guide-checks,
.guide-number-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.guide-checks svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--gold-light);
}

.guide-checks code {
  color: var(--gold-light);
}

.guide-number-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.guide-number-list li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.oem-guide {
  margin-top: 70px;
}

.oem-guide > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 26px;
}

.oem-guide h3 {
  margin-bottom: 0;
  font-size: 30px;
}

.oem-guide > header > p {
  margin: 0;
}

.oem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.oem-grid article {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.oem-grid strong {
  display: block;
  margin-bottom: 11px;
  color: var(--paper);
  font-size: 14px;
}

.oem-grid p {
  margin: 0;
}

.guide-screen {
  margin: 0;
  border: 1px solid var(--line-gold);
  background: #050607;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.guide-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-screen figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

.guide-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guide-legend article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-legend article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #17120c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
}

.guide-legend strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 12px;
}

.guide-legend p {
  margin: 0;
  font-size: 10px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.control-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.control-card > svg {
  width: 25px;
  height: 25px;
  color: var(--gold-light);
}

.control-card dl {
  margin: 0;
}

.control-card dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.control-card dt {
  color: var(--gold-light);
  font-size: 11px;
}

.control-card dd {
  margin: 0;
}

.guide-tip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.guide-tip-row article {
  padding: 20px 22px;
  border-left: 2px solid var(--red);
  background: rgba(164, 68, 56, 0.06);
}

.guide-tip-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.guide-tip-row p {
  margin: 0;
}

.guide-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: start;
}

.guide-faq-layout .guide-section-title {
  position: sticky;
  top: 100px;
  display: block;
  margin-bottom: 0;
}

.guide-faq-layout .guide-section-title > p {
  margin-top: 20px;
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 21px 44px 21px 0;
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 5px;
  color: var(--gold);
  content: "+";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: -4px 0 21px;
  padding-right: 44px;
}

.faq-list code {
  color: var(--gold-light);
}

@media (max-width: 1120px) {
  .mobile-guide-hero-layout {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .guide-steps,
  .oem-grid,
  .guide-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-legend article:nth-child(5) {
    grid-column: 1 / -1;
  }

  .guide-faq-layout {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .guide-nav a:nth-child(2),
  .guide-nav a:nth-child(3) {
    display: none;
  }

  .mobile-guide-hero,
  .mobile-guide-hero-layout {
    min-height: auto;
  }

  .mobile-guide-hero-layout {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .mobile-guide-hero-copy h1 {
    font-size: 46px;
  }

  .mobile-version-card {
    max-width: 480px;
  }

  .guide-jump {
    gap: 16px;
    min-height: 62px;
    overflow-x: auto;
  }

  .guide-jump > button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .guide-section {
    padding: 78px 0;
  }

  .guide-split,
  .control-grid,
  .guide-faq-layout {
    grid-template-columns: 1fr;
  }

  .oem-guide > header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .guide-faq-layout .guide-section-title {
    position: static;
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .mobile-guide-page .guide-nav .copy-line {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
  }

  .mobile-guide-page .guide-nav .copy-line span {
    display: none;
  }

  .mobile-guide-hero-layout {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .mobile-guide-hero-copy h1 {
    font-size: 37px;
  }

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

  .mobile-version-card dl,
  .guide-steps,
  .oem-grid,
  .guide-legend {
    grid-template-columns: 1fr;
  }

  .guide-legend article:nth-child(5) {
    grid-column: auto;
  }

  .guide-notice {
    grid-template-columns: 34px 1fr;
    padding: 20px;
  }

  .guide-panel,
  .control-card {
    padding: 22px;
  }

  .guide-steps article {
    min-height: 0;
  }

  .guide-jump a {
    flex: 0 0 auto;
  }

  .control-card dl div {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }

  .faq-list summary {
    font-size: 13px;
  }

  .faq-list p {
    padding-right: 0;
  }
}

@media print {
  body.mobile-guide-page {
    color: #111;
    background: #fff;
  }

  .mobile-guide-page .site-header,
  .mobile-guide-page .footer,
  .mobile-guide-page .guide-actions,
  .mobile-guide-page .guide-jump,
  .mobile-guide-page .toast {
    display: none !important;
  }

  .mobile-guide-page .mobile-guide-hero {
    min-height: 0;
    border-bottom: 2px solid #222;
  }

  .mobile-guide-page .mobile-guide-hero > img,
  .mobile-guide-page .mobile-guide-hero-mask,
  .mobile-guide-page .mobile-version-card,
  .mobile-guide-page .guide-screen {
    display: none;
  }

  .mobile-guide-page .mobile-guide-hero-layout {
    display: block;
    min-height: 0;
    padding: 24px 0;
  }

  .mobile-guide-page .mobile-guide-hero-copy h1,
  .mobile-guide-page .guide-section-title h2,
  .mobile-guide-page .mobile-version-card h2,
  .mobile-guide-page .guide-steps h3,
  .mobile-guide-page .guide-panel h3,
  .mobile-guide-page .oem-guide h3,
  .mobile-guide-page .control-card h3,
  .mobile-guide-page .guide-notice strong,
  .mobile-guide-page .oem-grid strong,
  .mobile-guide-page .guide-tip-row strong,
  .mobile-guide-page .guide-legend strong,
  .mobile-guide-page .faq-list summary {
    color: #111;
  }

  .mobile-guide-page .mobile-guide-hero-copy > p,
  .mobile-guide-page .guide-section-title > p,
  .mobile-guide-page .guide-steps p,
  .mobile-guide-page .guide-panel li,
  .mobile-guide-page .guide-panel p,
  .mobile-guide-page .oem-grid p,
  .mobile-guide-page .control-card dd,
  .mobile-guide-page .guide-tip-row p,
  .mobile-guide-page .faq-list p {
    color: #333;
  }

  .mobile-guide-page .control-card dt,
  .mobile-guide-page .guide-notice code,
  .mobile-guide-page .guide-checks code,
  .mobile-guide-page .faq-list code {
    color: #6f4d18;
  }

  .mobile-guide-page .guide-section,
  .mobile-guide-page .guide-section-alt {
    padding: 24px 0;
    border-color: #bbb;
    background: #fff;
  }

  .mobile-guide-page .guide-section-title {
    margin-bottom: 22px;
  }

  .mobile-guide-page .guide-notice,
  .mobile-guide-page .guide-panel,
  .mobile-guide-page .guide-steps article,
  .mobile-guide-page .oem-grid article,
  .mobile-guide-page .control-card,
  .mobile-guide-page .guide-tip-row article {
    break-inside: avoid;
    border-color: #bbb;
    background: #fff;
  }

  .mobile-guide-page .guide-steps,
  .mobile-guide-page .oem-grid,
  .mobile-guide-page .guide-legend {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-guide-page .guide-legend article > span {
    color: #fff;
    background: #555;
  }

  .mobile-guide-page details > * {
    display: block !important;
  }

  .mobile-guide-page a {
    color: #111;
    text-decoration: underline;
  }
}
