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.
 
 

788 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;
--primary-border: #B3E8E4;
--bg-page: #F7F8FA;
--bg-card: #FFFFFF;
--text-title: #1F1F1F;
--text-body: #595959;
--text-muted: #8C8C8C;
--youth-border-light: #E8E8E8;
--youth-warning: #FAAD14;
--warning-bg: #FFF7E6;
--youth-success: #52C41A;
/* =====================================================
* 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;
}
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
height: 44px;
flex-shrink: 0;
position: relative;
z-index: 1;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #fff;
cursor: pointer;
border: none;
background: transparent;
}
.nav-title { font-size: 17px; font-weight: 700; color: #fff; }
.nav-btn.text-btn { width: auto; font-size: 13px; padding: 0 8px; font-weight: 500; }
/* 渐变头部 */
.task-header {
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 50%, #7EDDD9 100%);
padding-bottom: 50px;
flex-shrink: 0;
position: relative;
overflow: hidden;
}
.task-header::before {
content: '';
position: absolute;
top: -60px;
right: -40px;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
.task-header::after {
content: '';
position: absolute;
bottom: -80px;
left: -30px;
width: 160px;
height: 160px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
}
/* 今日概览 */
.today-overview {
position: relative;
z-index: 1;
padding: 8px 20px 0;
color: #fff;
}
.beans-today {
display: flex;
align-items: baseline;
gap: 8px;
}
.beans-label { font-size: 13px; opacity: 0.85; }
.beans-value {
font-size: 36px;
font-weight: 800;
line-height: 1;
}
.beans-unit { font-size: 14px; opacity: 0.8; }
.beans-sub {
margin-top: 6px;
font-size: 12px;
opacity: 0.85;
}
/* 进度条 */
.task-progress {
position: relative;
z-index: 1;
margin: 16px 20px 0;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 14px 16px;
}
.progress-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-size: 13px;
}
.progress-label { opacity: 0.9; }
.progress-value { font-weight: 600; }
.progress-bar {
height: 8px;
background: rgba(255,255,255,0.2);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
width: 70%;
background: #fff;
border-radius: 4px;
box-shadow: 0 0 8px rgba(255,255,255,0.4);
}
/* 分类Tab */
.tab-bar {
display: flex;
background: var(--youth-bg-card);
margin: -30px 16px 12px;
border-radius: 16px;
padding: 6px;
position: relative;
z-index: 2;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
flex-shrink: 0;
}
.tab-item {
flex: 1;
padding: 8px 0;
text-align: center;
font-size: 13px;
font-weight: 500;
color: var(--youth-text-tertiary);
border-radius: 16px;
cursor: pointer;
transition: all 0.2s ease;
}
.tab-item.active {
background: var(--youth-primary);
color: #fff;
font-weight: 600;
}
.tab-item .badge {
display: inline-block;
margin-left: 4px;
padding: 0 5px;
background: var(--youth-danger-500);
color: #fff;
font-size: 10px;
border-radius: 16px;
font-weight: 600;
vertical-align: middle;
}
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 20px;
}
.scroll-area::-webkit-scrollbar { display: none; }
.task-section {
margin: 0 16px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
overflow: hidden;
}
.section-header {
padding: 14px 16px 8px;
font-size: 14px;
font-weight: 700;
color: var(--youth-text-primary);
display: flex;
align-items: center;
justify-content: space-between;
}
.section-header .tag {
font-size: 10px;
color: var(--youth-primary);
background: var(--youth-primary-bg);
padding: 2px 8px;
border-radius: 16px;
font-weight: 600;
}
.task-item {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
position: relative;
cursor: pointer;
transition: background 0.2s ease;
}
.task-item:active { background: var(--youth-bg-page); }
.task-item + .task-item::before {
content: '';
position: absolute;
top: 0;
left: 64px;
right: 16px;
height: 1px;
background: var(--youth-border-light);
}
.task-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
}
.task-icon.c1 { background: linear-gradient(135deg, #54CAC5, #26C2BB); }
.task-icon.c2 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.task-icon.c3 { background: linear-gradient(135deg, #A8B5FF, #6366F1); }
.task-icon.c4 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
.task-icon.c5 { background: linear-gradient(135deg, #34D399, #10B981); }
.task-icon.c6 { background: linear-gradient(135deg, #F472B6, #EC4899); }
.task-icon.c7 { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.task-icon.c8 { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.task-info { flex: 1; min-width: 0; }
.task-name {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.task-desc {
font-size: 11px;
color: var(--youth-text-tertiary);
}
.task-reward {
font-size: 13px;
font-weight: 700;
color: var(--youth-warning);
margin-bottom: 4px;
text-align: right;
}
.task-btn {
padding: 5px 14px;
border-radius: 14px;
font-size: 12px;
font-weight: 600;
border: none;
cursor: pointer;
font-family: inherit;
flex-shrink: 0;
}
.task-btn.go {
background: var(--youth-primary);
color: #fff;
}
.task-btn.claim {
background: linear-gradient(135deg, #FFD666, #FAAD14);
color: #1A1A2E;
box-shadow: 0 2px 8px rgba(250,173,20,0.3);
}
.task-btn.done {
background: var(--youth-bg-page);
color: var(--youth-text-tertiary);
border: 1px solid var(--youth-border-light);
}
.task-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
flex-shrink: 0;
}
.task-progress-text {
font-size: 10px;
color: var(--youth-text-tertiary);
}
/* 成就区域 */
.achievement-section {
margin: 0 16px 16px;
}
.achievement-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.achievement-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
}
.achievement-subtitle {
font-size: 12px;
color: var(--youth-text-tertiary);
}
.achievement-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.achievement-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
}
.achievement-icon {
width: 52px;
height: 52px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
background: var(--youth-bg-card);
border: 2px solid var(--youth-border-light);
position: relative;
}
.achievement-item.unlocked .achievement-icon {
background: linear-gradient(135deg, #FFD666, #FAAD14);
border-color: #FFD666;
box-shadow: 0 4px 12px rgba(250,173,20,0.3);
}
.achievement-item.locked .achievement-icon {
opacity: 0.4;
filter: grayscale(1);
}
.achievement-name {
font-size: 10px;
color: var(--youth-text-secondary);
font-weight: 500;
text-align: center;
}
/* 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="task-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><rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect><rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect></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><rect x="2" y="2" width="18" height="8" rx="1.5" fill="#fff"></rect><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="#fff" opacity="0.5"></rect></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 text-btn" onclick="goRules()">规则</button>
</div>
<div class="today-overview">
<div class="beans-today">
<span class="beans-label">今日已获得</span>
</div>
<div class="beans-today" style="margin-top: 4px;">
<span class="beans-value">85</span>
<span class="beans-unit">青豆</span>
</div>
<div class="beans-sub">今日可获取 120 青豆 · 完成 5/7 任务</div>
</div>
<div class="task-progress">
<div class="progress-top">
<span class="progress-label">今日任务进度</span>
<span class="progress-value">5 / 7</span>
</div>
<div class="progress-bar">
<div class="progress-fill"></div>
</div>
</div>
</div>
<!-- 分类Tab -->
<div class="tab-bar">
<div class="tab-item active" onclick="switchTab(this, 'daily')">每日任务</div>
<div class="tab-item" onclick="switchTab(this, 'newbie')">新手任务<span class="badge">3</span></div>
<div class="tab-item" onclick="switchTab(this, 'achievement')">成就</div>
</div>
<div class="scroll-area">
<!-- 每日任务 -->
<div class="task-section">
<div class="section-header">
<span>日常任务</span>
<span class="tag">每日 0 点刷新</span>
</div>
<div class="task-item" onclick="goTask('签到')">
<div class="task-icon c1"><span class="icon-svg icon-calendar"></span></div>
<div class="task-info">
<div class="task-name">每日签到</div>
<div class="task-desc">连续签到奖励翻倍</div>
</div>
<div class="task-right">
<div class="task-reward">+10豆</div>
<button class="task-btn done">已完成</button>
</div>
</div>
<div class="task-item" onclick="goTask('浏览动态')">
<div class="task-icon c2"><span class="icon-svg icon-smartphone"></span></div>
<div class="task-info">
<div class="task-name">浏览动态 5 条</div>
<div class="task-desc">在动态页浏览内容</div>
</div>
<div class="task-right">
<div class="task-reward">+5豆</div>
<button class="task-btn done">已完成</button>
</div>
</div>
<div class="task-item" onclick="goTask('发布动态')">
<div class="task-icon c3"><span class="icon-svg icon-pencil"></span></div>
<div class="task-info">
<div class="task-name">发布 1 条动态</div>
<div class="task-desc">分享你的校园生活</div>
</div>
<div class="task-right">
<div class="task-reward">+20豆</div>
<button class="task-btn go">去完成</button>
</div>
</div>
<div class="task-item" onclick="goTask('点赞')">
<div class="task-icon c4">
</div>
<div class="task-info">
<div class="task-name">点赞 10 条内容</div>
<div class="task-desc">表达你的喜欢</div>
</div>
<div class="task-right">
<div class="task-progress-text">7/10</div>
<button class="task-btn go">继续</button>
</div>
</div>
<div class="task-item" onclick="goTask('评论')">
<div class="task-icon c5"><span class="icon-svg icon-message-circle"></span></div>
<div class="task-info">
<div class="task-name">评论 3 条动态</div>
<div class="task-desc">参与互动讨论</div>
</div>
<div class="task-right">
<div class="task-reward">+15豆</div>
<button class="task-btn claim">领取</button>
</div>
</div>
<div class="task-item" onclick="goTask('分享')">
<div class="task-icon c6"><span class="icon-svg icon-share-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg></span></div>
<div class="task-info">
<div class="task-name">分享内容给好友</div>
<div class="task-desc">分享任意内容到微信</div>
</div>
<div class="task-right">
<div class="task-reward">+15豆</div>
<button class="task-btn done">已完成</button>
</div>
</div>
<div class="task-item" onclick="goTask('邀请好友')">
<div class="task-icon c7"><span class="icon-svg icon-users"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg></span></div>
<div class="task-info">
<div class="task-name">邀请好友注册</div>
<div class="task-desc">每日首次邀请额外奖励</div>
</div>
<div class="task-right">
<div class="task-reward">+50豆</div>
<button class="task-btn go">去邀请</button>
</div>
</div>
</div>
<!-- 新手任务 -->
<div class="task-section">
<div class="section-header">
<span>新手任务</span>
<span class="tag" style="background:var(--youth-orange-50);color:var(--youth-warning);">仅限一次</span>
</div>
<div class="task-item" onclick="goTask('完善资料')">
<div class="task-icon c8"><span class="icon-svg icon-clipboard-list"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path></svg></span></div>
<div class="task-info">
<div class="task-name">完善个人资料</div>
<div class="task-desc">头像 + 昵称 + 学校</div>
</div>
<div class="task-right">
<div class="task-reward">+100豆</div>
<button class="task-btn claim">领取</button>
</div>
</div>
<div class="task-item" onclick="goTask('实名认证')">
<div class="task-icon c1"><span class="icon-svg icon-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg></span></div>
<div class="task-info">
<div class="task-name">完成实名认证</div>
<div class="task-desc">解锁全部功能</div>
</div>
<div class="task-right">
<div class="task-reward">+200豆</div>
<button class="task-btn go">去认证</button>
</div>
</div>
<div class="task-item" onclick="goTask('关注用户')">
<div class="task-icon c3"><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"></path></svg></span></div>
<div class="task-info">
<div class="task-name">关注 5 位同学</div>
<div class="task-desc">发现有趣的人</div>
</div>
<div class="task-right">
<div class="task-progress-text">2/5</div>
<button class="task-btn go">继续</button>
</div>
</div>
<div class="task-item" onclick="goTask('加入社团')">
<div class="task-icon c5"><span class="icon-svg icon-drama"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12c2.21 0 4-1.79 4-4V6a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2c0 2.21 1.79 4 4 4Z"></path><path d="M4 9.5h-.5a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2H4"></path><path d="M20 9.5h.5a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H20"></path><path d="m7 17 1.2 2.5a2 2 0 0 0 1.8 1.2h4a2 2 0 0 0 1.8-1.2L17 17"></path><path d="M8 12h8"></path></svg></span></div>
<div class="task-info">
<div class="task-name">加入 1 个社团</div>
<div class="task-desc">找到志同道合的伙伴</div>
</div>
<div class="task-right">
<div class="task-reward">+80豆</div>
<button class="task-btn go">去加入</button>
</div>
</div>
</div>
<!-- 成就徽章 -->
<div class="achievement-section">
<div class="achievement-header">
<div>
<div class="achievement-title">我的成就</div>
<div class="achievement-subtitle">已解锁 8 / 24</div>
</div>
<span style="font-size:12px;color:var(--youth-primary);font-weight:600;">查看全部 ></span>
</div>
<div class="achievement-grid">
<div class="achievement-item unlocked" onclick="viewAchievement('社交达人')">
<div class="achievement-icon">🌟</div>
<span class="achievement-name">社交达人</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('连续签到')">
<div class="achievement-icon"><span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path></svg></span></div>
<span class="achievement-name">七日签到</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('内容创作者')">
<div class="achievement-icon"><span class="icon-svg icon-pen-line"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"></path></svg></span></div>
<span class="achievement-name">创作者</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('校园先锋')">
<div class="achievement-icon"><span class="icon-svg icon-graduation-cap"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 10v6M2 10l10-5 10 5-10 5z"></path><path d="M6 12v5c3 3 9 3 12 0v-5"></path></svg></span></div>
<span class="achievement-name">校园先锋</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('热心助人')">
<div class="achievement-icon">💗</div>
<span class="achievement-name">热心助人</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('夜猫子')">
<div class="achievement-icon">🌙</div>
<span class="achievement-name">夜猫子</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('早起鸟')">
<div class="achievement-icon">☀️</div>
<span class="achievement-name">早起鸟</span>
</div>
<div class="achievement-item unlocked" onclick="viewAchievement('活动达人')">
<div class="achievement-icon"><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><path d="M4 3h.01"></path><path d="M22 8h.01"></path><path d="M15 2h.01"></path><path d="M22 20h.01"></path><path d="m22 2-2.2.8-.8 2.2"></path><path d="m22 2-2.2.8-.8 2.2"></path><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"></path></svg></span></div>
<span class="achievement-name">活动达人</span>
</div>
<div class="achievement-item locked" onclick="viewAchievement('超级VIP')">
<div class="achievement-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><path d="M5 21h14"></path></svg></span></div>
<span class="achievement-name">超级VIP</span>
</div>
<div class="achievement-item locked" onclick="viewAchievement('百赞动态')">
<div class="achievement-icon">💯</div>
<span class="achievement-name">百赞动态</span>
</div>
<div class="achievement-item locked" onclick="viewAchievement('邀请达人')">
<div class="achievement-icon">🤝</div>
<span class="achievement-name">邀请达人</span>
</div>
<div class="achievement-item locked" onclick="viewAchievement('全勤月')">
<div class="achievement-icon">📆</div>
<span class="achievement-name">全勤月</span>
</div>
</div>
</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>';
}
}
function goBack() { window.history.back(); }
function goRules() { alert('任务规则'); }
function goTask(name) { alert('前往' + name); }
function viewAchievement(name) { alert(name + '成就详情'); }
function switchTab(el, type) {
document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
el.classList.add('active');
}</script>
</body>
</html>