﻿/* ===== 详情页共享 ===== */
.detail-section {
  padding: 30px 0;
}

/* ===== 商品标题区 ===== */
.prod-title-section {
  padding: 28px 0 0;
}
.prod-title-section h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}
.prod-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.prod-meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.prod-meta-row i { font-size: 14px; }
.prod-meta-row .prod-category { color: var(--primary); font-weight: 500; }
.prod-meta-row .prod-favs i { color: #f9d85a; }
.prod-meta-row .prod-views i { color: var(--text-muted); }

/* ===== 主体左右分栏 ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 24px 0 40px;
  align-items: start;
}

/* ===== 左侧富文本 ===== */
.detail-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-sm);
  line-height: 1.85;
  font-size: 15px;
  color: var(--text-primary);
}
.detail-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-primary);
}
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.detail-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.detail-content ul, .detail-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
}
.detail-content li { margin-bottom: 8px; list-style: disc; }
.detail-content img {
  border-radius: 8px;
  margin: 20px auto;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.detail-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: normal;
}
.detail-content .code-block {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.6;
}

/* ===== 右侧购买卡片 ===== */
.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: static;
  transition: box-shadow .3s ease, transform .3s ease;
}
.purchase-card:hover {
  box-shadow: var(--shadow-md);
}
.purchase-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.purchase-price {
  margin-bottom: 20px;
}
.purchase-price .price-current {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.purchase-price .price-original {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}
.purchase-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #4a6ce9 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .28s ease;
  letter-spacing: 1px;
}
.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,124,249,0.35);
}
.purchase-btn:active { transform: scale(.97); }
.purchase-meta {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.purchase-meta i { margin-right: 4px; }
.purchase-service {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.purchase-service a { color: var(--primary); }

/* ===== 免费资源样式 ===== */
.purchase-free {
  display: none;
}
.purchase-free .free-hint {
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(34,197,94,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== 精品展示 ===== */
.featured-side {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.featured-side h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.featured-side-list { display: flex; flex-direction: column; gap: 12px; }
.featured-side-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all .22s ease;
  cursor: pointer;
  text-decoration: none;
}
.featured-side-item:hover {
  border-color: var(--primary);
  transform: translateX(-3px);
}
.featured-side-item .fs-img {
  width: 72px; height: 72px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-body);
}
.featured-side-item .fs-info { flex: 1; min-width: 0; }
.featured-side-item .fs-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.featured-side-item .fs-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.featured-side-item .fs-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== 声明模块 ===== */
.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.disclaimer-box .disc-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.disclaimer-box .disc-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.disc-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.disc-action-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all .22s ease;
  white-space: nowrap;
}
.disc-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}
.disc-action-btn.liked {
  color: #ff6b6b;
  border-color: #ff6b6b;
  background: rgba(255,107,107,0.06);
}
.disc-action-btn.favorited {
  color: #f9d85a;
  border-color: #f9d85a;
  background: rgba(249,216,90,0.06);
}

/* ===== 上下篇（修复标题溢出） ===== */
.prev-next-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  overflow: hidden;
}
.prev-next-box a {
  flex: 1;
  min-width: 0;                 /* 允许 flex 项目收缩，防止内容撑开 */
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .22s ease;
  text-decoration: none;
}
.prev-next-box a:hover { background: var(--primary-light); }
.prev-next-box a:first-child { border-right: 1px solid var(--border-color); }
.prev-next-box a.disabled { opacity: 0.4; pointer-events: none; }
.prev-next-box .pn-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.prev-next-box .pn-title {
  display: block;               /* 强制块级 */
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 相关资源 ===== */
.related-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}
.related-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== 右侧悬浮 ===== */
.detail-side {
  position: sticky;
  top: 100px;
  align-self: start;
}
.detail-side.unstuck { position: static; }

/* ===== 购买成功 ===== */
.purchase-after { display: none; }
.purchase-card.purchased .purchase-before { display: none; }
.purchase-card.purchased .purchase-after { display: block; }
.purchase-after .download-list { margin-bottom: 0; }
.purchase-after .download-item { background: var(--bg-body); }
.purchase-success-hint {
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(34,197,94,0.08);
  border-radius: 8px;
}

