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.
 
 

776 lines
25 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;
--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;
}
/* 顶部导航 */
.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; }
/* 渐变头部 */
.checkin-header {
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 40%, #7EDDD9 70%, #A8E6CF 100%);
padding-bottom: 60px;
flex-shrink: 0;
position: relative;
overflow: hidden;
}
.checkin-header::before {
content: '';
position: absolute;
top: -60px;
right: -40px;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
}
.checkin-header::after {
content: '';
position: absolute;
bottom: -80px;
left: -30px;
width: 160px;
height: 160px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
/* 连续签到 */
.streak-card {
position: relative;
z-index: 1;
text-align: center;
padding: 8px 24px 0;
color: #fff;
}
.streak-label { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.streak-value {
font-size: 56px;
font-weight: 800;
line-height: 1;
text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.streak-value small { font-size: 20px; font-weight: 600; margin-left: 2px; }
.streak-tip {
margin-top: 6px;
font-size: 13px;
opacity: 0.9;
}
.streak-tip .highlight {
background: rgba(255,255,255,0.25);
padding: 2px 8px;
border-radius: 6px;
font-weight: 600;
}
/* 签到按钮 */
.checkin-btn-wrap {
display: flex;
justify-content: center;
margin-top: 20px;
position: relative;
z-index: 1;
}
.checkin-btn {
width: 200px;
height: 48px;
background: #fff;
color: var(--youth-primary);
border: none;
border-radius: 24px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
font-family: inherit;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.checkin-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(38,194,187,0.1), transparent);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { left: -100%; }
100% { left: 100%; }
}
.checkin-btn:active { transform: scale(0.96); }
.checkin-btn.checked { background: rgba(255,255,255,0.3); color: #fff; }
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 20px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 7天签到卡片 */
.week-card {
margin: -40px 16px 16px;
background: var(--youth-bg-card);
border-radius: 16px;
padding: 20px 16px 16px;
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
position: relative;
z-index: 2;
}
.week-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 4px;
display: flex;
align-items: center;
justify-content: space-between;
}
.week-subtitle {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-bottom: 16px;
}
.week-days {
display: flex;
justify-content: space-between;
}
.day-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
cursor: pointer;
}
.day-label {
font-size: 11px;
color: var(--youth-text-tertiary);
font-weight: 500;
}
.day-reward {
font-size: 10px;
color: var(--youth-warning);
font-weight: 600;
height: 14px;
}
.day-circle {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--youth-bg-page);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-text-tertiary);
font-size: 14px;
font-weight: 600;
border: 2px solid transparent;
transition: all 0.3s ease;
position: relative;
}
.day-item.checked .day-circle {
background: linear-gradient(135deg, #26C2BB, #54CAC5);
color: #fff;
}
.day-item.checked .day-circle svg { color: #fff; }
.day-item.today .day-circle {
border-color: var(--youth-primary);
background: var(--youth-primary-bg);
color: var(--youth-primary);
box-shadow: 0 0 0 4px rgba(38, 194, 187, 0.15);
animation: pulseToday 2s ease-in-out infinite;
}
@keyframes pulseToday {
0%, 100% { box-shadow: 0 0 0 4px rgba(38, 194, 187, 0.15); }
50% { box-shadow: 0 0 0 8px rgba(38, 194, 187, 0.1); }
}
.day-item.today.checked .day-circle {
background: linear-gradient(135deg, #26C2BB, #54CAC5);
color: #fff;
}
.day-item.big-reward .day-reward {
font-size: 10px;
color: #FF6A88;
}
/* 签到记录 */
.record-section {
margin: 0 16px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
overflow: hidden;
}
.record-header {
padding: 14px 16px;
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
display: flex;
align-items: center;
justify-content: space-between;
}
.record-header .more { font-size: 12px; color: var(--youth-text-tertiary); font-weight: 500; }
.calendar-wrap { padding: 0 16px 16px; }
.cal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.cal-month {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
}
.cal-nav {
display: flex;
gap: 8px;
}
.cal-nav-btn {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--youth-bg-page);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-text-secondary);
cursor: pointer;
}
.cal-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
margin-bottom: 8px;
}
.cal-weekday {
text-align: center;
font-size: 11px;
color: var(--youth-text-tertiary);
padding: 6px 0;
}
.cal-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
}
.cal-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
color: var(--youth-text-secondary);
border-radius: 50%;
cursor: pointer;
position: relative;
}
.cal-day.checked {
background: var(--youth-primary-bg);
color: var(--youth-primary);
font-weight: 600;
}
.cal-day.checked::after {
content: '✓';
position: absolute;
bottom: 2px;
right: 4px;
font-size: 8px;
color: var(--youth-primary);
}
.cal-day.today {
background: var(--youth-primary);
color: #fff;
font-weight: 700;
}
.cal-day.today::after {
content: '今';
position: absolute;
bottom: 1px;
right: 3px;
font-size: 7px;
color: #fff;
}
.cal-day.muted { color: var(--youth-border-light); }
/* 签到奖励说明 */
.reward-section {
margin: 0 16px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
}
.reward-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 12px;
}
.reward-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.reward-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: var(--youth-bg-page);
border-radius: 10px;
}
.reward-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, #FFD666, #FAAD14);
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
flex-shrink: 0;
}
.reward-info { flex: 1; min-width: 0; }
.reward-name {
font-size: 13px;
font-weight: 600;
color: var(--youth-text-primary);
}
.reward-desc {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-top: 2px;
}
.reward-status {
font-size: 12px;
font-weight: 600;
color: var(--youth-primary);
flex-shrink: 0;
}
.reward-status.locked { color: var(--youth-text-tertiary); }
/* 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="checkin-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 text-btn" onclick="goRules()">规则</button>
</div>
<div class="streak-card">
<div class="streak-label">连续签到</div>
<div class="streak-value">7<small>天</small></div>
<div class="streak-tip">
再签到 <span class="highlight">3 天</span> 解锁月度奖励
</div>
</div>
<div class="checkin-btn-wrap">
<button class="checkin-btn checked" onclick="doCheckin()">今日已签到 +10</button>
</div>
</div>
<div class="scroll-area">
<!-- 7天签到 -->
<div class="week-card">
<div class="week-title">
<span>本周签到</span>
<span style="font-size: 12px; color: var(--youth-primary); font-weight: 600;">7/7 ✓</span>
</div>
<div class="week-subtitle">连续签到越多,奖励越丰厚</div>
<div class="week-days">
<div class="day-item checked" onclick="viewDay(0)">
<div class="day-label">周一</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+5豆</div>
</div>
<div class="day-item checked" onclick="viewDay(1)">
<div class="day-label">周二</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+5豆</div>
</div>
<div class="day-item checked" onclick="viewDay(2)">
<div class="day-label">周三</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+8豆</div>
</div>
<div class="day-item checked" onclick="viewDay(3)">
<div class="day-label">周四</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+8豆</div>
</div>
<div class="day-item checked" onclick="viewDay(4)">
<div class="day-label">周五</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+10豆</div>
</div>
<div class="day-item checked" onclick="viewDay(5)">
<div class="day-label">周六</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+10豆</div>
</div>
<div class="day-item today checked big-reward" onclick="viewDay(6)">
<div class="day-label">周日</div>
<div class="day-circle">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>
</div>
<div class="day-reward">+20豆</div>
</div>
</div>
</div>
<!-- 签到日历 -->
<div class="record-section">
<div class="record-header">
<span>签到记录</span>
<span class="more">本月已签 21 天</span>
</div>
<div class="calendar-wrap">
<div class="cal-header">
<span class="cal-month">2026年 8月</span>
<div class="cal-nav">
<div class="cal-nav-btn" onclick="prevMonth()">
<svg width="14" height="14" 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>
</div>
<div class="cal-nav-btn" onclick="nextMonth()">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>
</div>
</div>
</div>
<div class="cal-weekdays">
<div class="cal-weekday">日</div>
<div class="cal-weekday">一</div>
<div class="cal-weekday">二</div>
<div class="cal-weekday">三</div>
<div class="cal-weekday">四</div>
<div class="cal-weekday">五</div>
<div class="cal-weekday">六</div>
</div>
<div class="cal-days" id="calDays">
<!-- 7月尾 -->
<div class="cal-day muted">27</div>
<div class="cal-day muted">28</div>
<div class="cal-day muted">29</div>
<div class="cal-day muted">30</div>
<div class="cal-day muted">31</div>
<!-- 8月 -->
<div class="cal-day checked">1</div>
<div class="cal-day checked">2</div>
<div class="cal-day checked">3</div>
<div class="cal-day checked">4</div>
<div class="cal-day checked">5</div>
<div class="cal-day">6</div>
<div class="cal-day">7</div>
<div class="cal-day checked">8</div>
<div class="cal-day checked">9</div>
<div class="cal-day checked">10</div>
<div class="cal-day checked">11</div>
<div class="cal-day checked">12</div>
<div class="cal-day checked">13</div>
<div class="cal-day checked">14</div>
<div class="cal-day checked">15</div>
<div class="cal-day checked">16</div>
<div class="cal-day checked">17</div>
<div class="cal-day checked">18</div>
<div class="cal-day checked">19</div>
<div class="cal-day checked">20</div>
<div class="cal-day today">21</div>
<div class="cal-day">22</div>
<div class="cal-day">23</div>
<div class="cal-day">24</div>
<div class="cal-day">25</div>
<div class="cal-day">26</div>
<div class="cal-day">27</div>
<div class="cal-day">28</div>
<div class="cal-day">29</div>
<div class="cal-day">30</div>
<div class="cal-day">31</div>
</div>
</div>
</div>
<!-- 签到奖励 -->
<div class="reward-section">
<div class="reward-title">签到里程碑</div>
<div class="reward-list">
<div class="reward-item">
<div class="reward-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="reward-info">
<div class="reward-name">连续 7 天奖励</div>
<div class="reward-desc">额外获得 50 青豆</div>
</div>
<div class="reward-status">已达成</div>
</div>
<div class="reward-item">
<div class="reward-icon"><span class="icon-svg icon-trophy"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"/><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"/><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"/></svg></span></div>
<div class="reward-info">
<div class="reward-name">连续 15 天奖励</div>
<div class="reward-desc">额外获得 150 青豆 + 专属徽章</div>
</div>
<div class="reward-status locked">还差 8 天</div>
</div>
<div class="reward-item">
<div class="reward-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="reward-info">
<div class="reward-name">连续 30 天奖励</div>
<div class="reward-desc">额外获得 500 青豆 + 7天VIP</div>
</div>
<div class="reward-status locked">还差 23 天</div>
</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 viewDay(i) { alert('查看第 ' + (i+1) + '天奖励'); }
function prevMonth() { alert('上月'); }
function nextMonth() { alert('下月'); }
function doCheckin() {
const btn = document.querySelector('.checkin-btn');
if (btn.classList.contains('checked')) {
alert('今日已签到');
} else {
btn.classList.add('checked');
btn.textContent = '今日已签到 +10';
}
}</script>
</body>
</html>