/* 归档页头部动作条：与订阅按钮同行共存，并与文内按钮保持统一设计语言 */
.banner-archive .archive-subscribe {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
}

.mbts-rb-term-cta,
.mbts-rb-dbox-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  border-radius: var(--mbts-dbox-radius-control, 10px);
  border: 1px solid #d97706;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.mbts-rb-term-cta {
  position: relative;
  min-width: 138px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.34);
}

.mbts-rb-dbox-cta {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}

.mbts-rb-term-cta:hover,
.mbts-rb-term-cta:focus-visible,
.mbts-rb-dbox-cta:hover,
.mbts-rb-dbox-cta:focus-visible {
  transform: translateY(-1px);
  border-color: #b45309;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.38);
  outline: none;
}

.mbts-rb-term-cta.is-unlocked {
  border-color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

.mbts-rb-term-cta.is-unlocked:hover,
.mbts-rb-term-cta.is-unlocked:focus-visible {
  border-color: #047857;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.38);
}

.mbts-rb-term-cta__icon,
.mbts-rb-dbox-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.mbts-rb-term-cta.is-unlocked .mbts-rb-term-cta__icon {
  color: #ffffff;
}

.mbts-rb-term-cta__price,
.mbts-rb-dbox-cta__price {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.mbts-rb-term-cta.is-unlocked .mbts-rb-term-cta__price {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.mbts-rb-dbox-cta--box {
  width: auto;
}

.erphpdown-child .erphpdown-cart .mbts-rb-dbox-cta--box,
.erphpdown-panel-actions .mbts-rb-dbox-cta {
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
}

.mbts-rb-dbox-cta--grant {
  min-height: 40px;
  border-color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.24);
}

.mbts-rb-dbox-cta--grant:hover,
.mbts-rb-dbox-cta--grant:focus-visible {
  border-color: #047857;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.34);
  color: #ffffff !important;
}

.mbts-rb-dbox-cta--grant .mbts-rb-dbox-cta__icon {
  color: #ffffff;
}

.mbts-rb-dbox-cta--grant.is-static {
  cursor: default;
  box-shadow: none;
}

.mbts-rb-dbox-cta--grant.is-static:hover,
.mbts-rb-dbox-cta--grant.is-static:focus-visible {
  transform: none;
  border-color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: none;
}

.mbts-rb-dbox-cta--grant.is-exhausted {
  cursor: not-allowed;
  border-color: rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.94) 0%, rgba(255, 251, 235, 0.98) 100%);
  color: #92400e !important;
  box-shadow: none;
}

.mbts-rb-dbox-cta--grant.is-exhausted:hover,
.mbts-rb-dbox-cta--grant.is-exhausted:focus-visible {
  transform: none;
  border-color: rgba(217, 119, 6, 0.55);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.94) 0%, rgba(255, 251, 235, 0.98) 100%);
  box-shadow: none;
  color: #92400e !important;
}

/* 挂载到 body 的浮层 Tooltip（避免被下载框 overflow:hidden 截断，并保持统一琥珀玻璃设计语言） */
.mbts-rb-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100040;
  display: none;
  max-width: min(310px, calc(100vw - 24px));
  padding: 8px 12px;
  border-radius: var(--mbts-dbox-radius-control, 10px);
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.mbts-rb-tooltip[data-placement="bottom"] {
  transform: translateY(-4px);
}

.mbts-rb-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mbts-rb-tooltip__arrow {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #fef3c7;
  border-right: 1px solid rgba(245, 158, 11, 0.55);
  border-bottom: 1px solid rgba(245, 158, 11, 0.55);
  box-sizing: border-box;
}

.mbts-rb-tooltip[data-placement="top"] .mbts-rb-tooltip__arrow {
  bottom: -6px;
  transform: rotate(45deg);
}

.mbts-rb-tooltip[data-placement="bottom"] .mbts-rb-tooltip__arrow {
  top: -6px;
  background: #fffbeb;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid rgba(245, 158, 11, 0.55);
  border-left: 1px solid rgba(245, 158, 11, 0.55);
  transform: rotate(45deg);
}

.mbts-rb-tooltip.is-grant {
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #064e3b;
  box-shadow: 0 10px 26px rgba(5, 150, 105, 0.2), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.mbts-rb-tooltip.is-grant .mbts-rb-tooltip__arrow {
  background: #d1fae5;
  border-right-color: rgba(16, 185, 129, 0.58);
  border-bottom-color: rgba(16, 185, 129, 0.58);
}

.mbts-rb-tooltip.is-grant[data-placement="bottom"] .mbts-rb-tooltip__arrow {
  background: #ecfdf5;
  border-top-color: rgba(16, 185, 129, 0.58);
  border-left-color: rgba(16, 185, 129, 0.58);
}

/* 多版本/表格型文内下载框紧凑整行条 */
.mbts-rb-dbox-slot {
  display: block;
  width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
}

.mbts-rb-table-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.42) 0%, rgba(255, 251, 235, 0.9) 100%);
  box-sizing: border-box;
}

.mbts-rb-table-cta-bar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.mbts-rb-table-cta-bar__text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
}