/* ===== 下载区 ===== */
.download-item {
  padding: 12px 14px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
}
.dl-resource-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dl-drive-line {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  gap: 8px;
}
.dl-drive-line i { font-size: 14px; }
.dl-drive-line .dl-link {
  padding: 3px 12px;
  border-radius: 5px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  transition: all .2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.dl-drive-line .dl-link:hover { background: var(--primary); color: #fff; }

/* ===== 骨架屏动画 ===== */
@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}
[data-theme="dark"] .skeleton-box {
  background: linear-gradient(90deg, #2a2a3e 25%, #3a3a50 50%, #2a2a3e 75%);
  background-size: 200px 100%;
}

/* ======================================================
   分享弹窗 & 支付弹窗
   ====================================================== */

/* ----- 分享弹窗 ----- */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}
.share-overlay.active {
  opacity: 1;
  visibility: visible;
}
.share-overlay.share-closing {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.share-modal {
  background: #fff;
  border-radius: 16px;
  padding: 30px 36px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(1);
  transition: transform 0.26s ease;
}
.share-overlay.active .share-modal {
  animation: shareModalIn 0.26s ease;
}
.share-overlay.share-closing .share-modal {
  animation: shareModalOut 0.26s ease;
}

@keyframes shareModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes shareModalOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

[data-theme="dark"] .share-modal {
  background: #1e1e2f;
}
.share-modal h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1a1a2e;
}
[data-theme="dark"] .share-modal h3 {
  color: #e8edf5;
}
.qrcode-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  background: #f0f4ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #999;
  font-size: 14px;
  border: 2px dashed #d0d8e8;
}
[data-theme="dark"] .qrcode-placeholder {
  background: #16162a;
  border-color: #2a2a3e;
  color: #666;
}
.page-url {
  font-size: 12px;
  color: #999;
  word-break: break-all;
  background: #f5f7fa;
  padding: 8px 12px;
  border-radius: 8px;
}
[data-theme="dark"] .page-url {
  background: #16162a;
  color: #666;
}

.share-close-wrap-f {
  text-align: center;
  margin-top: 16px;
}
.share-close-wrap-f .share-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all .22s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.share-close-wrap-f .share-close-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ----- 支付弹窗 ----- */
.pay-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}
.pay-overlay.active {
  opacity: 1;
  visibility: visible;
}
.pay-overlay.pay-closing {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.pay-modal {
  background: #fff;
  border-radius: 16px;
  width: 520px;
  max-width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 28px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(1);
  transition: transform 0.26s ease;
}
.pay-overlay.active .pay-modal {
  animation: payModalIn 0.26s ease;
}
.pay-overlay.pay-closing .pay-modal {
  animation: payModalOut 0.26s ease;
}

@keyframes payModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes payModalOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

[data-theme="dark"] .pay-modal {
  background: #1e1e2f;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf5;
}
[data-theme="dark"] .pay-header {
  border-bottom-color: #2a2a3e;
}
.pay-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
[data-theme="dark"] .pay-header h3 {
  color: #e8edf5;
}
.pay-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.pay-close:hover {
  background: #f0f0f0;
  color: #333;
}
[data-theme="dark"] .pay-close:hover {
  background: #2a2a3e;
  color: #e8edf5;
}

.pay-price-section {
  padding: 14px 0;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
[data-theme="dark"] .pay-price-section {
  border-top-color: #2a2a3e;
  border-bottom-color: #2a2a3e;
}
.pay-price-original {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.pay-price-current {
  font-size: 26px;
  font-weight: 700;
  color: #f9735a;
}
.pay-price-current small {
  font-size: 16px;
  font-weight: 400;
}

.pay-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.pay-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
  color: #999;
}
.pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e8edf5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafbfc;
}
[data-theme="dark"] .pay-item {
  border-color: #2a2a3e;
  background: #16162a;
}
.pay-item:hover {
  border-color: #5a7cf9;
  background: #f0f4ff;
}
[data-theme="dark"] .pay-item:hover {
  border-color: #5a7cf9;
  background: #1a1a3e;
}
.pay-item.selected {
  border-color: #5a7cf9;
  background: #e8efff;
  box-shadow: 0 0 0 3px rgba(90,124,249,0.15);
}
[data-theme="dark"] .pay-item.selected {
  border-color: #5a7cf9;
  background: #1a1a3e;
  box-shadow: 0 0 0 3px rgba(90,124,249,0.2);
}
.pay-item-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
}
[data-theme="dark"] .pay-item-img {
  background: #1e1e2f;
}
.pay-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
[data-theme="dark"] .pay-item-title {
  color: #e8edf5;
}

