/* EPD download/purchase modals (ported from Alright-child; scoped to epd-* classes) */

/* ERPHPDown download module layout (ported from Alright-child) */
fieldset#erphpdown.erphpdown,
fieldset#erphpdown.erphpdown-default{
  border:0 !important;
  padding:0 !important;
  background:transparent !important;
}
fieldset#erphpdown .erphpdown-child{
  border:0 !important;
  padding:0 !important;
  background:transparent !important;
}

.erphpdown-default .epd-multi-item{
  border:none;
  border-radius:16px;
  padding:0;
  margin:12px 0;
  background:#fff;
  box-shadow:0 5px 0px rgba(0,0,0,.06);
  overflow:hidden;
}
.erphpdown-default .epd-multi-list{
  margin:12px 0;
  padding:0;
  background:transparent;
  box-shadow:none;
  border-radius:0;
}
.erphpdown-default .epd-multi-list .epd-multi-item{
  margin:12px 0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 0px rgba(0,0,0,.06);
}
.erphpdown-default .epd-multi-list .epd-multi-item + .epd-multi-item{
  border-top:0;
}
.erphpdown-default .epd-multi-head{
  display:flex;
  align-items:flex-start;
  gap:24px;
  padding:1rem;
}
.erphpdown-default .epd-multi-item .epd-multi-head{
  align-items:start;
}
.erphpdown-default .epd-multi-info{
  flex:1 1 auto;
  min-width:0;
  align-self:stretch;
  display:flex;
  flex-direction:column;
}
.erphpdown-default .epd-multi-thumb{
  width:80px;
  height:103px;
  border-radius:4px;
  overflow:hidden;
  flex:0 0 auto;
  background:#f1f3f5;
  margin:0;
}
.erphpdown-default .epd-multi-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.erphpdown-default .epd-multi-title{
  font-weight:450;
  font-size:16px;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.erphpdown-default .epd-multi-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  /*gap:12px;*/
  flex-wrap:wrap;
  padding:0;
}

.erphpdown-default .epd-multi-title-row::after{ content:none; }

.erphpdown-default .epd-multi-title{
  order:1;
}