.mbts-rb-table-cta-bar__text span {
  font-size: 12px;
  color: #6b7280;
}

.mbts-rb-table-cta-bar__action {
  flex-shrink: 0;
}

/* 独立下载卡/通用按钮样式 */
.mbts-rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: inherit;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  line-height: 1.3;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mbts-rb-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.38);
}

.mbts-rb-btn--renew {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.26);
}

.mbts-rb-btn--renew:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.36);
}

/* 渐进式披露详情弹窗 */
html.mbts-rb-modal-open {
  overflow: hidden;
}

.mbts-rb-modal {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mbts-rb-modal[hidden] {
  display: none !important;
}

.mbts-rb-modal.is-open {
  opacity: 1;
}

/* 全局登录弹层需高于功能详情弹层与提示浮层，避免遮挡 */
body.sign-show .sign {
  z-index: 100100;
}

body.sign-show .mbts-rb-modal,
body.sign-show .mbts-rb-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mbts-rb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.mbts-rb-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
  outline: none;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.mbts-rb-modal.is-open .mbts-rb-modal__dialog {
  transform: translateY(0) scale(1);
}

.mbts-rb-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.mbts-rb-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

.mbts-rb-modal__head {
  padding-right: 36px;
  margin-bottom: 14px;
}

.mbts-rb-modal__badge {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.mbts-rb-modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.mbts-rb-modal__subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
}

.mbts-rb-modal__pricing {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.mbts-rb-modal__price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.mbts-rb-modal__amount {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #b45309;
}

.mbts-rb-modal__period {
  font-size: 13px;
  color: #6b7280;
}

.mbts-rb-modal__savings {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b45309;
}

.mbts-rb-modal__scopes {
  margin-bottom: 14px;
}

.mbts-rb-modal__section-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.mbts-rb-modal__scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mbts-rb-modal__scope-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

a.mbts-rb-modal__scope-tag:hover {
  background: #e5e7eb;
  color: #111827;
}

.mbts-rb-modal__benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.mbts-rb-modal__benefits li {
  position: relative;
  padding-left: 16px;
}

.mbts-rb-modal__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
}

.mbts-rb-modal__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mbts-rb-modal__cta {
  width: 100%;
  min-height: 44px;
  font-size: 14.5px;
  box-sizing: border-box;
}

.mbts-rb-modal__grant-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-size: 12.5px;
  text-align: center;
}

.mbts-rb-modal__footnote {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* 已解锁授权条、正文解锁提示卡与短代码卡片 */
.mbts-rb-grant-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--mbts-dbox-radius-card, 16px);
  border: 1px solid var(--border, #d9dde3);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: var(--box-shadow, 0 6px 13px rgba(15, 23, 42, 0.06));
  box-sizing: border-box;
  transition: border-color var(--dbox-interaction-duration, 0.3s) var(--dbox-interaction-ease, ease), box-shadow var(--dbox-interaction-duration, 0.3s) var(--dbox-interaction-ease, ease);
}

.mbts-rb-grant-box:is(:hover, :focus-within) {
  border-color: var(--dbox-success-action-border, #059669);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.14);
}

.mbts-rb-grant-box__info {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mbts-rb-grant-box__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mbts-rb-grant-box__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.mbts-rb-grant-box__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #064e3b;
  line-height: 1.35;
}

.mbts-rb-grant-box__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.4;
}

.mbts-rb-grant-box__dot {
  color: #9ca3af;
}

.mbts-rb-grant-box__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sidebar .mbts-rb-grant-box,
.widget-erphpdown:not([data-mbts-dbox-instance="hero"]) .mbts-rb-grant-box {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.sidebar .mbts-rb-grant-box__info,
.widget-erphpdown:not([data-mbts-dbox-instance="hero"]) .mbts-rb-grant-box__info {
  flex: 0 1 auto;
  width: 100%;
}

.sidebar .mbts-rb-grant-box__actions,
.widget-erphpdown:not([data-mbts-dbox-instance="hero"]) .mbts-rb-grant-box__actions {
  width: 100%;
}

.sidebar .mbts-rb-grant-box__actions .mbts-rb-btn,
.widget-erphpdown:not([data-mbts-dbox-instance="hero"]) .mbts-rb-grant-box__actions .mbts-rb-btn {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .mbts-rb-grant-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mbts-rb-grant-box__info {
    flex: 0 1 auto;
    width: 100%;
  }

  .mbts-rb-grant-box__actions,
  .mbts-rb-grant-box__actions .mbts-rb-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

.mbts-rb-btn--grant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--mbts-dbox-radius-control, 10px);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.24);
}

.mbts-rb-btn--grant:hover,
.mbts-rb-btn--grant:focus-visible {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.34);
  color: #fff !important;
}

.mbts-rb-btn--grant.is-static {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
  box-shadow: none;
}

.mbts-rb-btn--grant.is-static:hover,
.mbts-rb-btn--grant.is-static:focus-visible {
  transform: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: none;
}

