/* Install Site Feature Styles */

body.install-guide-open {
  overflow: hidden;
}

.installGuideMask {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 98;
  background: rgba(15, 28, 45, 0.28);
  backdrop-filter: blur(2px);
}

.installGuide {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  z-index: 99;
  display: none;
  overflow: hidden;
  border-radius: 22px;
  background: #F7FAFD;
  box-shadow: 0px 24px 60px rgba(30, 74, 125, 0.18);
  border: 1px solid rgba(44, 138, 255, 0.08);
}

.installGuide .tit {
  position: relative;
  min-height: 60px;
  padding: 18px 56px 18px 24px;
  font-weight: 600;
  color: #284A6E;
  font-size: clamp(18px, 1.15vw, 22px);
  line-height: 1.35;
  text-align: left;
  background: linear-gradient(180deg, rgba(44, 138, 255, 0.10) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-bottom: 1px solid rgba(44, 138, 255, 0.08);
}

.installGuide .tit img {
  display: block;
  height: 34px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 8px;
  border-radius: 999px;
  background: none;
}

.installGuide .tit img:hover {
  background: rgba(40, 74, 110, 0.06);
}

.installGuide .content {
  padding: 24px;
  overflow-y: auto;
}

.installGuideLead {
  color: #1D3550;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.installGuideIntro {
  margin-top: 10px;
  color: #5E7388;
  font-size: 14px;
  line-height: 1.75;
}

.installGuideHint {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(44, 138, 255, 0.08);
  color: #2A5F96;
  font-size: 13px;
  line-height: 1.6;
}

.installGuideSteps {
  margin-top: 18px;
}

.installGuide .content .step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0px 8px 24px rgba(72, 108, 148, 0.08);
  color: #526B80;
  font-size: 14px;
  line-height: 1.7;
}

.installGuide .content .step:last-child {
  margin-bottom: 0;
}

.installGuide .content .step .stepIndex {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: rgba(44, 138, 255, 0.12);
  color: #2C6CC5;
  font-size: 13px;
  font-weight: 600;
}

.installGuide .content .step .stepText {
  flex: 1;
  min-width: 0;
}

.installGuideNote {
  margin-top: 16px;
  color: #6A7C8F;
  font-size: 13px;
  line-height: 1.7;
}

.installGuide .content .tips {
  margin-top: 18px;
  color: #7A8793;
  font-size: 12px;
  text-align: left;
  line-height: 1.6;
}

/* Install entry CTA */
.installEntry {
  position: fixed;
  left: 10px;
  bottom: 50%;
  z-index: 12;
  display: inline-flex;
  opacity: 0;
  visibility: hidden;
  align-items: center;
  width: 188px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(44, 138, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(32, 73, 118, 0.12);
  cursor: pointer;
  overflow: hidden;
  transition: width .24s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease, opacity .18s ease;
}

.installEntry.is-ready {
  opacity: 1;
  visibility: visible;
}

.installEntry:hover {
  box-shadow: 0 16px 34px rgba(32, 73, 118, 0.16);
  border-color: rgba(44, 138, 255, 0.22);
}

.installEntry:focus-visible {
  outline: 2px solid rgba(44, 138, 255, 0.38);
  outline-offset: 3px;
}

.installEntry.is-collapsed {
  width: 58px;
  padding-right: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.installEntryBody {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: 12px;
  flex: 1 1 auto;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .18s ease, transform .22s ease;
}

.installEntry.is-collapsed .installEntryBody {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.installEntryIcon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(44, 138, 255, 0.12) 0%, rgba(49, 199, 138, 0.10) 100%);
}

.installEntry .a {
  display: block;
  width: 30px;
  height: 30px;
}

.installEntryText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}

.installEntryText .txt {
  color: #1F4D78;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.installEntryText .sub {
  margin-top: 3px;
  color: #7A8C9E;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.installEntryArrow {
  flex: 0 0 auto;
  color: #2C8AFF;
  font-size: 22px;
  line-height: 1;
  opacity: 0.72;
  transform: translateX(0);
  transition: transform .22s ease, opacity .22s ease;
}

.installEntry.is-collapsed .installEntryArrow {
  transform: translateX(-4px);
  opacity: 0;
}

.installEntry:not(.is-collapsed) .installEntryArrow {
  transform: translateX(0);
  opacity: 0.72;
}

/* Floating install button */
.floating .li.installBtn {
  transition: transform .22s ease, box-shadow .22s ease;
}

.floating .li.installBtn:hover {
  transform: translateY(-2px);
}

.floating .li.installBtn .a {
  animation: none;
  display: block;
  width: 40px;
  height: 40px;
}

@media (max-width: 768px) {
  .installEntry {
    left: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    width: calc(100vw - 24px);
    min-width: 0;
    padding-right: 14px;
  }

  .installEntry.is-collapsed {
    width: 58px;
  }

  .installEntryText .txt {
    font-size: 14px;
  }

  .installEntryText .sub {
    font-size: 11px;
  }

  .installGuide {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
    border-radius: 18px;
  }

  .installGuide .tit {
    padding: 16px 50px 16px 18px;
    font-size: 18px;
  }

  .installGuide .content {
    padding: 18px;
  }

  .installGuideLead {
    font-size: 16px;
  }

  .installGuide .content .step {
    padding: 12px 14px;
    gap: 10px;
  }
}