/* ============================================================
   族谱社交 · 付费功能商城 设计规范 CSS
   沿用 common.css 基础色系，扩展付费功能专用组件
   ============================================================ */

/* ===== 付费功能扩展色 ===== */
:root {
  --c-shop-bg:        #faf5e8;
  --c-price:          #c0392b;
  --c-price-original: #999;
  --c-discount:       #27ae60;
  --c-vip:            #c8a45c;
  --c-vip-bg:         #fff8e7;
  --c-rare-1:         #95a5a6;
  --c-rare-2:         #3498db;
  --c-rare-3:         #9b59b6;
  --c-rare-4:         #e74c3c;
  --c-pay-wechat:     #07c160;
  --c-pay-alipay:     #1677ff;
  --c-pay-balance:    #c8a45c;
}

/* ===== 商城页面布局 ===== */
.shop-page { max-width: var(--max-w); margin: 0 auto; padding: 16px; }
.shop-section { margin-bottom: 28px; }
.shop-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--c-border);
}
.shop-section-title h3 {
  font-size: 18px; color: var(--c-primary);
  font-family: var(--font-serif); font-weight: 700;
}
.shop-section-title .more { font-size: 13px; color: var(--c-text-3); }
.shop-section-title .more:hover { color: var(--c-primary); }