.erphpdown-default .epd-divider{
  height:1px;
  background:#ececec;
  margin-top:.5rem;
}
.erphpdown-default .epd-price-row{
  order:3;
  flex:0 0 100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  /*margin-top:.5rem;*/
  font-size:.875rem;
  line-height:1.4;
  color:#555;
}
.erphpdown-default .epd-price-text{
  color:#555;
  font-size:.875rem;
}
.erphpdown-default .epd-meta-toggle{
  display:none;
  margin-top:.5rem;
  padding:0;
  border:0;
  background:transparent;
  color:#999;
  font-size:.875rem;
  cursor:pointer;
}
.erphpdown-default .epd-meta-toggle:hover{
  color:#666;
}
.erphpdown-default .epd-meta-collapsible{
  display:block;
}
.erphpdown-default .epd-multi-meta{
  margin-top:0;
  padding-top:.5rem;
  font-size:.875rem;
  line-height:1.4;
  color:#555;
}
.erphpdown-default .epd-multi-head .alright-epd-multi-download{
  margin-left:0;
  align-self:start;
  flex:0 0 auto;
  white-space:nowrap;
}
.erphpdown-default .alright-epd-multi-download,
.erphpdown-default .alright-epd-single-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#000 !important;
  border:0 !important;
  color:#fff !important;
  text-decoration:none !important;
  box-shadow:none !important;
  gap:8px;
}
.erphpdown-default .alright-epd-multi-download:hover,
.erphpdown-default .alright-epd-single-download:hover{
  background:#111 !important;
  color:#fff !important;
}
.erphpdown-default .alright-epd-multi-download .iconfont,
.erphpdown-default .alright-epd-single-download .iconfont{
  font-size:16px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.erphpdown-default .epd-single-item .epd-multi-head{
  margin-bottom:0;
  align-items:start;
}
.erphpdown-default .epd-single-actions{
  margin-left:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
  align-self:start;
  order:2;
}
.erphpdown-default .uuriza-item-fav-btn{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.erphpdown-default .uuriza-item-fav-btn:hover{
  background:rgba(0,0,0,.04);
}
.erphpdown-default .uuriza-item-fav-btn .iconfont{
  font-size:18px;
  line-height:1;
}
.erphpdown-default .uuriza-item-fav-btn.is-active{
  color:#ff3e3e;
  border-color:rgba(255,62,62,.25);
  background:rgba(255,62,62,.08);
}
html.io-black-mode .erphpdown-default .uuriza-item-fav-btn,
body.io-black-mode .erphpdown-default .uuriza-item-fav-btn{
  background:#1f2022;
  border-color:rgba(255,255,255,.10);
  color:#fff;
}
html.io-black-mode .erphpdown-default .uuriza-item-fav-btn:hover,
body.io-black-mode .erphpdown-default .uuriza-item-fav-btn:hover{
  background:rgba(255,255,255,.06);
}
html.io-black-mode .erphpdown-default .uuriza-item-fav-btn.is-active,
body.io-black-mode .erphpdown-default .uuriza-item-fav-btn.is-active{
  color:#ff3e3e;
  border-color:rgba(255,62,62,.25);
  background:rgba(255,62,62,.12);
}
.erphpdown-default .epd-single-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 18px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}
.erphpdown-default .epd-single-actions .btn.btn-sm{
  font-size:14px;
  padding:0 18px;
}
.erphpdown-default .alright-epd-single-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:12px;
}
.erphpdown-default .epd-single-row{
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:4px;
  font-size:.875rem;
  line-height:1.6;
  color:rgba(0,0,0,.68);
}
.erphpdown-default .epd-single-row:first-child{
  margin-top:0;
}
.erphpdown-default .epd-single-row--attrs{
  color:rgba(0,0,0,.58);
}
.erphpdown-default .epd-price-label{
  color:rgba(0,0,0,.55);
}
.erphpdown-default .epd-price-label + .epd-pan,
.erphpdown-default .epd-price-label + .epd-pan-text{
  margin-left:6px;
}
.erphpdown-default .epd-attrs-sep{
  display:none;
}
.erphpdown-default .epd-status{
  display:inline-flex;
  align-items:center;
  height:18px;
  padding:0 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  border:none;
  background:rgba(0,0,0,.06);
  color:rgba(0,0,0,.70);
}
.erphpdown-default .epd-status--paid{
  background:rgba(34,197,94,.10);
  color:#15803d;
}
.erphpdown-default .epd-status--vipfree{
  background:rgba(59,130,246,.10);
  color:#1d4ed8;
}
.erphpdown-default .epd-status--vip,
.erphpdown-default .epd-status--needvip{
  background:rgba(124,58,237,.10);
  color:#6d28d9;
}
.erphpdown-default .epd-status--needbuy{
  background:rgba(245,158,11,.12);
  color:#b45309;
}
.erphpdown-default .epd-status--needlogin{
  background:rgba(0,0,0,.06);
  color:rgba(0,0,0,.62);
}
.erphpdown-default .epd-pan{
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  background:rgba(0,0,0,.06);
  border:none;
  color:rgba(0,0,0,.62);
}

