:root {
  --pd-primary: #1492fb;
  --pd-accent: #1492fb;
  --pd-accent-2: #3aa5fc;
  --pd-rose: #1492fb;
  --pd-rose-2: #3aa5fc;
  --pd-price: #ff4936;
  --pd-price-2: #ff6b6b;
  --pd-bg: #f7f9fc;
  --pd-card: #ffffff;
  --pd-line: rgba(20, 146, 251, 0.1);
  --pd-text-1: #1a1a1a;
  --pd-text-2: #5a5a5a;
  --pd-text-3: #9a9a9a;
  --pd-shadow-sm: 0 2px 8px rgba(20, 146, 251, 0.04);
  --pd-shadow-md: 0 8px 24px rgba(20, 146, 251, 0.08);
  --pd-shadow-lg: 0 20px 60px rgba(20, 146, 251, 0.16);
  --pd-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --pd-ease-soft: cubic-bezier(.25, .8, .25, 1);
}

/* 遮罩与抽屉 —— 底部上滑（Bottom Sheet） */
.pd-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--pd-ease-soft), visibility .45s var(--pd-ease-soft);
}
.pd-overlay.pd-open { opacity: 1; visibility: visible; }
.pd-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 90vh;
  background: var(--pd-bg);
  z-index: 10000;
  transform: translate3d(0, 100%, 0);
  transition: transform .4s cubic-bezier(.25, .8, .25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.pd-overlay.pd-open .pd-drawer { transform: translate3d(0, 0, 0); }
.pd-drawer.pd-dragging { transition: none !important; }
/* 平板/小桌面：520px 以上 */
@media (min-width: 521px) {
  .pd-drawer { max-width: 560px; height: 88vh; }
}
/* 桌面端：让抽屉更宽敞 */
@media (min-width: 1024px) {
  .pd-drawer {
    max-width: 720px;
    height: 92vh;
    border-radius: 28px 28px 0 0;
  }
}
/* 大屏桌面：进一步放大 */
@media (min-width: 1440px) {
  .pd-drawer {
    max-width: 820px;
    height: 94vh;
  }
}

/* 顶部抓取手柄（Bottom Sheet 标志元素） */
.pd-grab-handle {
  width: 100%;
  height: 16px;
  position: relative;
  z-index: 11;
  margin: 0;
  flex-shrink: 0;
  cursor: grab;
}
.pd-grab-handle::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  transition: background .2s ease;
}
.pd-grab-handle:active::before { background: rgba(0, 0, 0, 0.3); }

/* 顶部 Header —— 玻璃拟态 */
.pd-header {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 10;
  flex-shrink: 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.pd-header.pd-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.pd-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--pd-text-1);
  margin: 0;
  letter-spacing: 0.5px;
}
.pd-close {
  width: 34px; height: 34px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  font-size: 20px;
  color: var(--pd-text-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--pd-ease-spring);
  line-height: 1;
}
.pd-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg) scale(1.05);
}
.pd-close:active { transform: rotate(90deg) scale(0.95); }

