/* Harmony Hues - 付费下载 & 会员系统样式 */

/* 付费锁定面板 */
.pay-lock-box {
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F1FBFA 0%, #fff 60%);
  border: 1px solid #BFEAE2;
  text-align: center;
}
.pay-lock-price {
  font-size: 26px;
  font-weight: 700;
  color: #3b6ff5;
  margin-bottom: 8px;
}
.pay-lock-tip {
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 14px;
  line-height: 1.6;
}
.pay-lock-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pay-unlock-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.pay-code-input {
  flex: 1;
  max-width: 280px;
  padding: 9px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.pay-code-input:focus {
  border-color: #3b6ff5;
}
.pay-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .2s, transform .2s;
}
.pay-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}
.pay-btn-primary {
  background: #3b6ff5;
  color: #fff;
}
.pay-btn-vip {
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
  color: #ffffff;
  font-weight: 600;
}
.pay-lock-help {
  margin-top: 12px;
  font-size: 12px;
  color: #b0b0b0;
}

/* 全局 toast */
.pay-toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 99999;
  max-width: 80vw;
  word-break: break-all;
}
.pay-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pay-toast-ok {
  background: rgba(24, 160, 88, .95);
}
.pay-toast-err {
  background: rgba(220, 60, 60, .95);
}

/* ==========================================================================
 * 资源下载遮罩（付费 / 加密）
 * 结构原则：封面（cover）处于正常文档流、由内容自然撑高；
 * 骨架屏为绝对定位背景层，高度永远跟随封面，杜绝裁切与溢出。
 * ========================================================================== */
.hh-dl-box {
  position: relative;
}

.hh-dl-lock,
.hh-dl-lock * {
  box-sizing: border-box;
}

.hh-dl-lock {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #CDEEE8;
  background: linear-gradient(135deg, #F4FCFB 0%, #ffffff 62%);
}

/* 模糊占位背景层：只体现下载源数量，不含任何真实链接 */
.hh-dl-lock-body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 12px;
  filter: blur(6px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.hh-dl-skeleton {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.hh-dl-skeleton:first-child {
  margin-top: 0;
}

.hh-dl-skeleton:last-child {
  margin-bottom: 0;
}

.hh-dl-skel-btn {
  flex: 1 1 auto;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f1f1, #e3e3e3);
}

.hh-dl-skel-tag {
  flex: 0 0 84px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e9e9e9, #dcdcdc);
}

/* 锁定封面：正常文档流，决定遮罩卡高度 */
.hh-dl-lock-cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, .72);
}

.hh-dl-cover-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
  box-shadow: 0 4px 12px rgba(59, 111, 245, .28);
}

.hh-dl-cover-ico svg {
  width: 22px;
  height: 22px;
}

.hh-dl-cover-badge {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}

.hh-dl-cover-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a8a8a;
}

.hh-dl-open-btn {
  margin: 4px 0 0;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
  box-shadow: 0 4px 12px rgba(59, 111, 245, .26);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}

.hh-dl-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 111, 245, .34);
}

.hh-dl-open-btn:active {
  transform: translateY(0);
}

.hh-dl-cover-foot {
  font-size: 11.5px;
  color: #b2b2b2;
}

/* 解锁成功后回落为普通下载容器 */
.hh-dl-box.hh-dl-unlocked .hh-dl-lock {
  display: none;
}

/* ==========================================================================
 * 解锁弹窗
 * ========================================================================== */
.hh-dl-modal {
  position: fixed;
  z-index: 99998;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hh-dl-modal.is-open {
  display: flex;
}

.hh-dl-modal-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .45);
  animation: hhDlFade .2s ease;
}

.hh-dl-modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  animation: hhDlPop .24s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes hhDlFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hhDlPop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hh-dl-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  line-height: 1;
  font-size: 20px;
  color: #9a9a9a;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hh-dl-modal-close:hover {
  color: #3b6ff5;
}

.hh-dl-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hh-dl-modal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
}

.hh-dl-modal-headText {
  display: flex;
  flex-direction: column;
}

.hh-dl-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.hh-dl-modal-sub {
  font-size: 12px;
  color: #909090;
}

.hh-dl-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #f4f5f7;
}