/* Dark mode: ERPHPDown list */
html.io-black-mode .erphpdown-default .epd-multi-item,
body.io-black-mode .erphpdown-default .epd-multi-item,
html.io-black-mode .erphpdown-default .epd-multi-list .epd-multi-item,
body.io-black-mode .erphpdown-default .epd-multi-list .epd-multi-item{
  background:#2d2e2f;
  box-shadow:0 5px 0px rgba(0,0,0,.35);
}
html.io-black-mode .erphpdown-default .epd-multi-thumb,
body.io-black-mode .erphpdown-default .epd-multi-thumb{
  background:rgba(255,255,255,.08);
}
html.io-black-mode .erphpdown-default .epd-multi-title,
body.io-black-mode .erphpdown-default .epd-multi-title{
  color:rgba(255,255,255,.92);
}
html.io-black-mode .erphpdown-default .epd-divider,
body.io-black-mode .erphpdown-default .epd-divider{
  background:rgba(255,255,255,.12);
}
html.io-black-mode .erphpdown-default .epd-price-row,
html.io-black-mode .erphpdown-default .epd-price-text,
html.io-black-mode .erphpdown-default .epd-multi-meta,
html.io-black-mode .erphpdown-default .epd-single-row,
html.io-black-mode .erphpdown-default .epd-single-row--attrs,
body.io-black-mode .erphpdown-default .epd-price-row,
body.io-black-mode .erphpdown-default .epd-price-text,
body.io-black-mode .erphpdown-default .epd-multi-meta,
body.io-black-mode .erphpdown-default .epd-single-row,
body.io-black-mode .erphpdown-default .epd-single-row--attrs{
  color:rgba(255,255,255,.72);
}
html.io-black-mode .erphpdown-default .epd-price-label,
body.io-black-mode .erphpdown-default .epd-price-label{
  color:rgba(255,255,255,.62);
}
html.io-black-mode .erphpdown-default .epd-status,
body.io-black-mode .erphpdown-default .epd-status{
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.80);
}
html.io-black-mode .erphpdown-default .epd-status--needlogin,
body.io-black-mode .erphpdown-default .epd-status--needlogin{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.70);
}
html.io-black-mode .erphpdown-default .epd-pan,
body.io-black-mode .erphpdown-default .epd-pan{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:rgba(255,255,255,.78);
}
html.io-black-mode .erphpdown-default .epd-pan-text,
body.io-black-mode .erphpdown-default .epd-pan-text{
  color:rgba(255,255,255,.62);
}
.erphpdown-default .epd-pan + .epd-pan{
  margin-left:6px;
}
.erphpdown-default .epd-pan-text{
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 4px 0 0;
  font-size:12px;
  font-weight:600;
  line-height:1;
  color:rgba(0,0,0,.50);
}

/* No-thumb layout */
.erphpdown-default .epd-no-thumb .epd-multi-thumb{ display:none; }

.erphpdown-default .epd-multi-title::after{
  content:none;
  display:none;
}

@media (min-width: 768px){
  .erphpdown-default .epd-multi-head{
    padding:1rem;
  }
}

.erphpdown-default .epd-multi-item.is-meta-open .epd-meta-toggle{
  color:#666;
}

.erphpdown-default .epd-multi-item.is-meta-open .epd-meta-row{
  flex-wrap:wrap;
  overflow:visible;
}

@media (max-width: 767.98px){
  .erphpdown-default .epd-price-row{
    order:2;
  }

  .erphpdown-default .epd-single-actions{
    order:3;
    width:100%;
    justify-content:stretch;
    margin-top:.5rem;
  }

  .erphpdown-default .epd-single-actions .btn{
    width:100%;
  }

  .erphpdown-default .epd-meta-toggle{
    display:inline-flex;
    align-items:center;
  }

  .erphpdown-default .epd-meta-collapsible{
    display:none;
  }

  .erphpdown-default .epd-multi-item.is-meta-open .epd-meta-collapsible{
    display:block;
  }
}

.erphpdown-default .epd-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.erphpdown-default .epd-meta-item{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  margin-right:1.5rem;
}
.erphpdown-default .epd-meta-label{
  color:#999;
  font-size:.875rem;
}
.erphpdown-default .epd-meta-value{
  font-size:.875rem;
  color:inherit;
}

.erphpdown-default .epd-meta-item--methods .epd-meta-value{
  display:inline-flex;
  flex-wrap:wrap;
  gap:6px;
}

/* Download method pills */
.erphpdown-default .epd-pan{
  height:auto;
  padding:3px 10px;
  font-size:.875rem;
  background:#f5f5f5;
  border:1px solid #ececec;
  color:#666;
}
.erphpdown-default .epd-pan + .epd-pan{
  margin-left:6px;
}

.epd-modal-mask{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.55);
  z-index:9999;
}

.epd-modal-mask.show{
  display:flex;
}