.mbts-rb-grant-box__limit {
  margin: 0;
  font-size: 12.5px;
  color: #b45309;
  font-weight: 600;
}

.erphpdown-content-vip.mbts-rb-see-box {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 18px !important;
  border: 1.5px dashed rgba(16, 185, 129, 0.6) !important;
  border-radius: 12px !important;
  background: rgba(236, 253, 245, 0.72);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .erphpdown-content-vip.mbts-rb-see-box {
    flex-wrap: wrap;
  }
}

.mbts-rb-see-box__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: #065f46;
}

.mbts-rb-see-box__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.mbts-rb-see-usage {
  font-size: 12px;
  color: #4b5563;
}

.mbts-rb-see-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mbts-rb-see-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.24);
}

.mbts-rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
}

.mbts-rb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
}

.mbts-rb-card__badge {
  position: absolute;
  top: 0;
  right: 16px;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  background: #d97706;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.mbts-rb-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #111827;
}

.mbts-rb-card__subtitle {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #6b7280;
}

.mbts-rb-card__price {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.mbts-rb-card__amount {
  font-size: 28px;
  font-weight: 700;
  color: #b45309;
}

.mbts-rb-card__unit {
  margin-left: 4px;
  font-size: 13px;
  color: #6b7280;
}

.mbts-rb-card__save {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #b45309;
}

.mbts-rb-card__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.65;
  flex: 1;
}

.mbts-rb-card__facts li {
  margin-bottom: 6px;
}

.mbts-rb-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mbts-rb-card__foot .mbts-rb-btn {
  width: 100%;
  box-sizing: border-box;
}

.mbts-rb-card__granted {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  text-align: center;
}

.mbts-rb-card__quota {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.mbts-rb-box-granted .erphpdown-buy,
.mbts-rb-box-granted .erphp-wppay-loader,
.mbts-rb-box-granted .erphpdown-vip,
.mbts-rb-box-granted .vip-discounts,
.mbts-rb-box-takeover .erphpdown-variant-panels,
.mbts-rb-box-takeover .erphpdown-variant-tabs,
.mbts-rb-box-takeover .erphpdown-multi,
.mbts-rb-box-takeover .erphpdown-child,
.mbts-rb-box-takeover .erphpdown-table-wrap,
.mbts-rb-box-takeover .erphpdown-con,
.mbts-rb-box-takeover .erphpdown-buy,
.mbts-rb-box-takeover .erphp-wppay-loader,
.mbts-rb-box-takeover .erphpdown-vip,
.mbts-rb-box-takeover .vip-discounts {
  display: none !important;
}

.mbts-rb-box-takeover > .mbts-rb-dbox-slot.is-takeover {
  margin-top: 0;
}

.widget-erphpdown .erphpdown-multi.mbts-rb-box-takeover,
.widget-erphpdown .erphpdown-multi.mbts-rb-box-takeover:is(:hover, :focus-within),
.mbts-rb-box-takeover.erphpdown-multi,
.mbts-rb-box-takeover.erphpdown-multi:is(:hover, :focus-within) {
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.mbts-rb-takeover-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: var(--mbts-dbox-radius-control, 12px);
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.46) 0%, rgba(255, 251, 235, 0.94) 100%);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mbts-rb-takeover-card--hero,
.mbts-rb-takeover-card--sidebar {
  border-radius: var(--mbts-dbox-radius-card, 16px);
}

.mbts-rb-takeover-card.is-upsell:is(:hover, :focus-within) {
  border-color: rgba(217, 119, 6, 0.72);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.12);
}