.pd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
  padding-top: 72px;
}
.pd-body::-webkit-scrollbar { width: 4px; }
.pd-body::-webkit-scrollbar-track { background: transparent; }
.pd-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}
.pd-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* Footer + 按钮 */
.pd-footer {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--pd-line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.pd-btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--pd-ease-spring), box-shadow .3s ease, filter .2s ease, background .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pd-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 50%);
  pointer-events: none;
}
.pd-btn-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}
/* 加入购物车 - 描边次要按钮 */
.pd-btn-cart {
  flex: 0 0 42%;
  background: var(--pd-card);
  color: var(--pd-text-1);
  border: 1.5px solid var(--pd-line);
  box-shadow: none;
  font-weight: 600;
}
.pd-btn-cart:hover {
  border-color: var(--pd-accent);
  color: var(--pd-accent);
  background: rgba(20, 146, 251, 0.05);
  transform: translateY(-1px);
}
.pd-btn-cart::before { display: none; }
/* 立即购买 - 主色实心按钮 */
.pd-btn-buy {
  flex: 1;
  background: linear-gradient(135deg, var(--pd-rose-2) 0%, var(--pd-rose) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 146, 251, 0.32);
}
.pd-btn-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(20, 146, 251, 0.42);
}
.pd-btn:hover {
  filter: brightness(1.03);
}
.pd-btn:active { transform: translateY(0) scale(0.98); }
.pd-btn:disabled {
  background: #e0e0e0 !important;
  color: #fff !important;
  border-color: transparent !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* 骨架屏 + 加载 */
.pd-loading { text-align: center; padding: 80px 24px; color: var(--pd-text-3); }
.pd-spinner {
  width: 38px; height: 38px;
  border: 2.5px solid rgba(20, 146, 251, 0.18);
  border-top-color: var(--pd-accent);
  border-right-color: var(--pd-accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: pdSpin .8s linear infinite;
}
@keyframes pdSpin { to { transform: rotate(360deg); } }

.pd-skeleton { padding: 20px 18px; }
.pd-skeleton-item {
  height: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(20,146,251,0.1) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: pdShimmer 1.4s infinite;
  border-radius: 6px;
  margin-bottom: 12px;
}
.pd-skeleton-item.pd-sk-lg { height: 220px; border-radius: 16px; margin-bottom: 20px; }
.pd-skeleton-item.pd-sk-md { width: 60%; }
.pd-skeleton-item.pd-sk-sm { width: 40%; }
@keyframes pdShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 抽屉骨架屏 - 对齐卡片布局 */
.pd-sk-wrap { padding: 0 0 16px; min-height: 100%; display: flex; flex-direction: column; }
.pd-sk-wrap > .pd-sk-section:last-child { flex: 1; display: flex; flex-direction: column; }
.pd-sk-wrap > .pd-sk-section:last-child .pd-sk-desc { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pd-sk-wrap > .pd-sk-section:last-child .pd-sk-desc .pd-skeleton-item { margin-bottom: 0; }
/* 商品卡片骨架（对齐 .pd-card-hero） */
.pd-sk-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 12px 14px 12px 12px;
  background: var(--pd-card);
  border-radius: 14px;
  box-shadow: var(--pd-shadow-sm);
  animation: pdSlideUp .4s both var(--pd-ease-soft);
}
.pd-sk-hero-img { width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0; margin-bottom: 0; }
.pd-sk-hero-body { flex: 1; padding-top: 4px; min-width: 0; }
.pd-sk-hero-body .pd-skeleton-item { margin-bottom: 10px; }
.pd-sk-hero-body .pd-skeleton-item:last-child { margin-bottom: 0; }
/* 区块卡片骨架（对齐 .pd-section） */
.pd-sk-section {
  margin: 0 16px 14px;
  padding: 16px;
  background: var(--pd-card);
  border-radius: 16px;
  box-shadow: var(--pd-shadow-sm);
  animation: pdSlideUp .45s both var(--pd-ease-soft);
}
.pd-sk-section:nth-child(2) { animation-delay: .05s; }
.pd-sk-section:nth-child(3) { animation-delay: .1s; }
.pd-sk-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.pd-sk-section-title::before {
  content: '';
  width: 3px; height: 12px;
  background: linear-gradient(180deg, var(--pd-accent), var(--pd-accent-2));
  border-radius: 2px;
  flex-shrink: 0;
}
.pd-sk-section-title .pd-skeleton-item { height: 12px; width: 80px; margin-bottom: 0; }
/* 表单骨架 */
.pd-sk-form-item { margin-bottom: 14px; }
.pd-sk-form-item:last-child { margin-bottom: 0; }
.pd-sk-label { height: 10px; width: 60px; margin-bottom: 6px; }
.pd-sk-input { height: 38px; width: 100%; border-radius: 12px; }
/* 描述骨架 */
.pd-sk-desc .pd-skeleton-item { margin-bottom: 10px; }
.pd-sk-desc .pd-skeleton-item:last-child { margin-bottom: 0; }
/* 底部按钮骨架（复用 .pd-footer 容器） */
.pd-sk-btn { height: 44px; flex: 1; border-radius: 24px; margin-bottom: 0; }

/* Hero 商品展示区 */
.pd-hero {
  position: relative;
  margin: 0 16px 16px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3ede1 0%, #e8dfd0 100%);
  aspect-ratio: 16 / 11;
  box-shadow: var(--pd-shadow-md);
  animation: pdFadeIn .5s both var(--pd-ease-soft);
}
.pd-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .8s var(--pd-ease-soft);
}
.pd-hero:hover .pd-hero-img { transform: scale(1.04); }
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
/* 纯文字版 Hero（无图片，精致卡片风格） */
.pd-hero-text {
  aspect-ratio: auto;
  background: var(--pd-card);
  padding: 18px 20px 20px 22px;
  display: block;
  min-height: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.pd-hero-text::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, var(--pd-accent) 0%, var(--pd-accent-2) 100%);
  border-radius: 0 2px 2px 0;
}
.pd-hero-text::after { display: none; }
.pd-hero-text .pd-hero-badge {
  position: static;
  flex-shrink: 0;
  background: rgba(20, 146, 251, 0.12);
  color: var(--pd-accent);
  align-self: center;
}
.pd-hero-text .pd-hero-info {
  position: relative;
  left: auto; right: auto; bottom: auto;
  width: 100%;
  color: var(--pd-text-1);
  animation: none;
}
.pd-hero-text .pd-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pd-hero-text .pd-hero-name {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  text-shadow: none;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--pd-text-1);
  font-weight: 700;
  letter-spacing: 0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.pd-hero-text .pd-hero-price {
  flex-shrink: 0;
  text-align: left;
  color: var(--pd-price);
  font-family: 'DIN', 'Roboto', -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1;
  font-size: 26px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pd-hero-text .pd-hero-price .pd-price-symbol {
  font-size: 14px;
  vertical-align: top;
  margin-right: 1px;
  opacity: 0.85;
  font-weight: 600;
}
.pd-hero-text .pd-hero-price .pd-price-dec {
  font-size: 16px;
  opacity: 0.9;
}
.pd-hero-text .pd-hero-meta {
  color: var(--pd-text-3);
  opacity: 1;
  font-size: 12px;
}
.pd-hero-text .pd-hero-meta-dot {
  background: var(--pd-text-3);
  opacity: 0.4;
}

/* 抽屉内复用首页卡片样式 */
.pd-card-hero.author-minicard {
  display: block;
  width: calc(100% - 32px);
  min-width: 0;
  margin: 0 16px 12px;
  padding: 8px 14px 8px 12px;
  border-radius: 14px;
  background: var(--pd-card);
  box-shadow: var(--pd-shadow-sm);
  animation: pdSlideUp .45s both var(--pd-ease-soft);
}
/* 主页商品卡片名字最多显示 2 行（抽屉内 hero 不限制） */
.author-minicard:not(.pd-card-hero) .Product-Name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  word-break: break-word;
  max-height: 2.8em;
}
.pd-card-hero.author-minicard::after {
  content: '';
  display: block;
  clear: both;
}
.pd-card-hero .avatar-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.pd-card-hero .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.pd-card-hero .content {
  overflow: hidden;
  padding-left: 8px;
}
.pd-card-hero .text-over {
  margin-bottom: 4px;
}
.pd-card-hero .Product-Name a {
  display: block;
  font-size: 13px !important;
  line-height: 1.4;
  word-break: break-word;
}
.pd-card-hero .avatar-dest {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-card-hero .avatar-dest img {
  height: 10px;
  vertical-align: -1px;
  margin-right: 2px;
}
.pd-card-hero .minprice {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.pd-card-hero .pd-hero-meta {
  color: var(--pd-text-3);
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.4;
}
.pd-card-hero .pd-hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pd-text-3);
  opacity: 0.4;
  display: inline-block;
}
.pd-hero-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--pd-text-1);
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pd-hero-info {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  animation: pdSlideUp .5s .15s both var(--pd-ease-soft);
}
.pd-hero-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  word-break: break-word;
}
.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  opacity: 0.92;
}
.pd-hero-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.6); }