.epd-modal{
  position:relative;
  width:100%;
  max-width:420px;
  border-radius:18px;
  background:radial-gradient(92.81% 48.44% at -24.53% -16.02%, #e4fcff 0%, rgba(255,255,255,0) 100%),
    radial-gradient(75.78% 68.16% at 56.74% -24.02%, #fcffda 0%, rgba(255,255,255,0) 100%),
    radial-gradient(160.86% 46.39% at 177.14% -15.62%, #ffc8c8 9.06%, rgba(255,255,255,0) 100%),
    #f0f7f9;
  box-shadow:0 24px 80px rgba(0,0,0,.30);
  padding:16px;
}

html.io-black-mode .epd-modal,
body.io-black-mode .epd-modal{
  background:
    radial-gradient(92.81% 48.44% at -24.53% -16.02%, rgba(56, 189, 248, .14) 0%, rgba(45,46,47,0) 100%),
    radial-gradient(75.78% 68.16% at 56.74% -24.02%, rgba(250, 204, 21, .10) 0%, rgba(45,46,47,0) 100%),
    radial-gradient(160.86% 46.39% at 177.14% -15.62%, rgba(244, 63, 94, .12) 9.06%, rgba(45,46,47,0) 100%),
    #2d2e2f;
  box-shadow:0 24px 80px rgba(0,0,0,.65);
}

.epd-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.70);
  color:rgba(0,0,0,.65);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.epd-download-sheet-thumb{
  width:88px;
  height:112px;
  border-radius:4px;
  overflow:hidden;
  margin:-74px auto 10px;
  background:#f1f3f5;
}
.epd-download-sheet-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.epd-download-sheet-title{
  font-weight:900;
  font-size:20px;
  text-align:center;
  margin:0 0 12px;
  color:#111;
  padding:0 32px;
  word-break:break-word;
}
.epd-download-sheet-title-tip{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:-6px 0 10px;
}
.epd-download-sheet-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:12px;
  border:0px solid rgba(0,0,0,.06);
  background:#fff;
  margin-top:12px;
  box-shadow:0 0 10px #ebf2f8;
}
.epd-download-sheet-item--baidu{
  background:rgba(79,203,251,.16);
  border-color:rgba(79,203,251,.24);
}
.epd-download-sheet-item--kuake{
  background:rgba(12,83,251,.12);
  border-color:rgba(12,83,251,.20);
}
.epd-download-sheet-item--baidu .epd-download-sheet-item-name,
.epd-download-sheet-item--kuake .epd-download-sheet-item-name{
  display:flex;
  align-items:center;
  gap:10px;
}
.epd-download-sheet-item--baidu .epd-download-sheet-item-name::before{
  content:"";
  width:28px;
  height:28px;
  flex:0 0 auto;
  background:url("../img/baidupan.png") center/contain no-repeat;
}
.epd-download-sheet-item--kuake .epd-download-sheet-item-name::before{
  content:"";
  width:28px;
  height:28px;
  flex:0 0 auto;
  background:url("../img/kuakepan.png") center/contain no-repeat;
}
.epd-download-sheet-item-name{
  font-weight:800;
  font-size:16px;
  color:#111;
}
.epd-download-sheet-item-code{
  margin-top:6px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  color:rgba(0,0,0,.56);
}
.epd-download-sheet-item-code-value{
  color:rgba(0,0,0,.72);
}
.epd-download-sheet-item-code-copy{
  appearance:none;
  border:0;
  background:rgba(0,0,0,.04);
  color:rgba(0,0,0,.72);
  padding:4px 10px;
  border-radius:999px;
  cursor:pointer;
  line-height:1.2;
  font-size:12px;
}
.epd-download-sheet-item-code-copy:hover{
  background:rgba(0,0,0,.06);
}

html.io-black-mode .epd-download-sheet-item,
body.io-black-mode .epd-download-sheet-item{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: none;
}
html.io-black-mode .epd-download-sheet-item--baidu,
body.io-black-mode .epd-download-sheet-item--baidu{
  background:linear-gradient(0deg, rgba(79,203,251,.12), rgba(79,203,251,.12)), #2d2e2f;
  border-color:rgba(79,203,251,.22);
}
html.io-black-mode .epd-download-sheet-item--kuake,
body.io-black-mode .epd-download-sheet-item--kuake{
  background:linear-gradient(0deg, rgba(12,83,251,.12), rgba(12,83,251,.12)), #2d2e2f;
  border-color:rgba(12,83,251,.22);
}
html.io-black-mode .epd-download-sheet-item-code,
body.io-black-mode .epd-download-sheet-item-code{
  color:rgba(255,255,255,.66);
}
html.io-black-mode .epd-download-sheet-item-code-value,
body.io-black-mode .epd-download-sheet-item-code-value{
  color:rgba(255,255,255,.86);
}
html.io-black-mode .epd-download-sheet-item-code-copy,
body.io-black-mode .epd-download-sheet-item-code-copy{
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.86);
}
html.io-black-mode .epd-download-sheet-item-code-copy:hover,
body.io-black-mode .epd-download-sheet-item-code-copy:hover{
  background:rgba(255,255,255,.14);
}
.epd-download-sheet-alert{
  margin:-4px 0 10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,59,48,.10);
  border:1px solid rgba(255,59,48,.18);
  color:rgba(0,0,0,.72);
  font-size:13px;
  line-height:1.35;
  text-align:center;
}