.hh-dl-tab {
  flex: 1 1 0;
  padding: 7px 0;
  font-size: 13px;
  color: #666;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s;
}

.hh-dl-tab.is-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
}

.hh-dl-pane[hidden] {
  display: none;
}

.hh-dl-price-box {
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(135deg, #F1FBFA 0%, #fff 70%);
  border: 1px solid #CDEEE8;
}

.hh-dl-price-main {
  font-size: 28px;
  font-weight: 800;
  color: #3b6ff5;
  line-height: 1.2;
}

.hh-dl-price-main em {
  margin-left: 4px;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: #a0a0a0;
}

.hh-dl-price-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #8a8a8a;
}

.hh-dl-price-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hh-dl-price-list li {
  flex: 1 1 45%;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #666;
  border-radius: 8px;
  background: #f7f8fa;
}

.hh-dl-price-list li.is-current {
  color: #3b6ff5;
  font-weight: 600;
  background: #EAFAF8;
}

.hh-dl-price-list b {
  float: right;
  font-weight: 700;
}

.hh-dl-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #909090;
}

.hh-dl-qr-box {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.hh-dl-qr-box img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
}

.hh-dl-qr-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.hh-dl-qr-note {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8a8a8a;
  text-align: center;
}

.hh-dl-remark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f8fa;
}

.hh-dl-remark code {
  font-size: 12.5px;
  color: #555;
  word-break: break-all;
}

.hh-dl-link {
  flex: 0 0 auto;
  padding: 0;
  font-size: 12.5px;
  color: #3b6ff5;
  background: none;
  border: none;
  cursor: pointer;
}

.hh-dl-pwd {
  margin-top: 14px;
}

.hh-dl-pwd[hidden] {
  display: none;
}

.hh-dl-pwd-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.hh-dl-pwd-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.hh-dl-pwd-input:focus {
  border-color: #3b6ff5;
  box-shadow: 0 0 0 3px rgba(59, 111, 245, .12);
}

.hh-dl-msg {
  display: none;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 8px;
}

.hh-dl-msg.is-show {
  display: block;
}

.hh-dl-msg.is-err {
  color: #c0392b;
  background: #fdecea;
}

.hh-dl-msg.is-ok {
  color: #2f59c4;
  background: #eaf1fe;
}

.hh-dl-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.hh-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s, opacity .18s, box-shadow .18s;
}

.hh-dl-btn[hidden] {
  display: none;
}

.hh-dl-btn:hover {
  transform: translateY(-1px);
}

.hh-dl-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.hh-dl-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
  box-shadow: 0 6px 16px rgba(59, 111, 245, .26);
}

.hh-dl-btn-ghost {
  color: #3b6ff5;
  background: #eaf1fe;
  border: 1px solid #a8c4fb;
}

.hh-dl-btn-member {
  color: #ffffff;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
}

@media (max-width: 480px) {
  .hh-dl-modal-panel {
    max-width: 100%;
    padding: 20px 16px 16px;
  }
}