.mbts-rb-takeover-card.is-granted,
.mbts-rb-takeover-card.is-legacy-tip {
  border-color: var(--border, #d9dde3);
  background: rgba(236, 253, 245, 0.78);
  box-shadow: var(--box-shadow, 0 6px 13px rgba(15, 23, 42, 0.06));
}

.mbts-rb-takeover-card.is-granted:is(:hover, :focus-within),
.mbts-rb-takeover-card.is-legacy-tip:is(:hover, :focus-within) {
  border-color: var(--dbox-success-action-border, #059669);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.14);
}

.mbts-rb-takeover-card__body {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mbts-rb-takeover-card--sidebar {
  flex-direction: column;
  align-items: stretch;
}

.mbts-rb-takeover-card--sidebar .mbts-rb-takeover-card__body {
  flex: 0 1 auto;
  width: 100%;
}

@media (max-width: 560px) {
  .mbts-rb-takeover-card {
    flex-direction: column;
    align-items: stretch;
  }

  .mbts-rb-takeover-card__body {
    flex: 0 1 auto;
    width: 100%;
  }
}

.mbts-rb-takeover-card__badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.mbts-rb-takeover-card__badge.is-success,
.mbts-rb-takeover-card__badge.is-legacy {
  background: #059669;
}

.mbts-rb-takeover-card__body strong {
  font-size: 14px;
  color: #111827;
}

.mbts-rb-takeover-card__body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4b5563;
}

.mbts-rb-takeover-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.mbts-rb-takeover-card__browse {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.mbts-rb-takeover-card.is-granted .mbts-rb-takeover-card__browse {
  color: #047857;
}

.mbts-rb-takeover-card__browse:hover {
  text-decoration: underline;
}

/* 夜间模式适配：降低默认态高饱和黄橙明度与发光感，避免深色背景下刺眼 */
:is(body.night, html.night body) .mbts-rb-term-cta,
:is(body.night, html.night body) .mbts-rb-dbox-cta,
:is(body.night, html.night body) .mbts-rb-btn {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  border-color: rgba(217, 119, 6, 0.52);
  color: rgba(255, 251, 235, 0.9) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

:is(body.night, html.night body) .mbts-rb-term-cta__icon,
:is(body.night, html.night body) .mbts-rb-dbox-cta__icon {
  color: rgba(255, 251, 235, 0.9);
}

:is(body.night, html.night body) .mbts-rb-term-cta:hover,
:is(body.night, html.night body) .mbts-rb-term-cta:focus-visible,
:is(body.night, html.night body) .mbts-rb-dbox-cta:hover,
:is(body.night, html.night body) .mbts-rb-dbox-cta:focus-visible,
:is(body.night, html.night body) .mbts-rb-btn:hover,
:is(body.night, html.night body) .mbts-rb-btn:focus-visible {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: rgba(245, 158, 11, 0.68);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.28);
}

:is(body.night, html.night body) .mbts-rb-term-cta:hover .mbts-rb-term-cta__icon,
:is(body.night, html.night body) .mbts-rb-dbox-cta:hover .mbts-rb-dbox-cta__icon {
  color: #ffffff;
}

:is(body.night, html.night body) .mbts-rb-term-cta.is-unlocked,
:is(body.night, html.night body) .mbts-rb-dbox-cta--grant,
:is(body.night, html.night body) .mbts-rb-btn--grant,
:is(body.night, html.night body) .mbts-rb-btn--renew,
:is(body.night, html.night body) .mbts-rb-see-btn,
:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted .mbts-rb-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

:is(body.night, html.night body) .mbts-rb-term-cta.is-unlocked:hover,
:is(body.night, html.night body) .mbts-rb-term-cta.is-unlocked:focus-visible,
:is(body.night, html.night body) .mbts-rb-dbox-cta--grant:hover,
:is(body.night, html.night body) .mbts-rb-dbox-cta--grant:focus-visible,
:is(body.night, html.night body) .mbts-rb-btn--grant:hover,
:is(body.night, html.night body) .mbts-rb-btn--grant:focus-visible,
:is(body.night, html.night body) .mbts-rb-btn--renew:hover,
:is(body.night, html.night body) .mbts-rb-btn--renew:focus-visible,
:is(body.night, html.night body) .mbts-rb-see-btn:hover,
:is(body.night, html.night body) .mbts-rb-see-btn:focus-visible,
:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted .mbts-rb-btn:hover,
:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted .mbts-rb-btn:focus-visible {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}

:is(body.night, html.night body) .mbts-rb-term-cta__price,
:is(body.night, html.night body) .mbts-rb-dbox-cta__price {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(254, 243, 199, 0.92);
}

:is(body.night, html.night body) .mbts-rb-tooltip {
  background: linear-gradient(135deg, #2e2010 0%, #241910 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

:is(body.night, html.night body) .mbts-rb-tooltip__arrow {
  background: #241910;
  border-color: rgba(245, 158, 11, 0.5);
}

:is(body.night, html.night body) .mbts-rb-tooltip[data-placement="bottom"] .mbts-rb-tooltip__arrow {
  background: #2e2010;
  border-color: rgba(245, 158, 11, 0.5);
}

:is(body.night, html.night body) .mbts-rb-tooltip.is-grant {
  background: linear-gradient(135deg, #064e3b 0%, #05382c 100%);
  border-color: rgba(52, 211, 153, 0.55);
  color: #d1fae5;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

:is(body.night, html.night body) .mbts-rb-tooltip.is-grant .mbts-rb-tooltip__arrow {
  background: #05382c;
  border-color: rgba(52, 211, 153, 0.55);
}

:is(body.night, html.night body) .mbts-rb-tooltip.is-grant[data-placement="bottom"] .mbts-rb-tooltip__arrow {
  background: #064e3b;
  border-color: rgba(52, 211, 153, 0.55);
}

:is(body.night, html.night body) .mbts-rb-table-cta-bar {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.18) 0%, rgba(24, 24, 27, 0.92) 100%);
  border-color: rgba(245, 158, 11, 0.35);
}

:is(body.night, html.night body) .mbts-rb-table-cta-bar__text strong,
:is(body.night, html.night body) .mbts-rb-card__title,
:is(body.night, html.night body) .mbts-rb-modal__title {
  color: #f3f4f6;
}

:is(body.night, html.night body) .mbts-rb-table-cta-bar__text span,
:is(body.night, html.night body) .mbts-rb-card__subtitle,
:is(body.night, html.night body) .mbts-rb-card__facts,
:is(body.night, html.night body) .mbts-rb-modal__subtitle,
:is(body.night, html.night body) .mbts-rb-modal__period,
:is(body.night, html.night body) .mbts-rb-modal__benefits {
  color: #d1d5db;
}

:is(body.night, html.night body) .mbts-rb-card,
:is(body.night, html.night body) .mbts-rb-modal__dialog {
  background: #18181b;
  border-color: #27272a;
}

:is(body.night, html.night body) .mbts-rb-modal__pricing {
  background: rgba(180, 83, 9, 0.16);
  border-color: rgba(245, 158, 11, 0.32);
}

:is(body.night, html.night body) .mbts-rb-modal__close,
:is(body.night, html.night body) .mbts-rb-modal__scope-tag {
  background: #27272a;
  color: #e4e4e7;
}

:is(body.night, html.night body) .mbts-rb-grant-box,
:is(body.night, html.night body) .mbts-rb-see-box,
:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted,
:is(body.night, html.night body) .mbts-rb-takeover-card.is-legacy-tip {
  background: rgba(6, 78, 59, 0.25);
  border-color: var(--border, var(--panel-border, rgba(148, 163, 184, 0.22)));
}

:is(body.night, html.night body) .mbts-rb-grant-box:is(:hover, :focus-within),
:is(body.night, html.night body) .mbts-rb-see-box:is(:hover, :focus-within),
:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted:is(:hover, :focus-within),
:is(body.night, html.night body) .mbts-rb-takeover-card.is-legacy-tip:is(:hover, :focus-within) {
  border-color: var(--dbox-success-action-border, #10b981);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.35);
}

:is(body.night, html.night body) .mbts-rb-grant-box__title,
:is(body.night, html.night body) .mbts-rb-see-box__info {
  color: #a7f3d0;
}

:is(body.night, html.night body) .mbts-rb-grant-box__meta,
:is(body.night, html.night body) .mbts-rb-see-usage {
  color: #d1d5db;
}

:is(body.night, html.night body) .mbts-rb-takeover-card.is-upsell {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.18) 0%, rgba(24, 24, 27, 0.94) 100%);
  border-color: rgba(217, 119, 6, 0.34);
}

:is(body.night, html.night body) .mbts-rb-takeover-card__badge:not(.is-success):not(.is-legacy) {
  background: #b45309;
  color: rgba(255, 251, 235, 0.92);
}

:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle:not(.is-granted) {
  --panel-variant-color: #b45309;
}

:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi:has(.erphpdown-variant.is-active.is-rb-bundle:not(.is-granted)) {
  --panel-active-variant-color: #b45309;
}

:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-active.is-rb-bundle:not(.is-granted) {
  color: rgba(255, 251, 235, 0.92);
}

:is(body.night, html.night body) .mbts-rb-takeover-card__body strong {
  color: #f3f4f6;
}

:is(body.night, html.night body) .mbts-rb-takeover-card__body p {
  color: #d1d5db;
}

:is(body.night, html.night body) .mbts-rb-takeover-card__browse {
  color: #fcd34d;
}

:is(body.night, html.night body) .mbts-rb-takeover-card.is-granted .mbts-rb-takeover-card__browse {
  color: #6ee7b7;
}

/* 关联多价格子项：改造为资源套餐专属琥珀金/翠绿视觉语义与统一弹窗卡片 */
.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle:not(.is-granted) {
  --panel-variant-color: #d97706;
}

.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle:not(.is-granted):not(.is-active) {
  color: #b45309;
  opacity: 0.95;
}

.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle:not(.is-granted):not(.is-active),
:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle:not(.is-granted):not(.is-active) {
  color: #fcd34d;
}

.widget-erphpdown .erphpdown-multi:has(.erphpdown-variant.is-active.is-rb-bundle:not(.is-granted)) {
  --panel-active-variant-color: #d97706;
}

/* 关联多价格子项及虚拟首项（已开通）：由资源套餐专属翡翠绿接管 Variant Token，复用 DBO 悬浮边框与呼吸动效 */
.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted {
  --panel-variant-color: #059669;
}

.widget-erphpdown .erphpdown-multi:has(.erphpdown-variant.is-active.is-rb-bundle.is-granted) {
  --panel-active-variant-color: #059669;
}

.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted:not(.is-active) {
  color: #059669;
  opacity: 0.95;
}

.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted.is-active,
.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted.is-active,
:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted.is-active {
  color: #ffffff;
}

.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted,
:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted {
  --panel-variant-color: #059669;
}

.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-multi:has(.erphpdown-variant.is-active.is-rb-bundle.is-granted),
:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi:has(.erphpdown-variant.is-active.is-rb-bundle.is-granted) {
  --panel-active-variant-color: #10b981;
}

.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted:not(.is-active),
:is(body.night, html.night body) .widget-erphpdown .erphpdown-multi .erphpdown-variant.is-rb-bundle.is-granted:not(.is-active) {
  color: #34d399;
}

.erphpdown-box-modern.erphpdown-box .erphpdown-child.is-rb-bundle-item {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.erphpdown-box-modern.erphpdown-box .erphpdown-child.is-rb-bundle-item:hover,
:is(body.night, html.night body) .erphpdown-box-modern.erphpdown-box .erphpdown-child.is-rb-bundle-item:hover {
  border: 0 !important;
}

.erphpdown-box-modern.erphpdown-box .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
  width: 100%;
  border-radius: var(--mbts-dbox-radius-card, 16px);
}

.widget-erphpdown .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
  width: 100%;
  border-radius: var(--mbts-dbox-radius-group, 12px);
}

.erphpdown-box-modern.erphpdown-box .erphpdown-child.mbts-rb-child-has-note {
  flex-wrap: wrap;
  row-gap: 10px;
}

.mbts-rb-item-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  flex: 1 0 100%;
  padding: 9px 12px;
  border-radius: var(--mbts-dbox-radius-control, 10px);
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.42) 0%, rgba(255, 251, 235, 0.88) 100%);
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.45;
  color: #78350f;
}