/* 卡片容器 */
.pd-section {
  margin: 0 16px 14px;
  background: var(--pd-card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--pd-shadow-sm);
  animation: pdSlideUp .45s both var(--pd-ease-soft);
}
.pd-section:nth-child(2) { animation-delay: .05s; }
.pd-section:nth-child(3) { animation-delay: .1s; }
.pd-section:nth-child(4) { animation-delay: .15s; }
.pd-section-block { padding: 0; }
.pd-section-block:first-child { padding-top: 0; }
.pd-section-block + .pd-section-block { padding-top: 16px; }
.pd-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pd-line) 20%, var(--pd-line) 80%, transparent);
  margin: 14px 0;
}

.pd-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pd-text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-section-title::before {
  content: '';
  width: 3px; height: 12px;
  background: linear-gradient(180deg, var(--pd-accent), var(--pd-accent-2));
  border-radius: 2px;
}

/* 批量下单按钮（购买信息标题右侧） */
.pd-batch-buy {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.pd-batch-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pd-rose-2) 0%, var(--pd-rose) 100%);
  border: none;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(20, 146, 251, 0.32);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--pd-ease-soft), box-shadow .15s var(--pd-ease-soft), filter .15s var(--pd-ease-soft);
}
.pd-batch-buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(20, 146, 251, 0.42);
}
.pd-batch-buy-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(20, 146, 251, 0.32);
}
.pd-batch-buy-tip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6152 0%, #ff9751 50%, #ffd666 100%);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(255, 97, 82, 0.5);
  animation: pdTipPulse 2s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.pd-batch-buy-tip::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #ff9751 transparent transparent transparent;
}
@keyframes pdTipPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 3px 10px rgba(255, 97, 82, 0.5);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 5px 15px rgba(255, 97, 82, 0.7);
  }
}

