@charset "UTF-8";
/* ==========================================================================
   下载中心样式
   --------------------------------------------------------------------------
   1. 文章正文里的下载卡片（图片样式：左图右文，和主题卡片同一套圆角/描边/阴影）
   2. go 页面（独立页，复用主题的 CSS 变量，自动跟随亮色 / 暗色）

   颜色全部走 var(--xxx)，所以暗色模式不需要额外写一份；只有渐变按钮在
   暗色下稍微压暗一点，避免刺眼。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 文章内下载卡片
   -------------------------------------------------------------------------- */
.joe_detail__article .joe_dl,
.joe_dl {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 12px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.joe_detail__article .joe_dl:hover,
.joe_dl:hover {
  transform: translateY(-2px);
  border-color: var(--classB, #e4e7ed);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 18px 38px -20px rgba(16, 24, 40, 0.28);
}

.joe_dl--paid {
  border-color: rgba(255, 87, 51, 0.28);
}

/* 封面 */
.joe_dl__cover {
  position: relative;
  flex: 0 0 208px;
  width: 208px;
  /* 必须写死高度：之前只有 min-height，图片高度又是 100%，
     父级高度是 auto 时 100% 会回退成图片原始高度 —— 遇到整页长截图封面，
     卡片就被撑成几百像素高。这里固定 132px + object-fit: cover 裁切显示。 */
  height: 132px;
  min-height: 0;
  border-radius: calc(var(--radius-inner, 8px) + 2px);
  overflow: hidden;
  background: var(--classD, #f2f6fc);
  display: block;
}

.joe_dl__cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.joe_dl:hover .joe_dl__cover img {
  transform: scale(1.045);
}

/* 角标：免费 / 加密 / 付费
   封面图颜色不可控（浅色截图、深色截图都有），所以角标做成「实色渐变 + 白字 +
   浅色描边 + 投影」，确保任何底图上都能一眼看清。尺寸也放大了一档。 */
.joe_dl__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.joe_dl__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.joe_dl__badge--free {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(255, 255, 255, 0.55);
}

.joe_dl__badge--paid {
  background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px -8px rgba(255, 77, 79, 0.95);
}

.joe_dl__badge--lock {
  background: linear-gradient(135deg, #7c5cff, #5b8cff);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px -8px rgba(124, 92, 255, 0.95);
}

/* 密码 + 付费并存：合并成一个「付费/加密」角标 */
.joe_dl__badge--both {
  background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 45%, #7c5cff 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 18px -8px rgba(124, 92, 255, 0.9);
}

/* 右侧内容 */
.joe_dl__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 2px 0;
}

.joe_dl__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--main, #303133);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.joe_dl__title:hover {
  color: var(--theme, #409eff);
}

.joe_dl__desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--minor, #909399);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.joe_dl__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--minor, #909399);
}

.joe_dl__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.joe_dl__icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* 底部价格 + 按钮 */
.joe_dl__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.joe_dl__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #ff4d4f;
  letter-spacing: -0.02em;
}

.joe_dl__price em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.9;
}

.joe_dl__price span {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--minor, #909399);
  letter-spacing: 0;
}

.joe_dl__price--free {
  font-size: 16px;
  color: #10b981;
}

.joe_dl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--theme, #409eff), #7cb6ff);
  box-shadow: 0 10px 20px -12px var(--theme, #409eff);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.joe_dl__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 26px -14px var(--theme, #409eff);
}

.joe_dl--paid .joe_dl__btn {
  background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  box-shadow: 0 10px 20px -12px rgba(255, 77, 79, 0.85);
}