/* 深色模式适配 */
html[data-theme="dark"] .hh-dl-lock {
  background: linear-gradient(135deg, #1c3431 0%, #1e1e1e 62%);
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-lock-cover {
  background: rgba(30, 30, 30, .72);
}
html[data-theme="dark"] .hh-dl-skel-btn,
html[data-theme="dark"] .hh-dl-skel-tag {
  background: linear-gradient(90deg, #333, #3d3d3d);
}
html[data-theme="dark"] .hh-dl-cover-badge {
  color: #e5e5e5;
}
html[data-theme="dark"] .hh-dl-cover-desc,
html[data-theme="dark"] .hh-dl-price-sub,
html[data-theme="dark"] .hh-dl-hint {
  color: #8a8a8a;
}
html[data-theme="dark"] .hh-dl-modal-panel {
  background: #1e1f26;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .hh-dl-modal-title {
  color: #e5e5e5;
}
html[data-theme="dark"] .hh-dl-tabs {
  background: #2a2b33;
}
html[data-theme="dark"] .hh-dl-tab {
  color: #a5a7b2;
}
html[data-theme="dark"] .hh-dl-price-box {
  background: linear-gradient(135deg, #1c3431 0%, #22232a 70%);
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-price-list li {
  color: #a5a7b2;
  background: #26272f;
}
html[data-theme="dark"] .hh-dl-price-list li.is-current {
  color: #5b88f7;
  background: #223632;
}
html[data-theme="dark"] .hh-dl-pwd-input {
  color: #ddd;
  background: #26272f;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-pwd-label {
  color: #cfd0d6;
}
html[data-theme="dark"] .hh-dl-remark {
  background: #26272f;
}
html[data-theme="dark"] .hh-dl-remark code {
  color: #b9bac2;
}
html[data-theme="dark"] .hh-dl-qr-name {
  color: #e5e5e5;
}
html[data-theme="dark"] .hh-dl-btn-ghost {
  background: #223632;
  border-color: #2f4a45;
}

/* ==========================================================================
 * 现金支付弹窗：邮箱 / 支付方式 / 支付中 / 完成
 * ========================================================================== */
.hh-dl-stage,
.hh-dl-stage * {
  box-sizing: border-box;
}

.hh-dl-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 12px 0 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F4FCFB 0%, #ffffff 70%);
  border: 1px solid #CDEEE8;
}
.hh-dl-summary-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: #7a7a7a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hh-dl-summary-price {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: #3b6ff5;
}

.hh-dl-stage[hidden] {
  display: none;
}

.hh-dl-field {
  margin: 12px 0;
}
.hh-dl-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.hh-dl-label em {
  color: #3b6ff5;
  font-style: normal;
}
.hh-dl-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  transition: border-color .18s, box-shadow .18s;
}
.hh-dl-input:hover {
  border-color: #b8bec9;
}
.hh-dl-input:focus {
  outline: 0;
  border-color: #5b88f7;
  box-shadow: 0 0 0 3px rgba(59, 111, 245, .14);
}
.hh-dl-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9a9a9a;
}

.hh-dl-gate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hh-dl-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #e3e5ea;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.hh-dl-gate b {
  font-size: 14px;
  color: #333;
}
.hh-dl-gate span {
  font-size: 12px;
  color: #9a9a9a;
}
.hh-dl-gate:hover {
  border-color: #7ba2f9;
}
.hh-dl-gate.is-active {
  border-color: #3b6ff5;
  background: #EAFAF8;
  box-shadow: 0 2px 10px rgba(59, 111, 245, .14);
}
.hh-dl-gate.is-active b {
  color: #3b6ff5;
}

.hh-dl-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hh-dl-channel {
  padding: 7px 14px;
  font-size: 13px;
  color: #555;
  background: #f6f7f9;
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
}
.hh-dl-channel:hover {
  background: #EAFAF8;
}
.hh-dl-channel.is-active {
  color: #3b6ff5;
  background: #EAFAF8;
  border-color: #5b88f7;
  font-weight: 600;
}

.hh-dl-order-box {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafbfc;
  border: 1px dashed #e2e4e8;
}
.hh-dl-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8a8f99;
  padding: 3px 0;
}
.hh-dl-order-row b {
  color: #333;
  font-weight: 600;
  word-break: break-all;
  text-align: right;
}
.hh-dl-money {
  color: #3b6ff5 !important;
  font-size: 16px !important;
}

.hh-dl-qr-empty {
  padding: 26px 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
  color: #9a9a9a;
  background: #fff;
  border: 1px dashed #dcdfe6;
  border-radius: 10px;
}

.hh-dl-pay-tip {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #7a7a7a;
  background: #f7f8fa;
  border-radius: 8px;
}

.hh-dl-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #8a8f99;
}
.hh-dl-status[hidden] {
  display: none;
}
.hh-dl-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #e3e5ea;
  border-top-color: #3b6ff5;
  border-radius: 50%;
  animation: hh-dl-spin .8s linear infinite;
}
@keyframes hh-dl-spin {
  to { transform: rotate(360deg); }
}

.hh-dl-done-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 18px auto 10px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #5b88f7, #3b6ff5);
  box-shadow: 0 6px 18px rgba(59, 111, 245, .28);
}
.hh-dl-done-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #333;
}
.hh-dl-done-desc {
  margin: 8px auto 0;
  max-width: 90%;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #8a8f99;
}