.mbts-rb-item-note.is-granted {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(236, 253, 245, 0.82);
  color: #065f46;
}

.mbts-rb-item-note--hero,
.mbts-rb-item-note--sidebar {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 5px 8px;
  margin-top: 2px;
  border-color: rgba(245, 158, 11, 0.24);
  font-size: 11.5px;
  line-height: 1.4;
}

.mbts-rb-item-note--hero .mbts-rb-item-note__main,
.mbts-rb-item-note--sidebar .mbts-rb-item-note__main {
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px 6px;
}

.mbts-rb-item-note__tip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  border-bottom: 1px dashed rgba(180, 83, 9, 0.55);
  cursor: help;
}

.mbts-rb-item-note.is-granted .mbts-rb-item-note__tip {
  color: #047857;
  border-bottom-color: rgba(4, 120, 87, 0.55);
}

.mbts-dbox-component--hero-inline .mbts-rb-item-note__tip {
  color: #fde68a;
  border-bottom-color: rgba(253, 230, 138, 0.55);
}

.mbts-dbox-component--hero-inline .mbts-rb-item-note.is-granted .mbts-rb-item-note__tip {
  color: #6ee7b7;
  border-bottom-color: rgba(110, 231, 183, 0.55);
}

:is(body.night, html.night body) .mbts-rb-item-note__tip {
  color: #fde68a;
  border-bottom-color: rgba(253, 230, 138, 0.55);
}

