html.mx-sdu-open,
html.mx-sdu-open body {
  overflow: hidden !important;
}

.mx-sdu[hidden],
.mx-sdu-float[hidden] {
  display: none !important;
}

.mx-sdu__countdown[hidden],
.mx-sdu__old[hidden],
.mx-sdu__save[hidden] {
  display: none !important;
}

.mx-sdu {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.mx-sdu__mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 28, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mx-sdu__dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-sizing: border-box;
  padding: 30px 28px 42px;
  border: 1px solid rgba(108, 92, 231, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(80, 187, 255, .18), transparent 42%),
    radial-gradient(circle at 0 100%, rgba(255, 84, 140, .14), transparent 38%),
    #fff;
  box-shadow: 0 24px 80px rgba(7, 12, 30, .34);
  text-align: center;
  animation: mx-sdu-in .24s ease-out;
}

@keyframes mx-sdu-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mx-sdu__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .07);
  color: #687083;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mx-sdu__diamond {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(37, 142, 255, .22));
}

.mx-sdu__eyebrow {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5d8f, #ff825d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.mx-sdu__dialog h2 {
  margin: 14px 0 6px;
  color: #1b2335;
  font-size: 24px;
  line-height: 1.3;
}

.mx-sdu__dialog h2 em {
  color: #ff315c;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-style: normal;
}

.mx-sdu__subtitle {
  margin: 0;
  color: #7b8290;
  font-size: 14px;
}

.mx-sdu__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 19px 0 16px;
  color: #51596a;
  font-size: 15px;
}

.mx-sdu__old {
  color: #a3a8b2;
  font-size: 14px;
  text-decoration: line-through;
}

.mx-sdu__now b {
  color: #ff3f6c;
  font-family: Arial, sans-serif;
  font-size: 48px;
  line-height: 1;
}

.mx-sdu__price-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.mx-sdu__save {
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0f3;
  color: #ff315c;
  font-size: 13px;
}

.mx-sdu__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(246, 248, 252, .92);
  list-style: none;
  text-align: left;
}

.mx-sdu__benefits li {
  position: relative;
  padding-left: 25px;
  color: #3d4658;
  font-size: 14px;
}

.mx-sdu__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: #16a266;
  font-size: 17px;
  font-weight: 800;
}

.mx-sdu__benefits strong {
  color: #161f32;
  font-weight: 700;
}

.mx-sdu__countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0 0;
  padding: 12px 14px 10px;
  border: 1px solid rgba(99, 91, 255, .18);
  border-radius: 12px;
  background: #f7f8ff;
  color: #687083;
  font-size: 13px;
}

.mx-sdu__countdown-label {
  font-weight: 700;
}

.mx-sdu__countdown-time {
  margin-top: 3px;
  color: #635bff;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.mx-sdu__countdown-note {
  margin-top: 3px;
  color: #ff3f6c;
  font-size: 12px;
  font-weight: 600;
}

.mx-sdu__countdown-track {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e7ff;
}

.mx-sdu__countdown-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #635bff, #3b9dff);
  transition: width .6s linear;
}

.mx-sdu--urgent .mx-sdu__countdown {
  border-color: rgba(99, 91, 255, .34);
  background: #f3f4ff;
}

.mx-sdu--critical .mx-sdu__countdown {
  animation: mx-sdu-countdown-pulse 1.4s ease-in-out infinite;
}

.mx-sdu--critical .mx-sdu__countdown-time,
.mx-sdu--critical .mx-sdu__countdown-label {
  color: #5148ed;
}

@keyframes mx-sdu-countdown-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(99, 91, 255, 0); }
  50% { box-shadow: 0 0 0 4px rgba(99, 91, 255, .08); }
}

