/* 中文注释：预售卡片与进度样式（适配常见主题） */
.zapa-presale-card {
  border: 1px solid #e6e6e6;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.zapa-presale-card .presale-header {
  font-weight: 600;
  margin-bottom: 8px;
}
.zapa-presale-card .presale-timer {
  font-size: 16px; /* 增大字体 */
  font-weight: 500;
  color: #333;
  background: linear-gradient(90deg, rgba(0,124,186,0.1) 0%, rgba(0,242,254,0.1) 100%); /* 渐变背景 */
  padding: 8px 12px; /* 内边距 */
  border-radius: 6px; /* 圆角 */
  display: flex;
  align-items: center;
  gap: 8px; /* 图标与文字间距 */
  margin-bottom: 12px;
  border: 1px solid rgba(0,124,186,0.2); /* 边框 */
  transition: all 0.3s ease; /* 平滑过渡 */
}
.zapa-presale-card .presale-timer::before {
  content: "⏰"; /* 添加时钟图标 */
  font-size: 14px;
}
.zapa-presale-card .presale-timer span {
  color: #007cba; /* 突出倒计时文字 */
  font-weight: 600;
}
.zapa-presale-card .presale-timer.ended {
  background: rgba(220,53,69,0.1); /* 结束时背景 */
  border-color: rgba(220,53,69,0.2);
  color: #dc3545;
}
.zapa-presale-card .presale-timer.ended span {
  color: #dc3545;
}
.zapa-presale-card .presale-timer.near-end {
  animation: pulse 1.5s infinite; /* 接近结束时闪烁动画 */
}
.zapa-presale-card .presale-progress {
  margin-top: 8px;
}
.progress-bar {
  width: 100%;
  height: 12px;
  background: #f1f1f1;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 999px;
}
.presale-remaining {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* 动画效果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 8px rgba(0,124,186,0.3); }
  100% { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .zapa-presale-card .presale-timer {
    font-size: 14px;
    padding: 6px 10px;
  }
  .zapa-presale-card .presale-timer::before {
    font-size: 12px;
  }
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .zapa-presale-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  .zapa-presale-card .presale-timer {
    background: linear-gradient(90deg, rgba(144,205,244,0.2) 0%, rgba(0,242,254,0.2) 100%);
    border-color: rgba(144,205,244,0.3);
    color: #e2e8f0;
  }
  .zapa-presale-card .presale-timer span {
    color: #90cdf4;
  }
  .zapa-presale-card .presale-timer.ended {
    background: rgba(220,53,69,0.2);
    border-color: rgba(220,53,69,0.3);
    color: #feb2b2;
  }
  .zapa-presale-card .presale-timer.ended span {
    color: #feb2b2;
  }
  .progress-bar {
    background: #4a5568;
  }
  .presale-remaining {
    color: #a0aec0;
  }
}