/* 礼包码区域样式 */
.gift-code-section {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 183, 0, 0.2);
}

.gift-code-section:before,
.gift-code-section:after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.gift-code-section:before {
  top: 0;
}

.gift-code-section:after {
  bottom: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gift-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #facc15;
}

.gift-subtitle {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.gift-code-container {
  background: linear-gradient(to right, #78350f, #b45309);
  padding: 0.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.gift-inner {
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 0.375rem;
  padding: 1rem;
}

.gift-code-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gift-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid #b45309;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
  transition: all 0.3s ease;
  animation: border-glow 3s infinite alternate;
}

.gift-code-item:hover {
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
  transform: translateY(-2px);
}

.code-icon-container {
  display: flex;
  align-items: center;
}

.code-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b45309;
  border-radius: 9999px;
  margin-right: 0.75rem;
  animation: pulse-effect 2s infinite;
}

.code-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fef3c7;
}

.code-info h3 {
  color: #facc15;
  font-weight: bold;
  font-size: 0.875rem;
}

.code-text {
  color: white;
  font-size: 1rem;
  font-family: monospace;
  letter-spacing: 0.1em;
}

.copy-btn {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: #b45309;
  color: white;
  border: none;
  border-radius: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.copy-btn:hover {
  background-color: #d97706;
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.copy-btn:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.gift-desc {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* 复制成功提示 */
.copy-success-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #22c55e;
  display: none;
  z-index: 100;
}

.copy-success-toast.show {
  display: block;
  animation: fade-in-out 2s ease-in-out;
}

.toast-content {
  display: flex;
  align-items: center;
  color: #4ade80;
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* 动画 */
@keyframes border-glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
    border-color: rgba(217, 119, 6, 0.8);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
    border-color: rgba(253, 224, 71, 0.9);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
    border-color: rgba(217, 119, 6, 0.8);
  }
}

@keyframes pulse-effect {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fade-in-out {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
} 