/* 左侧导航卡片样式 */
.left-navigation-card {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  z-index: 999;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFB366 0%, #FF4444 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.left-navigation-card.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.left-nav-content {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.left-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.left-nav-item {
  margin: 0;
}

.left-nav-item a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.left-nav-item.active a,
.left-nav-item a:hover {
  color: #FF4444;
  background: #FFF5F5;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .left-navigation-card {
    width: 180px;
    left: 10px;
  }
  
  .left-nav-content {
    padding: 16px 12px;
  }
  
  .left-nav-item a {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .left-navigation-card {
    display: none;
  }
}

/* 活动倒计时动画样式 */
.countdown-animation-section {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: none;
}

.countdown-animation-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-animation-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.countdown-animation-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.countdown-animation-title i {
  font-size: 28px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.countdown-animation-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.countdown-number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-number {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  font-size: 48px;
  font-weight: 700;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  backface-visibility: visible;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.countdown-number.flip-animation {
  animation: flip 0.6s ease-in-out;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotateX(90deg) scale(0.95);
    opacity: 0.3;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

.countdown-number:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.countdown-label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-separator {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 5px;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .countdown-animation-container {
    padding: 25px 20px;
  }

  .countdown-animation-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .countdown-animation-title i {
    font-size: 24px;
  }

  .countdown-number {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .countdown-label {
    font-size: 12px;
  }

  .countdown-separator {
    font-size: 28px;
  }

  .countdown-animation-content {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .countdown-animation-container {
    padding: 20px 15px;
  }

  .countdown-animation-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .countdown-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .countdown-label {
    font-size: 11px;
  }

  .countdown-separator {
    font-size: 24px;
    margin: 0 3px;
  }

  .countdown-animation-content {
    gap: 8px;
  }
}

/* 活动倒计时样式 - 现代简洁设计 */
.countdown-section {
  max-width: 1200px;
  margin: 60px auto 80px;
  padding: 0 16px;
  text-align: center;
  contain: layout;
}

/* 容器查询：倒计时容器 */
@container (max-width: 600px) {
  .countdown-container {
    gap: 12px;
  }
  
  .countdown-number {
    font-size: 32px;
    min-width: 50px;
  }
  
  .countdown-separator {
    font-size: 24px;
  }
  
  .countdown-label {
    font-size: 12px;
  }
}

@container (max-width: 400px) {
  .countdown-container {
    gap: 8px;
  }
  
  .countdown-number {
    font-size: 24px;
    min-width: 40px;
  }
  
  .countdown-separator {
    font-size: 20px;
  }
}

.countdown-title {
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 48px;
  font-weight: 700;
  color: #000;
  transition: transform 0.2s ease;
  padding: 0;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  height: 58px;
  min-width: 60px;
  contain: layout;
}

.countdown-number:hover {
  transform: translateY(-2px);
}

.countdown-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  text-align: center;
}

.countdown-separator {
  font-size: 36px;
  font-weight: 700;
  margin: 0 4px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  align-self: flex-start;
  margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .countdown-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .countdown-container {
    gap: 16px;
  }
  
  .countdown-number {
    font-size: 36px;
  }
  
  .countdown-separator {
    font-size: 28px;
    padding-bottom: 15px;
  }
  
  .countdown-label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .countdown-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .countdown-container {
    gap: 12px;
  }
  
  .countdown-number {
    font-size: 28px;
  }
  
  .countdown-separator {
    font-size: 24px;
    padding-bottom: 12px;
    margin: 0 2px;
  }
  
  .countdown-label {
    font-size: 12px;
  }
}

/* 活动专区样式 */
.activity { max-width: 1200px; margin: 80px auto 40px; padding: 0 16px; contain: layout; }
.activity-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.activity-header h3 { margin: 0; font-size: 28px; font-weight: 700; color: #222; }
.activity-header p { margin: 0; color: #666; }
.activity-header .activity-rule { color: #f53d3d; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.activity-header .activity-rule:hover { text-decoration: underline; }

.activity-grid .activity-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  gap: 16px; 
  overflow-x: auto; 
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

/* 容器查询：活动网格布局 */
@container (max-width: 1024px) {
  .activity-grid .activity-list > li {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

@container (max-width: 640px) {
  .activity-grid .activity-list > li {
    flex: 0 0 240px;
    min-width: 240px;
  }
}

.activity-grid .activity-list:active {
  cursor: grabbing;
}

.activity-grid .activity-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.activity-grid .activity-list > li {
  flex: 0 0 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.activity-card { 
  position: relative; 
  background: #fff; 
  border-radius: 10px; 
  border: 1px solid #eee; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.06); 
  padding: 16px; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  contain: layout style;
}

/* 容器查询：活动卡片 */
@container (max-width: 320px) {
  .activity-card {
    padding: 12px;
    min-height: 450px;
  }
  
  .activity-card-title span {
    font-size: 16px;
  }
  
  .activity-card-sub {
    font-size: 11px;
  }
  
  .spec-row {
    font-size: 12px;
  }
  
  .activity-price .price {
    font-size: 18px;
  }
  
  .activity-buy {
    padding: 8px 0;
    font-size: 13px;
  }
  
  .duration-switch button,
  .bandwidth-switch button,
  .memory-switch button,
  .storage-switch button {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@container (min-width: 321px) and (max-width: 400px) {
  .activity-card {
    padding: 14px;
  }
  
  .activity-card-title span {
    font-size: 17px;
  }
  
  .activity-price .price {
    font-size: 20px;
  }
}
.activity-badge { position: absolute; top: 8px; right: 12px; left: auto; background: linear-gradient(90deg, #ff7b91, #ff4d5a); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 14px; box-shadow: 0 4px 10px rgba(255,77,90,0.35); }

.activity-card-title { margin-top: 16px; }
.activity-card-title span { font-size: 18px; font-weight: 700; color: #222; }
.activity-card-sub { margin: 6px 0 12px; font-size: 12px; color: #666; }
.activity-divider { height: 1px; background: #eee; margin: 8px 0 12px; }

.activity-specs { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.spec-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #333; }
.spec-label { color: #888; }

.duration-switch { display: inline-flex; gap: 8px; }
.duration-switch button { border: 1px solid #ddd; background: #fafafa; color: #333; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.duration-switch button.active { background: #1e80ff; border-color: #1e80ff; color: #fff; }

.bandwidth-switch { display: inline-flex; gap: 8px; }
.bandwidth-switch button { border: 1px solid #ddd; background: #fafafa; color: #333; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.bandwidth-switch button.active { background: #ff6b35; border-color: #ff6b35; color: #fff; }

.memory-switch { display: inline-flex; gap: 8px; }
.memory-switch button { border: 1px solid #ddd; background: #fafafa; color: #333; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.memory-switch button.active { background: #52c41a; border-color: #52c41a; color: #fff; }

.storage-switch { display: inline-flex; gap: 8px; }
.storage-switch button { border: 1px solid #ddd; background: #fafafa; color: #333; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.storage-switch button.active { background: #1890ff; border-color: #1890ff; color: #fff; }

.activity-limit { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 12px; color: #888; }

.activity-limit .tag-orange { display: inline-block; background: #fff7e6; border: 1px solid #ffd591; color: #fa8c16; padding: 2px 8px; border-radius: 12px; font-weight: 600; }

/* 秒杀活动样式覆盖 - 移除白色背景 */
.seckill-section .activity-section {
  background: transparent !important;
  border-radius: 0;
  margin-bottom: 24px;
}

.seckill-section .activity-card {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

/* 绿色成功提示（图二样式，替代浏览器 alert） */
.activity-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #2e7d32;
  font-size: 14px;
  line-height: 1.5;
  animation: activityToastIn 0.3s ease;
}
.activity-toast-hide {
  animation: activityToastOut 0.3s ease forwards;
}
.activity-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4caf50;
  color: #fff;
  flex-shrink: 0;
}
.activity-toast-icon .bi {
  font-size: 14px;
}
.activity-toast-text {
  flex: 1;
}

/* 错误/警告提示（插件风格） */
.activity-toast-error {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #c62828;
}
.activity-toast-error .activity-toast-icon {
  background: #e53935;
  color: #fff;
}

@keyframes activityToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes activityToastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
}

/* 秒杀确认弹窗 */
.seckill-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.seckill-confirm-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.seckill-confirm-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seckill-confirm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
}

.seckill-confirm-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.seckill-confirm-modal-close:hover {
  color: #181818;
}

.seckill-confirm-modal-body {
  padding: 24px;
  text-align: center;
}

.seckill-confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.seckill-confirm-modal-body h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #181818;
}

.seckill-confirm-product {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.seckill-confirm-name {
  font-size: 16px;
  font-weight: 600;
  color: #181818;
  margin-bottom: 8px;
}

.seckill-confirm-config {
  font-size: 14px;
  color: #4b5b76;
  margin-bottom: 12px;
}

.seckill-confirm-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seckill-confirm-price-label {
  font-size: 14px;
  color: #4b5b76;
}

.seckill-confirm-price-value {
  font-size: 20px;
  font-weight: 700;
  color: #ff4444;
}

.seckill-confirm-tip {
  font-size: 14px;
  color: #8c8c8c;
  margin: 0;
}

.seckill-confirm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.seckill-confirm-btn-cancel,
.seckill-confirm-btn-confirm {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.seckill-confirm-btn-cancel {
  background: #f5f7fa;
  color: #4b5b76;
}

.seckill-confirm-btn-cancel:hover {
  background: #e8e8e8;
}

.seckill-confirm-btn-confirm {
  background: linear-gradient(90deg, #ff5800 0%, #ff7a00 100%);
  color: #fff;
}

.seckill-confirm-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(90deg, #ff7a00 0%, #ff9a00 100%);
}

.seckill-confirm-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 秒杀成功弹窗 */
.seckill-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  animation: fadeIn 0.3s ease;
}

.seckill-success-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.seckill-success-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.seckill-success-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
  text-align: center;
}

.seckill-success-modal-body {
  padding: 24px;
  text-align: center;
}

.seckill-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.seckill-success-modal-body h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #181818;
}

.seckill-success-product {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.seckill-success-name {
  font-size: 16px;
  font-weight: 600;
  color: #181818;
  margin-bottom: 12px;
}

.seckill-success-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seckill-success-price-label {
  font-size: 14px;
  color: #4b5b76;
}

.seckill-success-price-value {
  font-size: 20px;
  font-weight: 700;
  color: #ff4444;
}

.seckill-expire-countdown {
  margin-top: 16px;
  padding: 12px;
  background: #fff7e6;
  border-radius: 4px;
  border: 1px solid #ffd591;
}

.seckill-expire-countdown p {
  margin: 4px 0;
  font-size: 14px;
  color: #fa8c16;
}

.seckill-expire-time {
  font-weight: 700;
  font-size: 16px;
}

.seckill-success-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.seckill-success-btn-later,
.seckill-success-btn-now {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.seckill-success-btn-later {
  background: #f5f7fa;
  color: #4b5b76;
}

.seckill-success-btn-later:hover {
  background: #e8e8e8;
}

.seckill-success-btn-now {
  background: linear-gradient(90deg, #ff5800 0%, #ff7a00 100%);
  color: #fff;
}

.seckill-success-btn-now:hover:not(:disabled) {
  background: linear-gradient(90deg, #ff7a00 0%, #ff9a00 100%);
}

.seckill-success-btn-now:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 秒杀活动规则弹窗 */
.seckill-rules-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.seckill-rules-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.seckill-rules-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seckill-rules-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
}

.seckill-rules-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.seckill-rules-modal-close:hover {
  color: #181818;
}

.seckill-rules-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 50vh;
  font-size: 14px;
  color: #4b5b76;
  line-height: 1.8;
}

/* 规则内容内嵌 HTML 样式，与插件活动规则展示一致 */
.seckill-rules-modal-body h3,
.seckill-rules-modal-body h4 {
  color: #181818;
  font-weight: 600;
  margin: 16px 0 8px;
}
.seckill-rules-modal-body h3 { font-size: 16px; }
.seckill-rules-modal-body h4 { font-size: 15px; }
.seckill-rules-modal-body h3:first-child,
.seckill-rules-modal-body h4:first-child { margin-top: 0; }

.seckill-rules-modal-body p {
  margin: 0 0 8px 0;
}

.seckill-rules-modal-body strong {
  color: #181818;
  font-weight: 600;
}

.seckill-rules-modal-body ul,
.seckill-rules-modal-body ol {
  margin: 8px 0;
  padding-left: 20px;
}

.seckill-rules-modal-body li {
  margin-bottom: 6px;
}

/* 表格样式：类别/详细说明等 */
.seckill-rules-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.seckill-rules-modal-body th,
.seckill-rules-modal-body td {
  border: 1px solid #e8e8e8;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.seckill-rules-modal-body th {
  background: #f5f7fa;
  color: #181818;
  font-weight: 600;
  white-space: nowrap;
  width: 80px;
}

.seckill-rules-modal-body td {
  color: #4b5b76;
}

/* 拼团活动选择类型弹窗 */
.group-buy-type-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  animation: fadeIn 0.3s ease;
}

.group-buy-type-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  max-height: 80vh;
}

.group-buy-type-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-buy-type-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
}

.group-buy-type-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.group-buy-type-modal-close:hover {
  color: #181818;
}

.group-buy-type-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.group-buy-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-buy-type-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.group-buy-type-item:hover {
  border-color: #0052d9;
  background: #f5f9ff;
}

.group-buy-type-item.active {
  border-color: #0052d9;
  background: #f5f9ff;
}

.group-buy-type-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-buy-type-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.group-buy-type-item.active .group-buy-type-radio {
  border-color: #0052d9;
}

.group-buy-type-item.active .group-buy-type-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #0052d9;
  border-radius: 50%;
}

.group-buy-type-name {
  font-size: 16px;
  font-weight: 600;
  color: #181818;
}

.group-buy-type-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.group-buy-type-price {
  font-size: 20px;
  font-weight: 700;
  color: #ff4444;
}

.group-buy-type-price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
}

.group-buy-type-original-price {
  color: #8c8c8c;
  text-decoration: line-through;
}

.group-buy-type-discount {
  color: #52c41a;
}

/* 拼团活动确认弹窗 */
.group-buy-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10004;
  animation: fadeIn 0.3s ease;
}

.group-buy-confirm-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.group-buy-confirm-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-buy-confirm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #181818;
}

.group-buy-confirm-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.group-buy-confirm-modal-close:hover {
  color: #181818;
}

.group-buy-confirm-modal-body {
  padding: 24px;
}

.group-buy-confirm-content {
  line-height: 1.8;
  color: #4b5b76;
}

.group-buy-confirm-content p {
  margin: 12px 0;
  font-size: 14px;
}

.group-buy-highlight {
  color: #ff4444;
  font-weight: 700;
}

.group-buy-discount-info {
  color: #8c8c8c;
  font-size: 12px;
}

.group-buy-public-option {
  margin: 16px 0;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 4px;
}

.group-buy-public-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #181818;
}

.group-buy-public-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.group-buy-public-tip {
  margin: 8px 0 0 24px;
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.group-buy-confirm-question {
  margin-top: 20px !important;
  font-weight: 600;
  color: #181818 !important;
}

.group-buy-confirm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.group-buy-confirm-btn-back,
.group-buy-confirm-btn-confirm {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.group-buy-confirm-btn-back {
  background: #f5f7fa;
  color: #4b5b76;
}

.group-buy-confirm-btn-back:hover {
  background: #e8e8e8;
}

.group-buy-confirm-btn-confirm {
  background: linear-gradient(90deg, #0052d9 0%, #4d91ff 100%);
  color: #fff;
}

.group-buy-confirm-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(90deg, #4d91ff 0%, #0052d9 100%);
}

.group-buy-confirm-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.activity-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; margin-bottom: 12px; }
.activity-price .price { color: #f53d3d; font-weight: 800; font-size: 22px; }
.activity-price .original { color: #999; font-size: 12px; }

.activity-buy { display: block; text-align: center; padding: 10px 0; background: #ff4d5a; color: #fff; border-radius: 8px; margin-top: auto; text-decoration: none; font-weight: 600; }
.activity-buy:hover { background: #ff2f47; }

@media (max-width: 1024px) {
  .activity-grid .activity-list > li {
    flex: 0 0 260px;
    min-width: 260px;
  }
}
@media (max-width: 640px) {
  .activity-grid .activity-list > li {
    flex: 0 0 240px;
    min-width: 240px;
  }
  .activity-card {
    padding: 12px;
  }
}


/**
 * 首页拼团模块样式
 * 参考腾讯云风格，适配Hezi模板
 * @author Custom Development
 */

/* ========== 拼团模块容器 ========== */

/* ========== 拼团活动（cany_group_buy 活动卡片） ========== */
.group-buy-section {
  margin-top: 60px;
}

.group-buy-activity-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.group-buy-activity-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1e6ef;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.group-buy-activity-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #d0d5de;
  transform: translateY(-2px);
}

.group-buy-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.group-buy-card-header {
  margin-bottom: 16px;
}

.group-buy-card-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.2s;
  width: 100%;
}

.group-buy-card-title:hover {
  color: #0052d9;
}

.group-buy-card-title i {
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  color: inherit;
  flex-shrink: 0;
  margin-left: 8px;
}

.group-buy-card-subtitle {
  font-size: 12px;
  color: #97a3b7;
  margin: 0;
  line-height: 20px;
}

.group-buy-card-body {
  flex: 1;
}

.group-buy-config-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.group-buy-config-item {
  font-size: 20px;
  font-weight: 700;
  color: #0052d9;
  line-height: 28px;
  display: block;
  word-break: break-all;
  white-space: normal;
  cursor: default;
}

.group-buy-info-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: auto;
  padding-top: 12px;
}

.group-buy-info-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  line-height: 20px;
}

.group-buy-info-label {
  color: #97a3b7;
  background: #f5f7fa;
  padding: 0 8px;
  border-radius: 2px;
  margin-right: 12px;
  white-space: nowrap;
}

.group-buy-info-value {
  color: #181818;
}

.group-buy-card-footer {
  padding: 0;
  width: 100%;
  background: linear-gradient(86deg, #f7faff 5.22%, #f5f9ff 71.3%);
  border-top: 1px solid rgba(0, 82, 217, 0.1);
}

.group-buy-card-footer-inner {
  padding: 12px 16px;
}

.group-buy-tag-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.group-buy-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 18px;
}

.group-buy-tag-item {
  font-size: 12px;
  padding: 0 3px;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 16px;
  height: 18px;
  display: inline-flex;
  align-items: center;
}

.group-buy-tag-first {
  background: linear-gradient(90deg, #ff5800 0%, #ff7a00 100%);
  color: #fff;
  border: none;
  padding: 0 6px;
}

.group-buy-tag-normal {
  background: #fff;
  border: 1px solid #d6dbe3;
  color: #4b5b76;
}

.group-buy-price-section {
  text-align: right;
  flex-shrink: 0;
}

.group-buy-price-current {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
}

.group-buy-price-label {
  font-size: 12px;
  color: #97a3b7;
  margin-right: 2px;
}

.group-buy-price-integer {
  font-size: 24px;
  font-weight: 700;
  color: #f64041;
  line-height: 1;
}

.group-buy-price-decimal {
  font-size: 14px;
  font-weight: 700;
  color: #f64041;
}

.group-buy-price-unit {
  font-size: 12px;
  color: #f64041;
  margin-left: 2px;
}

.group-buy-price-average {
  font-size: 11px;
  color: #97a3b7;
  margin-left: 6px;
}

.group-buy-price-original {
  font-size: 12px;
  color: #97a3b7;
  margin-top: 2px;
}

.group-buy-price-original .value {
  text-decoration: line-through;
}

.group-buy-progress-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 82, 217, 0.05);
}

.group-buy-progress-section {
  flex: 1;
  margin-right: 16px;
}

.group-buy-progress-bar {
  height: 4px;
  background: #e8ecf2;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
}

.group-buy-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #0052d9 0%, #4d91ff 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
}

.group-buy-progress-desc {
  font-size: 12px;
  color: #97a3b7;
  line-height: 20px;
}

.group-buy-btn-join {
  background: linear-gradient(90deg, #ff7e57 0%, #ff5825 100%);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 22px;
  text-decoration: none;
  display: inline-block;
}

.group-buy-btn-join:hover {
  background: linear-gradient(90deg, #ff6d40 0%, #f6501d 100%);
  color: #fff;
  text-decoration: none;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
  .group-buy-activity-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 960px;
  }
}

@media screen and (max-width: 768px) {
  /* 横向滚动样式已在 @media (max-width: 1024px) 中定义，这里只保留其他样式 */
  .group-buy-activity-list {
    /* 横向滚动样式已在 @media (max-width: 1024px) 中定义 */
  }
  
  .group-buy-activity-card {
    /* 横向滚动样式已在 @media (max-width: 1024px) 中定义 */
  }
  
  .group-buy-card-content {
    padding: 16px;
    min-height: 150px;
  }
  
  .group-buy-card-title {
    font-size: 18px;
    line-height: 26px;
  }
  
  .group-buy-config-item {
    font-size: 16px;
    line-height: 24px;
  }
  
  .group-buy-tag-price-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .group-buy-price-section {
    text-align: left;
  }
  
  .group-buy-price-current {
    justify-content: flex-start;
  }
  
  .group-buy-progress-btn-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .group-buy-progress-section {
    margin-right: 0;
    width: 100%;
  }
  
  .group-buy-btn-join {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
  }
}

/* ========== 促销活动（event_promotion 参与产品卡片） ========== */
.promo-activity-section {
  margin-top: 60px;
}

/* 促销活动分类标题 */
.promo-activity-category {
  margin-bottom: 50px;
}

.promo-activity-category:last-child {
  margin-bottom: 0;
}

.promo-category-title {
  margin-bottom: 30px;
  text-align: center;
}

.promo-category-title h3 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-block;
}

.promo-category-title h3::before,
.promo-category-title h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d5a);
}

.promo-category-title h3::before {
  left: -80px;
  background: linear-gradient(90deg, #ff4d5a, transparent);
}

.promo-category-title h3::after {
  right: -80px;
}

@media (max-width: 768px) {
  .promo-category-title h3::before,
  .promo-category-title h3::after {
    width: 30px;
  }
  
  .promo-category-title h3::before {
    left: -50px;
  }
  
  .promo-category-title h3::after {
    right: -50px;
  }
}

.promo-activity-section {
  margin-top: 0;
}

/* 地区分组标题 */
.promo-region-block {
  margin-top: 24px;
}

.promo-region-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* ========== 促销活动横向滚动布局 ========== */
.promo-activity-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  padding-bottom: 10px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  /* 触摸设备优化：允许水平和垂直滚动，但优先水平滚动 */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.promo-activity-scroll:active {
  cursor: grabbing;
}

/* 触摸设备上禁用grab光标 */
@media (hover: none) and (pointer: coarse) {
  .promo-activity-scroll {
    cursor: default;
  }
  
  .promo-activity-scroll:active {
    cursor: default;
  }
}

.promo-activity-scroll::-webkit-scrollbar {
  height: 6px;
}

.promo-activity-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.promo-activity-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.promo-activity-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 促销活动网格 - 横向滚动布局 */
.promo-activity-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
  width: max-content;
  /* 防止卡片被拉伸 */
  flex-wrap: nowrap;
}

/* 默认：大屏幕一排显示4个卡片，每个卡片宽度约280-300px */
.promo-activity-grid .promo-activity-card {
  flex-shrink: 0;
  flex-grow: 0;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  /* 防止内容拉伸卡片 */
  box-sizing: border-box;
}

/* 超大屏幕：卡片可以稍微宽一点，但一排仍然显示4个 */
@media (min-width: 1600px) {
  .promo-activity-grid .promo-activity-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* 中等屏幕：一排显示3个卡片 */
@media (max-width: 1400px) and (min-width: 1201px) {
  .promo-activity-grid .promo-activity-card {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* 小屏幕：一排显示2个卡片 */
@media (max-width: 1200px) and (min-width: 769px) {
  .promo-activity-grid .promo-activity-card {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* 移动端：一排显示1个卡片，可以滑动 */
@media (max-width: 768px) {
  .promo-activity-grid .promo-activity-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .promo-activity-scroll {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* 允许垂直滚动 */
    touch-action: pan-x pan-y;
  }
  
  .promo-activity-grid .promo-activity-card {
    scroll-snap-align: start;
  }
}

/* ========== 促销活动卡片样式（按图片设计） ========== */
.promo-activity-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  min-height: 480px;
  /* 确保卡片本身不阻止垂直滚动 */
  touch-action: auto;
}

.promo-activity-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 右上角标签 */
.promo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff7b91 0%, #ff4d5a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(255, 77, 90, 0.35);
  z-index: 10;
  white-space: nowrap;
  transform: rotate(0deg);
}

/* 卡片内容区 */
.promo-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 产品标题和描述 */
.promo-card-header {
  margin-bottom: 12px;
  padding-right: 85px; /* 为右上角标签留空间 */
  flex-shrink: 0;
}

.promo-product-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.promo-product-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* 分隔线 */
.promo-divider {
  height: 1px;
  background: #eee;
  margin: 12px 0;
  border: none;
}

/* 产品规格 */
.promo-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  flex: 1;
}

.promo-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
}

.promo-spec-label {
  color: #333;
  font-weight: 500;
}

.promo-spec-value {
  color: #333;
  font-weight: 400;
}

.promo-spec-select {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.promo-spec-select:hover {
  border-color: #ff4d5a;
}

.promo-spec-select:focus {
  border-color: #ff4d5a;
  box-shadow: 0 0 0 2px rgba(255, 77, 90, 0.1);
}


/* 配置选项按钮组（内存、线路、带宽、硬盘） */
.promo-config-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.promo-config-btn {
  padding: 6px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: #666;
  min-width: 60px;
  white-space: nowrap;
  /* 触摸设备优化 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.promo-config-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.3);
}

.promo-config-btn:hover:not(.active) {
  background: #f5f5f5;
  border-color: #ff4d5a;
  color: #333;
}

/* 标签和价格区域 */
.promo-tags-price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
}

.promo-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-feature-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #fa8c16;
  font-weight: 600;
  white-space: nowrap;
}

.promo-price-section {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.promo-current-price {
  font-size: 28px;
  font-weight: 800;
  color: #f53d3d;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.promo-original-price {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.promo-original-price del {
  text-decoration: line-through;
}

/* 购买按钮 */
.promo-card-footer {
  padding: 0;
  border-top: 1px solid #f0f0f0;
}

.promo-buy-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: #ff4d5a;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  letter-spacing: 0.5px;
  /* 触摸设备优化 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* 确保按钮在移动端有足够的点击区域 */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-buy-btn:hover {
  background: #ff2f47;
  color: #fff;
  text-decoration: none;
}

/* 售罄状态按钮样式 */
.promo-buy-btn-soldout {
  background: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.promo-buy-btn-soldout:hover {
  background: #cccccc !important;
  color: #666666 !important;
  text-decoration: none;
}

/* ========== 响应式适配 - 促销活动 ========== */

/* 平板端 (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .promo-activity-grid .promo-activity-card {
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  /* 平板竖屏优化 */
  @media (orientation: portrait) {
    .promo-activity-grid .promo-activity-card {
      width: 300px;
      min-width: 300px;
      max-width: 300px;
    }
  }
  
  /* 平板横屏优化 */
  @media (orientation: landscape) {
    .promo-activity-grid .promo-activity-card {
      width: 320px;
      min-width: 320px;
      max-width: 320px;
    }
  }
  .promo-activity-section {
    margin-top: 40px;
  }
  
  
  .Heziyun-commodity-title span {
    font-size: 26px;
  }
  
  .Heziyun-commodity-title p {
    font-size: 14px;
  }
  
  .promo-activity-category {
    margin-bottom: 40px;
  }
  
  .promo-category-title {
    margin-bottom: 25px;
  }
  
  .promo-category-title h3 {
    font-size: 24px;
  }
  
  .promo-region-title {
    font-size: 15px;
  }
  
  .promo-activity-grid .promo-activity-card {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .promo-card-content {
    padding: 18px;
  }
  
  .promo-product-title {
    font-size: 19px;
  }
  
  .promo-product-subtitle {
    font-size: 12px;
  }
  
  .promo-current-price {
    font-size: 26px;
  }
  
  .promo-original-price {
    font-size: 12px;
  }
  
  .promo-spec-row {
    font-size: 13px;
  }
  
  .promo-config-btn {
    padding: 5px 14px;
    font-size: 12px;
    min-width: 55px;
  }
  
  .promo-buy-btn {
    padding: 11px 0;
    font-size: 15px;
  }
  
  .countdown-section {
    margin: 50px auto 60px;
    padding: 0 20px;
  }
  
  .countdown-title {
    font-size: 28px;
    margin-bottom: 35px;
  }
  
  .voucher-button-section {
    padding: 25px 0;
    margin-bottom: 35px;
  }
  
  .voucher-btn {
    padding: 12px 28px;
    font-size: 15px;
  }
}


/* 手机端 (< 768px) */
@media screen and (max-width: 768px) {
  .promo-activity-section {
    margin-top: 30px;
  }
  
  
  .promo-activity-category {
    margin-bottom: 30px;
  }
  
  .promo-category-title {
    margin-bottom: 20px;
  }
  
  .promo-category-title h3 {
    font-size: 22px;
  }
  
  .promo-region-block {
    margin-top: 20px;
  }
  
  .promo-region-title {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .promo-activity-grid .promo-activity-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    min-height: auto;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .promo-activity-scroll {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* 允许垂直滚动 */
    touch-action: pan-x pan-y;
  }
  
  .promo-activity-grid .promo-activity-card {
    scroll-snap-align: start;
  }
  
  .promo-card-content {
    padding: 16px;
  }
  
  .promo-product-title {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .promo-product-subtitle {
    font-size: 12px;
  }
  
  .promo-current-price {
    font-size: 24px;
  }
  
  .promo-original-price {
    font-size: 12px;
  }
  
  .promo-badge {
    top: 8px;
    right: 8px;
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .promo-card-header {
    padding-right: 70px;
  }
  
  .promo-specs {
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .promo-spec-row {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .promo-spec-label {
    font-size: 13px;
  }
  
  .promo-spec-value {
    font-size: 13px;
  }
  
  .promo-config-buttons {
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .promo-config-btn {
    padding: 5px 12px;
    font-size: 12px;
    min-width: 50px;
    flex: 0 0 auto;
  }
  
  
  .promo-feature-tags {
    gap: 6px;
  }
  
  .promo-feature-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .promo-buy-btn {
    padding: 11px 0;
    font-size: 15px;
  }
  
  .promo-divider {
    margin: 10px 0;
  }
  
  .countdown-section {
    margin: 40px auto 50px;
    padding: 0 15px;
  }
  
  .countdown-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .voucher-button-section {
    padding: 20px 0;
    margin-bottom: 30px;
  }
  
  .voucher-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .voucher-modal-dialog {
    width: calc(100% - 30px);
    max-height: 85vh;
  }
  
  .voucher-modal-header {
    padding: 16px 20px;
  }
  
  .voucher-modal-header h4 {
    font-size: 18px;
  }
}

/* 小屏手机 (< 480px) */
@media screen and (max-width: 480px) {
  .promo-activity-section {
    margin-top: 20px;
  }
  
  
  .promo-activity-category {
    margin-bottom: 25px;
  }
  
  .promo-category-title {
    margin-bottom: 18px;
  }
  
  .promo-category-title h3 {
    font-size: 20px;
  }
  
  .promo-category-title h3::before,
  .promo-category-title h3::after {
    width: 20px;
  }
  
  .promo-category-title h3::before {
    left: -35px;
  }
  
  .promo-category-title h3::after {
    right: -35px;
  }
  
  .promo-region-title {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .promo-activity-grid .promo-activity-card {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .promo-activity-scroll {
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    /* 小屏手机滚动优化 */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* 允许垂直滚动 */
    touch-action: pan-x pan-y;
  }
  
  .promo-activity-grid .promo-activity-card {
    scroll-snap-align: start;
  }
  
  .promo-card-content {
    padding: 14px;
  }
  
  .promo-product-title {
    font-size: 16px;
  }
  
  .promo-product-subtitle {
    font-size: 11px;
  }
  
  .promo-current-price {
    font-size: 22px;
  }
  
  .promo-original-price {
    font-size: 11px;
  }
  
  .promo-badge {
    top: 6px;
    right: 6px;
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .promo-card-header {
    padding-right: 65px;
  }
  
  .promo-specs {
    gap: 6px;
  }
  
  .promo-spec-row {
    font-size: 12px;
  }
  
  .promo-spec-label,
  .promo-spec-value {
    font-size: 12px;
  }
  
  .promo-config-buttons {
    gap: 5px;
  }
  
  .promo-config-btn,
  
  .promo-feature-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .promo-buy-btn {
    padding: 10px 0;
    font-size: 14px;
  }
  
  .countdown-section {
    margin: 30px auto 40px;
    padding: 0 10px;
  }
  
  .countdown-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .voucher-button-section {
    padding: 18px 0;
    margin-bottom: 25px;
  }
  
  .voucher-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .voucher-btn i {
    font-size: 16px;
  }
  
  .voucher-modal-dialog {
    width: calc(100% - 20px);
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .voucher-modal-header {
    padding: 14px 16px;
  }
  
  .voucher-modal-header h4 {
    font-size: 16px;
  }
}

/* 超大屏幕 (> 1600px) - 桌面端优化 */
@media screen and (min-width: 1601px) {
  .promo-activity-section {
    margin-top: 80px;
  }
  
  .promo-activity-category {
    margin-bottom: 60px;
  }
  
  .promo-category-title h3 {
    font-size: 32px;
  }
  
  .promo-activity-grid .promo-activity-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .promo-card-content {
    padding: 24px;
  }
  
  .promo-product-title {
    font-size: 22px;
  }
  
  .promo-current-price {
    font-size: 30px;
  }
}

/* ========== 平板横竖屏特殊优化 ========== */
/* 平板竖屏 (768px - 1024px, portrait) */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .promo-activity-grid .promo-activity-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* 平板横屏 (768px - 1024px, landscape) */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .promo-activity-grid .promo-activity-card {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    flex-grow: 0;
  }
}

/* ========== 触摸设备通用优化 ========== */
/* 确保所有可交互元素在触摸设备上有足够的点击区域 */
@media (hover: none) and (pointer: coarse) {
  .promo-config-btn,
  .promo-buy-btn {
    min-height: 44px;
  }
  
  /* 增加按钮间距，避免误触 */
  .promo-config-buttons {
    gap: 8px;
  }
  
}

/* ========== 代金券弹窗响应式 ========== */
/* 平板端 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .voucher-modal-dialog {
    width: min(800px, calc(100% - 40px));
  }
  
  .voucher-modal-header {
    padding: 18px 22px;
  }
  
  .voucher-modal-header h4 {
    font-size: 19px;
  }
  
  .voucher-modal-body {
    padding: 20px;
  }
}

/* 手机端 */
@media screen and (max-width: 768px) {
  .voucher-modal {
    padding: 10px;
  }
  
  .voucher-modal-dialog {
    width: calc(100% - 30px);
    max-height: 85vh;
    border-radius: 14px;
  }
  
  .voucher-modal-header {
    padding: 16px 20px;
  }
  
  .voucher-modal-header h4 {
    font-size: 18px;
  }
  
  .voucher-modal-body {
    padding: 16px;
    max-height: calc(85vh - 120px);
  }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
  .voucher-modal {
    padding: 5px;
  }
  
  .voucher-modal-dialog {
    width: calc(100% - 20px);
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .voucher-modal-header {
    padding: 14px 16px;
  }
  
  .voucher-modal-header h4 {
    font-size: 16px;
  }
  
  .voucher-modal-body {
    padding: 14px;
    max-height: calc(90vh - 100px);
  }
}

/* ========== 加载状态响应式 ========== */

/**
 * 代金券模块样式
 */

/* 代金券按钮区域 */
.voucher-button-section {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 40px;
  min-height: 80px;
}

.voucher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: #667eea;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.voucher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.voucher-btn i {
  font-size: 18px;
}

/* 代金券弹窗 */
.voucher-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.voucher-modal-dialog {
  position: relative;
  width: min(900px, calc(100% - 40px));
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.voucher-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.voucher-modal-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.voucher-modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.voucher-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.voucher-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* 加载状态 */
.voucher-loading {
  text-align: center;
  padding: 60px 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.voucher-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.voucher-loading p {
  color: #666;
  font-size: 14px;
}

/* 空状态 */
.voucher-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 代金券列表 */
.voucher-list {
  display: grid;
  gap: 16px;
}

.voucher-item {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

/* 容器查询：代金券项 */
@container (max-width: 500px) {
  .voucher-item {
    padding: 16px;
  }
  
  .voucher-item-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .voucher-price-value {
    font-size: 28px;
  }
  
  .voucher-code {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .voucher-get-btn {
    width: 100%;
    justify-content: center;
  }
  
  .voucher-copy-btn {
    width: 100%;
    justify-content: center;
  }
}

@container (min-width: 501px) and (max-width: 700px) {
  .voucher-item-header {
    gap: 16px;
  }
  
  .voucher-price-value {
    font-size: 30px;
  }
}

.voucher-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.voucher-item-header {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.voucher-price {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.voucher-price-prefix {
  font-size: 20px;
  color: #667eea;
  font-weight: 500;
  margin-right: 2px;
}

.voucher-price-value {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.voucher-price-unit {
  font-size: 16px;
  color: #667eea;
  font-weight: 500;
  margin-left: 2px;
}

.voucher-info {
  flex: 1;
}

.voucher-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.voucher-code-label {
  font-size: 14px;
  color: #666;
}

.voucher-code-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  font-family: 'Courier New', monospace;
  background: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.voucher-get-btn {
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 500;
}

.voucher-get-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.voucher-get-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.voucher-get-btn.voucher-got {
  background: #52c41a;
  animation: getSuccess 0.3s ease;
}

.voucher-get-btn.voucher-got:hover {
  background: #45a716;
}

.voucher-get-btn i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.voucher-get-btn .voucher-get-text {
  font-size: 13px;
  line-height: 1;
  transition: all 0.3s ease;
}

@keyframes getSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 保留旧的复制按钮样式以兼容 */
.voucher-copy-btn {
  border: none;
  background: #667eea;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.voucher-copy-btn:hover {
  background: #5568d3;
}

.voucher-copy-btn.copied {
  background: #52c41a;
  animation: copySuccess 0.3s ease;
}

.voucher-copy-btn.copied:hover {
  background: #45a716;
}

.voucher-copy-btn i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.voucher-copy-btn .voucher-copy-text {
  font-size: 13px;
  line-height: 1;
  transition: all 0.3s ease;
}

@keyframes copySuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.voucher-condition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.voucher-condition {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
  flex-shrink: 0;
}

.voucher-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.voucher-tag {
  font-size: 12px;
  color: #ff7a00;
  background: #fff7e6;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #ffd591;
  white-space: nowrap;
}

.voucher-tag-onetime,
.voucher-tag-upgrade,
.voucher-tag-renew,
.voucher-tag-on-demand {
  font-size: 12px;
  color: #ff7a00;
  background: #fff7e6;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #ffd591;
}

.voucher-user-type {
  font-size: 13px;
  color: #ff7a00;
  margin-top: 8px;
  line-height: 1.6;
}

.voucher-notes {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  line-height: 1.5;
}

.voucher-item-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.voucher-validity {
  font-size: 13px;
  color: #666;
}

.voucher-validity span {
  color: #333;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .voucher-modal-dialog {
    width: calc(100% - 20px);
    max-height: 90vh;
  }

  .voucher-modal-header {
    padding: 16px 20px;
  }

  .voucher-modal-header h4 {
    font-size: 18px;
  }

  .voucher-modal-body {
    padding: 20px;
  }

  .voucher-item-header {
    flex-direction: column;
    gap: 12px;
  }

  .voucher-price-value {
    font-size: 28px;
  }

  .voucher-code {
    flex-direction: column;
    align-items: flex-start;
  }

  .voucher-get-btn {
    width: 100%;
    justify-content: center;
  }
  
  .voucher-copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/**
 * 优惠码浮动按钮（左下角）
 */
.promo-code-float-btn {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fff;
  color: #667eea;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.promo-code-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.promo-code-float-btn:active {
  transform: translateY(0);
}

.promo-code-float-btn i {
  font-size: 18px;
}

.promo-code-float-btn span {
  font-size: 15px;
}

/* 优惠码按钮跳动动画 */
.promo-code-float-btn.has-promo-code {
  animation: promoCodeBounce 1.5s ease-in-out infinite;
}

/* 确保动画不被hover覆盖 */
.promo-code-float-btn.has-promo-code:hover {
  animation: promoCodeBounce 1.5s ease-in-out infinite;
  transform: translateY(-2px);
}

@keyframes promoCodeBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .promo-code-float-btn {
    left: 20px;
    bottom: 20px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .promo-code-float-btn i {
    font-size: 16px;
  }
  
  .promo-code-float-btn span {
    font-size: 14px;
  }

  /* 代金券标签响应式 */
  .voucher-condition-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .voucher-tags {
    justify-content: flex-start;
    width: 100%;
  }
}

/* ========== 移动端和平板：秒杀和拼团活动横向滚动 ========== */

/* 秒杀活动 - 移动端和平板横向滚动 */
@media (max-width: 1024px) {
  /* 秒杀活动列表容器 - 横向滚动 */
  .seckill-section .activity-list {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    gap: 16px;
    padding-bottom: 10px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    /* 允许垂直滚动 */
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
  }

  /* 隐藏滚动条但保持功能 */
  .seckill-section .activity-list::-webkit-scrollbar {
    height: 6px;
  }

  .seckill-section .activity-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
  }

  .seckill-section .activity-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .seckill-section .activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  /* 秒杀活动卡片 - 每个卡片占满容器宽度 */
  .seckill-section .activity-card {
    flex: 0 0 calc(100% - 32px) !important;
    min-width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
    scroll-snap-align: start;
  }

  /* 拼团活动列表容器 - 横向滚动 */
  .group-buy-activity-list {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    gap: 16px;
    padding-bottom: 10px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    /* 允许垂直滚动 */
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    /* 覆盖原有的grid布局 */
    grid-template-columns: none;
    max-width: none;
  }

  /* 隐藏滚动条但保持功能 */
  .group-buy-activity-list::-webkit-scrollbar {
    height: 6px;
  }

  .group-buy-activity-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
  }

  .group-buy-activity-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .group-buy-activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  /* 拼团活动卡片 - 每个卡片占满容器宽度 */
  .group-buy-activity-card {
    flex: 0 0 calc(100% - 32px) !important;
    min-width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
    scroll-snap-align: start;
    /* 覆盖原有的grid相关样式 */
    justify-self: stretch;
  }
}

/* 平板端优化 - 可以显示部分下一个卡片 */
@media (min-width: 769px) and (max-width: 1024px) {
  .seckill-section .activity-card {
    flex: 0 0 calc(50% - 24px);
    min-width: calc(50% - 24px);
    max-width: calc(50% - 24px);
    width: calc(50% - 24px);
  }

  .group-buy-activity-card {
    flex: 0 0 calc(50% - 24px);
    min-width: calc(50% - 24px);
    max-width: calc(50% - 24px);
    width: calc(50% - 24px);
  }
}