:is(body.night, html.night body) .mbts-rb-item-note.is-granted .mbts-rb-item-note__tip {
  color: #6ee7b7;
  border-bottom-color: rgba(110, 231, 183, 0.55);
}

.mbts-rb-item-note__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 1 1 220px;
  min-width: 0;
}

.mbts-rb-item-note__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mbts-rb-item-note__badge.is-success {
  background: #059669;
}

.mbts-rb-item-note__text {
  font-weight: 500;
}

.mbts-rb-item-note__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mbts-rb-item-note__link,
.mbts-rb-item-note__btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
  cursor: pointer;
}

.mbts-rb-item-note.is-granted .mbts-rb-item-note__link,
.mbts-rb-item-note.is-granted .mbts-rb-item-note__btn {
  color: #047857;
}

.mbts-rb-item-note__link:hover,
.mbts-rb-item-note__btn:hover {
  text-decoration: underline;
}

/* Hero 深色玻璃背景内的清晰可读适配 */
.mbts-dbox-component--hero-inline .mbts-rb-item-note {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fef3c7;
}

.mbts-dbox-component--hero-inline .mbts-rb-item-note.is-granted {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.42);
  color: #d1fae5;
}

.mbts-dbox-component--hero-inline .mbts-rb-item-note__link,
.mbts-dbox-component--hero-inline .mbts-rb-item-note__btn {
  color: #fcd34d;
}

.mbts-dbox-component--hero-inline .mbts-rb-item-note.is-granted .mbts-rb-item-note__link,
.mbts-dbox-component--hero-inline .mbts-rb-item-note.is-granted .mbts-rb-item-note__btn {
  color: #6ee7b7;
}

.erphpdown-table-name .mbts-rb-item-note {
  margin-top: 6px;
}

/* 夜间模式：子项内嵌提示条 */
:is(body.night, html.night body) .mbts-rb-item-note {
  background: rgba(180, 83, 9, 0.22);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fef3c7;
}

