/**
 * GEO 免费试用弹窗：整图背景 + 右侧二维码叠层（位置可按设计微调下方变量）。
 */
.geo-trial-modal {
  display: none;
  position: fixed;
  z-index: 100150;
  inset: 0;
}

.geo-trial-modal.is-open {
  display: block;
}

.geo-trial-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.geo-trial-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: calc(100vw - 48px);
  border: 1px solid #edeff2;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0px 10px 16px -4px rgba(0, 0, 0, 0.04),
    0px 4px 10px -4px rgba(0, 0, 0, 0.06);
}

.geo-trial-modal__body {
  position: relative;
  margin: 0;
  line-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(
    128deg,
    #e5edff 2%,
    #f8faff 39%,
    #ffffff 100%
  );
}

.geo-trial-modal__bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

.geo-trial-modal__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 32px 32px;
  text-align: center;
  color: var(--color-text-black, #1f2430);
  pointer-events: none;
}

.geo-trial-modal__icon {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
}

.geo-trial-modal__title {
  margin: 24px 0 0;
  color: var(--color-text-black);
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.geo-trial-modal__subtitle {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--color-text-gray);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.geo-trial-modal__platform-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, 100%);
  height: 48px;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 3px;
  border: 1px solid #dbe6ff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  pointer-events: auto;
}

.geo-trial-modal__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-black);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.geo-trial-modal__platform.is-active {
  background: #2167f5;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(33, 103, 245, 0.18);
}

.geo-trial-modal__platform:not(.is-active):hover {
  background: transparent;
  color: var(--color-primary-normal, var(--primary-1, #3276ff));
}

.geo-trial-modal__platform:not(.is-active):hover em {
  color: var(--color-primary-normal, var(--primary-1, #3276ff));
}

.geo-trial-modal__platform-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-family: "iconfont" !important;
  font-style: normal !important;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400 !important;
}

.geo-trial-modal__platform-icon::before {
  font-weight: 400 !important;
}

.geo-trial-modal__platform em {
  color: #9ca1ad;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 18px;
}

.geo-trial-modal__platform.is-active em {
  color: rgba(255, 255, 255, 0.72);
}

.geo-trial-modal__downloads {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 12px;
  pointer-events: auto;
}

.geo-trial-modal__downloads[hidden] {
  display: none;
}

.geo-trial-modal__download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 0;
  padding: 16px 24px;
  box-sizing: border-box;
  border: 1.5px solid #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffffcc 0%, #ffffff80 99%);
  backdrop-filter: blur(4px) saturate(100%);
  -webkit-backdrop-filter: blur(4px) saturate(100%);
  box-shadow: 0px 0px 20px 0px rgba(54, 112, 226, 0.08);
  text-align: left;
  transition: box-shadow 220ms ease;
}

.geo-trial-modal__download-card:hover,
.geo-trial-modal__download-card:focus-within {
  box-shadow: 0px 0px 24px 0px rgba(54, 112, 226, 0.18);
}

.geo-trial-modal__download-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.geo-trial-modal__download-copy h3 {
  margin: 0;
  color: #272b33;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: normal;
}

.geo-trial-modal__download-copy p {
  margin: 2px 0 0;
  color: #898b8f;
  font-size: 13px;
  line-height: 20px;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  white-space: nowrap;
}

.geo-trial-modal__download-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 10px;
  gap: 4px;
  color: var(--primary-1, #3276ff);
  font-size: 14px;
  line-height: 22px;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.geo-trial-modal__download-link .iconfont {
  font-size: 16px;
  line-height: 1;
}

.geo-trial-modal__download-link:hover,
.geo-trial-modal__download-link:active {
  background: var(--color-primary-light1, #edf3ff);
  color: var(--color-primary-normal, var(--primary-1, #3276ff));
}

.geo-trial-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-background-deepen45);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
}

.geo-trial-modal__close:hover {
  background: transparent;
  color: var(--color-background-deepen65);
}

.geo-trial-modal__close .iconfont {
  display: block;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .geo-trial-modal__panel {
    width: calc(100vw - 24px);
  }

  .geo-trial-modal__content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .geo-trial-modal__title {
    font-size: 22px;
    line-height: 26px;
  }

  .geo-trial-modal__subtitle {
    max-width: 100%;
    font-size: 13px;
    white-space: normal;
  }

  .geo-trial-modal__platform-switch {
    margin-top: 28px;
  }

  .geo-trial-modal__platform {
    gap: 4px;
    padding: 8px;
    font-size: 15px;
  }

  .geo-trial-modal__download-card {
    min-height: 0;
    gap: 10px;
    padding: 12px 16px;
  }

  .geo-trial-modal__download-copy h3 {
    font-size: 16px;
    line-height: 22px;
  }

  .geo-trial-modal__download-copy p {
    white-space: normal;
  }
}