@media (max-width: 480px) {
  .hh-dl-summary { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hh-dl-summary-title { white-space: normal; }
  .hh-dl-gate { flex-direction: column; align-items: flex-start; gap: 2px; }
}

html[data-theme="dark"] .hh-dl-summary {
  background: linear-gradient(135deg, #1c3431 0%, #22232a 70%);
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-summary-title,
html[data-theme="dark"] .hh-dl-label {
  color: #cfd0d6;
}
html[data-theme="dark"] .hh-dl-input {
  color: #ddd;
  background: #26272f;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-gate {
  background: #26272f;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-gate b {
  color: #e5e5e5;
}
html[data-theme="dark"] .hh-dl-gate.is-active {
  background: #223632;
}
html[data-theme="dark"] .hh-dl-channel {
  color: #a5a7b2;
  background: #2a2b33;
}
html[data-theme="dark"] .hh-dl-channel.is-active {
  color: #5b88f7;
  background: #223632;
}
html[data-theme="dark"] .hh-dl-order-box {
  background: #26272f;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .hh-dl-order-row b {
  color: #e5e5e5;
}
html[data-theme="dark"] .hh-dl-pay-tip {
  background: #26272f;
  color: #a5a7b2;
}
html[data-theme="dark"] .hh-dl-status {
  color: #a5a7b2;
}
html[data-theme="dark"] .hh-dl-done-title {
  color: #e5e5e5;
}

/* 会员中心页面 */
.pay-member-page {
  max-width: 720px;
  margin: 0 auto;
}
.pay-member-card {
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden;
}
.pay-member-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #5b88f7 0%, #3b6ff5 100%);
}
.pay-member-title {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.pay-member-body {
  padding: 22px;
}
.pay-status-box {
  padding: 18px;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #eee;
}
.pay-status-vip {
  background: linear-gradient(135deg, #EAFAF8 0%, #fff 70%);
  border-color: #7ba2f9;
}
.pay-status-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.pay-status-value {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}
.pay-status-vip .pay-status-value {
  color: #2f59c4;
}
.pay-status-expire {
  margin-top: 6px;
  font-size: 13px;
  color: #8a8a8a;
}
.pay-plans-title,
.pay-redeem-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.pay-plans-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.pay-plan-item {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eee;
  text-align: center;
}
.pay-plan-forever {
  border-color: #7ba2f9;
  background: #fffdf5;
}
.pay-plan-name {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.pay-plan-price {
  font-size: 18px;
  font-weight: 700;
  color: #3b6ff5;
}
.pay-plans-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #b0b0b0;
}
.pay-redeem-box,
.pay-purchased-box {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #eee;
}
.pay-redeem-msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
}
.pay-msg-ok {
  color: #2f59c4;
}
.pay-msg-err {
  color: #dc3c3c;
}
.pay-purchased-empty {
  font-size: 13px;
  color: #b0b0b0;
}
.pay-purchased-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pay-purchased-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.pay-purchased-item:last-child {
  border-bottom: none;
}
.pay-purchased-item a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}
.pay-purchased-item a:hover {
  color: #3b6ff5;
}
.pay-purchased-time {
  font-size: 12px;
  color: #b0b0b0;
}

/* 深色模式适配 */
html[data-theme="dark"] .pay-lock-box {
  background: linear-gradient(135deg, #1c3431 0%, #1e1e1e 60%);
  border-color: #3a3a3a;
}
html[data-theme="dark"] .pay-lock-tip,
html[data-theme="dark"] .pay-status-expire,
html[data-theme="dark"] .pay-plans-tip,
html[data-theme="dark"] .pay-purchased-empty,
html[data-theme="dark"] .pay-purchased-time,
html[data-theme="dark"] .pay-lock-help {
  color: #777;
}
html[data-theme="dark"] .pay-status-box {
  background: #1e1e1e;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .pay-status-value,
html[data-theme="dark"] .pay-plans-title,
html[data-theme="dark"] .pay-redeem-title,
html[data-theme="dark"] .pay-plan-name,
html[data-theme="dark"] .pay-purchased-item a {
  color: #ddd;
}
html[data-theme="dark"] .pay-code-input {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #ddd;
}
html[data-theme="dark"] .pay-member-card,
html[data-theme="dark"] .pay-plan-item,
html[data-theme="dark"] .pay-redeem-box,
html[data-theme="dark"] .pay-purchased-box {
  border-color: #3a3a3a;
}
