/* ============================================
   页面级样式 — 通知/购物车/订单/推广Feed/分销/收益/文案/批发
   从 style.css 拆分
   ============================================ */

/* ----- Notifications ----- */
.notif-actions {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-2) var(--space-4);
}
.notif-list {
  padding: 0 var(--space-4) var(--space-4);
}
.notif-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.notif-item:active {
  background: var(--color-surface);
}
.notif-unread {
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-soft);
}
.notif-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
}
.notif-item-type {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-pale);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}
.notif-item-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.notif-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.notif-item-content {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.notif-dot {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ----- Cart Page ----- */
.cart-items {
  padding: 0 var(--space-4);
}

/* Cart item */
.cart-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}
.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.cart-qty-btn:active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cart-qty-num {
  font-size: var(--text-sm);
  font-weight: 600;
  width: 24px;
  text-align: center;
  color: var(--color-text);
}
.cart-item-subtotal {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 48px;
  text-align: right;
}

/* ----- Add to Cart Button on Product Cards ----- */
.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}
.btn-cart:active {
  background: var(--color-primary);
  color: #fff;
}

.btn-shelf {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-success);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}
.btn-shelf:active {
  background: var(--color-success);
  color: #fff;
}
.btn-shelf-added {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-hover);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}

/* ----- Delivery Toggle ----- */
.delivery-toggle {
  display: flex;
  gap: var(--space-3);
}
.delivery-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.delivery-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.delivery-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* ----- Order Summary ----- */
.order-summary {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.order-summary-item + .order-summary-item {
  border-top: 1px solid var(--color-border-light);
}
.order-summary-item-name {
  flex: 1;
  margin-right: var(--space-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}

/* ----- Subscription Gate ----- */
.sub-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 200ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sub-gate-card {
  width: 100%;
  max-width: var(--content-max);
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-8) var(--space-5) var(--space-10);
  text-align: center;
  animation: slideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sub-gate-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}
.sub-gate-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.sub-gate-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.sub-gate-prices {
  text-align: left;
  margin-bottom: var(--space-5);
}
.sub-gate-plan {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.sub-gate-plan:active,
.sub-gate-plan.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
.sub-gate-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
}
.sub-gate-plan-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}
.sub-gate-plan-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.sub-gate-plan-features {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----- Product Picker (Copywriting page) ----- */
.product-picker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.product-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--space-3);
  min-height: 44px;
  align-items: center;
}
.product-picker-placeholder {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.product-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.product-picker-chip-remove {
  width: 18px; height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(244,129,32,0.2);
  color: var(--color-primary);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.product-picker-search {
  border-top: 2px solid var(--color-primary);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
}
.product-picker-search .search-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.product-picker-search .search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--text-base);
  outline: none;
  color: var(--color-text);
}
.product-picker-dropdown {
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  z-index: 20;
}
.product-picker-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s;
}
.product-picker-item:active {
  background: var(--color-primary-soft);
}
.product-picker-item.selected {
  background: #FFF7ED;
}
.product-picker-item-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.product-picker-item-info {
  flex: 1;
  min-width: 0;
}
.product-picker-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-picker-item-price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.product-picker-add {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.product-picker-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ----- Responsive ----- */
@media (min-width: 480px) {
  .app {
    border-left: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
  }
}

/* ===== Product Thumbnail Images ===== */
.product-thumb img,
.store-item-thumb img,
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

@media (max-width: 360px) {
  :root {
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.375rem;
  }
  .app-main { padding: var(--space-4) var(--space-2) calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
  .quick-action { padding: var(--space-3) var(--space-1); }
  .quick-action-icon { width: 32px; height: 32px; font-size: 1rem; }
}

/* ===== Quick Profile Setup Card (Cold Start) ===== */
.profile-setup-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 50%, #FFF7ED 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.profile-setup-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: #FED7AA;
  border-radius: 50%;
  opacity: 0.3;
}
.profile-setup-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.profile-setup-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.profile-setup-heading h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px;
}
.profile-setup-heading p {
  font-size: var(--text-xs);
  color: #78716C;
  margin: 0;
}
.profile-setup-templates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.profile-tpl-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #E8E4DF;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.profile-tpl-btn:hover {
  border-color: var(--color-primary);
  background: #FFF7ED;
  transform: translateX(2px);
}
.profile-tpl-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.15);
}
.profile-tpl-emoji {
  font-size: 1.25rem;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-tpl-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  min-width: 80px;
}
.profile-tpl-desc {
  font-size: var(--text-xs);
  color: #A8A29E;
}
.profile-setup-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: #A8A29E;
  font-size: var(--text-xs);
}
.profile-setup-divider::before,
.profile-setup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8E4DF;
}
.profile-setup-textarea {
  width: 100%;
  min-height: 72px;
  padding: var(--space-4) var(--space-4);
  border: 1px solid #E8E4DF;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-appearance: none;
}
.profile-setup-textarea:focus {
  border-color: var(--color-primary);
}
.profile-setup-textarea::placeholder {
  color: #C4BEB9;
  line-height: 1.6;
}
.profile-setup-submit {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: var(--space-3);
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.profile-setup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.profile-setup-submit:disabled {
  opacity: 0.5;
  transform: none;
  cursor: default;
}
.profile-setup-skip {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: var(--space-2);
  background: none;
  border: none;
  color: #A8A29E;
  font-size: var(--text-xs);
  cursor: pointer;
}

/* ===== 推广 Feed 卡片（一品一卡 · 横式紧凑）===== */
.promo-feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin-bottom: var(--space-5);
}

