/* 微信 / QQ 内置浏览器引导页 */
#cs-wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.36rem calc(0.48rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: linear-gradient(180deg, #1a1510 0%, #0f0d0a 100%);
  color: #f5f0e6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html[data-ui-contain="1"] #cs-wechat-guide {
  left: 50%;
  right: auto;
  width: var(--lobby__max-width, 7.5rem);
  max-width: var(--lobby__max-width, 7.5rem);
  transform: translateX(-50%);
}

#cs-wechat-guide .cs-wx-guide-card {
  width: 100%;
  max-width: 6.2rem;
  margin: 0 auto;
}

#cs-wechat-guide .cs-wx-guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.2rem;
  border-radius: 999px;
  background: rgba(209, 174, 82, 0.16);
  color: #d1ae52;
  font-size: 0.22rem;
  line-height: 1.4;
  margin-bottom: 0.24rem;
}

#cs-wechat-guide .cs-wx-guide-title {
  margin: 0 0 0.16rem;
  font-size: 0.44rem;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
}

#cs-wechat-guide .cs-wx-guide-desc {
  margin: 0 0 0.32rem;
  font-size: 0.26rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

#cs-wechat-guide .cs-wx-guide-steps {
  margin: 0 0 0.32rem;
  padding: 0.28rem 0.24rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(209, 174, 82, 0.18);
}

#cs-wechat-guide .cs-wx-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.16rem;
  font-size: 0.26rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

#cs-wechat-guide .cs-wx-guide-step + .cs-wx-guide-step {
  margin-top: 0.2rem;
}

#cs-wechat-guide .cs-wx-guide-num {
  flex: 0 0 0.36rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #d1ae52;
  color: #1a1510;
  font-size: 0.22rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cs-wechat-guide .cs-wx-guide-arrow {
  position: fixed;
  top: calc(0.12rem + env(safe-area-inset-top, 0px));
  right: calc(0.24rem + env(safe-area-inset-right, 0px));
  width: 1.4rem;
  height: 1.1rem;
  pointer-events: none;
}

#cs-wechat-guide .cs-wx-guide-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.08rem;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 0.04rem solid #d1ae52;
  border-right: 0.04rem solid #d1ae52;
  border-radius: 0 0.16rem 0 0;
}

#cs-wechat-guide .cs-wx-guide-arrow::after {
  content: "点这里";
  position: absolute;
  top: 0.92rem;
  right: 0;
  font-size: 0.22rem;
  color: #d1ae52;
  white-space: nowrap;
}

#cs-wechat-guide .cs-wx-guide-actions {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

#cs-wechat-guide .cs-wx-guide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0.88rem;
  padding: 0.18rem 0.24rem;
  border: none;
  border-radius: 999px;
  font-size: 0.28rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#cs-wechat-guide .cs-wx-guide-btn-primary {
  background: linear-gradient(180deg, #e8c96a 0%, #c89b2a 100%);
  color: #1a1510;
}

#cs-wechat-guide .cs-wx-guide-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#cs-wechat-guide .cs-wx-guide-tip {
  margin: 0.24rem 0 0;
  font-size: 0.22rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

body.cs-wechat-guide-open {
  overflow: hidden !important;
}

body.cs-wechat-guide-open #app,
body.cs-wechat-guide-open .skeleton-screen-main {
  visibility: hidden !important;
}