/* 价格区 */
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-price-main {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pd-price) 0%, var(--pd-price-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'DIN', 'Roboto', -apple-system, sans-serif;
  line-height: 1;
}
.pd-price-main .pd-price-symbol {
  font-size: 16px;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}
.pd-price-main .pd-price-dec {
  font-size: 18px;
  font-weight: 600;
}
.pd-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.pd-stock-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pd-stock-ok { background: rgba(7, 193, 96, 0.1); color: #07c160; }
.pd-stock-no { background: rgba(255, 70, 70, 0.1); color: #ff4646; }
.pd-stock-prep { background: rgba(154, 154, 154, 0.12); color: #6a6a6a; }

/* 描述区 */
.pd-desc {
  font-size: 13px;
  color: var(--pd-text-2);
  line-height: 1.75;
  word-break: break-word;
}
.pd-desc:empty { display: none; }
.pd-desc img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.pd-desc p { margin: 0 0 8px; }
.pd-desc h4,
.pd-desc h3,
.pd-desc h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-text-1);
  margin: 14px 0 8px;
  padding-left: 8px;
  position: relative;
  line-height: 1.5;
}
.pd-desc h4::before,
.pd-desc h3::before,
.pd-desc h5::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pd-accent), var(--pd-accent-2));
}
.pd-desc strong { color: var(--pd-text-1); font-weight: 700; }
.pd-desc strong span[style*="color"] { font-weight: 800; }
.pd-desc p.lead {
  font-size: 14px;
  color: var(--pd-text-1);
  font-weight: 500;
  margin: 10px 0;
}
.pd-desc .text-danger,
.pd-desc p.lead.text-danger {
  color: var(--pd-price);
  font-weight: 600;
}
.pd-desc a {
  color: var(--pd-accent);
  text-decoration: none;
  word-break: break-all;
}
.pd-desc a:hover { text-decoration: underline; }