:is(body.night, html.night body) .mbts-rb-item-note.is-granted {
  background: rgba(6, 78, 59, 0.32);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

:is(body.night, html.night body) .mbts-rb-item-note__link,
:is(body.night, html.night body) .mbts-rb-item-note__btn {
  color: #fcd34d;
}

:is(body.night, html.night body) .mbts-rb-item-note.is-granted .mbts-rb-item-note__link,
:is(body.night, html.night body) .mbts-rb-item-note.is-granted .mbts-rb-item-note__btn {
  color: #6ee7b7;
}

/* 移动端响应式与减少动画 */
@media (hover: none), (max-width: 640px) {
  .mbts-rb-tooltip {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .mbts-rb-table-cta-bar__action,
  .mbts-rb-table-cta-bar__action .mbts-rb-dbox-cta {
    width: 100%;
  }
  .mbts-rb-modal__dialog {
    padding: 20px 16px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .banner-archive .archive-subscribe {
    width: 100%;
  }
  .mbts-rb-term-cta {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbts-rb-term-cta,
  .mbts-rb-dbox-cta,
  .mbts-rb-btn,
  .mbts-rb-modal,
  .mbts-rb-modal__dialog,
  .mbts-rb-tooltip {
    transition: none;
  }
  .mbts-rb-term-cta:hover,
  .mbts-rb-dbox-cta:hover,
  .mbts-rb-btn:hover {
    transform: none;
  }
}


/* Hero 与侧边栏并列套餐面板：占满整个 .erphpdown-variant-panels 消除二次嵌套 */
.widget-erphpdown .erphpdown-multi > .erphpdown-variant-panels:has(> .erphpdown-child.is-rb-bundle-item:not([hidden])) {
	padding: 0 !important;
	overflow: hidden;
}

.widget-erphpdown .erphpdown-child.is-rb-bundle-item:not([hidden]) {
	display: block !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.widget-erphpdown .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 0 calc(var(--mbts-dbox-radius-card, 16px) - 1px) calc(var(--mbts-dbox-radius-card, 16px) - 1px) !important;
	box-shadow: none !important;
	padding: 14px 16px;
}

.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
	padding:
		var(--mbts-dbox-hero-panel-padding-desktop-top, 18px)
		var(--mbts-dbox-hero-panel-padding-desktop-right, 20px)
		var(--mbts-dbox-hero-panel-padding-desktop-bottom, 18px)
		var(--mbts-dbox-hero-panel-padding-desktop-left, 20px);
}

@media (max-width: 991px) {
	.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
		padding:
			var(--mbts-dbox-hero-panel-padding-tablet-top, 16px)
			var(--mbts-dbox-hero-panel-padding-tablet-right, 16px)
			var(--mbts-dbox-hero-panel-padding-tablet-bottom, 16px)
			var(--mbts-dbox-hero-panel-padding-tablet-left, 16px);
	}
}

@media (max-width: 767px) {
	.mbts-dbox-component--hero-inline.widget-erphpdown .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item {
		padding:
			var(--mbts-dbox-hero-panel-padding-mobile-top, 14px)
			var(--mbts-dbox-hero-panel-padding-mobile-right, 14px)
			var(--mbts-dbox-hero-panel-padding-mobile-bottom, 14px)
			var(--mbts-dbox-hero-panel-padding-mobile-left, 14px);
	}
}

.widget-erphpdown .erphpdown-multi:not(.is-single-item) .erphpdown-variants-static {
	display: none !important;
}

/* 独立/并列套餐卡片主行动按钮尺寸强化：对齐常规下载框购买按钮体量，重点放大 Hero 区与文内下载框对齐 */
.mbts-rb-takeover-card .mbts-rb-dbox-cta--takeover,
.mbts-rb-takeover-card .mbts-rb-btn {
	min-width: 148px;
	min-height: 44px;
	padding: 10px 20px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	gap: 7px;
	border-radius: var(--mbts-dbox-radius-control, 12px);
}

.mbts-rb-takeover-card .mbts-rb-dbox-cta--takeover .mbts-rb-dbox-cta__icon svg {
	width: 16px;
	height: 16px;
}

.erphpdown-box-modern.erphpdown-box .erphpdown-child.is-rb-bundle-item > .mbts-rb-takeover-card.is-bound-item,
.erphpdown-box-modern.erphpdown-box .mbts-rb-takeover-card--box {
	padding: var(--dbox-inline-card-padding-block, 15px) var(--dbox-inline-card-padding-inline, 15px);
}

.mbts-rb-takeover-card--box .mbts-rb-takeover-card__actions {
	align-items: flex-end;
}

.mbts-rb-takeover-card--box .mbts-rb-dbox-cta--takeover,
.erphpdown-box-modern.erphpdown-box .erphpdown-con-multi-cards > .erphpdown-child:not(.is-rb-bundle-item):not(:has(.item.vip-text)) .down {
	width: 148px;
	min-width: 148px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--mbts-dbox-radius-control, 12px);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	gap: 7px;
	box-sizing: border-box;
}

.mbts-rb-takeover-card--box .mbts-rb-takeover-card__browse {
	width: 148px;
	text-align: center;
}

.mbts-rb-takeover-card--hero .mbts-rb-dbox-cta--takeover,
.mbts-rb-takeover-card--hero .mbts-rb-btn,
.mbts-dbox-component--hero-inline .mbts-rb-takeover-card .mbts-rb-dbox-cta--takeover,
.mbts-dbox-component--hero-inline .mbts-rb-takeover-card .mbts-rb-btn {
	min-width: 168px;
	min-height: 44px;
	padding: 11px 26px;
	font-size: 15px;
	font-weight: 800;
}

.mbts-rb-takeover-card--hero .mbts-rb-takeover-card__body strong,
.mbts-dbox-component--hero-inline .mbts-rb-takeover-card__body strong {
	font-size: 15px;
}

.mbts-rb-takeover-card--sidebar .mbts-rb-dbox-cta--takeover,
.mbts-rb-takeover-card--sidebar .mbts-rb-btn {
	width: 100%;
	min-height: 44px;
	font-size: 14.5px;
}

.mbts-rb-takeover-card--box .mbts-rb-btn {
	min-height: 44px;
	width: auto;
	min-width: 148px;
	padding: 10px 18px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	justify-content: center;
	box-sizing: border-box;
	white-space: nowrap;
}

/* 套餐免费下载弹窗：同页展示网盘地址、提取码复制与实时配额 */
.mbts-rb-dl-modal__dialog {
  max-width: 540px;
}

.mbts-rb-dl-modal__badge {
  background: #059669;
  color: #ffffff;
}

.mbts-rb-dl-modal__quota {
  margin-bottom: 14px;
  font-weight: 600;
}

.mbts-rb-dl-group-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  color: #334155;
}

