示例成品AI 按一组示范选项写的
```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>星巴克夏日冰摇节</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'PingFang SC', sans-serif; background: #1a0a00; color: #fff; text-align: center; overflow-x: hidden; }
.container { max-width: 420px; margin: 0 auto; min-height: 100vh; position: relative; background: linear-gradient(180deg, #00704A 0%, #1a0a00 100%); padding-bottom: 40px; }
/* 顶部头图区 */
.hero { padding: 60px 20px 30px; }
.hero h1 { font-size: 32px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 16px; margin-top: 12px; opacity: 0.9; }
/* 抽奖转盘区 */
.wheel-section { padding: 20px; }
.wheel { width: 240px; height: 240px; border-radius: 50%; background: conic-gradient(#F9A825 0deg 90deg, #fff 90deg 180deg, #F9A825 180deg 270deg, #fff 270deg 360deg); margin: 0 auto; position: relative; box-shadow: 0 0 30px rgba(249,168,37,0.5); transition: transform 3s cubic-bezier(0.2, 0.8, 0.3, 1); }
.wheel::after { content: '抽奖'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: #00704A; border-radius: 50%; line-height: 60px; font-weight: bold; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.wheel span { position: absolute; width: 50%; height: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #1a0a00; font-weight: 600; }
.wheel span:nth-child(1) { top: 0; left: 0; transform: rotate(22.5deg); }
.wheel span:nth-child(2) { top: 0; right: 0; transform: rotate(112.5deg); }
.wheel span:nth-child(3) { bottom: 0; right: 0; transform: rotate(202.5deg); }
.wheel span:nth-child(4) { bottom: 0; left: 0; transform: rotate(292.5deg); }
/* 按钮与表单 */
.btn { display: inline-block; margin-top: 30px; padding: 14px 60px; background: #F9A825; color: #1a0a00; font-size: 18px; font-weight: 700; border: none; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 15px rgba(249,168,37,0.4); }
.form-group { margin: 30px 20px 0; display: none; }
.form-group input { width: 100%; padding: 14px; border: 1px solid #F9A825; background: rgba(255,255,255,0.1); color: #fff; border-radius: 8px; font-size: 16px; outline: none; }
.form-group input::placeholder { color: rgba(255,255,255,0.5); }
.submit-btn { margin-top: 15px; width: 100%; padding: 14px; background: #F9A825; color: #1a0a00; font-size: 16px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; }
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.85); padding: 20px 30px; border-radius: 10px; font-size: 16px; display: none; z-index: 99; }
</style>
</head>
<body>
<div class="container">
<div class="hero">
<h1>夏日冰摇节</h1>
<p>7月1日-7月15日 每日限量抽奖</p>
</div>
<div class="wheel-section">
<div class="wheel" id="wheel">
<span>免单券</span><span>买一赠一</span><span>升杯券</span><span>谢谢参与</span>
</div>
<button class="btn" onclick="spin()">立即抽奖</button>
</div>
<!-- 中奖后显示的领奖表单 -->
<div class="form-group" id="prizeForm">
<input type="text" id="userName" placeholder="请输入您的姓名">
<input type="tel" id="userPhone" placeholder="请输入手机号" style="margin-top: 10px;">
<button class="submit-btn" onclick="submitPrize()">确认领奖</button>
</div>
<div class="toast" id="toast"></div>
</div>
<script>
let isSpinning = false;
function spin() {
if (isSpinning) return;
isSpinning = true;
const wheel = document.getElementById('wheel');
// 随机旋转角度:基础3圈 + 随机度数
const deg = 1080 + Math.floor(Math.random() * 360);
wheel.style.transform = `rotate(${deg}deg)`;
setTimeout(() => {
isSpinning = false;
document.getElementById('prizeForm').style.display = 'block';
showToast('恭喜获得优惠!请填写信息领奖');
}, 3100);
}
function submitPri