.pay-contact-input {
  padding: 14px 0 16px;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  margin-bottom: 16px;
}
[data-theme="dark"] .pay-contact-input {
  border-top-color: #2a2a3e;
  border-bottom-color: #2a2a3e;
}
.pay-contact-input label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}
[data-theme="dark"] .pay-contact-input label {
  color: #e8edf5;
}
.pay-contact-input label .required {
  color: #f9735a;
}
.pay-contact-input input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8edf5;
  border-radius: 10px;
  background: #fafbfc;
  font-size: 14px;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}
[data-theme="dark"] .pay-contact-input input {
  background: #16162a;
  border-color: #2a2a3e;
  color: #e8edf5;
}
.pay-contact-input input::placeholder {
  color: #bbb;
}
[data-theme="dark"] .pay-contact-input input::placeholder {
  color: #666;
}
.pay-contact-input input:focus {
  border-color: #5a7cf9;
}
.contact-hint {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}
[data-theme="dark"] .contact-hint {
  color: #666;
}

.pay-submit-btn {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(135deg, #5a7cf9, #4a6ae8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}
.pay-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90,124,249,0.35);
}
.pay-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pay-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
[data-theme="dark"] .pay-footer {
  color: #666;
}

/* ===== 支付成功弹窗 ===== */
.pay-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.pay-success-overlay.active {
  opacity: 1;
  visibility: visible;
}
.pay-success-overlay.success-closing {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pay-success-modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 56px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.35s ease;
}
.pay-success-overlay.active .pay-success-modal {
  animation: successModalIn 0.35s ease;
}
.pay-success-overlay.success-closing .pay-success-modal {
  animation: successModalOut 0.3s ease;
}

@keyframes successModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes successModalOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

[data-theme="dark"] .pay-success-modal {
  background: #1a1a2e;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.pay-success-modal::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pay-success-modal::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pay-success-icon {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.pay-success-icon svg {
  display: block;
  margin: 0 auto;
  animation: successBounce 0.6s ease;
}
@keyframes successBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.pay-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .pay-success-title {
  color: #e8edf5;
}
.pay-success-msg {
  font-size: 15px;
  color: #888;
  margin: 0 0 28px 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .pay-success-msg {
  color: #999;
}
.pay-success-btn {
  display: inline-block;
  padding: 13px 52px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}
.pay-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,197,94,0.35);
}
.pay-success-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: sticky; top: 100px; }
}
@media (max-width: 768px) {
  .prod-title-section h1 { font-size: 20px; }
  .prod-meta-row { gap: 12px; font-size: 12px; }
  .detail-content { padding: 24px 20px; }
  .detail-content h2 { font-size: 18px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prev-next-box { flex-direction: column; }
  .prev-next-box a:first-child { border-right: none; border-bottom: 1px solid var(--border-color); }
  .disclaimer-box { flex-direction: column; align-items: flex-start; }
  .purchase-price .price-current { font-size: 26px; }
}
@media (max-width: 480px) {
  .prod-title-section h1 { font-size: 18px; }
  .detail-content { padding: 16px 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .pay-modal { padding: 18px 16px 22px; }
  .pay-body { gap: 8px; }
  .pay-item { padding: 10px 12px; }
  .pay-item-img { width: 30px; height: 30px; }
  .pay-item-title { font-size: 13px; }
  .pay-price-current { font-size: 22px; }
  .pay-submit-btn { font-size: 16px; padding: 12px 0; }
  .share-modal { padding: 20px 16px; }
  .pay-success-modal { padding: 36px 28px 32px; }
  .pay-success-title { font-size: 20px; }
  .pay-success-msg { font-size: 14px; margin-bottom: 24px; }
  .pay-success-btn { padding: 12px 40px; font-size: 15px; width: 100%; }
  .pay-success-icon svg { width: 64px; height: 64px; }
}