.promo-feed-card {
  background: #FFFCF5;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  align-items: center;
}

.promo-feed-img-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-feed-img-emoji {
  font-size: 2.5rem;
}

.promo-feed-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.promo-feed-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-feed-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.promo-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.promo-feed-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.promo-feed-tag--fee {
  background: #FFF7ED;
  color: #F97316;
}

.promo-feed-tag--comm {
  background: #F0FDF4;
  color: #16A34A;
}

.promo-feed-tag--super {
  background: #FEF2F2;
  color: #DC2626;
  font-weight: 600;
}

.promo-feed-tag--hot {
  background: #FFF7ED;
  color: #EA580C;
  font-weight: 600;
}

.promo-feed-tag--end {
  background: #FEF2F2;
  color: #DC2626;
}

.promo-feed-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  margin-top: 1px;
}

.promo-feed-earn {
  color: #EA580C;
  font-weight: 600;
}

.promo-feed-merchant {
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-feed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: var(--space-1);
}

.promo-go-btn {
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-instant) var(--ease-out), box-shadow var(--duration-instant) var(--ease-out);
}

.promo-go-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(249,115,22,0.3);
}

.promo-detail-btn {
  padding: 0;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.promo-detail-btn:active {
  color: var(--color-text-secondary);
}

/* ===== 分销选品 ===== */
/* 分类筛选栏 */
.dist-cat-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dist-cat-bar::-webkit-scrollbar { display: none; }

.dist-cat-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast);
}
.dist-cat-chip--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 分销 Feed 卡片（横式紧凑，与推广页统一） */
.dist-feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin-bottom: var(--space-5);
}

.dist-feed-card {
  background: #FFFCF5;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  align-items: center;
}

.dist-feed-img-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dist-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dist-feed-img-emoji {
  font-size: 2.5rem;
}

.dist-feed-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dist-feed-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dist-feed-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.dist-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.dist-feed-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.dist-feed-tag--fee {
  background: #FFF7ED;
  color: #F97316;
}

.dist-feed-tag--comm {
  background: #F0FDF4;
  color: #16A34A;
}

.dist-feed-tag--super {
  background: #FEF2F2;
  color: #DC2626;
  font-weight: 600;
}

.dist-feed-tag--hot {
  background: #FFF7ED;
  color: #EA580C;
  font-weight: 600;
}

.dist-feed-tag--end {
  background: #FEF2F2;
  color: #DC2626;
}

.dist-feed-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  margin-top: 1px;
}

.dist-feed-earn {
  color: #EA580C;
  font-weight: 600;
}

.dist-feed-merchant {
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dist-feed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: var(--space-1);
}

.dist-shelf-btn {
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-instant) var(--ease-out), box-shadow var(--duration-instant) var(--ease-out);
}