.mx-sdu__buy {
  width: 100%;
  margin-top: 17px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #635bff, #3b9dff);
  box-shadow: 0 10px 24px rgba(80, 98, 255, .27);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mx-sdu__buy:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* 游客/普通用户：把 B2 的拒绝式下载提示替换为会员引导。 */
#download-box .download-current.mx-sdu-download-lead-host,
#download-page .download-current.mx-sdu-download-lead-host {
  padding: 15px 18px !important;
  border: 1px solid #c8ddff !important;
  background: linear-gradient(135deg, #f7faff 0%, #f4f7ff 100%) !important;
  box-sizing: border-box;
}

#download-box .download-current.mx-sdu-download-lead-host > :not(.mx-sdu-download-lead),
#download-page .download-current.mx-sdu-download-lead-host > :not(.mx-sdu-download-lead) {
  display: none !important;
}

.mx-sdu-download-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  color: #1f2937;
}

.mx-sdu-download-lead__copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.mx-sdu-download-lead__title {
  color: #17233d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.mx-sdu-download-lead__title em {
  color: #ff3f6c;
  font-size: 1.08em;
  font-style: normal;
  font-weight: 800;
}

.mx-sdu-download-lead__description {
  color: #68758b;
  font-size: 13px;
  line-height: 1.5;
}

.mx-sdu-download-lead__button {
  flex: 0 0 auto;
  min-width: 154px;
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #3487f5, #4d9cff);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mx-sdu-download-lead__button:hover,
.mx-sdu-download-lead__button:focus {
  color: #fff;
  filter: brightness(1.04);
}

.mx-sdu-float {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 999998;
  padding: 10px 14px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #635bff, #3b9dff);
  box-shadow: 0 8px 24px rgba(44, 64, 180, .32);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* 最小化入口优先挂到 B2 最上方黑色导航的“加入会员”右上角。 */
.mx-sdu-nav-host {
  position: relative !important;
}

.mx-sdu-float.mx-sdu-float--nav {
  position: absolute;
  top: 6px;
  right: -2px;
  bottom: auto;
  z-index: 8;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  box-sizing: border-box;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 99px;
  box-shadow: 0 3px 8px rgba(44, 64, 180, .22);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateX(35%);
}

.mx-sdu-float.mx-sdu-float--nav::after {
  content: '';
  position: absolute;
  left: 38%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, .65);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  background: #468cf8;
  transform: rotate(45deg);
}

.mx-sdu-float.mx-sdu-float--download {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 36px;
  margin: 8px 0 3px;
  padding: 8px 14px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #635bff, #3b9dff);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.25;
  vertical-align: top;
  white-space: nowrap;
}

.mx-sdu-float__mobile-label {
  display: none;
}

.mx-sdu-float.mx-sdu-float--download .mx-sdu-float__desktop-label {
  display: none;
}

.mx-sdu-float.mx-sdu-float--download .mx-sdu-float__mobile-label {
  display: inline;
}

.mx-sdu-float__diamond {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .16),
    0 0 10px rgba(188, 231, 255, .9);
  font-size: 14px;
  line-height: 1;
}

.mx-sdu-float__diamond::after {
  content: '✦';
  position: absolute;
  top: -7px;
  right: -6px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 5px #fff, 0 0 8px #8ed8ff;
  pointer-events: none;
}

.mx-sdu-float__label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mx-sdu-float__price {
  margin-right: 2px;
  color: #fff1a6;
  font-size: 1.08em;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(71, 42, 0, .38);
}