/* 按钮（btn-warning 等）适配模板风格 */
.pd-desc .btn,
.pd-desc a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  margin: 6px 0;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--pd-ease-spring), box-shadow .25s ease, filter .2s ease;
  white-space: normal;
  word-break: break-word;
}
.pd-desc a.btn:hover { text-decoration: none; filter: brightness(1.05); }
.pd-desc a.btn:active { transform: scale(0.97); }
.pd-desc .btn-warning,
.pd-desc a.btn-warning {
  background: linear-gradient(135deg, #ffa724 0%, #ff7a18 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 122, 24, 0.28);
}
.pd-desc .btn-warning:hover,
.pd-desc a.btn-warning:hover {
  box-shadow: 0 6px 20px rgba(255, 122, 24, 0.4);
}
.pd-desc .btn-lg,
.pd-desc a.btn-lg {
  display: flex;
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 12px;
}
.pd-desc .btn-primary,
.pd-desc a.btn-primary {
  background: linear-gradient(135deg, var(--pd-accent) 0%, var(--pd-accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 146, 251, 0.28);
}
.pd-desc .btn-danger,
.pd-desc a.btn-danger {
  background: linear-gradient(135deg, var(--pd-price) 0%, var(--pd-price-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 73, 54, 0.28);
}

/* panel 面板适配模板风格 */
.pd-desc .panel {
  margin: 10px 0;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.pd-desc .panel-info {
  background: linear-gradient(180deg, rgba(20, 146, 251, 0.04), rgba(20, 146, 251, 0.01));
  border-color: rgba(20, 146, 251, 0.18);
}
.pd-desc .panel-heading {
  padding: 10px 14px;
  background: rgba(20, 146, 251, 0.08);
  border-bottom: 1px solid rgba(20, 146, 251, 0.12);
  color: var(--pd-accent);
  font-size: 13px;
  font-weight: 600;
}
.pd-desc .panel-heading h4,
.pd-desc .panel-heading .panel-title {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-accent);
}
.pd-desc .panel-heading h4::before,
.pd-desc .panel-heading .panel-title::before { display: none; }
.pd-desc .panel-body {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--pd-text-2);
}
.pd-desc .panel-body p:last-child { margin-bottom: 0; }
.pd-desc .panel-body > *:first-child { margin-top: 0; }
.pd-desc .panel-collapse { display: block; }
.pd-desc .panel-collapse.collapse { display: block; }

/* 表格、列表兜底 */
.pd-desc ul,
.pd-desc ol { padding-left: 20px; margin: 6px 0 8px; }
.pd-desc li { margin-bottom: 4px; }
.pd-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
.pd-desc table th,
.pd-desc table td {
  border: 1px solid var(--pd-line);
  padding: 6px 8px;
  text-align: left;
}
.pd-desc table th {
  background: rgba(20, 146, 251, 0.06);
  color: var(--pd-text-1);
  font-weight: 600;
}
.pd-desc hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pd-line) 20%, var(--pd-line) 80%, transparent);
  margin: 12px 0;
}

/* 表单 */
.pd-form-group { margin-bottom: 14px; }
.pd-form-group:last-child { margin-bottom: 0; }
.pd-form-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--pd-text-2);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.pd-form-label .pd-required {
  color: var(--pd-price);
  margin-left: 3px;
  font-size: 14px;
}
.pd-form-input, .pd-form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  font-size: 14px;
  background: #fafafa;
  color: var(--pd-text-1);
  transition: all .25s var(--pd-ease-soft);
  box-sizing: border-box;
  font-family: inherit;
}
.pd-form-input::placeholder { color: #c0c0c0; }
.pd-form-input:hover, .pd-form-select:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: #fff;
}
.pd-form-input:focus, .pd-form-select:focus {
  outline: none;
  border-color: var(--pd-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 146, 251, 0.12);
}
.pd-input-row { display: flex; gap: 8px; align-items: stretch; }
.pd-input-row .pd-form-input { flex: 1; }
.pd-input-action {
  padding: 0 16px;
  background: rgba(20, 146, 251, 0.08);
  color: var(--pd-accent);
  border: 1.5px solid rgba(20, 146, 251, 0.25);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--pd-ease-soft);
  letter-spacing: 0.5px;
}
.pd-input-action:hover {
  transform: translateY(-1px);
  background: rgba(20, 146, 251, 0.12);
  border-color: var(--pd-accent);
  box-shadow: 0 4px 12px rgba(20, 146, 251, 0.2);
}
.pd-input-action:active { transform: translateY(0); }

/* 数量选择器 */
.pd-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.pd-quantity {
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  transition: border-color .25s ease;
}
.pd-quantity:hover { border-color: rgba(0, 0, 0, 0.12); }
.pd-qty-btn {
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--pd-text-2);
  transition: all .2s ease;
  font-weight: 300;
}
.pd-qty-btn:hover { background: rgba(0, 0, 0, 0.05); color: var(--pd-text-1); }
.pd-qty-btn:active { transform: scale(0.9); }
.pd-qty-input {
  width: 56px; height: 38px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-text-1);
  border-left: 1px solid var(--pd-line);
  border-right: 1px solid var(--pd-line);
}
.pd-qty-input:focus { outline: none; background: #fff; }

.pd-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pd-total-label {
  font-size: 11px;
  color: var(--pd-text-3);
  margin-right: 4px;
}
.pd-total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--pd-price);
  font-family: 'DIN', 'Roboto', -apple-system, sans-serif;
}
.pd-total-save {
  font-size: 10px;
  color: #ff4936;
  font-weight: 600;
  margin-left: 4px;
  align-self: center;
}

