/* ==========================================================================
   产品详情页样式
   ========================================================================== */

.detail-page {
  padding-top: 0;
  background: #ffffff;
  min-height: 100vh;
}

/* 面包屑 */
.detail-breadcrumb {
  padding: 16px 50px;
  padding-top: calc(var(--header-height, 72px) + 16px);
  font-size: 13px;
  color: #86909c;
  background: #fff;
  max-width: 1400px;
  margin: 0 auto;
}

.detail-breadcrumb a {
  color: #86909c;
  text-decoration: none;
  transition: color 0.2s;
}

.detail-breadcrumb a:hover {
  color: #096ddd;
}

.detail-breadcrumb span {
  margin: 0 6px;
  color: #c9cdd4;
}

/* 主内容区 */
.detail-main {
  display: flex;
  gap: 32px;
  padding: 24px 50px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧预览区 */
.detail-preview {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
  border-radius: 12px;
  overflow: hidden;
}

.detail-preview__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.detail-action-btn:hover {
  color: #096ddd;
}

.detail-slides {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-slide {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.detail-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右侧信息面板 */
.detail-info {
  /* 宽度跟随父容器（由 Elementor 容器设置），不再写死 340px，避免溢出 */
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: calc(var(--header-height, 72px) + 24px);
  align-self: flex-start;
}
/* Elementor 小部件根节点也占满其容器 */
.shande-detail-info { width: 100%; }
.shande-detail-info * { box-sizing: border-box; }

.detail-info__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid #d9dce0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 标题区 */
.detail-info__title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-info__format-badge {
  display: none;
}

.detail-info__format-badge--pptx {
  background: #0857b0;
}

.detail-info__format-badge--docx {
  background: #1d4ed8;
}

.detail-info__format-badge--xlsx {
  background: #15803d;
}

.detail-info__title {
  font-size: 17px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
  flex: 1;
}

/* 商品属性：字段与内容逐行对齐，长值使用完整剩余宽度。 */
.detail-info__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-bottom: 24px;
  padding: 4px 14px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
}

.detail-info__meta .detail-meta-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
}

.detail-info__meta .detail-meta-item + .detail-meta-item {
  border-top: 1px solid #e8edf4;
}

.detail-info__meta .detail-meta-item__label {
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  color: #667085;
  overflow-wrap: anywhere;
}

.detail-info__meta .detail-meta-item__value {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  color: #1d2939;
  font-variant-numeric: tabular-nums;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 下载按钮 */
.detail-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}

.detail-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(9, 109, 221, 0.3);
}

/* 版权信息 */
.detail-info__license {
  font-size: 12px;
  color: #86909c;
  text-align: center;
}

/* 响应式 */
@media (max-width: 1024px) {
  .detail-main {
    flex-direction: column;
    padding: 16px 24px 40px;
  }
  .detail-info {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  /* ---------- 详情页 · 手机端布局 ---------- */
  .detail-breadcrumb {
    padding: 12px 15px;
  }
  .detail-main {
    flex-direction: column;
    padding: 12px 15px 30px;
    gap: 18px;
  }
  .detail-preview {
    padding: 0;
    width: 0;
    min-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  /* 画廊小部件手机端去除默认边距，图片满宽贴边 */
  .shande-detail-gallery,
  .shande-detail-gallery .detail-preview { padding: 0; margin: 0; }
  /* 断开 slide 内容把容器撑爆的链路：强制等于父级宽度 */
  #detailSwiper.swiper,
  #detailThumbs.swiper {
    width: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .detail-info {
    width: 100%;
    position: static;
  }

  /* 手机端画廊满宽贴边：去掉圆角 + Elementor 容器内边距 */
  .elementor-widget-shande_detail_gallery > .elementor-widget-container { padding: 0 !important; }
  .detail-swiper { border-radius: 0; }

  /* 主图预览：固定较矮高度，图片裁切填满，不留空白 */
  #detailSwiper .swiper-slide {
    height: 200px;
  }
  #detailSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 左右切换箭头：手机端常驻显示、可点击切换 */
  #detailSwiper .swiper-button-prev,
  #detailSwiper .swiper-button-next {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 20;
  }
  #detailSwiper .swiper-button-prev { left: 8px; }
  #detailSwiper .swiper-button-next { right: 8px; }
  #detailSwiper .swiper-button-prev::after,
  #detailSwiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
  }

  /* 分页圆点常驻显示 */
  #detailSwiper .swiper-pagination {
    display: block;
  }

  /* 标题字号 */
  .detail-info__title {
    font-size: 16px;
  }
}

/* 查看完整内容按钮 */
.detail-expand {
  display: none;
}

.detail-expand__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-expand__btn:hover {
  color: #096ddd;
}

/* 详情描述区 */
.detail-description {
  padding: 24px 0;
  border-top: 1px solid #f1f5f9;
}

.detail-description__content {
  font-size: 13px;
  line-height: 1.8;
  color: #4b5563;
}

.detail-description__content p {
  margin-bottom: 10px;
}

.detail-description__content strong {
  color: #1d2129;
}

.detail-description__notice {
  color: #86909c;
  font-size: 12px;
  margin-top: 12px;
}

/* 关联素材 */
.detail-related {
  background: #f5f7fa;
  padding: 40px 0 60px;
  margin-top: 40px;
  overflow: hidden;
}

.detail-related__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 50px;
}

.detail-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-related__title {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  margin: 0;
}

.detail-related__nav {
  display: flex;
  gap: 8px;
}

.detail-related__nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  color: #4b5563;
}

.detail-related__nav-btn:hover {
  border-color: #096ddd;
  color: #096ddd;
}

.detail-related__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}

.detail-related__grid::-webkit-scrollbar {
  display: none;
}

.detail-related__card {
  flex: 0 0 220px;
  min-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}

.detail-related__card:hover {
  transform: translateY(-4px);
}

.detail-related__thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: #e5e7eb center/cover no-repeat;
  border-radius: 8px;
}

.detail-related__name {
  font-size: 13px;
  color: #4b5563;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-related__card:hover .detail-related__name {
  color: #096ddd;
}

@media (max-width: 768px) {
  .detail-related__inner {
    padding: 0 15px;
  }
  .detail-related__card {
    flex: 0 0 160px;
  }
}

/* 推荐模板 */
.detail-recommend {
  background: #ffffff;
  padding: 40px 0 60px;
  border-top: 1px solid #f1f5f9;
}

.detail-recommend__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 50px;
}

.detail-recommend__title {
  font-size: 24px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 16px;
}

.detail-recommend__tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}

.detail-recommend__tags::-webkit-scrollbar {
  display: none;
}

.detail-recommend__tag {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.detail-recommend__tag:hover {
  color: #096ddd;
  border-color: #096ddd;
  background: #eff6ff;
}

.detail-recommend__tag.is-active {
  color: #fff;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  border-color: transparent;
}

.detail-recommend__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.detail-recommend__card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s;
  color: inherit;
}

.detail-recommend__card:hover {
  transform: translateY(-4px);
}

.detail-recommend__thumb {
  width: 100%;
  aspect-ratio: 3/5;
  background: #e5e7eb center/cover no-repeat;
  border-radius: 8px;
}

.detail-recommend__info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.detail-recommend__badge {
  display: none;
}