.mx-sdu-float__timer {
  flex: 0 0 auto;
  width: 92px;
  min-width: 92px;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 99px;
  background: rgba(19, 30, 91, .18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.mx-sdu-float__timer[hidden] {
  display: none !important;
}

.mx-sdu-float.mx-sdu-float--download .mx-sdu-float__label {
  margin-right: 8px;
}

.mx-sdu-float__action {
  flex: 0 0 auto;
  margin-left: 7px;
  padding: 5px 10px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffe37a, #ffbd3d);
  box-shadow: 0 2px 7px rgba(126, 78, 0, .2);
  color: #5d3b00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.mx-sdu-float__label + .mx-sdu-float__action {
  margin-left: auto;
}

@media (max-width: 520px) {
  .mx-sdu-float.mx-sdu-float--download {
    padding-right: 18px;
    padding-left: 20px;
  }

  .mx-sdu-float.mx-sdu-float--download .mx-sdu-float__timer {
    width: 78px;
    min-width: 78px;
    padding-right: 3px;
    padding-left: 3px;
  }
}

@media (max-width: 360px) {
  .mx-sdu-float.mx-sdu-float--download {
    padding-right: 14px;
    padding-left: 18px;
    font-size: 12px;
  }

  .mx-sdu-float.mx-sdu-float--download .mx-sdu-float__timer {
    width: 74px;
    min-width: 74px;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 9px;
  }

  .mx-sdu-float__action {
    margin-left: 5px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }
}

/* 会员页：只改变视觉排序，不改动 Vue 中 vip3 的真实等级索引。 */
#vips .vip-list > .mx-sdu-diamond-card {
  order: -1;
}

#vips .mx-sdu-diamond-card .vip-list-in {
  position: relative;
  border: 2px solid rgba(255, 65, 96, .72);
  box-shadow: none;
  overflow: hidden;
}

#vips .mx-sdu-diamond-card .mx-sdu-diamond-title {
  position: relative;
  display: inline-block;
}

#vips .mx-sdu-recommend-badge {
  position: absolute;
  top: -9px;
  left: 100%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  margin-left: 3px;
  padding: 0 6px;
  border-radius: 10px;
  background: #fa5151;
  box-shadow: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  pointer-events: none;
}

#vips .mx-sdu-diamond-card .vip-buy button {
  background: linear-gradient(90deg, #ff365f, #ff6b38);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

#vips .mx-sdu-diamond-upgrade .vip-buy {
  flex-direction: column;
  align-items: stretch;
}

#vips .mx-sdu-diamond-upgrade .vip-buy button {
  width: auto;
  min-height: 42px;
}

#vips .mx-sdu-page-upgrade-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 12px 9px;
  color: #6f7889;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

#vips .mx-sdu-page-upgrade-offer[hidden] {
  display: none !important;
}

#vips .mx-sdu-page-upgrade-offer__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

#vips .mx-sdu-page-upgrade-offer__old {
  text-decoration: line-through;
}

#vips .mx-sdu-page-upgrade-offer__now {
  color: #ff365f;
  font-size: 12px;
  font-weight: 800;
}

#vips .mx-sdu-page-upgrade-offer__notice {
  color: #8b93a3;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

#vips .mx-sdu-page-upgrade-offer__timer {
  min-width: 104px;
  padding: 3px 7px;
  border-radius: 99px;
  background: #fff1f3;
  color: #ff365f;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  text-align: center;
}

#vips .mx-sdu-page-upgrade-offer__timer[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  #vips .mx-sdu-page-upgrade-offer__line {
    flex-wrap: wrap;
    gap: 4px 7px;
    white-space: normal;
  }

  #vips .mx-sdu-page-upgrade-offer__timer {
    min-width: 96px;
  }

  #vips .mx-sdu-page-upgrade-offer__notice {
    font-size: 9px;
  }

  #download-box .download-current.mx-sdu-download-lead-host,
  #download-page .download-current.mx-sdu-download-lead-host {
    padding: 13px !important;
  }

  .mx-sdu-download-lead {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .mx-sdu-download-lead__title {
    font-size: 16px;
  }

  .mx-sdu-download-lead__button {
    width: 100%;
    min-width: 0;
  }

  .mx-sdu {
    align-items: flex-end;
    padding: 10px;
  }

  .mx-sdu__dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 25px 20px 34px;
    border-radius: 20px;
  }

  .mx-sdu__diamond { font-size: 40px; }
  .mx-sdu__dialog h2 { font-size: 22px; }
  .mx-sdu__now b { font-size: 34px; }
  .mx-sdu-float { right: 12px; bottom: 140px; }

  .mx-sdu-float.mx-sdu-float--nav {
    top: 6px;
    right: 0;
    bottom: auto;
    padding: 5px 10px;
    font-size: 12px;
    transform: none;
  }

  #vips .mx-sdu-diamond-card .vip-list-in {
    box-shadow: none;
  }
}