/* 批发价优惠标签（内联，跟随价格右侧） */
.pd-batch-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 6px;
  background: linear-gradient(135deg, rgba(255, 167, 36, 0.1), rgba(255, 122, 24, 0.06));
  border: 1px solid rgba(255, 122, 24, 0.18);
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.4;
  vertical-align: middle;
}
.pd-batch-price i {
  color: #ff7a18;
  font-size: 10px;
}
.pd-batch-price-text {
  color: var(--pd-text-2);
  font-weight: 600;
}
.pd-batch-price-orig {
  color: var(--pd-text-3);
  font-size: 10px;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 73, 54, 0.6);
}
.pd-batch-price-final {
  color: #ff4936;
  font-weight: 700;
  font-size: 11px;
}

/* 支付视图 */
.pd-pay {
  padding: 32px 18px 20px;
  text-align: center;
  animation: pdSlideUp .45s var(--pd-ease-soft);
}
.pd-pay-label {
  font-size: 12px;
  color: var(--pd-text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pd-pay-amount {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pd-price) 0%, var(--pd-price-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px;
  font-family: 'DIN', 'Roboto', -apple-system, sans-serif;
  line-height: 1;
  animation: pdScaleIn .5s var(--pd-ease-spring);
}
.pd-pay-amount .pd-pay-symbol {
  font-size: 22px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
}
.pd-pay-sub {
  font-size: 12px;
  color: var(--pd-text-3);
  margin-bottom: 24px;
  word-break: break-all;
  letter-spacing: 0.3px;
}
.pd-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.pd-pay-method {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: var(--pd-card);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .3s var(--pd-ease-soft);
  position: relative;
  overflow: hidden;
}
.pd-pay-method::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pd-accent), var(--pd-accent-2));
  transform: scaleY(0);
  transition: transform .3s var(--pd-ease-spring);
  transform-origin: top;
}
.pd-pay-method:hover {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fafafa;
  transform: translateX(2px);
  box-shadow: var(--pd-shadow-sm);
}
.pd-pay-method:hover::before { transform: scaleY(1); }
.pd-pay-method:active { transform: translateX(2px) scale(0.99); }
.pd-pay-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pd-pay-icon-alipay { background: rgba(22, 119, 255, 0.1); color: #1677ff; }
.pd-pay-icon-wxpay { background: rgba(7, 193, 96, 0.1); color: #07c160; }
.pd-pay-icon-qqpay { background: rgba(255, 102, 51, 0.1); color: #ff6633; }
.pd-pay-icon-rmb { background: rgba(255, 149, 0, 0.1); color: #ff9500; }
.pd-pay-icon-recharge { background: rgba(200, 169, 106, 0.12); color: var(--pd-accent); }
.pd-pay-method-body { flex: 1; min-width: 0; }
.pd-pay-method-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-text-1);
  margin-bottom: 2px;
}
.pd-pay-method-desc {
  font-size: 11px;
  color: var(--pd-text-3);
  letter-spacing: 0.3px;
}
.pd-pay-method-arrow {
  color: var(--pd-text-3);
  font-size: 14px;
  transition: transform .3s ease;
}
.pd-pay-method:hover .pd-pay-method-arrow { transform: translateX(3px); color: var(--pd-accent); }
.pd-pay-cancel {
  margin-top: 6px;
  background: transparent;
  color: var(--pd-text-3);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  justify-content: center;
}
.pd-pay-cancel:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--pd-text-2);
  transform: none;
  box-shadow: none;
}
.pd-pay-cancel::before { display: none; }
.pd-pay-msg {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(20, 146, 251, 0.06);
  border-radius: 10px;
  font-size: 11px;
  color: var(--pd-text-2);
  text-align: center;
  line-height: 1.6;
}

