/* RinFire 锐火体感游戏枪 R5 中文用户手册 */
.rf-gun-manual-page {
  background: #f5f5f5;
  color: #303030;
  display: none !important;
}

.rf-gun-manual-page:target,
body:has(.rf-gun-manual-viewer:target) .rf-gun-manual-page {
  display: block !important;
}

body:has(.rf-gun-manual-page:target) .rf-download-page,
body:has(.rf-gun-manual-page:target) .rf-assistant-page,
body:has(.rf-gun-manual-page:target) .rf-support-page,
body:has(.rf-gun-manual-page:target) .rf-gun-support-page,
body:has(.rf-gun-manual-page:target) .rf-controller-support-page,
body:has(.rf-gun-manual-viewer:target) .rf-download-page,
body:has(.rf-gun-manual-viewer:target) .rf-assistant-page,
body:has(.rf-gun-manual-viewer:target) .rf-support-page,
body:has(.rf-gun-manual-viewer:target) .rf-gun-support-page,
body:has(.rf-gun-manual-viewer:target) .rf-controller-support-page {
  display: none !important;
}

.rf-gun-manual-hero {
  background: linear-gradient(135deg, #151515 0%, #282828 58%, #1b1b1b 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 24px;
  position: relative;
}

.rf-gun-manual-hero::before {
  background: radial-gradient(circle, rgba(255, 135, 0, 0.17), transparent 66%);
  content: "";
  height: 540px;
  pointer-events: none;
  position: absolute;
  right: -120px;
  top: -240px;
  width: 540px;
}

.rf-gun-manual-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  grid-template-columns: minmax(240px, 370px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.rf-gun-manual-cover {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.rf-gun-manual-cover img {
  aspect-ratio: 1 / 1.414;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rf-gun-manual-eyebrow {
  color: #ff8700;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.rf-gun-manual-summary h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
}

.rf-gun-manual-description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
  margin: 28px 0 18px;
  max-width: 600px;
}

.rf-gun-manual-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0 0 32px;
}

.rf-gun-manual-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.rf-gun-manual-button {
  align-items: center;
  border: 1px solid #ff8700;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rf-gun-manual-button-primary {
  background: #ff8700;
  color: #171717;
}

.rf-gun-manual-button-secondary {
  background: transparent;
  color: #ff8700;
}

.rf-gun-manual-button:hover,
.rf-gun-manual-button:focus-visible {
  background: #ff9a26;
  border-color: #ff9a26;
  color: #171717;
  transform: translateY(-2px);
}

.rf-gun-manual-button:focus-visible,
.rf-gun-manual-back:focus-visible,
.rf-gun-manual-viewer-heading a:focus-visible {
  outline: 3px solid rgba(255, 135, 0, 0.36);
  outline-offset: 4px;
}

.rf-gun-manual-back {
  color: rgba(255, 255, 255, 0.62);
  display: inline-block;
  font-size: 14px;
  margin-top: 28px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.rf-gun-manual-back:hover,
.rf-gun-manual-back:focus-visible {
  color: #fff;
}

.rf-gun-manual-viewer {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(56px, 7vw, 92px) 24px 96px;
}

.rf-gun-manual-viewer-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rf-gun-manual-viewer-heading h2 {
  color: #2f2e2e;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
}

.rf-gun-manual-viewer-heading a {
  color: #5f5f5f;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.rf-gun-manual-viewer-heading a:hover,
.rf-gun-manual-viewer-heading a:focus-visible {
  color: #ff8700;
}

.rf-gun-manual-frame {
  background: #2b2b2b;
  border: 1px solid #d7d7d7;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.15);
  height: min(82vh, 980px);
  min-height: 640px;
  overflow: hidden;
}

.rf-gun-manual-frame object {
  border: 0;
  height: 100%;
  width: 100%;
}

.rf-gun-manual-fallback {
  align-items: center;
  background: #fff;
  color: #4d4d4d;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.rf-gun-manual-fallback > .iconfont {
  color: #777;
  font-size: 72px;
}

.rf-gun-manual-fallback h3 {
  font-size: 23px;
  margin: 22px 0 10px;
}

.rf-gun-manual-fallback p {
  margin: 0 0 26px;
}

.rf-gun-manual-fallback .rf-gun-manual-button-secondary {
  color: #c66500;
}

.rf-gun-manual-viewer-note {
  color: #767676;
  font-size: 13px;
  margin: 16px 0 0;
  text-align: center;
}

@media (max-width: 767px) {
  .rf-gun-manual-hero {
    padding: 48px 20px 56px;
  }

  .rf-gun-manual-hero-inner {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .rf-gun-manual-cover {
    justify-self: center;
    max-width: 230px;
    transform: none;
  }

  .rf-gun-manual-summary {
    text-align: center;
  }

  .rf-gun-manual-description {
    font-size: 16px;
    margin-inline: auto;
  }

  .rf-gun-manual-actions {
    justify-content: center;
  }

  .rf-gun-manual-viewer {
    padding: 52px 16px 68px;
  }

  .rf-gun-manual-viewer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .rf-gun-manual-frame {
    border-radius: 12px;
    height: 72vh;
    min-height: 520px;
  }
}

@media (max-width: 430px) {
  .rf-gun-manual-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rf-gun-manual-button {
    width: 100%;
  }

  .rf-gun-manual-frame {
    height: 64vh;
    min-height: 460px;
  }
}
