You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

762 lines
28 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 幸运大转盘</title>
<style>
:root {
--youth-primary: #26C2BB;
--youth-primary-light: #54CAC5;
--primary-bg: #E6F7F6;
--bg-page: #F7F8FA;
--bg-card: #FFFFFF;
--text-title: #1F1F1F;
--text-body: #595959;
--text-muted: #8C8C8C;
--youth-border-light: #E8E8E8;
--danger: #F5222D;
--youth-warning: #FAAD14;
/* =====================================================
* Traework 设计系统 - 组件规范
* 圆角 / 间距 / 阴影 / 高度
* ===================================================== */
--radius-xs: 4px;
--radius-sm: 8px; /* 按钮、输入框 */
--radius-md: 12px; /* 卡片 */
--radius-lg: 16px; /* 标签、弹窗 */
--radius-xl: 20px;
--radius-full: 9999px;
/* 组件高度 */
--height-btn: 44px;
--height-input: 44px;
--height-nav-bottom: 64px;
/* 间距(4px 基础栅格) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-page-x: 16px;
--space-card: 16px;
/* 柔和弥散阴影 */
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
--shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
--shadow-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
/* 内阴影浮雕(输入框) */
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
/* 毛玻璃 */
--glass-bg: rgba(255, 255, 255, 0.72);
--glass-blur: blur(20px);
--glass-border: rgba(255, 255, 255, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
overflow-x: hidden;}
.page-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
}
.status-bar {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 15px;
font-weight: 600;
color: #fff;
flex-shrink: 0;
position: relative;
z-index: 5;
}
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
height: 44px;
flex-shrink: 0;
position: relative;
z-index: 5;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #fff;
cursor: pointer;
border: none;
background: rgba(0,0,0,0.3);
backdrop-filter: blur(10px);
}
.nav-title { font-size: 17px; font-weight: 700; color: #fff; }
.nav-btn.text-btn { width: auto; font-size: 13px; padding: 0 10px; font-weight: 500; }
/* 紫色渐变头部 */
.lottery-header {
background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 30%, #A78BFA 60%, #C4B5FD 100%);
padding-bottom: 200px;
flex-shrink: 0;
position: relative;
overflow: hidden;
}
.lottery-header::before {
content: '';
position: absolute;
top: -80px;
left: -40px;
width: 240px;
height: 240px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
.lottery-header::after {
content: '';
position: absolute;
bottom: -100px;
right: -40px;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
}
/* 装饰星星 */
.stars {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}
.star {
position: absolute;
color: #FFD700;
animation: twinkle 2s ease-in-out infinite;
}
.star.s1 { top: 60px; left: 30px; font-size: 16px; animation-delay: 0s; }
.star.s2 { top: 100px; right: 40px; font-size: 20px; animation-delay: 0.5s; }
.star.s3 { top: 180px; left: 50px; font-size: 12px; animation-delay: 1s; }
.star.s4 { top: 140px; right: 80px; font-size: 14px; animation-delay: 1.5s; }
.star.s5 { top: 220px; right: 20px; font-size: 10px; animation-delay: 0.3s; }
@keyframes twinkle {
0%, 100% { opacity: 0.4; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1.2); }
}
/* 转盘区域 */
.wheel-section {
position: absolute;
top: 120px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
}
.wheel-outer {
width: 320px;
height: 320px;
border-radius: 50%;
background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
padding: 10px;
box-shadow: 0 10px 40px rgba(0,0,0,0.25), inset 0 2px 10px rgba(255,255,255,0.3);
position: relative;
}
.wheel-dots {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50%;
}
.wheel-dot {
position: absolute;
width: 10px;
height: 10px;
background: #fff;
border-radius: 50%;
top: 50%;
left: 50%;
margin: -5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.wheel-inner {
width: 100%;
height: 100%;
border-radius: 50%;
background: #fff;
position: relative;
overflow: hidden;
transition: transform 4s cubic-bezier(0.17, 0.67, 0.26, 0.99);
}
.wheel-sector {
position: absolute;
width: 50%;
height: 50%;
top: 0;
left: 50%;
transform-origin: 0% 100%;
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 20px;
}
.sector-content {
transform: rotate(22.5deg);
transform-origin: bottom center;
text-align: center;
position: absolute;
bottom: 10px;
left: 50%;
margin-left: -25px;
width: 50px;
}
.sector-icon {
font-size: 22px;
margin-bottom: 2px;
}
.sector-name {
font-size: 9px;
font-weight: 700;
color: #8B4513;
}
/* 扇形颜色 */
.wheel-sector:nth-child(1) { transform: rotate(0deg); background: #FFF3CD; }
.wheel-sector:nth-child(2) { transform: rotate(45deg); background: #FFE4E1; }
.wheel-sector:nth-child(3) { transform: rotate(90deg); background: #D4EDDA; }
.wheel-sector:nth-child(4) { transform: rotate(135deg); background: #CCE5FF; }
.wheel-sector:nth-child(5) { transform: rotate(180deg); background: #E8DAEF; }
.wheel-sector:nth-child(6) { transform: rotate(225deg); background: #FFE5B4; }
.wheel-sector:nth-child(7) { transform: rotate(270deg); background: #FFD6E0; }
.wheel-sector:nth-child(8) { transform: rotate(315deg); background: #D5F5E3; }
/* 指针 */
.wheel-pointer {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
z-index: 20;
width: 50px;
height: 60px;
}
.pointer-body {
width: 100%;
height: 100%;
background: linear-gradient(180deg, #FF4D4F 0%, #FF7875 100%);
clip-path: polygon(50% 100%, 0% 20%, 15% 0%, 85% 0%, 100% 20%);
box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}
.pointer-center {
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
color: #FF4D4F;
font-weight: 800;
}
/* 中心按钮 */
.wheel-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 20px rgba(255, 165, 0, 0.5);
z-index: 15;
border: 4px solid #fff;
transition: all 0.2s ease;
}
.wheel-center:active { transform: translate(-50%, -50%) scale(0.95); }
.center-text {
font-size: 16px;
font-weight: 800;
color: #8B4513;
line-height: 1;
}
.center-sub {
font-size: 10px;
color: #A0522D;
font-weight: 600;
margin-top: 2px;
}
/* 剩余次数 */
.chance-info {
position: absolute;
top: 460px;
left: 50%;
transform: translateX(-50%);
text-align: center;
z-index: 10;
}
.chance-text {
font-size: 13px;
color: #fff;
margin-bottom: 6px;
}
.chance-count {
display: inline-block;
padding: 4px 16px;
background: rgba(255,255,255,0.25);
backdrop-filter: blur(10px);
border-radius: 14px;
font-size: 13px;
color: #fff;
font-weight: 600;
}
.chance-count strong {
color: #FFD700;
font-size: 16px;
margin: 0 2px;
}
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding: 20px 16px 20px;
margin-top: -180px;
z-index: 5;
position: relative;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 中奖记录 */
.record-card {
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
margin-bottom: 12px;
}
.card-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title .more {
font-size: 12px;
color: var(--youth-text-tertiary);
font-weight: 500;
}
.record-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.record-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background: var(--youth-bg-page);
border-radius: 10px;
}
.record-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, #26C2BB, #54CAC5);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
}
.record-info { flex: 1; min-width: 0; }
.record-name {
font-size: 12px;
color: var(--youth-text-primary);
font-weight: 500;
margin-bottom: 2px;
}
.record-prize {
font-size: 11px;
color: var(--youth-warning);
font-weight: 600;
}
.record-time {
font-size: 10px;
color: var(--youth-text-tertiary);
flex-shrink: 0;
}
/* 奖品列表 */
.prize-card {
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
margin-bottom: 12px;
}
.prize-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.prize-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
cursor: pointer;
}
.prize-icon {
width: 48px;
height: 48px;
border-radius: 12px;
background: var(--youth-bg-page);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
}
.prize-name {
font-size: 10px;
color: var(--youth-text-secondary);
text-align: center;
}
/* 规则 */
.rules-card {
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
}
.rules-list {
font-size: 12px;
line-height: 1.8;
color: var(--youth-text-secondary);
}
.rules-list li {
list-style: none;
padding-left: 18px;
position: relative;
}
.rules-list li::before {
content: '•';
position: absolute;
left: 4px;
color: var(--youth-primary);
font-weight: 700;
}
/* SVG 图标统一尺寸 */
.icon-svg {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1em;
height: 1em;
vertical-align: middle;
line-height: 1;
}
.icon-svg svg {
width: 100%;
height: 100%;
stroke: currentColor;
}
/* 侧栏图标 */
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
/* 社团logo图标 */
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
/* 头图大图标 */
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
/* meta 小图标 */
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
/* 分类选择网格图标 */
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
/* logo预览图标 */
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
/* 提示图标 */
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
</style>
</head>
<body>
<div class="page-container" data-dom-id="page-container">
<div class="lottery-header">
<div class="status-bar">
<span>9:41</span>
<div style="display:flex;align-items:center;gap:6px;">
<svg width="17" height="11" viewBox="0 0 17 11" fill="#fff"><rect x="0" y="7" width="3" height="4" rx="0.5"/><rect x="4.5" y="5" width="3" height="6" rx="0.5"/><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"/><rect x="13.5" y="0" width="3" height="11" rx="0.5"/></svg>
<svg width="25" height="12" viewBox="0 0 25 12"><rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#fff" opacity="0.5"/><rect x="2" y="2" width="18" height="8" rx="1.5" fill="#fff"/><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="#fff" opacity="0.5"/></svg>
</div>
</div>
<div class="top-nav">
<button class="nav-btn" onclick="goBack()">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
</button>
<div class="nav-title">幸运大转盘</div>
<button class="nav-btn" onclick="goMyPrize()">我的奖品</button>
</div>
<div class="stars">
<div class="star s1">✦</div>
<div class="star s2">★</div>
<div class="star s3">✦</div>
<div class="star s4">★</div>
<div class="star s5">✦</div>
</div>
</div>
<!-- 转盘 -->
<div class="wheel-section">
<div class="wheel-pointer">
<div class="pointer-body"></div>
<div class="pointer-center">GO</div>
</div>
<div class="wheel-outer">
<div class="wheel-inner" id="wheel">
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon">🫘</div><div class="sector-name">50青豆</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon"><span class="icon-svg icon-ticket"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"/><path d="M13 5v2"/><path d="M13 17v2"/><path d="M13 11v2"/></svg></span></div><div class="sector-name">优惠券</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon"><span class="icon-svg icon-crown"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"/><path d="M5 21h14"/></svg></span></div><div class="sector-name">VIP1天</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon"><span class="icon-svg icon-gift"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13"/><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"/><path d="M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/></svg></span></div><div class="sector-name">神秘奖</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon">🖼️</div><div class="sector-name">头像框</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon">💎</div><div class="sector-name">100豆</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon">🎫</div><div class="sector-name">活动票</div></div></div>
<div class="wheel-sector"><div class="sector-content"><div class="sector-icon"><span class="icon-svg icon-heart"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg></span></div><div class="sector-name">谢谢参与</div></div></div>
</div>
<div class="wheel-center" onclick="spinWheel()">
<div class="center-text">抽奖</div>
<div class="center-sub">立即开始</div>
</div>
</div>
</div>
<div class="chance-info">
<div class="chance-text">每日免费 3 次抽奖机会</div>
<div class="chance-count">今日剩余 <strong>2</strong> 次</div>
</div>
<div class="scroll-area">
<!-- 中奖播报 -->
<div class="record-card">
<div class="card-title">
<span><span class="icon-svg icon-party-popper"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5.8 11.3 2 22l10.7-3.8"/><path d="M4 3h.01"/><path d="M22 8h.01"/><path d="M15 2h.01"/><path d="M22 20h.01"/><path d="m22 2-2.2.8-.8 2.2"/><path d="m22 2-2.2.8-.8 2.2"/><path d="M9 10.5 8 10l-3 1 1 3 .5-1 1.5 1 .5-1 1.5 1 .5-1 1-2Z"/></svg></span> 最新中奖</span>
<span class="more">更多 ></span>
</div>
<div class="record-list">
<div class="record-item">
<div class="record-avatar"><span class="icon-svg icon-palette"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5"/><circle cx="17.5" cy="10.5" r=".5"/><circle cx="8.5" cy="7.5" r=".5"/><circle cx="6.5" cy="12.5" r=".5"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/></svg></span></div>
<div class="record-info">
<div class="record-name">小夏同学</div>
<div class="record-prize">抽中 VIP 7天体验卡</div>
</div>
<span class="record-time">1分钟前</span>
</div>
<div class="record-item">
<div class="record-avatar" style="background:linear-gradient(135deg,#FF9A8B,#FF6A88);"><span class="icon-svg icon-gamepad-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="11" x2="10" y2="11"/><line x1="8" y1="9" x2="8" y2="13"/><line x1="15" y1="12" x2="15.01" y2="12"/><line x1="18" y1="10" x2="18.01" y2="10"/><rect width="20" height="12" x="2" y="6" rx="2"/></svg></span></div>
<div class="record-info">
<div class="record-name">游戏达人小林</div>
<div class="record-prize">抽中 100 青豆</div>
</div>
<span class="record-time">3分钟前</span>
</div>
<div class="record-item">
<div class="record-avatar" style="background:linear-gradient(135deg,#FFD666,#FAAD14);"><span class="icon-svg icon-music"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg></span></div>
<div class="record-info">
<div class="record-name">音乐少女</div>
<div class="record-prize">抽中限定头像框</div>
</div>
<span class="record-time">5分钟前</span>
</div>
<div class="record-item">
<div class="record-avatar" style="background:linear-gradient(135deg,#A8B5FF,#6366F1);"><span class="icon-svg icon-book-open"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg></span></div>
<div class="record-info">
<div class="record-name">学霸阿楠</div>
<div class="record-prize">抽中活动门票券</div>
</div>
<span class="record-time">8分钟前</span>
</div>
</div>
</div>
<!-- 奖品一览 -->
<div class="prize-card">
<div class="card-title">
<span><span class="icon-svg icon-gift"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13"/><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"/><path d="M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/></svg></span> 奖品一览</span>
</div>
<div class="prize-grid">
<div class="prize-item" onclick="viewPrize('50青豆')">
<div class="prize-icon">🫘</div>
<span class="prize-name">50青豆</span>
</div>
<div class="prize-item" onclick="viewPrize('100青豆')">
<div class="prize-icon">💎</div>
<span class="prize-name">100青豆</span>
</div>
<div class="prize-item" onclick="viewPrize('VIP体验卡')">
<div class="prize-icon"><span class="icon-svg icon-crown"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"/><path d="M5 21h14"/></svg></span></div>
<span class="prize-name">VIP体验</span>
</div>
<div class="prize-item" onclick="viewPrize('限定头像框')">
<div class="prize-icon">🖼️</div>
<span class="prize-name">头像框</span>
</div>
<div class="prize-item" onclick="viewPrize('优惠券')">
<div class="prize-icon"><span class="icon-svg icon-ticket"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"/><path d="M13 5v2"/><path d="M13 17v2"/><path d="M13 11v2"/></svg></span></div>
<span class="prize-name">优惠券</span>
</div>
<div class="prize-item" onclick="viewPrize('活动门票')">
<div class="prize-icon">🎫</div>
<span class="prize-name">活动票</span>
</div>
<div class="prize-item" onclick="viewPrize('神秘大奖')">
<div class="prize-icon"><span class="icon-svg icon-gift"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13"/><path d="M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"/><path d="M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/></svg></span></div>
<span class="prize-name">神秘奖</span>
</div>
<div class="prize-item" onclick="viewPrize('更多')">
<div class="prize-icon"><span class="icon-svg icon-sparkles"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg></span></div>
<span class="prize-name">更多</span>
</div>
</div>
</div>
<!-- 活动规则 -->
<div class="rules-card">
<div class="card-title"><span>📋 活动规则</span></div>
<ul class="rules-list">
<li>每位用户每日可免费抽奖 3 次,零点刷新</li>
<li>额外抽奖次数可通过完成任务获得</li>
<li>青豆奖励实时到账,可在账单明细中查看</li>
<li>实物奖品请在 7 日内填写收货地址</li>
<li>VIP体验卡自动激活,可在会员中心查看</li>
<li>本活动最终解释权归青核 Youthome 所有</li>
</ul>
</div>
</div>
</div>
<script> icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
}
}
let isSpinning = false;
let currentRotation = 0;
const prizes = ['50青豆', '优惠券', 'VIP1天', '神秘奖', '头像框', '100豆', '活动票', '谢谢参与'];
function spinWheel() {
if (isSpinning) return;
isSpinning = true;
// 随机选一个奖品(模拟)
const prizeIndex = Math.floor(Math.random() * 8);
// 每扇45度,目标角度 = 360*圈数 + (360 - prizeIndex*45 - 22.5)
// 指针在顶部(0度),要让第i个扇形转到顶部,需要旋转 360 - i*45 - 22.5 度
const targetAngle = 360 * 5 + (360 - prizeIndex * 45 - 22.5);
currentRotation += targetAngle;
const wheel = document.getElementById('wheel');
wheel.style.transform = `rotate(${currentRotation}deg)`;
setTimeout(() => {
isSpinning = false;
alert('恭喜获得:' + prizes[prizeIndex] + '!');
}, 4200);
}
function goBack() { window.history.back(); }
function goMyPrize() { alert('我的奖品'); }
function viewPrize(name) { alert(name + '详情'); }</script>
</body>
</html>