html.io-black-mode .epd-download-sheet-alert,
body.io-black-mode .epd-download-sheet-alert{
  background:rgba(255,59,48,.16);
  border-color:rgba(255,59,48,.26);
  color:rgba(255,255,255,.86);
}

.epd-download-sheet-tip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  color:rgba(0,0,0,.72);
  font-size:13px;
  line-height:1.2;
}
html.io-black-mode .epd-download-sheet-tip,
body.io-black-mode .epd-download-sheet-tip{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
}

.epd-download-sheet-item-right .btn,
.epd-download-sheet-item-right button{
  border-radius:10px;
}
.epd-download-sheet-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#000 !important;
  border:0 !important;
  color:#fff !important;
  padding:10px 9px !important;
  font-weight:800;
}
.epd-download-sheet-action:hover{
  background:#111 !important;
}
.epd-download-sheet-action .iconfont{
  font-size:16px;
  line-height:1;
}

.epd-download-sheet-help{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.epd-download-sheet-policy{
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
}
.epd-download-sheet-policy-title{
  font-size:14px;
  font-weight:900;
  color:rgba(0,0,0,.85);
  margin:0 0 8px;
}
.epd-download-sheet-policy-body{
  color:rgba(0,0,0,.68);
  font-size:13px;
  line-height:1.45;
}
.epd-download-sheet-policy-body p{
  margin:0 0 6px;
}
.epd-download-sheet-policy-body p:last-child{
  margin-bottom:0;
}
.epd-download-sheet-policy-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  color:#147bfb;
}
.epd-download-sheet-policy-link:hover{
  text-decoration:underline;
  color:#0f63c8;
}
.epd-download-sheet-help-link{
  display:inline-flex;
  align-items:center;
  font-size:14px;
  font-weight:700;
  color:rgba(0,0,0,.68);
  text-decoration:none;
}
.epd-download-sheet-help-link:hover{
  color:rgba(0,0,0,.85);
  text-decoration:underline;
}
.epd-download-sheet-help-link .iconfont{
  font-size:16px;
  line-height:1;
}
 .epd-download-sheet-help .iconfont{
  font-size:16px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(0,0,0,.68);
}
html.io-black-mode .epd-download-sheet-policy,
body.io-black-mode .epd-download-sheet-policy{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}
html.io-black-mode .epd-download-sheet-policy-title,
body.io-black-mode .epd-download-sheet-policy-title{
  color:rgba(255,255,255,.90);
}
html.io-black-mode .epd-download-sheet-policy-body,
body.io-black-mode .epd-download-sheet-policy-body{
  color:rgba(255,255,255,.74);
}
html.io-black-mode .epd-download-sheet-policy-link,
body.io-black-mode .epd-download-sheet-policy-link{
  color:rgba(79,203,251,.92);
}
html.io-black-mode .epd-download-sheet-policy-link:hover,
body.io-black-mode .epd-download-sheet-policy-link:hover{
  color:rgba(79,203,251,1);
}
html.io-black-mode .epd-download-sheet-help-link,
body.io-black-mode .epd-download-sheet-help-link{
  color:rgba(255,255,255,.72);
}
html.io-black-mode .epd-download-sheet-help .iconfont,
body.io-black-mode .epd-download-sheet-help .iconfont{
  color:rgba(255,255,255,.72);
}
html.io-black-mode .epd-download-sheet-help-link:hover,
body.io-black-mode .epd-download-sheet-help-link:hover{
  color:rgba(255,255,255,.90);
}