.dist-shelf-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(249,115,22,0.3);
}

.dist-shelf-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.dist-detail-btn {
  padding: 0;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.dist-detail-btn:active {
  color: var(--color-text-secondary);
}

.dist-guide-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  padding: var(--space-1) 0 0;
}

/* ===== 收益中心 ===== */
.earn-summary {
  margin-bottom: var(--space-5);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.earn-summary-main {
  background: linear-gradient(135deg, #F97316 0%, #FB923C 40%, #FDBA74 100%);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: #fff;
}

.earn-summary-label {
  font-size: var(--text-sm);
  opacity: .85;
  margin-bottom: 2px;
}

.earn-summary-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.earn-withdraw-btn {
  display: inline-block;
  padding: 8px 28px;
  background: rgba(255,255,255,.22);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.earn-withdraw-btn:active {
  background: rgba(255,255,255,.35);
  transform: scale(.96);
}

.earn-summary-row {
  display: flex;
  border-top: 1px solid var(--color-border-light);
}

.earn-summary-item {
  flex: 1;
  text-align: center;
  padding: var(--space-4) var(--space-2);
}

.earn-summary-item + .earn-summary-item {
  border-left: 1px solid var(--color-border-light);
}

.earn-summary-item-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.earn-summary-item-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.earn-val--green { color: #059669; }
.earn-val--amber { color: #D97706; }

/* Trend Chart */
.earn-chart {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-4) var(--space-2);
  margin-bottom: var(--space-5);
}

.earn-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
}

.earn-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #FED7AA;
  min-width: 4px;
  transition: background .15s;
  position: relative;
}

.earn-chart-bar--peak {
  background: var(--color-primary);
}

.earn-chart-labels {
  display: flex;
  gap: 2px;
  margin-top: var(--space-2);
}

.earn-chart-label {
  flex: 1;
  text-align: center;
  font-size: 7px;
  color: var(--color-text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Earnings List */
.earn-list {
  padding: 0 var(--space-4) var(--space-4);
}

.earn-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-3) 0;
  margin-bottom: var(--space-2);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.earn-item-left {
  min-width: 0;
  flex: 1;
}

.earn-item-product {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.earn-item-order {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.earn-item-breakdown {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-2);
}

.earn-item-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: var(--space-3);
}

.earn-item-amount {
  font-size: var(--text-base);
  font-weight: 700;
  color: #059669;
  letter-spacing: -0.02em;
}

.earn-item-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
}

.earn-status--confirmed { background: #ECFDF5; color: #059669; }
.earn-status--pending   { background: #FFFBEB; color: #D97706; }
.earn-status--cancelled { background: #FEF2F2; color: #DC2626; }

/* ===== 单品文案页 ===== */
.pc-step {
  margin-bottom: var(--space-5);
}

.pc-step-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.pc-step-num {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: #FFF7ED;
  padding: 2px 8px;
  border-radius: 100px;
}

.pc-step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.pc-product-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.pc-product-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.pc-product-img-emoji {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-product-info {
  flex: 1;
}

.pc-product-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.pc-product-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2px;
}

.pc-share-btn {
  background: #07C160;
  color: #fff;
  border: none;
  margin-top: 10px;
}

.pc-share-btn:active {
  background: #06AD56;
}

.pc-share-btn:disabled {
  background: #84DBA7;
  opacity: 0.7;
}

/* --- Article publish result card --- */
.pc-article-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: var(--space-4);
}

.pc-article-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pc-article-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-article-url-text {
  flex: 1;
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 8px;
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== WeChat Share Guide Overlay ===== */

.wx-share-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  animation: wxGuideFadeIn 0.3s ease;
}

@keyframes wxGuideFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wx-share-guide-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  max-width: 300px;
  width: 85%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: wxGuideSlideDown 0.3s ease;
}

@keyframes wxGuideSlideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.wx-share-guide-arrow {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  animation: wxArrowBounce 1.5s ease infinite;
}

@keyframes wxArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.wx-share-guide-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.wx-share-guide-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.wx-share-guide-tip {
  font-size: var(--text-xs);
  color: var(--color-primary);
  background: #FFF7ED;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.wx-share-guide-close {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

