* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: #f5f5f5;
}
body {
  margin: 0;
  color: #000;
  background: #f5f5f5;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #a31212;
  outline-offset: 3px;
}
.guide-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.guide-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 240px;
}
.guide-container {
  padding: 39px 15px 15px;
  background: #fff;
  border-radius: 28px;
  margin-top: 30px;
}
.guide-image,
.guide-image-frame {
  display: block;
  width: 100%;
  height: auto;
}
.guide-image {
  border-radius: 28px;
}
.guide-image-frame {
  position: relative;
  scroll-margin-top: 12px;
}
.guide-image-frame-notice {
  margin-top: 30px;
  width: 100%;
  margin-left: 0;
}
.guide-install-title {
  position: absolute;
  top: -52px;
  left: -10px;
  /* 小半透明气泡：宽约 30%，底边在图片上方，不遮标题文字。 */
  width: calc(30% + 9px);
  height: auto;
  display: block;
  pointer-events: none;
}
.guide-steps {
  position: fixed;
  z-index: 90;
  width: 66px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.guide-steps::-webkit-scrollbar {
  display: none;
}
.guide-step-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guide-step-entry--notification {
  margin-top: 12px;
}
.guide-step-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #606060;
  font-size: 22px;
  box-shadow: 0 0 16px 0 #00000033;
}
.guide-step-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.guide-step-button.is-highlighted {
  color: #fff;
  background: linear-gradient(98.33deg, #d4af37 7.29%, #a31212 89.39%);
  box-shadow: 0 0 16px 0 #00000033;
}
.guide-step-button.is-highlighted:not(.guide-step-button--notification) span {
  background: rgba(255, 255, 255, 0.3);
}
.guide-step-button--notification {
  font-size: 11px;
  line-height: 1.2;
}
.guide-step-button--notification span {
  width: 40px;
  height: 40px;
  background: transparent;
}
.guide-step-line {
  display: block;
  width: 13px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.guide-step-status {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 95;
  max-width: 456px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 16px #00000020;
  font-size: 14px;
}
.guide-step-status button {
  float: right;
  background: transparent;
  color: #8f0e0e;
}
.guide-image-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 12px;
  background: #fff;
  border-radius: 20px;
  color: #666;
  text-align: center;
}
.guide-retry {
  padding: 10px 22px;
  border-radius: 22px;
  background: #404241;
  color: #fff;
}
.guide-download-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 25px 30px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: #fff;
  box-shadow: 0 0 20px 0 #00000026;
}
.guide-download-label {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.guide-model-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f1f1f1;
  color: #a31212;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.guide-arrow {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}
.guide-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8102e, #a31212);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}
.guide-download-button[aria-disabled="true"] {
  opacity: 0.7;
}
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.guide-dialog {
  --picker-item-height: 44px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  max-height: 85dvh;
  margin: 0 auto;
  padding-bottom: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #fff;
}
.guide-dialog-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.guide-cancel {
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  font-size: 16px;
  color: #000;
}
.guide-confirm {
  min-height: 36px;
  padding: 5px 21px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c8102e, #a31212);
  color: #fff;
  font-size: 16px;
}
.guide-picker {
  position: relative;
  height: calc(var(--picker-item-height) * 5);
  flex-shrink: 0;
  overflow: hidden;
}
.guide-picker-highlight {
  position: absolute;
  top: calc(var(--picker-item-height) * 2);
  width: 100%;
  height: var(--picker-item-height);
  background: #fdf0e8;
  pointer-events: none;
}
.guide-model-list {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: calc(var(--picker-item-height) * 2) 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.guide-model-list::-webkit-scrollbar {
  display: none;
}
.guide-model-option {
  display: block;
  width: 100%;
  height: var(--picker-item-height);
  min-height: 0;
  padding: 0 12px;
  scroll-snap-align: center;
  background: transparent;
  color: #909090;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}
.guide-model-option[aria-checked="true"] {
  color: #000;
}
.guide-model-option:focus-visible {
  outline-offset: -3px;
}
.guide-picker-mask {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: calc(var(--picker-item-height) * 2);
  pointer-events: none;
}
.guide-picker-mask--top {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.15)
  );
}
.guide-picker-mask--bottom {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.15)
  );
}
@media (max-height: 480px) {
  .guide-dialog {
    --picker-item-height: clamp(
      24px,
      calc((85vh - 80px - env(safe-area-inset-bottom, 0px)) / 5),
      44px
    );
  }
  .guide-dialog-toolbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
@media (max-width: 350px) {
  .guide-download-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .guide-model-trigger,
  .guide-model-option {
    font-size: 14px;
  }
}
