/* 代金券容器样式 */
.coupon-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    border: 1px solid #ddd;
}

/* 领取按钮样式 */
.coupon-btn {
    background: #0073aa;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 提示信息样式 */
.notice {
    color: #666;
    padding: 1rem;
}

/* 成功信息样式 */
.success {
    color: green;
    padding: 1rem;
}

/* 错误信息样式 */
.error {
    color: red;
    padding: 1rem;
}


:root {
  --primary: -webkit-linear-gradient( 270deg, #ff6c54 0%, #ff4a35 100%);
  --accent: #FFFFFF;
  --gold: linear-gradient(135deg, #dfff00 0%, #fff000 100%);
}

.voucher-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 160px;
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.voucher-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.1) 75%,
    transparent 75%);
  transform: rotate(30deg);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-25%) rotate(30deg); }
  100% { transform: translateX(25%) rotate(30deg); }
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  color: white;
}

.left-panel {
  padding: 20px;
  flex: 1;
  border-right: 2px dashed rgba(255,255,255,0.3);
  padding-right: 25px;
}

.voucher-name {
  font-size: 1.45rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
  position: relative;
}

.voucher-name::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.condition {
  font-size: 0.9rem;
  opacity: 1;
  margin-bottom: 15px;
}

.coupon-condition {
  font-size: 1.2rem;
  opacity: 1;
  font-weight: 600;
}

.right-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.amount {
  font-size: 1.8rem;
  font-weight: bold;
  background: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.claim-btn {
  padding: 8px 25px;
  background: var(--accent);
  border: none;
  border-radius: 30px;
  color: #fd2e17;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.claim-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: 0.5s;
}

.claim-btn:hover::before {
  left: 100%;
}

.claim-btn:active {
  transform: scale(0.95);
}

.claimed {
  background: #7F8487 !important;
  cursor: not-allowed;
}