/* ==========================================
   赛博朋克列表样式 - 霓虹灯 & 光影特效
   ========================================== */

/* 商品列表容器 */
#cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

/* 赛博朋克商品条目 */
.cyber-item {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(25, 20, 45, 0.95) 100%);
  border: 1px solid rgba(123, 97, 255, 0.2);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-24px);
  animation: slideIn 0.6s ease forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 发光背景效果 */
.cyber-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cyber-item:hover .cyber-glow {
  opacity: 1;
}

/* 扫描线特效 */
.cyber-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 255, 255, 0.8) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%, 90% { opacity: 0.6; }
  50% { transform: translateY(var(--scan-height, 96px)); }
}

.cyber-item:hover .cyber-scanline {
  --scan-height: 96px;
}

/* 悬停效果 */
.cyber-item:hover {
  border-color: rgba(123, 97, 255, 0.6);
  box-shadow:
    0 0 16px rgba(123, 97, 255, 0.3),
    0 0 32px rgba(88, 166, 255, 0.2),
    inset 0 0 48px rgba(123, 97, 255, 0.05);
  transform: translateY(-2px);
}

/* 内容布局 */
.cyber-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* 分类图标 */
.cyber-icon {
  display: none; /* 隐藏图标 */
}

.icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-item:hover .icon-glow {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

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

/* 商品信息区域 */
.cyber-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 标题区域 */
.cyber-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 发布时间 */
.publish-time {
  font-size: 10px;
  color: rgba(255, 136, 0, 0.9);
  font-weight: 500;
}

.cyber-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 状态标签（地区、SDA、质保等）*/
.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.status-tag-purple {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.status-tag-orange {
  background: rgba(255, 136, 0, 0.2);
  border: 1px solid rgba(255, 136, 0, 0.4);
  color: #ff8800;
}

.status-tag-gray {
  background: rgba(156, 163, 175, 0.2);
  border: 1px solid rgba(156, 163, 175, 0.4);
  color: #d1d5db;
}

.status-tag-gold {
  background: rgba(255, 184, 0, 0.2);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: #ffb800;
}

/* Fortnite 专用彩色标签 */
.status-tag-fn-purple {
  background: rgba(147, 51, 234, 0.25);
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: #a78bfa;
  box-shadow: 0 0 6px rgba(147, 51, 234, 0.3);
}

.status-tag-fn-blue {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.status-tag-fn-orange {
  background: rgba(249, 115, 22, 0.25);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fb923c;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.3);
}

.status-tag-fn-green {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.status-tag-fn-red {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.status-tag-fn-gold {
  background: rgba(251, 191, 36, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.3);
}

.status-tag-white {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* 游戏列表 */
.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0;
}

.game-item {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(123, 97, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.game-item:hover {
  transform: scale(1.1);
  border-color: rgba(123, 97, 255, 0.6);
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.4);
  z-index: 10;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vac-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 6px;
  font-weight: 700;
  padding: 2px 2px;
  border-radius: 0 3px 0 3px;
}

.game-more {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: rgba(123, 97, 255, 0.1);
  border: 1px dashed rgba(123, 97, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-more:hover {
  background: rgba(123, 97, 255, 0.2);
  border-color: rgba(123, 97, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* CS2勋章列表 */
.medal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}

.medal-item {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.medal-item:hover {
  transform: scale(1.2);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  z-index: 10;
}

.medal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medal-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px dashed rgba(255, 215, 0, 0.3);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 215, 0, 0.8);
  padding: 0 6px;
}

/* 卖家信息 */
.seller-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.seller-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.cyber-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #7b61ff 0%, #58a6ff 100%);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 0 8px rgba(123, 97, 255, 0.5);
}

/* 特征标签 */
.cyber-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(123, 97, 255, 0.15);
  border: 1px solid rgba(123, 97, 255, 0.3);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(123, 97, 255, 0.25);
  border-color: rgba(123, 97, 255, 0.5);
  box-shadow: 0 0 6px rgba(123, 97, 255, 0.4);
}

/* 右侧操作区域 */
.cyber-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 144px;
}

/* 价格区域 */
.cyber-price {
  text-align: right;
}

.discount {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff3366 0%, #ff6b99 100%);
  color: #fff;
  margin-bottom: 3px;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.original-price {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.current-price {
  font-size: 19px;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  font-family: "Comic Sans MS", sans-serif;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 6px;
}

.cyber-btn {
  position: relative;
  padding: 6px 13px;
  border: 1px solid rgba(123, 97, 255, 0.4);
  border-radius: 5px;
  background: rgba(123, 97, 255, 0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.cyber-btn:hover .btn-glow {
  width: 160px;
  height: 160px;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.cyber-btn:hover {
  border-color: rgba(123, 97, 255, 0.8);
  box-shadow:
    0 0 12px rgba(123, 97, 255, 0.5),
    inset 0 0 16px rgba(123, 97, 255, 0.2);
  transform: translateY(-1px);
}

.cyber-btn.primary {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.3) 0%, rgba(88, 166, 255, 0.3) 100%);
  border-color: rgba(123, 97, 255, 0.6);
}

.cyber-btn.primary:hover {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.5) 0%, rgba(88, 166, 255, 0.5) 100%);
  box-shadow:
    0 0 16px rgba(123, 97, 255, 0.7),
    inset 0 0 24px rgba(123, 97, 255, 0.3);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 774px) {
  .cyber-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cyber-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .action-buttons {
    flex: 1;
    justify-content: flex-end;
  }

  .cyber-title {
    white-space: normal;
  }
}

/* 额外霓虹灯动画 */
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.cyber-item:hover .cyber-title {
  animation: neon-flicker 2s ease-in-out infinite;
}

/* ===== Social Club 游戏标签 ===== */
.sc-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.sc-game-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
  transition: all 0.3s ease;
}

.sc-game-tag:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(34, 197, 94, 0.25));
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}