.detail-recommend__name {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.detail-recommend__card:hover .detail-recommend__name {
  color: #096ddd;
}

@media (max-width: 768px) {
  .detail-recommend__inner {
    padding: 0 15px;
  }
  .detail-recommend__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 操作按钮栏 */
.detail-actions-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
}

/* 商品描述 + 提示语区 */
.detail-disclaimer {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.detail-disclaimer__desc-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 14px;
}

.detail-disclaimer__desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 24px;
}

.detail-disclaimer__desc p {
  margin-bottom: 10px;
}

.detail-disclaimer__imgs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.detail-disclaimer__imgs img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.detail-disclaimer__notice {
  font-size: 12px;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 8px 12px;
}

.detail-disclaimer__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.detail-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #096ddd;
  background: #fff;
  border: 1px solid #9ccbf3;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-report-btn:hover {
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
  border-color: #096ddd;
}

.detail-disclaimer__tip {
  max-width: 520px;
  font-size: 12px;
  color: #86909c;
  line-height: 1.7;
  text-align: right;
  margin: 0;
}

/* 右侧信息面板额外属性 */
.detail-meta-item__value a {
  color: #096ddd;
  text-decoration: none;
}

.detail-meta-item__value a:hover {
  text-decoration: underline;
}

/* Swiper 轮播自定义样式 */
.detail-swiper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.detail-swiper .swiper-slide {
  box-sizing: border-box;
}

.detail-swiper .swiper-button-prev,
.detail-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.detail-swiper:hover .swiper-button-prev,
.detail-swiper:hover .swiper-button-next {
  opacity: 1;
}

.detail-swiper .swiper-button-prev::after,
.detail-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.detail-swiper .swiper-pagination-bullet-active {
  background: #096ddd;
}

.shande-detail-gallery .detail-swiper .detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-swiper .swiper-slide {
  height: 540px;
}

/* 图标商品沿用小部件“主图高度”；图案仅在该区域内按原始比例居中，
   不启用 Swiper autoHeight，也不使用 cover 裁切或强制放大。
   图标附件保持透明底，让画廊区域的背景直接透出。 */
.shande-detail-gallery--icon #detailSwiper .swiper-wrapper {
  height: 100%;
}
.shande-detail-gallery--icon #detailSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.shande-detail-gallery--icon #detailSwiper .swiper-slide img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  margin: auto;
  flex: none;
}

/* swiper 视口宽度强制等于父级（width:0 + min-width:100%），
   使 slide 的内容无法把容器撑大（这是 Swiper 把宽度算成异常巨大值的根因）。
   slide 宽度交给 Swiper 自行计算，只用 max-width 兜底，不形成反馈循环。 */
#detailSwiper.swiper,
#detailThumbs.swiper {
  width: 0;
  min-width: 100%;
  max-width: 100%;
  overflow: hidden;
}
#detailSwiper .swiper-slide,
#detailThumbs .swiper-slide {
  max-width: 100%;
}

/* 兜底：Swiper 未成功初始化时（如 CDN 被拦截/加载失败），
   只显示首图并占满容器，避免多图堆叠或宽度异常导致页面看不到内容 */
.detail-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: block;
}
.detail-swiper:not(.swiper-initialized) .swiper-slide {
  display: none !important;
  width: 100% !important;
}
.detail-swiper:not(.swiper-initialized) .swiper-slide:first-child {
  display: block !important;
}
/* 图标画廊：Swiper 未初始化时（尤其 Elementor 编辑器里），上面的 block 兜底会压掉
   图标的 flex 居中，导致图标顶到画廊顶部。这里用更高优先级把首图恢复为 flex 居中，
   让编辑器与前台一致：图标在画廊区内水平+垂直居中。 */
.shande-detail-gallery--icon .detail-swiper:not(.swiper-initialized) .swiper-slide:first-child {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.detail-thumbs:not(.swiper-initialized) {
  display: none;
}
.detail-swiper:not(.swiper-initialized) .swiper-button-prev,
.detail-swiper:not(.swiper-initialized) .swiper-button-next,
.detail-swiper:not(.swiper-initialized) .swiper-pagination {
  display: none;
}

/* 缩略图导航 */
.shande-detail-gallery .detail-preview {
  /* 外层包含缩略图导航，不能用主图圆角裁掉首张缩略图的选中边框。 */
  overflow: visible;
}
.shande-detail-gallery {
  overflow: visible;
}
.shande-detail-gallery .detail-swiper {
  overflow: hidden;
}
.detail-thumbs {
  margin-top: 12px;
}

.detail-thumb-slide {
  box-sizing: border-box;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  height: 90px;
  opacity: 0.6;
}

.shande-detail-gallery .detail-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图标产品缩略图：与主图一致用画廊灰底，图案保留原始比例和透明底居中显示，不 cover 裁切。 */
.shande-detail-gallery--icon .detail-thumb-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
}

.shande-detail-gallery--icon .detail-thumb-slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  margin: auto;
}

.detail-thumb-slide.swiper-slide-thumb-active {
  border-color: #096ddd;
  opacity: 1;
}

.detail-thumb-slide:hover {
  opacity: 1;
}

.swiper-slide-thumb-active .detail-thumb-slide,
.swiper-slide-thumb-active.detail-thumb-slide,
.detail-thumbs .swiper-slide-thumb-active,
.detail-thumb-slide:hover {
  border-color: #096ddd;
}

/* 缩略图导航容器 */
.detail-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.detail-thumbs-wrap .detail-thumbs {
  flex: 1;
  margin-top: 0;
}

.detail-thumbs-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #4b5563;
  transition: border-color 0.2s, color 0.2s;
}

.detail-thumbs-nav:hover {
  border-color: #096ddd;
  color: #096ddd;
}

/* 灯箱 */
.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.detail-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}

.detail-lightbox__prev,
.detail-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.detail-lightbox__prev:hover,
.detail-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.detail-lightbox__prev { left: 24px; }
.detail-lightbox__next { right: 24px; }

.detail-lightbox__img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
}

.detail-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  transition: opacity 0.3s, transform 0.3s;
}

.detail-lightbox__img-wrap img.is-switching {
  opacity: 0;
  transform: scale(0.95);
}

.detail-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 2;
}

/* 价格区 */
.detail-pricing {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-pricing__label {
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 10px;
}

/* 头部：标签 + 会员/普通切换 */
.detail-pricing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.detail-pricing__head .detail-pricing__label {
  margin-bottom: 0;
}
.detail-pricing__switch {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.detail-pricing__switch-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #86909c;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
/* 悬停：与选中态同色（渐变主色），保证视觉一致 */
.detail-pricing__switch-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #096ddd, #49c9e9);
  box-shadow: 0 2px 6px rgba(9, 109, 221, 0.25);
}
.detail-pricing__switch-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #096ddd, #49c9e9);
  box-shadow: 0 2px 6px rgba(9, 109, 221, 0.25);
}

/* 价格双形态：默认会员价，切换显示普通价 */
.detail-pricing .price-normal,
.detail-pricing .price-normal-tip {
  display: none;
}
.detail-pricing.is-normal .price-member,
.detail-pricing.is-normal .price-member-tip {
  display: none;
}
.detail-pricing.is-normal .price-normal {
  display: inline;
}
/* 商品不参与会员折扣：无切换按钮，仅展示普通用户价列表 */
.detail-pricing--no-member .detail-pricing__head {
  justify-content: flex-start;
}