.mbts-rb-dl-group-bar__label {
  font-weight: 600;
}

.mbts-rb-dl-group-bar__toggle {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.mbts-rb-dl-group-bar__toggle:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #059669;
}

.mbts-rb-dl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mbts-rb-dl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.mbts-rb-dl-item__info {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mbts-rb-dl-item__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}

.mbts-rb-dl-item__secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #4b5563;
}

.mbts-rb-dl-item__code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  user-select: all;
}

.mbts-rb-dl-copy {
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mbts-rb-dl-copy:hover {
  border-color: #9ca3af;
  color: #111827;
}

.mbts-rb-dl-copy.is-copied {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.mbts-rb-dl-item__go {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mbts-rb-dl-hidden {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.mbts-rb-dl-hidden__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #374151;
}

.mbts-rb-dl-hidden__row + .mbts-rb-dl-hidden__row {
  margin-top: 6px;
}

.mbts-rb-dl-error,
.mbts-rb-dl-empty {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
  font-size: 13.5px;
  line-height: 1.6;
}

.mbts-rb-download-trigger.is-loading {
  opacity: 0.78;
  cursor: wait;
}

:is(body.night, html.night body) .mbts-rb-modal__grant-status {
  background: rgba(6, 78, 59, 0.36);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}

:is(body.night, html.night body) .mbts-rb-modal__footnote {
  color: #a1a1aa;
}

:is(body.night, html.night body) .mbts-rb-dl-group-bar,
:is(body.night, html.night body) .mbts-rb-dl-item,
:is(body.night, html.night body) .mbts-rb-dl-hidden {
  background: #27272a;
  border-color: #3f3f46;
  color: #e4e4e7;
}

:is(body.night, html.night body) .mbts-rb-dl-item__title {
  color: #f4f4f5;
}

:is(body.night, html.night body) .mbts-rb-dl-item__secret-row,
:is(body.night, html.night body) .mbts-rb-dl-hidden__row {
  color: #d4d4d8;
}

:is(body.night, html.night body) .mbts-rb-dl-item__code {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

:is(body.night, html.night body) .mbts-rb-dl-copy {
  background: #18181b;
  border-color: #52525b;
  color: #e4e4e7;
}

:is(body.night, html.night body) .mbts-rb-dl-copy.is-copied {
  border-color: #10b981;
  background: rgba(6, 78, 59, 0.45);
  color: #6ee7b7;
}

:is(body.night, html.night body) .mbts-rb-dl-group-bar__toggle {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

:is(body.night, html.night body) .mbts-rb-dl-error,
:is(body.night, html.night body) .mbts-rb-dl-empty {
  background: rgba(180, 83, 9, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

@media (max-width: 520px) {
  .mbts-rb-dl-item {
    flex-direction: column;
    align-items: stretch;
  }

  .mbts-rb-dl-item__go {
    width: 100%;
    text-align: center;
  }
}

/* 原版 Modown + ErphpDown 零改动独立运行兼容样式 */
.widget-erphpdown.mbts-rb-widget-unhidden {
  display: block !important;
}

.mbts-rb-sidebar-fallback {
  margin: 12px 0;
}

.mbts-rb-sidebar-fallback .mbts-rb-dbox-cta--sidebar {
  width: 100%;
  justify-content: center;
}

.archive-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.vip-content .mbts-rb-vip-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.vip-content .mbts-rb-vip-section .section-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.vip-content .mbts-rb-vip-section .section-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.vip-content .mbts-rb-vip-section .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vip-content .mbts-rb-vip-section .cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.vip-content .mbts-rb-vip-section .cat-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.vip-content .mbts-rb-vip-section .cat-card__meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.vip-content .mbts-rb-vip-section .cat-card__desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.vip-content .mbts-rb-vip-section .cat-card__options ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #334155;
  line-height: 1.7;
}

.vip-content .mbts-rb-vip-section .plan__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .section-desc {
  color: #94a3b8;
}

:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .cat-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
}

:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .cat-card__name {
  color: #f1f5f9;
}

:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .cat-card__desc,
:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .cat-card__options ul {
  color: #cbd5e1;
}

:is(body.night, html.night body) .vip-content .mbts-rb-vip-section .cat-card__meta-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