/* 支付页 - 购买信息卡片 */
.pd-pay-order {
  margin: 14px 0 0;
  padding: 12px;
  background: var(--pd-card);
  border-radius: 12px;
  box-shadow: var(--pd-shadow-sm);
  text-align: left;
  animation: pdSlideUp .4s var(--pd-ease-soft) both;
}
.pd-pay-order-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pd-text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pd-pay-order-title::before {
  content: '';
  width: 3px; height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pd-accent), var(--pd-accent-2));
}
.pd-pay-order-title i { color: var(--pd-accent); }
.pd-pay-order-item {
  padding: 7px 0;
  border-bottom: 1px dashed var(--pd-line);
}
.pd-pay-order-item:first-child { padding-top: 0; }
.pd-pay-order-item:last-child { padding-bottom: 0; border-bottom: none; }
.pd-pay-order-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pd-text-1);
  line-height: 1.4;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-pay-order-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 5px;
}
.pd-pay-order-row {
  display: flex;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
  align-items: baseline;
}
.pd-pay-order-field {
  flex-shrink: 0;
  color: var(--pd-text-3);
  min-width: 58px;
}
.pd-pay-order-value {
  flex: 1;
  color: var(--pd-text-1);
  font-weight: 500;
  word-break: break-all;
  min-width: 0;
}
.pd-pay-order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--pd-text-3);
}
.pd-pay-order-num {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  background: rgba(20, 146, 251, 0.08);
  color: var(--pd-accent);
  border-radius: 100px;
  font-weight: 600;
}
.pd-pay-order-money {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-price);
  font-family: 'DIN', 'Roboto', sans-serif;
}

/* 成功页 */
.pd-success {
  text-align: center;
  padding: 60px 24px 30px;
  animation: pdSlideUp .5s var(--pd-ease-soft);
}
.pd-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #07c160 0%, #06ad51 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 12px 32px rgba(7, 193, 96, 0.3);
  animation: pdScaleIn .6s var(--pd-ease-spring);
  position: relative;
}
.pd-success-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(7, 193, 96, 0.2);
  border-radius: 50%;
  animation: pdRipple 1.5s ease-out infinite;
}
@keyframes pdRipple {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pd-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pd-text-1);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}
.pd-success-desc {
  font-size: 12px;
  color: var(--pd-text-3);
  margin-bottom: 28px;
  word-break: break-all;
  letter-spacing: 0.3px;
}
.pd-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.pd-success-actions .pd-btn { max-width: 140px; }

@keyframes pdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pdSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pdScaleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============ 购物车结算视图 ============ */
.pd-cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--pd-text-3);
}
.pd-cart-empty .pd-cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.pd-cart-empty .pd-cart-empty-text {
  font-size: 15px;
  margin-bottom: 20px;
}
.pd-cart-list {
  padding: 12px 16px;
}
.pd-cart-item {
  background: var(--pd-card);
  border-radius: 16px;
  box-shadow: var(--pd-shadow-sm);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: pdSlideUp .4s var(--pd-ease-soft) both;
}
.pd-cart-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--pd-line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--pd-ease-spring);
  background: #fff;
}
.pd-cart-check.pd-checked {
  background: var(--pd-accent);
  border-color: var(--pd-accent);
}
.pd-cart-check.pd-checked::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.pd-cart-item-body {
  flex: 1;
  min-width: 0;
}
.pd-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pd-text-1);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-cart-item-info {
  font-size: 12px;
  color: var(--pd-text-3);
  margin-bottom: 6px;
  word-break: break-all;
}
.pd-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-price);
}
.pd-cart-item-price .pd-price-symbol { font-size: 12px; }
.pd-cart-item-del {
  border: none;
  background: transparent;
  color: var(--pd-text-3);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all .2s ease;
}
.pd-cart-item-del:hover {
  background: rgba(255, 73, 54, 0.08);
  color: var(--pd-price);
}
.pd-cart-footer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pd-cart-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--pd-text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.pd-cart-total {
  flex: 1;
  text-align: right;
  font-size: 13px;
  color: var(--pd-text-2);
}
.pd-cart-total .pd-cart-total-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--pd-price);
  font-family: 'DIN', 'Roboto', sans-serif;
}
.pd-cart-total .pd-price-symbol { font-size: 13px; }
.pd-cart-checkout-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 22px;
  background: var(--pd-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--pd-ease-spring);
}
.pd-cart-checkout-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(20, 146, 251, 0.3); }
.pd-cart-checkout-btn:active { transform: scale(0.97); }
.pd-cart-checkout-btn:disabled {
  background: var(--pd-text-3);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pd-cart-clear-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--pd-text-3);
  font-size: 13px;
  cursor: pointer;
  border-radius: 14px;
  transition: all .2s ease;
}
.pd-cart-clear-btn:active { transform: scale(0.94); }
.pd-cart-clear-btn:hover {
  background: rgba(255, 73, 54, 0.08);
  color: var(--pd-price);
}

