<div class="vday-luxury-wrap">
  <div class="vday-premium-card">
    <!-- 背景浮动爱心 -->
    <div class="floating-hearts">
      <span>❤️</span><span>💖</span><span>❤️</span><span>💕</span>
    </div>

    <!-- 左侧:折扣额度 -->
    <div class="luxury-left">
      <div class="luxury-amount">20%</div>
      <div class="luxury-off">OFF</div>
    </div>

    <!-- 右侧:折扣信息 -->
    <div class="luxury-right">
      <div class="luxury-header">
        <span class="vday-tag">Valentine's Gift</span>
        <span class="vday-status">Limited Time</span>
      </div>
      
      <div class="luxury-code-area">
        <code id="promoCode">VALENTINE20</code>
        <button onclick="copyPremiumCode()" id="premiumCopyBtn">REDEEM</button>
      </div>
    </div>
    
    <!-- 装饰性镂空圆 -->
    <div class="notch n-top"></div>
    <div class="notch n-bottom"></div>
  </div>
</div>

<style>
  .vday-luxury-wrap {
    --primary-red: #d90429;
    --light-pink: #ffb3c1;
    --gold: #ffb703;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    background: transparent;
  }

  .vday-premium-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90px; /* 极窄高度 */
    background: linear-gradient(135deg, #fff5f6 0%, #fff 100%);
    border-radius: 12px;
    display: flex;
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.15);
    border: 1px solid rgba(217, 4, 41, 0.2);
    overflow: hidden;
    z-index: 1;
  }

  /* 动态流光边框效果 */
  .vday-premium-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-red), var(--light-pink), var(--primary-red));
    z-index: -1;
    background-size: 400%;
    animation: flow 8s linear infinite;
    border-radius: 14px;
    opacity: 0.4;
  }

  /* 左侧金额区 */
  .luxury-left {
    width: 100px;
    background: var(--primary-red);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
  }

  .luxury-amount {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .luxury-off {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
  }

  /* 右侧内容区 */
  .luxury-right {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .luxury-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .vday-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .vday-status {
    font-size: 9px;
    background: #ffeeef;
    color: var(--primary-red);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* 折扣码交互区 */
  .luxury-code-area {
    display: flex;
    align-items: center;
    background: #fdf2f4;
    border: 1px solid #ffccd5;
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    justify-content: space-between;
  }

  #promoCode {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #2b2d42;
  }

  #premiumCopyBtn {
    background: #2b2d42;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s;
  }

  #premiumCopyBtn:hover {
    background: var(--primary-red);
    transform: scale(1.05);
  }

  /* 票据缺口 */
  .notch {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff; /* 这里的颜色需匹配你Shopify页面的背景色 */
    border-radius: 50%;
    left: 92px;
    z-index: 2;
    border: 1px solid rgba(217, 4, 41, 0.2);
  }
  .n-top { top: -9px; }
  .n-bottom { bottom: -9px; }

  /* 浮动爱心粒子动画 */
  .floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .floating-hearts span {
    position: absolute;
    font-size: 10px;
    animation: float 4s infinite linear;
    opacity: 0;
  }
  .floating-hearts span:nth-child(1) { left: 20%; animation-delay: 0s; }
  .floating-hearts span:nth-child(2) { left: 50%; animation-delay: 1s; }
  .floating-hearts span:nth-child(3) { left: 80%; animation-delay: 2s; }
  .floating-hearts span:nth-child(4) { left: 35%; animation-delay: 3s; }

  @keyframes flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @keyframes float {
    0% { transform: translateY(100px); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-20px); opacity: 0; }
  }
</style>

<script>
  function copyPremiumCode() {
    const code = document.getElementById('promoCode').innerText;
    const btn = document.getElementById('premiumCopyBtn');
    
    navigator.clipboard.writeText(code).then(() => {
      const originalText = btn.innerText;
      btn.innerText = 'COPIED!';
      btn.style.background = '#d90429';
      
      setTimeout(() => {
        btn.innerText = originalText;
        btn.style.background = '#2b2d42';
      }, 2000);
    });
  }
</script>