/* ===== 商城横幅 ===== */
.shop-banner {
  background: linear-gradient(135deg, #6b0f0f 0%, #8b1a1a 50%, #c8a45c 100%);
  border-radius: var(--radius-lg); padding: 28px 24px; color: #fff;
  text-align: center; margin-bottom: 24px; position: relative; overflow: hidden;
}
.shop-banner::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(200,164,92,.15);
}
.shop-banner::after {
  content: ''; position: absolute; bottom: -30px; left: -10px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.shop-banner h2 {
  font-size: 24px; font-family: var(--font-serif);
  font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1;
}
.shop-banner p { font-size: 14px; opacity: .9; position: relative; z-index: 1; }

/* ===== 四大功能入口卡片 ===== */
.shop-entry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.shop-entry-card {
  background: var(--c-paper-3); border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg); padding: 24px 16px; text-align: center;
  cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
.shop-entry-card:hover {
  border-color: var(--c-gold); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.shop-entry-card .entry-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
}
.shop-entry-card[data-type="props"] .entry-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.shop-entry-card[data-type="gifts"] .entry-icon { background: linear-gradient(135deg, #e91e63, #c2185b); }
.shop-entry-card[data-type="membership"] .entry-icon { background: linear-gradient(135deg, #c8a45c, #b8860b); }
.shop-entry-card[data-type="recharge"] .entry-icon { background: linear-gradient(135deg, #27ae60, #1e8449); }
.shop-entry-card .entry-name { font-size: 16px; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; }
.shop-entry-card .entry-desc { font-size: 12px; color: var(--c-text-3); margin-bottom: 10px; }
.shop-entry-card .entry-btn {
  display: inline-block; padding: 6px 16px; font-size: 13px;
  border-radius: 20px; background: var(--c-gold); color: #6b0f0f; font-weight: 600;
}

/* ===== 商品卡片网格 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.product-card {
  background: var(--c-paper-3); border: 1px solid var(--c-border-light);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all .2s; display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--c-gold); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card .product-icon-wrap {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.product-card:hover .product-icon-wrap {
  filter: brightness(1.02);
}
.product-card .product-icon-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.6) 0%, transparent 60%);
  pointer-events: none;
}
.product-card .product-icon-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
}
/* 普通品质 - 淡灰渐变 */
.product-card[data-rarity="1"] .product-icon-wrap {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}
.product-card[data-rarity="1"] .product-icon-wrap::after { background: #95a5a6; }
.product-card[data-rarity="1"] .product-icon svg { fill: #495057; }
/* 稀有品质 - 淡蓝渐变 */
.product-card[data-rarity="2"] .product-icon-wrap {
  background: linear-gradient(180deg, #e8f4fd 0%, #d6eaf8 100%);
}
.product-card[data-rarity="2"] .product-icon-wrap::after { background: #0984e3; }
.product-card[data-rarity="2"] .product-icon svg { fill: #2874a6; }
/* 史诗品质 - 淡紫渐变 */
.product-card[data-rarity="3"] .product-icon-wrap {
  background: linear-gradient(180deg, #f5eef8 0%, #e8daef 100%);
}
.product-card[data-rarity="3"] .product-icon-wrap::after { background: #6c5ce7; }
.product-card[data-rarity="3"] .product-icon svg { fill: #512e5f; }
/* 传说品质 - 淡红金渐变 */
.product-card[data-rarity="4"] .product-icon-wrap {
  background: linear-gradient(180deg, #fdedec 0%, #fadbd8 100%);
}
.product-card[data-rarity="4"] .product-icon-wrap::after { background: #d63031; }
.product-card[data-rarity="4"] .product-icon svg { fill: #922b21; }
.product-card .product-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.product-card .product-icon svg {
  width: 100%; height: 100%; transition: fill 0.3s ease;
}
.product-card .product-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-card .product-name {
  font-size: 15px; font-weight: 700; color: var(--c-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.product-card .product-desc {
  font-size: 12px; color: var(--c-text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px; flex: 1;
}
.product-card .product-tags { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.product-card .tag-rarity {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.product-card[data-rarity="1"] .tag-rarity { background: #ecf0f1; color: var(--c-rare-1); }
.product-card[data-rarity="2"] .tag-rarity { background: #ebf5fb; color: var(--c-rare-2); }
.product-card[data-rarity="3"] .tag-rarity { background: #f5eef8; color: var(--c-rare-3); }
.product-card[data-rarity="4"] .tag-rarity { background: #fdedec; color: var(--c-rare-4); }
.product-card .tag-limited {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--c-warning); color: #fff; font-weight: 600;
}
.product-card .product-price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px;
}
.product-card .price-current {
  font-size: 20px; font-weight: 700; color: var(--c-price);
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
}
.product-card .price-original {
  font-size: 12px; color: var(--c-price-original); text-decoration: line-through;
}
.product-card .discount-badge {
  font-size: 11px; color: var(--c-discount); font-weight: 600;
}
.product-card .product-sold {
  font-size: 11px; color: var(--c-text-3); margin-bottom: 8px;
}
.product-card .btn-buy {
  width: 100%; padding: 8px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; background: var(--c-gold); color: #6b0f0f;
  transition: all .15s; border: none; cursor: pointer;
}
.product-card .btn-buy:hover { background: var(--c-gold-light); }
.product-card .btn-buy:active { transform: scale(.97); }
.product-card .btn-buy.btn-primary { background: var(--c-primary); color: #fff; }
.product-card .btn-buy.btn-primary:hover { background: var(--c-primary-dark); }

/* ===== 分类标签栏 ===== */
.shop-tabs {
  display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
}
.shop-tab {
  padding: 8px 18px; font-size: 14px; white-space: nowrap;
  border-radius: 20px; background: var(--c-paper-3); color: var(--c-text-2);
  border: 1px solid var(--c-border-light); cursor: pointer; transition: all .2s;
}
.shop-tab:hover { border-color: var(--c-gold); color: var(--c-primary); }
.shop-tab.active {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* ===== 筛选栏 ===== */
.shop-filter-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.shop-filter-bar .filter-select {
  padding: 6px 12px; font-size: 13px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-paper-3);
  color: var(--c-text); cursor: pointer;
}
.shop-filter-bar .search-input {
  flex: 1; min-width: 180px; padding: 7px 12px; font-size: 13px;
  border-radius: 20px; border: 1px solid var(--c-border);
  background: var(--c-paper-3); color: var(--c-text);
}

/* ===== 资产展示卡片 ===== */
.asset-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.asset-card {
  background: linear-gradient(135deg, #fff 0%, var(--c-paper) 100%);
  border: 1px solid var(--c-border-light); border-radius: var(--radius-lg);
  padding: 20px; text-align: center;
}
.asset-card .asset-label { font-size: 13px; color: var(--c-text-2); margin-bottom: 6px; }
.asset-card .asset-value {
  font-size: 26px; font-weight: 700; color: var(--c-primary);
  font-family: var(--font-serif);
}
.asset-card .asset-btn {
  margin-top: 8px; display: inline-block; padding: 4px 14px;
  font-size: 12px; border-radius: 16px; background: var(--c-gold); color: #6b0f0f;
  cursor: pointer; font-weight: 600;
}

/* ===== 会员套餐卡片 ===== */
.membership-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.plan-card {
  background: linear-gradient(180deg, #fff 0%, var(--c-vip-bg) 100%);
  border: 2px solid var(--c-border-light); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; position: relative;
  transition: all .2s; cursor: pointer;
}
.plan-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow-md); }
.plan-card.recommended {
  border-color: var(--c-gold); box-shadow: 0 4px 20px rgba(200,164,92,.25);
}
.plan-card .recommend-ribbon {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--c-gold); color: #6b0f0f; font-size: 12px; font-weight: 700;
  padding: 4px 20px; border-radius: 0 0 12px 12px;
}
.plan-card .plan-name {
  font-size: 18px; font-weight: 700; color: var(--c-ink);
  font-family: var(--font-serif); margin-bottom: 12px; margin-top: 8px;
}
.plan-card .plan-price {
  font-size: 36px; font-weight: 700; color: var(--c-price);
  font-family: 'DIN Alternate', sans-serif; line-height: 1;
}
.plan-card .plan-price .currency { font-size: 18px; }
.plan-card .plan-original {
  font-size: 14px; color: var(--c-price-original);
  text-decoration: line-through; margin-top: 6px;
}
.plan-card .plan-save {
  font-size: 13px; color: var(--c-discount); font-weight: 600; margin-top: 4px;
}
.plan-card .plan-duration {
  font-size: 14px; color: var(--c-text-2); margin: 12px 0;
}
.plan-card .plan-features {
  text-align: left; margin: 16px 0; font-size: 13px; color: var(--c-text-2);
  line-height: 1.8;
}
.plan-card .plan-features li { padding-left: 20px; position: relative; }
.plan-card .plan-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--c-discount); font-weight: 700;
}
.plan-card .btn-plan {
  width: 100%; padding: 10px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; border: none; cursor: pointer; transition: all .15s;
}
.plan-card .btn-plan { background: var(--c-gold); color: #6b0f0f; }
.plan-card.recommended .btn-plan { background: var(--c-primary); color: #fff; }
.plan-card .btn-plan:hover { opacity: .9; }
.plan-card .btn-plan:active { transform: scale(.97); }

/* ===== 会员状态横幅 ===== */
.membership-status {
  background: linear-gradient(135deg, var(--c-vip-bg) 0%, #fff 100%);
  border: 1px solid var(--c-gold); border-radius: var(--radius-lg);
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.membership-status .ms-info { display: flex; align-items: center; gap: 12px; }
.membership-status .ms-icon { font-size: 32px; }
.membership-status .ms-title { font-size: 16px; font-weight: 700; color: var(--c-vip); }
.membership-status .ms-detail { font-size: 13px; color: var(--c-text-2); margin-top: 2px; }
.membership-status .btn-renew {
  padding: 8px 24px; border-radius: var(--radius); background: var(--c-primary);
  color: #fff; font-size: 14px; font-weight: 600; border: none; cursor: pointer;
}

/* ===== 统一收银台弹窗 ===== */
.cashier-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px); z-index: 9100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.cashier-modal {
  background: var(--c-paper-3); border-radius: 16px 16px 0 0;
  width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto;
  animation: slideUp .3s ease-out;
}
@media (min-width: 768px) {
  .cashier-mask { align-items: center; }
  .cashier-modal { border-radius: 16px; }
}
.cashier-header {
  padding: 16px 20px; border-bottom: 1px solid var(--c-border-light);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--c-paper-3); z-index: 1;
}
.cashier-header h3 { font-size: 17px; color: var(--c-primary); font-family: var(--font-serif); }
.cashier-close { font-size: 24px; color: var(--c-text-3); cursor: pointer; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border: none; background: none; }
.cashier-close:hover { color: var(--c-danger); }
.cashier-body { padding: 20px; }

.cashier-section {
  margin-bottom: 16px; padding: 14px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--c-border-light);
}
.cashier-section-title {
  font-size: 13px; color: var(--c-text-2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.order-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 14px;
}
.order-summary-row .label { color: var(--c-text-2); }
.order-summary-row .value { color: var(--c-ink); font-weight: 500; }
.order-summary-row.total {
  border-top: 1px dashed var(--c-border); margin-top: 8px; padding-top: 10px;
}
.order-summary-row.total .value {
  font-size: 22px; font-weight: 700; color: var(--c-price);
}

.pay-method-list { display: flex; flex-direction: column; gap: 8px; }
.pay-method-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 2px solid var(--c-border-light); border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
}
.pay-method-item:hover { border-color: var(--c-gold); }
.pay-method-item.selected { border-color: var(--c-primary); background: rgba(139,26,26,.03); }
.pay-method-item .pm-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pay-method-item.selected .pm-radio {
  border-color: var(--c-primary); background: var(--c-primary);
}
.pay-method-item.selected .pm-radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.pay-method-item .pm-icon { font-size: 24px; }
.pay-method-item .pm-name { font-size: 14px; font-weight: 500; flex: 1; }
.pay-method-item .pm-balance { font-size: 13px; color: var(--c-text-3); }
.pay-method-item .pm-balance.sufficient { color: var(--c-discount); }

.discount-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 14px;
}
.discount-row .label { color: var(--c-text-2); }
.discount-row .saved { color: var(--c-discount); font-weight: 600; }

.cashier-footer {
  padding: 16px 20px; border-top: 1px solid var(--c-border-light);
  position: sticky; bottom: 0; background: var(--c-paper-3);
}
.btn-confirm-pay {
  width: 100%; padding: 14px; border-radius: var(--radius); font-size: 16px;
  font-weight: 700; background: linear-gradient(135deg, var(--c-gold), #b8860b);
  color: #6b0f0f; border: none; cursor: pointer; transition: all .15s;
}
.btn-confirm-pay:hover { opacity: .9; }
.btn-confirm-pay:active { transform: scale(.97); }
.btn-confirm-pay:disabled { opacity: .5; cursor: not-allowed; }
.cashier-agreement {
  text-align: center; font-size: 12px; color: var(--c-text-3); margin-top: 10px;
}
.cashier-agreement a { color: var(--c-primary); }

/* ===== 支付成功动画 ===== */
.pay-success-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9200;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
.pay-success-modal {
  background: var(--c-paper-3); border-radius: 16px; padding: 32px;
  text-align: center; max-width: 360px; width: 90%;
  animation: popIn .4s ease-out;
}
.pay-success-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--c-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff;
  animation: checkPop .5s ease-out;
}
.pay-success-modal h3 { font-size: 20px; color: var(--c-ink); margin-bottom: 16px; }
.pay-success-detail {
  background: #fff; border-radius: var(--radius); padding: 14px;
  margin-bottom: 20px; text-align: left;
}
.pay-success-detail .row {
  display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px;
}
.pay-success-detail .row .label { color: var(--c-text-2); }
.pay-success-detail .row .value { color: var(--c-ink); font-weight: 500; }
.pay-success-actions { display: flex; gap: 10px; }
.pay-success-actions .btn {
  flex: 1; padding: 10px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; border: none; cursor: pointer; transition: all .15s;
}
.pay-success-actions .btn-secondary { background: var(--c-paper-2); color: var(--c-text); }
.pay-success-actions .btn-primary { background: var(--c-primary); color: #fff; }

/* ===== 礼物选择面板(底部抽屉) ===== */
.gift-panel-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9100;
  animation: fadeIn .2s;
}
.gift-panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9101;
  background: var(--c-paper-3); border-radius: 16px 16px 0 0;
  max-height: 70vh; display: flex; flex-direction: column;
  animation: slideUp .3s ease-out;
}
@media (min-width: 768px) {
  .gift-panel {
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    right: auto; bottom: auto; width: 480px; max-height: 80vh;
    border-radius: 16px;
  }
  .gift-panel-mask { display: block; }
}
.gift-panel-header {
  padding: 14px 20px; border-bottom: 1px solid var(--c-border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.gift-panel-header h3 { font-size: 16px; color: var(--c-primary); }
.gift-panel-tabs {
  display: flex; gap: 4px; padding: 8px 20px; border-bottom: 1px solid var(--c-border-light);
}
.gift-panel-tab {
  padding: 6px 16px; font-size: 13px; border-radius: 16px;
  background: var(--c-paper-2); color: var(--c-text-2); cursor: pointer;
  transition: all .2s; border: none;
}
.gift-panel-tab.active { background: var(--c-primary); color: #fff; }
.gift-grid {
  flex: 1; overflow-y: auto; padding: 14px 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 375px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
.gift-item {
  background: #fff; border: 2px solid var(--c-border-light); border-radius: var(--radius);
  padding: 12px 8px; text-align: center; cursor: pointer; transition: all .2s;
}
.gift-item:hover { border-color: var(--c-gold); }
.gift-item.selected {
  border-color: var(--c-gold); background: var(--c-vip-bg);
  transform: scale(1.05);
}
.gift-item .gift-icon { font-size: 32px; margin-bottom: 6px; }
.gift-item .gift-name { font-size: 12px; color: var(--c-ink); margin-bottom: 2px; }
.gift-item .gift-effect { font-size: 11px; color: var(--c-vip); }
.gift-item .gift-price { font-size: 13px; font-weight: 700; color: var(--c-price); margin-top: 4px; }
.gift-panel-footer {
  padding: 14px 20px; border-top: 1px solid var(--c-border-light);
}
.gift-qty-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.gift-qty-row .qty-label { font-size: 14px; color: var(--c-text-2); }
.qty-selector { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 32px; height: 32px; border: 1px solid var(--c-border);
  background: var(--c-paper-3); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-input {
  width: 50px; height: 32px; border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border); text-align: center; font-size: 14px;
  border-left: none; border-right: none;
}
.gift-message-input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: 13px; margin-bottom: 10px;
  background: #fff; color: var(--c-text);
}
.gift-summary-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.gift-summary-row .total-price { font-size: 20px; font-weight: 700; color: var(--c-price); }
.gift-summary-row .effect-preview { font-size: 12px; color: var(--c-vip); }
.btn-send-gift {
  width: 100%; padding: 12px; border-radius: var(--radius); font-size: 15px;
  font-weight: 700; background: var(--c-primary); color: #fff;
  border: none; cursor: pointer; transition: all .15s;
}
.btn-send-gift:hover { background: var(--c-primary-dark); }
.btn-send-gift:active { transform: scale(.97); }
.btn-send-gift:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 充值档位 ===== */
.recharge-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.recharge-card {
  background: linear-gradient(135deg, #fff 0%, var(--c-paper) 100%);
  border: 2px solid var(--c-border-light); border-radius: var(--radius-lg);
  padding: 20px 12px; text-align: center; cursor: pointer; transition: all .2s;
  position: relative;
}
.recharge-card:hover { border-color: var(--c-gold); }
.recharge-card.selected {
  border-color: var(--c-primary); background: rgba(139,26,26,.03);
}
.recharge-card .rc-tag {
  position: absolute; top: -1px; right: 8px; font-size: 10px;
  padding: 2px 8px; border-radius: 0 0 8px 8px; color: #fff; font-weight: 600;
}
.recharge-card .rc-tag.hot { background: var(--c-price); }
.recharge-card .rc-tag.best { background: var(--c-discount); }
.recharge-card .rc-amount {
  font-size: 24px; font-weight: 700; color: var(--c-price); margin-bottom: 4px;
  font-family: 'DIN Alternate', sans-serif;
}
.recharge-card .rc-incense {
  font-size: 14px; color: var(--c-vip); font-weight: 600;
}
.recharge-card .rc-extra { font-size: 11px; color: var(--c-discount); margin-top: 4px; }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* 骨架屏 */
.skeleton-card {
  background: #f0e8d5; border-radius: var(--radius-lg); overflow: hidden;
}
.skeleton-icon {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(90deg, #f0e8d5 25%, #e8dcc4 50%, #f0e8d5 75%);
  background-size: 400px 100%; animation: shimmer 1.5s infinite;
}
.skeleton-line {
  height: 14px; margin: 8px 14px; border-radius: 4px;
  background: linear-gradient(90deg, #f0e8d5 25%, #e8dcc4 50%, #f0e8d5 75%);
  background-size: 400px 100%; animation: shimmer 1.5s infinite;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .shop-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .recharge-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .shop-page { padding: 12px; }
  .shop-banner { padding: 20px 16px; }
  .shop-banner h2 { font-size: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .membership-plans {
    grid-template-columns: 1fr; gap: 12px;
    overflow-x: auto; flex-wrap: nowrap;
    display: flex; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .plan-card { min-width: 260px; flex-shrink: 0; }
  .asset-grid { grid-template-columns: 1fr; }
  .recharge-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card .product-icon { font-size: 40px; }
  .product-card .price-current { font-size: 18px; }
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 375px) {
  .shop-entry-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .recharge-grid { grid-template-columns: 1fr; }
}
