/* TASK CENTER */
.task-tabs {
  display: flex;
  background: var(--bg2, #fdfaf4);
  border-bottom: 1px solid var(--border, #eee);
  position: fixed;
  top: 110px;
  width: 100%;
  max-width: 480px;
  z-index: 49;
}

.task-tab {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
}

.task-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

#taskContent {
  padding: 16px 20px;
}

/* TASK ITEM */
.task-item {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: .2s;
}

.task-item:active {
  border-color: var(--gold);
}

.task-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.task-item-id {
  font-size: 13px;
  color: var(--text-muted);
}

.task-item-status {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 10px;
}

.task-item-status.active {
  background: rgba(74, 144, 217, .15);
  color: var(--blue);
}

.task-item-status.submitted {
  background: rgba(200, 169, 110, .15);
  color: var(--gold);
}

.task-item-status.settled {
  background: rgba(76, 175, 80, .15);
  color: var(--green);
}

.task-item-progress {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.task-item-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 2px;
  transition: .3s;
}

.task-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.task-item-commission {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

/* WORK PANEL */
.task-work-panel {
  position: fixed;
  top: 0;
  left: 50%;
  bottom: 64px;
  background: var(--bg);
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transition: .3s ease;
  width: 100%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.task-work-panel.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.task-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.task-progress-info {
  font-size: 13px;
  color: var(--text-muted);
}

.task-progress-info strong {
  color: var(--gold);
}

.task-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.task-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.task-product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.task-product-cat {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.task-product-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.task-product-row:last-child {
  border: none;
}

.task-product-row-label {
  color: var(--text-muted);
}

.task-product-row-val {
  color: var(--text);
  font-weight: 600;
}

.task-commission-highlight {
  background: rgba(76, 175, 80, .1);
  border: 1px solid rgba(76, 175, 80, .3);
  border-radius: var(--radius2);
  padding: 14px;
  margin: 16px 0;
  text-align: center;
}

.task-commission-amt {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Playfair Display', serif;
}

.task-commission-lbl {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.task-stars {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 12px 0;
}

.task-star {
  font-size: 24px;
  color: var(--gold);
}

.task-comment-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.task-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.task-submitting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  padding: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.task-complete-banner {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(200, 169, 110, .05), transparent);
}

.task-complete-banner .big-check {
  font-size: 64px;
  margin-bottom: 12px;
}

.task-complete-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 8px;
}

.task-complete-banner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* 新的高保真布局样式 */
.task-work-back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  padding: 0;
}

.task-work-back-btn:active {
  background: rgba(0, 0, 0, 0.6);
}

.task-product-card-wrap {
  background: var(--bg-card, #ffffff);
  border-radius: 12px;
  padding: 12px;
  margin-top: 20px;
  /* Reduced from 40px */
  margin-bottom: 10px;
  /* Reduced from 20px */
  display: flex;
  flex-direction: column;
  /* Force vertical stacking for image and name */
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-product-card-wrap img {
  width: auto;
  max-width: 80%;
  /* Prevent stretching too wide */
  max-height: 160px;
  /* Greatly reduced from 260px */
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto;
}

.task-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.task-col-item {
  display: flex;
  flex-direction: column;
}

.task-col-label {
  font-size: 14px;
  color: var(--text-secondary, #555555) !important;
  margin-bottom: 8px;
  white-space: nowrap;
  font-weight: 500;
}

.task-col-value {
  font-size: 16px;
  color: var(--text-primary, #111111) !important;
  font-weight: 700;
}

.task-col-value.highlight-gold {
  color: #b89240 !important;
}

.task-premium-info-card {
  background: rgba(30, 30, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
  position: relative;
}

.task-premium-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.task-premium-card-left {
  flex: 1;
}

.task-premium-card-right {
  width: 100px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-expected-title {
  font-size: 13px;
  color: var(--text-white, #ffffff);
  margin-bottom: 8px;
  font-weight: 500;
}

.task-expected-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.task-expected-star {
  font-size: 18px;
  color: var(--gold-light, #f9d877);
}

.btn-promote-now {
  background: linear-gradient(135deg, #a48259 0%, #7c5f3e 100%);
  border: none;
  color: var(--text-white, #ffffff);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(164, 130, 89, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
}

.btn-promote-now:active {
  transform: scale(0.98);
  box-shadow: 0 0 6px rgba(164, 130, 89, 0.2);
}

.task-card-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.task-quantity-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 8px;
}

.task-quantity-status svg {
  width: 14px;
  height: 14px;
}

.task-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-card-glass, rgba(255, 255, 255, 0.2));
  border-radius: 4px;
  overflow: hidden;
}

.task-progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light, #e3c482), #b89240);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Order History Specific CSS */
.oh-card {
  background: var(--bg-card, #fff);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.oh-header {
  padding: 14px 16px;
}

.oh-header-ordinary {
  background: linear-gradient(135deg, var(--bg-base, #FEF4D0) 0%, var(--gold-light, #EFB45F) 100%);
  color: var(--text-primary, #2C2C2C);
}

.oh-header-advanced {
  background: linear-gradient(135deg, var(--gold-light, #ffcc66) 0%, var(--gold-primary, #FF9900) 100%);
  color: var(--text-white, #ffffff);
}

.oh-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.oh-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  letter-spacing: 0.5px;
}

.oh-status-completed {
  color: #2ecc71;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oh-status-pending {
  color: #ff3b30;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oh-header-ordinary .oh-status-pending {
  color: #d32f2f;
}

.oh-header-advanced .oh-status-pending {
  color: var(--text-white, #ffffff);
  background: var(--bg-card-glass, rgba(255, 255, 255, 0.25));
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
}

.oh-quantities {
  font-size: 14px;
  opacity: 0.85;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.oh-header-ordinary .oh-quantities {
  color: rgba(44, 44, 44, 0.7);
}

.oh-body {
  padding: 16px;
  display: flex;
  gap: 15px;
  font-family: 'Inter', sans-serif;
}

.oh-details {
  flex: 1;
}

.oh-detail-row {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-primary, #111);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.oh-detail-label {
  font-weight: 500;
  color: var(--text-muted, #666);
  white-space: nowrap;
}

.oh-detail-value {
  font-weight: 700;
  color: var(--text-primary, #222);
}

.oh-image-wrap {
  width: 90px;
  height: 90px;
  background: #ffffff !important;
  border: 1px solid rgba(239, 180, 95, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.oh-image {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.oh-action {
  padding: 0 16px 16px 16px;
}

.oh-btn-ordinary {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light, #EFB45F) 0%, var(--gold-light, #dca331) 100%);
  color: var(--text-white, #fff);
  font-weight: 800;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(239, 180, 95, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.oh-btn-advanced {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light, #ffcc66) 0%, var(--gold-primary, #FF9900) 100%);
  color: var(--text-white, #fff);
  font-weight: 800;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.oh-btn-ordinary:active,
.oh-btn-advanced:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Account Details Card CSS */
.txn-card {
  background: var(--bg-card, #fff);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Times New Roman', serif;
  border: 1px solid var(--border, #eee);
}

.txn-card-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border, #eee);
}

.txn-card-header-deposit {
  background: var(--bg-deep, #000);
  color: var(--text-white, #fff);
}

.txn-card-header-withdraw {
  background: #eb4759;
  color: var(--text-white, #fff);
}

.txn-card-header-commission {
  background: #1f3a93;
  color: var(--text-white, #fff);
}

.txn-card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.txn-card-status {
  font-size: 13px;
  font-weight: bold;
  text-transform: capitalize;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-card-glass, rgba(255, 255, 255, 0.2));
}

.txn-card-body {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

.txn-card-details {
  flex: 1;
}

.txn-card-row {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-primary, #111);
  display: flex;
  gap: 6px;
}

.txn-card-label {
  font-weight: normal;
  color: var(--text-muted, #666);
}

.txn-card-value {
  font-weight: bold;
}

.txn-card-amt {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  text-align: right;
}

.txn-card-amt.pos {
  color: #2ecc71;
}

.txn-card-amt.neg {
  color: #eb4759;
}

/* ------------------------------------------- */
/* AI SECURITY PROMOTION SKEUOMORPHIC UI       */
/* ------------------------------------------- */
.ai-sk-window {
  width: 90%;
  max-width: 360px;
  background: var(--bg-deep, #000);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(230, 140, 30, 0.15);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  max-height: 80vh;
  overflow-y: auto;
}

.ai-sk-border-outer {
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-primary, #FF9900), var(--gold-light, #D4AF37), #8B5A00, var(--gold-primary, #FF9900));
  border-radius: 20px;
  position: relative;
}

.ai-sk-border-inner {
  background: radial-gradient(circle at center, var(--gold-light, #DCA965) 0%, #A67B38 50%, #6D4C1B 100%);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(255, 220, 120, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  border: 1px solid var(--gold-light, #FFEBB5);
  text-align: center;
}

/* Glowing Network Background */
.ai-sk-mesh {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background-image:
    radial-gradient(rgba(255, 230, 150, 0.3) 1px, transparent 1px),
    linear-gradient(45deg, transparent 48%, rgba(255, 220, 100, 0.1) 49%, rgba(255, 220, 100, 0.1) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 220, 100, 0.1) 49%, rgba(255, 220, 100, 0.1) 51%, transparent 52%);
  background-size: 30px 30px, 40px 40px, 40px 40px;
  background-position: center center;
  opacity: 0.8;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Header */
.ai-sk-header {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.ai-sk-shield {
  width: 45px;
  height: 45px;
  margin: 0 auto 6px auto;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.ai-sk-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: #FFF2C8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.5);
  margin: 0;
  letter-spacing: 0.5px;
}

.ai-sk-desc {
  font-size: 14px;
  color: var(--text-primary, #222);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 auto 12px auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Inner Data Box with Chamfered Corners */
.ai-sk-databox-wrap {
  padding: 2px;
  background: linear-gradient(180deg, var(--gold-light, #FFEBB5) 0%, #B88A44 100%);
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  margin-bottom: 15px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.ai-sk-databox {
  background: rgba(40, 25, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 10px 14px;
  position: relative;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.1);
}

.ai-sk-data-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(255, 215, 0, 0.03) 2px, rgba(255, 215, 0, 0.03) 4px);
  pointer-events: none;
}

.ai-sk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  position: relative;
  z-index: 2;
}

.ai-sk-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.ai-sk-label {
  color: #DDD;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px #000;
}

.ai-sk-val-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-sk-icon-arc {
  width: 35px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

.ai-sk-icon-small {
  width: 16px;
  height: 16px;
}

.ai-sk-val-gold {
  color: #FFF2C8;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 10px var(--gold-primary, #FF9900), 0 2px 3px #000;
}

.ai-sk-val-text {
  color: var(--text-white, #FFF);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.ai-sk-val-cyan {
  color: #00FFCC;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.8), 0 1px 2px #000;
  letter-spacing: 1px;
}

/* Button Slot */
.ai-sk-btn-slot {
  background: linear-gradient(180deg, #A85400, #E67E00, #8A4500);
  padding: 6px;
  border-radius: 50px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.ai-sk-btn-pill {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  background: linear-gradient(180deg, var(--bg-base, #FFF3CC) 0%, var(--gold-light, #DCA965) 30%, #A67B38 50%, var(--gold-light, #DCA965) 70%, #FFF3CC 100%);
  border: 1px solid #FFF2C8;
  color: #3D2303;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.ai-sk-btn-pill:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.ai-sk-btn-pill:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

.ai-sk-btn-pill:disabled {
  background: linear-gradient(180deg, #7A6953 0%, #4D3F2E 50%, #7A6953 100%);
  color: var(--text-primary, #2A2116);
  border-color: #5C4D3C;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
  text-shadow: none;
}

.ai-sk-ready {
  font-size: 13px;
  font-weight: 800;
  color: #FFF2C8;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.ai-sk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-base, #FFF2C8);
  box-shadow: 0 0 8px var(--gold-primary, #FF9900), 0 0 16px var(--gold-primary, #FF9900);
  animation: sk-pulse 1.5s infinite alternate;
}

@keyframes sk-pulse {
  from {
    opacity: 0.5;
    box-shadow: 0 0 4px var(--gold-primary, #FF9900);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 12px var(--gold-primary, #FF9900), 0 0 20px #FFDF73;
  }
}

/* ----------------------------------------------------
   TASK CARD OPTIMIZATION
   ---------------------------------------------------- */
/* :root definitions moved to global.css */

/* 整体背景保持奶昔金的干净优雅 */
.product-promote-wrapper {
  background-color: var(--milkshake-gold-light);
  padding: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  flex: 1;
  min-height: 100%;
  overflow-y: auto;
}

/* 1. 动态商品容器：自带悬浮微光，完美兼容任何鞋子、3C等动态图片 */
.product-image-container {
  background: var(--bg-card, #FFFFFF);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(122, 90, 48, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 275px;
  /* Force a consistent compact height */
}

.product-image-container img {
  /* ---------------------------------------------------- */
  /* [图片缩放比例调节] */
  /* 修改此处的百分比，可以控制图片在容器内的整体缩放大小。 */
  /* 100% 为撑满容器，80% 则会缩小留出周围空白边缘 */
  --img-scale: 85%; 
  /* ---------------------------------------------------- */
  max-width: var(--img-scale);
  max-height: var(--img-scale);
  /* Ensure it scales down vertically */
  object-fit: contain;
}

/* 2. 数据指标：拉开层级 */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
  text-align: center;
}

.metric-item .label {
  font-size: 14px;
  color: var(--milkshake-gold-dark);
  /* 灰色改为深咖金 */
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.metric-item .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #111111);
}

.metrics-grid .metric-item:nth-child(4),
.metrics-grid .metric-item:nth-child(5) {
  position: relative;
}

.metrics-grid .metric-item:nth-child(4)::after,
.metrics-grid .metric-item:nth-child(5)::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border);
}

/* 强化刺激核心佣金 */
.metric-item.highlight .commission-text {
  color: var(--amazon-orange);
  font-size: 17px;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.2);
}

/* 3. AI 智能卡片：彻底抛弃死灰色，换成奢华透光的黑金赛博面板 */
.ai-action-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, rgba(232, 216, 184, 0.5));
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.05));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary, #7a5a30);
  font-size: 13px;
}

.star-rating {
  color: #FFD700;
  /* 优化：增加一层微弱的暗色投影勾勒边缘，解决在浅色/暖金背景下发光导致边缘模糊的问题，同时保留金光氛围 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 8px var(--gold-glow, rgba(255, 153, 0, 0.2));
}

/* 按钮优化：高饱和度的 Amazon 橙色高光填充，极具点击欲 */
.btn-promote-now {
  width: 100%;
  padding: 14px;
  margin: 16px 0;
  background: linear-gradient(90deg, var(--gold-primary, #FF9900) 0%, var(--gold-dark, #E65C00) 100%);
  border: none;
  border-radius: 50px;
  /* 更加圆润流畅的现代药丸形 */
  color: var(--text-white, #FFFFFF);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--gold-glow, rgba(255, 153, 0, 0.2));
  transition: transform 0.2s, filter 0.2s;
}

.btn-promote-now:active {
  transform: scale(0.98);
}

/* 进度条优化：变成发光的流光能量条 */
.progress-info {
  font-size: 14px;
  color: var(--text-muted, #7a5a30);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-card-glass, rgba(0, 0, 0, 0.06));
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  /* 从 Amazon 橙向发光金渐变，并在视觉上有流光动画 */
  background: linear-gradient(90deg, var(--amazon-orange), #FFD700);
  box-shadow: 0 0 8px var(--amazon-orange);
  border-radius: 10px;
  transition: width 0.3s ease;
}