/* 购物车悬浮按钮 */
.pd-cart-fab {
  position: fixed;
  right: 16px;
  bottom: 70px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pd-accent), var(--pd-accent-2));
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(20, 146, 251, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform .25s var(--pd-ease-spring), box-shadow .25s ease;
  animation: pdFabIn .4s var(--pd-ease-spring) both;
}
.pd-cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(20, 146, 251, 0.5);
}
.pd-cart-fab:active { transform: scale(0.95); }
.pd-cart-fab .pd-cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--pd-price);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(255, 73, 54, 0.4);
}
@keyframes pdFabIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pdBadgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ============ 自定义弹窗组件（不依赖 layer） ============ */
.pd-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 20, 0.45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--pd-ease-soft), visibility .3s var(--pd-ease-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pd-modal-overlay.pd-show { opacity: 1; visibility: visible; }

.pd-modal {
  width: 100%;
  max-width: 340px;
  background: var(--pd-card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform .35s var(--pd-ease-soft), opacity .35s var(--pd-ease-soft);
}
.pd-modal-overlay.pd-show .pd-modal { transform: scale(1) translateY(0); opacity: 1; }

.pd-modal-header {
  padding: 20px 24px 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-text-1);
}
.pd-modal-body {
  padding: 12px 24px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--pd-text-2);
  line-height: 1.6;
  word-break: break-word;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pd-modal-body b { color: var(--pd-text-1); }
.pd-modal-actions {
  display: flex;
  border-top: 1px solid var(--pd-line);
}
.pd-modal-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
  color: var(--pd-text-2);
}
.pd-modal-btn:active { background: rgba(0, 0, 0, 0.04); }
.pd-modal-btn + .pd-modal-btn { border-left: 1px solid var(--pd-line); }
.pd-modal-btn.pd-modal-btn-primary { color: var(--pd-accent); }
.pd-modal-btn.pd-modal-btn-danger { color: var(--pd-price); }

/* 列表选择器（说说/作品列表） */
.pd-modal-body.pd-list-body {
  text-align: left;
  padding: 8px 16px 16px;
  max-height: 56vh;
}
.pd-list-item {
  padding: 12px 12px;
  border-bottom: 1px solid var(--pd-line);
  cursor: pointer;
  font-size: 14px;
  color: var(--pd-text-2);
  line-height: 1.5;
  transition: background .2s ease;
  word-break: break-word;
}
.pd-list-item:last-child { border-bottom: none; }
.pd-list-item:active { background: rgba(20, 146, 251, 0.05); }

/* 地址选择器 */
.pd-city-body { text-align: left; padding: 16px 20px 20px; }
.pd-city-body .form-control {
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--pd-line);
  padding: 10px 12px;
  font-size: 14px;
  height: auto;
}
.pd-city-body .form-control:focus {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 3px rgba(20, 146, 251, 0.1);
}

/* Toast 轻提示 */
.pd-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(20, 20, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--pd-ease-soft), transform .3s var(--pd-ease-soft), visibility .3s var(--pd-ease-soft);
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
}
.pd-toast.pd-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.pd-toast .pd-toast-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

/* Loading 加载 */
.pd-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 28, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px 28px;
  border-radius: 16px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pd-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pdSpin .7s linear infinite;
}
@keyframes pdSpin { to { transform: rotate(360deg); } }
.pd-loading-text {
  color: #fff;
  font-size: 13px;
}