:root {
  --guide-theme: #ff6a2a;
  --guide-theme-soft: #fff0e8;
  --guide-text: #282828;
  --guide-muted: #858585;
  --guide-card-start: #fefdfd;
  --guide-card-end: #fffbf7;
}

body {
  background: #f4f4f4;
}

.guide-page {
  width: 100%;
  max-width: 10rem;
  min-height: 100vh;
  padding: 0.72rem 0.533rem 0.8rem;
  overflow: visible;
  color: var(--guide-text);
  background-color: #fff4ed;
  background-image: url("../images/bg.png");
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.guide-header {
  text-align: center;
}

.guide-logo {
  width: 2.75rem;
  height: auto;
  margin: 0 auto 0.32rem;
}

.guide-header h1 {
  color: var(--guide-theme);
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.25;
}

.guide-subtitle {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 0.24rem;
  margin: 0.22rem 0 0.45rem;
}

.guide-subtitle p {
  color: var(--guide-muted);
  font-size: 0.293rem;
  letter-spacing: 0.02rem;
}

.guide-subtitle span {
  position: relative;
  width: 0.75rem;
  height: 1px;
  background: var(--guide-theme);
  opacity: 0.62;
}

.guide-subtitle span:first-child:after,
.guide-subtitle span:last-child:before {
  content: "";
  position: absolute;
  top: -0.04rem;
  width: 0.08rem;
  height: 0.08rem;
  border-radius: 50%;
  background: var(--guide-theme);
}

.guide-subtitle span:first-child:after {
  right: 0;
}

.guide-subtitle span:last-child:before {
  left: 0;
}

.guide-timeline {
  position: relative;
  padding-left: 0.72rem;
}

.guide-timeline:before {
  content: "";
  position: absolute;
  top: 0.56rem;
  bottom: 0.56rem;
  left: 0.25rem;
  width: 1px;
  background: rgba(255, 106, 42, 0.28);
}

.guide-step {
  position: relative;
  margin-bottom: 0.373rem;
}

.guide-step-number {
  position: absolute;
  z-index: 2;
  top: 0.72rem;
  left: -0.72rem;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  color: #fff;
  background: var(--guide-theme);
  box-shadow: 0 0.08rem 0.18rem rgba(255, 106, 42, 0.26);
  font-size: 0.267rem;
  font-weight: 700;
  line-height: 0.56rem;
  text-align: center;
}

.guide-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.267rem;
  padding: 0.42rem 0.373rem;
  border: 1px solid rgba(255, 106, 42, 0.08);
  border-radius: 12px;
  background: #fefdfd;
  background: -webkit-linear-gradient(135deg, #fefdfd, #fffbf7);
  background: linear-gradient(135deg, #fefdfd, #fffbf7);
  box-shadow: 0 0.12rem 0.35rem rgba(198, 108, 59, 0.06);
}

.guide-card-icon,
.guide-notice-icon {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.guide-card-content {
  min-width: 0;
  padding-top: 0.02rem;
}

.guide-card-content h2 {
  margin-bottom: 0.12rem;
  color: var(--guide-text);
  font-size: 0.347rem;
  font-weight: 700;
  line-height: 1.45;
}

.guide-card-content p {
  color: var(--guide-muted);
  font-size: 0.28rem;
  line-height: 1.75;
}

.guide-card--screens {
  display: block;
}

.guide-card-heading {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.267rem;
}

.guide-step-inner {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.267rem 1fr;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem 0.267rem;
  margin-top: 0.32rem;
}

.guide-step-item {
  position: relative;
  min-width: 0;
  padding: 0.12rem;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 42, 0.2);
  border-radius: 12px;
  background: #fff;
}

.guide-step-item img {
  width: 100%;
  height: auto;
  border-radius: 0.12rem;
  cursor: pointer;
}

.guide-step-btn {
  position: absolute;
  bottom: 0.28rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: inline-block;
  padding: 0.06rem 0.24rem;
  border-radius: 9.999rem;
  color: #fff;
  background: rgba(22, 22, 22, 0.82);
  font-size: 0.213rem;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}

.guide-notice {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.267rem;
  margin-top: 0.4rem;
  padding: 0.36rem 0.32rem;
  border: 1px solid rgba(255, 106, 42, 0.38);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.88);
}

.guide-notice-icon {
  width: 46px;
  height: 46px;
}

.guide-notice p {
  color: #802d00;
  font-size: 12px;
  line-height: 1.75;
}

.footer {
  padding-top: 0.48rem;
  text-align: center;
}

.footer-btn {
  display: block;
  width: 100%;
  height: 1.12rem;
  border-radius: 9.999rem;
  color: #fff;
  background: #ff9a42;
  background: -webkit-linear-gradient(left, #ffa94b, var(--guide-theme));
  background: linear-gradient(to right, #ffa94b, var(--guide-theme));
  box-shadow: 0 0.12rem 0.3rem rgba(255, 106, 42, 0.24);
  font-size: 0.373rem;
  line-height: 1.12rem;
  text-align: center;
  text-decoration: none;
}

.guide-image-modal {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
}

.guide-image-modal.is-open {
  display: block;
}

.guide-image-modal-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: 90vw;
  height: auto;
  max-height: 78vh;
  border-radius: 12px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.guide-image-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 0.88rem;
  height: 0.88rem;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.5rem;
  line-height: 0.82rem;
}

.guide-image-modal-tip {
  position: absolute;
  right: 0;
  bottom: 0.8rem;
  left: 0;
  color: #fff;
  font-size: 0.28rem;
  opacity: 0.9;
}

.is-previewable {
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 340px) {
  .guide-page {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .guide-card {
    padding-right: 0.28rem;
    padding-left: 0.28rem;
  }

  .guide-card-content p,
  .guide-notice p {
    font-size: 0.267rem;
  }
}
