<div class="stpat-luxury-wrap">
<div class="stpat-premium-card">
<! -- 背景浮動三葉草 -->
<div class="floating-clovers">
<スパン>🍀</スパン><スパン>☘️</スパン><スパン>🍀</スパン><スパン>✨</スパン>
</div>>

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

< <! -- 右側:折扣情報 -->
<div class="luxury-right">> <div class="luxury-header">
<span class="stpat-tag">ラッキーディール</スパン>
<span class="stpat-status">期間限定</スパン>
</div>

<div class="luxury-code-area">
<コードID="promoCode">ラッキー17</コード>
<ボタン onclick="copyPremiumCode()" id="premiumCopyBtn">償還</ボタン>
</div>
</div>

<! -- 装饰性镂空圆 -->
<div class="notch n-top"></div>
<div class="notch n-bottom"></div>
</div>></div>

<スタイル>
. 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プレミアムカード {
    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;
  }

/* 左側金额区 */
. ラグジュアリー左派 {
    width: 100px;
    background: var(--primary-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
  }

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

. ラグジュアリーオフ {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.9;
  }

/* 右側コンテンツ区 */
. 高級品 {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

. ラグジュアリーヘッダー {
    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;
  }

/* 折扣码 交流区 */
. 高級コードエリア {
    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;
  }

#プロモーションコード {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-green);
  }

#プレミアムコピーボタン {
    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);
  }

/* 票据缺口 */
. ノッチ {
    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: -9px; }

/* 浮動三叶草粒子アニメーション */
. 浮遊するクローバー {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }
. 浮遊するクローバーの広がり {
    position: absolute;
    font-size: 12px;
    animation: float 4s infinite linear;
    opacity: 0;
  }
. 浮遊するクローバー span:nth-child(1) { left: 20%; animation-delay: 0s; }
. 浮遊するクローバー span:nth-child(2) { left: 50%; animation-delay: 1s; }
. 浮遊するクローバー span:nth-child(3) { left: 80%; animation-delay: 2s; }
. 浮遊するクローバー span:nth-child(4) { left: 35%; animation-delay: 3s; }

@keyframes フロー {
    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; }
}
</スタイル>

<スクリプト>
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年);
});
}
</スクリプト>