.detail-pricing--no-member .price-member,
.detail-pricing--no-member .price-member-tip,
.detail-pricing--no-member .price-normal-tip {
  display: none;
}

.detail-pricing.is-normal .price-normal-tip {
  display: block;
}
.detail-pricing .price-normal strong {
  color: #1d2129;
  font-size: 18px;
}

.detail-pricing__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-pricing__option {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.detail-pricing__option input {
  display: none;
}

.detail-pricing__option.is-active,
.detail-pricing__option:has(input:checked) {
  border-color: #096ddd;
  background: #eff6ff;
}

/* 已购授权档位：绿色边框 + 角标。权益按档位发放，未购档位仍需购买。 */
.detail-pricing__option.is-owned {
  border-color: #00b42a;
  background: #f2fdf5;
}

.detail-pricing__option.is-owned.is-active,
.detail-pricing__option.is-owned:has(input:checked) {
  border-color: #00b42a;
  background: #e8fbec;
  box-shadow: 0 0 0 2px rgba(0, 180, 42, 0.14);
}

/* 已购但下载有效期已过：橙色，提示需要重新购买 */
.detail-pricing__option.is-owned-expired {
  border-color: #ff7d00;
  background: #fff8f0;
}

.detail-pricing__option.is-owned-expired.is-active,
.detail-pricing__option.is-owned-expired:has(input:checked) {
  border-color: #ff7d00;
  background: #fff3e6;
  box-shadow: 0 0 0 2px rgba(255, 125, 0, 0.14);
}

.detail-pricing__owned-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9px;
  background: #00b42a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
  white-space: nowrap;
}

.detail-pricing__owned-badge--expired {
  background: #ff7d00;
}

/* 已购档位的有效期文案（仅商用 1 年这类有到期日的档位出现） */
.detail-pricing__term {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #00b42a;
  line-height: 1.4;
}

.detail-pricing__term--expired {
  color: #ff7d00;
}