/* Purchase modal basics (kept minimal; JS renders inner UI) */
.epd-purchase-title{
  font-weight:900;
  font-size:18px;
  text-align:center;
  margin:16px 0 12px;
  color:#111;
}
.epd-purchase-note{
  margin:-6px 0 6px;
  padding:0 18px;
  text-align:center;
  color:rgba(0,0,0,.3);
  font-size:12px;
  line-height:1.35;
}
html.io-black-mode .epd-purchase-note,
body.io-black-mode .epd-purchase-note{
  color:rgba(255,255,255,.66);
}

html.io-black-mode .epd-download-sheet-title,
body.io-black-mode .epd-download-sheet-title,
html.io-black-mode .epd-download-sheet-item-name,
body.io-black-mode .epd-download-sheet-item-name,
html.io-black-mode .epd-purchase-title,
body.io-black-mode .epd-purchase-title{
  color:rgba(255,255,255,.92);
}
.epd-purchase-cover{
  width:96px;
  height:128px;
  border-radius:10px;
  overflow:hidden;
  margin:8px auto 12px;
  background:#f1f3f5;
  box-shadow:0 12px 40px rgba(0,0,0,.10);
}
.epd-purchase-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.epd-purchase-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  margin:0 0 1.2rem;
}
.epd-purchase-amount{
  font-weight:900;
  color:#ff3b30;
}
.epd-purchase-pay-method-group{
  margin:0 0 1.2rem;
}
.epd-purchase-pay-method-group{
  display:flex;
  gap:10px;
}
.epd-purchase-pay-method-group .epd-pay-method{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:12px;
  padding:10px 10px;
  font-weight:800;
  cursor:pointer;
  color:#fff;
  transition:opacity .16s ease, filter .16s ease, transform .16s ease;
}
.epd-purchase-pay-method-group .epd-pay-method:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.epd-purchase-pay-method-group .epd-pay-method:not(.active){
  opacity:.72;
  filter:saturate(.75);
}
.epd-purchase-pay-method-group .epd-pay-method.active{
  opacity:1;
  filter:none;
}
.epd-purchase-pay-method-group .epd-pay-method:active{
  transform:translateY(1px);
}
.epd-purchase-pay-method-group .epd-pay-method--balance{
  background:#6b7280;
}
.epd-purchase-pay-method-group .epd-pay-method--alipay{
  background:#147bfb;
}
.epd-purchase-pay-method-group .epd-pay-method--wechat{
  background:#04d167;
}

