/* ds3 会员升级弹窗 — Youku 风格 */
.ds3-vip-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000030;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ds3-vip-overlay.is-show {
  opacity: 1;
  visibility: visible;
}
.ds3-vip-modal {
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}
.ds3-vip-overlay.is-show .ds3-vip-modal {
  transform: translateY(0) scale(1);
}
.ds3-vip-hd {
  position: relative;
  flex-shrink: 0;
  background: #2b2b2b;
  color: #fff;
  padding: 16px 18px 0;
}
.ds3-vip-hd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.ds3-vip-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ds3-vip-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #4a90e2;
  flex-shrink: 0;
}
.ds3-vip-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.ds3-vip-uname {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds3-vip-uname small {
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}
.ds3-vip-usub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.ds3-vip-hd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ds3-vip-hd-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.ds3-vip-hd-link:hover {
  color: #f2c994;
}
.ds3-vip-hd-link .vip-ico {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.ds3-vip-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}
.ds3-vip-close:hover {
  color: #fff;
}
.ds3-vip-tabs {
  display: flex;
  align-items: stretch;
  margin: 0 -18px;
}
.ds3-vip-tab {
  flex: 1;
  height: 44px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.ds3-vip-tab.is-on {
  background: #f2c994;
  color: #3a2810;
  z-index: 1;
}
.ds3-vip-tab:not(.is-on) {
  background: #2b2b2b;
  color: #fff;
}
.ds3-vip-tab.is-on::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  bottom: 0;
  width: 28px;
  background: #f2c994;
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
  z-index: 2;
}
.ds3-vip-tab:last-child.is-on::after {
  display: none;
}
.ds3-vip-tab:first-child:not(.is-on) + .ds3-vip-tab.is-on::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 28px;
  background: #f2c994;
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
/* 选中左侧 VIP 时，右侧暗色斜切 */
.ds3-vip-tab.is-on + .ds3-vip-tab:not(.is-on)::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 28px;
  background: #2b2b2b;
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.ds3-vip-bd {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.ds3-vip-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ds3-vip-plans.is-multi {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.ds3-vip-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 148px;
  border: 1.5px solid #3d3d45;
  border-radius: 12px;
  background: #2c2c34;
  padding: 0;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ds3-vip-plan.is-on {
  border-color: #f0b429;
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.35), 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.ds3-vip-plan-top {
  padding: 14px 10px 12px;
}
.ds3-vip-plan-tag {
  font-size: 12px;
  line-height: 1.3;
  color: #a0a0a5;
  margin-bottom: 4px;
}
.ds3-vip-plan-days {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.5px;
}
.ds3-vip-plan-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ds3-vip-plan-action {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.ds3-vip-plan-action em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  margin-right: 1px;
}
.ds3-vip-plan-action.is-free {
  font-size: 17px;
  color: #98f9d1;
  text-shadow: 0 0 12px rgba(152, 249, 209, 0.35);
}
.ds3-vip-plan.is-deal {
  border-color: rgba(255, 107, 74, 0.75);
}
.ds3-vip-plan-deal {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 11px 0 10px 0;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.ds3-vip-plan-origin {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  line-height: 1.2;
}
.ds3-vip-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #1f1f24;
  color: #f3c44c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.ds3-vip-plan-pill.is-free {
  color: #f3c44c;
}
.ds3-vip-plan-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.ds3-vip-plan-ribbon i {
  position: absolute;
  top: 8px;
  right: -18px;
  display: block;
  width: 72px;
  padding: 3px 0;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 1px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ds3-vip-plan-ribbon.is-value i {
  background: #f59e0b;
}
.ds3-vip-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ds3-vip-hint a {
  color: #c48a3a;
  white-space: nowrap;
  text-decoration: none;
}

.ds3-vip-benefits {
  margin-top: 18px;
}
.ds3-vip-sec-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.ds3-vip-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}
.ds3-vip-benefit {
  text-align: center;
}
.ds3-vip-benefit-ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ds3-vip-benefit-txt {
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

.ds3-vip-pay {
  margin-top: 20px;
}
.ds3-vip-pay-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ds3-vip-pay-item {
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  background: #f7f7f7;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ds3-vip-pay-item.is-on {
  background: #fff;
  border-color: #e8a85c;
}
.ds3-vip-pay-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.ds3-vip-pay-sub {
  margin-top: 2px;
  font-size: 10px;
  color: #999;
  line-height: 1.3;
}

.ds3-vip-card-box {
  margin-top: 12px;
  padding: 14px;
  background: #f5f5f5;
  border-radius: 8px;
  display: none;
}
.ds3-vip-card-box.is-show {
  display: block;
}
.ds3-vip-card-box h5 {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
  font-weight: 500;
}
.ds3-vip-field {
  margin-bottom: 8px;
}
.ds3-vip-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}
.ds3-vip-field input:focus {
  border-color: #e8a85c;
}
.ds3-vip-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ds3-vip-pci {
  margin-top: 8px;
  font-size: 11px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds3-vip-points-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  display: none;
}
.ds3-vip-points-box.is-show {
  display: block;
}
.ds3-vip-points-box strong {
  color: #c48a3a;
}

.ds3-vip-coupon {
  margin-top: 16px;
}
.ds3-vip-coupon .mac-user-coupon-panel {
  margin: 0;
}
.ds3-vip-coupon-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.ds3-vip-coupon-hd a {
  font-weight: 400;
  font-size: 12px;
  color: #c48a3a;
  text-decoration: none;
}
.ds3-vip-coupon-sel {
  width: 100%;
  height: 40px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  background: #f7f7f7;
  color: #666;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.ds3-vip-ft {
  flex-shrink: 0;
  padding: 10px 18px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.ds3-vip-agree {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.ds3-vip-agree input {
  accent-color: #e8a85c;
}
.ds3-vip-agree a {
  color: #c48a3a;
  text-decoration: none;
}
.ds3-vip-cta {
  display: flex;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.ds3-vip-cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.ds3-vip-cta-price {
  width: 28%;
  background: #2b2b2b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds3-vip-cta-text {
  flex: 1;
  background: #e8a85c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds3-vip-cta:hover .ds3-vip-cta-text {
  background: #dfa04e;
}

.ds3-vip-loading {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.ds3-vip-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

/* 激活码 / 兑换小弹层 */
.ds3-vip-subpop {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ds3-vip-subpop.is-show {
  display: flex;
}
.ds3-vip-subpop-box {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.ds3-vip-subpop-box h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #333;
}
.ds3-vip-subpop-box .ds3-vip-field {
  margin-bottom: 10px;
}
.ds3-vip-subpop-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.ds3-vip-subpop-btns button {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ds3-vip-sub-cancel {
  background: #f0f0f0;
  color: #666;
}
.ds3-vip-sub-ok {
  background: #e8a85c;
  color: #fff;
}

/* 顶部入口按钮 */
.head .ds3-vip-entry a.content-center {
  color: #f2c994 !important;
}
.head .ds3-vip-entry a.content-center:hover {
  color: #ffd9a8 !important;
}
.head .ds3-vip-entry em {
  color: inherit;
}
.ds3-vip-entry-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8a85c, #f2c994);
  color: #3a2810 !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  margin-left: 2px;
}

/* 独立升级页嵌入 */
.ds3-vip-page-wrap {
  max-width: 560px;
  margin: 30px auto 40px;
  position: relative;
}
.ds3-vip-page-wrap .ds3-vip-modal {
  max-height: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 560px) {
  .ds3-vip-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ds3-vip-modal {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }
  .ds3-vip-benefit-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 4px;
  }
  .ds3-vip-hd-link span {
    display: none;
  }
  .ds3-vip-pay-list {
    grid-template-columns: 1fr;
  }
  .ds3-vip-plan-days {
    font-size: 20px;
  }
  .ds3-vip-plan-action {
    font-size: 18px;
  }
  .ds3-vip-plan-action.is-free {
    font-size: 15px;
  }
}

/* ========== VIP/SVIP 过期续费弹窗（0-30天） ========== */
.ds3-vexp-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ds3-vexp-overlay.is-show {
  opacity: 1;
  visibility: visible;
}
.ds3-vexp-wrap {
  position: relative;
  width: min(500px, 86vw);
}
.ds3-vexp-close {
  position: absolute;
  right: -40px;
  top: -70px;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.ds3-vexp-close:hover {
  background: #fff;
}
.ds3-vexp-card {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(180, 20, 40, 0.28);
  background: linear-gradient(180deg, #fff7f8 0%, #ffe4e8 28%, #ff6b7a 72%, #e50914 100%);
}
.ds3-vexp-card.is-art {
  background: transparent;
  box-shadow: none;
}
.ds3-vexp-art {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  pointer-events: none;
  user-select: none;
}
.ds3-vexp-card.is-art .ds3-vexp-art {
  position: relative;
  inset: auto;
  object-fit: contain;
}
.ds3-vexp-body {
  position: relative;
  z-index: 1;
  padding: 28px 22px 26px;
  text-align: center;
}
.ds3-vexp-card.is-art .ds3-vexp-body {
  position: absolute;
  inset: 0;
  padding: 0;
  display: block;
}
.ds3-vexp-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 10px;
  color: #6b2a2a;
  font-size: 15px;
  font-weight: 600;
}
.ds3-vexp-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.ds3-vexp-headline {
  margin: 0 0 18px;
  color: #e50914;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
}
.ds3-vexp-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #5a3a3a;
  font-size: 14px;
}
.ds3-vexp-status::before,
.ds3-vexp-status::after {
  content: "";
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: rgba(90, 58, 58, 0.35);
}
.ds3-vexp-cta {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7ecd8 100%);
  color: #e50914;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(120, 20, 30, 0.18);
}
.ds3-vexp-cta:hover {
  filter: brightness(1.03);
}
.ds3-vexp-card.is-art .ds3-vexp-brand,
.ds3-vexp-card.is-art .ds3-vexp-headline,
.ds3-vexp-card.is-art .ds3-vexp-status {
  display: none;
}
.ds3-vexp-card.is-art .ds3-vexp-cta {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7%;
  width: auto;
  height: 12%;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  font-size: 0;
}
@media (max-width: 420px) {
  .ds3-vexp-headline {
    font-size: 34px;
  }
  .ds3-vexp-close {
    right: 0;
    top: -40px;
  }
}