/* 续费按钮：橙色，与「立即购买」的蓝色区分，提示这是到期后的重新购买 */
.detail-buy-actions .detail-renew-btn {
  background: linear-gradient(135deg, #ffa940, #ff7d00);
}

.detail-buy-actions .detail-renew-btn:hover {
  background: linear-gradient(135deg, #ffa940, #ff7d00);
  box-shadow: 0 6px 16px rgba(255, 125, 0, 0.3);
}

.sd-share-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #17243b; margin: auto; }
.sd-share-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.sd-share-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sd-share-heading h2 { margin: 0; font-size: 20px; }
.sd-share-options > span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: #eaf4ff; color: #096ddd; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.sd-share-options > span:hover { background: #dcecff; }
.sd-share-dialog .sd-share-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #64748b; cursor: pointer; }
.sd-share-dialog .sd-share-close:hover { background: #f1f5f9; color: #096ddd; }
.sd-share-dialog { box-sizing: border-box; }
.sd-share-dialog input { box-sizing: border-box; width: 100%; height: 42px; padding: 10px 12px; border: 1px solid #dce3ed; border-radius: 8px; background: #f8fafc; color: #64748b; margin: 8px 0 16px; font-size: 13px; }
.sd-share-options { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-share-status { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: #64748b; }
.sd-share-dialog :focus-visible { outline: 2px solid #096ddd; outline-offset: 3px; }

.detail-pricing__option-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.detail-pricing__option-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
  word-break: break-word;
}

.detail-pricing__option-price {
  font-size: 12px;
  color: #86909c;
}

.detail-pricing__option-price strong {
  color: #096ddd;
  font-size: 18px;
}

.detail-pricing__option-price del {
  color: #c9cdd4;
  margin-left: 6px;
}

.detail-pricing__tip {
  font-size: 12px;
  color: #86909c;
  margin-top: 10px;
}

.detail-pricing__tip strong {
  color: #096ddd;
  font-size: 16px;
}

/* 暂未定价：商家未录入授权方式与价格时，替代价格区与购买/下载按钮 */
.detail-noprice {
  margin-bottom: 20px;
  padding: 18px 16px;
  background: #f7f8fa;
  border: 1px solid #eceef2;
  border-radius: 8px;
  text-align: center;
}

.detail-noprice__price {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #4e5969;
  letter-spacing: 0.5px;
}

.detail-noprice__desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #86909c;
}

/* 购买/下载按钮组 */
.detail-buy-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-buy-btn {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(9, 109, 221, 0.3);
}

/*
 * 按钮组里的下载按钮：它是当前唯一可见的主操作（购买按钮被 hidden 藏起来了），
 * 所以用主按钮样式，而不是原来的描边次级样式。
 */
.detail-buy-actions .detail-download-btn {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.detail-buy-actions .detail-download-btn:hover {
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(9, 109, 221, 0.3);
}

/*
 * 两个按钮都渲染、由 JS 按选中档位切换显隐，所以必须让 hidden 压过上面的
 * display:flex（.detail-download-btn 基础样式里带 display:flex）。
 */
.detail-buy-actions .detail-buy-btn[hidden],
.detail-buy-actions .detail-download-btn[hidden] {
  display: none;
}

/* 下载按钮禁用态：未购买时灰色、不可点击 */
.detail-buy-actions .detail-download-btn.is-disabled,
.detail-buy-actions .detail-download-btn:disabled,
.detail-download-btn.is-disabled,
.detail-download-btn:disabled {
  background: #f2f3f5;
  color: #b0b4bb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
.detail-buy-actions .detail-download-btn.is-disabled:hover,
.detail-buy-actions .detail-download-btn:disabled:hover {
  background: #f2f3f5;
  color: #b0b4bb;
  transform: none;
  box-shadow: none;
}


/* ===================== 音乐详情 - 专辑播放画廊 ===================== */
.detail-info__format-badge--music {
  background: linear-gradient(135deg, #096ddd, #096ddd);
  color: #fff;
}

.m-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 播放器主体 */
.m-detail__player {
  display: flex;
  gap: 22px;
  background: linear-gradient(135deg, #1f1d2b 0%, #2a1f2d 60%, #3a1f25 100%);
  border-radius: 14px;
  padding: 24px;
  color: #fff;
}
.m-detail__cover {
  position: relative;
  width: 200px;
  min-height: 200px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}
.m-detail__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background .2s;
}
.m-detail__cover:hover::after { background: rgba(0,0,0,0.35); }
.m-detail__cover-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #096ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.m-detail__cover:hover .m-detail__cover-play { opacity: 1; }
.detail-preview.is-playing .m-detail__cover-play { opacity: 1; }
.m-detail__cover-play svg { width: 26px; height: 26px; margin-left: 3px; }
.m-detail__cover-play:hover { transform: translate(-50%, -50%) scale(1.08); }

.m-detail__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m-detail__eyebrow {
  font-size: 12px;
  color: #93c5fd;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.m-detail__name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-detail__artist {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

/* 播放条 */
.m-detail__playbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.m-detail__play {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #096ddd, #096ddd);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(9, 109, 221,0.45);
  transition: transform .15s;
}
.m-detail__play:hover { transform: scale(1.06); }
.m-detail__play svg { width: 22px; height: 22px; }
.m-detail__play .m-ico-play { margin-left: 2px; }

/* 播放按钮内的动态均衡器条（播放时显示） */
.m-detail__bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 20px;
}
.detail-preview.is-playing .m-detail__bars { display: flex; }
.m-detail__bars span {
  display: block;
  width: 3px;
  border-radius: 1.5px;
  background: #fff;
  transform-origin: bottom;
}
.m-detail__bars span:nth-child(1) { animation: mEqBar 0.9s ease-in-out infinite; }
.m-detail__bars span:nth-child(2) { animation: mEqBar 0.7s ease-in-out infinite; animation-delay: -0.2s; }
.m-detail__bars span:nth-child(3) { animation: mEqBar 1.1s ease-in-out infinite; animation-delay: -0.4s; }
.m-detail__bars span:nth-child(4) { animation: mEqBar 0.8s ease-in-out infinite; animation-delay: -0.1s; }
@keyframes mEqBar {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

.m-detail__wave {
  position: relative;
  flex: 1;
  height: 44px;
  cursor: pointer;
  overflow: hidden;
}
.m-detail__wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  width: 100%;
}
.m-detail__wave-bars span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  transform-origin: center;
}

/* 播放时波形条上下波动动态效果 */
@keyframes mWaveBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.detail-preview.is-playing .m-detail__wave-bars span {
  animation: mWaveBounce 0.9s ease-in-out infinite;
}
.detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n) { animation-delay: -0.1s; animation-duration: 0.7s; }
.detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+1) { animation-delay: -0.3s; animation-duration: 1.1s; }
.detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+2) { animation-delay: -0.5s; animation-duration: 0.8s; }
.detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+3) { animation-delay: -0.7s; animation-duration: 1.0s; }
.m-detail__wave-played {
  position: absolute;
  inset: 0;
  width: 0%;
  overflow: hidden;
  transition: width .15s linear;
}
.m-detail__wave-played .m-detail__wave-bars span {
  background: linear-gradient(180deg, #49c9e9, #096ddd);
}
.m-detail__time {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.m-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.m-detail__tags span {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

/* 曲目列表 */
.m-detail__list {
  background: #fff;
  border: 1px solid #f1f2f4;
  border-radius: 14px;
  padding: 8px 0;
}
.m-detail__list-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d2129;
  padding: 12px 20px;
  border-bottom: 1px solid #f4f5f7;
}
.m-detail__list-title span { color: #a5adb6; font-weight: 400; font-size: 12px; margin-left: 4px; }
.m-detail-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background .15s;
}
.m-detail-track:hover { background: #fafbfc; }
.m-detail-track.is-active { background: #eff6ff; }
.m-detail-track__idx {
  width: 18px;
  font-size: 13px;
  color: #a5adb6;
  text-align: center;
  flex-shrink: 0;
}
.m-detail-track.is-active .m-detail-track__idx { color: #096ddd; }
.m-detail-track__play {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: #f1f2f4;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.m-detail-track:hover .m-detail-track__play { background: #096ddd; color: #fff; }
.m-detail-track.is-active .m-detail-track__play { background: #096ddd; color: #fff; }
.m-detail-track__play svg { width: 13px; height: 13px; margin-left: 1px; }
.m-detail-track__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-detail-track__name {
  font-size: 14px;
  color: #1d2129;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-detail-track__tag {
  font-size: 11px;
  color: #096ddd;
  background: #eff6ff;
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.m-detail-track__bpm {
  font-size: 12px;
  color: #a5adb6;
  flex-shrink: 0;
}
.m-detail-track__dur {
  font-size: 13px;
  color: #86909c;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .m-detail__player { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .m-detail__cover { width: 160px; height: 160px; }
  .m-detail__cover-play { opacity: 1; }
  .m-detail__name { white-space: normal; }
  .m-detail__playbar { width: 100%; }
  .m-detail__tags { justify-content: center; }
  .m-detail-track__bpm { display: none; }
}


/* ===================== 视频详情 - 视频播放画廊 ===================== */
.detail-info__format-badge--video {
  background: linear-gradient(135deg, #7c3aed, #4338ca);
  color: #fff;
}

.v-detail { display: flex; flex-direction: column; gap: 18px; }

.v-detail__stage {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.v-detail__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.v-detail__badge {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
  padding: 4px 10px;
  pointer-events: none;
  z-index: 2;
}
.v-detail__badge--res { top: 12px; left: 12px; }
.v-detail__badge--dur { top: 12px; right: 12px; }

/* 分镜缩略图 */
.v-detail__scenes-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 10px;
}
.v-detail__scenes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.v-detail-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  aspect-ratio: 16 / 9;
  transition: border-color .2s;
}
.v-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-detail-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .2s;
}
.v-detail-thumb__play svg { width: 22px; height: 22px; }
.v-detail-thumb:hover .v-detail-thumb__play { opacity: 1; }
.v-detail-thumb:hover { border-color: #c9cdd4; }
.v-detail-thumb.is-active { border-color: #7c3aed; }
.v-detail-thumb.is-active .v-detail-thumb__play { opacity: 1; }

/* 视频规格 */
.v-detail__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #fafbfc;
  border: 1px solid #f1f2f4;
  border-radius: 12px;
  padding: 18px;
}
.v-detail__spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.v-detail__spec span {
  font-size: 12px;
  color: #a5adb6;
}
.v-detail__spec strong {
  font-size: 14px;
  color: #1d2129;
  font-weight: 600;
}

@media (max-width: 640px) {
  .v-detail__specs { grid-template-columns: repeat(2, 1fr); }
  .v-detail__scenes-row { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   投诉举报弹窗
   ========================================================================== */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.report-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.report-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.report-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}
.report-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: #1d2129;
}
.report-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f7fa;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.report-modal__close:hover {
  background: #e8edf3;
  color: #096ddd;
}
.report-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.report-modal__intro {
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b7280;
  background: #f0f7ff;
  border: 1px solid #d6e9ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
}
.report-modal__intro b { color: #096ddd; }
.report-modal__intro a { color: #096ddd; font-weight: 600; }

.report-field {
  margin-bottom: 16px;
}
.report-field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 8px;
}
.report-req { color: #096ddd; }
.report-optional { color: #a5adb6; font-weight: 400; font-size: 12px; }

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #4b5563;
  cursor: pointer;
}
.report-check input {
  width: 16px;
  height: 16px;
  accent-color: #096ddd;
  cursor: pointer;
}

.report-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9dce0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1d2129;
  outline: none;
  transition: border-color 0.2s;
}
.report-input:focus { border-color: #096ddd; }
.report-input[readonly] { background: #f5f7fa; color: #6b7280; }
.report-textarea { resize: vertical; min-height: 72px; }

.report-uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.report-upload-add,
.report-upload-item {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.report-upload-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #d0d6dd;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.report-upload-add:hover { border-color: #096ddd; background: #f0f7ff; }
.report-upload-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-upload-item__del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-modal__foot {
  display: flex;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
}
.report-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.report-btn--ghost {
  border: 1px solid #d9dce0;
  background: #fff;
  color: #475569;
}
.report-btn--ghost:hover { border-color: #096ddd; color: #096ddd; }
.report-btn--primary {
  border: none;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
}
.report-btn--primary:hover { box-shadow: 0 8px 20px rgba(9, 109, 221, 0.3); }

/* 购买确认 / AI 风险提示 */
/*
 * 根节点强制不透明：shande-report.css 给 .report-modal 设了 opacity:0（靠 .is-open 才变 1），
 * 而本弹窗用的是 .is-visible，命中不到那条规则，会导致整个弹窗恒透明看不见。
 * 这里显式把根节点提回 opacity:1，淡入交给内部 __overlay / __dialog 完成。
 */
.ai-risk-modal { z-index: 2100; }
/* 双类选择器（0-2-0）稳赢 shande-report.css 的 .report-modal{opacity:0}（0-1-0），不赌加载顺序。 */
.report-modal.ai-risk-modal { opacity: 1; }
.ai-risk-modal__overlay {
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ai-risk-modal__dialog {
  max-width: 540px;
  border: 1px solid #dbeafe;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.ai-risk-modal.is-visible .ai-risk-modal__overlay { opacity: 1; }
.ai-risk-modal.is-visible .ai-risk-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ai-risk-modal__head {
  background: linear-gradient(135deg, #eff8ff, #f5f9ff);
  border-bottom-color: #dbeafe;
}
.ai-risk-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0758b5;
}
.ai-risk-modal__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #096ddd;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(9, 109, 221, 0.24);
}
.ai-risk-modal__close {
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ai-risk-modal__close:hover,
.ai-risk-modal__close:focus-visible {
  background: linear-gradient(135deg, #49c9e9, #096ddd) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(9, 109, 221, 0.28);
  outline: none;
  transform: rotate(90deg);
}
.ai-risk-modal__body { padding: 24px 22px; }
.ai-risk-modal__notice {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}
.ai-risk-modal__notice p { margin: 0; }
.ai-risk-modal__notice p + p { margin-top: 10px; }
.ai-risk-modal__notice strong { color: #096ddd; font-weight: 700; }

/* AI 商品单独使用橙色风险主题，正文仍保持无背景、无左边框。 */
.ai-risk-modal.is-ai .ai-risk-modal__dialog { border-color: #fed7aa; }
.ai-risk-modal.is-ai .ai-risk-modal__head {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border-bottom-color: #fed7aa;
}
.ai-risk-modal.is-ai .ai-risk-modal__title { color: #9a3412; }
.ai-risk-modal.is-ai .ai-risk-modal__title-icon {
  background: #f97316;
  box-shadow: 0 5px 12px rgba(249, 115, 22, 0.24);
}
.ai-risk-modal.is-ai .ai-risk-modal__notice { color: #7c2d12; }
.ai-risk-modal.is-ai .ai-risk-modal__notice strong { color: #c2410c; }
.ai-risk-modal.is-ai .ai-risk-modal__close:hover,
.ai-risk-modal.is-ai .ai-risk-modal__close:focus-visible {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
}

/* 提高作用域优先级，避免主题按钮样式覆盖悬停文字与背景。 */
.shande-detail-info .ai-risk-modal__cancel,
.shande-detail-info .ai-risk-modal__confirm {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.shande-detail-info .ai-risk-modal__cancel:hover {
  border-color: #096ddd !important;
  background: #096ddd !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(9, 109, 221, 0.22);
  transform: translateY(-1px);
}
.shande-detail-info .ai-risk-modal__confirm {
  background: linear-gradient(135deg, #49c9e9, #096ddd) !important;
  color: #fff !important;
}
.shande-detail-info .ai-risk-modal__confirm:hover {
  background: linear-gradient(135deg, #20b9df, #0758b5) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(9, 109, 221, 0.32);
  transform: translateY(-1px);
}
.shande-detail-info .ai-risk-modal.is-ai .ai-risk-modal__confirm {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
}
.shande-detail-info .ai-risk-modal.is-ai .ai-risk-modal__confirm:hover {
  background: linear-gradient(135deg, #f97316, #c2410c) !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}

/* 支付提交 / 取下载地址：按钮原尺寸内仅显示居中转圈，不显示文字。 */
.detail-buy-btn.is-loading,
.detail-download-btn.is-loading,
.ai-risk-modal__confirm.is-loading {
  position: relative;
  color: transparent !important;
  cursor: wait;
  pointer-events: none;
}
.detail-buy-btn.is-loading::after,
.detail-download-btn.is-loading::after,
.ai-risk-modal__confirm.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: shandePaymentSpin 0.7s linear infinite;
}
@keyframes shandePaymentSpin { to { transform: rotate(360deg); } }

/* 购买确认弹窗内支付渠道选择 */
.ai-risk-modal__channels {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
}
.ai-risk-modal__channels-label {
  display: none;
}
/* 渠道选择：横排两列全宽，左图标右文字 */
.ai-risk-modal__channels-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.ai-risk-modal__channel-opt {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}
.ai-risk-modal__channel-opt:hover {
  border-color: #096ddd;
  background: #f0f7ff;
}
.ai-risk-modal__channel-opt.is-single {
  cursor: default;
  pointer-events: none;
}
.ai-risk-modal__channel-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.ai-risk-modal__channel-opt:has(input:checked) {
  border-color: #096ddd;
  background: #f0f7ff;
}
.ai-risk-modal__channel-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.ai-risk-modal__channel-ico svg {
  width: 36px;
  height: 36px;
  display: block;
}
.ai-risk-modal__channel-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-risk-modal__channel-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-risk-modal__channel-desc {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-risk-modal__channel-opt:has(input:checked) .ai-risk-modal__channel-name {
  color: #096ddd;
}

/* 提交成功态 */
.report-success {
  text-align: center;
  padding: 24px 8px 8px;
}
.report-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-success__title {
  font-size: 17px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 8px;
}
.report-success__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}
.report-success__desc a { color: #096ddd; font-weight: 600; }

@media (max-width: 768px) {
  .report-modal__dialog { max-width: 100%; }
  .report-upload-add, .report-upload-item { width: 64px; height: 64px; }
}


/* ==========================================================================
   授权说明入口 + 弹窗
   ========================================================================== */
.detail-license-help {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #096ddd;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.detail-license-help:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.detail-license-help svg {
  color: inherit;
}

/* 弹窗容器 */
.license-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.license-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.license-modal__dialog {
  position: relative;
  z-index: 1;
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.license-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.license-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #1d2129;
  display: flex;
  align-items: center;
  gap: 10px;
}

.license-modal__tier {
  font-size: 12px;
  font-weight: 600;
  color: #096ddd;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 12px;
}

.license-modal__close {
  background: none;
  border: none;
  color: #86909c;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}

.license-modal__close:hover {
  background: #f1f5f9;
  color: #1d2129;
}

.license-modal__body {
  padding: 20px 22px;
  overflow-y: auto;
  /* 细滚动条（与后台统一：6px、圆角、悬停加深） */
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.license-modal__body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.license-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.license-modal__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 8px;
}

.license-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}

.license-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid #f1f5f9;
}

.license-modal__note {
  font-size: 11px;
  color: #a5adb6;
  line-height: 1.5;
  flex: 1;
}

.license-modal__btn {
  flex-shrink: 0;
  padding: 9px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #49c9e9, #096ddd);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.license-modal__btn:hover {
  box-shadow: 0 8px 20px rgba(9, 109, 221, 0.3);
}

.detail-pricing__head .detail-membership-help { color: #096ddd; font-size: 13px; font-weight: 600; text-decoration: none; margin-left: auto; }
.detail-membership-help:hover { text-decoration: underline; }
.detail-membership-tiers { padding: 8px 10px; margin: 0 0 12px; border-radius: 6px; background: #edf3f9; color: #4e5969; text-align: center; font-size: 12px; line-height: 1.6; }
.detail-pricing__option-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.detail-license-member-price { color: #ef701b; font-size: 12px; font-weight: 600; }

/* 支付回跳后的购买成功弹窗 */
body.sd-success-modal-open { overflow: hidden; }
.sd-purchase-success { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s ease; }
.sd-purchase-success.is-visible { opacity: 1; }
.sd-purchase-success__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); backdrop-filter: blur(3px); }
.sd-purchase-success__dialog { position: relative; width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px 30px 28px; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .24); text-align: center; transform: translateY(14px) scale(.97); transition: transform .22s ease; }
.sd-purchase-success.is-visible .sd-purchase-success__dialog { transform: translateY(0) scale(1); }
.sd-purchase-success__close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 24px; line-height: 32px; cursor: pointer; }
.sd-purchase-success__close:hover { color: #111827; background: #e5e7eb; }
.sd-purchase-success__icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #096ddd, #49c9e9); box-shadow: 0 10px 26px rgba(9, 109, 221, .28); }
.sd-purchase-success__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sd-purchase-success h2 { margin: 0 0 10px; color: #111827; font-size: 24px; line-height: 1.3; }
.sd-purchase-success p { margin: 0; color: #6b7280; font-size: 14px; line-height: 1.75; }
.sd-purchase-success__info { margin-top: 20px; padding: 14px 16px; border: 1px solid #edf0f3; border-radius: 11px; background: #f7f8fa; text-align: left; }
.sd-purchase-success__info > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13px; line-height: 1.45; }
.sd-purchase-success__info span { color: #8a939f; }
.sd-purchase-success__info strong { min-width: 0; color: #303846; font-weight: 500; overflow-wrap: anywhere; }
.sd-purchase-success__actions { display: flex; gap: 12px; margin-top: 25px; }
.sd-purchase-success__actions button { flex: 1; height: 44px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sd-purchase-success__later { border: 1px solid #dbe1e8; color: #4b5563; background: #fff; }
.sd-purchase-success__download { border: 0; color: #fff; background: linear-gradient(135deg, #096ddd, #49c9e9); box-shadow: 0 7px 18px rgba(9, 109, 221, .22); }
.sd-purchase-success__later:hover { color: #374151 !important; background: #f1f5f9; }
.sd-purchase-success__download:hover { filter: brightness(.96); transform: translateY(-1px); }
.sd-purchase-success__download.is-loading { position: relative; pointer-events: none; opacity: .85; }
.sd-purchase-success__download.is-loading span { visibility: hidden; }
.sd-purchase-success__download.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -10px 0 0 -10px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: sdPurchaseDownloadSpin .7s linear infinite; }
@keyframes sdPurchaseDownloadSpin { to { transform: rotate(360deg); } }
.shande-loading-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: currentColor; border-radius: 50%; animation: sdPurchaseDownloadSpin .7s linear infinite; vertical-align: middle; }
@media (max-width: 480px) { .sd-purchase-success__dialog { padding: 30px 20px 22px; } .sd-purchase-success__actions { flex-direction: column-reverse; } }

/* 弹窗内容 */
.license-scene {
  font-size: 13px;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 18px;
  line-height: 1.65;
}

.license-scene b {
  color: #1d2129;
}

.license-block {
  margin-bottom: 18px;
}

.license-block__title {
  font-size: 13px;
  font-weight: 700;
  color: #1d2129;
  margin: 0 0 8px;
}

.license-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.license-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b5563;
}

.license-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.license-list--allow li svg { color: #10b981; }
.license-list--deny li svg { color: #ef4444; }

/* 交易凭证模板预览 */
.license-cert {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

.license-cert__title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #1d2129;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.license-cert__no {
  text-align: center;
  font-size: 11px;
  color: #86909c;
  margin-bottom: 14px;
}

.license-cert__text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.9;
}

.license-cert__text b {
  color: #096ddd;
}

.license-cert__declare {
  margin-top: 12px;
  background: #fff7ed;
  border: 1px solid #fde3c4;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #c2410c;
  line-height: 1.75;
}

.license-cert__declare b {
  color: #9a3412;
}

.license-cert__foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11px;
  color: #a5adb6;
  line-height: 1.6;
}

.license-cert__seal {
  position: absolute;
  right: 20px;
  bottom: 46px;
  width: 66px;
  height: 66px;
  border: 2px solid #d9363e;
  border-radius: 50%;
  color: #d9363e;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  transform: rotate(-14deg);
  opacity: 0.82;
}

.license-cert--none {
  text-align: center;
  color: #86909c;
  font-size: 13px;
  line-height: 1.7;
  padding: 24px 18px;
  background: #f8fafc;
  border-style: dashed;
}

@media (max-width: 768px) {
  .license-modal__dialog { max-width: 100%; }
  .license-modal__foot { flex-direction: column; align-items: stretch; }
  .license-modal__btn { width: 100%; }
}

/* ==========================================================================
   产品标签小部件（Elementor：闪得 产品标签）
   ========================================================================== */
.shande-product-tags .sd-tags {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #4e5969;
}
.shande-product-tags .sd-tags__label {
  font-weight: 600;
  color: #1d2129;
  margin-right: 2px;
}
.shande-product-tags .sd-tags__item {
  color: #4e5969;
  text-decoration: none;
}
.shande-product-tags a.sd-tags__item:hover {
  color: #096ddd;
}
.shande-product-tags .sd-tags__sep {
  color: #c9cdd4;
  margin: 0 2px;
}

/* ============================================================
   闪得 音频详情：作用域强化（中和 Astra 主题全局污染）
   用 .shande-scope 前缀提升特异性；仅针对被主题覆盖的属性兜底。
   ============================================================ */

/* 标题：Astra 给 h2 上了主题色/字号，强制回到源码深色播放器上的白色标题 */
.shande-scope .m-detail__player .m-detail__name {
  color: #fff !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px !important;
}

/* 播放器主体文字默认白色（防主题 body 色继承） */
.shande-scope .m-detail__player {
  color: #fff;
}
.shande-scope .m-detail__eyebrow { color: #93c5fd !important; }
.shande-scope .m-detail__artist { color: rgba(255,255,255,0.65) !important; }
.shande-scope .m-detail__time { color: rgba(255,255,255,0.7) !important; }

/* 播放键：由 <span role=button> 承载，重置主题可能施加的背景/边框/内外边距，
   还原源码圆形按钮尺寸与配色 */
.shande-scope .m-detail__play,
.shande-scope .m-detail__cover-play {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  text-decoration: none;
}
.shande-scope .m-detail__play {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #096ddd, #096ddd) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(9,109,221,0.45);
}
.shande-scope .m-detail__cover-play {
  width: 56px;
  height: 56px;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.92) !important;
  color: #096ddd !important;
}

/* 标签胶囊：中和主题对 span 的意外背景/字色 */
.shande-scope .m-detail__tags span {
  color: rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.12) !important;
  border-radius: 999px;
  padding: 4px 12px;
}

/* 已播放波形填充层：保持全宽（里面的波形条与底层完全对齐、不压缩），
   改用 clip-path 从左裁剪来显示进度——即"点亮"相同的波形条，而非重排。
   进度由 JS 设置 --sd-played（0~100）。 */
.shande-scope .m-detail__wave-played {
  width: 100% !important;
  clip-path: inset(0 calc(100% - var(--sd-played, 0%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--sd-played, 0%)) 0 0);
  transition: clip-path .12s linear, -webkit-clip-path .12s linear;
}
/* 填充层内的波形条与底层保持一致的全宽布局，防止被压缩重排 */
.shande-scope .m-detail__wave-played .m-detail__wave-bars {
  width: 100%;
}

/* ============================================================
   详情画廊小部件：音频波形对齐修复
   问题根因：波形分「底层（灰）」+「已播放层（蓝，clip-path 裁剪）」两份独立
   DOM。源码柱子用 flex:1 平分宽度——90 根柱子的余数像素由浏览器在两个
   容器里各自独立分配，越往后累积误差越大，于是「前面对齐、后面错位」。
   若再叠加 mWaveBounce 跳动动画（两层相位不同步），错位更明显。
   修复（仅 .shande-scope 作用域，不影响独立页面 detail.html）：
     1) 取消单根柱子的跳动动画，避免两层相位错开；
     2) 每根柱子改用确定的固定宽度 calc((100% - 总间距) / 90)，
        flex:none，消除余数分配的不确定性——两层像素级对齐、充满整条，
        播放时蓝色进度平滑点亮相同波形，不产生新的/错位的柱子。
   （90 根柱、gap 2px → 89 个间距 = 178px）
   ============================================================ */
.shande-scope .m-detail__wave-bars span {
  flex: 0 0 auto;
  width: calc( ( 100% - 178px ) / 90 );
}

/* ------------------------------------------------------------
   保留蓝色进度着色 + 波形跳动，且两层严格对齐
   关键：灰底层与蓝色已播放层是两份独立 DOM，各自跑同一套 mWaveBounce
   动画。要让裁剪边界处蓝柱与灰柱高度始终一致，必须保证「对应位置的
   两根柱子动画完全同相」——即用相同的 nth-child 规则给两层同样的
   animation-delay / duration（源码已按 4n 分组）。这样第 N 根灰柱与
   第 N 根蓝柱任意时刻高度相同，clip-path 裁剪后严丝合缝、颜色随进度
   点亮且同步跳动。
   （animation-delay 为负值 → 同相位启动，不受各柱插入时间差影响）
   ------------------------------------------------------------ */
.shande-scope .detail-preview.is-playing .m-detail__wave-bars span {
  animation: mWaveBounce 0.9s ease-in-out infinite;
}
.shande-scope .detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n)   { animation-delay: -0.1s; animation-duration: 0.7s; }
.shande-scope .detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+1) { animation-delay: -0.3s; animation-duration: 1.1s; }
.shande-scope .detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+2) { animation-delay: -0.5s; animation-duration: 0.8s; }
.shande-scope .detail-preview.is-playing .m-detail__wave-bars span:nth-child(4n+3) { animation-delay: -0.7s; animation-duration: 1.0s; }


/* ==========================================================================
   微信扫码支付弹窗
   ========================================================================== */
.sd-qrcode-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-qrcode-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px 28px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.sd-qrcode-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #86909c;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.sd-qrcode-close:hover {
  color: #1d2129;
  background: #f2f3f5;
}

.sd-qrcode-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #1d2129;
}

.sd-qrcode-img-wrap {
  width: 200px;
  height: 200px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-qrcode-img-wrap img {
  display: block;
  width: 200px;
  height: 200px;
}

.sd-qrcode-tip {
  font-size: 13px;
  color: #4e5969;
  margin: 0;
  text-align: center;
}

.sd-qrcode-status {
  font-size: 12px;
  color: #86909c;
  margin: 0;
  text-align: center;
}
/* Product agreement: matches the login policy viewer, scoped to this dialog. */
dialog.detail-agreement{position:fixed;inset:0;margin:auto;transform:none;box-sizing:border-box;width:min(560px,calc(100vw - 32px));height:fit-content;aspect-ratio:auto;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:14px;background:#fff;color:#1f2937;overflow:hidden;box-shadow:0 28px 70px rgba(15,23,42,.3)}
dialog.detail-agreement[open]{display:flex;flex-direction:column}
dialog.detail-agreement::backdrop{background:rgba(15,23,42,.48)}
.detail-agreement__head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:0 0 auto;padding:17px 20px;border-bottom:1px solid #edf1f6}
.detail-agreement__head>div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;min-width:0}
.detail-agreement__head b{font-size:16px;color:#1f2937}.detail-agreement__head small{font-size:12px;color:#94a3b8}
.detail-agreement__close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#f1f3f6;color:#7a828e;cursor:pointer}.detail-agreement__close:hover{background:#e5e8ed;color:#1f2937}.detail-agreement__close svg{display:block;pointer-events:none}
.detail-agreement__body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:22px 24px;font-size:13px;line-height:1.85;color:#4b5563;overscroll-behavior:contain}
.detail-agreement__body h4{margin:18px 0 7px;font-size:14px;color:#1f2937}.detail-agreement__body h4:first-child{margin-top:0}.detail-agreement__body p{margin:0 0 11px}
.detail-agreement__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:12px 20px;border-top:1px solid #edf1f6}.detail-agreement__foot label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#4b5563}.detail-agreement__foot input{margin:0;accent-color:#086bea}
.detail-agreement__accept{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 22px;border-radius:8px;background:#086bea;color:#fff;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.detail-agreement__accept:hover{filter:brightness(.94)}
.detail-agreement [role=button]:focus-visible{outline:2px solid #086bea;outline-offset:3px}
@media(max-width:480px){.detail-agreement__foot{flex-wrap:wrap}.detail-agreement__accept{margin-left:auto}.detail-agreement__body{padding:18px}}

/* 商品介绍共用排版：以已确认的 PPT 正文为标准。
   Elementor 原生商品内容、传统详情区及历史包装类共用同一层级；
   兼容现有 h2/h3 分节，不按商品 ID 或类别另加规则。 */
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) {
  color: #4b5563;
  font-family: var(--sd-font, 'Noto Sans SC', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) :is(p, li, td) {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) p {
  margin: 0 0 12px;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) :is(h2, h3) {
  margin: 24px 0 10px;
  color: #1d2939;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) h4 {
  margin: 18px 0 8px;
  color: #1d2939;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) :is(h2, h3):first-child {
  margin-top: 0;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) :is(ul, ol) {
  margin: 0 0 12px;
  padding-left: 1.5em;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) li + li {
  margin-top: 4px;
}
body :is(.elementor-widget-woocommerce-product-content, .detail-description__content, .sd-ppt-description, .sd-resource-description) :is(strong, b, th) {
  color: #1d2939;
  font-weight: 600;
}
.sd-ppt-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 16px 0 24px;
}
.sd-ppt-preview-grid > .sd-ppt-preview-page {
  display: block;
  min-width: 0;
  margin: 0;
  color: #64748b;
  text-decoration: none;
  cursor: default;
}
.sd-ppt-preview-grid > .sd-ppt-preview-page:first-child,
.sd-ppt-preview-grid > .sd-ppt-preview-page:last-of-type { grid-column: 1 / -1; }
.sd-ppt-preview-grid > br { display: none; }
.sd-ppt-preview-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f6f8;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
}
.sd-ppt-preview-frame > img {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: translateY(var(--sd-preview-offset, 0%));
}
.sd-ppt-preview-caption,
.sd-ppt-preview-page > small {
  display: block;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 599px) {
  .sd-ppt-preview-grid { grid-template-columns: minmax(0, 1fr); }
}

/* PPT 主图：原生布局控件选中 1:1 时启用；不改变其他商品的高度与填充设置。
   #detailSwiper 的作用域优先级高于 Elementor 已生成的固定主图高度，
   正方形视口按列宽计算高度，wrapper/slide 随视口铺满，无需 Swiper autoHeight。 */
.shande-detail-gallery--ppt-square #detailSwiper {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.shande-detail-gallery--ppt-square #detailSwiper .swiper-wrapper {
  height: 100%;
}
.shande-detail-gallery--ppt-square #detailSwiper .swiper-slide {
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.shande-detail-gallery--ppt-square #detailSwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Elementor 的全宽商品模板由其原生容器管理版心；移除 Astra 外壳的二次宽度限制。 */
body.single-product.elementor-template-full-width #content > .ast-container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Opt-in PPT overview + description preview gallery. Native controls retain sizing. */
/* Let the existing flex row reserve space for both thumbnail arrows.
   !important also overrides the legacy mobile min-width:100% rule. */
.shande-detail-gallery--ppt-preview #detailThumbs.swiper {
  min-width: 0 !important;
}
.shande-detail-gallery--ppt-preview #detailSwiper .detail-ppt-slide,
.shande-detail-gallery--ppt-preview #detailThumbs .detail-thumb-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.shande-detail-gallery--ppt-preview .detail-ppt-frame {
  position: relative;
  display: block;
  flex: none;
  width: min(100%, var(--sd-ppt-frame-width, 100%));
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: #fff;
}
/* ID scope intentionally outranks the existing mobile cover rule. */
.shande-detail-gallery--ppt-preview #detailSwiper .detail-ppt-frame > img,
.shande-detail-gallery--ppt-preview #detailThumbs .detail-ppt-frame > img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  cursor: default;
}
.shande-detail-gallery--ppt-preview #detailSwiper .detail-ppt-frame--sprite > img,
.shande-detail-gallery--ppt-preview #detailThumbs .detail-ppt-frame--sprite > img {
  bottom: auto;
  height: auto;
  object-fit: initial;
  transform: translateY(var(--sd-preview-offset, 0%));
}
.shande-detail-gallery--ppt-preview .detail-ppt-controls {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.shande-detail-gallery--ppt-preview .detail-ppt-fraction,
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: #475569;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.shande-detail-gallery--ppt-preview .detail-ppt-fraction { gap: 3px; }
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle {
  margin: 0;
  width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 50%;
  color: #096ddd;
  cursor: pointer;
  pointer-events: auto;
}
.shande-detail-gallery--ppt-preview .detail-ppt-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.shande-detail-gallery--ppt-preview .detail-ppt-icon--pause,
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle[aria-pressed="true"] .detail-ppt-icon--play { display: none; }
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle[aria-pressed="true"] .detail-ppt-icon--pause { display: block; }
.shande-detail-gallery--ppt-preview .detail-ppt-play-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle:hover { background: #eef6ff; }
.shande-detail-gallery--ppt-preview .detail-ppt-play-toggle:focus-visible,
.shande-detail-gallery--ppt-preview .detail-thumb-slide:focus-visible {
  outline: 2px solid #096ddd;
  outline-offset: -2px;
}
.shande-detail-gallery--ppt-preview .detail-thumb-slide { cursor: pointer; }
@media (max-width: 768px) {
  .shande-detail-gallery--ppt-preview .detail-ppt-controls { right: 8px; bottom: 8px; gap: 6px; }
}


/* License cards: reserve readable columns in translated layouts.
 * Column placement remains controlled by the widget's responsive Elementor setting. */
.detail-pricing__head {
  flex-wrap: wrap;
  gap: 6px 12px;
}
.detail-pricing__head .detail-membership-help {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}
.detail-pricing__option {
  flex-direction: column;
  align-items: stretch;
  row-gap: 6px;
}
.detail-pricing__option-inner > * {
  min-width: 0;
}
.detail-pricing__option-name,
.detail-pricing__term,
.detail-pricing__option-price {
  word-break: normal;
  overflow-wrap: break-word;
}
.detail-pricing__option-price {
  flex-wrap: nowrap;
}
.detail-license-base-price {
  white-space: nowrap;
}
.detail-pricing__option > .detail-license-help {
  align-self: flex-start;
  margin-left: 0;
  max-width: 100%;
  padding: 2px 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.detail-pricing__option > .detail-license-help svg {
  flex: 0 0 auto;
}

/* Thumbnail arrows occupy space beside the Swiper viewport. The legacy mobile
   min-width:100% applies only to the main gallery; thumbnails must be shrinkable.
   PPT already has this fix. Apply the same geometry to every native gallery. */
.shande-detail-gallery .detail-thumbs-wrap #detailThumbs.swiper {
  min-width: 0 !important;
}

/* Font specimens use their full artwork at mobile widths, like PPT previews. */
@media (max-width: 768px) {
  .shande-detail-gallery--font #detailSwiper .swiper-slide img {
    object-fit: contain;
  }
}

/* Font detail identity shares the verified card specimen; old artwork is not its fallback. */
.shande-detail-gallery--font #detailSwiper[data-zg-font-identity-gallery]{height:auto!important;aspect-ratio:16/9}
.shande-detail-gallery--font #detailSwiper[data-zg-font-identity-gallery] .swiper-wrapper{height:100%}
.shande-detail-gallery--font #detailSwiper[data-zg-font-identity-gallery] .swiper-slide{height:100%!important}
.shande-detail-gallery--font #detailSwiper[data-zg-font-identity-gallery] .swiper-slide>img{object-fit:contain}
.shande-detail-gallery--font .zgft-detail-identity{position:relative;width:100%;height:100%;overflow:hidden;background:#f4f7fe}
.shande-detail-gallery--font [data-zg-detail-identity="main"]>.zgft-card-cover{--zgft-cover-max-size:320px;padding:3.5%}
.shande-detail-gallery--font [data-zg-detail-identity="main"]>.zgft-card-cover[data-zg-identity-cover] .zgft-card-cover__panel{padding:6% 8%;border-radius:clamp(8px,2.2cqw,34px)}
.shande-detail-gallery--font [data-zg-detail-identity="main"]>.zgft-card-cover[data-zg-identity-cover] .zgft-card-cover__main{font-size:clamp(12px,min(28cqw,calc(80cqw / var(--zgft-name-chars,3))),320px)}
.shande-detail-gallery--font [data-zg-detail-identity="main"]>.zgft-card-cover[data-zg-identity-cover] .zgft-card-cover__minor{font-size:clamp(10px,3.4cqw,54px)}

/* Compact only the first font-detail thumbnail; reserve space for its real name. */
.shande-detail-gallery--font [data-zg-detail-identity="thumb"]>.zgft-card-cover[data-zg-identity-cover]{padding:4%}
.shande-detail-gallery--font [data-zg-detail-identity="thumb"]>.zgft-card-cover[data-zg-identity-cover] .zgft-card-cover__panel{padding:4%;gap:2px}
.shande-detail-gallery--font [data-zg-detail-identity="thumb"]>.zgft-card-cover[data-zg-identity-cover] .zgft-card-cover__minor{font-size:6.5px;line-height:1.2}