/* Pay pending modal (third-party redirect flow) */
.epd-pay-pending-modal{
  width:min(450px, 100%);
  max-width:450px;
}
.epd-pay-pending-desc{
  color:rgba(0,0,0,.62);
  font-size:14px;
  line-height:1.6;
  margin:6px 0 14px;
}
.epd-pay-pending-actions{
  display:flex;
  gap:10px;
}
.epd-pay-pending-done-btn{
  flex:1;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  background:#0d6efd;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.epd-pay-pending-later-btn{
  flex:1;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.6);
  color:rgba(0,0,0,.75);
  font-weight:800;
  cursor:pointer;
}
html.io-black-mode .epd-pay-pending-desc,
body.io-black-mode .epd-pay-pending-desc{
  color:rgba(255,255,255,.72);
}
html.io-black-mode .epd-pay-pending-later-btn,
body.io-black-mode .epd-pay-pending-later-btn{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.86);
}
.epd-purchase-submit-pay-btn{
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  background:#0d6efd;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.epd-purchase-guest-tip{
  margin-top:12px;
  text-align:center;
  font-size:13px;
  line-height:1.45;
  color:rgba(0,0,0,.3);
}
.epd-purchase-guest-tip-line1{
  margin:0 auto 6px;
  max-width:420px;
}
.epd-purchase-guest-tip-line2{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.epd-purchase-guest-tip-line2 a{
  color:rgba(0,0,0,.85);
  text-decoration:none;
  font-weight:700;
}
.epd-purchase-guest-tip-line2 a:hover{
  text-decoration:underline;
}
.epd-guest-tip-sep{
  color:rgba(0,0,0,.45);
}
.epd-purchase-help{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  color:rgba(0,0,0,.60);
}
.epd-purchase-help .iconfont{
  font-size:16px;
  line-height:1;
  color:rgba(0,0,0,.60);
}
.epd-purchase-help-link{
  color:rgba(0,0,0,.70);
  text-decoration:none;
  font-weight:700;
}
.epd-purchase-help-link:hover{
  color:rgba(0,0,0,.85);
  text-decoration:underline;
}
html.io-black-mode .epd-purchase-help,
body.io-black-mode .epd-purchase-help{
  color:rgba(255,255,255,.70);
}
html.io-black-mode .epd-purchase-help .iconfont,
body.io-black-mode .epd-purchase-help .iconfont{
  color:rgba(255,255,255,.70);
}
html.io-black-mode .epd-purchase-help-link,
body.io-black-mode .epd-purchase-help-link{
  color:rgba(255,255,255,.82);
}
html.io-black-mode .epd-purchase-help-link:hover,
body.io-black-mode .epd-purchase-help-link:hover{
  color:rgba(255,255,255,.92);
}
html.io-black-mode .epd-purchase-guest-tip,
body.io-black-mode .epd-purchase-guest-tip{
  color:rgba(255,255,255,.68);
}
html.io-black-mode .epd-purchase-guest-tip-line2 a,
body.io-black-mode .epd-purchase-guest-tip-line2 a{
  color:rgba(255,255,255,.90);
}
html.io-black-mode .epd-guest-tip-sep,
body.io-black-mode .epd-guest-tip-sep{
  color:rgba(255,255,255,.45);
}

/* Purchase/Pay success scroll highlight (ported) */
.epd-scroll-highlight{
  outline:2px solid rgba(13,110,253,.28);
  box-shadow:0 0 0 6px rgba(13,110,253,.10);
  border-radius:14px;
  animation:epdScrollPulse 2.2s ease-out 1;
}
@keyframes epdScrollPulse{
  0%{ box-shadow:0 0 0 0 rgba(13,110,253,.22); }
  60%{ box-shadow:0 0 0 10px rgba(13,110,253,.10); }
  100%{ box-shadow:0 0 0 6px rgba(13,110,253,0); }
}

.epd-balance-actions{
  display:flex;
  gap:10px;
}
.epd-go-recharge-btn{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:12px 14px;
  text-decoration:none;
  background:#0d6efd;
  color:#fff;
  font-weight:800;
}
.epd-back-to-purchase-btn{
  flex:1;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.6);
  color:rgba(0,0,0,.75);
  font-weight:800;
  cursor:pointer;
}

.epd-payframe-modal{
  width:min(920px, 100%);
  max-width:920px;
  padding:0;
  overflow:hidden;
}
.epd-payframe-iframe{
  display:block;
  width:100%;
  height:min(72vh, 720px);
  border:0;
  background:#fff;
}

/* Cart (phase 1): show "加入购物车" next to buy button */
.uuriza-cart-buy-wrap{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.uuriza-cart-buy-wrap .uuriza-cart-add{
  white-space:nowrap;
  border-radius:999px;
}
@media (max-width: 520px){
  .uuriza-cart-buy-wrap{
    width:100%;
    justify-content:flex-end;
    gap:8px;
  }
}
