<div class="stpat-luxury-wrap">
  <div class="stpat-premium-card">
    <!-- 背景浮动三叶草 -->
    <div class="floating-clovers">
      <span>🍀</span><span>☘️</span><span>🍀</span><span>✨</span>
    </div>

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

    <!-- 右侧:折扣信息 -->
    <div class="luxury-right">
      <div class="luxury-header">
        <span class="stpat-tag">Lucky Deal</span>
        <span class="stpat-status">Limited Time</span>
      </div>
      
      <div class="luxury-code-area">
        <code id="promoCode">LUCKY17</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>
  .stpat-luxury-wrap {
    /* 圣帕特里克节主题色:爱尔兰绿与幸运金 */
    --primary-green: #198754; 
    --dark-green: #0f5132;
    --gold: #ffc107;
    --light-green: #e8f5e9;
    
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    background: transparent;
  }

  .stpat-premium-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90px;
    background: linear-gradient(135deg, #f1f8f5 0%, #fff 100%);
    border-radius: 12px;
    display: flex;
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.15);
    border: 1px solid rgba(25, 135, 84, 0.2);
    overflow: hidden;
    z-index: 1;
  }

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

  /* 左侧金额区 */
  .luxury-left {
    width: 100px;
    background: var(--primary-green);
    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;
  }

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

  .stpat-status {
    font-size: 9px;
    background: var(--light-green);
    color: var(--dark-green);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* 折扣码交互区 */
  .luxury-code-area {
    display: flex;
    align-items: center;
    background: var(--light-green);
    border: 1px solid #c3e6cb;
    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: var(--dark-green);
  }

  #premiumCopyBtn {
    background: var(--dark-green);
    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-green);
    transform: scale(1.05);
  }

  /* 票据缺口 */
  .notch {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff; /* 此处颜色需与你网页背景色一致 */
    border-radius: 50%;
    left: 92px;
    z-index: 2;
    border: 1px solid rgba(25, 135, 84, 0.2);
  }
  .n-top { top: -9px; }
  .n-bottom { bottom: -9px; }

  /* 浮动三叶草粒子动画 */
  .floating-clovers {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .floating-clovers span {
    position: absolute;
    font-size: 12px;
    animation: float 4s infinite linear;
    opacity: 0;
  }
  .floating-clovers span:nth-child(1) { left: 20%; animation-delay: 0s; }
  .floating-clovers span:nth-child(2) { left: 50%; animation-delay: 1s; }
  .floating-clovers span:nth-child(3) { left: 80%; animation-delay: 2s; }
  .floating-clovers 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) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-20px) rotate(45deg); 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 = '#198754'; 
      
      setTimeout(() => {
        btn.innerText = originalText;
        /* 2秒后恢复为深绿色 */
        btn.style.background = '#0f5132'; 
      }, 2000);
    });
  }
</script>