@media (max-width: 640px) {
  .joe_detail__article .joe_dl,
  .joe_dl {
    flex-direction: column;
    gap: 12px;
  }

  .joe_dl__cover {
    flex: none;
    width: 100%;
    min-height: 0;
    height: 168px;
  }

  .joe_dl__cover img {
    min-height: 0;
  }

  .joe_dl__body {
    padding: 0 2px 2px;
  }

  .joe_dl__price {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   2. go 页面
   -------------------------------------------------------------------------- */
body.joe_dlpage {
  min-height: 100vh;
  background: var(--classD, #f2f6fc);
  color: var(--main, #303133);
}

html[data-night="night"] body.joe_dlpage {
  background: #1a1a1a;
}

.joe_dlpage__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 340px at 12% -8%, rgba(64, 158, 255, 0.16), transparent 70%),
    radial-gradient(700px 300px at 100% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
}

/* 外层宽度对齐主站的 .joe_container：
   断点和最大宽度逐档照抄 joe.normalize.min.css（540 / 720 / 960 / 1140 / 1320），
   这样 go 页左上角的 Logo、右上角的「返回文章」与主站页头在同一条竖线上，
   不会出现「卡在中间一小块」的割裂感。 */
.joe_dlpage__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 22px 15px 56px;
}

@media (min-width: 576px) {
  .joe_dlpage__wrap {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .joe_dlpage__wrap {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .joe_dlpage__wrap {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .joe_dlpage__wrap {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .joe_dlpage__wrap {
    max-width: 1320px;
  }
}

/* 内容列不跟着铺满：容器对齐主站，正文收在 860px 以内，
   表单和卡片在大屏上仍然是舒服的行宽。 */
.joe_dlpage__main,
.joe_dlpage__foot {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.joe_dlpage__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.joe_dlpage__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--main, #303133);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

/* Logo 不再强行压成 30×30 的正方形：
   主题的 Logo 往往是一张「图标 + 文字」的长图，cover 会从中间裁一刀，
   长图就只剩中间一条深色竖块（go 页面左上角看起来像「Logo 缺了一半」）。
   这里改成按高度等比缩放、宽度自适应，左右留白由 object-fit: contain 处理。 */
.joe_dlpage__brand img {
  flex-shrink: 0;
  width: auto;
  height: 32px;
  max-width: min(160px, 45vw);
  border-radius: 6px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  box-shadow: none;
}

.joe_dlpage__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.joe_dlpage__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--classC, #ebeef5);
  background: var(--background, #fff);
  color: var(--routine, #606266);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.joe_dlpage__back:hover {
  color: var(--theme, #409eff);
  border-color: var(--theme, #409eff);
}

.joe_dlpage__foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: var(--seat, #c0c4cc);
}

/* 资源信息 */
.joe_dlres {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 16px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  margin-bottom: 18px;
}

.joe_dlres__cover {
  flex: 0 0 168px;
  width: 168px;
  height: 112px;
  border-radius: var(--radius-inner, 10px);
  overflow: hidden;
  background: var(--classD, #f2f6fc);
}

.joe_dlres__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.joe_dlres__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.joe_dlres__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.joe_dlres__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--main, #303133);
}

.joe_dlres__from {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--minor, #909399);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.joe_dlres__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--minor, #909399);
}

.joe_dlres__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.joe_dlres__price {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #ff4d4f;
}

.joe_dlres__price em {
  font-size: 14px;
  font-style: normal;
}

/* 步骤条 */
.joe_dlsteps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-inner, 10px);
  background: var(--background, #fff);
  border: 1px solid var(--classC, #ebeef5);
  list-style: none;
}

.joe_dlstep {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--minor, #909399);
}

.joe_dlstep i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--minor, #909399);
  background: var(--classD, #f2f6fc);
}

.joe_dlstep span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.joe_dlstep.is-current {
  color: var(--main, #303133);
  font-weight: 600;
}

.joe_dlstep.is-current i {
  color: #fff;
  background: linear-gradient(135deg, var(--theme, #409eff), #7cb6ff);
}

.joe_dlstep.is-done i {
  color: #fff;
  background: #10b981;
}

/* 表单卡片 */
.joe_dlform,
.joe_dlpay {
  padding: 22px 20px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 16px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
}

.joe_dlform__title,
.joe_dlpay__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--main, #303133);
}

.joe_dlf__field {
  margin-bottom: 16px;
}

.joe_dlf__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--routine, #606266);
}

.joe_dlf__field input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-inner, 10px);
  background: var(--classD, #f2f6fc);
  color: var(--main, #303133);
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.joe_dlf__field input::placeholder {
  color: var(--seat, #c0c4cc);
}

.joe_dlf__field input:focus {
  border-color: var(--theme, #409eff);
  background: var(--background, #fff);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.14);
}

.joe_dlf__tip {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--minor, #909399);
}

.joe_dlform__safe {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--classC, #ebeef5);
  font-size: 12px;
  line-height: 1.7;
  color: var(--seat, #c0c4cc);
  text-align: center;
}

/* 按钮 */
.joe_dlbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--theme, #409eff), #7cb6ff);
  box-shadow: 0 12px 24px -14px var(--theme, #409eff);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.joe_dlbtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.joe_dlbtn--ghost {
  margin-top: 10px;
  color: var(--routine, #606266);
  background: transparent;
  border: 1px solid var(--classC, #ebeef5);
  box-shadow: none;
  font-weight: 500;
  text-decoration: none;
}

.joe_dlbtn--ghost:hover {
  color: var(--theme, #409eff);
  border-color: var(--theme, #409eff);
  filter: none;
}

/* 免责声明 + 「同意 / 不同意」操作区 */
.joe_dldisclaimer {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(64, 158, 255, 0.2);
  border-radius: var(--radius-inner, 10px);
  background: rgba(64, 158, 255, 0.06);
}

.joe_dldisclaimer__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme, #409eff);
}

.joe_dldisclaimer__text {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--minor, #909399);
  word-break: break-word;
}

.joe_dlform__actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 4px;
}

.joe_dlform__actions .joe_dlbtn {
  flex: 1;
  margin-top: 0;
  width: auto;
}

.joe_dlform__actions .joe_dlbtn--ghost {
  flex: 0 0 38%;
}

/* 邮箱「选填 / 必填」小标签 */
.joe_dlf__optional {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--classD, #f2f6fc);
  color: var(--seat, #c0c4cc);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  vertical-align: 1px;
}

.joe_dlf--ghost {
  margin-top: 10px;
}

.joe_dlf--pay .joe_dlbtn {
  margin-top: 4px;
}

/* 提示条 */
.joe_dlalert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-inner, 10px);
  font-size: 13px;
  line-height: 1.7;
  color: #1d4ed8;
  background: rgba(64, 158, 255, 0.1);
  border: 1px solid rgba(64, 158, 255, 0.24);
}

.joe_dlalert--error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.24);
}

/* 支付步骤 */
.joe_dlpay__amount {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: #ff4d4f;
  letter-spacing: -0.02em;
}

.joe_dlpay__amount em {
  font-size: 18px;
  font-style: normal;
}

.joe_dlpay__to {
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--minor, #909399);
}

.joe_dlpay__manual {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--classC, #ebeef5);
}

.joe_dlpay__qr {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  padding: 6px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-inner, 10px);
  background: #fff;
}

.joe_dlpay__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.joe_dlpay__manual-body {
  flex: 1;
  min-width: 0;
}

.joe_dlpay__manual-body > p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--routine, #606266);
}

.joe_dlpay__tip {
  color: var(--minor, #909399) !important;
  font-size: 12px !important;
}

.joe_dlf--card {
  margin-top: 10px;
}

/* 完成 */
.joe_dldone {
  padding: 30px 22px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 16px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  text-align: center;
}

.joe_dldone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.joe_dldone h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--main, #303133);
}

.joe_dldone p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--routine, #606266);
  word-break: break-all;
}

.joe_dldone__tip {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: var(--minor, #909399) !important;
}

.joe_dldone__action {
  margin-top: 18px !important;
}

.joe_dldone__action .joe_dlbtn {
  width: auto;
  padding: 0 30px;
}

/* 错误 / 提示页 */
.joe_dlmsg {
  padding: 36px 22px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 16px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  text-align: center;
}

.joe_dlmsg__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--theme, #409eff);
  background: rgba(64, 158, 255, 0.12);
}

.joe_dlmsg h1 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--main, #303133);
}

.joe_dlmsg p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--minor, #909399);
}

.joe_dlmsg .joe_dlbtn {
  width: auto;
  padding: 0 26px;
}

@media (max-width: 640px) {
  .joe_dlres {
    flex-direction: column;
  }

  .joe_dlres__cover {
    flex: none;
    width: 100%;
    height: 168px;
  }

  .joe_dlpay__manual {
    flex-direction: column;
    align-items: center;
  }

  .joe_dlpay__manual-body {
    width: 100%;
  }

  .joe_dlsteps {
    gap: 4px;
    padding: 10px 12px;
  }

  .joe_dlstep {
    gap: 5px;
    font-size: 11.5px;
  }

  .joe_dlstep i {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  /* 移动端不再隐藏步骤文字：只留数字看起来像「2」「3」缺了内容 */
  .joe_dlstep span {
    display: inline;
  }

  .joe_dlform__actions {
    flex-direction: row;
    gap: 10px;
  }

  .joe_dlform__actions .joe_dlbtn {
    flex: 1 1 auto;
    width: auto;
    height: 44px;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
  }

  .joe_dlform__actions .joe_dlbtn--ghost {
    flex: 0 0 32%;
  }

  .joe_dlform,
  .joe_dlpay {
    padding: 18px 16px;
    border-radius: 14px;
  }
}

/* 暗色下渐变按钮略微压暗，避免高亮刺眼 */
html[data-night="night"] .joe_dl__btn,
html[data-night="night"] .joe_dlbtn {
  filter: saturate(0.9) brightness(0.94);
}

html[data-night="night"] .joe_dl__btn:hover,
html[data-night="night"] .joe_dlbtn:hover {
  filter: saturate(0.95) brightness(1);
}

/* ==========================================================================
   付费阅读（{XBinPay money=..}...{/XBinPay}）
   --------------------------------------------------------------------------
   未支付时正文里只出现这一张卡片；付费内容在服务端就被截掉，不会进 HTML。
   ========================================================================== */
.joe_paid {
  position: relative;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 77, 79, 0.22);
  border-radius: var(--radius-wrap, 14px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  overflow: hidden;
}

.joe_paid::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 79, 0.12), transparent 70%);
  pointer-events: none;
}

.joe_paid__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.joe_paid__hint {
  font-size: 12px;
  color: var(--minor, #909399);
}

.joe_paid__body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.joe_paid__icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}

.joe_paid__text {
  flex: 1;
  min-width: 180px;
}

.joe_paid__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--main, #303133);
}

.joe_paid__desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--minor, #909399);
}

.joe_paid__price {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #ff4d4f;
  letter-spacing: -0.02em;
}

.joe_paid__price em {
  font-size: 13px;
  font-style: normal;
}

.joe_paid__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  box-shadow: 0 10px 20px -12px rgba(255, 77, 79, 0.85);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.joe_paid__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* /unlock 页面顶部信息卡 */
.joe_paidres {
  padding: 20px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-wrap, 16px);
  background: var(--background, #fff);
  box-shadow: var(--box-shadow, 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.18));
  margin-bottom: 18px;
}

.joe_paidres__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.joe_paidres__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--main, #303133);
}

.joe_paidres__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--minor, #909399);
}

.joe_paidres__price {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #ff4d4f;
}

.joe_paidres__price em {
  font-size: 15px;
  font-style: normal;
}

@media (max-width: 640px) {
  .joe_paid__body {
    align-items: flex-start;
  }

  .joe_paid__price {
    margin-left: 50px;
  }

  .joe_paid__btn {
    width: 100%;
  }
}
/* 获取方式选择（密码 / 付费，两种方式并存时出现） */
.joe_dlways {
  display: flex;
  gap: 10px;
  margin: 2px 0 16px;
}

.joe_dlway {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--classC, #ebeef5);
  border-radius: var(--radius-inner, 10px);
  background: var(--classD, #f2f6fc);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.joe_dlway input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.joe_dlway.is-active {
  border-color: var(--theme, #409eff);
  background: rgba(64, 158, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.joe_dlway__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--main, #303133);
}

.joe_dlway__price {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #ff4d4f;
}

.joe_dlway__price em {
  font-size: 12px;
  font-style: normal;
}

.joe_dlway__hint {
  font-size: 12px;
  color: var(--minor, #909399);
}

.joe_dlf__tip--way {
  margin: 0 0 14px;
}

@media (max-width: 640px) {
  .joe_dlways {
    flex-direction: column;
  }
}