/* ============================================
   云卡栈 - 高级感UI系统 v17.0
   电商功能增强20项（第281-300项）
   总计300项高级感优化
   ============================================ */

/* ========== 281. AI智能客服机器人 ========== */
.ai-chatbot-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatbotPulse 2s infinite;
}

@keyframes chatbotPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(59, 130, 246, 0.6); }
}

.ai-chatbot-btn:hover {
  transform: scale(1.1);
}

.ai-chatbot-window {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 360px;
  height: 500px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-chatbot-window.show {
  display: flex;
  animation: chatbotIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatbotIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chatbot-header {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-message.bot {
  background: var(--bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-message.user {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-light);
}

.ai-chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.ai-chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.ai-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* ========== 282. 语音搜索 ========== */
.voice-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.voice-search-btn:hover {
  background: var(--bg-secondary);
}

.voice-search-btn.recording {
  background: #ef4444;
  color: white;
  animation: voicePulse 1s infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 20px;
}

.voice-wave span {
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: voiceWave 0.5s infinite ease-in-out;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes voiceWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ========== 283. 图片搜索 ========== */
.image-search-btn {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
}

.image-search-btn:hover {
  background: var(--bg-secondary);
}

/* ========== 284. 商品问答区 ========== */
.qa-section {
  margin: 24px 0;
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qa-title {
  font-size: 18px;
  font-weight: 700;
}

.qa-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.qa-item {
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
}

.qa-question {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.qa-question-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.qa-question-content {
  flex: 1;
}

.qa-question-user {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.qa-question-text {
  font-size: 14px;
  line-height: 1.5;
}

.qa-answer {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-left: 42px;
}

.qa-answer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.qa-answer-content {
  flex: 1;
}

.qa-answer-seller {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  margin-bottom: 4px;
}

.qa-answer-text {
  font-size: 13px;
  line-height: 1.5;
}

.qa-input {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.qa-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.qa-input button {
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== 285. 买家秀晒单 ========== */
.buyer-show-section {
  margin: 24px 0;
}

.buyer-show-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.buyer-show-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-secondary);
}

.buyer-show-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.buyer-show-item:hover img {
  transform: scale(1.1);
}

.buyer-show-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.buyer-show-item:hover .buyer-show-overlay {
  opacity: 1;
}

.buyer-show-user {
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== 286. 拼团功能 ========== */
.group-buy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.group-buy-card {
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.group-buy-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.group-buy-now {
  font-size: 24px;
  font-weight: 800;
  color: #ef4444;
}

.group-buy-original {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.group-buy-progress {
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.group-buy-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.group-buy-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.group-buy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

/* ========== 287. 砍价功能 ========== */
.bargain-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.bargain-price {
  font-size: 32px;
  font-weight: 800;
  color: #ef4444;
  margin: 8px 0;
}

.bargain-original {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.bargain-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

.bargain-share {
  margin-top: 16px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== 288. 限时秒杀 ========== */
.flash-sale-section {
  background: linear-gradient(135deg, #1e1b4b, #7f1d1d);
  border-radius: 16px;
  padding: 20px;
  color: white;
  margin: 24px 0;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.flash-sale-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-sale-countdown {
  display: flex;
  gap: 6px;
}

.flash-sale-countdown-item {
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
}

.flash-sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.flash-sale-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.flash-sale-item-image {
  aspect-ratio: 1;
  background: var(--bg-secondary);
}

.flash-sale-item-info {
  padding: 8px;
}

.flash-sale-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #ef4444;
}

.flash-sale-item-original {
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.flash-sale-progress {
  height: 4px;
  background: #fee2e2;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.flash-sale-progress-bar {
  height: 100%;
  background: #ef4444;
}

/* ========== 289. 预售功能 ========== */
.presale-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.presale-info {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
}

.presale-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.presale-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.presale-step.done .presale-step-dot {
  background: #10b981;
}

/* ========== 290. 众筹功能 ========== */
.crowdfunding-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.crowdfunding-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.crowdfunding-info {
  padding: 16px;
}

.crowdfunding-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.crowdfunding-progress {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0;
}

.crowdfunding-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.crowdfunding-stats {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.crowdfunding-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}

.crowdfunding-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== 291. 商品规格选择器 ========== */
.sku-selector {
  margin: 16px 0;
}

.sku-group {
  margin-bottom: 16px;
}

.sku-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sku-option {
  padding: 8px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.sku-option:hover {
  border-color: var(--primary-300);
}

.sku-option.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}

.sku-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ========== 292. 数量选择器 ========== */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.quantity-btn:hover {
  background: var(--primary-100);
}

.quantity-btn:active {
  transform: scale(0.9);
}

.quantity-input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  background: var(--bg-card);
}

/* ========== 293. 地址管理增强 ========== */
.address-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.address-card.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.address-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-name {
  font-size: 15px;
  font-weight: 600;
}

.address-phone {
  font-size: 14px;
  color: var(--text-secondary);
}

.address-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.address-tag.default {
  background: var(--primary-100);
  color: var(--primary-600);
}

.address-tag.home {
  background: #dcfce7;
  color: #166534;
}

.address-tag.company {
  background: #dbeafe;
  color: #1e40af;
}

.address-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.address-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.address-action {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.address-action:hover {
  color: var(--primary-500);
}

/* ========== 294. 发票管理 ========== */
.invoice-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.invoice-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invoice-type {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.invoice-type-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
}

.invoice-type-btn.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}

/* ========== 295. 物流追踪 ========== */
.logistics-timeline {
  padding: 16px;
}

.logistics-step {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}

.logistics-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.logistics-step.active:not(:last-child)::after {
  background: var(--primary-500);
}

.logistics-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
}

.logistics-step.active .logistics-dot {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.logistics-step.current .logistics-dot {
  background: #10b981;
  border-color: #10b981;
  color: white;
  animation: logisticsPulse 2s infinite;
}

@keyframes logisticsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.logistics-content {
  flex: 1;
}

.logistics-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.logistics-step.active .logistics-title {
  font-weight: 600;
}

.logistics-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.logistics-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== 296. 订单备注 ========== */
.order-remark {
  margin: 16px 0;
}

.order-remark textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  resize: none;
  outline: none;
  min-height: 60px;
}

.order-remark textarea:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.order-remark-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ========== 298. 售后申请增强 ========== */
.aftersale-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.aftersale-type-item {
  padding: 16px 8px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aftersale-type-item:hover {
  border-color: var(--primary-300);
}

.aftersale-type-item.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.aftersale-type-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.aftersale-type-name {
  font-size: 13px;
  font-weight: 600;
}

.aftersale-reason {
  margin: 16px 0;
}

.aftersale-reason select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: var(--bg-card);
}

.aftersale-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.aftersale-image-item {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.aftersale-image-add {
  width: 70px;
  height: 70px;
  border: 2px dashed var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 11px;
  gap: 4px;
}

/* ========== 299. 退款进度追踪 ========== */
.refund-timeline {
  padding: 16px;
}

.refund-step {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}

.refund-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.refund-step.done:not(:last-child)::after {
  background: #10b981;
}

.refund-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
}

.refund-step.done .refund-dot {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.refund-step.current .refund-dot {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
  animation: logisticsPulse 2s infinite;
}

.refund-amount {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 16px;
}

.refund-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: #ef4444;
}

.refund-amount-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== 300. 订单评价增强 ========== */
.review-form {
  padding: 16px;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.review-star {
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--bg-secondary);
}

.review-star.active {
  color: #fbbf24;
  animation: starPop 0.3s ease;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.review-tag {
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-tag.selected {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-600);
}

.review-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.review-anonymous {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.review-followup {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.review-followup-label {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
  .ai-chatbot-window { width: calc(100% - 40px); right: 20px; }
  .buyer-show-grid { grid-template-columns: repeat(3, 1fr); }
  .aftersale-type-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-sale-grid { grid-template-columns: repeat(2, 1fr); }
}
